/* ==========================================================================
   Reverse Cavity Protocol — design system
   Tokens and components extracted from the Claude Design prototypes.
   Every value here is taken verbatim from the source artboards.
   ========================================================================== */

:root {
  /* --- Greens: the brand ramp -------------------------------------------- */
  --green-900: #04342C; /* deep bands, wordmark, headings on tint */
  --green-800: #085041; /* pressed state on dark grounds */
  --green-700: #0F6E56; /* links */
  --green-600: #178A65; /* primary button hover */
  --green-500: #1D9E75; /* primary accent */
  --green-200: #9FE1CB; /* body copy on dark grounds */
  --green-100: #E1F5EE; /* tinted fills */
  --green-muted: #5F8F82; /* faint copy on dark grounds */
  --green-tint-hover: #EDF6F2;

  /* --- Neutrals ---------------------------------------------------------- */
  --ink: #16211D; /* primary text */
  --ink-2: #242E29; /* body copy inside tinted panels */
  --ink-3: #3A443F; /* secondary text */
  --ink-4: #4A544F; /* body copy */
  --ink-5: #5B6663; /* muted */
  --ink-6: #8A938E; /* faint */
  --ink-7: #8A948F; /* faint, struck prices */

  --line: #D8DDD9; /* hairline border */
  --line-2: #E2E6E3; /* lighter rule */
  --line-3: #F1F3F0; /* faintest rule */
  --line-input: #C3CCC6;
  --line-button: #C7D3CE;

  --surface: #FFFFFF;
  --surface-2: #F6F8F6; /* banded section */
  --surface-3: #F1F3F0; /* light fill */
  --surface-4: #FAFBFA; /* footer */
  --surface-img: #EAEEEB; /* image placeholder ground */
  --surface-prod: #F1F4F1; /* product photo ground */

  /* --- Warm accents (kids, cautions) ------------------------------------- */
  --cream: #FAEEDA;
  --brown: #633806;
  --red: #8C2D1C;
  --red-100: #FFEDE8;

  /* --- Type -------------------------------------------------------------- */
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;

  /* --- Shape ------------------------------------------------------------- */
  --r-sm: 6px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-pill: 999px;

  --hairline: 0.5px solid var(--line);

  --shadow-card: 0 14px 34px rgba(4, 52, 44, 0.14);
  --shadow-pop: 0 14px 34px rgba(4, 52, 44, 0.2);
  --shadow-modal: 0 24px 60px rgba(4, 52, 44, 0.3);
  --shadow-lift: 0 8px 24px rgba(4, 52, 44, 0.35);

  /* --- Layout ------------------------------------------------------------ */
  --wrap: 1180px;
  --gutter: 28px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

/* Several components below set `display`, which outranks the user-agent
   `[hidden] { display: none }` rule and would leave hidden panels laid out and
   swallowing clicks. This keeps the attribute authoritative. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--surface);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-700); }
a:hover { color: var(--green-900); }

img { max-width: 100%; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

::selection { background: var(--green-100); }

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

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* A full-width horizontal section. Modifiers set the ground. */
.band { border-top: var(--hairline); }
.band--first { border-top: none; }
.band--tint { background: var(--surface-2); }
.band--dark { background: var(--green-900); }
.band--cream { background: var(--cream); }
.band--rule-below { border-top: none; border-bottom: var(--hairline); }

.stack-end { flex: 1; }

/* Interior pages run a slightly narrower measure than the homepage. */
.wrap--narrow { max-width: 1120px; }

/* --------------------------------------------------------------------------
   Page hero — the dark banner interior pages open with
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--green-900) url('../assets/hero-dark.png') right center / cover no-repeat;
}
.page-hero .wrap { padding-top: 24px; padding-bottom: 28px; }
.page-hero h1 {
  margin: 12px 0 0;
  font: 500 32px/1.25 var(--serif);
  color: #FFFFFF;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.page-hero .page-hero-sub {
  margin: 8px 0 0;
  font: 400 14.5px var(--sans);
  color: var(--green-200);
  max-width: 600px;
}
.page-hero .page-hero-meta {
  margin-top: 11px;
  font: 400 13px var(--sans);
  color: var(--green-200);
}
.page-hero .page-hero-meta strong { color: #FFFFFF; font-weight: 500; }

.crumbs {
  font: 400 12px var(--sans);
  color: var(--green-200);
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.crumbs a { color: var(--green-200); text-decoration: none; }
.crumbs a:hover { color: #FFFFFF; }
.crumbs .sep { color: var(--green-700); }
.crumbs .here { color: var(--green-100); }

/* An outlined pill on the dark hero — "Not dental advice" and similar. */
.hero-pill {
  padding: 3px 10px;
  border: 0.5px solid var(--green-700);
  border-radius: var(--r-pill);
  font: 500 11px var(--sans);
  color: var(--green-100);
}

/* --------------------------------------------------------------------------
   Long-form article body
   -------------------------------------------------------------------------- */

.article { min-width: 0; max-width: 760px; }
.article h2 {
  margin: 36px 0 0;
  font: 500 23px/1.3 var(--serif);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.article h3 {
  margin: 26px 0 0;
  font: 500 18px/1.35 var(--serif);
  color: var(--ink);
}
.article p {
  margin: 12px 0 0;
  font: 400 15.5px/1.75 var(--sans);
  color: var(--ink-2);
}
.article .summary {
  margin: 0;
  font: 400 16.5px/1.75 var(--sans);
  color: var(--ink-2);
  text-wrap: pretty;
}
.article ul,
.article ol { margin: 12px 0 0; padding-left: 20px; }
.article li {
  margin-top: 7px;
  font: 400 15.5px/1.7 var(--sans);
  color: var(--ink-2);
}

/* Q&A block used on guides and reviews. */
.qa { padding: 16px 0; border-bottom: 0.5px solid var(--line-2); }
.qa-q { font: 500 16.5px var(--serif); color: var(--ink); }
.qa-a {
  margin: 7px 0 0;
  font: 400 14.5px/1.7 var(--sans);
  color: var(--ink-2);
  max-width: 680px;
}
.qa-link {
  display: inline-block;
  margin-top: 7px;
  font: 500 13px var(--sans);
  color: var(--green-700);
  text-decoration: none;
}
.qa-link:hover { text-decoration: underline; }

/* Verdict card — the "what the research supports" unit. */
.verdict {
  border: var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  text-decoration: none;
  display: block;
}
.verdict:hover { border-color: var(--green-700); }
.verdict-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.verdict-title { font: 500 16.5px var(--serif); color: var(--ink); }
.verdict-body {
  margin: 8px 0 0;
  font: 400 13.5px/1.6 var(--sans);
  color: var(--ink-4);
  max-width: 640px;
}

/* The cream "see a dentist" panel. */
.flags {
  margin-top: 36px;
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.flags-list { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.flags-item {
  display: flex;
  gap: 10px;
  font: 400 14.5px/1.6 var(--sans);
  color: #3A2A14;
}
.flags-item .bullet { color: #B48A56; font-weight: 500; }
.flags-sign {
  margin-top: 14px;
  font: 400 12.5px/1.6 var(--sans);
  color: var(--brown);
}
.flags-sign strong { font-weight: 500; }

/* Source list. */
.sources { margin-top: 8px; border-top: var(--hairline); }
.source {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 12px 2px;
  border-bottom: 0.5px solid var(--line-2);
  text-decoration: none;
}
.source-title { flex: 1; font: 500 15.5px/1.4 var(--serif); color: var(--ink); }
.source:hover .source-title { color: var(--green-700); }
.source-meta {
  font: 400 11.5px var(--sans);
  color: var(--ink-5);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Evidence review — the three-column reading layout
   -------------------------------------------------------------------------- */

.review-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 200px;
  gap: 0 44px;
  align-items: start;
}
.review-hero-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 200px;
  gap: 0 44px;
}

/* Table of contents, scroll-spied. */
.toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  text-decoration: none;
  font: 400 11.5px/1.35 var(--sans);
  color: var(--ink-5);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.toc-link::before {
  content: '';
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: transparent;
  flex: none;
}
.toc-link:hover { color: var(--green-700); }
.toc-link[aria-current='true'] { color: var(--green-900); }
.toc-link[aria-current='true']::before { background: var(--green-500); }

.takeaways {
  background: #F4F6F4;
  border-radius: var(--r);
  padding: 18px 20px 16px;
}
.takeaways-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.takeaways-item {
  display: flex;
  gap: 10px;
  font: 400 14.5px/1.6 var(--sans);
  color: var(--ink);
}
.takeaways-item .bullet { color: var(--green-500); font-weight: 500; }

/* A single study result, pulled out of the prose. */
.finding {
  margin: 18px 0 0;
  border-left: 3px solid var(--green-500);
  padding: 2px 0 2px 18px;
}
.finding p {
  margin: 0;
  font: 400 15px/1.65 var(--sans);
  color: var(--ink);
}
.finding .finding-meta {
  margin-top: 7px;
  font: 400 11.5px var(--sans);
  color: var(--ink-5);
}

/* Superscript citation marker. */
.cite {
  color: var(--green-700);
  cursor: pointer;
  font-size: 11px;
  vertical-align: super;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0 1px;
  font-family: var(--sans);
}
.cite:hover { text-decoration: underline; }

.refs-list { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.ref {
  display: flex;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--r);
  background: transparent;
  transition: background 0.2s;
}
.ref.is-target { background: var(--green-100); }
.ref-num { font: 500 12px var(--sans); color: var(--ink-5); min-width: 18px; }
.ref-text { font: 400 13.5px/1.55 var(--sans); color: var(--ink); }
.ref-meta { margin-top: 3px; font: 400 11.5px var(--sans); color: var(--ink-5); }

/* Right-hand context rail cards. */
.rail-card {
  border: var(--hairline);
  border-radius: var(--r-lg);
  padding: 15px 16px;
  text-decoration: none;
  display: block;
}
a.rail-card:hover { border-color: var(--green-500); }
.rail-label {
  font: 500 10px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.rail-related a {
  display: block;
  padding: 8px 0;
  border-top: 0.5px solid var(--line-2);
  text-decoration: none;
}
.rail-related .t {
  font: 500 12.5px/1.45 var(--serif);
  color: var(--ink);
}
.rail-related a:hover .t { color: var(--green-700); }
.rail-related .m {
  margin-top: 3px;
  font: 400 10.5px var(--sans);
  color: var(--ink-5);
}
.rail-action {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 400 11.5px var(--sans);
  color: var(--ink-5);
  text-decoration: none;
}
.rail-action:hover { color: var(--green-700); }

/* Update history / inline note panel. */
.panel-soft {
  background: #F4F6F4;
  border-radius: var(--r);
  padding: 16px 20px;
}

/* Inline dark newsletter block used inside article bodies. */
.inline-signup {
  margin-top: 28px;
  background: var(--green-900);
  border-radius: var(--r);
  padding: 22px 24px;
}

@media (max-width: 1080px) {
  .review-layout,
  .review-hero-grid { grid-template-columns: minmax(0, 1fr) 200px; gap: 0 32px; }
  .review-layout > .toc,
  .review-hero-grid > .toc-spacer { display: none; }
}
@media (max-width: 900px) {
  .review-layout,
  .review-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .review-layout > .review-rail { display: none; }
}

/* --------------------------------------------------------------------------
   Section nav — the sticky in-page tab bar on reference pages
   -------------------------------------------------------------------------- */

.section-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: var(--hairline);
}
.section-nav .wrap {
  display: flex;
  gap: 22px;
  overflow-x: auto;
}
.section-nav a {
  padding: 13px 0 11px;
  font: 500 13px var(--sans);
  color: var(--ink-5);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.section-nav a:hover { color: var(--green-700); }
.section-nav a[aria-current='true'] {
  color: var(--green-900);
  border-bottom-color: var(--green-500);
}

/* Simple data table (studied amounts, comparison specs). */
.spec-table {
  margin-top: 14px;
  border: var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}
.spec-table .row-head,
.spec-table .row-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 18px;
  padding: 12px 18px;
}
.spec-table .row-head {
  background: var(--surface-2);
  border-bottom: var(--hairline);
  font: 500 11px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.spec-table .row-body {
  border-bottom: 0.5px solid var(--line-2);
  font: 400 13.5px/1.6 var(--sans);
  color: var(--ink-2);
}
.spec-table .row-body:last-child { border-bottom: none; }
.spec-table .row-body strong { font-weight: 500; color: var(--ink); }

@media (max-width: 680px) {
  .spec-table .row-head { display: none; }
  .spec-table .row-body { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Guide rail: all-guides list with a marker on the current one. */
.guide-rail-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  text-decoration: none;
  font: 400 12.5px/1.35 var(--sans);
  color: var(--ink-5);
}
.guide-rail-link::before {
  content: '';
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: transparent;
  flex: none;
}
.guide-rail-link:hover { color: var(--green-700); }
.guide-rail-link[aria-current='page'] { color: var(--green-900); }
.guide-rail-link[aria-current='page']::before { background: var(--green-500); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.eyebrow {
  font: 500 10.5px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.eyebrow--tight { letter-spacing: 0.12em; }
.eyebrow--mint { color: var(--green-200); }
.eyebrow--green { color: var(--green-700); }
.eyebrow--brown { color: var(--brown); }

.h1 {
  margin: 0;
  font: 500 34px/1.22 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.h2 {
  margin: 0;
  font: 500 22px var(--serif);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.h2--lg {
  font: 500 25px/1.28 var(--serif);
  text-wrap: pretty;
}
.h3 {
  margin: 0;
  font: 500 20px var(--serif);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.lede {
  margin: 7px 0 0;
  font: 400 14px/1.6 var(--sans);
  color: var(--ink-4);
}
.prose {
  margin: 0;
  font: 400 14.5px/1.7 var(--sans);
  color: var(--ink-2);
}
.meta {
  font: 400 12px var(--sans);
  color: var(--ink-5);
}
.micro {
  font: 400 11.5px/1.6 var(--sans);
  color: var(--ink-6);
}

.on-dark { color: #FFFFFF; }
.on-dark-body { color: var(--green-200); }

/* Section header: title left, "all →" link right. */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.sec-link {
  font: 500 13px var(--sans);
  color: var(--green-700);
  text-decoration: none;
}
.sec-link:hover { text-decoration: underline; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: var(--r);
  font: 500 14px var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn--sm { height: 40px; padding: 0 20px; font-size: 13.5px; }
.btn--xs { height: 38px; padding: 0 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--lg { height: 54px; padding: 0 34px; font-size: 17px; border-radius: var(--r-md); }

.btn-primary { background: var(--green-500); color: #FFFFFF; }
.btn-primary:hover { background: var(--green-600); color: #FFFFFF; }
.btn-primary:active { background: var(--green-700); }

/* Outlined, for use on the dark hero ground. */
.btn-outline-dark {
  border: 0.5px solid var(--green-700);
  background: transparent;
  color: var(--green-100);
}
.btn-outline-dark:hover { background: var(--green-800); color: var(--green-100); }

/* Outlined, for use on light grounds. */
.btn-outline {
  border: 0.5px solid var(--line-button);
  background: transparent;
  color: var(--green-700);
}
.btn-outline:hover {
  background: var(--green-tint-hover);
  border-color: var(--green-700);
  color: var(--green-700);
}

/* The settled/confirmed state a button falls into after it is pressed. */
.btn-done {
  background: var(--green-100);
  color: var(--green-900);
  cursor: default;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 15px;
  background: var(--green-500);
  border-radius: var(--r-pill);
  font: 500 13px var(--sans);
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
}
.btn-pill:hover { background: var(--green-600); color: #FFFFFF; }

/* --------------------------------------------------------------------------
   Chips and tags
   -------------------------------------------------------------------------- */

.chip {
  display: inline-block;
  padding: 5px 12px;
  border: 0.5px solid var(--line-input);
  border-radius: var(--r-pill);
  font: 400 12.5px var(--sans);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
}
.chip:hover { border-color: var(--green-700); color: var(--green-700); }
.chip--dark {
  border-color: var(--green-700);
  color: var(--green-100);
}
.chip--dark:hover { background: var(--green-800); color: var(--green-100); }
.chip[aria-pressed='true'],
.chip.is-active {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--green-100);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font: 500 11px var(--sans);
  white-space: nowrap;
}
.tag--solid { background: var(--green-900); color: var(--green-100); }
.tag--accent { background: var(--green-500); color: #FFFFFF; }
.tag--mint { background: var(--green-100); color: var(--green-900); }
.tag--grey { background: var(--surface-3); color: var(--ink-3); }
.tag--cream { background: var(--cream); color: var(--brown); }
.tag--live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--red);
  color: var(--red-100);
  letter-spacing: 0.04em;
}
.tag--live .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--red-100);
  display: block;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: var(--hairline);
  border-radius: var(--r-md);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.card--lg { border-radius: var(--r-lg); }
.card--pad { padding: 16px 17px 15px; }
.card--pad-lg { padding: 22px 24px; }
a.card:hover { border-color: var(--green-700); }

.card-title {
  font: 500 16px var(--serif);
  color: var(--ink);
}
.card-body {
  margin: 6px 0 0;
  font: 400 12.5px/1.55 var(--sans);
  color: var(--ink-4);
}
.card-cue {
  margin-top: 11px;
  font: 500 12px var(--sans);
  color: var(--green-700);
}
.card-meta {
  margin-top: 14px;
  font: 400 12px var(--sans);
  color: var(--ink-5);
}

/* Photograph ground inside a card. */
.card-photo {
  background: var(--surface-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   Grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Editorial split: wide content column beside a narrower rail. */
.split {
  display: grid;
  gap: 44px;
  align-items: center;
}
.split--video { grid-template-columns: 1.35fr 1fr; }
.split--feature { grid-template-columns: 1.5fr 1fr; align-items: start; }
.split--webinar { grid-template-columns: 1.55fr 1fr; gap: 40px; }
.split--email { grid-template-columns: 1.2fr 1fr; }
.split--kids { grid-template-columns: 2fr 1fr; }

/* Article body beside a sticky rail. */
.with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}
.rail { position: sticky; top: 24px; }

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

.input {
  height: 40px;
  width: 100%;
  min-width: 0;
  border: 0.5px solid var(--line-input);
  border-radius: var(--r);
  padding: 0 12px;
  font: 400 13.5px var(--sans);
  color: var(--ink);
  background: var(--surface);
  outline: none;
}
.input:focus-visible { border-color: var(--green-500); }
.input--tall { height: 44px; padding: 0 14px; }
.input--onDark { border: none; background: var(--green-100); color: var(--green-900); }
textarea.input { height: auto; padding: 10px 12px; line-height: 1.6; resize: vertical; }
select.input { appearance: none; background-image: none; cursor: pointer; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font: 500 12px var(--sans);
  color: var(--ink-3);
}

.inline-form { display: flex; gap: 8px; }

.form-note {
  margin-top: 8px;
  font: 400 12.5px var(--sans);
  padding: 7px 11px;
  border-radius: var(--r);
  background: var(--cream);
  color: var(--brown);
}

/* The confirmation panel a form collapses into on submit. */
.confirm {
  background: var(--green-100);
  border-radius: var(--r);
  padding: 14px 16px;
}
.confirm-head {
  display: flex;
  gap: 9px;
  align-items: center;
  font: 500 14px var(--sans);
  color: var(--green-900);
}
.confirm-body {
  margin-top: 5px;
  font: 400 12.5px/1.6 var(--sans);
  color: var(--green-700);
}
.confirm--onDark { background: var(--green-800); }
.confirm--onDark .confirm-head { color: #FFFFFF; }
.confirm--onDark .confirm-body { color: var(--green-200); }

/* --------------------------------------------------------------------------
   Search (hero and header share this)
   -------------------------------------------------------------------------- */

.search { position: relative; }
.search-box {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 46px;
  background: var(--green-100);
  border-radius: var(--r);
  padding: 0 15px;
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font: 400 14px var(--sans);
  color: var(--green-900);
}
.search-box--header {
  height: 38px;
  gap: 9px;
  padding: 0 13px;
  background: var(--surface-3);
}
.search-box--header input { font-size: 13px; color: var(--ink); }

.search-clear {
  font: 400 14px var(--sans);
  color: #48685F;
  cursor: pointer;
  padding: 2px 4px;
  background: none;
  border: none;
}
.search-clear:hover { color: var(--green-900); }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--surface);
  border: var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  text-decoration: none;
  border-bottom: 0.5px solid var(--line-3);
}
.search-result:hover { background: var(--surface-2); }
.search-result:last-child { border-bottom: none; }
.search-result .kind {
  flex: none;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font: 500 10px var(--sans);
}
.search-result .label {
  font: 400 13px var(--sans);
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-empty {
  padding: 11px 13px;
  font: 400 12.5px var(--sans);
  color: var(--ink-5);
}

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */

.accordion { border-top: var(--hairline); }
.accordion-item { border-bottom: var(--hairline); }
.accordion-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 2px;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
}
.accordion-q {
  flex: 1;
  font: 500 16.5px var(--serif);
  color: var(--ink);
}
.accordion-head:hover .accordion-q { color: var(--green-700); }
.accordion-head svg { flex: none; transition: transform 0.15s; }
.accordion-head[aria-expanded='true'] svg { transform: rotate(180deg); }
.accordion-panel { padding: 0 2px 17px; max-width: 720px; }
.accordion-panel[hidden] { display: none; }
.accordion-link {
  display: inline-block;
  margin-top: 8px;
  font: 500 13px var(--sans);
  color: var(--green-700);
  text-decoration: none;
}
.accordion-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--surface);
}
.site-header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 28px;
  border-bottom: var(--hairline);
}
.brand {
  font: 500 21px var(--serif);
  color: var(--green-900);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font: 500 13.5px var(--sans);
  color: var(--ink);
  text-decoration: none;
  padding: 6px 7px;
}
.nav a:hover,
.nav a[aria-current='page'] { color: var(--green-700); }
.nav-caret {
  padding: 8px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--ink);
  background: none;
  border: none;
}
.nav-caret:hover { color: var(--green-700); }

.icon-btn {
  padding: 4px 3px;
  display: flex;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
}
.icon-btn:hover { color: var(--green-700); }
.cart-count {
  position: absolute;
  top: -3px;
  right: -6px;
  min-width: 15px;
  height: 15px;
  border-radius: var(--r-pill);
  background: var(--green-500);
  color: #FFFFFF;
  font: 500 9.5px/15px var(--sans);
  text-align: center;
  padding: 0 3px;
}

.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 42;
  background: var(--surface);
  border-bottom: var(--hairline);
  box-shadow: 0 14px 34px rgba(4, 52, 44, 0.13);
}
.megamenu-scrim { position: fixed; inset: 0; z-index: 41; }
.megamenu-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 28px 30px;
  display: grid;
  grid-template-columns: 240px repeat(4, 1fr) 235px;
  gap: 24px;
}
.megamenu-col { display: flex; flex-direction: column; gap: 9px; }
.megamenu-col a {
  font: 400 13.5px var(--sans);
  color: var(--ink);
  text-decoration: none;
}
.megamenu-col a:hover { color: var(--green-700); }
.megamenu-col .eyebrow { margin-bottom: 3px; }
.megamenu-book {
  border-right: var(--hairline);
  padding-right: 26px;
  display: flex;
  flex-direction: column;
}
.megamenu-situations {
  border-left: var(--hairline);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.site-footer {
  border-top: var(--hairline);
  background: var(--surface-4);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  padding-top: 38px;
  padding-bottom: 34px;
}
.site-footer-col { display: flex; flex-direction: column; gap: 9px; }
.site-footer-col a {
  font: 400 13px var(--sans);
  color: var(--ink-3);
  text-decoration: none;
}
.site-footer-col a:hover { color: var(--green-700); }
.site-footer-col .eyebrow { margin-bottom: 3px; }
.site-footer-legal { border-top: 0.5px solid var(--line-2); }
.site-footer-legal .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
  font: 400 11.5px/1.6 var(--sans);
  color: var(--ink-6);
}

/* --------------------------------------------------------------------------
   Media: video plates and play buttons
   -------------------------------------------------------------------------- */

.plate {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--green-900);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
}
a.plate:hover { box-shadow: 0 14px 34px rgba(4, 52, 44, 0.22); }
.plate-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 52, 44, 0) 40%, rgba(4, 52, 44, 0.72) 100%);
}
.plate-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 500 14px var(--sans);
  color: #FFFFFF;
}
.plate-duration {
  flex: none;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(4, 52, 44, 0.65);
  font: 500 11px var(--sans);
  color: var(--green-200);
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: var(--r-pill);
  background: var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  border: none;
  cursor: pointer;
}
.play--white { background: #FFFFFF; width: 66px; height: 66px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.play--sm { position: static; transform: none; width: 44px; height: 44px; }

/* --------------------------------------------------------------------------
   Dialog
   -------------------------------------------------------------------------- */

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dialog-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 52, 44, 0.45);
  border: none;
  padding: 0;
}
.dialog {
  position: relative;
  width: 440px;
  max-width: calc(100vw - 48px);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-modal);
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font: 400 16px var(--sans);
  color: var(--ink-5);
  cursor: pointer;
  background: none;
  border: none;
}
.dialog-close:hover { color: var(--ink); }
.dialog-title { font: 500 19px var(--serif); color: var(--green-900); }
.dialog-body {
  margin: 10px 0 0;
  font: 400 13.5px/1.65 var(--sans);
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Small shared pieces
   -------------------------------------------------------------------------- */

/* The "we make these" disclosure pill. */
.disclose {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 0.5px solid var(--green-500);
  border-radius: var(--r-pill);
  font: 500 10.5px var(--sans);
  color: var(--green-900);
  cursor: pointer;
  background: none;
}
.disclose:hover { background: var(--green-100); }

/* Checkmark rows in the trust strip. */
.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 400 13px var(--sans);
  color: var(--ink-3);
  text-decoration: none;
}
.trust-item:hover { color: var(--green-700); }

/* Price cluster. */
.price { font: 500 21px var(--sans); color: var(--ink); }
.price-was {
  font: 400 14px var(--sans);
  color: var(--ink-7);
  text-decoration: line-through;
}

/* A list row inside the protocol card. */
.spec-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font: 400 13.5px var(--sans);
  color: var(--ink-2);
}
.spec-row .bullet { color: var(--green-500); font-weight: 500; }
.spec-row .cost { color: var(--ink-7); }

/* Dated list used for "previous weeks" and similar. */
.dated {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 0.5px solid var(--line-2);
  text-decoration: none;
}
.dated .when {
  font: 400 11.5px var(--sans);
  color: var(--ink-6);
  white-space: nowrap;
}
.dated .what {
  font: 500 14px/1.4 var(--serif);
  color: var(--ink);
}
.dated:hover .what { color: var(--green-700); }

/* Left rail of anchor links used on Questions and Research. */
.sidenav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; }
.sidenav a {
  font: 400 13px var(--sans);
  color: var(--ink-3);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--r-sm);
}
.sidenav a:hover { background: var(--surface-2); color: var(--green-700); }

/* Developer handoff annotation — not part of the visual design. */
.dev-note {
  border: 1px dashed var(--line-input);
  border-radius: var(--r-md);
  background: var(--surface-2);
  padding: 18px 20px;
}
.dev-note h3 {
  margin: 0;
  font: 500 13px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.dev-note p,
.dev-note li {
  font: 400 13px/1.65 var(--sans);
  color: var(--ink-3);
}
.dev-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Image slot — the designer-fillable placeholder
   -------------------------------------------------------------------------- */

image-slot {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--surface-img);
}
image-slot .slot-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  border: 1px dashed var(--line-input);
  border-radius: inherit;
  cursor: pointer;
  color: var(--ink-5);
  font: 400 12px/1.45 var(--sans);
}
image-slot .slot-empty:hover {
  border-color: var(--green-500);
  color: var(--green-700);
  background: var(--green-tint-hover);
}
image-slot.is-over .slot-empty {
  border-color: var(--green-500);
  background: var(--green-100);
  color: var(--green-900);
}
image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
image-slot .slot-clear {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  border: none;
  background: rgba(4, 52, 44, 0.6);
  color: #FFFFFF;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s;
}
image-slot:hover .slot-clear { opacity: 1; }
image-slot[shape='circle'],
image-slot[shape='circle'] .slot-empty { border-radius: var(--r-pill); }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--tight { gap: 8px; }
.col { display: flex; flex-direction: column; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.measure { max-width: 620px; }
.measure--sm { max-width: 540px; }
.measure--lg { max-width: 760px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Responsive — the prototypes are desktop artboards; these are the collapse
   rules a build needs so nothing overflows on narrower screens.
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .megamenu-grid { grid-template-columns: 220px repeat(2, 1fr); }
  .megamenu-situations { border-left: none; padding-left: 0; grid-column: 1 / -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* These grids are declared inline on the page (the prototypes did the same),
   so collapsing them needs to outrank the inline declaration. */
@media (max-width: 1080px) {
  .questions-layout { grid-template-columns: 200px minmax(0, 1fr) !important; }
  .questions-layout > .rail:last-child { display: none; }
}
@media (max-width: 780px) {
  .questions-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .questions-layout > .rail:first-child { display: none; }
  .protocol-row { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 900px) {
  .split--video,
  .split--feature,
  .split--webinar,
  .split--email,
  .split--kids,
  .with-rail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rail { position: static; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .h1 { font-size: 28px; }
  .site-header-bar { flex-wrap: wrap; }
  /* min-width:0 is what lets the flex item actually shrink and scroll its own
     overflow instead of pushing the page wider. */
  .nav { order: 3; width: 100%; min-width: 0; overflow-x: auto; }
}

@media (max-width: 680px) {
  :root { --gutter: 18px; }
  .grid--3,
  .grid--4,
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .site-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .megamenu-grid { grid-template-columns: minmax(0, 1fr); }
  .megamenu-book { border-right: none; padding-right: 0; }
  .trust-row { justify-content: flex-start; }
}
