/* ============================================================
   Bastyr Center for Natural Health — Patient Resource Site
   Official Bastyr University brand palette (brand.bastyr.edu/colors)
   Primary: Cranberry #93282C · Secondary: Turmeric #CC8A00
   Tertiary: Bluebird #1880B0 · Warm neutrals
   Rules honored: Turmeric never used as text on white;
   Bluebird only in small web-accent doses; white space dominant.
   ============================================================ */
:root {
  --cran: #93282C;          /* Cranberry — primary (Leadership) */
  --cran-tint: rgba(147, 40, 44, 0.08);
  --turmeric: #CC8A00;      /* Turmeric — secondary (Optimistic) */
  --turmeric-tint: rgba(204, 138, 0, 0.14);
  --bluebird: #1880B0;      /* Bluebird — tertiary (Soothing) */
  --bluebird-tint: rgba(24, 128, 176, 0.12);
  --charcoal: #393938;      /* body text */
  --midnight: #2A2A29;      /* dark bars, footer */
  --mist: #E8E8E7;          /* lines, borders */
  --cloud: #C9C9C7;
  --storm: #6E6E6B;         /* muted text (darkened from brand Storm #8C8C89 for WCAG AA contrast on white) */
  --storm-brand: #8C8C89;   /* original brand Storm — decorative use on dark backgrounds */
  --eggshell: #F6F6F5;      /* alt band background */
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(42, 42, 41, 0.08);
  --shadow-lg: 0 8px 28px rgba(42, 42, 41, 0.14);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: "Source Sans 3", "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--charcoal); background: var(--white);
}
h1, h2, h3, h4 { font-family: "Lora", Georgia, serif; color: var(--cran); line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--cran); }
a:hover { color: var(--midnight); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1rem 1.35rem; }
li { margin-bottom: .4rem; }
li::marker { color: var(--bluebird); }
.small { font-size: .9rem; color: var(--storm); }
/* Focus ring: blue with a white edge on both sides, so it shows on white, cranberry, gold and dark backgrounds alike. */
:focus-visible { outline: 3px solid var(--bluebird); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--turmeric); color: var(--midnight); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Utility bar ---------- */
.utility { background: var(--midnight); color: var(--cloud); font-size: .85rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.utility a { color: var(--eggshell); text-decoration: none; }
.utility a:hover { color: var(--turmeric); }
.utility .u-links { display: flex; gap: 18px; }

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--mist);
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 20px; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 56px; width: auto; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--cran); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: "Lora", serif; font-weight: 700; font-size: 1.15rem; }
.brand-name { font-family: "Lora", serif; color: var(--cran); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.brand-name span { display: block; font-family: "Source Sans 3", sans-serif; font-size: .75rem; color: var(--storm); letter-spacing: .06em; text-transform: uppercase; }

nav.main > ul { display: flex; list-style: none; margin: 0; gap: 4px; align-items: center; }
nav.main > ul > li { position: relative; margin: 0; }
nav.main a.top { display: block; padding: 10px 13px; color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px; }
nav.main a.top:hover, nav.main li:hover > a.top { background: var(--cran-tint); color: var(--cran); }
.dropdown { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 250px; border: 1px solid var(--mist); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; display: none; list-style: none; margin: 0; }
nav.main li:hover > .dropdown, nav.main li:focus-within > .dropdown { display: block; }
.dropdown li { margin: 0; }
.dropdown li.dd-label { font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--storm); padding: 8px 12px 2px; }
.dropdown li::marker { content: ""; }
.dropdown a { display: block; padding: 8px 12px; text-decoration: none; color: var(--charcoal); border-radius: 6px; font-size: .93rem; }
.dropdown a:hover { background: var(--eggshell); color: var(--cran); }

.btn { display: inline-block; background: var(--cran); color: var(--white) !important; text-decoration: none; font-weight: 700; padding: 11px 22px; border-radius: 999px; font-size: .95rem; border: 2px solid var(--cran); transition: all .15s; }
.btn:hover { filter: brightness(.82); }
.btn.ghost { background: transparent; color: var(--cran) !important; }
.btn.ghost:hover { background: var(--cran-tint); filter: none; }
.btn.gold { background: var(--turmeric); border-color: var(--turmeric); color: var(--midnight) !important; }
.btn.gold:hover { filter: brightness(.92); }

.nav-toggle { display: none; background: none; border: 2px solid var(--cran); border-radius: 8px; padding: 6px 10px; font-size: 1.2rem; color: var(--cran); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: var(--cran); color: var(--white); }
.hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: var(--white); max-width: 720px; }
.hero p.lead { font-size: 1.15rem; max-width: 640px; color: var(--eggshell); margin-top: .6rem; }
.hero .cta-row { margin-top: 1.4rem; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { background: var(--white); border-color: var(--white); color: var(--cran) !important; }
.hero .btn.gold { background: var(--turmeric); border-color: var(--turmeric); color: var(--midnight) !important; }
.hero .btn.ghost { background: transparent; border-color: var(--white); color: var(--white) !important; }
.hero.compact .wrap { padding-top: 40px; padding-bottom: 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: #F5CE85; margin-bottom: .5rem; } /* turmeric tint — 4.5:1+ on cranberry (WCAG AA) */

/* ---------- Breadcrumb ---------- */
.crumbs { background: var(--eggshell); border-bottom: 1px solid var(--mist); font-size: .85rem; }
.crumbs .wrap { padding-top: 8px; padding-bottom: 8px; }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.crumbs span { color: var(--storm); }

/* ---------- Quick actions ---------- */
.quick { background: var(--eggshell); border-bottom: 1px solid var(--mist); }
.quick .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.quick a { display: flex; flex-direction: column; gap: 2px; background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--charcoal); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; border-top: 3px solid var(--cran); }
.quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.quick .q-title { font-weight: 700; color: var(--cran); font-size: .98rem; }
.quick .q-sub { font-size: .82rem; color: var(--storm); }

/* ---------- Sections ---------- */
section.band { padding: 44px 0; }
section.band.alt { background: var(--eggshell); }
section.band.dark { background: var(--midnight); color: var(--mist); }
section.band.dark h2 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-head p { color: var(--storm); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--charcoal); font-size: .95rem; flex: 1; }
.card .card-link { font-weight: 700; text-decoration: none; font-size: .93rem; display: inline-block; padding: 3px 0; margin-right: 10px; }
.card.accent { border-top: 4px solid var(--turmeric); }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bluebird-tint); color: var(--bluebird); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 12px; }

/* ---------- Accordion (native details) ---------- */
.accordion { border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.accordion details { border-bottom: 1px solid var(--mist); }
.accordion details:last-child { border-bottom: none; }
.accordion summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700;
  color: var(--cran); display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; color: var(--bluebird); font-weight: 400; flex-shrink: 0; transition: transform .15s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details[open] summary { background: var(--eggshell); }
.acc-body { padding: 4px 20px 18px; color: var(--charcoal); font-size: .96rem; }
.acc-body ul { margin-top: .4rem; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--mist); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--white); }
table.data th { background: var(--cran); color: var(--white); text-align: left; padding: 11px 14px; font-weight: 600; white-space: nowrap; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--mist); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:nth-child(even) td { background: var(--eggshell); }

/* ---------- Callouts / steps ---------- */
.callout { border-left: 5px solid var(--cran); background: var(--cran-tint); border-radius: 8px; padding: 16px 20px; margin: 1.2rem 0; }
.callout.warn { border-left-color: var(--turmeric); background: var(--turmeric-tint); }
.callout p:last-child { margin-bottom: 0; }
.steps { list-style: none; margin: 1.2rem 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 54px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--cran); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.steps li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 2px; width: 2px; background: var(--mist); }
.steps li:last-child::after { display: none; }
.steps b { color: var(--cran); }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--cran-tint); color: var(--cran); margin-bottom: 8px; }
.badge.gold { background: var(--turmeric-tint); color: var(--charcoal); }

/* ---------- Two-column feature ---------- */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.feature > *, .grid > * { min-width: 0; }   /* lets a column shrink to the screen instead of pushing the page sideways on phones */
.feature .panel { background: var(--white); border: 1px solid var(--mist); border-top: 4px solid var(--turmeric); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cran); color: var(--white); border-radius: var(--radius); padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .3rem; }
.cta-band p { color: var(--eggshell); margin: 0; }
.cta-band .btn { background: var(--white); border-color: var(--white); color: var(--cran) !important; }
.cta-band .btn.gold { background: var(--turmeric); border-color: var(--turmeric); color: var(--midnight) !important; }

/* ---------- Footer ---------- */
footer.site { background: var(--midnight); color: var(--cloud); margin-top: 48px; font-size: .92rem; }
footer.site .wrap { padding-top: 42px; padding-bottom: 24px; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
footer.site h4, footer.site h2 { color: var(--white); font-family: "Source Sans 3", sans-serif; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
footer.site ul { list-style: none; margin: 0; }
footer.site li { margin-bottom: 8px; }
footer.site li::marker { content: ""; }
footer.site a { color: var(--eggshell); text-decoration: none; }
footer.site a:hover { color: var(--turmeric); }
.f-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; font-size: .82rem; color: var(--cloud); }

/* ---------- Mobile ---------- */
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--mist); box-shadow: var(--shadow-lg); max-height: calc(100vh - 120px); overflow-y: auto; }
  nav.main.open { display: block; }
  nav.main > ul { flex-direction: column; align-items: stretch; padding: 10px 16px 16px; }
  .dropdown { position: static; display: block; border: none; box-shadow: none; padding-left: 14px; min-width: 0; }
  .navbar .btn { display: none; }
  .brand-logo { height: 46px; }
  .hero .wrap { padding-top: 36px; padding-bottom: 36px; }
}
@media print {
  header.site, footer.site, .utility, .quick, .cta-band { display: none; }
}

/* ============================================================
   V2 ADDITIONS — Advanced / immersive design
   ============================================================ */

/* ---------- Photo hero ---------- */
.hero.photo { background-size: cover; background-position: center; }
.hero.photo .wrap { padding-top: 84px; padding-bottom: 84px; }
.hero.compact.photo .wrap { padding-top: 64px; padding-bottom: 64px; }

/* ---------- Home slideshow ---------- */
.slideshow { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.slideshow .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.slideshow .slide.active { opacity: 1; }
.slideshow .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(42,20,21,.85) 0%, rgba(147,40,44,.7) 45%, rgba(147,40,44,.15) 100%); }
.slideshow .slide-content { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 90px 20px; width: 100%; color: var(--white); }
.slideshow h1 { color: var(--white); max-width: 700px; font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.slideshow .lead { font-size: 1.2rem; max-width: 600px; color: var(--eggshell); margin-top: .7rem; }
.slideshow .cta-row { margin-top: 1.6rem; display: flex; gap: 12px; flex-wrap: wrap; }
.slideshow .btn { background: var(--white); border-color: var(--white); color: var(--cran) !important; }
.slideshow .btn.gold { background: var(--turmeric); border-color: var(--turmeric); color: var(--midnight) !important; }
.slide-dots { position: absolute; z-index: 3; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; }
.slide-dots button { width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center; }   /* 24px tap target around a 12px dot */
.slide-dots button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); box-sizing: border-box; }
.slide-dots button.active::before { background: var(--turmeric); border-color: var(--turmeric); }
.slide-tag { display: inline-block; background: rgba(204,138,0,.92); color: var(--midnight); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- Photo split rows ---------- */
.photo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin: 34px 0; }
.photo-split.reverse .ps-img { order: 2; }
.ps-img img { border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; height: 360px; object-fit: cover; }
.ps-body h2 { margin-bottom: .6rem; }
@media (max-width: 860px) { .photo-split { grid-template-columns: 1fr; } .photo-split.reverse .ps-img { order: 0; } .ps-img img { height: 240px; } }

/* ---------- Full-bleed + editor layout utilities ---------- */
.full-bleed { width: 100vw; position: relative; left: 50%; margin-left: -50vw; border-radius: 0 !important; }
.mt-0{margin-top:0!important}.mt-1{margin-top:12px!important}.mt-2{margin-top:24px!important}.mt-3{margin-top:48px!important}
.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:12px!important}.mb-2{margin-bottom:24px!important}.mb-3{margin-bottom:48px!important}
.px-0{padding-left:0!important;padding-right:0!important}

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; text-align: center; }
.stat { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 22px 12px; box-shadow: var(--shadow); }
.stat .n { font-family: "Lora", serif; font-size: 2.1rem; font-weight: 700; color: var(--cran); display: block; }
.stat .l { font-size: .88rem; color: var(--storm); }

/* ---------- Chips (services cross-links) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chip { display: inline-block; background: var(--cran-tint); color: var(--cran); border: 1px solid rgba(147,40,44,.25); font-size: .85rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; text-decoration: none; }
.chip:hover { background: var(--cran); color: var(--white); }
.chip.tc { background: var(--bluebird-tint); color: #12608A; border-color: rgba(24,128,176,.3); } /* darkened bluebird for AA text contrast */
.chip.pc { background: var(--turmeric-tint); color: var(--charcoal); border-color: rgba(204,138,0,.4); }

/* ---------- Provider directory ---------- */
.prov-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.prov-filters input, .prov-filters select { padding: 10px 14px; border: 1px solid var(--cloud); border-radius: 8px; font: inherit; min-width: 200px; background: var(--white); }
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.prov-card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
/* Portrait frame (4:5) so headshots are never cropped at the forehead; faces anchored to the top of the frame. */
.prov-card .ph { aspect-ratio: 4 / 5; width: 100%; background: linear-gradient(135deg, var(--cran) 0%, #6f1e22 100%); display: flex; align-items: center; justify-content: center; color: var(--white); font-family: "Lora", serif; font-size: 2.4rem; overflow: hidden; }
.prov-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
@supports not (aspect-ratio: 4 / 5) { .prov-card .ph { height: 290px; } }
@media (max-width: 640px) { .prov-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .prov-card .pb { padding: 12px 12px 14px; gap: 4px; } .prov-card h3 { font-size: .98rem; } .prov-card .cred, .prov-card .dept { font-size: .78rem; } .prov-card .ph { font-size: 1.8rem; } }
.prov-card .pb { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prov-card h3 { font-size: 1.08rem; margin: 0; }
.prov-card .cred { font-size: .85rem; color: var(--storm); }
.prov-card .dept { font-size: .82rem; color: var(--charcoal); }
.care-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.care-tag { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 5px; }
.care-tag.team { background: var(--bluebird-tint); color: #12608A; }
.care-tag.pract { background: var(--turmeric-tint); color: var(--charcoal); border: 1px solid var(--turmeric); }

/* Provider bio */
.prov-bio { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.prov-bio .photo-col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: 16px; box-shadow: var(--shadow-lg); display: block; }
.prov-bio .photo-col .ph-fallback { height: 320px; border-radius: 16px; background: linear-gradient(135deg, var(--cran), #6f1e22); display: flex; align-items: center; justify-content: center; color: var(--white); font-family: "Lora", serif; font-size: 4rem; }
@media (max-width: 800px) { .prov-bio { grid-template-columns: 1fr; } }

/* ---------- Covered vs non-covered ---------- */
.cov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .cov-grid { grid-template-columns: 1fr; } }
.cov { border-radius: var(--radius); border: 1px solid var(--mist); background: var(--white); overflow: hidden; }
.cov .cov-h { padding: 12px 18px; font-weight: 700; color: var(--white); }
.cov.yes .cov-h { background: var(--cran); }
.cov.no .cov-h { background: var(--midnight); }
.cov ul { margin: 14px 18px 16px 34px; }
.cov .cov-note { padding: 0 18px 14px; font-size: .85rem; color: var(--storm); }

/* ---------- Lab estimator ---------- */
.estimator { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.estimator .est-head { background: var(--cran); color: var(--white); padding: 16px 22px; display:flex; justify-content: space-between; align-items:center; flex-wrap: wrap; gap: 8px; }
.estimator .est-head h3 { color: var(--white); margin: 0; }
.est-body { display: grid; grid-template-columns: 1.4fr .8fr; }
@media (max-width: 800px) { .est-body { grid-template-columns: 1fr; } }
.est-list { padding: 18px 22px; max-height: 480px; overflow-y: auto; border-right: 1px solid var(--mist); }
.est-cat { font-weight: 700; color: var(--cran); margin: 14px 0 6px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.est-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--eggshell); }
.est-item input { margin-top: 5px; accent-color: var(--cran); width: 17px; height: 17px; }
.est-item .ei-name { font-weight: 600; }
.est-item .ei-desc { font-size: .84rem; color: var(--storm); }
.est-item .ei-price { margin-left: auto; font-weight: 700; color: var(--cran); white-space: nowrap; }
.est-summary { padding: 22px; background: var(--eggshell); }
.est-total { font-family: "Lora", serif; font-size: 2.2rem; color: var(--cran); font-weight: 700; }
.est-summary ul { list-style: none; margin: 12px 0; font-size: .88rem; }
.est-summary li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--cloud); padding: 4px 0; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card img { height: 190px; width: 100%; object-fit: cover; }
.post-card .pc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .pc-meta { font-size: .8rem; color: var(--storm); }
.post-hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); }
.post-body { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.post-body h2 { margin: 1.6rem 0 .6rem; }

/* ---------- Embeds ---------- */
.embed-block { margin: 1.4rem 0; }
.embed-block .video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.embed-block .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Contact / GHL ---------- */
.ghl-slot { border: 2px dashed var(--cloud); border-radius: var(--radius); background: var(--eggshell); padding: 36px; text-align: center; color: var(--storm); }
.ghl-slot.filled { border: none; background: none; padding: 0; text-align: left; color: inherit; }

/* ---------- Department color coding (subtle left borders) ---------- */
.dept-nm { border-left: 5px solid var(--cran); }
.dept-ac { border-left: 5px solid var(--turmeric); }
.dept-nu { border-left: 5px solid var(--bluebird); }
.dept-co { border-left: 5px solid var(--storm); }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px) scale(.985);
    transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
  .reveal.in { opacity: 1; transform: none; }
  .ps-img img, .post-hero img, .card .icon, .prov-card .ph img, .cta-band { transition: none; }
  .hero.photo, .slideshow .slide { transition: background-position .15s linear; }
}


/* ---------- Cookie consent banner ---------- */
#bcnh-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--midnight); color: var(--eggshell); box-shadow: 0 -4px 20px rgba(0,0,0,.3); }
#bcnh-consent .cc-inner { max-width: var(--max); margin: 0 auto; padding: 18px 20px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
#bcnh-consent .cc-text { margin: 0; flex: 1 1 420px; font-size: .9rem; line-height: 1.5; }
#bcnh-consent a { color: #F5CE85; }
#bcnh-consent .cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-btn { border: 2px solid var(--turmeric); border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.cc-btn.cc-accept { background: var(--turmeric); color: var(--midnight); }
.cc-btn.cc-essential { background: transparent; color: var(--eggshell); border-color: var(--cloud); }
.cc-btn:focus-visible { outline: 3px solid #F5CE85; outline-offset: 2px; }

/* ---------- Documents library ---------- */
.doc-item { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.doc-item .doc-ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 9px; background: var(--cran-tint); color: var(--cran); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; }
.doc-item h3 { font-size: 1.02rem; margin-bottom: 2px; }
.doc-list { display: grid; gap: 12px; margin-top: 10px; }

/* ============================================================
   V4 — "QUIET PRECISION" DESIGN LAYER
   Creative direction: precision-instrument calm meets living
   Pacific-Northwest nature. Ink-dusk atmospheres, paper-porcelain
   surfaces, hairline structure, warm-light accents, spring motion.
   Every rule below refines (never replaces) the brand system.
   ============================================================ */
:root {
  --ink: #1F1213;                      /* cranberry-black atmosphere base */
  --glow: #F5CE85;                     /* warm light accent (AA on dark) */
  --r-s: 10px; --r-m: 16px; --r-l: 22px;
  --hairline: 1px solid rgba(42,42,41,.10);
  --e-1: 0 1px 2px rgba(31,18,19,.05), 0 4px 14px rgba(31,18,19,.06);
  --e-2: 0 2px 6px rgba(31,18,19,.06), 0 14px 34px rgba(31,18,19,.10);
  --e-3: 0 6px 18px rgba(31,18,19,.10), 0 28px 60px rgba(31,18,19,.16);
  --ease: cubic-bezier(.22,1,.36,1);   /* signature spring */
  --t-quick: .18s; --t-soft: .5s; --t-slow: .95s;
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--cran); color: #fff; }
h1, h2 { letter-spacing: -.015em; text-wrap: balance; }
h1 { font-weight: 600; }
p.lead { text-wrap: pretty; }

/* Surfaces: paper porcelain — hairline + layered light shadow */
.card, .stat, .doc-item, .post-card, .prov-card, .estimator, .accordion, .quick a, .feature .panel {
  border-radius: var(--r-m); border: var(--hairline); box-shadow: var(--e-1);
}
.cta-band { border-radius: var(--r-l); background: linear-gradient(120deg, #7d2226 0%, var(--cran) 55%, #a53d41 100%); box-shadow: var(--e-2); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 85% 0%, rgba(245,206,133,.18), transparent 60%); pointer-events: none; }

/* Header: frosted precision bar */
@supports (backdrop-filter: blur(10px)) {
  header.site { background: rgba(255,255,255,.86); backdrop-filter: blur(12px) saturate(1.4); }
}
.dropdown { border-radius: var(--r-m); box-shadow: var(--e-3); border: var(--hairline); }
nav.main a.top { transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease); }

/* Buttons: instrument-grade */
.btn { letter-spacing: .01em; box-shadow: 0 1px 2px rgba(31,18,19,.12);
  transition: transform var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease), filter var(--t-quick) var(--ease), background var(--t-quick) var(--ease); will-change: transform; }
.btn:active { transform: translateY(0) scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,18,19,.20); }
  .card:hover, .quick a:hover, .doc-item:hover, .post-card:hover, .prov-card:hover {
    transform: translateY(-3px); box-shadow: var(--e-2); }
  .card, .doc-item, .post-card, .prov-card {
    transition: transform var(--t-soft) var(--ease), box-shadow var(--t-soft) var(--ease); }
  .chip { transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease); }
  .chip:hover { transform: translateY(-1px); }
}

/* Section rhythm & headline detail */
section.band { padding: 60px 0; }
.section-head h2 { position: relative; padding-bottom: 12px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 2px; background: var(--turmeric); border-radius: 2px; }
section.band.dark { background: linear-gradient(180deg, #262625 0%, var(--midnight) 100%); }
table.data tr:hover td { background: var(--cran-tint); }
.accordion summary { transition: background var(--t-quick) var(--ease); }
.accordion summary:hover { background: var(--eggshell); }

/* ---------- Signature hero: ink-dusk stage with atmosphere canvas ---------- */
.hero-stage { min-height: min(88vh, 700px); isolation: isolate; }
.hero-stage .slide::after { background:
  radial-gradient(120% 90% at 12% 88%, rgba(31,18,19,.92) 0%, rgba(31,18,19,.55) 42%, transparent 75%),
  linear-gradient(100deg, rgba(31,18,19,.88) 0%, rgba(93,25,28,.62) 46%, rgba(31,18,19,.18) 100%); }
#hero-atmos { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease .3s; }
.hero-stage.hero-in #hero-atmos { opacity: 1; }
.hero-stage .slide-content { will-change: transform; transform-style: preserve-3d; }
.hero-stage h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(31,18,19,.45); }
.hero-stage .lead { text-shadow: 0 1px 14px rgba(31,18,19,.5); }
.scroll-cue { position: absolute; z-index: 3; bottom: 64px; right: 44px; width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.55); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--glow); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(16px); opacity: 0; } }
@media (max-width: 940px) { .scroll-cue { display: none; } .hero-stage { min-height: 74vh; } }

/* Staged entrance (only once JS arms it — no-JS stays visible) */
@media (prefers-reduced-motion: no-preference) {
  .hero-stage.hero-prep .slide-content > * { opacity: 0; transform: translateY(30px); }
  .hero-stage .slide-content > * { transition: opacity .9s var(--ease), transform 1.05s var(--ease); }
  .hero-stage.hero-in .slide-content > * { opacity: 1; transform: none; }
  .hero-stage.hero-in .slide-content > *:nth-child(2) { transition-delay: .1s; }
  .hero-stage.hero-in .slide-content > *:nth-child(3) { transition-delay: .22s; }
  .hero-stage.hero-in .slide-content > *:nth-child(4) { transition-delay: .34s; }
}

/* ---------- Line-mask heading reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rl { display: block; overflow: hidden; }
  .rl > span { display: block; transform: translateY(112%); transition: transform .85s var(--ease); }
  .rl.in > span { transform: none; }
}

/* ---------- Mobile conversion bar ---------- */
#book-bar { position: fixed; z-index: 120; left: 12px; right: 12px; bottom: 12px; display: none;
  transform: translateY(140%); transition: transform var(--t-soft) var(--ease); }
#book-bar a { display: block; text-align: center; box-shadow: var(--e-3); }
#book-bar.show { transform: none; }
@media (max-width: 740px) { #book-bar { display: block; } body.has-bookbar footer.site { padding-bottom: 70px; } }

/* Footer: warm hairline horizon */
footer.site { border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--cran), var(--turmeric), var(--cran)) 1; }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
}

/* ---------- Site search ---------- */
.search-box { max-width: 680px; margin-bottom: 22px; }
.search-box input { width: 100%; font: inherit; font-size: 1.15rem; padding: 14px 18px; border: 1.5px solid var(--cloud); border-radius: var(--r-m); box-shadow: var(--e-1); }
.search-box input:focus { border-color: var(--cran); outline: none; box-shadow: 0 0 0 3px var(--cran-tint); }
.search-hit { display: block; text-decoration: none; background: var(--white); border: var(--hairline); border-radius: var(--r-m); box-shadow: var(--e-1); padding: 14px 18px; margin-bottom: 10px; max-width: 760px; }
.search-hit .sh-title { display: block; font-family: "Lora", serif; font-weight: 600; color: var(--cran); font-size: 1.08rem; }
.search-hit .sh-url { display: block; font-size: .78rem; color: var(--storm); margin: 2px 0 4px; }
.search-hit .sh-snip { display: block; font-size: .9rem; color: var(--charcoal); line-height: 1.5; }
.search-hit .sh-snip b, .search-hit .sh-title b { background: var(--turmeric-tint); border-radius: 3px; }
@media (hover: hover) and (pointer: fine) {
  .search-hit { transition: transform var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease); }
  .search-hit:hover { transform: translateY(-2px); box-shadow: var(--e-2); }
}

/* ---------- Cost Estimator (GFE) — mobile-first ---------- */
.gfe-draft { background: var(--turmeric-tint); border: 1px solid var(--turmeric); border-radius: var(--r-s); padding: 10px 14px; font-size: .88rem; font-weight: 600; margin-bottom: 18px; }
.gfe-step { background: var(--white); border: var(--hairline); border-radius: var(--r-m); box-shadow: var(--e-1); padding: 18px; margin-bottom: 16px; }
.gfe-q { font-weight: 700; color: var(--cran); margin-bottom: 10px; font-size: 1.02rem; }
.gfe-q small { color: var(--storm); font-weight: 400; }
.gfe-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.gfe-pill { border: 1.5px solid var(--cloud); background: var(--white); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .92rem; font-weight: 600; color: var(--charcoal); cursor: pointer; transition: all var(--t-quick) var(--ease); min-height: 44px; }
.gfe-pill.sm { padding: 7px 12px; font-size: .85rem; min-height: 38px; }
.gfe-pill.on { background: var(--cran); border-color: var(--cran); color: var(--white); }
.gfe-pill:hover:not(.on) { border-color: var(--cran); color: var(--cran); }
.gfe-list { display: grid; gap: 4px; }
.gfe-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-radius: var(--r-s); cursor: pointer; }
.gfe-row:hover { background: var(--eggshell); }
.gfe-row input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--cran); flex-shrink: 0; }
.gfe-row small { display: block; color: var(--storm); font-size: .82rem; line-height: 1.45; }
.gfe-row .gfe-price { font-style: normal; color: var(--cran); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.gfe-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 8px 4px 40px; font-size: .9rem; color: var(--storm); }
.gfe-copay { font-size: 1.3rem; font-weight: 700; color: var(--cran); }
.gfe-copay input { font: inherit; width: 110px; padding: 8px 12px; border: 1.5px solid var(--cloud); border-radius: var(--r-s); }
.gfe-est { background: var(--eggshell); border: var(--hairline); border-radius: var(--r-m); padding: 18px; margin: 4px 0 16px; }
.gfe-est h3 { margin-bottom: 10px; }
.gfe-est ul { list-style: none; margin: 0 0 12px; }
.gfe-est li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--cloud); font-size: .93rem; margin: 0; }
.gfe-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 10px 0 14px; }
.gfe-total b { font-family: "Lora", serif; font-size: 1.9rem; color: var(--cran); }
.gfe-total small { color: var(--storm); }
.gfe-note { font-size: .82rem; color: var(--storm); margin: 8px 0 0; line-height: 1.5; }
.gfe-note.gfe-waiver { background: var(--bluebird-tint); color: #12608A; border-radius: var(--r-s); padding: 8px 12px; font-weight: 600; }
.gfe-pkg h2 { margin-bottom: .4rem; }
#gfe-app { max-width: 860px; }
details.gfe-est > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: "Lora", serif; font-weight: 700; color: var(--cran); font-size: 1.2rem; }
details.gfe-est > summary::-webkit-details-marker { display: none; }
details.gfe-est > summary::after { content: "\25BE"; font-size: 1rem; color: var(--storm); transition: transform var(--t-quick) var(--ease); }
details.gfe-est[open] > summary::after { transform: rotate(180deg); }
details.gfe-est > summary .sum-total { font-size: 1.05rem; color: var(--charcoal); font-family: "Source Sans 3", sans-serif; font-weight: 700; margin-left: auto; }
details.gfe-est > summary:focus-visible { outline: 3px solid var(--bluebird); outline-offset: 2px; border-radius: 6px; }
details.gfe-est > ul { margin-top: 12px; }
@media print {
  .gfe-step:not(.gfe-pkg), .gfe-draft, .quick, .crumbs, .hero { display: none !important; }
  .gfe-est { border: 1px solid #000; }
  .gfe-est .btn { display: none; }
}

/* ===================== V5 — SITE FACTS LAYER (Oct 2026): notice bar, events ===================== */
.site-alert { background: var(--turmeric); color: var(--midnight); font-weight: 600; font-size: .95rem; }
.site-alert .wrap { padding-top: 10px; padding-bottom: 10px; }
.site-alert a { color: var(--midnight); text-decoration: underline; margin-left: 6px; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 18px; }
.event-card { display: flex; gap: 18px; background: var(--white); border: 1px solid rgba(42,42,41,.10); border-radius: 14px; padding: 22px; box-shadow: var(--e-1, 0 1px 2px rgba(0,0,0,.05)); transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s cubic-bezier(.22,1,.36,1); }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--e-2, 0 10px 30px rgba(0,0,0,.10)); }
.event-card.is-full { opacity: .85; }
.ev-date { flex: 0 0 64px; height: 72px; border-radius: 12px; background: var(--cran); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: "Lora", Georgia, serif; }
.ev-mon { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #F5CE85; }
.ev-day { font-size: 1.7rem; line-height: 1; font-weight: 700; }
.ev-body h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.ev-type { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #13698F; font-weight: 700; }
.ev-meta { font-size: .9rem; color: var(--storm); margin: 0 0 8px; }
.ev-body .btn { margin-top: 6px; }
@media (max-width: 560px) { .event-card { flex-direction: column; } .ev-date { flex-direction: row; gap: 8px; height: auto; padding: 8px 12px; width: max-content; } }
/* Wayfinding block (contact / events) */
.wayfinding { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 18px; }
.wayfinding .wf { background: var(--eggshell); border-radius: 12px; padding: 18px 20px; border-left: 4px solid var(--turmeric); }
.wayfinding .wf h3 { font-size: 1rem; margin-bottom: 6px; }
.wayfinding .wf p { margin: 0; font-size: .95rem; }

/* ===================== V6 — EHR TRANSITION (Oct 2026): utility link, home section, key dates, app badges ===================== */
.utility a.u-new { color: #F5CE85; font-weight: 700; }
.quick .wrap { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } /* six quick actions on one row at desktop */
.ehr-home { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.ehr-home .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1rem; }
.ehr-home h2 { margin-bottom: .6rem; }
.ehr-dates { list-style: none; margin: 0; display: grid; gap: 12px; }
.ehr-dates li { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: var(--hairline); border-radius: var(--r-m); padding: 16px 18px; box-shadow: var(--e-1); margin: 0; }
.ehr-dates li::marker { content: ""; }
.ehr-dates .ev-date { flex: 0 0 64px; height: 64px; }
.ehr-dates .ev-day { font-size: 1.3rem; }
.ehr-dates b { display: block; color: var(--cran); font-family: "Lora", Georgia, serif; font-size: 1.05rem; line-height: 1.3; margin-bottom: 2px; }
.ehr-dates .ed-sub { display: block; font-size: .9rem; color: var(--storm); line-height: 1.5; }
.ehr-switch { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; font-weight: 700; color: var(--white); }
.ehr-switch span { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 5px 14px; font-size: .9rem; }
.ehr-switch .arrow { border: 0; padding: 0; color: #F5CE85; font-size: 1.2rem; }
.app-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.app-badges a { display: inline-flex; align-items: center; gap: 8px; background: var(--midnight); color: var(--white); text-decoration: none; border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: .9rem; transition: background var(--t-quick) var(--ease); }
.app-badges a:hover { background: var(--cran); color: var(--white); }
@media (max-width: 860px) { .ehr-home { grid-template-columns: 1fr; } }

/* ---- Preventive screening guide (primary-care.html) ---- */
.scr-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .scr-wrap { grid-template-columns: 1fr; } }
.scr-form { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.scr-field { border: 0; margin: 0 0 18px; }
.scr-field legend, .scr-field label[for] { display: block; margin-bottom: 8px; }
.scr-field input[type=number] { font: inherit; width: 8em; padding: 10px 12px; border: 1px solid var(--cloud); border-radius: 8px; }
.scr-results { margin-top: 22px; }
.scr-results h3 { margin: 4px 0 10px; }
.scr-results h3 ~ h3 { margin-top: 22px; }
.scr-list { list-style: none; margin: 0 0 6px; }
.scr-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--mist); }
.scr-item p { margin: 2px 0 0; font-size: .95rem; }
.scr-grade { flex: 0 0 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--white); background: var(--cran); }
.scr-grade.gB { background: var(--bluebird); }
.scr-grade.gC { background: var(--storm); }
.scr-risk { font-size: .9rem; color: var(--storm); font-style: italic; }
.scr-note { display: block; color: var(--storm); margin-top: 4px; }
@media print { .scr-form, .site-alert, header.site, footer.site, .cta-band { display: none !important; } }

/* ---- Referral Pearls box ---- */
.pearls { border: 3px solid var(--turmeric); background: var(--turmeric-tint); border-radius: var(--radius); padding: 26px 28px; margin: 0 0 28px; }
.pearls h2 { margin-bottom: .6rem; }
.pearls ul { margin: .4rem 0 .8rem 1.2rem; }
.pearls li { margin-bottom: .35rem; }
.grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid.two-up { grid-template-columns: 1fr; } }

/* ---- Arrival map + wayfinding (events.html, accessibility.html) ---- */
.arrival { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; margin-top: 18px; }
.arrival .wayfinding { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.arrival-map { margin: 0; background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.arrival-map img { display: block; width: 100%; height: auto; }
.arrival-map figcaption { padding: 10px 14px; font-size: .9rem; color: var(--storm); }
.wf-links { margin: 8px 0 0 1.1rem; }
.wf-links li { margin-bottom: 4px; }
.bldg-key { list-style: none; margin: 10px 0 0; font-size: .9rem; }
.bldg-key li { display: flex; gap: 8px; align-items: baseline; margin-bottom: 5px; }
.bldg-key .k { flex: 0 0 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 5px; color: #fff; font-size: .8rem; }
.bldg-key .kA { background: #c8322b; } .bldg-key .kB { background: #1f4fa3; } .bldg-key .kC { background: #b85c12; } .bldg-key .kD { background: #8a6a00; }
@media (max-width: 900px) { .arrival { grid-template-columns: 1fr; } .arrival-map { max-width: 520px; } }
@media (max-width: 560px) { .arrival .wayfinding { grid-template-columns: 1fr; } }

/* ---- Resource bar: black bar with direct links, under the main menu ---- */
.subbar { background: #000; }
.subbar .wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 34px; padding-top: 9px; padding-bottom: 9px; }
.subbar a { color: var(--turmeric); text-decoration: none; font-weight: 600; font-size: .92rem; letter-spacing: .01em; padding: 2px 0; border-bottom: 2px solid transparent; }
.subbar a:hover, .subbar a:focus-visible, .subbar a[aria-current="page"] { color: #fff; border-bottom-color: var(--turmeric); }
@media (max-width: 640px) { .subbar .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; text-align: center; } .subbar a { font-size: .84rem; } }
.subbar a.hi { background: var(--turmeric); color: #000; border-radius: 999px; padding: 2px 14px; border-bottom-color: transparent; }
.subbar a.hi:hover, .subbar a.hi:focus-visible, .subbar a.hi[aria-current="page"] { background: #fff; color: #000; border-bottom-color: transparent; }
@media print { .subbar { display: none !important; } }
/* Text for screen readers only (table captions, extra link context). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Main menu fit (longer labels: "Insurance and Billing", "Policies & Referrals") ---- */
.navbar { max-width: 1280px; }
nav.main a.top, .navbar .btn { white-space: nowrap; }
nav.main > ul { gap: 2px; }
nav.main a.top { padding: 10px 10px; }
@media (min-width: 941px) and (max-width: 1200px) {
  .navbar { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .brand-logo { height: 44px; }
  nav.main a.top { padding: 8px 6px; font-size: .86rem; }
  .navbar .btn { padding: 9px 14px; font-size: .88rem; }
}
@media (min-width: 941px) and (max-width: 1040px) { .navbar .btn { display: none; } }
.utility .wrap { max-width: 1280px; }
.utility .u-links { gap: 14px; }

/* ---- Shared Health Tips and Events pages: clinic filter tabs and "shown on" chips ---- */
.clinic-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; }
.clinic-tabs a { padding: 8px 16px; border: 1px solid var(--cloud); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--charcoal); background: var(--white); }
.clinic-tabs a:hover { border-color: var(--cran); color: var(--cran); }
.clinic-tabs a[aria-current="page"] { background: var(--cran); border-color: var(--cran); color: var(--white); }
/* Only the "shown on" clinic labels. (This rule used to be written as .chip and shrank every service and provider chip on the site.) */
.chip[class*="chip-"] { font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 2px 9px; border-color: transparent; background: var(--turmeric-tint); color: var(--charcoal); }
.chip-san-diego { background: rgba(0, 110, 150, .12); }
.events-list { display: grid; gap: 16px; }
.post-body blockquote { border-left: 4px solid var(--turmeric); margin: 1rem 0; padding: .2rem 0 .2rem 1rem; color: var(--storm); }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.post-body .table-scroll { overflow-x: auto; margin: 1rem 0; }
.post-body table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.post-body th, .post-body td { border: 1px solid var(--mist); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.post-body th { background: var(--mist); }
.cta-band .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Campaign landing pages (lp/): no main menu, one headline, one form ---- */
.lp-header { background: var(--white); border-bottom: 1px solid var(--mist); }
.lp-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.lp-call { font-weight: 700; text-decoration: none; color: var(--cran); white-space: nowrap; }
.lp-hero { background: var(--eggshell); padding: 48px 0 56px; }
.lp-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.lp-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .4rem 0 .8rem; }
.lp-hero .eyebrow { color: var(--cran); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.lp-points { margin: 1rem 0 1.2rem 1.2rem; }
.lp-points li { margin-bottom: .45rem; }
.lp-form { background: var(--white); border: 1px solid var(--mist); border-top: 4px solid var(--turmeric); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); }
.lp-form h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.lp-footer { background: var(--midnight); color: var(--cloud); font-size: .85rem; }
.lp-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.lp-footer a { color: var(--eggshell); }
@media (max-width: 860px) { .lp-grid { grid-template-columns: 1fr; gap: 26px; } .lp-hero { padding: 30px 0 36px; } }

/* ---------- Event detail pages ---------- */
.event-when { font-size: 1.05rem; margin: 6px 0 14px; }
.event-body h2 { margin-top: 26px; }
.event-body h2:first-child { margin-top: 0; }
.event-presenter { display: flex; gap: 18px; align-items: flex-start; }
.event-presenter-photo { width: 160px; height: 160px; object-fit: cover; border-radius: 14px; flex: 0 0 160px; }
.event-form { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 22px; max-width: 760px; min-height: 120px; }
h2.h3 { font-size: 1.2rem; }   /* a second-level heading drawn at third-level size (keeps heading levels in order for screen readers) */
@media (max-width: 560px) { .event-presenter { flex-direction: column; } }

/* ---------- Accessibility pass (contrast, link cues, touch targets) ---------- */
footer.site .small { color: var(--cloud); }
.hero .small { color: var(--eggshell); }
footer.site .f-bottom a, footer.site p a { text-decoration: underline; text-underline-offset: 2px; }
main p a:not(.btn):not(.card-link), main li a:not(.btn):not(.card-link):not(.chip), main td a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
.tbl-wrap:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--bluebird); outline-offset: 2px; }
.callout .small { color: #5A5A57; }

/* ---------- Keyboard pass ---------- */
.utility .site-alert .wrap { display: block; max-width: var(--max); padding-top: 10px; padding-bottom: 10px; }
.utility .site-alert a:hover { color: var(--midnight); }
nav.main li.dd-closed > .dropdown { display: none !important; }   /* a drop-down closed with the Escape key */
html :is(a, button, summary, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--bluebird); outline-offset: 2px; box-shadow: 0 0 0 7px #fff; }   /* white edge around the blue ring, for cranberry and dark backgrounds */
html .site-alert a:focus-visible { outline-color: var(--midnight); box-shadow: none; }   /* on the gold notice bar a dark ring reads best */
html #bcnh-consent .cc-btn:focus-visible { outline-color: #F5CE85; box-shadow: none; }

/* ---------- Provider pages (one page per provider, written by tools/build_providers.py) ---------- */
a.prov-card { text-decoration: none; color: inherit; }
.prov-bio h1 { margin-bottom: 4px; }
.prov-cred { color: var(--storm); font-weight: 600; }
.prov-bio .care-tags { margin: 10px 0 16px; padding-top: 0; }
.prov-bio h2.h3 { margin-top: 22px; }
.prov-schedule { margin-top: 22px; }
.prov-schedule-frame { width: 100%; min-height: 560px; border: 0; border-radius: 12px; }

/* ---------- Reading comfort (from the Nov 18 design review) ---------- */
.callout p, .callout li, .acc-body p, .acc-body li, .band > .wrap > p { max-width: 64ch; }   /* about 75 characters a line (ch is the width of a zero, wider than most letters) */
main p, main li { text-wrap: pretty; }          /* avoids a single word left alone on the last line */
h3 { text-wrap: balance; }
table.data td { font-variant-numeric: tabular-nums; }   /* prices and counts line up in columns */
:root { accent-color: var(--cran); }            /* checkboxes, radio buttons and sliders use the brand color */
input, textarea { caret-color: var(--cran); }

/* ---------- Policy pages, forms list and footer notices (tools/build_policies.py) ---------- */
.utility .u-links { flex-wrap: wrap; row-gap: 2px; }
.f-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 16px 0 14px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.22); font-size: .86rem; }
.f-legal a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; padding: 4px 0; }
.f-legal-label { font-weight: 700; color: var(--white); padding: 4px 0; }
.f-legal + .f-legal { border-top: none; padding-top: 0; margin-top: 0; }
.f-legal + .f-bottom { padding-top: 6px; }
.policy-wrap { max-width: 900px; }
.doc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 18px; margin-bottom: 22px; background: var(--eggshell); border: 1px solid var(--mist); border-radius: var(--radius); font-size: .95rem; }
.doc-bar .btn { padding: 8px 18px; font-size: .9rem; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.policy { font-size: 1.02rem; line-height: 1.65; }
.policy p, .policy li { max-width: 72ch; }
.policy h2 { font-size: 1.45rem; margin: 2.1rem 0 .7rem; scroll-margin-top: 150px; }
.policy h3 { font-size: 1.08rem; margin: 1.5rem 0 .5rem; letter-spacing: .01em; scroll-margin-top: 150px; }
.policy ul, .policy ol { padding-left: 1.4rem; margin: .6rem 0 1rem; }
.policy li { margin-bottom: .45rem; }
.policy .tbl-wrap { margin: 1rem 0 1.4rem; }
.policy table.data th { white-space: normal; }
.policy-box { border: 2px solid var(--charcoal); border-radius: 8px; padding: 16px 20px; margin: 1.2rem 0; background: var(--white); }
.policy-box p { max-width: none; }
.policy-box p:last-child { margin-bottom: 0; }
.policy .lang-label { margin-top: 1.3rem; padding-top: .9rem; border-top: 1px solid var(--mist); }
.policy [dir="rtl"] { text-align: right; }
.policy-toc { border: 1px solid var(--mist); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 22px; background: var(--white); }
.policy-toc ul { columns: 2 260px; padding-left: 1.2rem; margin: .4rem 0 0; }
.policy-toc li { margin-bottom: .3rem; break-inside: avoid; }
.form-tools { margin: 22px 0 8px; }
.form-tools label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-tools input { width: 100%; max-width: 520px; padding: 11px 14px; font: inherit; border: 1px solid #6B6B68; border-radius: 8px; background: var(--white); }
.form-key { margin-top: 0; }
.form-key h2 { margin-bottom: 6px; }
.forms-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 8px 40px; align-items: start; margin-top: 26px; }
.forms-main { grid-column: 1; grid-row: 1; min-width: 0; }
.forms-main .form-tools { margin-top: 0; }
.form-toc { grid-column: 2; grid-row: 1; position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; border: 1px solid var(--mist); border-radius: var(--radius); background: var(--white); padding: 14px 18px; font-size: .9rem; line-height: 1.4; }
.form-toc h2 { margin: 0 0 8px; }
.form-toc ul { list-style: none; margin: 0; padding: 0; }
.form-toc > ul > li { margin-top: 8px; }
.form-toc > ul > li > a { font-weight: 700; }
.form-toc li li a { display: block; padding: 3px 0 3px 12px; border-left: 2px solid var(--mist); }
.form-toc a { display: block; padding: 4px 0; text-underline-offset: 2px; }
.form-toc a[aria-current="true"] { border-left-color: var(--cran); font-weight: 700; }
.form-toc-foot { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--mist); }
@media (max-width: 980px) {
  .forms-layout { display: block; }
  .form-toc { position: static; max-height: none; margin-bottom: 22px; }
}
.form-group { margin-top: 34px; scroll-margin-top: 150px; }
.form-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; border-bottom: 2px solid var(--cran); padding-bottom: 8px; margin-bottom: 10px; }
.form-group-head h2 { margin: 0; }
.form-group h3 { margin: 22px 0 8px; font-size: 1.1rem; scroll-margin-top: 150px; }
.form-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.form-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 12px 16px; scroll-margin-top: 160px; }
.form-item:target { border-color: var(--cran); box-shadow: 0 0 0 3px var(--cran-tint); }
.form-item[hidden] { display: none; }
.form-main { flex: 1 1 320px; min-width: 0; }
.form-name { font-weight: 700; font-size: 1.02rem; }
.form-code { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 5px; background: var(--eggshell); border: 1px solid var(--mist); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.form-main .small { margin: 3px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.form-actions .btn { padding: 7px 16px; font-size: .9rem; }
.form-web { font-weight: 700; font-size: .92rem; padding: 6px 0; }
.copy-link { font: inherit; font-size: .9rem; font-weight: 700; color: var(--cran); background: var(--white); border: 1px solid var(--cran); border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 36px; }
.copy-link:hover { background: var(--cran-tint); }
.copy-link.done { background: var(--cran); color: var(--white); }
@media print {
  .utility, header.site, .subbar, footer.site, .doc-bar .btn, .doc-bar button, .policy-toc, .crumbs, #bcnh-consent, .site-alert, .doc-actions, .cta-band, .form-tools, .form-toc, .copy-link { display: none !important; }
  .hero.compact { background: none !important; color: #000 !important; }
  .hero.compact h1, .hero.compact .lead { color: #000 !important; }
  .policy a { color: #000; }
}
.u-lang span[lang] { white-space: nowrap; }
