/* RKN Accountancy: footer presentation correction, public pages only. */
/* Telephone links in the footer are contact details, never CTA buttons. */
.site-footer .footer-office a[href^="tel:"],
.site-footer .footer-office a[href^="tel:"]:hover,
.site-footer .footer-office a[href^="tel:"]:focus-visible {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  font: inherit !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  line-height: inherit !important;
}
.site-footer .footer-office a[href^="tel:"] svg,
.site-footer .footer-office a[href^="tel:"] .icon { display:none !important; }
.site-footer .footer-office a[href^="tel:"]:hover,
.site-footer .footer-office a[href^="tel:"]:focus-visible { text-decoration: underline !important; text-underline-offset: 3px; }

/* Reorder existing CMS footer blocks on mobile without changing their content. */
@media (max-width: 760px) {
  .site-footer > .wide-container {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    align-items: start !important;
    gap: 0 !important;
  }
  .site-footer .footer-grid,
  .site-footer .footer-bottom { display: contents !important; }
  /* Brand and description first, ahead of the footer menus. */
  .site-footer .footer-bottom > a.brand { order: 1 !important; margin: 0 0 12px !important; justify-self: start; }
  .site-footer .footer-bottom > p { order: 2 !important; margin: 0 0 25px !important; }
  .site-footer .footer-grid > nav:nth-of-type(1) { order: 3 !important; }
  .site-footer .footer-grid > nav:nth-of-type(2) { order: 4 !important; }
  .site-footer .footer-grid > nav:nth-of-type(3) { order: 5 !important; }
  /* Office details and socials AFTER the footer menus. */
  .site-footer .footer-grid > .footer-office {
    order: 6 !important;
    margin: 24px 0 0 !important;
    padding: 24px 0 0 !important;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .site-footer .footer-bottom > span { order: 7 !important; margin: 28px 0 0 !important; padding: 18px 0 0 !important; border-top: 1px solid rgba(255,255,255,.14); }
  .site-footer .footer-grid > nav { min-width: 0; width: 100%; }
  .site-footer .footer-bottom > a.brand img { max-width: 205px; width: 100%; height: auto; object-fit: contain; }
  .site-footer .footer-office .rkn-social-links { margin-top: 18px; }
}

/* 2026-11-16: footer contact number is plain linked text on ALL viewports. */
body[data-theme="green"] .site-footer .footer-office a[href^="tel:"],
body[data-theme="green"] .site-footer .footer-office a[href^="tel:"]:is(:hover,:focus-visible) {
  display:inline!important;width:auto!important;max-width:none!important;min-width:0!important;
  padding:0!important;margin:0!important;background:none!important;background-color:transparent!important;
  color:inherit!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  font-size:inherit!important;line-height:inherit!important;text-decoration:none!important;
  appearance:none!important;-webkit-appearance:none!important;
}
body[data-theme="green"] .site-footer .footer-office a[href^="tel:"] :is(svg,.icon){display:none!important;}
body[data-theme="green"] .site-footer .footer-office a[href^="tel:"]:hover{text-decoration:underline!important;}
@media(max-width:760px){
  /* Keep one subtle separator only before copyright, not two around the contact block. */
  body[data-theme="green"] .site-footer .footer-grid>.footer-office{border-top:0!important;box-shadow:none!important;}
  body[data-theme="green"] .site-footer .footer-bottom{border-top:0!important;}
  body[data-theme="green"] .site-footer .footer-bottom>span{border-top:1px solid rgba(255,255,255,.14)!important;}
  body[data-theme="green"] .site-footer .footer-grid>nav:last-of-type{border-bottom:0!important;}
}
