/* ============================================================
   CrosaCore — Modern Physical Therapy
   Design system per Gate 5 v2.0 (Ch. 41, 58) + Brand Volume I
   Calm · Intelligent · Premium · Clinically credible · Human
   ============================================================ */

:root {
  --paper: #f6f6f2;
  --surface: #ffffff;
  --ink: #16201d;
  --ink-soft: #46534e;
  --ink-faint: #6b7873;
  --spruce: #1e3b33;
  --spruce-deep: #14291f;
  --fern: #33685a;
  --fern-soft: #eaf0ec;
  --mist: #e7ece8;
  --line: #dce1dc;
  --tbd-ink: #7a5c14;
  --tbd-bg: #fdf6e0;
  --tbd-line: #d9bd6a;
  --safety-bg: #f2efe6;
  --max: 1120px;
  --radius: 10px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--fern); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--spruce); }

:focus-visible {
  outline: 3px solid var(--fern);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--spruce); color: #fff; padding: .75rem 1.25rem;
  z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.32rem; font-weight: 450; }
h4 { font-size: 1.02rem; margin: 0 0 .5rem; font-weight: 650; }

h1 em, h2 em { font-style: italic; font-weight: 340; }

p { margin: 0 0 1.05rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fern);
  display: block;
  margin-bottom: .9rem;
}

ul.clean { list-style: none; padding: 0; margin: 0; }
.content ul { padding-left: 1.2rem; }
.content li { margin-bottom: .45rem; }
.content li::marker { color: var(--fern); }

/* ---------- Operational placeholders (Gate 5: flag, never invent) ---------- */

.tbd {
  font-family: var(--font-mono);
  font-size: .82em;
  background: var(--tbd-bg);
  color: var(--tbd-ink);
  border: 1px dashed var(--tbd-line);
  border-radius: 5px;
  padding: .08em .45em;
}

/* ---------- Photo slots (real photography required) ---------- */

.photo {
  margin: 0;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--mist), #d9e1da 60%, var(--mist));
  border: 1px solid var(--line);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.photo.tall { min-height: 440px; }
.photo.short { min-height: 220px; }
.photo figcaption {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
  padding: .8rem 1rem;
  background: rgba(255,255,255,.72);
  width: 100%;
  border-top: 1px dashed var(--line);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--spruce); color: #fff; }
.btn-primary:hover { background: var(--spruce-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--spruce); border-color: var(--spruce); }
.btn-secondary:hover { background: var(--fern-soft); color: var(--spruce); }
.btn-quiet { background: transparent; color: var(--fern); border: none; padding: .95rem .4rem; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-top: 1.6rem; }

/* ---------- Utility bar + header ---------- */

.utility-bar {
  background: var(--spruce-deep);
  color: #cfe0d6;
  font-size: .82rem;
}
.utility-bar .wrap {
  display: flex; justify-content: flex-end; align-items: stretch; gap: 1.5rem;
  padding-top: 0; padding-bottom: 0;
}
.utility-bar a { color: #e6efe9; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; color: #fff; }

.site-header {
  background: rgba(246,246,242,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.4rem;
  padding-top: .85rem; padding-bottom: .85rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 480;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
  display: flex; flex-direction: column; line-height: 1.05;
}
.brand small {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fern);
  margin-top: .18rem;
}

.primary-nav { display: flex; align-items: center; gap: .2rem; }
.primary-nav > ul { list-style: none; display: flex; margin: 0; padding: 0; gap: .2rem; align-items: center; }
.primary-nav a, .navbtn {
  font-size: .95rem; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: .55rem .75rem; border-radius: 7px;
  background: none; border: none; font-family: var(--font-body); cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem;
}
.primary-nav a:hover, .navbtn:hover { background: var(--mist); color: var(--ink); }
.navbtn[aria-expanded="true"] { background: var(--mist); }
.navbtn .caret { font-size: .6rem; color: var(--ink-faint); }

.nav-group { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + .4rem); left: 0;
  min-width: 240px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(22,32,29,.10);
  padding: .5rem; margin: 0; list-style: none; display: none; z-index: 60;
}
.dropdown.open { display: block; }
/* No-JS and keyboard fallback: hover or focus opens the menu on desktop */
@media (min-width: 941px) {
  .nav-group:hover > .dropdown,
  .nav-group:focus-within > .dropdown { display: block; }
}
.dropdown a { display: block; padding: .6rem .75rem; border-radius: 7px; width: 100%; }

.header-cta { margin-left: .6rem; white-space: nowrap; padding: .7rem 1.2rem; font-size: .92rem; }
@media (min-width: 941px) {
  /* the mobile-first duplicate exists only for source order on small screens */
  .primary-nav a.mobile-cta-first { display: none; }
  .primary-nav a.header-cta { font-size: .84rem; padding: .62rem 1rem; margin-left: .5rem; }
}

.menu-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: 8px; padding: .5rem .7rem; font-family: var(--font-body);
  font-weight: 600; font-size: .9rem; color: var(--ink); cursor: pointer;
}

/* Mobile nav */
@media (max-width: 940px) {
  .utility-bar .wrap { justify-content: center; }
  .menu-toggle { display: inline-block; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(22,32,29,.12);
    padding: 1rem 1.25rem 1.5rem;
  }
  .primary-nav.open { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .primary-nav a, .navbtn { width: 100%; padding: .8rem .6rem; font-size: 1.05rem; justify-content: space-between; }
  .dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 1rem; min-width: 0; }
  .primary-nav a.header-cta { display: none; }
  .primary-nav a.mobile-cta-first { display: flex; order: -1; justify-content: center;
    text-align: center; margin: 0 0 .9rem; width: 100%; }
}

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section.tight { padding: 3rem 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--spruce); color: #eef3ef; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: #bcd8c9; }
.section.dark .eyebrow { color: #9fc4b2; }

.section-head { max-width: 720px; margin-bottom: 2.4rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
@media (max-width: 880px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 3.2rem 0; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .eyebrow { margin-bottom: .55rem; }
.section.alt .card { background: var(--paper); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
}

/* ---------- Hero ---------- */

.hero { padding: 5rem 0 4rem; }
.hero .grid-2 { align-items: center; gap: 3.2rem; }
.hero .lede { margin-top: 1.1rem; }
@media (max-width: 880px) { .hero { padding: 3rem 0 2.6rem; } }

/* ---------- Rebuild line (signature element) ---------- */

.rebuild-line { margin: 2.4rem 0 1rem; }
.rebuild-line svg { width: 100%; height: auto; }
.phase-cards { counter-reset: phase; }
.phase-card { position: relative; padding-top: 1.4rem; }
.phase-num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--fern);
  display: block;
  margin-bottom: .4rem;
}

/* ---------- Entry-cost block ---------- */

.entry-cost {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
@media (max-width: 700px) { .entry-cost { grid-template-columns: 1fr; } }
.entry-cost .card { border-left: 4px solid var(--fern); }
.entry-cost .price-line { font-size: 1.05rem; margin: .4rem 0 .6rem; }

/* ---------- Safety + scope notices ---------- */

.notice {
  background: var(--safety-bg);
  border: 1px solid #e0dac6;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.notice strong { color: var(--ink); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- FAQ / accordions ---------- */

details.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .7rem;
  padding: 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1.05rem 1.3rem;
  list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--fern); }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; }
table.compare { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; }
table.compare th, table.compare td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
table.compare tr:last-child td { border-bottom: none; }
table.compare caption { text-align: left; font-size: .85rem; color: var(--ink-faint); padding: .5rem 0; caption-side: bottom; }

/* ---------- Forms ---------- */

form .field { margin-bottom: 1.2rem; }
form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
form .hint { font-size: .85rem; color: var(--ink-faint); margin-top: .3rem; }
form .optional { font-weight: 400; color: var(--ink-faint); font-size: .85em; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .75rem .9rem; font-family: var(--font-body); font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--fern); outline-offset: 1px; border-color: var(--fern); }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.checkline input { margin-top: .3rem; }

/* ---------- Consultation panel (global component) ---------- */

.consult-panel { border-left: 5px solid var(--fern); }

/* ---------- Action grid (current clients) ---------- */

.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.action-grid a.card { text-decoration: none; color: var(--ink); font-weight: 600; display: flex; align-items: center; min-height: 88px; }
.action-grid a.card:hover { border-color: var(--fern); }

/* ---------- Footer ---------- */

.site-footer { background: var(--spruce-deep); color: #c8d6cd; margin-top: 4rem; font-size: .93rem; }
.site-footer a { color: #dfeae2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 2rem;
  padding: 3.2rem 0 2rem;
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-brandline { font-family: var(--font-display); font-size: 1.25rem; color: #fff; margin-bottom: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.4rem 0 2rem; font-size: .82rem; color: #9fb3a7; }
.footer-bottom p { margin-bottom: .4rem; }

/* ---------- Breadcrumb ---------- */

.breadcrumb { font-size: .85rem; color: var(--ink-faint); padding-top: 1.6rem; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb .wrap { padding-top: 0; }

/* ---------- Misc ---------- */

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }
.small { font-size: .9rem; color: var(--ink-faint); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; }
.checklist li::before { content: "—"; position: absolute; left: 0; color: var(--fern); }

/* ---------- Article layout (resource guides) ---------- */
.article-head { padding: 3.2rem 0 1.4rem; border-bottom: 1px solid var(--mist); }
.article-meta { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--fern); display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; }
.article-meta .sep { color: var(--mist); }
.article-meta .review { color: #6a726e; text-transform: none; letter-spacing: 0; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 3rem; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: minmax(0,1fr); gap: 1.4rem; } }
.toc { position: sticky; top: 100px; font-size: .9rem; }
@media (max-width: 900px) { .toc { position: static; border: 1px solid var(--mist);
  border-radius: 12px; padding: 1rem 1.1rem; background: #fff; } }
.toc h2 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fern); margin: 0 0 .7rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 .45rem; line-height: 1.35; }
.toc a { color: var(--ink); text-decoration: none; border-left: 2px solid var(--mist);
  padding-left: .7rem; display: block; }
.toc a:hover, .toc a:focus { border-left-color: var(--spruce); color: var(--spruce); }
.article-body { max-width: 62ch; min-width: 0; }
.article-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2.6rem 0 .8rem; scroll-margin-top: 110px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.05rem; }
.article-body ul { margin: 0 0 1.2rem; padding-left: 1.1rem; }
.article-body li { margin-bottom: .55rem; }
.short-version { background: var(--mist); border-radius: 14px; padding: 1.5rem 1.7rem; margin: 0 0 2.4rem; }
.short-version h2 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--spruce-deep); margin: 0 0 .8rem; }
.short-version ul { margin: 0; padding-left: 1.1rem; }
.short-version li { margin-bottom: .5rem; }
.refs summary { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em;
  color: var(--spruce); cursor: pointer; padding: .8rem 0; }
.refs[open] summary { margin-bottom: .6rem; }
.refs ol { font-size: .88rem; color: #4b534f; padding-left: 1.3rem; }
.refs li { margin-bottom: .5rem; }
.article-cta { background: var(--spruce-deep); color: var(--paper); border-radius: 16px;
  padding: 2rem 2.2rem; margin-top: 2.6rem; }
.article-cta h2 { color: var(--paper); margin: 0 0 .6rem; }
.article-cta p { color: #d8e2dc; }

/* ---------- Article tables and citations ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; -webkit-overflow-scrolling: touch; }
.article-body table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 460px; }
.article-body th, .article-body td { text-align: left; padding: .6rem .7rem;
  border-bottom: 1px solid var(--mist); vertical-align: top; }
.article-body th { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--spruce); border-bottom: 1.5px solid var(--fern); }
.article-body h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; }
sup.cite { font-size: .68em; color: var(--fern); font-family: var(--font-mono); padding-left: .1em; }
.article-body ol { margin: 0 0 1.2rem; padding-left: 1.25rem; }

/* ---------- Supplied photography ---------- */
.photo.has-image { background: none; border: none; padding: 0; margin: 0;
  border-radius: 14px; overflow: hidden; line-height: 0; }
.photo.has-image img { width: 100%; height: auto; display: block; border-radius: 14px; }
.photo.has-image.wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo.has-image.tall img { aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- Legal pages and consent fieldset ---------- */
.article-body.legal h2 { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fern); border-top: 1px solid var(--mist);
  padding-top: 1.6rem; margin-top: 2.8rem; }
.article-body.legal h3 { font-family: var(--font-display); font-size: 1.15rem;
  margin: 1.8rem 0 .5rem; scroll-margin-top: 110px; }
.article-body.legal p, .article-body.legal li { font-size: .95rem; }
.toc ol[style*="none"] li a { font-size: .82rem; }
.consent-set { border: 1px solid var(--mist); border-radius: 12px; padding: 1rem 1.1rem; }
.consent-set legend { padding: 0 .4rem; }
.consent-set .checkline { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .9rem; }
.consent-set .checkline:last-child { margin-bottom: 0; }
.consent-set label { font-size: .82rem; line-height: 1.45; }
.consent-set input { margin-top: .25rem; flex: 0 0 auto; }

/* ---------- Reflow when an unfilled photo slot collapses ---------- */
.grid-2 > *:only-child { grid-column: 1 / -1; max-width: 66ch; }
.grid-3 > *:only-child, .grid-cards > *:only-child { grid-column: 1 / -1; max-width: 66ch; }


/* ---------- Brand logo in header ---------- */
.brand img { display: block; height: 44px; width: auto; }
@media (max-width: 940px) { .brand img { height: 38px; } }
@media (max-width: 420px) { .brand img { height: 32px; } }
.brand { display: inline-flex; align-items: center; }

/* ---------- Rebuild Method Venn ---------- */
.rebuild-venn { max-width: 620px; margin: 2rem auto; }
.rebuild-venn svg { width: 100%; height: auto; display: block; }
@media (max-width: 560px) { .rebuild-venn { margin: 1.4rem auto; } }

/* ---------- Venn: adapts to light or dark sections ---------- */
.rebuild-venn {
  --venn-fill: #33685a; --venn-op: .13; --venn-stroke: #1e3b33;
  --venn-ink: #1e3b33;  --venn-muted: #46534e;
}
.section.dark .rebuild-venn, .dark .rebuild-venn {
  --venn-fill: #7fb3a1; --venn-op: .18; --venn-stroke: #cfe3da;
  --venn-ink: #f2f7f4;  --venn-muted: #b9cec5;
}

/* ---------- Touch targets on small screens ---------- */
@media (max-width: 940px) {
  .site-footer nav ul li a { display: inline-block; padding: 9px 0; }
  .site-footer .footer-bottom a { display: inline-block; padding: 8px 2px; }
  .primary-nav a { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 940px) {
  .toc ol li a { display: block; padding: 8px 0; }
  .toc ol li { margin-bottom: 0; }
}

/* ---------- Footer contact block ---------- */
.footer-contact { font-style: normal; display: grid; gap: .35rem; margin-top: .9rem; }
.footer-contact-line { display: block; }
.footer-contact .lbl {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .07em;
  text-transform: uppercase; opacity: .62; margin-right: .45rem;
}

/* ---------- Navigation: current section + hover-first dropdowns ---------- */
.primary-nav a[aria-current="page"] {
  color: var(--spruce); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--fern);
}
.primary-nav .nav-group.is-current > .navbtn {
  color: var(--spruce); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--fern);
}
.dropdown a[aria-current="page"] {
  background: rgba(51,104,90,.10); box-shadow: none;
}
@media (min-width: 941px) {
  /* hover is the primary interaction; click still works and is the touch path */
  .nav-group > .dropdown { margin-top: 0; }
  .nav-group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .6rem; }
  .nav-group:hover > .dropdown,
  .nav-group:focus-within > .dropdown { display: block; }
}


/* ---------- Footer contact column ---------- */
.site-footer .footer-col h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; opacity: .7; margin: 0 0 .9rem; }
.site-footer .footer-col > ul { list-style: none; margin: 0 0 .8rem; padding: 0; }
.site-footer .footer-col > ul li { margin-bottom: .55rem; }
.footer-contact { font-style: normal; display: block; margin: 0 0 .85rem; }
.footer-contact .fc-addr { display: block; margin-bottom: .55rem; }
.footer-contact .fc-item { display: block; margin-bottom: .3rem; }
.footer-contact .fc-plain { opacity: .78; }
.footer-note { font-size: .84rem; opacity: .7; margin: 0; line-height: 1.6; }

/* ---------- Visually hidden (spam honeypot, skip link) ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}


/* ---------- Utility bar: every child is an identical flex box ---------- */
.utility-bar .wrap > * {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  line-height: 1;
  padding: 0 2px;
  margin: 0;
}
@media (max-width: 940px) {
  .utility-bar .wrap { flex-wrap: wrap; gap: 0 1rem; }
  .utility-bar .wrap > * { min-height: 44px; }
}

/* ---------- NFC connect page ---------- */
.connect-card { max-width: 30rem; margin: 0 auto; text-align: center; }
.connect-actions { display: grid; gap: .7rem; margin-bottom: 2.2rem; }
.connect-btn { display: block; width: 100%; text-align: center; padding: 1rem 1.2rem; }
.connect-meta { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.connect-meta a { color: inherit; }
.minimal-footer { padding: 2rem 0 2.4rem; }
.minimal-footer .small { opacity: .72; }
.minimal-footer a { color: inherit; }
.connect-avatar {
  display: block; width: 116px; height: 116px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 1.3rem;
  border: 3px solid var(--surface);
  box-shadow: 0 2px 14px rgba(22,32,29,.13);
}
