/* ChiroTrack for institutions: website export stylesheet (run 5), retokened for thechirotrack.com.
   The export shipped DM Sans, #1554c6 and its own dark mode; on this site the site's tokens win (see below).
   Header and footer come from /site-chrome.js; .sec-nav and .sec-foot are the section's own strips.

   Source: tools/export/institutions.css. tools/export_site.py copies it to
   presentable/site-export/institutions/assets/institutions.css. It uses the same class names as
   presentable/site/assets/site.css, so the pages are identical apart from this file and their link paths.
   tests/test_site_export.py checks the tokens and every text/background pair for 4.5:1 contrast in both modes. */

/* ---- tokens: thechirotrack.com's own system (the site wins over the export's) ----
   Fraunces display + Schibsted Grotesk text, loaded by each page's <head> like the rest of the site.
   Same values as site-chrome.css and how-it-works.html. One light theme, like the rest of the site. */
:root{
  color-scheme: light;
  --ground: #16211D;          /* site --ink: the dark band behind the header */
  --act: #0E6B5E;             /* site --primary */
  --act-press: #0B5750;       /* site --primary-press */
  --act-ink: #FFFFFF;
  --line: rgba(255,255,255,.18);
  --font: "Schibsted Grotesk",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --display: "Fraunces",Georgia,serif;
  --navh: 64px;               /* site-chrome.js fixed header: 63px at 1280, 64px at 375 */

  --bg: #FFFFFF;
  --fg: #16211D;
  --muted: #5C6B65;
  --panel: #FBF9F4;
  --rule: rgba(138,150,143,.45);
  --head-bg: var(--ground);
  --head-fg: #FFFFFF;
  --head-muted: #C3CCC8;
  --head-accent: #DC9A50;     /* site --accent-dk */
  --title: #16211D;
  --accent: var(--act);
  --accent-ink: var(--act);
  --link: var(--act);
  --link-hover: var(--act-press);
  --tag-bg: #EBF3F2;
  --tag-fg: #16211D;
  --button-bg: var(--act);
  --button-fg: var(--act-ink);
  --button-hover: var(--act-press);
  --shadow: 0 1px 2px rgba(22,33,29,.06);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ background: var(--bg); -webkit-text-size-adjust: 100%; }
html,body{ margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body{
  background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.58; font-weight: 400;
  overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover{ color: var(--link-hover); }
a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap{ width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.measure{ max-width: 42rem; }

/* ---- section nav, under the site's fixed header ---- */
body{ padding-top: var(--navh); }
.sec-nav{ background: var(--head-bg); color: var(--head-fg); border-bottom: 1px solid var(--line); }
.sec-nav .wrap{ padding-top: 12px; padding-bottom: 10px; }
.nav{ display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.nav a{ color: var(--head-muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover{ color: var(--head-fg); }
.nav a[aria-current="page"]{ color: var(--head-fg); border-bottom-color: var(--head-accent); }

/* ---- page title band: always on the dark ground ---- */
.hero{ background: var(--head-bg); color: var(--head-fg); padding: 26px 0 40px; }
.hero .kicker{ color: var(--head-accent); }
.hero h1{ color: var(--head-fg); }
.hero .lede{ color: var(--head-muted); }
.kicker{ font-size: 13px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
h1,h2,h3{ font-family: var(--display); color: var(--title); line-height: 1.15; }
h1{ font-weight: 500; font-size: clamp(32px, 5.2vw, 50px); margin: 0 0 14px; letter-spacing: -.02em; }
h2{ font-weight: 500; font-size: clamp(22px, 3vw, 27px); margin: 0 0 12px; letter-spacing: -.01em; }
h3{ font-weight: 500; font-size: 19px; margin: 0 0 6px; }
.lede{ font-size: 19px; max-width: 40rem; margin: 0; }
.crumbs{ font-size: 14px; margin: 0 0 14px; color: var(--head-muted); }
.crumbs a{ color: var(--head-muted); }

/* ---- sections ---- */
main{ display: block; }
.block{ padding: 34px 0; border-bottom: 1px solid var(--rule); }
.block:last-child{ border-bottom: 0; }
.block p{ margin: 0 0 12px; max-width: 42rem; }
.block ul,.block ol{ margin: 0 0 12px; padding-left: 22px; max-width: 42rem; }
.block li{ margin: 0 0 7px; }
.block ol.steps{ list-style: none; padding: 0; counter-reset: s; }
.block ol.steps li{ counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 12px; }
.block ol.steps li::before{ content: counter(s); position: absolute; left: 0; top: -2px; font-weight: 600; font-size: 22px; color: var(--accent-ink); }
.two{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }

/* key facts row on offer pages */
.facts{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 0; padding: 0; }
.facts div{ background: var(--panel); border-top: 3px solid var(--accent); padding: 12px 14px 14px; box-shadow: var(--shadow); min-width: 0; border-radius: 0 0 6px 6px; }
.facts dt{ font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.facts dd{ margin: 0; font-size: 16px; }
.facts dd strong{ font-weight: 600; font-size: 20px; color: var(--title); }

.status{ display: inline-block; font-size: 13.5px; font-weight: 600; padding: 2px 10px; background: var(--tag-bg); color: var(--tag-fg); border-radius: 999px; }
.tier2{ display: inline-block; font-size: 13.5px; font-weight: 600; padding: 1px 9px; border: 1px solid var(--accent); color: var(--accent-ink); border-radius: 999px; }
.note{ background: var(--panel); border-left: 3px solid var(--accent); padding: 12px 16px; max-width: 42rem; margin: 0 0 12px; border-radius: 0 6px 6px 0; }
.note p:last-child{ margin-bottom: 0; }

/* cards (hub doors, offer lists) */
.cards{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card{ background: var(--panel); padding: 20px; border-top: 3px solid var(--accent); box-shadow: var(--shadow); min-width: 0; border-radius: 0 0 8px 8px; }
.card h3 a{ color: var(--title); text-decoration: none; }
.card h3 a:hover{ text-decoration: underline; }
.card p{ margin: 0 0 8px; font-size: 16px; }
.card .meta{ font-size: 14px; color: var(--muted); margin: 0; }
.door{ padding: 26px; }
.door h2{ font-size: 25px; }

/* the hub's two doors */
.doors{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.door-panel{ background: var(--panel); border-top: 3px solid var(--accent); padding: 24px; box-shadow: var(--shadow); min-width: 0; border-radius: 0 0 8px 8px; }
.door-panel h2{ font-size: 25px; }
.door-panel p{ font-size: 16px; }
.block .door-list{ list-style: none; padding: 0; margin: 0 0 14px; }
.block .door-list li{ padding: 9px 0; margin: 0; border-bottom: 1px solid var(--rule); }
.door-list a{ font-weight: 600; }
.door-list span{ display: block; font-size: 15px; color: var(--muted); }

/* tables: wide content scrolls inside its own box, never the page */
.scroll{ width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px; border: 1px solid var(--rule); background: var(--panel); border-radius: 6px; }
table{ border-collapse: collapse; width: 100%; font-size: 15px; }
th,td{ text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
th{ font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child td{ border-bottom: 0; }
td.name{ min-width: 190px; }
td.name a{ font-weight: 600; }
td.band{ white-space: nowrap; }
table.catalog{ min-width: 1040px; }
table.catalog td.goal{ min-width: 250px; }
table.catalog td.kind{ min-width: 100px; }
table.catalog td.stat{ min-width: 160px; }
.id{ font-weight: 700; color: var(--accent-ink); margin-right: 6px; }

/* samples */
.samples{ display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 300px)); gap: 22px; margin: 0 0 12px; }
.samples.wide{ grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 420px)); }
figure{ margin: 0; min-width: 0; }
figure img{ border: 1px solid var(--rule); background: #fff; border-radius: 4px; }
figcaption{ font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.fict{ display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }

/* call to action: the one bold element on each page */
.cta{ background: var(--head-bg); color: var(--head-fg); padding: 26px; max-width: 42rem; border-radius: 10px; border: 1px solid var(--line); }
.cta h2{ color: var(--head-fg); }
.cta p{ color: var(--head-muted); margin: 0 0 14px; }
.cta a.button{ display: inline-block; background: var(--button-bg); color: var(--button-fg); font-weight: 600; text-decoration: none; padding: 11px 18px; border-radius: 999px; max-width: 100%; }
.cta a.button:hover{ background: var(--button-hover); color: var(--button-fg); }
.cta .addr{ font-size: 14.5px; margin: 12px 0 0; word-break: break-all; }

/* plain lists */
.plain{ list-style: none; padding: 0; }
.plain li{ padding: 6px 0; border-bottom: 1px solid var(--rule); }

/* ---- section footer strip, above the site footer ---- */
.sec-foot{ border-top: 1px solid var(--rule); padding: 26px 0 36px; font-size: 14.5px; color: var(--muted); }
.sec-foot p{ margin: 0 0 6px; }
.sec-foot a{ color: var(--muted); }

@media (max-width: 600px){
  body{ font-size: 16px; }
  .hero{ padding: 18px 0 30px; }
  .lede{ font-size: 17.5px; }
  .block{ padding: 26px 0; }
  .nav{ gap: 2px 16px; font-size: 14.5px; }
  .cta{ padding: 20px; }
  .door{ padding: 20px; }
}
@media print{
  .sec-nav,.sec-foot,.cta a.button{ display: none; }
  .hero{ background: none; color: #000; }
}
