/* ============================================================
   Hoch Health — ARTICLE layer.
   Loads ON TOP OF styles.css. Adds editorial typography for /articles/ only.
   Scoped under .article / article-specific classes so the rest of the site is untouched.
   Reuses the brand tokens defined in styles.css (:root) — does not redefine them.
   ============================================================ */

:root{
  /* the reading face — loaded via Google Fonts in the article <head> */
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --measure: 680px;
  --teal-tint: rgba(47,183,164,.07);
  --faint: #8a939c;
}

/* reading progress bar */
.reading-progress{
  position:fixed; top:0; left:0; height:3px; width:0;
  background:linear-gradient(90deg,var(--teal),var(--teal-deep)); z-index:60;
}

/* ---- shell ---- */
.article{ max-width:var(--measure); margin:0 auto; padding:0 24px; }

/* Single-article pages (body[data-screen-label="Article"]): pull the shared sticky header +
   footer in to the article's content width, so the logo and nav sit over the reading column
   instead of floating out at the 1180px page edges. 916 = 860px hero + the 28px side padding.
   Section/hub pages (label "Articles") keep the full 1180px width. */
body[data-screen-label="Article"] .site-header__inner,
body[data-screen-label="Article"] .site-footer .wrap{ max-width:1000px; }
body[data-screen-label="Article"] .nav{ gap:22px; }
.article__masthead{ padding:56px 0 0; }

/* category pill / tag */
.article__eyebrow{
  font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.1em;
  font-size:11.5px; font-weight:500; color:var(--teal-deep); text-decoration:none;
  display:inline-block; margin:0 0 18px;
  background:var(--teal-tint); border:1px solid rgba(47,183,164,.30);
  padding:6px 13px; border-radius:999px; line-height:1;
  transition:background .15s ease, border-color .15s ease;
}
.article__eyebrow:hover{ background:rgba(47,183,164,.14); border-color:rgba(47,183,164,.5); }
.article h1{
  font-size:clamp(31px,4.6vw,44px); line-height:1.1; letter-spacing:-.02em;
  margin:0 0 18px; text-wrap:balance;
}
.article__dek{
  font-family:var(--serif); font-style:italic; font-size:clamp(19px,2.3vw,22px);
  line-height:1.5; color:var(--text-muted); margin:0 0 32px;
}

/* ---- byline ---- */
.article__byline{
  display:flex; align-items:center; gap:14px; padding:18px 0;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
/* the signature unit — avatar + name/credential, always on one line */
.article__sig{ display:flex; align-items:center; gap:14px; }
.article__who{ min-width:0; }
.article__avatar{
  width:46px; height:46px; border-radius:50%; flex:none; overflow:hidden;
  background:radial-gradient(circle at 32% 28%,var(--teal),var(--teal-deep));
  color:#fff; font-weight:800; font-size:16px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.14);
}
.article__avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.article__name{ color:var(--ink); font-weight:700; font-size:15px; line-height:1.25; }
.article__cred{ color:var(--text-muted); font-size:13px; margin-top:2px; }
.article__meta{ margin-left:auto; text-align:right; color:var(--faint); font-size:13px; line-height:1.5; }
.article__date{ display:block; color:var(--text-muted); font-weight:600; }
.article__read{ display:block; }

/* ---- featured image (breaks out wider than the reading column) ---- */
.article__hero{
  margin:32px 0 8px;
  width:min(860px, calc(100vw - 40px));
  margin-left:50%;
  transform:translateX(-50%);
}
.article__hero img{ width:100%; border-radius:8px; display:block; }
.article__heroph{ /* CSS placeholder — swap for a real <img> on deploy */
  aspect-ratio:16/8; border-radius:8px; position:relative; overflow:hidden;
  background:
    repeating-linear-gradient(90deg,transparent 0 78px,rgba(255,255,255,.5) 78px 92px),
    linear-gradient(160deg,#153e39,#1f8f7f 46%,#2fb7a4 78%,#8fe3d6);
}
.article__heroph span{
  position:absolute; left:16px; bottom:14px; color:#fff;
  font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  background:rgba(0,0,0,.45); padding:5px 9px; border-radius:4px;
}
.article__caption{ font-size:12.5px; color:var(--faint); margin:10px 2px 0; }

/* ---- body prose ---- */
.article__body{ padding:24px 0 8px; }
.article__body p{ font-family:var(--serif); font-size:19px; line-height:1.72; color:var(--text); margin:0 0 22px; }
.article__body a{ color:var(--teal-deep); text-decoration:underline; text-underline-offset:2px; text-decoration-thickness:1px; }
.article__body h2{ font-size:26px; line-height:1.2; letter-spacing:-.015em; margin:44px 0 14px; text-wrap:balance; }
.article__body h3{ font-size:19px; margin:30px 0 10px; font-weight:700; }
.article__body strong{ color:var(--ink); font-weight:600; }

.article__body ol{ margin:0 0 24px; padding:0; counter-reset:step; list-style:none; }
.article__body ol li{
  font-family:var(--serif); font-size:19px; line-height:1.6; color:var(--text);
  position:relative; padding:0 0 18px 52px;
}
.article__body ol li::before{
  counter-increment:step; content:counter(step);
  position:absolute; left:0; top:1px; width:32px; height:32px; border-radius:50%;
  background:var(--teal-tint); color:var(--teal-deep); font-weight:800; font-size:15px;
  display:flex; align-items:center; justify-content:center;
}
.article__body ol li b{ color:var(--ink); font-weight:600; font-size:16px; display:block; margin-bottom:3px; }

/* pull quote — roman (not italic) for readability, wrapped in curly quotes, a touch larger.
   Quote marks come from CSS so the HTML text stays a verbatim copy of the body line. */
.pullquote{
  margin:36px 0; padding:6px 0 6px 24px; border-left:3px solid var(--teal);
  font-family:var(--serif); font-weight:500; font-size:25px; line-height:1.42; color:var(--ink);
}
.pullquote::before{ content:'\201C'; }
.pullquote::after{ content:'\201D'; }

/* performance tiers */
.tiers{ margin:8px 0 26px; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.tier{ display:flex; gap:14px; align-items:baseline; padding:14px 18px; border-top:1px solid var(--line); }
.tier:first-child{ border-top:0; }
.tier__k{ font-weight:800; font-size:14px; color:var(--ink); min-width:86px; }
.tier__k .swatch{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:8px; }
.tier__v{ font-family:var(--serif); font-size:16.5px; line-height:1.5; color:var(--text-muted); }

/* CTA panel (button reuses global .btn) */
.article-cta{
  margin:44px 0; background:var(--teal-tint); border:1px solid rgba(47,183,164,.28);
  border-radius:14px; padding:30px;
}
.article-cta__eyebrow{ font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.1em; font-size:11px; color:var(--teal-deep); margin:0 0 10px; }
.article-cta h2{ font-size:24px; line-height:1.18; letter-spacing:-.01em; margin:0 0 10px; }
.article-cta p{ font-family:var(--serif); font-size:17.5px; line-height:1.55; color:var(--text); margin:0 0 20px; }

/* inline calculator — reusable shell for fitness-test articles (per-article JS supplies the formula) */
.calc{
  font-family:'Inter',sans-serif; margin:32px 0;
  border:1px solid var(--line); border-radius:var(--radius-lg);
  background:#fbfcfc; padding:26px 26px 28px;
}
.calc .calc__eyebrow{
  font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.07em;
  font-size:13.5px; font-weight:600; color:var(--teal-deep); margin:0 0 18px;
}
.calc__grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px 18px; margin-bottom:20px; }
.calc__field{ display:flex; flex-direction:column; gap:6px; }
.calc__field > span{ font-size:13px; font-weight:600; color:var(--text-muted); }
.calc__field input, .calc__field select{
  font-family:'Inter',sans-serif; font-size:16px; color:var(--ink);
  border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:#fff; width:100%;
}
.calc__field input:focus, .calc__field select:focus{
  outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(47,183,164,.16);
}
.calc__time{ display:flex; align-items:center; gap:8px; }
.calc__time span{ color:var(--text-muted); font-weight:700; }
.calc .btn{ width:100%; justify-content:center; }
.calc__result{ margin-top:22px; padding-top:20px; border-top:1px solid var(--line); text-align:center; }
.calc__number{ font-size:46px; font-weight:800; color:var(--ink); line-height:1; letter-spacing:-.02em; }
.calc__unit{ font-size:16px; font-weight:600; color:var(--text-muted); letter-spacing:0; }
.calc .calc__note{ font-family:var(--serif); font-size:16px; line-height:1.5; color:var(--text-muted); margin:12px auto 0; max-width:46ch; }
.calc__result--error .calc__readout{ display:none; }
.calc__readout{ display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; }
.calc__cat{
  font-family:'Inter',sans-serif; font-weight:700; font-size:13px; letter-spacing:.04em;
  text-transform:uppercase; color:#fff; padding:6px 13px; border-radius:999px; white-space:nowrap;
}
.calc__cat--poor{ background:#c65b4e; }
.calc__cat--fair{ background:#d99a3c; }
.calc__cat--good{ background:var(--teal); }
.calc__cat--excellent{ background:var(--teal-deep); }
/* hold-vs-target progress bar (side-plank + any "your number vs a reference" calc) */
.calc__bar{ margin:20px 0 2px; }
.calc__bar__track{ position:relative; height:12px; border-radius:999px; background:#e7ecec; overflow:hidden; }
.calc__bar__fill{ display:block; height:100%; width:0; border-radius:999px; background:linear-gradient(90deg,var(--teal),var(--teal-deep)); transition:width .55s ease; }
.calc__bar__scale{ display:flex; justify-content:space-between; margin-top:7px; font-family:'JetBrains Mono',monospace; font-size:11.5px; font-weight:600; color:var(--text-muted); }
/* save-for-later mini form */
.calc__save{ margin-top:22px; padding-top:20px; border-top:1px dashed var(--line); }
.calc .calc__save-label{ font-family:'Inter',sans-serif; font-size:14px; font-weight:600; color:var(--ink); margin:0 0 12px; text-align:center; }
.calc__save-row{ display:flex; gap:10px; }
.calc__save-row input{ font-family:'Inter',sans-serif; font-size:15px; color:var(--ink); border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:#fff; flex:1 1 0; min-width:0; }
.calc__save-row input:focus{ outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(47,183,164,.16); }
.calc__save-row .btn{ width:auto; flex:0 0 auto; white-space:nowrap; }
.calc .calc__save-msg{ font-family:'Inter',sans-serif; font-size:13.5px; font-weight:600; color:var(--teal-deep); margin:12px 0 0; text-align:center; }
@media (max-width:520px){
  .calc__grid{ grid-template-columns:1fr; }
  .calc__save-row{ flex-direction:column; }
  .calc__save-row .btn{ width:100%; }
}

/* Garmin-style inline stopwatch — real watch photo as the body, live screen floated on top */
.gwatch{ margin:32px auto; max-width:300px; text-align:center; font-family:'Inter',sans-serif; }

.gwatch__frame{ position:relative; width:100%; line-height:0; }
.gwatch__body{
  display:block; width:100%; height:auto;
  filter:drop-shadow(0 18px 26px rgba(20,30,35,.34));
}

/* the tappable screen, positioned to overlay the photo's black display
   (bounds measured from the Forerunner artwork: left 16.5%, top 15.5%, 65% x 56.5%) */
.gwatch__screen{
  position:absolute; left:16.5%; top:15.5%; width:65%; height:56.5%; line-height:1;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  border-radius:50%; border:0; padding:0; cursor:pointer;
  background:radial-gradient(circle at 50% 34%, #191d1f 0%, #060708 78%);
  color:#fff; font-family:inherit; overflow:hidden; -webkit-tap-highlight-color:transparent;
  transition:box-shadow 160ms ease;
}
.gwatch__screen:focus-visible{ outline:none; box-shadow:inset 0 0 0 3px var(--teal); }
.gwatch__screen.is-running{ box-shadow:inset 0 0 40px rgba(47,183,164,.20); }

.gwatch__top{
  font-family:'JetBrains Mono',monospace; font-size:9.5px; letter-spacing:.16em;
  text-transform:uppercase; color:#8b979c;
}
.gwatch__stop{
  width:9px; height:9px; border-radius:2px; background:#c65b4e; margin:5px 0 2px;
  opacity:0; transition:opacity 160ms ease;
}
.gwatch__screen.is-running .gwatch__stop{ opacity:1; }
.gwatch__time{
  font-family:'JetBrains Mono',monospace; font-weight:700; font-size:40px; line-height:1;
  letter-spacing:-.01em; font-variant-numeric:tabular-nums;
}
.gwatch__time sup{ font-size:17px; font-weight:600; color:var(--teal); margin-left:1px; top:-.75em; }
.gwatch__hint{
  font-family:'JetBrains Mono',monospace; font-size:8.5px; letter-spacing:.07em;
  text-transform:uppercase; color:#6f7a7e; margin-top:7px; padding:0 8px;
}
.gwatch__laps{ display:flex; flex-direction:column; gap:1px; margin-top:8px; min-height:2.4em; width:58%; }
.gwatch__lap{
  display:flex; align-items:baseline; justify-content:space-between;
  font-family:'JetBrains Mono',monospace; font-size:11px; color:#c7cfd2;
}
.gwatch__lap-k{ font-size:8.5px; letter-spacing:.08em; color:#7f8a8e; }
.gwatch__lap b{ font-weight:700; color:#fff; }
.gwatch__lap sup{ font-size:.62em; color:#9aa3a6; }
.gwatch__lap--best b, .gwatch__lap--best .gwatch__lap-k{ color:var(--teal); }

.gwatch__controls{ display:flex; gap:10px; justify-content:center; margin-top:20px; flex-wrap:wrap; }
.stopwatch__btn--ghost{ background:transparent; color:var(--teal-deep); border:1px solid var(--line); }
.stopwatch__btn--ghost:hover{ background:#f0f4f3; color:var(--teal-deep); }
.gwatch__note{
  font-family:var(--serif); font-size:16px; line-height:1.5; color:var(--text-muted);
  margin:16px auto 0; max-width:46ch;
}
.gwatch__live{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

@media (max-width:520px){
  .gwatch{ max-width:270px; }
  .gwatch__time{ font-size:36px; }
  .gwatch__controls .btn{ flex:1 1 100%; }
}

/* honeypot — off-screen bot trap; real users never see or tab to it */
.hp-field{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* standalone "save this article for later" block (any article, no calculator needed) */
.save-block{ font-family:'Inter',sans-serif; margin:36px 0; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fbfcfc; padding:22px 24px; }
.save-block .save-block__label{ font-family:'Inter',sans-serif; font-size:14.5px; font-weight:600; color:var(--ink); margin:0 0 12px; }
.save-block__row{ display:flex; gap:10px; }
.save-block__row input{ font-family:'Inter',sans-serif; font-size:15px; color:var(--ink); border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:#fff; flex:1 1 0; min-width:0; }
.save-block__row input:focus{ outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(47,183,164,.16); }
.save-block__row .btn{ width:auto; flex:0 0 auto; white-space:nowrap; }
.save-block .save-block__msg{ font-family:'Inter',sans-serif; font-size:13.5px; font-weight:600; color:var(--teal-deep); margin:12px 0 0; }
/* slim variant — compact, but tinted so it reads as an offer without interrupting the read */
.save-block--slim{ padding:16px 18px; margin:28px 0; background:var(--teal-tint); border-color:rgba(47,183,164,.30); }
.save-block--slim .save-block__label{ font-size:14px; line-height:1.45; color:var(--ink); margin:0 0 11px; }
.save-block--slim .save-block__label b{ font-weight:700; color:var(--teal-deep); }
.save-block--slim .save-block__row input{ font-size:14px; padding:9px 12px; }
.save-block--slim .save-block__row .btn{ padding:9px 18px; font-size:14px; }
@media (max-width:520px){
  .save-block__row{ flex-direction:column; }
  .save-block__row .btn{ width:100%; }
}

/* sources */
.article-sources{ margin:40px 0 0; padding-top:26px; border-top:1px solid var(--line); }
.article-sources h2{ font-size:18px; text-transform:uppercase; letter-spacing:.04em; margin:0 0 18px; }
.ref{ margin:0 0 18px; }
.ref__t{ font-weight:700; font-size:14.5px; color:var(--ink); font-family:'Inter',sans-serif; }
.ref__note{ font-family:var(--serif); font-style:italic; color:var(--text-muted); font-size:15px; margin:2px 0 4px; }
.ref__c{ font-family:var(--serif); font-size:14.5px; line-height:1.5; color:var(--text-muted); }
.ref__c .pmid{ font-family:'JetBrains Mono',monospace; font-size:12.5px; color:var(--teal-deep); }

/* bottom tag row — topical + physiology tags (metadata footer) */
.article__tags{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  margin:34px 0 0; padding-top:24px; border-top:1px solid var(--line);
}
.article__tags .label{ font-family:'Inter',sans-serif; font-size:13px; color:var(--faint); font-weight:600; margin-right:2px; }
.tag-pill{
  font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.06em;
  font-size:11px; color:var(--text-muted); background:var(--soft); border:1px solid var(--line);
  padding:5px 11px; border-radius:999px; text-decoration:none; line-height:1;
  transition:border-color .15s ease, color .15s ease;
}
.tag-pill:hover{ border-color:var(--teal-line); color:var(--teal-deep); }
.tag-pill--phys{ background:var(--teal-tint); border-color:rgba(47,183,164,.30); color:var(--teal-deep); }

/* closing CTA band (bottom of the article) — dark, brand "get in touch". Distinct from the in-content lead-magnet panel.
   Note: parent-scoped selectors so text color beats .article__body p specificity. */
.closing-cta{
  margin:36px 0 8px; background:var(--ink); color:#fff; border-radius:14px;
  padding:28px 30px; display:flex; align-items:center; justify-content:space-between;
  gap:22px; flex-wrap:wrap;
}
.closing-cta__body{ flex:1 1 280px; }
.closing-cta .closing-cta__h{ font-family:'Inter',sans-serif; font-weight:800; font-size:21px; line-height:1.2; color:#fff; margin:0 0 5px; letter-spacing:-.01em; }
.closing-cta .closing-cta__p{ font-family:var(--serif); font-size:15.5px; line-height:1.5; color:rgba(255,255,255,.82); margin:0; }
.closing-cta .btn{ background:var(--teal-deep); color:#fff; flex:none; }
.closing-cta .btn:hover{ background:var(--teal); }

@media (max-width:560px){
  .article__masthead{ padding-top:36px; }

  /* byline: avatar + name on one line (signature); date-left / read-right on the line below */
  .article__byline{ flex-wrap:wrap; }
  .article__meta{
    margin-left:0; width:100%; order:3;
    display:flex; justify-content:space-between; align-items:baseline;
    text-align:left; margin-top:14px; padding-top:12px; border-top:1px solid var(--line);
  }
  .article__date, .article__read{ display:inline; }

  /* closing CTA: kill the 280px height basis (was a width basis on desktop) + tighten the box */
  .closing-cta{ flex-direction:column; align-items:flex-start; gap:14px; padding:22px 22px; }
  .closing-cta__body{ flex:0 0 auto; }
  .closing-cta .btn{ width:100%; text-align:center; }
}

/* ============================================================
   ARTICLES LANDING PAGE  (articles/index.html)
   ============================================================ */
.articles-hero{ max-width:var(--maxw); margin:0 auto; padding:60px 28px 4px; }
.articles-hero h1{ font-size:clamp(34px,5vw,52px); line-height:1.06; letter-spacing:-.02em; margin:0 0 14px; }
.articles-hero p{ font-family:var(--serif); font-size:19px; line-height:1.6; color:var(--text-muted); max-width:660px; margin:0; }

.articles-wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px 20px; }
.section-heading{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; margin:56px 0 0; }
.section-heading h2{ font-size:clamp(24px,3vw,32px); letter-spacing:-.02em; }
.section-heading .sub{ font-family:var(--serif); font-style:italic; color:var(--text-muted); font-size:16px; }

.section-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:26px; }

.section-card{ position:relative; aspect-ratio:3/2; border-radius:12px; overflow:hidden; display:block; text-decoration:none; box-shadow:var(--shadow); background:var(--ink); }
.section-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.section-card::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 34%,rgba(0,0,0,.76)); }
.section-card:hover img{ transform:scale(1.04); }
.section-card__tag{ position:absolute; z-index:2; top:14px; left:14px; font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.08em; font-size:11px; color:#fff; background:rgba(0,0,0,.5); padding:5px 10px; border-radius:6px; }
.section-card__body{ position:absolute; z-index:2; left:18px; right:18px; bottom:16px; }
.section-card__title{ font-family:'Inter',sans-serif; font-weight:800; font-size:32px; line-height:1.1; color:#fff; letter-spacing:-.015em; margin:0 0 5px; }
.section-card__purpose{ font-family:var(--serif); font-style:italic; font-size:13.5px; line-height:1.35; color:rgba(255,255,255,.82); margin:0; }

/* light variant — for a data graphic: contain + pad so nothing is cropped */
.section-card--light{ background:#fff; }
.section-card--light img{ object-fit:contain; padding:18px 18px 64px; }
.section-card--light::after{ background:linear-gradient(180deg,rgba(255,255,255,0) 58%,#ffffff 90%); }
.section-card--light .section-card__tag{ background:rgba(17,20,24,.78); }
.section-card--light .section-card__title{ color:var(--ink); }
.section-card--light .section-card__purpose{ color:var(--text-muted); }

/* featured "Latest" card — horizontal */
.feature-card{ display:grid; grid-template-columns:1.05fr 1fr; margin-top:26px; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff; box-shadow:var(--shadow); text-decoration:none; transition:box-shadow .18s ease, transform .18s ease; }
.feature-card:hover{ box-shadow:0 12px 30px rgba(17,20,24,.10); transform:translateY(-2px); }
.feature-card__media{ position:relative; min-height:270px;
  background:
    repeating-linear-gradient(90deg,transparent 0 78px,rgba(255,255,255,.5) 78px 92px),
    linear-gradient(160deg,#153e39,#1f8f7f 46%,#2fb7a4 78%,#8fe3d6); }
.feature-card__media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.feature-card__tag{ position:absolute; top:16px; left:16px; font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.08em; font-size:11px; color:#fff; background:rgba(0,0,0,.5); padding:5px 10px; border-radius:6px; }
.feature-card__body{ padding:30px 32px; display:flex; flex-direction:column; justify-content:center; }
.feature-card__k{ font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.1em; font-size:11px; color:var(--teal-deep); margin:0 0 10px; }
.feature-card__title{ font-family:'Inter',sans-serif; font-weight:800; font-size:26px; line-height:1.14; letter-spacing:-.02em; color:var(--ink); margin:0 0 12px; }
.feature-card__dek{ font-family:var(--serif); font-size:16px; line-height:1.55; color:var(--text-muted); margin:0 0 18px; }
.feature-card__meta{ font-family:'Inter',sans-serif; font-size:13px; color:var(--faint); }
.feature-card__meta b{ color:var(--text-muted); font-weight:600; }

@media (max-width:900px){
  .section-grid{ grid-template-columns:repeat(2,1fr); }
  .feature-card{ grid-template-columns:1fr; }
  .feature-card__media{ min-height:200px; }
}
@media (max-width:560px){
  .section-grid{ grid-template-columns:1fr; }
  .articles-hero{ padding-top:40px; }
  /* cards go full-width on mobile — bump the tag so it stays legible */
  .section-card__tag{ font-size:16px; padding:6px 12px; }
}

/* ============================================================
   SECTION / TAG LISTING PAGES  (articles/<section>/index.html)
   ============================================================ */
/* contained hero (gutters on both sides), shorter landscape image cut on a wide diagonal */
.section-page-hero{ position:relative; max-width:var(--maxw); margin:0 auto; overflow:hidden; }
.section-page-hero__text{ position:relative; z-index:2; max-width:44%; min-height:320px; padding:48px 0 48px 28px; display:flex; flex-direction:column; justify-content:center; }
.crumb{ font-family:'Inter',sans-serif; font-size:13px; color:var(--faint); margin:0 0 14px; }
.crumb a{ color:var(--text-muted); text-decoration:none; font-weight:600; }
.crumb a:hover{ color:var(--teal-deep); }
.section-page-hero h1{ font-size:clamp(32px,4.6vw,48px); line-height:1.05; letter-spacing:-.02em; margin:0 0 14px; text-wrap:balance; }
.section-page-hero p{ font-family:var(--serif); font-size:19px; line-height:1.55; color:var(--text-muted); margin:0; }
.section-page-hero__media{ position:absolute; top:0; right:28px; bottom:0; width:48%; }
.section-page-hero__media img{ width:100%; height:100%; object-fit:cover; display:block; clip-path:polygon(20% 0, 100% 0, 100% 100%, 0% 100%); }
@media (max-width:820px){
  .section-page-hero{ overflow:visible; }
  .section-page-hero__text{ position:static; max-width:none; min-height:0; padding:44px 28px 0; display:block; }
  .section-page-hero__media{ position:static; width:auto; margin:22px 28px 0; }
  .section-page-hero__media img{ clip-path:none; aspect-ratio:16/10; border-radius:var(--radius-lg); }
}

.article-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:22px; max-width:var(--maxw); margin:32px auto 0; padding:0 28px; }
.article-card{ display:flex; flex-direction:column; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; text-decoration:none; box-shadow:var(--shadow); transition:box-shadow .18s ease, transform .18s ease; }
.article-card:hover{ box-shadow:0 12px 30px rgba(17,20,24,.10); transform:translateY(-2px); }
.article-card__media{ position:relative; aspect-ratio:16/10;
  background:repeating-linear-gradient(90deg,transparent 0 78px,rgba(255,255,255,.5) 78px 92px),linear-gradient(160deg,#153e39,#1f8f7f 46%,#2fb7a4 78%,#8fe3d6); }
.article-card__media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.article-card__tag{ position:absolute; top:12px; left:12px; font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.08em; font-size:10.5px; color:#fff; background:rgba(0,0,0,.5); padding:4px 9px; border-radius:6px; }
.article-card__body{ padding:18px 20px 20px; display:flex; flex-direction:column; gap:9px; flex:1; }
.article-card__title{ font-family:'Inter',sans-serif; font-weight:800; font-size:19px; line-height:1.18; letter-spacing:-.01em; color:var(--ink); margin:0; }
.article-card__dek{ font-family:var(--serif); font-size:14.5px; line-height:1.5; color:var(--text-muted); margin:0; }
.article-card__meta{ font-family:'Inter',sans-serif; font-size:12.5px; color:var(--faint); margin-top:auto; padding-top:4px; }

.section-note{ max-width:var(--maxw); margin:20px auto 0; padding:0 28px; }
.section-note p{ font-family:var(--serif); font-style:italic; color:var(--text-muted); margin:0; }

@media (max-width:560px){
  .article-list{ grid-template-columns:1fr; }
}

/* in-body cross-link card — a compact "read this related test instead" nudge inside an article body.
   Reusable across the fitness-test series (e.g. Cooper -> the one-mile walk).
   Small thumbnail + flexible text; the arrow is folded into the title so nothing squeezes the
   copy on narrow screens (mobile-safe: only the 56-64px image is a fixed column). */
.xlink-card{ display:flex; align-items:center; gap:14px; margin:20px 0; padding:13px 15px;
  border:1px solid rgba(47,183,164,.30); border-radius:12px; background:var(--teal-tint);
  text-decoration:none; transition:box-shadow .18s ease, transform .18s ease; }
.xlink-card:hover{ box-shadow:0 8px 20px rgba(17,20,24,.08); transform:translateY(-1px); }
.xlink-card:hover .xlink-card__title{ color:var(--teal-deep); }
/* out-rank .article__body a (0,1,1) so the whole card isn't underlined */
.article__body a.xlink-card, .article__body a.xlink-card:hover{ text-decoration:none; }
.xlink-card__media{ flex:0 0 auto; width:64px; height:64px; border-radius:9px; overflow:hidden;
  background:linear-gradient(160deg,#153e39,#1f8f7f 46%,#2fb7a4 78%,#8fe3d6); }
.xlink-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.xlink-card__body{ flex:1 1 auto; min-width:0; }
/* NOTE: inner text selectors are parent-scoped (.xlink-card ...) so they out-rank
   .article__body p (0,1,1); a bare .xlink-card__title (0,1,0) would lose and inherit
   the 19px serif body-paragraph size + margins. Same trick as .calc .calc__note above. */
.xlink-card .xlink-card__k{ font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.04em; font-size:11.5px; font-weight:600; line-height:1.3; color:var(--teal-deep); margin:0 0 4px; text-decoration:none; }
.xlink-card .xlink-card__title{ font-family:'Inter',sans-serif; font-weight:700; font-size:15.5px; line-height:1.25; letter-spacing:-.01em; color:var(--ink); margin:0; text-decoration:none; transition:color .18s ease; }
.xlink-card .xlink-card__title .xlink-card__arrow{ color:var(--teal-deep); font-weight:800; white-space:nowrap; }
.xlink-card .xlink-card__dek{ font-family:var(--serif); font-size:13.5px; line-height:1.4; color:var(--text-muted); margin:3px 0 0; text-decoration:none; }
@media (max-width:400px){ .xlink-card__media{ width:56px; height:56px; } .xlink-card__dek{ display:none; } }
/* --float: sit the card alongside the opening paragraph on desktop; body text wraps beside it.
   Below 600px it drops back to the default full-width stacked block (mobile unchanged). */
.xlink-card--float{ float:right; width:300px; max-width:46%; margin:4px 0 14px 22px; }
@media (max-width:600px){ .xlink-card--float{ float:none; width:auto; max-width:none; margin:20px 0; } }

/* safety / medical callout — for self-tests that carry real risk (max effort, floor transfers).
   Amber-bordered so it reads as "read this before you try it," not a decorative aside. */
.safety-note{ clear:both; margin:26px 0; padding:15px 20px; border:1px solid rgba(217,154,60,.35);
  border-left:4px solid #d99a3c; border-radius:10px; background:rgba(217,154,60,.08); }
.safety-note .safety-note__h{ font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.08em; font-size:11px; color:#b06f28; margin:0 0 7px; font-weight:700; }
.safety-note p{ font-family:'Inter',sans-serif; font-size:14.5px; line-height:1.55; color:var(--text-muted); margin:0; }
.safety-note p + p{ margin-top:8px; }
.safety-note .safety-note__fine{ font-size:12px; line-height:1.5; color:var(--faint); margin-top:10px; padding-top:9px; border-top:1px solid rgba(217,154,60,.25); }
.safety-note strong{ color:var(--ink); }

/* ---- inline stepped quiz — one question at a time, computes a result at the end (reusable) ---- */
.quiz{ font-family:'Inter',sans-serif; margin:32px 0; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fbfcfc; padding:22px 24px 24px; }
.quiz__bar{ height:5px; border-radius:99px; background:var(--line); overflow:hidden; margin-bottom:20px; }
.quiz__bar > span{ display:block; height:100%; background:var(--teal); width:0; transition:width .25s ease; }
.quiz__step[hidden]{ display:none; }
.quiz__kicker{ font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.07em; font-size:12px; font-weight:600; color:var(--teal-deep); margin:0 0 12px; }
.quiz .quiz__q{ font-family:'Inter',sans-serif; font-weight:700; font-size:20px; line-height:1.25; letter-spacing:-.01em; color:var(--ink); margin:0 0 6px; }
.quiz .quiz__help{ font-family:var(--serif); font-size:15px; line-height:1.5; color:var(--text-muted); margin:0 0 18px; }
.quiz__opts{ display:flex; flex-wrap:wrap; gap:10px; }
.quiz__opt{ font-family:'Inter',sans-serif; font-size:15px; font-weight:600; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:10px; padding:12px 20px; cursor:pointer; transition:border-color .15s, background .15s, color .15s; }
.quiz__opt:hover{ border-color:var(--teal); }
.quiz__opt--on{ border-color:var(--teal); background:var(--teal-tint); color:var(--teal-deep); }
.quiz__num{ display:flex; align-items:center; gap:10px; }
.quiz__num input{ font-family:'Inter',sans-serif; font-size:17px; color:var(--ink); border:1px solid var(--line); border-radius:10px; padding:11px 13px; background:#fff; width:130px; }
.quiz__num input:focus{ outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(47,183,164,.16); }
.quiz__num .quiz__unit{ font-size:14px; color:var(--text-muted); font-weight:600; }
.quiz__nav{ display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:22px; }
.quiz__back{ font-family:'Inter',sans-serif; font-size:14px; font-weight:600; color:var(--text-muted); background:none; border:0; cursor:pointer; padding:8px 4px; }
.quiz__back:hover{ color:var(--ink); }
.quiz__back[hidden]{ visibility:hidden; display:inline-block; }
.quiz__err{ font-family:'Inter',sans-serif; font-size:13.5px; font-weight:600; color:#c65b4e; margin:12px 0 0; }
.quiz__err[hidden]{ display:none; }
.quiz__result h3{ font-family:'Inter',sans-serif; font-weight:800; font-size:19px; letter-spacing:-.01em; color:var(--ink); margin:0 0 4px; }
.quiz__grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:16px 0 0; }
.quiz__stat{ border:1px solid var(--line); border-radius:12px; padding:16px 14px; background:#fff; text-align:center; }
.quiz__stat .quiz__pct{ font-size:34px; font-weight:800; color:var(--ink); line-height:1; letter-spacing:-.02em; }
.quiz__stat .quiz__lab{ font-family:'Inter',sans-serif; font-size:12px; font-weight:600; color:var(--text-muted); margin-top:8px; line-height:1.35; }
.quiz__stat .calc__cat{ margin-top:10px; display:inline-block; }
.quiz__note{ font-family:var(--serif); font-size:15px; line-height:1.55; color:var(--text-muted); margin:18px 0 0; }
.quiz__restart{ font-family:'Inter',sans-serif; font-size:13.5px; font-weight:600; color:var(--teal-deep); background:none; border:0; cursor:pointer; padding:10px 0 0; }
@media (max-width:520px){ .quiz__grid{ grid-template-columns:1fr; } }
/* single-score result (e.g. Life's Essential 8) + per-component breakdown */
.quiz__score{ text-align:center; margin:6px 0 4px; }
.quiz__score .quiz__big{ font-size:54px; font-weight:800; letter-spacing:-.02em; line-height:1; color:var(--ink); }
.quiz__score .quiz__of{ font-size:20px; font-weight:600; color:var(--faint); }
.quiz__score .calc__cat{ display:inline-block; margin-top:12px; }
.quiz__bd{ margin:22px 0 0; display:flex; flex-direction:column; gap:10px; }
.quiz__row{ display:grid; grid-template-columns:138px 1fr 30px; align-items:center; gap:12px; }
.quiz__row .quiz__name{ font-family:'Inter',sans-serif; font-size:13px; font-weight:600; color:var(--text-muted); }
.quiz__track{ height:8px; border-radius:99px; background:var(--line); overflow:hidden; }
.quiz__meter{ height:100%; border-radius:99px; }
.quiz__row .quiz__pts{ font-family:'Inter',sans-serif; font-size:13px; font-weight:700; color:var(--ink); text-align:right; }
@media (max-width:520px){ .quiz__row{ grid-template-columns:118px 1fr 28px; gap:9px; } }

/* ============================================================
   ARTICLES HUB — "where you stand" curiosity door + section browse-floor + tag filter
   (index.html only). Full-bleed within .articles-wrap; reuses .article-card for tag results.
   ============================================================ */

/* the curiosity front door — a large section-card-styled hero that provokes "do I actually know?" */
.stand-card{ position:relative; display:block; text-decoration:none; margin-top:26px;
  border-radius:16px; overflow:hidden; min-height:300px; background:var(--ink); box-shadow:var(--shadow); }
.stand-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 30%; transition:transform .5s ease; }
.stand-card::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(100deg,rgba(15,32,29,.86) 0%,rgba(15,32,29,.55) 48%,rgba(15,32,29,.12) 100%); }
.stand-card:hover img{ transform:scale(1.04); }
.stand-card__inner{ position:relative; z-index:2; max-width:600px; padding:clamp(28px,4vw,48px) clamp(24px,4vw,44px);
  display:flex; flex-direction:column; gap:14px; }
.stand-card__k{ font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.07em; font-size:clamp(15px,1.9vw,19px); font-weight:600; color:#8fe6d8; margin:0; }
.stand-card__title{ font-family:'Inter',sans-serif; font-weight:800; font-size:clamp(26px,3.6vw,40px); line-height:1.06; letter-spacing:-.02em; color:#fff; margin:0; text-wrap:balance; }
.stand-card__text{ font-family:var(--serif); font-size:clamp(15.5px,1.7vw,18px); line-height:1.55; color:rgba(255,255,255,.9); margin:0; max-width:46ch; }
.stand-card__cue{ font-family:'Inter',sans-serif; font-weight:700; font-size:14.5px; color:#fff; display:inline-flex; align-items:center; gap:9px; margin-top:2px; }
.stand-card__cue .arw{ display:inline-block; transition:transform .18s ease; }
.stand-card:hover .stand-card__cue .arw{ transform:translateX(5px); }

/* browse-floor — the 6 sections as short full-width bars you arrow through (a quieter secondary path) */
.floor{ margin-top:22px; }
.floor__head{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px; }
.floor__head h3{ font-family:'Inter',sans-serif; font-weight:700; font-size:14.5px; letter-spacing:.01em; color:var(--text-muted); margin:0; }
.floor__nav{ display:flex; gap:8px; flex:0 0 auto; }
.floor__btn{ width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:#fff; color:var(--ink);
  cursor:pointer; display:grid; place-items:center; transition:border-color .15s ease, background .15s ease; }
.floor__btn:hover:not(:disabled){ border-color:var(--teal); background:var(--teal-tint); }
.floor__btn:disabled{ opacity:.3; cursor:default; }
.floor__btn:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
.floor__btn svg{ width:17px; height:17px; }
.floor__track{ display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch; scrollbar-width:none; padding:2px; }
.floor__track::-webkit-scrollbar{ display:none; }
.floor-card{ flex:0 0 100%; scroll-snap-align:start; display:grid; grid-template-columns:150px 1fr; align-items:stretch;
  min-height:116px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; text-decoration:none;
  box-shadow:var(--shadow); transition:box-shadow .18s ease, transform .18s ease; }
.floor-card:hover{ box-shadow:0 12px 30px rgba(17,20,24,.10); transform:translateY(-2px); }
.floor-card__media{ position:relative; overflow:hidden; background:var(--ink); }
.floor-card__media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.floor-card__body{ padding:15px 22px; display:flex; flex-direction:column; justify-content:center; gap:4px; min-width:0; }
.floor-card__tag{ font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.09em; font-size:10.5px; color:var(--teal-deep); }
.floor-card__title{ font-family:'Inter',sans-serif; font-weight:800; font-size:21px; line-height:1.1; letter-spacing:-.015em; color:var(--ink); margin:0; }
.floor-card__purpose{ font-family:var(--serif); font-style:italic; font-size:14px; line-height:1.35; color:var(--text-muted); margin:0; }
.floor__dots{ display:flex; justify-content:center; gap:8px; margin-top:15px; }
.floor__dot{ width:7px; height:7px; border-radius:50%; border:0; padding:0; background:var(--line); cursor:pointer; transition:background .15s ease, transform .15s ease; }
.floor__dot[aria-current="true"]{ background:var(--teal); transform:scale(1.3); }
.floor__dot:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
@media (max-width:480px){ .floor-card{ grid-template-columns:96px 1fr; } .floor-card__title{ font-size:18px; } }
/* desktop: drop the one-at-a-time carousel; show all six as a 2-wide x 3-deep grid (no arrows/dots) */
@media (min-width:768px){
  .floor__track{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; overflow:visible; scroll-snap-type:none; padding:0; }
  .floor-card{ scroll-snap-align:none; }
  .floor__nav, .floor__dots{ display:none; }
}

/* browse-by-tag — chips filter the built corpus; results populate on click (reuses .article-card) */
.tag-filter{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.tag-chip{ font-family:'JetBrains Mono',monospace; font-size:12.5px; letter-spacing:.01em; padding:8px 15px; border-radius:999px;
  border:1px solid var(--line); background:#fff; color:var(--text-muted); cursor:pointer; transition:border-color .15s ease, color .15s ease, background .15s ease; }
.tag-chip:hover{ border-color:var(--teal); color:var(--ink); }
.tag-chip[aria-pressed="true"]{ background:var(--teal); border-color:var(--teal); color:#fff; }
.tag-chip:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
.tag-results{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:22px; margin-top:24px; }
.tag-results:empty{ margin-top:0; }
.tag-hint{ margin-top:18px; font-family:var(--serif); font-style:italic; font-size:16px; color:var(--faint); }
.tag-hint[hidden]{ display:none; }
@media (prefers-reduced-motion:reduce){
  .stand-card img, .stand-card__cue .arw, .floor__track, .floor-card, .article-card{ transition:none; scroll-behavior:auto; }
}
