/* OrthoCoast R3.9 — Friedl review, 30 October 2026.
   Original CI and image files are retained. No consent behaviour changes. */

/* Quiet footer navigation: all links keep their normal hit area, with a visible
   hover, active and keyboard-focus state rather than permanent underlines. */
.footer a:not(.btn) {
  text-decoration: none !important;
  text-underline-offset: .2em;
  transition: color .15s ease;
}
.footer a:not(.btn):hover,
.footer a:not(.btn):active {
  color: #f38b1c;
  text-decoration: underline !important;
}
.footer a:focus-visible,
.footer button:focus-visible {
  outline: .1875rem solid #fff;
  outline-offset: .25rem;
  border-radius: .2rem;
}
.footer a:not(.btn):focus-visible { text-decoration: underline !important; }
.footer .oc-map-block a:not(.btn):hover,
.footer .oc-map-block a:not(.btn):active { color: #233949; }
.footer .oc-map-block a:focus-visible,
.footer .oc-map-block button:focus-visible { outline-color: #233949; }
.footer p, .footer a, .footer button,
.footer .footer-grid li > a, .footer .oc-footer-hours,
.footer .footer-claim, .footer .footer-line, .footer .oc-map-consent {
  font-size: 1rem !important;
  line-height: 1.65 !important;
}
.footer .footer-grid h3 {
  font-size: 1rem !important;
  line-height: 1.5;
  font-weight: 600;
  min-height: 3rem;
  margin: 0 0 .5rem;
}
.footer .footer-grid a,
.footer .footer-line a,
.footer .oc-footer-acute a {
  min-height: 2.75rem;
  padding-block: .55rem;
  font-weight: 400 !important;
}
.footer .oc-footer-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #667d8c;
}
.footer .oc-footer-identity .footer-claim { margin: 0; }
/* Applied only to a supplied negative original, never to recolour a positive logo. */
.footer .footer-static-logo.oc-negative-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: 15.3125rem;
  max-width: 100%;
  height: auto;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}
.footer .footer-grid > div {
  min-width: 0;
  max-width: none;
  grid-column: auto;
}
.footer .footer-grid > div:last-child { grid-column: auto; }
.footer .footer-grid li > a {
  display: flex;
  align-items: center;
  min-height: 4.4rem;
}
.footer .footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer .footer-grid li { margin: 0; padding: 0; }
.footer .footer-grid .oc-footer-address { margin: .55rem 0 0; }
.footer .oc-footer-hours {
  margin: .8rem 0 0 !important;
  padding: 0 !important;
}
.footer .footer-line {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 2rem;
}
.footer .footer-line > div {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.5rem;
  margin: 0;
}
.footer .footer-line a { margin: 0; }

/* Section links are buttons in appearance and ordinary accessible anchor links
   in HTML; they wrap instead of shrinking with the screen width. */
.page-nav > .wrap {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .65rem !important;
  padding-block: .9rem;
}
.page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 0;
  padding: .7rem 1rem !important;
  border: 1px solid #bdbfbf;
  border-radius: .4rem;
  background: #fff;
  color: #233949;
  font-size: 1rem !important;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.page-nav a:hover,
.page-nav a:active,
.page-nav a[aria-current] {
  background: #233949;
  border-color: #233949;
  color: #fff;
  text-decoration: none;
}
.page-nav a:focus-visible {
  outline: .1875rem solid #233949;
  outline-offset: .2rem;
  border-color: #233949;
}

/* Match portrait presentation, regardless of the original source aspect ratio.
   CSS framing only: originals, srcset variants, alt text and profile links stay. */
.doctor-card > picture.oc-responsive-picture {
  display: block;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
}
.doctor-card > picture.oc-responsive-picture > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 1;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: 50% 30% !important;
}
.doctor-grid.compact .doctor-card,
.doctor-grid.five-doctors .doctor-card {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: start;
}
.doctor-grid.compact .doctor-card > picture.oc-responsive-picture,
.doctor-grid.five-doctors .doctor-card > picture.oc-responsive-picture {
  width: 7.5rem;
  height: 7.5rem;
  margin: 1rem;
  border-radius: .4rem;
}

/* Keep the local map overview compact, but give the notice and activation
   controls the whole width. Applies equally to pre-rendered/runtime maps. */
.oc-map-block,
.footer .oc-map-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  column-gap: 1.5rem;
  row-gap: .75rem;
  align-items: start;
}
.oc-map-block > .oc-map-copy { display: contents; }
.oc-map-block > .oc-map-copy > h2 { grid-column: 1; grid-row: 1; margin: 0; }
.oc-map-block > .oc-map-copy > p:not(.oc-map-consent) {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}
.oc-map-block > .oc-map-frame,
.footer .oc-map-block > .oc-map-frame {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  min-height: 0;
  max-height: 15rem;
  margin: 0;
}
.oc-map-block .oc-map-static img { height: 100%; object-fit: cover; }
.oc-map-block > .oc-map-copy > .oc-map-consent {
  grid-column: 1 / -1;
  grid-row: 3;
  max-width: none;
  width: 100%;
  margin: .5rem 0 0;
}
.oc-map-block > .oc-map-copy > .oc-map-actions {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: .25rem;
}
.oc-map-block > .oc-map-attribution,
.oc-map-block > noscript {
  grid-column: 1 / -1;
  max-width: none;
}

@media (max-width: 64rem) {
  .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}
@media (max-width: 48rem) {
  .page-nav a { flex: 1 1 12rem; }
  .oc-map-block, .footer .oc-map-block { grid-template-columns: minmax(0, 1fr); }
  .oc-map-block > .oc-map-copy > h2 { grid-row: 1; }
  .oc-map-block > .oc-map-copy > p:not(.oc-map-consent) { grid-row: 2; }
  .oc-map-block > .oc-map-frame, .footer .oc-map-block > .oc-map-frame {
    grid-column: 1;
    grid-row: 3;
    max-height: 15rem;
  }
  .oc-map-block > .oc-map-copy > .oc-map-consent { grid-row: 4; }
  .oc-map-block > .oc-map-copy > .oc-map-actions { grid-row: 5; }
}
@media (max-width: 34rem) {
  .footer .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .footer .footer-grid h3 { min-height: 0; }
  .footer .footer-grid li > a { min-height: 2.75rem; }
  .footer .oc-footer-identity { display: block; }
  .footer .oc-footer-identity .footer-claim { margin-top: 1rem; }
}
@media (max-width: 31.25rem) {
  .doctor-grid.compact .doctor-card,
  .doctor-grid.five-doctors .doctor-card { display: flex; flex-direction: column; }
}
body.oc-large-text .footer .footer-grid h3 { min-height: 0; }
body.oc-large-text .doctor-card > picture.oc-responsive-picture {
  width: min(12rem, calc(100% - 2rem));
  height: auto;
  margin: 1rem;
}
/* Visible in this review release; the patient exporter removes this entire block. */
.oc-legal-review[data-review-ui="friedl-legal"] {
  display: block !important;
  background: #e2e4e8;
  border-block: 1px solid #bdbfbf;
}
.oc-legal-review li { margin-block: .65rem; }
.oc-legal-draft {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: #fff;
  border-left: .25rem solid #445a68;
}
.oc-legal-review-sources { overflow-wrap: anywhere; }
@media print { .oc-legal-review[data-review-ui="friedl-legal"] { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .footer a { transition: none !important; }
}
