/* Liberty Dayton RMC visual pass (pd-xphtx.11, Iris). Replaces the lo-fi layer (lofi.css + pages.css) on all nine approved pages.
   Words, section order and structure are the approved lo-fi build, untouched. This file only dresses them.
   Every colour, size, radius, shadow and type value is a token from tokens.css (the locked visual playbook, feat/pd-bm8g 61631ced1).
   Header D and Hero 1 keep their approved files (styles.css, hero.css). Rules cited by playbook number. */

/* mega panels: opaque white, above the hero copy at every state */
.header-wrap { position: relative; z-index: 60; }
.mega, .mega--directory { background: var(--bg-light) !important; opacity: 1 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.mega-layer { z-index: 61; }

:root { --sec: var(--space-section); }

/* ---- section scaffolding (facelift): one padding token, grounds alternate (05.5) ---- */
.section { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--sec); background: var(--bg-light); color: var(--fg-on-light-body); }
.section--grey { background: var(--bg-soft); }
.section--pale { background: var(--bg-pale); }
.section-head { max-width: var(--measure); margin-bottom: var(--space-6); }
.section-head h2, .local__copy h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-display); margin-bottom: var(--space-3); }
.section-head p { font-size: var(--fs-body-lg); }
.section .eyebrow, .workstrip .eyebrow { margin-bottom: var(--space-2); }
.section h3 { font-size: var(--fs-h3); font-weight: var(--fw-display); line-height: var(--lh-heading); margin: 0 0 var(--space-1); }
.section p { font-size: var(--fs-body); }
.section-cta { margin-top: var(--space-6); display: flex; justify-content: center; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---- buttons: pills, green on light grounds only (03.1), white on dark grounds (03.8), red for Emergency (03.10) ---- */
.section .btn, .workstrip .btn, .footer .btn, .cta .btn, .tband .btn, .tband__tel { border-radius: var(--radius-button); min-height: var(--button-height); padding: 0 var(--button-pad-x); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); font-weight: var(--fw-strong); font-size: var(--fs-button); border: 2px solid transparent; white-space: nowrap; }
.section .btn--green, .workstrip .btn--green { background: var(--action); color: var(--fg-on-dark); }
.section .btn--green:hover, .workstrip .btn--green:hover { background: var(--action-pressed); color: var(--fg-on-dark); }
.section .btn--er { background: var(--bg-emergency); color: var(--fg-on-dark); }
.section .btn--er:hover { background: var(--bg-emergency-hover); color: var(--fg-on-dark); }
.section .btn--white, .cta .btn, .tband .btn { background: var(--bg-light); color: var(--fg-on-light); }
.section .btn--white:hover, .cta .btn:hover, .tband .btn:hover { background: var(--bg-pale); color: var(--fg-on-light); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: var(--fw-strong); color: var(--ldr-primary-600); min-height: var(--tap); }
.link-arrow:hover { color: var(--fg-link-hover); }
.link-arrow .arr { font-weight: var(--fw-body); transition: transform var(--transition-fast); }
.link-arrow:hover .arr { transform: translateX(3px); }

/* ---- icons (Lucide, inline, currentColor, blue; 08) ---- */
.ico { display: inline-grid; place-items: center; width: var(--icon-size-lg); height: var(--icon-size-lg); flex: none; color: var(--accent); }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }

/* ---- photo slots ---- */
.ph { background: var(--bg-pale); position: relative; overflow: hidden; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--empty { display: grid; place-items: center; color: var(--ldr-primary-600); }
.ph--empty .ico { width: var(--space-7); height: var(--space-7); color: var(--ldr-primary-30); }
.logo-img { display: block; }

/* ---- hero: Hero 1 keeps its approved layers; the photo is the real one ---- */
.hero--photo .hp__photo { opacity: var(--ldr-photo-under-grade); }
/* playbook 06.1 grade on Hero 1: the top-to-bottom layer on every width, the left-to-right layer added from 64em so the copy side stays quiet */
.hero--photo .hp__grade { background: linear-gradient(180deg, var(--ldr-primary-90) 0%, var(--ldr-primary-70) 45%, var(--ldr-navy-60) 100%); }
@media (min-width: 64em) { .hero--photo .hp__grade { background: linear-gradient(var(--ldr-navy-15), var(--ldr-navy-15)), linear-gradient(180deg, var(--ldr-primary-55) 0%, var(--ldr-primary-10) 35%, var(--ldr-navy-55) 100%), linear-gradient(90deg, var(--ldr-primary-95) 0%, var(--ldr-primary-80) 45%, var(--ldr-primary-35) 100%); } }

/* ---- S1 services: feature, then a grid ---- */
.feature { display: grid; overflow: hidden; background: var(--bg-light); border-radius: var(--radius-md); box-shadow: var(--shadow-4); margin-bottom: var(--space-4); }
.feature__media { aspect-ratio: 16 / 10; }
.feature__body { padding: var(--space-5) var(--space-4); }
.feature__body h3 { font-size: var(--fs-h2); letter-spacing: var(--ls-display); margin-bottom: var(--space-3); }
.feature__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: var(--space-4) 0 var(--space-3); }
.feature .tel, .card__tel, .loc__tel, .numbers a { font-weight: var(--fw-strong); color: var(--action); }
.feature .tel { font-size: var(--fs-body-lg); display: inline-flex; align-items: center; min-height: var(--tap); }
.small-links { font-size: var(--fs-body-sm) !important; }
.small-links a, .plain-links a, .note-link a, .stat a { color: var(--ldr-primary-600); text-decoration: underline; text-underline-offset: 3px; }
.cards { display: grid; gap: var(--space-4); }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--bg-light); border-radius: var(--radius-md); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.card__media { aspect-ratio: 16 / 10; }
.card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); flex: 1; align-items: flex-start; }
.card__body h3 a { color: inherit; }
.card__body p { font-size: var(--fs-body-sm); flex: 1; }
@media (min-width: 56em) {
  .feature { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .feature__media { aspect-ratio: auto; min-height: 100%; }
  .feature__body { padding: var(--space-6); align-self: center; }
}
@media (min-width: 40em) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) {
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards > .card--third { grid-column: span 2; }
  .cards > .card--wide { grid-column: span 3; flex-direction: row; }
  .cards > .card--wide .card__media { flex: 0 0 42%; aspect-ratio: auto; }
}

/* ---- S2 where to go for what: two columns, the ER side wears the red Emergency button ---- */
.two { display: grid; gap: var(--space-4); }
.two__col { padding: var(--space-5) var(--space-4); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); background: var(--bg-soft); }
.two__col p { flex: 1; max-width: 32rem; margin-bottom: var(--space-3); }
.two__col--er { background: var(--bg-pale); }
.under { margin-top: var(--space-5); font-size: var(--fs-body-lg) !important; color: var(--fg-on-light); font-weight: var(--fw-medium); }
@media (min-width: 48em) { .two { grid-template-columns: 1fr 1fr; gap: var(--space-5); } .two__col { padding: var(--space-6); } }

/* ---- S3 six tiles ---- */
.quick { display: grid; gap: var(--space-2); }
.quick a { display: flex; align-items: center; gap: var(--space-3); min-height: 4.75rem; padding: var(--space-3) var(--space-4); background: var(--bg-light); border-radius: var(--radius-md); color: var(--fg-on-light); transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); color: var(--fg-on-light); }
.quick a > .ico { box-sizing: content-box; padding: var(--space-1); background: var(--bg-pale); border-radius: var(--radius-full); }
.quick a span:not(.ico):not(.arr) { min-width: 0; display: block; line-height: var(--lh-tight); }
.quick strong { display: block; font-weight: var(--fw-strong); }
.quick em { display: block; font-style: normal; font-size: var(--fs-body-sm); color: var(--fg-on-light-body); margin-top: var(--baseline); }
.quick .arr { margin-left: auto; color: var(--accent); }
@media (min-width: 40em) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 48em) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); } .quick a { min-height: 6rem; } }

/* ---- S4 cost: one navy card (03.7, 05.10) holding the insurer tiles and the billing help card ---- */
.navy-card { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: var(--space-5); background: var(--bg-navy); border-radius: var(--radius-md); padding: var(--space-5) var(--space-4); color: var(--fg-on-dark-muted); box-shadow: var(--shadow-4); }
.navy-card h2, .navy-card h3.navy-card__h { color: var(--fg-on-dark); }
.navy-card__intro { color: var(--fg-on-dark) !important; font-size: var(--fs-body-lg) !important; max-width: 34rem; margin-bottom: var(--space-4); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); max-width: 40rem; }
.plans li { background: var(--bg-light); border-radius: var(--radius-md); height: var(--plan-tile-height); display: flex; align-items: center; justify-content: center; padding: var(--space-1) var(--space-2); text-align: center; font-size: var(--fs-body-sm); font-weight: var(--fw-strong); line-height: var(--lh-tight); color: var(--fg-on-light); }
.plans li img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.plans li.plan--missing { background: var(--bg-pale); border: 2px dashed var(--ldr-primary); }
.billing-card { background: var(--bg-light); border-radius: var(--radius-md); padding: var(--space-5) var(--space-4); }
.billing-card h3 { color: var(--fg-on-light); } .billing-card p { color: var(--fg-on-light-body); margin-bottom: var(--space-4); }
.quiet-links { display: flex; flex-wrap: wrap; gap: var(--baseline) var(--space-5); margin-top: var(--space-4); }
.quiet-links a { color: var(--ldr-primary-600); font-weight: var(--fw-strong); min-height: var(--tap); display: inline-flex; align-items: center; gap: var(--space-1); text-decoration: underline; text-underline-offset: 4px; }
.navy-card .quiet-links a { color: var(--fg-on-dark); }
@media (min-width: 56em) { .navy-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-7); padding: var(--space-7) var(--space-6); align-items: center; } .billing-card { padding: var(--space-6) var(--space-5); } }

/* ---- S5 local: copy left, fact rail right ---- */
.local { display: grid; gap: var(--space-5); }
.local__copy { max-width: var(--measure); }
.local__copy .lead { font-size: var(--fs-body-lg); font-weight: var(--fw-strong); color: var(--fg-on-light); margin-top: var(--space-4); }
.plain-links { display: flex; flex-wrap: wrap; gap: var(--baseline) var(--space-4); margin-top: var(--space-3); }
.plain-links a, .note-link a { min-height: var(--tap); display: inline-flex; align-items: center; }
.facts { display: grid; align-content: start; gap: var(--space-3); }
.fact { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); background: var(--bg-light); border-radius: var(--radius-md); color: var(--fg-on-light); box-shadow: var(--shadow-1); }
.fact--map { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.fact__map { display: block; width: 100%; height: 16rem; border: 0; background: var(--bg-pale); }
.fact__addr { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); }
@media (min-width: 56em) { .local { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-7); align-items: start; } }

/* ---- S6 providers: four in a row on desktop, a short row on a phone ---- */
.providers { display: grid; gap: var(--space-3); }
.provider { display: grid; grid-template-columns: 7rem minmax(0, 1fr); overflow: hidden; background: var(--bg-light); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.provider__media { min-height: 7rem; height: 100%; }
.provider__media > img { object-position: center 20%; }
.provider__body { padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; justify-content: center; }
.provider__body h3 { font-size: var(--fs-body-lg); margin-bottom: var(--baseline); text-wrap: balance; }
.nw { white-space: nowrap; }
.provider__body p { font-size: var(--fs-body-sm); }
.provider__body .meta { margin-top: var(--space-1); font-size: var(--fs-body-sm); }
.provider__body .link-arrow { margin-top: var(--baseline); }
@media (min-width: 40em) {
  .providers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .provider { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .provider__media { aspect-ratio: 4 / 5; min-height: 0; height: auto; }
  .provider__body { padding: var(--space-4); justify-content: flex-start; }
}
@media (min-width: 64em) { .providers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* a video card's button is the quiet outline pill: green stays once per section (03.1) */
.video .btn--green { background: transparent; color: var(--ldr-primary-600); border-color: var(--ldr-primary); }
.video .btn--green:hover { background: var(--ldr-primary); color: var(--fg-on-dark); }

/* ---- S6a patient voices: three video cards, then the badge row ---- */
.videos { display: grid; gap: var(--space-4); }
.video { background: var(--bg-light); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1); }
.video__poster { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; background: var(--bg-primary); }
.video__poster::before { content: ""; position: absolute; inset: 0; background: var(--ldr-primary-100); opacity: 0.08; }
.play { width: 4rem; height: 4rem; border-radius: var(--radius-full); background: var(--bg-light); position: relative; box-shadow: var(--shadow-3); }
.play::after { content: ""; position: absolute; left: 1.55rem; top: 1.1rem; border-left: 1.1rem solid var(--ldr-primary); border-top: 0.9rem solid transparent; border-bottom: 0.9rem solid transparent; }
.video__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; flex: 1; justify-content: space-between; }
.video__body h3 { margin: 0; }
.badges { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); }
.badges h3 { margin-bottom: var(--space-4); }
.badges__list { display: grid; gap: var(--space-3); }
.badge { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--bg-light); border-radius: var(--radius-md); font-weight: var(--fw-strong); color: var(--fg-on-light); line-height: var(--lh-tight); }
.badge__mark { width: 3.5rem; height: 3.5rem; border-radius: var(--radius-full); background: var(--bg-pale); color: var(--ldr-primary-600); flex: none; display: grid; place-items: center; }
.badge__mark svg { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 48em) { .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .badges__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- S7 community news: the navy photo panel (03.7), white button (03.8) ---- */
.panel { position: relative; isolation: isolate; display: grid; overflow: hidden; border-radius: var(--radius-md); background: var(--bg-navy); box-shadow: var(--shadow-4); }
.panel__media { min-height: 15rem; }
.panel__copy { position: relative; z-index: var(--z-above); padding: var(--space-5) var(--space-4); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.panel__copy .eyebrow { color: var(--fg-on-dark-muted); }
.panel__copy h3 { color: var(--fg-on-dark); font-size: var(--fs-h2); letter-spacing: var(--ls-display); margin-bottom: var(--space-3); }
.panel__copy p { color: var(--fg-on-dark-muted); margin-bottom: var(--space-4); }
@media (min-width: 56em) { .panel { grid-template-columns: 1fr 1fr; min-height: 21rem; } .panel__copy { padding: var(--space-6); } .panel__media { min-height: 100%; } }

/* ---- S8 work here: thin pale strip ---- */
.workstrip { background: var(--bg-pale); padding-block: var(--space-5); }
.workstrip__in { display: grid; gap: var(--space-3); }
.workstrip__line { margin: 0; font-size: var(--fs-body-lg); font-weight: var(--fw-display); color: var(--fg-on-light); max-width: 36rem; }
.workstrip__act { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.workstrip__call { color: var(--fg-on-light-body); font-size: var(--fs-body-sm); }
@media (min-width: 56em) { .workstrip__in { grid-template-columns: 1fr auto; align-items: center; gap: var(--space-6); } }

/* ---- credentials bar (pd-xphtx.18, Terry 11-03 18:22): one full-width navy band, no label, three centred white cards with the logos inside.
   Terry's call for this one bar supersedes 03.7 (navy as card fill only); flagged for a playbook amendment. The white card on navy is the edge
   (18.07:1), so the cards carry no hairline and no shadow: a navy-alpha shadow on a navy ground draws nothing. Captions: navy and slate on white.
   Phone: the cards stack as short rows, logo left. From 48em: three across, logo above the caption. ---- */
.creds { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-navy); padding-block: var(--space-5); }
.creds__list { margin: 0 auto; padding: 0; display: grid; gap: var(--space-2); max-width: 64rem; }
.cred { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--bg-light); border-radius: var(--radius-md); color: var(--fg-on-light); }
.cred__logo { display: block; width: 5.5rem; height: 3.75rem; }
.cred__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cred__text { font-size: var(--fs-body-sm); line-height: var(--lh-tight); }
.cred__what { display: block; font-weight: var(--fw-strong); color: var(--fg-on-light); }
.cred__who { display: block; color: var(--fg-on-light-body); margin-top: var(--baseline); }
@media (min-width: 48em) {
  .creds { padding-block: var(--space-6); }
  .creds__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
  .cred { grid-template-columns: 1fr; align-content: start; justify-items: center; text-align: center; padding: var(--space-4) var(--space-3); gap: var(--space-3); } /* rows start at the top so the three logos and the three caption tops line up across the cards */
  .cred__logo { height: 4rem; width: 11rem; max-width: 100%; }
  .cred__logo--wide { width: 9rem; } /* the CMS wordmark is wide and dense; held narrower so the three marks carry the same visual weight */
  .cred__text { text-wrap: balance; }
}
@media (min-width: 64em) { .creds__list { gap: var(--space-4); } .cred { padding: var(--space-4); } }

/* ---- footer: the facelift's (05.11): three columns, locations as grey cards, compliance pills, the blue bar ---- */
.footer { background: var(--bg-light); border-top: 1px solid var(--border-subtle); padding-top: var(--space-section); color: var(--fg-on-light-body); }
.footer__grid { display: grid; gap: var(--space-6); }
.footer__locs { display: grid; gap: var(--space-3); align-content: start; }
.loc { display: flex; flex-direction: column; gap: var(--baseline); padding: var(--space-3) var(--space-4); background: var(--bg-soft); border-radius: var(--radius-md); }
.loc strong { color: var(--fg-on-light); }
.loc__tel { font-size: var(--fs-body-lg); min-height: var(--tap); display: inline-flex; align-items: center; }
.footer h4 { margin: 0 0 var(--space-3); font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--fg-on-light); }
.footer__links a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--fg-on-light-body); }
.footer__links a:hover { color: var(--ldr-primary-600); }
.notices { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); font-size: var(--fs-body-sm); }
.notices li::before { content: none; }
.notices a { color: var(--fg-on-light-body); min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 var(--space-3); border-radius: var(--radius-full); background: var(--bg-soft); }
.notices a:hover { background: var(--bg-pale); color: var(--ldr-primary-600); }
.footer__lines { margin-top: var(--space-4); font-size: var(--fs-body-sm); }
.footer__bar { margin-top: var(--space-6); background: var(--bg-primary); color: var(--fg-on-dark); font-size: var(--fs-body-sm); text-align: center; padding: var(--space-4) 0; }
.footer__bar p { margin: 0 auto; }
@media (min-width: 56em) { .footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.9fr); gap: var(--space-7); } }
@media (max-width: 63.99em) { .footer__bar { padding-bottom: calc(var(--bbar-h) + var(--space-3)); } }

/* ---- accent family (07): rings are the free flourish, behind copy, computers only; the dash is on every eyebrow ---- */
.accent { position: absolute; pointer-events: none; display: none; z-index: -1; }
.accent svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke-width: var(--ldr-accent-stroke); }
.accent circle, .accent path { fill: none; }
@media (min-width: 64em) { .accent { display: block; } }
.accent--rings { width: calc(var(--ldr-accent-ring-step) * 2 * var(--ldr-accent-ring-count)); height: calc(var(--ldr-accent-ring-step) * 2 * var(--ldr-accent-ring-count)); -webkit-mask-image: radial-gradient(closest-side, var(--ldr-accent-mask-on), transparent); mask-image: radial-gradient(closest-side, var(--ldr-accent-mask-on), transparent); }
.accent--r-right { right: 0; top: 50%; transform: translate(50%, -50%); }
.accent--r-left { left: 0; top: 50%; transform: translate(-50%, -50%); }
.accent--rings circle { stroke: var(--ldr-accent-on-pale); }
.section:not(.section--grey):not(.section--pale) .accent--rings circle { stroke: var(--ldr-accent-on-light); }
.accent--on-navy circle, .accent--on-blue circle { stroke: var(--ldr-accent-on-navy) !important; }
.accent--heart { right: calc(var(--space-6) * -1); bottom: calc(var(--space-7) * -2); width: 20rem; height: 18rem; }
.accent--heart path { stroke: var(--ldr-accent-heart-on-navy); }
.accent--heart-light path { stroke: var(--ldr-accent-heart-on-light); }
.navy-card > .accent, .panel > .accent { z-index: 0; }

/* ---- the curved headline underline on page-head h1s (07.7), drawn once ---- */
.u { position: relative; isolation: isolate; display: inline-block; white-space: nowrap; }
.u svg { z-index: -1; position: absolute; left: 0; right: 0; bottom: -0.2em; width: 100%; height: 0.32em; overflow: visible; }
.u path { fill: none; stroke: var(--ldr-primary); stroke-width: var(--ldr-move-underline-weight); stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw var(--duration-draw) 500ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .u path { stroke-dashoffset: 0; animation: none; } .card, .quick a { transition: none; } }

/* round 3 (pd-xphtx.10): phone behaviour stays on phones. Tablet (768 to 1279) gets the desktop header, in flow, tightened to hold at 820 and 1024. */
@media (min-width: 48em) and (max-width: 79.99em) {
  .bbar, .msheet, .menu-btn { display: none !important; }
  body { padding-bottom: 0; }
  .utility { display: block; }
  .header-wrap { top: calc(var(--space-2) - var(--space-3)); }
  .header-wrap .header { position: relative; top: var(--space-3); }
  .nav { display: flex; min-width: 0; }
  .header__card { gap: var(--space-1); padding: var(--space-1) var(--space-2); }
  .header__logo img { width: 8.5rem; }
  .nav__list { gap: 0; }
  .nav__link { padding: 0 0.25rem 0 0.5rem; font-size: 0.875rem; }
  .nav__btn { min-width: 1.5rem; padding-right: 0.25rem; }
  .header__book { display: inline-flex; padding: 0 var(--space-2); font-size: 0.875rem; min-height: 2.75rem; white-space: nowrap; }
  .hero { padding-top: calc(var(--header-card-h) + var(--space-6) + var(--space-3)); }
}
@media (min-width: 48em) and (max-width: 63.99em) {
  .header__book { display: none; }
  .nav { justify-content: flex-end; }
  .nav__link { font-size: 0.8125rem; padding-left: 0.375rem; }
  .utility__group:last-child a:not(.utility__phone) { display: none; }
}
.header__round { display: flex; align-items: center; gap: var(--space-1); }
.header__phone { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; }
@media (min-width: 64em) { .header__phone, .header__round { display: none; } } /* from 1024 the header carries the phone as its Call button */
/* 820 header: no room for the Call pill, so the phone icon button stays, filled so it reads as the call path */
@media (min-width: 48em) and (max-width: 63.99em) {
  .header__round { display: flex; margin-left: var(--space-1); }
  .header__phone { background: var(--bg-primary); color: var(--fg-on-dark); border-radius: var(--radius-full); }
  .header__phone .icon { stroke: currentColor; }
  .header__logo img { width: 7.5rem; }
  .nav__link { font-size: 0.75rem; padding-left: 0.25rem; padding-right: 0.125rem; }
}

/* ===== Terry 11-03 17:41 (pd-xphtx.14): system-wide, so the homepage and every page get them ===== */
/* 2. centered section variant: eyebrow gets a bar on each side, H2, intro and the section CTA centered */
.section--center .section-head { margin-inline: auto; text-align: center; }
.section--center .section-head .eyebrow { justify-content: center; }
.section--center .section-head .eyebrow::after, .section-head--center .eyebrow::after { content: ""; width: var(--ldr-move-rule-length); height: var(--ldr-move-rule-weight); border-radius: 2px; background: currentColor; }
.section--center .section-head h2 { text-wrap: balance; }
.section--center .section-act { justify-content: center; }
.section--center .stats { text-align: left; }

/* 5. grey grounds: texture T2-b (Brush), Terry's pick 2026-11-03 19:15. One WebP tile (base/textures/tex-brush.webp, built by design/texture-trial/make-textures.py) laid over the flat grey at 520px, soft-light at 0.55. Grey sections only; white, light blue and navy stay flat. The layer sits behind content (z -1 inside the section's own stacking context) and carries no text. */
:root { --tex-brush: url("assets/tex/tex-brush.webp"); }
.section--grey::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--tex-brush) 0 0 / 520px 520px repeat; mix-blend-mode: soft-light; opacity: 0.55; }

/* 6. pale sections holding the tile rows: a light-blue wash that deepens toward the bottom right; blue hairline on cards; navy circle, white glyph */
.section--pale:has(.quick), .section--pale:has(.facts) { background-image: linear-gradient(135deg, var(--bg-pale) 0%, var(--bg-pale) 35%, var(--ldr-primary-20) 100%); }
.quick a, .fact { border: 1px solid var(--ldr-primary-40); box-shadow: var(--shadow-3); }
.quick a > .ico, .fact > .ico, .fact__addr > .ico { box-sizing: content-box; padding: var(--space-1); border-radius: var(--radius-full); background: var(--bg-navy); color: var(--fg-on-dark); }
.fact > .ico, .fact__addr > .ico { padding: var(--space-2); }

/* H1 swoop, one look on every hero (Terry 11-03 17:41, round 2): a primary-blue core on a thin pale keyline, so it reads as a blue line darker than the light blue and holds 3:1 on photo and flat-blue bands alike */
.u path:not(.k), .hero__accent path:not(.k), .hero--card .hero__accent path:not(.k) { stroke: var(--swoop-core); stroke-width: calc(var(--ldr-move-underline-weight) + 2); }

/* deep blue core: primary mixed toward navy, so it stays a blue and sits about 3:1 under the hero ground */
:root { --swoop-core: color-mix(in srgb, var(--ldr-primary) 25%, var(--ldr-primary-900)); }

/* hero eyebrow (pd-xphtx.15): when the hero copy is centered (phones and tablets) the eyebrow gets a bar on both sides, like every centered eyebrow */
@media (max-width: 63.99em) {
  .hp__copy .eyebrow, .hc__copy .eyebrow { display: flex; justify-content: center; max-width: 19.5rem; margin-inline: auto; }
  .hp__copy .eyebrow::before, .hc__copy .eyebrow::before { display: block; flex: none; }
  .hp__copy .eyebrow::after, .hc__copy .eyebrow::after { content: ""; display: block; flex: none; width: var(--ldr-move-rule-length); height: var(--ldr-move-rule-weight); border-radius: 2px; background: currentColor; }
}
