/* Supporting pages retain their reviewed text and forms, with the new sky palette. */
:root { --ink: #321521; --muted: #654651; }
body { background: linear-gradient(145deg, #341624, #793742 55%, #ce765b); }
.editorial-shell { background: transparent; color: #321521; }
.editorial-header { background: #25121e; border-color: #79504f; color: #fff4ec; }
.editorial-header a, .editorial-header .brand { color: #fff4ec; }
.learning-article, .legal-document, .legal-page main, .support-page main { border-radius: 28px; }
.learning-body { background: #fff9f4; color: #321521; padding: clamp(22px,4vw,48px); border-radius: 28px; }
.learning-body p, .learning-body li, .learning-body th, .learning-body td { color: #4a2934; }
.learning-body a { color: #87332b; }
.learning-hero { color: #fff4ec; }
.learning-hero p, .learning-hero a, .learning-hero nav { color: #f1d8d1; }
.learning-hero h1 { color: #fff4ec; }
.editorial-footer { background: #25121e; color: #fff4ec; }
.editorial-footer a, .editorial-footer small, .editorial-footer p { color: #f1d8d1; }
.editorial-footer p { font-size: .875rem; }
.editorial-footer small { font-size: .8125rem; }
.editorial-shell .waitlist-consent, .editorial-shell .waitlist-status { font-size: .875rem; }
.editorial-shell .waitlist-control button, .editorial-shell .support-email { font-size: 1rem; }
.editorial-shell .waitlist { overflow-wrap: anywhere; }
.editorial-shell .waitlist > * { min-width: 0; }
.guide-toc, .guide-note, .guide-takeaway { background: #f4e8df; color: #321521; }
.guide-table { overflow-x: auto; }
.guide-preview img { width: min(100%, 320px); height: auto; margin: auto; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } }
.editorial-shell h1, .editorial-shell h2, .editorial-shell h3, .editorial-shell .brand { font-family: ui-rounded,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-style: normal; letter-spacing: -.035em; }
.editorial-shell h1 { font-size: clamp(2.2rem,5vw,4.6rem); line-height: 1.08; text-wrap: balance; }
.blog-hero, .legal-shell > header, .post-hero, .article-hero { background: linear-gradient(140deg,#25121e,#743743); color: #fff4ec; padding-block: 80px; min-height: 0; }
.blog-hero::before, .blog-hero::after, .post-hero::before, .post-hero::after { display: none; }
.blog-hero h1, .blog-hero p, .legal-shell > header h1, .legal-shell > header p, .post-hero h1, .post-hero p { color: #fff4ec; }
.blog-hero h1 em { color: #ffab86; font-style: normal; }
.editorial-shell .chapter, .editorial-shell .guide-card-category, .editorial-shell .guide-byline { font-size: .85rem; line-height: 1.6; }
.legal-shell > header .chapter, .blog-hero .chapter { color: #ffc29f; }
.legal-body { background: #fff9f4; color: #321521; }
.guide-library > h2, .guide-library > p, .guide-library > section > h2 { color: #fff4ec; }
.guide-cards article { background: #fff9f4; color: #321521; border: 1px solid #d8b7a9; border-radius: 24px; }
.guide-cards article p, .guide-cards article a { color: #321521; }
.editorial-shell .waitlist { background: #ffc08a; color: #321521; }
.editorial-shell .waitlist h2, .editorial-shell .waitlist p, .editorial-shell .waitlist label { color: #321521; }
.editorial-shell .waitlist h2 em { color: #87332b; }
.editorial-shell .waitlist-form { background: #fff9f4; color: #321521; }
.editorial-shell .waitlist-form label { font-size: .875rem; }
.legal-body h2, .legal-body h3 { color: #321521; }
@media (max-width: 600px) { .blog-hero, .legal-shell > header, .post-hero { padding-block: 64px; } }
/* Explicit surface boundaries: axe cannot infer text contrast over gradients. */
.editorial-shell .blog-hero > p:last-child,
.editorial-shell .learning-library > section > h2,
.editorial-shell .blog-index-heading { color: #fff4ec; }
.editorial-shell .legal-shell > header h1,
.editorial-shell .post-hero h1 { font-family: ui-rounded,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-style: normal; }
.editorial-shell .camp-mark {
  content: normal; background: url('/img/ember-sky-poster.webp') center / cover no-repeat;
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
}
.editorial-shell .camp-mark > * { display: none; }
.article-hero h1, .article-hero .article-deck, .article-hero .article-back, .article-hero .article-meta { color: #fff4ec; }
.article-hero h1 em, .article-hero > .chapter { color: #ffc29f; font-style: normal; }
.article-hero .article-meta, .article-hero .article-back, .article-note > span { font-size: .85rem; line-height: 1.6; }
.article-note { background: #f4e8df; border: 1px solid #d8b7a9; border-radius: 24px; box-shadow: none; transform: none; }
.article-note > strong, .article-deck, .article-lede, .article-body blockquote { font-family: ui-rounded,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
/* No word alone on a line (Justin, 2026-11-04). The last two words of every block are joined (base-camp's
   src/typeset), so on the narrowest phones a few headings shrink just enough for that pair to fit. Each phone rule
   meets the normal size where it ends. */
/* The Meet Base title keeps its 12ch width, but its joined last pair ("automatically counted.") is wider than that at
   every screen size, and the hero's overflow-wrap would break "counted." inside the word. So that pair alone runs
   past the title's width on one line; it still ends inside the hero's side padding, from 320px to 1440px. */
.editorial-shell .article-hero h1 em { overflow-wrap: normal; }
/* The side note's small label keeps its last two words together, but at double text size on a narrow phone that
   pair is wider than the note, so there (and only there) it may break inside a word rather than push the page wide. */
.editorial-shell .article-note > span { overflow-wrap: anywhere; }
@media (max-width: 359px) { .editorial-shell .article-hero h1 { font-size: 9.6vw; } }
@media (max-width: 600px) { .editorial-shell .legal-shell > header h1 { font-size: clamp(50px, 16.5vw, 76px); } }
/* "Privacy Notice." stays on one line; on phones up to 430px wide that line is wider than the header, so the title
   shrinks to the header's width there (the 18px side padding each way). */
@media (max-width: 600px) { .editorial-shell:has(#privacy-content) .legal-shell > header h1 { font-size: min(clamp(50px, 16.5vw, 76px), calc((100vw - 36px) / 6.2)); } }
@media (max-width: 362px) { .editorial-shell .learning-body h2 { font-size: 6.9vw; } }
@media (max-width: 360px) { .editorial-shell .guide-toc li { font-size: 5vw; } }
/* Zone 2 calculator: a guide-box form that works out the range in the browser. */
.zone-calc { padding: 24px; border: 1px solid #49614d; border-radius: 14px; margin-bottom: 32px; background: #f4e8df; }
.zone-calc h2 { margin-bottom: 14px; }
.zone-calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.zone-calc-form label { display: grid; gap: 6px; font-weight: 800; color: #321521; }
.zone-calc-form label span { font-weight: 400; font-size: 14px; color: #654651; }
.zone-calc-form input { min-width: 0; min-height: 52px; padding: 0 14px; border: 2px solid #321521; border-radius: 9px; background: #fffdf7; color: #321521; font: inherit; font-size: 18px; }
.zone-calc-form input:focus-visible { outline: 3px solid #87332b; outline-offset: 2px; }
.zone-calc-result { margin-top: 18px; }
.zone-calc-result p { margin: 0 0 8px; }
.zone-calc-range { font-size: 18px; }
.zone-calc-range strong { font-size: clamp(36px, 6vw, 52px); line-height: 1.1; color: #87332b; }
.zone-calc-note, .zone-calc-scope { margin: 12px 0 0; font-size: 14px; }
/* VO2 max by age checker: reuses the zone 2 calculator box; shows only the reader's own level. */
/* A choice box is never narrower than its words (design, 18 Nov): the two choices share the row equally while both fit
   whole, and each takes its own row when they cannot (see the container rules below the checker's other rules). */
.vo2-check-sex { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.vo2-check-sex legend { grid-column: 1 / -1; padding: 0; margin-bottom: 6px; font-weight: 800; color: #321521; }
.vo2-check-sex legend span { display: block; margin-top: 6px; font-weight: 400; font-size: 14px; color: #654651; }
.zone-calc-form .vo2-check-sex label { flex: 1 1 0; display: flex; align-items: center; gap: 8px; min-width: max-content; min-height: 52px; padding: 0 12px; border: 2px solid #321521; border-radius: 9px; background: #fffdf7; font-weight: 600; cursor: pointer; }
.zone-calc-form .vo2-check-sex input { flex: none; width: 20px; min-height: 0; height: 20px; padding: 0; margin: 0; border: 0; border-radius: 50%; accent-color: #87332b; }
.zone-calc-form .vo2-check-sex label:has(input:focus-visible) { outline: 3px solid #87332b; outline-offset: 2px; }
/* One control, one ring: the option's box carries the ring, so the radio inside it draws none of its own. */
.zone-calc-form .vo2-check-sex input:focus-visible { outline: none; }
/* The citation link's ring hugs its own text: 1px out, not the guides' 5px, so it clears the line below. While focused
   (never in the ordinary look) the space before it widens by 4px so the ring clears "from", and the link keeps 7px from
   its full stop, which leaves the same clear space on the right as on the left (measured on the pictures). The widening
   sits in that space, not on the link: when the link starts a line the space ends the line above and is dropped there,
   so the link stays on the column edge and the ring stays flat. */
.zone-calc .vo2-check-citation a:focus-visible { outline-offset: 1px; border-radius: 3px; margin-right: 7px; }
.zone-calc .vo2-check-citation:has(a:focus-visible) .vo2-cite-gap { word-spacing: 4px; }
.zone-calc-form input:disabled, .vo2-check-sex:disabled label { opacity: .55; cursor: not-allowed; }
/* The skip link on the checker's page (design, 18 Nov): on the dark header its focus ring takes the guide look's cream
   (#fff4ec, as design read 3 gives every guide on the later stack), not the guides' green, which reads 1.98:1 there. */
.guide-page:has(.vo2-check) .skip-link:focus-visible { outline-color: #fff4ec; }
.vo2-check-level { font-size: 18px; }
.vo2-check-level strong { display: block; font-size: clamp(32px, 5.5vw, 46px); line-height: 1.1; color: #87332b; }
.vo2-check-bar { position: relative; margin: 10px 0 14px; max-width: 420px; }
.vo2-check-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.vo2-check-steps i { height: 10px; border-radius: 5px; background: #e2cfc3; }
.vo2-check-steps i.on { background: #87332b; }
.vo2-check-bar b { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: #321521; box-shadow: 0 0 0 2px #f4e8df; }
.vo2-check-ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: #654651; }
.vo2-check-noscript { margin: 14px 0 0; font-weight: 700; }
/* Stacked unless the Sex pair fits whole three across. Three across, the pair takes the width its words need; Age gives
   up width first (down to 84px, room for three digits), then the number box (183px down to 140px). 520px of form holds
   84 + the pair (about 248px) + 140 + the two 14px gaps with room to spare; vo2-sex-fit.test.mjs reads every width. */
.vo2-check { container: vo2check / inline-size; }
/* Side by side, the two boxes share the row equally, which needs the wider choice's words twice plus the gap (about
   250px); narrower than 252px of form, each choice takes its own row so neither box is squeezed. */
@container vo2check (max-width: 251.98px) { .zone-calc-form .vo2-check-sex label { flex-basis: 100%; } }
.vo2-check-form { grid-template-columns: minmax(0, 1fr); }
@container vo2check (min-width: 520px) {
  .vo2-check-form { grid-template-columns: minmax(84px, 1fr) max-content minmax(140px, 183px); }
  /* Three across, the two boxes are equal: each as wide as the wider choice's words. */
  .vo2-check-sex { display: grid; grid-template-columns: repeat(2, minmax(max-content, 1fr)); }
}
@media (min-width: 900px) { .vo2-check-form { grid-template-columns: minmax(0, .8fr) minmax(max-content, 1.4fr) minmax(0, 1fr); } }

/* Guide tables and the guides list (growth, 18 Nov 2026; design's read of the release-day pages). Kept here, not in base-camp's
   shared styles, so that file keeps its fingerprinted name: the hand-made press page links it by name. */
/* A table fits its box on a computer: narrower side padding (its title too, so the title lines up with the cells), and a slightly smaller type on tables of five or more columns. */
@media (min-width: 720px) {
  .guide-table th, .guide-table td { padding: 14px 10px; }
  .guide-table caption { padding-left: 10px; padding-right: 10px; }
  .guide-table table:has(> thead th:nth-child(5)) { font-size: 15px; }
}
/* Head-to-head tables on a phone: no sideways scroll; each row name sits on its own line above the two apps' answers. */
@media (max-width: 600px) {
  .guide-table--compare table { min-width: 0; }
  /* The zone 2 guide's three-column heart rate table fits a phone too, with Age kept as its own column. */
  .guide-table[aria-label="Your zone 2 heart rate"] table { min-width: 0; }
  .guide-table--compare tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .guide-table--compare thead th:first-child { display: none; }
  .guide-table--compare tbody th { grid-column: 1 / -1; padding-bottom: 0; }
  .guide-table--compare tbody td { border-top: 0; overflow-wrap: break-word; }
  /* Two answer columns are narrow: 14px type and 10px side padding fit every joined last pair from 375 wide up, with no hyphens. */
  .guide-table--compare table { font-size: 14px; }
  .guide-table--compare th, .guide-table--compare td { padding: 12px 10px; }
}
/* Narrower phones (360 to 374): 13px and 8px, so "eligible subscribers" and the like still fit without a split word. */
@media (max-width: 374px) {
  .guide-table--compare table { font-size: 13px; }
  .guide-table--compare th, .guide-table--compare td { padding: 12px 8px; }
}
/* Every other guide table on a phone (design, 19 Nov 2026). No fixed minimum width, so the title wraps inside the box; the
   head-to-head tables' phone sizes (14px type and 10px cell side padding, 13px and 8px below 375 wide); a column heading wraps
   wherever it needs to (its last two words are kept together only on a computer: GuidePage.tsx headingText). The zone 2 guide's
   heart rate table keeps its own sizes and headings. */
.table-heading-pair { white-space: nowrap; }
@media (max-width: 600px) {
  .guide-table table { min-width: 0; }
  .guide-table:not(.guide-table--compare, [aria-label="Your zone 2 heart rate"]) .table-heading-pair { white-space: normal; }
  .guide-table:not(.guide-table--compare, [aria-label="Your zone 2 heart rate"]) table { font-size: 14px; }
  .guide-table:not(.guide-table--compare, [aria-label="Your zone 2 heart rate"]) :is(th, td) { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 374px) {
  .guide-table:not(.guide-table--compare, [aria-label="Your zone 2 heart rate"]) table { font-size: 13px; }
  .guide-table:not(.guide-table--compare, [aria-label="Your zone 2 heart rate"]) :is(th, td) { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 600px) {
  /* Too wide even so (phone: "stack" in guides.ts): one block per row, as the head-to-head tables are, the row's first cell as
     the block's heading and each answer under its column's name. The column names stay in the page for screen readers, and
     the small labels are not read a second time. */
  .guide-table--stack :is(table, caption, tbody, tr, tbody th, tbody td) { display: block; }
  .guide-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .guide-table--stack tbody th { padding-bottom: 4px; }
  .guide-table--stack tbody td { border-top: 0; padding-top: 6px; padding-bottom: 6px; }
  .guide-table--stack tbody td:last-child { padding-bottom: 14px; }
  .guide-table--stack td::before { content: attr(data-label); content: attr(data-label) / ""; display: block; font-size: 13px; font-weight: 800; line-height: 1.4; color: #49614d; }
  /* A small number grid that fits whole (phone: "tight" in guides.ts; Zone 2 ranges by age, design 19 Nov 2026): headings
     13px, numbers 14px, 8px cell side padding, each number on one line. */
  .guide-table.guide-table--tight :is(th, td) { padding-left: 8px; padding-right: 8px; }
  .guide-table.guide-table--tight thead th { font-size: 13px; }
  .guide-table.guide-table--tight tbody :is(th, td) { font-size: 14px; white-space: nowrap; }
  /* Number grids of four or more columns too wide to fit whole (phone: "pin"; design, 19 Nov 2026): the grid scrolls sideways
     and looks meant. The first column (Age) stays pinned at the left, every number stays on one line, the visible edge falls
     through the middle of a column, and a fade at the box's right edge shows there is more (it lifts once the end is reached).
     The fade covers only the box's last 24px, so the cut column's numbers keep their full ink up to there, and a small
     chevron in the heading row at the box's edge (drawn, never text, so not read) points the way (design, 19 Nov 2026). */
  .guide-table.guide-table--pin { display: flex; container-type: inline-size; scroll-timeline: --guide-table-pin inline; }
  .guide-table.guide-table--pin table { flex: none; width: min-content; }
  .guide-table.guide-table--pin tbody :is(th, td) { white-space: nowrap; }
  .guide-table.guide-table--pin :is(th, td) { padding-left: 8px; padding-right: 8px; }
  .guide-table.guide-table--pin tr > :first-child { position: sticky; left: 0; z-index: 1; background: #fff9f4; }
  .guide-table.guide-table--pin thead tr > :first-child { background: #e3ead2; }
  .guide-table.guide-table--pin::after { content: ""; flex: none; width: 24px; margin-left: -24px; position: sticky; right: 0; z-index: 2; pointer-events: none; background: linear-gradient(to right, rgb(255 249 244 / 0), #fff9f4); }
  .guide-table.guide-table--pin thead tr > :first-child { z-index: 3; }
  .guide-table.guide-table--pin thead tr > :first-child::after { content: ""; position: absolute; top: 50%; left: calc(100cqw - 15px); width: 6px; height: 6px; margin-top: -4px; border-top: 2px solid #49614d; border-right: 2px solid #49614d; transform: rotate(45deg); pointer-events: none; }
  @supports (animation-timeline: scroll()) {
    .guide-table.guide-table--pin::after, .guide-table.guide-table--pin thead tr > :first-child::after { animation: guide-table-fade-lift linear both; animation-timeline: --guide-table-pin; animation-range: calc(100% - 24px) 100%; }
  }
  /* Tuned per table so the box's edge falls through the middle of a column at 390 and at 360 wide: Heart rate zones by age
     by its Age column's width (41px from 375 wide, deep enough into Zone 3 that its first digit is clear of the fade),
     Target heart rate by age chart by its headings at 13px (as the small grids'). */
  .guide-table[aria-label="Heart rate zones by age"] tr > :first-child { min-width: 41px; }
  .guide-table[aria-label="Target heart rate by age chart"] thead th { font-size: 13px; }
}
@keyframes guide-table-fade-lift { to { opacity: 0; } }
/* Below 375 wide only a pinned grid goes to 6px cell side padding, its numbers staying 14px; every other table keeps 8px. */
@media (max-width: 374px) {
  .guide-table.guide-table--pin :is(th, td) { padding-left: 6px; padding-right: 6px; }
  .guide-table.guide-table--pin tbody :is(th, td) { font-size: 14px; }
  .guide-table[aria-label="Heart rate zones by age"] tr > :first-child { min-width: 0; }
}
/* A heading naming an age formula on a phone (below 720px; design, 19 Nov 2026; Max heart rate by age chart): the heading
   shows the name alone ("Tanaka", from its data-name); its own text ("Tanaka: 208 − 0.7 × age") is hidden visually but stays
   the heading's text for screen readers and search (GuidePage.tsx headingParts). The formulas show once, on one small line of
   their own directly above the table, inside the card (GuidePage.tsx formulaLine). The name and the formulas are drawn with
   an empty alternative text, so neither is read a second time. While both formulas fit on one line a dot sits between them;
   when the second wraps, each takes its own line and no dot shows: the dot hangs in the space before the second formula,
   and at the start of a line that space lies outside the line's box, which clips it. The dot is drawn, never text. */
.table-formulas { display: none; }
@media (max-width: 719px) {
  .guide-table th[data-name] > * { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .guide-table th[data-name]::before { content: attr(data-name); content: attr(data-name) / ""; }
  .table-formulas { display: flex; flex-wrap: wrap; overflow: hidden; margin: 10px 8px 8px; font-size: 13px; font-weight: 400; line-height: 1.4; color: #49614d; }
  .table-formulas > span::before { content: attr(data-formula); content: attr(data-formula) / ""; }
  .table-formulas > span:not(:last-child) { margin-right: 14px; }
  .table-formulas > span + span { margin-left: -14px; padding-left: 14px; background: radial-gradient(circle at 7px 47%, currentColor 1.3px, transparent 1.8px) no-repeat; }
}
/* Small worked tables on a phone (phone: "stack-narrow" in guides.ts; design, 19 Nov 2026): each is a table only from the
   width where every sum and every cell sits whole on one line (no cell broken inside itself; column headings may wrap, as on
   every table); below that width it is stacked, exactly as the "stack" tables are. Measured in Chromium on the built pages at
   every second width from 320 to 718 with the table form forced: "A worked week" fits from 380px (narrower, its cells stay
   whole but the table runs wider than its box and would scroll); "A worked example" and "An example of honest workout accounting" never fit whole below 720px
   ("60 + 120 × 0.60 = 132", "Recorded time in zone" break even at 718), so below 720px they are always stacked. From 601px
   to 719px "A worked week" keeps the computer's sizes, with no fixed minimum width so it never scrolls. */
@media (max-width: 719px) {
  .guide-table.guide-table--stack-narrow table { min-width: 0; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked example: same person, different arithmetic"] :is(table, caption, tbody, tr, tbody th, tbody td) { display: block; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked example: same person, different arithmetic"] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked example: same person, different arithmetic"] tbody th { padding-bottom: 4px; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked example: same person, different arithmetic"] tbody td { border-top: 0; padding-top: 6px; padding-bottom: 6px; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked example: same person, different arithmetic"] tbody td:last-child { padding-bottom: 14px; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked example: same person, different arithmetic"] td::before { content: attr(data-label); content: attr(data-label) / ""; display: block; font-size: 13px; font-weight: 800; line-height: 1.4; color: #49614d; }
  .guide-table.guide-table--stack-narrow[aria-label="An example of honest workout accounting"] :is(table, caption, tbody, tr, tbody th, tbody td) { display: block; }
  .guide-table.guide-table--stack-narrow[aria-label="An example of honest workout accounting"] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .guide-table.guide-table--stack-narrow[aria-label="An example of honest workout accounting"] tbody th { padding-bottom: 4px; }
  .guide-table.guide-table--stack-narrow[aria-label="An example of honest workout accounting"] tbody td { border-top: 0; padding-top: 6px; padding-bottom: 6px; }
  .guide-table.guide-table--stack-narrow[aria-label="An example of honest workout accounting"] tbody td:last-child { padding-bottom: 14px; }
  .guide-table.guide-table--stack-narrow[aria-label="An example of honest workout accounting"] td::before { content: attr(data-label); content: attr(data-label) / ""; display: block; font-size: 13px; font-weight: 800; line-height: 1.4; color: #49614d; }
}
@media (min-width: 380px) and (max-width: 600px) {
  .guide-table.guide-table--stack-narrow[aria-label="A worked week: 150 on the calendar, 104 in zone"] :is(th, td) { padding-left: 8px; padding-right: 8px; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked week: 150 on the calendar, 104 in zone"] thead th { font-size: 13px; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked week: 150 on the calendar, 104 in zone"] tbody :is(th, td) { font-size: 14px; }
}
@media (max-width: 379px) {
  .guide-table.guide-table--stack-narrow[aria-label="A worked week: 150 on the calendar, 104 in zone"] :is(table, caption, tbody, tr, tbody th, tbody td) { display: block; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked week: 150 on the calendar, 104 in zone"] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked week: 150 on the calendar, 104 in zone"] tbody th { padding-bottom: 4px; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked week: 150 on the calendar, 104 in zone"] tbody td { border-top: 0; padding-top: 6px; padding-bottom: 6px; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked week: 150 on the calendar, 104 in zone"] tbody td:last-child { padding-bottom: 14px; }
  .guide-table.guide-table--stack-narrow[aria-label="A worked week: 150 on the calendar, 104 in zone"] td::before { content: attr(data-label); content: attr(data-label) / ""; display: block; font-size: 13px; font-weight: 800; line-height: 1.4; color: #49614d; }
}
/* The guides list (design, 19 Nov 2026): one picture per section. Each section opens with one lead card across the full
   width, its picture at the left on a computer and on top on a phone; every other guide is a compact text row (category and
   read time, title, the arrow), two columns of rows on a computer and one on a phone. No text on the list is ever cut: from
   1024px wide a row shows its whole summary under its title, wrapped to as many lines as it needs; below 1024px a row shows
   no summary, which stays in the page for search and screen readers (visually hidden, as the rows' "Read the guide"). */
.journal-library .journal-section .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.journal-card--lead { grid-column: 1 / -1; margin-bottom: 18px; }
.journal-card--lead > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.journal-card--lead .guide-art { aspect-ratio: auto; height: 100%; min-height: 340px; }
.journal-card--lead .guide-art img { position: absolute; inset: 0; }
.journal-card--lead .journal-card-copy { padding: 32px; justify-content: center; }
.editorial-shell .journal-card--lead h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.journal-card--lead .journal-read { margin-top: 0; }
.journal-card--row { border: 0; border-bottom: 1px solid #dcc8bd; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.journal-card--row:hover { transform: none; box-shadow: none; }
.journal-card--row .journal-card-copy { position: relative; padding: 18px 3.5rem 18px 0; }
.journal-card--row .journal-meta { margin-bottom: 6px; }
.editorial-shell .journal-card--row h3 { font-size: 1.25rem; margin-bottom: 6px; }
.journal-card--row .journal-deck { align-self: stretch; min-width: 0; margin: 0; font-size: 1rem; }
@media (max-width: 1023px) {
  .journal-card--row .journal-deck { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* The arrow's circle grows with the text size, so at double text size its arrow stays inside the circle and the row. */
.journal-card--row .journal-read { position: absolute; right: 4px; top: 50%; width: auto; margin: 0; transform: translateY(-50%); }
.journal-card--row .journal-read > span { width: 1.65em; height: 1.65em; }
.journal-read-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .journal-library .journal-section .journal-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .journal-card--lead > a { display: flex; flex-direction: column; }
  .journal-card--lead .guide-art { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
  .journal-card--lead .journal-card-copy { padding: 22px; }
  .editorial-shell .journal-card--lead h3 { font-size: 1.625rem; }
  .journal-card--lead .journal-read { margin-top: 4px; }
  .editorial-shell .journal-card--row h3 { font-size: 1.125rem; }
  .journal-card--row .journal-card-copy { padding: 16px 3rem 16px 0; }
}
/* A scrollable table box takes keyboard focus; give it the guide pages' own ring, not the browser's thin default. */
.guide-table:focus-visible { outline: 3px solid #24523d; outline-offset: 3px; }
/* Table cells (design, 18 Nov 2026): tighter lines. Lines are filled in order, not evened out, so a line holds one word only
   when that word cannot share a line with a neighbour at the column's width; words kept whole by the guide page (cellText)
   never wrap inside. */
.guide-table th, .guide-table td { line-height: 1.5; }
.table-keep { white-space: nowrap; }
@media (min-width: 720px) {
  .guide-table .row-short { white-space: nowrap; }
}
/* Guide tables on a computer (design, 19 Nov 2026): every table takes at least the reading column's full width (a table's
   own width is 100% of the column), and a table of five or more columns runs wider, to the page container: the width the
   guide's head and cover picture take (1120px at most, the article's inner width below that). It is centred on the page
   and carries the card's own cream, so where it runs past the reading card it is still a cream table, never a narrow card
   with empty ground on either side. The article is the measure for that width (container query units). */
@media (min-width: 720px) {
  .guide-page .learning-article { container-type: inline-size; }
  .guide-table:has(> table > thead th:nth-child(5)) {
    box-sizing: border-box; width: min(1120px, 100cqw); background: #fff9f4;
    margin-left: calc((100% - min(1120px, 100cqw)) / 2); margin-right: calc((100% - min(1120px, 100cqw)) / 2);
  }
}
/* On a computer a table of five or more columns goes one step smaller, to 14px (never below), with 8px side padding, and a
   five-column table gives every column at least 9em, so short answers ("Yes, weekly goals", "Zones for Training") fit on
   one line. */
@media (min-width: 1000px) {
  .guide-table:has(> table > thead th:nth-child(5)) table { font-size: 14px; }
  .guide-table:has(> table > thead th:nth-child(5)) :is(th, td, caption) { padding-left: 8px; padding-right: 8px; }
  .guide-table:has(> table > thead th:nth-child(5)):not(:has(> table > thead th:nth-child(6))) :is(th, td) { width: 9em; }
}
/* Head-to-head tables on a computer: each answer column at least 9em and the row names 12em ("Weekly zone 2 minutes"). */
@media (min-width: 720px) {
  .guide-table--compare :is(th, td) { width: 9em; }
  .guide-table--compare tbody th { width: 12em; }
}
/* Wide number grids on a computer (design, 19 Nov 2026; "Heart rate zones by age", "Target heart rate by age chart"): every
   number column takes the same width and the first column (Age) only what it needs, so no one column ("Estimated maximum")
   soaks up the room. From 720px each number column asks for an equal share and Age for none (a column whose heading cannot
   wrap narrower keeps that heading's width); from 1000px, at 14px type, the columns are exactly equal and Age is sized to its
   heading. Tables whose cells are words keep their natural widths. */
@media (min-width: 720px) {
  .guide-table.guide-table--pin:has(> table > thead th:nth-child(5)) tr > :first-child { width: 0; white-space: nowrap; }
  .guide-table.guide-table--pin:has(> table > thead th:nth-child(5)) tr > :not(:first-child) { width: calc(100% / 4); }
  .guide-table.guide-table--pin:has(> table > thead th:nth-child(7)) tr > :not(:first-child) { width: calc(100% / 6); }
}
@media (min-width: 1000px) {
  .guide-table.guide-table--pin:has(> table > thead th:nth-child(5)) table { table-layout: fixed; }
  .guide-table.guide-table--pin:has(> table > thead th:nth-child(5)) tr > :first-child { width: calc(2em + 16px); }
  .guide-table.guide-table--pin:has(> table > thead th:nth-child(5)) tr > :not(:first-child) { width: auto; }
}
/* The guide's head on a computer (design, 19 Nov 2026), 1024px and wider: two columns. Breadcrumb, read time, headline,
   summary and byline at the left (7 of 12), the guide's own cover picture at the right (5 of 12), its top level with the
   headline's top. The head's lines sit on the article's grid (subgrid) so the picture can start on the headline's row; grid
   margins do not collapse, so each line keeps today's space above it (22px, 24px, 24px, 20px) and nothing else moves.
   The reading column below is unchanged. */
@media (min-width: 1024px) {
  .guide-page .learning-article { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: repeat(5, auto) 1fr auto; column-gap: 48px; box-sizing: border-box; max-width: 1168px; margin-inline: auto; }
  .guide-page .learning-hero { grid-column: 1; grid-row: 1 / 6; display: grid; grid-template-rows: subgrid; max-width: none; margin: 0; }
  .guide-page .learning-hero > * { margin-block: 0; }
  .guide-page .learning-hero > .guide-reading { margin-top: 22px; }
  .guide-page .learning-hero > h1 { margin-top: 24px; }
  .guide-page .learning-hero > .guide-answer { margin-top: 24px; }
  .guide-page .learning-hero > .guide-byline { margin-top: 20px; }
  .guide-page .guide-cover { grid-column: 2; grid-row: 3 / 7; align-self: start; max-width: none; margin: 24px 0 0; }
  .guide-page .guide-cover .guide-art { aspect-ratio: 3 / 2; }
  .guide-page .learning-body { grid-column: 1 / -1; grid-row: 7; margin: 48px auto 0; width: 100%; }
  /* Long headlines (design, 19 Nov 2026): 64px at most; one that would run past three lines steps down to 52px, then 44px
     (never smaller). Which headlines step, and in which band, is set per guide in GuidePage.tsx (headlineSteps). */
  .editorial-shell.guide-page .learning-hero > h1 { font-size: min(5vw, 64px); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .editorial-shell.guide-page .learning-hero > h1.guide-headline--narrow-52 { font-size: min(5vw, 52px); }
  .editorial-shell.guide-page .learning-hero > h1.guide-headline--narrow-44 { font-size: 44px; }
}
/* The one headline that still runs to four lines at 44px just above 1024px wide steps to 40px there (GuidePage.tsx). */
@media (min-width: 1024px) and (max-width: 1068.98px) {
  .editorial-shell.guide-page .learning-hero > h1.guide-headline--first-40 { font-size: 40px; }
}
@media (min-width: 1280px) {
  .editorial-shell.guide-page .learning-hero > h1.guide-headline--wide-52 { font-size: 52px; }
  .editorial-shell.guide-page .learning-hero > h1.guide-headline--wide-44 { font-size: 44px; }
}
/* Table titles (design, 19 Nov 2026): every table's visible title repeated the heading right above it, so no title is shown.
   Each stays its table's name for screen readers, hidden visually as the site's other hidden text is. */
.guide-table.guide-table > table > caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* "In this guide" (design, 19 Nov 2026): a native details and summary (GuidePage.tsx). From 720px it reads as before, the list
   always shown under its heading; below 720px it is one closed line, its heading and a chevron, that opens on tap. */
.guide-toc > details > summary { display: block; list-style: none; }
.guide-toc > details > summary::-webkit-details-marker { display: none; }
@media (min-width: 720px) {
  .guide-toc > details::details-content { content-visibility: visible; }
  .guide-toc > details > summary { pointer-events: none; }
}
@media (max-width: 719px) {
  .guide-toc { padding: 0; }
  .guide-toc > details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-radius: 14px; cursor: pointer; }
  .editorial-shell .guide-toc > details > summary h2 { margin: 0; font-size: 18px; line-height: 1.4; }
  .guide-toc > details > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid #49614d; border-bottom: 2px solid #49614d; transform: translateY(-3px) rotate(45deg); }
  .guide-toc > details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
  .guide-toc > details > summary:focus-visible { outline: 3px solid #24523d; outline-offset: 3px; }
  .guide-toc > details > ol { margin: 0; padding: 0 20px 18px 44px; }
  /* The health notice after the first section's opening paragraph: a short note. */
  .guide-note { padding: 14px 16px; margin-bottom: 24px; font-size: 14px; line-height: 1.6; }
}
/* The guide's picture below 720px (design, 19 Nov 2026; GuidePage.tsx coverFitsFirstScreen): at most about 40% of the screen's
   height, cropped as the picture is already cropped, never stretched; where it moves, the head's copy is not shown and the
   copy after the first paragraph is. */
.guide-cover-inline { display: none; }
@media (max-width: 719px) {
  .guide-cover .guide-art { max-height: 40svh; }
  .guide-cover--moves { display: none; }
  .guide-cover-inline { display: block; margin: 0 0 24px; }
  .guide-cover-inline .guide-art { aspect-ratio: 3 / 2; max-height: 40svh; border-radius: 18px; }
  .guide-cover-inline .guide-art--watch img { padding-block: 22px 44px; }
  .guide-cover-inline .guide-art-note { max-width: 270px; margin-inline: auto; }
  .guide-cover-inline figcaption { margin-top: 10px; font-size: .8125rem; line-height: 1.6; color: #654651; }
}
/* The calculator and checker boxes (design, 19 Nov 2026): no empty band above the box; it sits 24px under the top of the
   reading card, the first thing in it. */
.learning-body:has(> .zone-calc:first-child) { padding-top: 24px; }
.learning-body > .zone-calc:first-child { margin-top: 0; }
/* The download banner's slogan (design, 19 Nov 2026): no line holds fewer than three words at any width, so it is two balanced
   lines, "Make room for" over "a good week.". "Make room for" is about 6.1em wide, so the heading is at most 6.4em wide (too
   narrow for a fourth word on the first line), and on a phone the type is at most the banner's width over 6.2. */
.waitlist > .waitlist-copy > h2 { max-width: 6.4em; text-wrap: balance; }
@media (max-width: 600px) {
  .waitlist > .waitlist-copy > h2 { font-size: min(clamp(55px, 17vw, 74px), calc((100vw - 36px) / 6.2)); }
}

/* Justin: no word hangs off a line, on the site as in the app (BASE BOSS, 22 Nov 2026). Here, not in base-camp's styles, so the
   fingerprinted stylesheet keeps its name and the press page's link to it still works. Short opening answers, captions and
   headings balance their lines; body text avoids a single last word, as the legal pages do. */
.learning-hero .guide-answer, .guide-cover figcaption, .guide-cover-inline figcaption, .learning-body h2, .learning-body h3 { text-wrap: balance; }
.learning-body p, .learning-body li { text-wrap: pretty; }

/* Two body headings fit one phone line (design, 22 Nov 2026): "Use consistent comparisons" and "Choose something repeatable"
   (GuidePage.tsx fitHeadings). The size follows the column (window less 84px) inside each band; outside it, the usual size. */
@media (min-width: 372px) and (max-width: 405px) { .editorial-shell .learning-body h2.heading-fit-a { font-size: calc((100vw - 84px) * 0.078); } }
@media (min-width: 372px) and (max-width: 426px) { .editorial-shell .learning-body h2.heading-fit-b { font-size: calc((100vw - 84px) * 0.0731); } }
