/*
Theme Name: COA Verified Peptides
Theme URI: https://coaverifiedpeptides.com
Author: Midwest Compounds
Author URI: https://midwestcompounds.com
Description: A calm, reading-first educational reference site about Certificate of Analysis (COA) verification, third-party testing, and how to evaluate research peptides, and plain-language dosing guides. Affiliated educational resource for Midwest Compounds.
Version: 1.13.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coaverified
*/

/* ============================================================
   DESIGN TOKENS
   Softened + shifted from the Midwest Compounds store palette
   (navy #1d3f73 / charcoal #1e2530 / cool-gray #eef1f4) so this
   reads as a calmer sibling property, not a clone.
   ============================================================ */
:root {
  /* Surfaces — warm paper, never pure white */
  --paper:        #f7f5f0;  /* page background */
  --surface:      #fbfaf7;  /* cards / raised areas */
  --surface-alt:  #f1ede4;  /* subtle banding */

  /* Ink — soft charcoal, never pure black */
  --ink:          #2b2f36;  /* body text */
  --ink-soft:     #4f555e;  /* secondary text */
  --ink-faint:    #777d86;  /* captions / meta */

  /* Primary — muted, desaturated blue (Midwest blue family, softer) */
  --blue:         #3a5a82;
  --blue-deep:    #2f496a;  /* hovers / headings on light */
  --blue-tint:    #e7edf4;  /* faint blue wash */

  /* Secondary — quiet sage / soft-teal: the "verified / safe" cue */
  --sage:         #6f9a86;
  --sage-deep:    #5b8270;
  --sage-tint:    #e8f0ec;

  /* Lines — soft, low-contrast (we lean on shadow over borders) */
  --line:         #e6e1d6;
  --line-soft:    #efeae0;

  /* Shadows — gentle, diffuse */
  --shadow-sm: 0 1px 3px rgba(43,47,54,.05), 0 1px 2px rgba(43,47,54,.04);
  --shadow-md: 0 4px 16px rgba(43,47,54,.06), 0 2px 6px rgba(43,47,54,.04);
  --shadow-lg: 0 12px 36px rgba(43,47,54,.08);

  /* Radii — soft rounded corners */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Type roles */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body:    "Source Serif 4", Georgia, Cambria, "Times New Roman", serif;
  --ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Reading measure */
  --measure: 720px;     /* prose text column */
  --measure-wide: 1080px; /* section / grid container */
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-deep); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.18; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; font-family: var(--ui); font-weight: 600; }
p  { margin: 0 0 1.15em; }
strong { font-weight: 600; color: var(--ink); }

/* Selection */
::selection { background: var(--sage-tint); color: var(--ink); }

/* Focus — always visible */
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 3px; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap        { width: 100%; max-width: var(--measure-wide); margin-inline: auto; padding-inline: 22px; }
.prose-wrap  { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: 22px; }
.section     { padding-block: clamp(48px, 8vw, 88px); }
.section--alt { background: var(--surface-alt); }

.eyebrow {
  font-family: var(--ui);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 .8rem;
  display: inline-flex; align-items: center; gap: .5ch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .55ch;
  font-family: var(--ui); font-weight: 600; font-size: .98rem;
  padding: .85em 1.5em; border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--sage); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--sage-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--blue    { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--blue:hover { background: var(--blue-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost   { background: var(--surface); color: var(--blue-deep); border-color: var(--line); }
.btn--ghost:hover { background: #fff; color: var(--blue-deep); border-color: var(--blue); }

/* When a button sits inside .prose, the generic `.prose a { color }` rule would
   otherwise repaint the label to match the button background (invisible until
   hover). Re-assert button text colors with matching specificity. */
.prose a.btn--primary, .prose a.btn--primary:hover,
.prose a.btn--blue, .prose a.btn--blue:hover { color: #fff; }
.prose a.btn--ghost, .prose a.btn--ghost:hover { color: var(--blue-deep); }
.prose a.btn { text-decoration: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-topbar {
  background: var(--blue-deep); color: #eaf0f6;
  font-family: var(--ui); font-size: .8rem; letter-spacing: .02em;
  text-align: center; padding: 7px 16px;
}
.site-topbar a { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
/* When the WordPress admin bar is showing (logged-in users), it's fixed at the
   top and would overlap/clip the sticky header. Push the header down by the
   admin bar's height: 32px on desktop, 46px on mobile (≤782px). */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.site-header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--sage-tint);
  display: grid; place-items: center;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name {
  font-family: var(--display); font-weight: 600; font-size: 1.16rem;
  color: var(--ink); line-height: 1.05; letter-spacing: -.01em;
}
.brand__name span { display: block; font-family: var(--ui); font-weight: 600; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-deep); margin-top: 2px; }

/* ------------------------------------------------------------------
   NAV — mobile-first (mirrors the Midwest Compounds pattern).
   Default = hamburger + slide-down drawer. The horizontal row is
   ADDED at the desktop breakpoint, never crammed below it.
   ------------------------------------------------------------------ */

/* Mobile drawer is the default state. */
.nav {
  position: absolute; top: calc(100% + 1px); left: 0; right: 0;
  display: none; flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--surface); border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px 16px; box-shadow: var(--shadow-md);
  font-family: var(--ui);
}
.nav.is-open { display: flex; }
/* Reset list markup from wp_nav_menu (bare <li> items, no <ul> wrapper) so
   no disc bullets leak in. The fallback uses bare <a>; this covers both. */
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 13px 14px; border-radius: var(--r-sm); transition: background .15s, color .15s;
  display: block;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-tint); color: var(--blue-deep); }
/* CTA pill: the class may sit on the <a> (fallback) or the <li> (WP menu).
   Style the link itself in both cases, and neutralize the <li> background. */
.nav a.nav__cta,
.nav li.nav__cta > a { background: transparent; color: var(--sage); box-shadow: inset 0 0 0 1px var(--sage); text-align: center; margin-top: 6px; border-radius: var(--r-pill); }
.nav a.nav__cta:hover,
.nav li.nav__cta > a:hover { background: var(--sage-tint); color: var(--sage-deep); box-shadow: inset 0 0 0 1px var(--sage-deep); }
.nav li.nav__cta { background: none; padding: 0; }

.brand__name { white-space: nowrap; }

.nav-toggle {
  display: inline-flex; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 44px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center; flex: none;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

/* Desktop: flip to a horizontal row with room for all 7 items, hide toggle. */
@media (min-width: 1024px) {
  .nav {
    position: static; display: flex; flex-direction: row; align-items: center;
    gap: 2px; background: none; border: 0; padding: 0; box-shadow: none;
    /* Center the nav between brand and right edge instead of pinning it
       hard-right (the header has only two children, so space-between would
       dump all the slack into one gap). Symmetric auto margins balance it. */
    margin-left: auto; margin-right: auto;
  }
  .nav a {
    font-size: .92rem; font-weight: 500; padding: 8px 12px;
    border-radius: var(--r-pill); white-space: nowrap;
  }
  .nav a.nav__cta,
  .nav li.nav__cta > a { margin-top: 0; margin-left: 6px; }
  .nav-toggle { display: none; }
}

/* ============================================================
   MOBILE TUNING (≤640px) — the priority device
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap, .prose-wrap { padding-inline: 18px; }

  /* hero: let the headline breathe, slightly smaller, wider measure */
  .hero { padding-block: clamp(40px, 12vw, 64px); }
  .hero h1 { font-size: clamp(1.95rem, 8.5vw, 2.5rem); max-width: 18ch; }
  .hero__lead { font-size: 1.05rem; max-width: 100%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .hero__assure { gap: 10px 18px; font-size: .85rem; }

  /* full-width tap-friendly buttons in CTAs */
  .store-cta .btn { display: block; width: 100%; margin: 0 0 10px; }
  .store-cta .btn + .btn { margin-left: 0; }

  .prose { font-size: 17px; }
  .toc ul { gap: 6px 14px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.85rem; }
  .brand__name { font-size: 1.04rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 10vw, 108px); text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 50% 0%, var(--sage-tint) 0%, transparent 60%),
    radial-gradient(50% 60% at 85% 30%, var(--blue-tint) 0%, transparent 55%);
  opacity: .9;
}
/* Hero content sits in a centered column inside the full-width .wrap envelope,
   so it shares the same left/right alignment as the header and sections. */
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__lead { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; margin: .4em auto 1.6em; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__assure { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; font-family: var(--ui); font-size: .88rem; color: var(--ink-soft); }
.hero__assure span { display: inline-flex; align-items: center; gap: 7px; }
.check { color: var(--sage-deep); flex: none; }
.check svg { width: 17px; height: 17px; display: block; }

/* ============================================================
   PROSE (reading pages)
   ============================================================ */
.prose { font-size: 19px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 1.1em 0; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--blue); }
.prose blockquote {
  margin: 1.4em 0; padding: .6em 1.2em; border-left: 3px solid var(--sage);
  background: var(--sage-tint); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-soft); font-style: italic;
}

/* page header band */
.page-head { padding-block: clamp(40px, 7vw, 72px) clamp(20px,3vw,32px); text-align: center; }
.page-head .prose-wrap { padding-inline: 22px; }
.page-head p.lead { font-size: clamp(1.05rem,2vw,1.22rem); color: var(--ink-soft); max-width: 60ch; margin-inline: auto; }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--r-md);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; }
.card__icon { width: 40px; height: 40px; border-radius: 11px; background: var(--sage-tint); display: grid; place-items: center; margin-bottom: 14px; }
.card__icon svg { width: 21px; height: 21px; color: var(--sage-deep); }

/* numbered steps */
.step__num { font-family: var(--ui); font-weight: 700; font-size: .8rem; letter-spacing: .1em; color: var(--sage-deep); }

/* ============================================================
   REFERENCE LIBRARY TABLE / LIST
   ============================================================ */
.lib-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.lib-search {
  flex: 1 1 280px; font-family: var(--ui); font-size: 1rem;
  padding: 12px 16px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.lib-search:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-tint); }

.lib-filter { display: flex; gap: 6px; flex-wrap: wrap; font-family: var(--ui); }
.lib-filter button {
  font-family: var(--ui); font-size: .85rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: background .15s, color .15s, border-color .15s;
}
.lib-filter button:hover { border-color: var(--sage); color: var(--sage-deep); }
.lib-filter button.is-active { background: var(--sage); color: #fff; border-color: var(--sage); }

.lib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .lib-grid { grid-template-columns: 1fr; } }

.lib-item {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.lib-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--sage); }
.lib-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lib-item__name { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.lib-item__alias { font-family: var(--ui); font-size: .82rem; color: var(--ink-faint); margin-top: 2px; }
.lib-item__class {
  font-family: var(--ui); font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--sage-deep);
  background: var(--sage-tint); padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; flex: none;
}
.lib-item__areas { font-size: .95rem; color: var(--ink-soft); margin-top: 12px; }
.lib-empty { text-align: center; color: var(--ink-faint); padding: 40px 0; font-family: var(--ui); display: none; }

/* ============================================================
   REFERENCE ENTRY (individual peptide page)
   ============================================================ */
.entry-head { text-align: center; padding-block: clamp(40px,7vw,72px) 8px; }
.entry-head .tag-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  font-family: var(--ui); font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill);
}
.tag--class { background: var(--blue-tint); color: var(--blue-deep); }
.tag--ruo   { background: var(--sage-tint); color: var(--sage-deep); }
.entry-head .aka { font-family: var(--ui); color: var(--ink-faint); font-size: .95rem; margin-top: 4px; }

.factbox {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 22px 24px; box-shadow: var(--shadow-sm); margin: 28px 0;
}
.factbox dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; margin: 0; font-size: .96rem; }
.factbox dt { font-family: var(--ui); font-weight: 600; color: var(--ink-faint); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.factbox dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .factbox dl { grid-template-columns: 1fr; gap: 2px 0; } .factbox dt { margin-top: 10px; } }

/* Plain-terms intro: warm, inviting, slightly larger reading size.
   Soft blue tint so it reads as the friendly "start here" block. */
.plainbox {
  background: var(--blue-tint, #eef2f7); border-left: 3px solid var(--blue);
  border-radius: var(--r-md); padding: 20px 24px; margin: 28px 0 8px;
}
.plainbox p {
  margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--ink);
}

/* "What to keep in mind": a calm teaching note, sage-tinted to echo the
   verified cue without alarm. Not a warning banner — a friendly aside. */
.kimbox {
  background: var(--sage-tint); border-radius: var(--r-md);
  padding: 20px 24px; margin: 28px 0;
}
.kimbox__label {
  font-family: var(--ui); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--sage-deep);
  margin: 0 0 .5em;
}
.kimbox p:last-child { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.65; }

/* Research-tools cross-link aside — blue-tinted to read as a helpful
   resource (like .plainbox), linking the educational sibling tools site. */
.toolbox {
  background: var(--blue-tint, #eef2f7); border-left: 3px solid var(--blue);
  border-radius: var(--r-md); padding: 20px 24px; margin: 28px 0;
}
.toolbox__label {
  display: flex; align-items: center; gap: .4em;
  font-family: var(--ui); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--blue);
  margin: 0 0 .5em;
}
.toolbox p:last-child { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.65; }

.research-areas { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin: 22px 0; }
@media (max-width: 640px){ .research-areas { grid-template-columns: 1fr; } }
.ra-card { background: var(--surface); border:1px solid var(--line-soft); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-sm); }
.ra-card h4 { font-family: var(--display); font-size: 1.08rem; font-weight: 600; color: var(--blue-deep); margin-bottom: .4em; }
.ra-card p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* ---- related peptides (entry cross-links) ---- */
.related { margin: 40px 0 8px; }
.related h2 { margin-bottom: .15em; }
.related > p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (max-width: 640px){ .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--sage); }
.related-card__name { font-family: var(--display); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.related-card__class {
  font-family: var(--ui); font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--sage-deep);
}
.related-card__areas { font-size: .9rem; color: var(--ink-soft); }

.cite-list { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: cite; }
.cite-list li { position: relative; padding: 16px 16px 16px 46px; border-top: 1px solid var(--line-soft); font-size: .95rem; color: var(--ink-soft); }
.cite-list li::before { counter-increment: cite; content: counter(cite); position: absolute; left: 14px; top: 16px; font-family: var(--ui); font-weight: 700; font-size: .78rem; color: var(--sage-deep); background: var(--sage-tint); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.cite-list cite { font-style: normal; color: var(--ink); font-weight: 500; }
.cite-list .ft { font-family: var(--ui); font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sage-deep); margin-left: 6px; }

/* In-page CTA to store */
.store-cta {
  background: linear-gradient(180deg, var(--blue-tint), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; text-align: center; margin: 36px 0; box-shadow: var(--shadow-sm);
}
.store-cta h3 { font-size: 1.35rem; margin-bottom: .3em; }
.store-cta p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 1.2em; font-size: .98rem; }
.store-cta .btn + .btn { margin-left: 10px; }
.store-cta .btn { margin-bottom: 10px; }
.flyer-cta { margin-top: 18px; }

/* ruo strip inside content */
.ruo-note {
  font-family: var(--ui); font-size: .85rem; line-height: 1.55; color: var(--ink-faint);
  background: var(--surface-alt); border-radius: var(--r-md); padding: 18px 20px; margin-top: 32px;
}
.ruo-note strong { color: var(--ink-soft); }

/* TOC */
.toc { background: var(--surface); border:1px solid var(--line-soft); border-radius: var(--r-md); padding: 18px 22px; box-shadow: var(--shadow-sm); margin: 24px 0; }
.toc p { font-family: var(--ui); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.toc li, .prose .toc li + li { margin: 0; }
.toc a { font-family: var(--ui); font-size: .92rem; text-decoration: none; color: var(--blue); }

/* ============================================================
   FAQ / accordion
   ============================================================ */
.faq details {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 0; margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-family: var(--display); font-size: 1.08rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--ui); font-weight: 400; font-size: 1.5rem; color: var(--sage-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-soft); font-size: .98rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #c9ccd2; margin-top: 0; }
.site-footer__top { padding-block: 56px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px){ .site-footer__top { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .brand__name { color: #fff; }
.site-footer p { color: #9aa0a8; font-size: .94rem; max-width: 42ch; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.footer-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ui); font-size: .8rem; color: #d6d9de; background: rgba(255,255,255,.06); padding: 8px 13px; border-radius: var(--r-pill); }
.footer-badge svg { width: 15px; height: 15px; color: var(--sage); }
.site-footer h4 { font-family: var(--ui); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #8d939b; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c9ccd2; text-decoration: none; font-size: .94rem; font-family: var(--ui); }
.site-footer a:hover { color: #fff; }
.site-footer__ruo { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0 14px; }
.site-footer__ruo p { font-family: var(--ui); font-size: .82rem; line-height: 1.55; color: #8d939b; max-width: none; }
.site-footer__ruo strong { color: #c9ccd2; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0 36px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--ui); font-size: .82rem; color: #7c828a; }
.site-footer__legal a { color: #9aa0a8; }

/* ============================================================
   MISC / utility
   ============================================================ */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color:#fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-family: var(--ui); z-index: 100; }
.skip-link:focus { left: 0; }
.center { text-align: center; }
.mt-lg { margin-top: 2rem; }
hr.soft { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ============================================================
   DOSING GUIDES (/guides/ index + /guides/{slug}/)
   Reuses the library card + entry styles; these are the extras.
   ============================================================ */
/* "how it works" strip on the index */
.guide-how { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 0 0 28px; }
@media (max-width: 820px){ .guide-how { grid-template-columns: 1fr; } }
.guide-how__item {
  background: var(--sage-tint); border-radius: var(--r-md); padding: 16px 18px;
  font-family: var(--ui); font-size: .92rem; line-height: 1.5; color: var(--ink-soft);
}
.guide-how__item strong { color: var(--sage-deep); display: block; margin-bottom: 2px; }

/* index cards: quick facts under the tagline */
.guide-card__facts { display: grid; gap: 6px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.guide-card__facts div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: .9rem; }
.guide-card__facts dt { font-family: var(--ui); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
.guide-card__facts dd { margin: 0; color: var(--ink); }
@media (max-width: 480px){ .guide-card__facts div { grid-template-columns: 1fr; gap: 0; } }

/* at-a-glance box: the factbox with a label and roomier rows */
.glance dl { grid-template-columns: 130px 1fr; }
@media (max-width: 560px) { .glance dl { grid-template-columns: 1fr; } }
.glance__label { font-family: var(--ui); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 12px; }
.glance dd { font-weight: 500; }

/* tables (titration + reconstitution) */
.table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.guide-table { width: 100%; border-collapse: collapse; font-size: .93rem; font-family: var(--ui); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.guide-table th { text-align: left; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); background: var(--surface-alt); padding: 10px 14px; }
.guide-table td { padding: 11px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; color: var(--ink); line-height: 1.5; }
.guide-table td:first-child { white-space: nowrap; }
@media (min-width: 641px) { .guide-table td:nth-child(2) { white-space: nowrap; } }
.guide-table td strong { color: var(--blue-deep); }
@media (max-width: 640px){ .guide-table { font-size: .86rem; } .guide-table th, .guide-table td { padding: 9px 10px; } }

/* tips list */
.guide-tips { padding-left: 0; list-style: none; }
.guide-tips li { position: relative; padding-left: 28px; }
.guide-tips li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }

/* ---- reconstitution callout: the one block that must not be missed ---- */
.recon-callout {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  background: linear-gradient(135deg, var(--sage-tint), #fff 70%);
  border: 2px solid var(--sage); border-radius: var(--r-lg);
  padding: 24px 26px; margin: 28px 0; box-shadow: var(--shadow-md);
}
.recon-callout__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--sage); color: #fff; display: grid; place-items: center; }
.recon-callout__icon svg { width: 28px; height: 28px; }
.recon-callout__eyebrow { font-family: var(--ui); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 4px; }
.recon-callout__title { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 0 0 .4em; }
.prose .recon-callout__title { margin-top: 0; }
.recon-callout__body > p:not(.recon-callout__eyebrow) { margin: 0 0 1em; font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.recon-callout__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.prose .recon-callout__actions a.btn { text-decoration: none; }
@media (max-width: 640px) {
  .recon-callout { grid-template-columns: 1fr; padding: 20px 18px; }
  .recon-callout__icon { width: 44px; height: 44px; }
  .recon-callout__actions .btn { width: 100%; justify-content: center; }
}
