/* Shared by the pages scripts/build_pages.py generates: articles, /blog/, doctor,
 * office and service pages, and the 404. Their header and footer are in header-footer.css, which
 * the legal pages share. The homepage keeps its own inline styles; the request page
 * has assets/request.css.
 *
 * Tokens mirror index.html's :root (see DESIGN-SYSTEM.md). These pages live in
 * folders (/<slug>/), so every URL in the markup is root-absolute.
 */
:root{
  --blue:#1559A2;--blue-deep:#103F82;--navy:#0C2E5E;--purple:#7F64B5;
  --ivory:#F7F4EE;--paper:#FCFAF6;--shade:#F0EBE2;
  --ink:#16202E;--body:#3D4655;--muted:#7A8493;--hair:#D9D2C6;
  --serif:"Newsreader",Georgia,"Times New Roman",serif;
  --sans:"Inter",system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--sans);color:var(--body);background:var(--ivory);line-height:1.7;
  font-size:17px;-webkit-font-smoothing:antialiased;
  min-height:100vh;display:flex;flex-direction:column}  /* footer stays at the bottom */
a[href^="tel:"],a[href^="sms:"]{white-space:nowrap}
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--blue-deep);text-decoration:underline}
:focus-visible{outline:2.5px solid var(--purple);outline-offset:3px;border-radius:2px}
img{max-width:100%;display:block}

/* ---------- page column ---------- */
main.page{flex:1;width:100%;max-width:720px;margin:0 auto;padding:clamp(36px,6vw,72px) 24px clamp(48px,7vw,88px)}
.eyebrow{font-size:.72rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--blue)}
h1{font-family:var(--serif);color:var(--ink);font-weight:500;letter-spacing:-.01em;
  font-size:clamp(2rem,5vw,2.9rem);line-height:1.1;margin:.6rem 0 .8rem}
.byline{color:var(--muted);font-size:.9rem;margin-bottom:2.2rem;padding-bottom:1.6rem;
  border-bottom:1px solid var(--hair)}
.byline a{font-weight:600}
.lede{font-size:1.08rem;color:var(--body);margin-bottom:2rem}

/* ---------- article body ---------- */
.prose{overflow-wrap:break-word}  /* a web address written out in the text must wrap on a phone */
.prose h2{font-family:var(--serif);color:var(--navy);font-weight:600;font-size:1.55rem;
  line-height:1.2;margin:2.4rem 0 .7rem}
.prose h3{font-family:var(--serif);color:var(--navy);font-weight:600;font-size:1.2rem;
  line-height:1.25;margin:1.7rem 0 .5rem}
.prose p{margin:0 0 1.1rem}
.prose ul,.prose ol{margin:0 0 1.3rem 1.3rem}
.prose li{margin:.4rem 0;padding-left:.2rem}
.prose strong{color:var(--ink);font-weight:600}
.prose a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.table-wrap{overflow-x:auto;margin:0 0 1.6rem;border:1px solid var(--hair);background:var(--paper)}
.prose table{border-collapse:collapse;width:100%;font-size:.92rem;line-height:1.45}
.prose th,.prose td{padding:.6rem .8rem;border-bottom:1px solid var(--hair);text-align:left;vertical-align:top}
.prose th{background:var(--shade);color:var(--ink);font-weight:600}
.prose tr:last-child td{border-bottom:0}
.prose .al-c{text-align:center}
.prose .al-r{text-align:right}
.prose h4{font-family:var(--sans);color:var(--ink);font-weight:600;font-size:1.02rem;margin:1.4rem 0 .4rem}
.prose blockquote{margin:0 0 1.3rem;padding:.8rem 1.1rem;background:var(--paper);border-left:3px solid var(--hair)}
.prose blockquote p:last-child{margin-bottom:0}
.prose hr{border:0;border-top:1px solid var(--hair);margin:2rem 0}
.prose details{border-top:1px solid var(--hair);padding:.7rem 0}
.prose details:last-of-type{border-bottom:1px solid var(--hair)}
.prose summary{cursor:pointer;font-weight:600;color:var(--ink)}
.prose details[open] summary{margin-bottom:.5rem}
.prose sup{font-size:.72em}
.note{margin-top:2.4rem;padding-top:1.2rem;border-top:1px solid var(--hair);color:var(--muted);font-size:.88rem}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.55em;font-weight:600;font-size:.92rem;
  padding:.9em 1.5em;border:1px solid var(--blue);background:var(--blue);color:#fff;border-radius:2px}
.btn:hover{background:var(--blue-deep);border-color:var(--blue-deep);color:#fff;text-decoration:none}
.btn-ghost{background:transparent;color:var(--blue)}
.btn-ghost:hover{background:var(--blue);color:#fff}
.actions{display:flex;flex-wrap:wrap;gap:.8rem;margin:1.6rem 0}

/* ---------- article list (/blog/) ---------- */
.list{list-style:none;border-top:1px solid var(--hair)}
.list li{padding:1.3rem 0;border-bottom:1px solid var(--hair)}
.list h2{font-family:var(--serif);font-weight:500;font-size:1.35rem;line-height:1.25;margin-bottom:.35rem}
.list h2 a{color:var(--ink)}
.list h2 a:hover{color:var(--blue)}
.list p{font-size:.95rem;margin-bottom:.3rem}
.list .when{color:var(--muted);font-size:.82rem}

/* ---------- doctor and office pages ---------- */
.profile{display:grid;grid-template-columns:200px 1fr;gap:2rem;align-items:start;margin-bottom:1.6rem}
.profile .ph{aspect-ratio:4/5;background:var(--paper);border:1px solid var(--hair);overflow:hidden}
.profile .ph img{width:100%;height:100%;object-fit:cover}
.profile .ph.noimg{background:#E4E7EB}  /* gray silhouette until there's a headshot */
.profile .avatar{display:block;width:100%;height:100%}
.profile h1{margin-top:.2rem}
.role{color:var(--ink);font-weight:600;margin-bottom:.4rem}
.facts{list-style:none;margin:0 0 1.4rem}
.facts li{padding:.55rem 0;border-bottom:1px solid var(--hair);display:grid;grid-template-columns:7.5rem 1fr;gap:1rem}
.facts li:first-child{border-top:1px solid var(--hair)}
.facts .k{color:var(--muted);font-size:.82rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding-top:.15rem}
.section-h{font-family:var(--serif);color:var(--navy);font-weight:600;font-size:1.35rem;margin:2.2rem 0 .8rem}
.people{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.2rem 1.4rem}
.people li{padding:.45rem 0;border-bottom:1px solid var(--hair)}
.people .r{display:block;color:var(--muted);font-size:.82rem}
@media (max-width:600px){
  .profile{grid-template-columns:1fr}
  .profile .ph{max-width:220px}
  .facts li{grid-template-columns:1fr;gap:.1rem}
}

/* ---------- service pages ---------- */
.svc-title{display:flex;align-items:center;gap:1.1rem;margin:.6rem 0 .8rem}
.svc-title h1{margin:0}
.svc-title .glyph{flex:none;width:60px;height:60px;color:var(--blue)}
.svc-title .glyph svg{width:100%;height:100%;display:block;stroke:currentColor;fill:none;
  stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}   /* the homepage card's drawing */
.closing{margin:2.8rem 0 0;padding:1.6rem 1.7rem .3rem;background:var(--paper);border:1px solid var(--hair)}
.closing h2{font-family:var(--serif);color:var(--navy);font-weight:600;font-size:1.4rem;line-height:1.2;margin-bottom:.4rem}
.closing .actions{margin:1.1rem 0}
.reading{list-style:none;border-top:1px solid var(--hair)}
.reading li{padding:.55rem 0;border-bottom:1px solid var(--hair)}
@media (max-width:600px){
  .svc-title{flex-direction:column;align-items:flex-start;gap:.7rem}
  .svc-title .glyph{width:48px;height:48px}
  .closing{padding:1.3rem 1.2rem .2rem}
}

@media print{
  .actions{display:none}
  body{background:#fff;font-size:12pt}
}

/* ---------- images in articles (imported from the old site) ---------- */
.lead{margin:0 0 2rem}
.lead img{width:100%;height:auto;border:1px solid var(--hair)}
.prose img{max-width:100%;height:auto}
.prose figure{margin:0 0 1.5rem}
.prose figcaption{color:var(--muted);font-size:.85rem;margin-top:.4rem}
.prose td img{max-width:220px}
