/* ATX Infusion & Wellness: draft v2
   Layout and type from our v1 mock; colors from her own site (atx-infusion-wellness :root).
   Navy/teal is the base, amber is the pop on headings and accents.
   To swap palettes, change only the "Her palette" block below; everything else reads the
   role tokens underneath it. Contrast (WCAG AA) is noted next to each text pairing. */
:root {
  color-scheme: light;

  /* Her palette (from her :root, 10-03) */
  --navy: #0F4C5C;        /* 9.5:1 on white, 9.1:1 on paper, 8.0:1 on navy-soft */
  --navy-deep: #0A3843;   /* hover/darker navy, 12.7:1 with white */
  --navy-soft: #E3EEF0;   /* band background */
  --amber: #D9A441;       /* decoration only on white (2.25:1); 4.23:1 on navy = large headings (24px+) only */
  --amber-ink: #8A6210;   /* amber you can read: 5.5:1 on white, 4.8:1 on amber-soft */
  --amber-soft: #FBF0D6;  /* warm band / callout background */
  --ink: #15282B;         /* 15.3:1 on white */
  --ink-2: #3F5558;       /* muted text: 7.9:1 on white, 6.7:1 on navy-soft, 7.0:1 on amber-soft */
  --line: #D9E3E0;
  --paper: #F8FAF9;
  --ok: #2D6A2D;

  /* Roles (read these, not the palette, in rules below) */
  --ground: #ffffff;
  --surface: var(--navy-soft);
  --surface-warm: var(--amber-soft);
  --text: var(--ink);
  --muted: var(--ink-2);
  --accent: var(--navy);
  --accent-dark: var(--navy-deep);
  --pop: var(--amber);
  --pop-ink: var(--amber-ink);
  --rule: var(--line);
  --on-dark: #ffffff;
  --on-dark-muted: #D3E3E7;  /* 7.2:1 on navy */

  --radius: 6px;
  --max: 68rem;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pop-ink); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; color: var(--accent); }
h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3.5vw, 1.95rem); }
h3 { font-size: 1.2rem; color: var(--text); }
/* The pop: a short amber rule under page and section headings */
h1::after, .section-h::after { content: ""; display: block; width: 3rem; height: 4px; background: var(--pop); border-radius: 2px; margin-top: 0.45em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--text); color: #fff; padding: 0.5rem 0.75rem; z-index: 10; }

.draft-bar { background: var(--surface-warm); color: var(--pop-ink); font-size: 0.875rem; padding: 0.4rem 1rem; text-align: center; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); border-top: 4px solid var(--pop); }
.utility { background: var(--accent); font-size: 0.875rem; }
.utility .wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem 1.25rem; padding-top: 0.3rem; padding-bottom: 0.3rem; }
.utility a { color: var(--on-dark); text-decoration: none; }
.utility a:hover { color: var(--on-dark); text-decoration: underline; }
.utility :focus-visible { outline-color: var(--pop); }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-top: 0.8rem; padding-bottom: 0.3rem; }
.brand { font-family: var(--display); font-size: clamp(1.05rem, 4.2vw, 1.3rem); font-weight: 600; color: var(--accent); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--accent-dark); }
.brand small { display: block; font-family: var(--body); font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.site-nav { width: 100%; order: 3; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-nav a { display: inline-block; padding: 0.55rem 0; color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule); color: var(--accent); }
.site-nav a[aria-current="page"], .site-nav a.in-section { border-bottom-color: var(--pop); color: var(--accent); font-weight: 700; }
@media (min-width: 60rem) {
  .site-header .bar { padding-bottom: 0.8rem; }
  .site-nav { width: auto; order: 0; margin-left: auto; }
  .brand { margin-right: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0.6rem 1.2rem; border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-plain { background: transparent; color: var(--accent); }
.btn-plain:hover { background: var(--surface); }
.btn-small { min-height: 2.6rem; padding: 0.4rem 0.9rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Sections */
section { padding: 2.75rem 0; }
.band { background: var(--surface); }
.band-warm { background: var(--surface-warm); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.narrow { max-width: 44rem; }
.page-head { padding-bottom: 1.5rem; }

.hero .wrap { display: grid; gap: 2rem; align-items: center; }
.hero figure { margin: 0; }
.hero img { border-radius: var(--radius); width: 100%; max-height: 24rem; object-fit: cover; object-position: 50% 20%; }
@media (min-width: 48rem) { .hero img { max-height: none; } }
.hero figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.4rem; }
@media (min-width: 48rem) { .hero .wrap { grid-template-columns: 1.4fr 1fr; } }
.facts-line { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.95rem; color: var(--muted); }
.facts-line li { border-left: 3px solid var(--pop); padding-left: 0.5rem; }

.fork { border-left: 4px solid var(--pop); background: var(--surface); padding: 1rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.fork p { margin: 0; }
.fork a { color: var(--accent); font-weight: 700; }

.jump { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a { display: inline-block; padding: 0.35rem 0.75rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-size: 0.95rem; background: var(--ground); }
.jump a:hover { border-color: var(--accent); }

/* The price list: the page's one strong element */
.menu { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--accent); }
.menu > li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.menu .row { display: flex; align-items: baseline; gap: 0.75rem; }
.menu .name { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--accent); }
.menu .dots { flex: 1; border-bottom: 2px dotted var(--pop); transform: translateY(-0.3em); min-width: 1rem; }
.menu .price { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu .what { color: var(--muted); margin: 0.3rem 0 0; font-size: 0.98rem; }
.menu .what strong { color: var(--text); font-weight: 700; }
.menu .doses { list-style: none; margin: 0.5rem 0 0; padding: 0 0 0 1rem; border-left: 3px solid var(--surface); }
.menu .doses li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.15rem 0; }
.menu .doses .dots { border-bottom-width: 1px; }
.menu.compact .name { font-size: 1.05rem; }
.menu.compact > li { padding: 0.75rem 0; }
.menu .name a { color: inherit; text-decoration-color: var(--pop); text-underline-offset: 0.2em; }
.menu > li[id] { scroll-margin-top: 1rem; }
.menu > li:target { background: var(--surface-warm); box-shadow: -0.75rem 0 0 var(--surface-warm), 0.75rem 0 0 var(--surface-warm); }

.cols { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .cols { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.cols-wide { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .cols-wide { grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; } }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.list-plain > li:first-child { border-top: 1px solid var(--rule); }
.list-plain h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.list-plain p { margin: 0 0 0.3rem; color: var(--muted); }
.list-plain p:last-child { margin-bottom: 0; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.2rem; margin: 0.45rem 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--pop); }

.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: 0.6rem; }
.steps li::marker { color: var(--pop-ink); font-weight: 700; }

/* Asides (her "callouts") */
.aside { background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.aside.warm { background: var(--surface-warm); border-color: #EBDDB8; border-top-color: var(--pop); }
.aside h2, .aside h3 { font-size: 1.1rem; color: var(--accent); margin-bottom: 0.4rem; }
.aside p:last-child, .aside ul:last-child { margin-bottom: 0; }
.stack { display: grid; gap: 1rem; align-content: start; }

/* Providers band */
.providers { background: var(--accent); color: var(--on-dark); }
.providers h2 { color: var(--pop); font-size: clamp(1.5rem, 3.5vw, 1.95rem); } /* amber on navy is 4.23:1: keep it 24px+ */
.providers h3 { color: var(--on-dark); }
.providers p { color: var(--on-dark-muted); }
.providers a { color: var(--on-dark); }
.providers :focus-visible { outline-color: var(--pop); }
.provider-list { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 48rem) { .provider-list { grid-template-columns: repeat(3, 1fr); } }
.provider { border-top: 3px solid var(--pop); padding-top: 1rem; }
.provider .go { display: inline-block; margin-top: 0.4rem; font-weight: 700; padding: 0.35rem 0; }

/* Clinician page app rows */
.app { display: grid; gap: 1.25rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.app:last-of-type { border-bottom: 0; }
.app img { border-radius: var(--radius); border: 1px solid var(--rule); }
.app .kind { font-size: 0.9rem; font-weight: 700; color: var(--pop-ink); margin: 0 0 0.3rem; }
@media (min-width: 52rem) { .app { grid-template-columns: 1fr 1fr; gap: 2.5rem; } .app.flip > a { order: 2; } }

/* Tables */
.table-scroll { overflow-x: auto; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.facts th[scope="row"] { width: 8rem; color: var(--muted); font-weight: 400; }
.fees { width: 100%; border-collapse: collapse; border-top: 2px solid var(--accent); }
.fees th, .fees td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fees thead th { font-size: 0.9rem; color: var(--muted); font-weight: 700; }
.fees td:first-child { font-weight: 700; color: var(--accent); }
.fees td.price { font-family: var(--display); font-weight: 600; white-space: nowrap; text-align: right; padding-right: 0; }
.fees thead th:last-child { text-align: right; padding-right: 0; }
@media (max-width: 34rem) {
  .fees thead { position: absolute; left: -999px; }
  .fees tr { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .fees td { border: 0; padding: 0; }
  .fees td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 0.95rem; }
}

.areas { color: var(--muted); }
.note { font-size: 0.92rem; color: var(--muted); }
.fine { font-size: 0.9rem; color: var(--muted); }
.figure-link img { border-radius: var(--radius); border: 1px solid var(--rule); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 0.9rem 0; font-weight: 700; color: var(--accent); list-style-position: outside; margin-left: 1.1rem; }
.faq summary::marker { color: var(--pop-ink); }
.faq details p { margin: 0 0 1rem; color: var(--text); }

/* Cards for secondary pages (Learn, What I use, Regenerative) */
.cards { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 44rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--rule); border-top: 3px solid var(--pop); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--ground); }
.card h2, .card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--accent); }
.card p { color: var(--muted); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .topic { font-size: 0.85rem; font-weight: 700; color: var(--pop-ink); margin: 0 0 0.3rem; }
.soon { color: var(--muted); font-size: 0.9rem; }

/* Article prose */
.prose h2 { margin-top: 1.75rem; }
.prose h2:first-child { margin-top: 0; }
.refs { font-size: 0.9rem; color: var(--muted); }
.refs li { margin-bottom: 0.4rem; overflow-wrap: anywhere; }

/* Form */
.form { display: grid; gap: 1rem; }
.form label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.form .hint { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; padding: 0.65rem 0.7rem; border: 1px solid #9DB0B3; border-radius: var(--radius); font: inherit; color: var(--text); background: #fff; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--pop-ink); outline-offset: 1px; border-color: var(--accent); }
.form .two { display: grid; gap: 1rem; }
@media (min-width: 36rem) { .form .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 4px solid var(--pop); background: var(--paper); padding: 2.25rem 0 2.5rem; font-size: 0.95rem; color: var(--muted); }
.foot-cols { display: grid; gap: 1.75rem; }
@media (min-width: 48rem) { .foot-cols { grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; } }
.foot-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--accent); margin-bottom: 0.3rem; }
.foot-h { font-family: var(--body); font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 0.4rem; }
.foot-h + ul + .foot-h, ul + .foot-h { margin-top: 1.25rem; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.3rem 0; }
.disclaimer { font-size: 0.85rem; margin-top: 1.75rem; max-width: 52rem; }
.refs-wrap { margin-top: 1.5rem; border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.refs-wrap summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 0.4rem 0; }
.refs-wrap .refs { margin-top: 0.75rem; }
.cards .card h3 { font-size: 1.1rem; }
.actions + .note { margin-top: 0.85rem; }
@media (max-width: 30rem) {
  .site-header .bar { gap: 0.5rem 0.6rem; }
  .brand { font-size: 1rem; }
  .brand small { font-size: 0.75rem; }
  .btn-small { font-size: 0.85rem; padding: 0.35rem 0.6rem; min-height: 2.5rem; }
  .site-nav ul { gap: 0 1rem; }
}
.menu .doses li { font-family: var(--display); font-weight: 600; }
