/* Shared styles for the inner pages. Tokens and components copied from index.html (the homepage keeps its own inline copy). */
:root {
  --ink: #373533;
  --charcoal: #3A3835;
  --charcoal-2: #55524E;
  --green: #507753;
  --green-dark: #004121;
  --red: #B42D18;
  --mist: #F9FAF9;
  --line: #E4E7E4;
  --rule: #D8DAD8;
  --gray: #F2F2F2;
  --gray-2: #E8EAE8;
  --muted: #6E6B67;
  --muted-2: #8A8782;
  --on-dark: #E6E4E1;
  --stone: #A9A5A0;
  --sage-light: #D6E2D7;
  --pink-light: #F6DCD7;
  --white: #FFFFFF;
  --f-head: 'League Spartan', Arial, sans-serif;
  --f-ui: 'Poppins', Arial, sans-serif;
  --f-body: 'Crimson Text', Georgia, serif;
  --pad-y: clamp(40px, 6vw, 80px);
  /* Content column: 60px gutters up to 1360px wide, then a centered 1500px column, matching the Squarespace site. --pad-in is the full-width header gutter and the gutter inside a half-width panel. */
  --pad-in: clamp(20px, 5vw, 60px);
  --pad-x: max(var(--pad-in), calc((100vw - 1500px) / 2));
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f-body); font-size: clamp(21.06px, 1.75vw, 24.64px); line-height: 1.8; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
img { max-width: 100%; }
.page { background: var(--white); overflow-x: clip; }

/* Type */
.eyebrow { font-family: var(--f-ui); font-weight: 500; font-size: 14.27px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.h1 { font-family: var(--f-head); font-weight: 400; letter-spacing: 0.01em; font-size: clamp(40.31px, 4.4vw, 57.47px); line-height: 1.266; color: var(--white); margin: 0 0 28px; text-wrap: pretty; }
.h2 { font-family: var(--f-head); font-weight: 400; letter-spacing: 0.01em; font-size: clamp(34.23px, 3.4vw, 47.1px); line-height: 1.3; color: var(--green-dark); margin: 0 0 16px; }
.h3 { font-family: var(--f-head); font-weight: 400; letter-spacing: 0.01em; font-size: 26.37px; line-height: 36.03px; color: var(--green-dark); margin: 0 0 8px; }
.h3 a { text-decoration: none; }
.small { font-size: 21.06px; line-height: 37.92px; }
.mid { font-size: 22.08px; line-height: 37.92px; }
.muted { color: var(--muted); }
.links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 21.06px; line-height: 37.92px; }
p { margin: 0; }

/* Buttons */
.btn { display: inline-block; font-family: var(--f-ui); font-weight: 500; font-size: 17.73px; letter-spacing: 0.02em; padding: 19px 32px; text-decoration: none; white-space: nowrap; border: 2px solid transparent; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--charcoal); }
.btn-white { background: var(--white); color: var(--green-dark); }
.btn-white:hover { color: var(--green-dark); }
.btn-emergency { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-emergency:hover { background: var(--red); color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 520px) { .btn-row .btn { flex: 1 1 100%; text-align: center; } }

/* Layout */
.section { padding: var(--pad-y) var(--pad-x); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.split > .col-center { display: flex; flex-direction: column; justify-content: center; }
.card { border-top: 3px solid var(--green); padding-top: 20px; }
.card.red { border-top-color: var(--red); }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Breakpoint swaps (R1 2026-10-17: phone menu <= 1400px so laptops see every link) */
@media (max-width: 1400px) { .only-desktop { display: none !important; } }
@media (min-width: 1401px) { .only-mobile { display: none !important; } }

/* Open / closed state — html[data-open] is set by the hours script */
.when-closed { display: none; }
html[data-open="false"] .when-open { display: none; }
html[data-open="false"] .when-closed { display: flex; }
.mobile-strip { display: none; text-align: center; padding: 13px 8px; justify-content: center; }
.mobile-strip a { color: var(--white); font-family: var(--f-ui); font-weight: 500; font-size: 17.01px; letter-spacing: 0.02em; text-decoration: none; }
html[data-open="true"] .mobile-strip.when-open { display: flex; background: var(--red); }
html[data-open="false"] .mobile-strip.when-closed { display: flex; background: var(--charcoal); }

/* Utility bar */
.utility { background: var(--charcoal); display: flex; justify-content: flex-end; align-items: center; gap: 30px; padding: 11px var(--pad-in); }
.utility a, .utility span { font-family: var(--f-head); font-weight: 500; font-size: 17px; letter-spacing: 0.04em; color: var(--white); text-decoration: none; white-space: nowrap; }
.utility a.soft { color: var(--on-dark); }
.utility a:hover { color: var(--white); text-decoration: underline; }
.utility span { color: var(--stone); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; }
.nav { background: var(--mist); display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 22px var(--pad-in); border-bottom: 1px solid var(--line); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 1.8vw, 30px); flex-wrap: nowrap; }
.nav-link { background: transparent; border: 0; padding: 0; cursor: pointer; font-family: var(--f-head); font-weight: 500; font-size: 19px; letter-spacing: 0.03em; color: var(--ink); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.nav-link:hover { color: var(--green); }
.nav-link svg { transition: transform .15s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav .btn { padding: 17px 30px; }
.mega { background: var(--white); border-bottom: 4px solid var(--green); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; padding: 38px var(--pad-in) 44px; }
.mega[hidden] { display: none; }
.mega .eyebrow { color: var(--muted-2); }
.mega ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 21px; line-height: 30px; }
.mega .aside { background: var(--gray); padding: 24px 26px; }
.mega .aside ul { gap: 11px; font-size: 21.06px; line-height: 35px; }

.mnav { background: var(--mist); display: flex; align-items: center; justify-content: space-between; padding: 6px 20px; border-bottom: 1px solid var(--line); }
.mnav > a { padding: 13px 0; }
.burger { background: transparent; border: 0; padding: 9px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.burger span { width: 26px; height: 2px; background: var(--ink); display: block; }
.mmenu { background: var(--white); padding: 22px 20px 26px; border-bottom: 4px solid var(--green); max-height: calc(100vh - 110px); overflow-y: auto; }
.mmenu[hidden] { display: none; }
.mmenu .btn { display: block; text-align: center; padding: 14px; }
.mmenu .btn-green { padding: 16px; }
.mmenu-ctas { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.btn-outline-ink { background: var(--white); color: var(--ink); border-color: var(--ink); }
.mmenu ul { margin: 0; padding: 0; list-style: none; }
.mmenu li { border-top: 1px solid var(--line); }
.mmenu li:last-child { border-bottom: 1px solid var(--line); }
.mmenu li a { display: block; padding: 16px 0; font-family: var(--f-head); font-size: 21px; color: var(--ink); text-decoration: none; }

/* Hero */
.hero { background: var(--charcoal); }
.hero-copy { padding: clamp(40px, 6vw, 84px) var(--pad-in) clamp(40px, 6vw, 84px) var(--pad-x); }
.hero-mark { height: 168px; width: 168px; display: block; margin: 0 0 34px -8px; }
.award { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.award img { height: 74px; width: auto; display: block; }
.award span { font-family: var(--f-ui); font-weight: 500; font-size: 14.27px; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark); max-width: 20ch; }
.hero-copy > p { margin: 0 0 36px; color: var(--on-dark); }
.hero-photo { min-height: clamp(240px, 32vw, 440px); background: var(--charcoal-2); }
.hero-photo img { min-height: clamp(240px, 32vw, 440px); }

/* Emergency band */
.band { align-items: center; justify-content: space-between; gap: 28px; padding: 26px var(--pad-x); flex-wrap: wrap; }
.band.when-open { display: flex; background: var(--red); }
html[data-open="false"] .band.when-open { display: none; }
.band.when-closed { background: var(--charcoal); }
.band-title { font-family: var(--f-head); font-weight: 400; font-size: clamp(22.08px, 2.3vw, 26.37px); line-height: 1.366; letter-spacing: 0.01em; color: var(--white); }
.band .btn-on-red { background: var(--white); color: var(--red); padding: 18px 30px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 44px 50px; }

/* Insurance (BenefitWatch section — tokens via its custom properties) */
.insurance-band { background: var(--mist); border-top: 1px solid var(--line); }
.insurance-band #insurance {
  --insurance-color: var(--ink);
  --insurance-background: var(--mist);
  --insurance-padding: var(--pad-y) var(--pad-x);
  --insurance-width: none;
  --insurance-caveat-color: var(--muted);
}
#insurance h2 { font-family: var(--f-head); font-weight: 400; letter-spacing: 0.01em; font-size: clamp(34.23px, 3.4vw, 47.1px); line-height: 1.3; color: var(--green-dark); margin: 0 0 16px; }
#insurance h3 { font-family: var(--f-head); font-weight: 400; letter-spacing: 0.01em; font-size: 26.37px; line-height: 36.03px; color: var(--green-dark); margin: 0 0 8px; border-top: 3px solid var(--green); padding-top: 20px; }
#insurance p { max-width: none; color: var(--muted); margin: 0 0 16px; }
#insurance .insurance-lists { gap: 44px 50px; margin-top: 32px; margin-bottom: 24px; }
#insurance ul { margin: 0; padding: 0; list-style: none; font-size: 21.06px; line-height: 1.6; }
#insurance li { border-bottom: 1px solid var(--line); padding: 10px 0; margin: 0; }
#insurance .insurance-content > p { font-size: 21.06px; line-height: 37.92px; }
#insurance ul.insurance-lists { display: block; columns: 3 15rem; column-gap: 50px; }
#insurance ul.insurance-lists li { break-inside: avoid; margin: 0; }
.prose ul.plan-list, ul.plan-list { list-style: none; padding: 0; margin: 24px 0; columns: 2 15rem; column-gap: 50px; font-size: 21.06px; line-height: 1.6; }
ul.plan-list li { break-inside: avoid; border-bottom: 1px solid var(--line); padding: 10px 0; }

/* Plan */
.plan-pitch { background: var(--green); padding: var(--pad-y) var(--pad-in) var(--pad-y) var(--pad-x); color: var(--white); }
.plan-pitch .eyebrow { color: var(--white); margin-bottom: 20px; }
.plan-pitch .h2 { color: var(--white); margin-bottom: 6px; }
.plan-pitch .rule { width: 44px; height: 3px; background: var(--white); margin-bottom: 24px; }
.plan-pitch .btn { padding: 20px 34px; }
.plan-pitch .btn-ghost-light { padding: 18px 32px; }
.plan-detail { background: var(--white); padding: var(--pad-y) var(--pad-x) var(--pad-y) var(--pad-in); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 34px; }
.price { margin: 0 0 12px; font-family: var(--f-head); font-weight: 400; letter-spacing: 0.01em; font-size: 36.74px; line-height: 48.96px; color: var(--green-dark); }
.price span { font-size: 21.06px; color: var(--muted); }

/* New patients + forms */
.np { background: var(--gray); }
.photo-cell { background: var(--gray-2); }
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 44px 56px; align-items: start; }
.forms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 30px 40px; }
.forms-grid .card { padding-top: 18px; }

/* Aftercare + contact */
.aftercare { background: var(--mist); padding: clamp(40px, 5vw, 64px) var(--pad-x); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 44px; }
.aftercare .eyebrow { margin-bottom: 14px; }

/* Footer */
.footer-mark { background: var(--charcoal); padding: 44px var(--pad-x) 0; border-top: 1px solid var(--charcoal-2); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-mark img { height: 78px; width: auto; display: block; }
.footer-note { background: var(--charcoal); color: var(--on-dark); display: flex; align-items: center; gap: 20px; font-family: var(--f-head); font-weight: 400; font-size: clamp(22px, 2vw, 26px); line-height: 1.3; letter-spacing: 0.02em; padding: 24px var(--pad-x) 44px; border-top: 1px solid var(--charcoal-2); }
.footer-note img { height: 84px; width: auto; display: block; flex: none; }
.footer { background: var(--charcoal); color: var(--on-dark); padding: 34px var(--pad-x) 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; font-size: 22.08px; line-height: 37.92px; }
.footer .eyebrow { color: var(--stone); line-height: 25.686px; margin-bottom: 14px; }
.footer a { color: var(--on-dark); }
.footer .site-links { display: flex; flex-direction: column; }

@media (max-width: 1200px) { .utility, .nav, .mega { padding-left: var(--pad-in); padding-right: var(--pad-in); } }

/* Inner pages */
/* Compact title band (Nick 2026-10-17: the first cut was 2-3x too tall). */
.page-hero { background: var(--charcoal); color: var(--on-dark); padding: clamp(24px, 3vw, 40px) var(--pad-x); }
.page-hero .eyebrow { color: var(--sage-light); margin-bottom: 8px; }
.page-hero .h1 { font-size: clamp(38px, 3.9vw, 54px); line-height: 1.2; margin: 0 0 10px; max-width: none; }
.page-hero .lede { max-width: none; margin: 0 0 18px; font-size: inherit; line-height: 1.6; }
.page-hero .lede:last-child { margin-bottom: 0; }
.page-hero .btn { padding: 13px 24px; }
.page-hero.red { background: var(--red); }
.page-hero.red .eyebrow { color: var(--pink-light); }
.page-hero.green { background: var(--green); color: var(--white); }
.page-hero.green .eyebrow { color: var(--white); }
.prose { max-width: none; }
.prose p { margin: 0 0 20px; }
.prose ul { margin: 0 0 20px; padding-left: 1.2em; }
.prose li { margin: 0 0 8px; }
.prose .h2 { margin-top: 8px; }
.prose .h3 { margin-top: 28px; }
.section.alt { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.gray { background: var(--gray); }
.callout { border-top: 3px solid var(--green); background: var(--mist); padding: 18px 22px; margin: 0 0 24px; }
.callout.red { border-top-color: var(--red); background: #FBF1EF; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 44px 56px; }
.status { display: none; }
html[data-open="true"] .status.when-open, html[data-open="false"] .status.when-closed { display: block; }
.qa { border-top: 1px solid var(--line); padding: 22px 0; max-width: none; }
.qa h3 { margin-bottom: 6px; }
.qa p + p { margin-top: 12px; }
.faq-group { margin-bottom: 48px; }
.faq-group > .eyebrow { margin-bottom: 4px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 40px; padding: 0; list-style: none; font-family: var(--f-ui); font-size: 16px; }
.toc a { display: inline-block; padding: 10px 0; }
.person { border-top: 3px solid var(--green); padding-top: 18px; }
.person p { font-size: 21.06px; line-height: 1.7; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px 56px; }
blockquote.quote { margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--sage-light); font-style: italic; max-width: none; }
.fineprint { font-size: 19px; line-height: 1.6; color: var(--muted); }
.nav-link[aria-current="page"] { color: var(--green); }
table.math { border-collapse: collapse; width: 100%; max-width: 34rem; margin: 0 0 24px; font-size: 21px; }
table.math td { padding: 10px 0; border-bottom: 1px solid var(--line); }
table.math td + td { text-align: right; font-family: var(--f-head); white-space: nowrap; padding-left: 16px; }
table.math tr.total td { font-weight: 700; border-bottom: 2px solid var(--green); }
/* Insurance-advice chapters (numbered, colour-coded; Nick 2026-10-17) */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.jump a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-size: 15px; color: var(--white); text-decoration: none; border: 1px solid var(--stone); padding: 8px 16px 8px 8px; border-radius: 999px; }
.jump a:hover { background: var(--white); color: var(--charcoal); }
.jump span { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-size: 14px; }
.chapter { border-top: 6px solid var(--c); scroll-margin-top: 90px; }
.chapter-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.chapter-head .num { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: var(--white); display: grid; place-items: center; font-family: var(--f-head); font-size: 28px; }
.chapter-head .eyebrow { margin-bottom: 4px; color: var(--c); }
.chapter-head .h2 { margin: 0; }
blockquote.pull { margin: 32px 0 0; padding: 22px 26px; background: var(--white); border-left: 5px solid var(--red); max-width: none; }
blockquote.pull p { margin: 0 0 10px; font-size: clamp(21px, 1.7vw, 24px); }
blockquote.pull p.small { margin: 0; color: var(--muted); font-size: 19px; }
.compare-wrap { max-width: none; }
table.compare { border-collapse: collapse; width: 100%; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.4; }
table.compare th, table.compare td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare thead th { font-family: var(--f-ui); font-weight: 500; font-size: 15px; color: var(--muted); }
table.compare thead th.plan { color: var(--green-dark); }
table.compare tbody th { font-weight: 400; color: var(--muted); }
table.compare td.plan { background: #EEF4EE; }
table.compare tr.total th, table.compare tr.total td { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--green); }
ul.checks { list-style: none; padding: 0; counter-reset: step; }
ul.checks li { position: relative; padding-left: 46px; counter-increment: step; }
ul.checks li::before { content: counter(step); position: absolute; left: 0; top: .2em; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--white); font-family: var(--f-head); font-size: 17px; line-height: 32px; text-align: center; }
@media (max-width: 520px) { .chapter-head .num { width: 44px; height: 44px; font-size: 22px; } table.compare th, table.compare td { padding: 10px 6px; } }
figure.story { margin: 0; max-width: none; position: relative; padding-left: clamp(0px, 4vw, 56px); }
figure.story::before { content: '\201C'; position: absolute; left: -6px; top: -34px; font-family: var(--f-body); font-size: 120px; line-height: 1; color: var(--pink-light); }
figure.story blockquote { margin: 0; }
figure.story p { font-size: clamp(23px, 2vw, 28px); line-height: 1.6; margin: 0 0 20px; }
figure.story p.kicker { font-style: italic; color: var(--red); }
figure.story figcaption { font-family: var(--f-ui); font-size: 15px; color: var(--muted); }
@media (max-width: 520px) { figure.story::before { display: none; } }
/* R5: on phones each comparison row stacks its label over the two values. */
@media (max-width: 520px) {
  table.compare, table.compare thead, table.compare tbody { display: block; }
  table.compare tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  table.compare tr.total { border-bottom: 2px solid var(--green); }
  table.compare th, table.compare td, table.compare tr.total th, table.compare tr.total td { border-bottom: 0; }
  table.compare thead th:first-child { display: none; }
  table.compare thead th { font-size: 16px; }
  table.compare tbody th { grid-column: 1 / -1; padding-bottom: 0; font-family: var(--f-ui); font-size: 16px; }
  table.compare.three tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
