/* ============================================================================
 * AHUMA.DO — Journal / Cocina article stylesheet.  Template S1 "Uno".
 * ----------------------------------------------------------------------------
 * Load ONLY on journal routes, via {% block extra_head %}. Do NOT append to
 * site.css and do NOT load it on storefront pages.
 *
 * EVERY selector is prefixed `jr-` and every rule is nested under `.jr`.
 * That is deliberate: site.css owns ~386 global selectors and the storefront is
 * dark. An unprefixed `.wrap`/`.note`/`.btn` would leak both ways.
 *
 * HARD CONSTRAINTS — do not change these without re-reading 03_ANTIPATTERNS.md:
 *   1. ONE typeface in the article body: Inter (--font-text). Already loaded
 *      globally by fonts.css. Do not add a font file or a <link> to any CDN.
 *   2. SIX type steps only: --jr-t1 … --jr-t6. Never hardcode a font-size.
 *   3. TWO weights only: 400 and 700.
 *   4. Running text is capped by --jr-read (px, not ch). See antipattern A-04.
 *   5. Text colour is grey-warm (--jr-ink-2), never near-black, never #000.
 *   6. No italics, no letter-spacing on running text, no drop caps, no
 *      text-shadow, no gradients, no border-radius on images, no box-shadow.
 * ========================================================================== */

.jr {
  /* ---- palette -------------------------------------------------------- */
  --jr-paper:   #faf7f2;   /* page canvas                                   */
  --jr-paper-2: #f4efe7;   /* sticky card, product strip                    */
  --jr-paper-3: #ece5d9;   /* image wells (visible only while loading)      */

  /* contrast measured, not estimated. first figure is on --jr-paper, second on
     --jr-paper-2 (the sticky card and the product strip sit on paper-2, so both
     surfaces have to pass). all three clear WCAG AA for normal text. */
  --jr-ink:     #3f362e;   /* headings, emphasis        11.05:1 / 10.32:1 */
  --jr-ink-2:   #584e43;   /* running text               7.60:1 /  7.10:1 */
  --jr-ink-3:   #736a5d;   /* meta, captions, notes      4.98:1 /  4.65:1 */

  --jr-rule:    #e6ded2;   /* structural hairlines                          */
  --jr-rule-2:  #efe9df;   /* row dividers                                  */

  /* accent = --color-bronze from site.css :root, verbatim.  6.33:1 / 5.91:1.
     NEVER use --color-amber (#f1c77b = 1.49:1) or --color-gold (#d7a85a =
     2.04:1) for text here. --color-copper (#b5662a) is 4.01:1 — large text and
     1px borders only, never body copy. */
  --jr-accent:   #8a4b1e;
  --jr-accent-2: #6e3a14;  /* hover only                8.63:1 /  8.05:1 */

  /* ---- the six type steps. nothing else is allowed. ------------------- */
  --jr-t1: clamp(1.9rem, 3.2vw, 2.5rem);  /* article h1        30 → 40px    */
  --jr-t2: clamp(1.4rem, 1.9vw, 1.5rem);  /* any section title 22 → 24px    */
  --jr-t3: 1.25rem;                        /* lead, subtitle, quote   20px  */
  --jr-t4: 1.0625rem;                      /* body — the default      17px  */
  --jr-t5: .875rem;                        /* meta, caption, note     14px  */
  --jr-t6: .8125rem;                       /* uppercase label         13px  */

  /* ---- measure & columns --------------------------------------------- */
  --jr-read:      560px;   /* running text ≈ 65 characters at 17px          */
  --jr-read-lead: 620px;   /* lead / subtitle at 20px                       */
  --jr-col:       700px;   /* the article column                            */
  --jr-rail:      300px;   /* the sticky recipe card                        */

  /* ---- the page ------------------------------------------------------- */
  position: relative;
  background: var(--jr-paper);
  color: var(--jr-ink-2);
  font-family: var(--font-text);          /* Inter, from fonts.css          */
  font-size: var(--jr-t4);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* site.css assigns the brand serif directly to heading elements. Reassert the
   journal's single-family contract on every text-bearing element. */
.jr h1, .jr h2, .jr h3, .jr h4, .jr h5, .jr h6,
.jr p, .jr a, .jr span, .jr li, .jr dt, .jr dd,
.jr summary, .jr figcaption, .jr cite, .jr button {
  font-family: var(--font-text);
}

/* `.header` in site.css is position:fixed, 83px tall. The project already has
   `.page-section { padding-top: clamp(120px,14vw,168px) }` for non-hero pages;
   put that class on the wrapper too. This is the belt-and-braces fallback in
   case .page-section is missing from the deployed CSS — see antipattern A-07. */
.jr--offset { padding-top: clamp(120px, 14vw, 168px); }

/* one hairline at the seam between the dark header and the light page.
   no glow, no shadow, no gradient. */
.jr-seam { height: 1px; background: rgba(200, 149, 76, .4); }

/* Mirror the site's actual .container rule. site.css does not expose a
   --container custom property, so var(--container) would silently compute to
   auto and pin the journal to the viewport edge. */
.jr-wrap { width: min(100% - 40px, 1280px); margin-inline: auto; }

/* ---------------------------------------------------------------- type ---- */
/* Three roles, not six levels. The heading LEVEL is chosen for the document
   outline (h1 > h2 sections > h3 items); the SIZE comes from the role.
   t1 = the article title. t2 = a section title. t4 = an item title.
   `.jr-h2` / `.jr-h4` exist so an <h3> that is an *item* title can opt into the
   item size without changing its level. See antipattern A-31. */
.jr h1, .jr .jr-h1 { font-size: var(--jr-t1); line-height: 1.16; font-weight: 700;
  letter-spacing: -.018em; color: var(--jr-ink); }
.jr h2, .jr h3, .jr .jr-h2 { font-size: var(--jr-t2); line-height: 1.28;
  font-weight: 700; letter-spacing: -.012em; color: var(--jr-ink); }
.jr h4, .jr h5, .jr h6, .jr .jr-h4 { font-size: var(--jr-t4); line-height: 1.4;
  font-weight: 700; letter-spacing: -.008em; color: var(--jr-ink); }
/* item titles inside a list of things: same size as body, bold. */
.jr-step h3, .jr-step h4, .jr-topic h3, .jr-topic h4,
.jr-card h3, .jr-card h4, .jr-prod h3, .jr-prod h4, .jr-kit h3, .jr-kit h4 {
  font-size: var(--jr-t4); line-height: 1.4; letter-spacing: -.008em; }

.jr-label { font-size: var(--jr-t6); font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--jr-accent); }
.jr-lead, .jr-sub { font-size: var(--jr-t3); line-height: 1.65; color: var(--jr-ink); }
.jr-small { font-size: var(--jr-t5); line-height: 1.6; color: var(--jr-ink-3); }
.jr-link { color: var(--jr-accent); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px; }
.jr-link:hover { color: var(--jr-accent-2); }
.jr p + p { margin-top: 1.05em; }
.jr strong { font-weight: 700; color: var(--jr-ink); }
/* `em` is used in the copy for foreign words. Keep it upright — the template
   forbids italics. Remove this rule only if you want italics back. */
.jr em { font-style: normal; font-weight: 700; }

/* --------------------------------------------------------------- header --- */
.jr-crumbs { padding: 22px 0 0; font-size: var(--jr-t5); color: var(--jr-ink-3); }
.jr-crumbs a:hover { color: var(--jr-accent); }
.jr-crumbs span { margin: 0 8px; opacity: .55; }

.jr-head { padding: clamp(26px, 3.4vw, 48px) 0 0; max-width: var(--jr-col); }
.jr-head h1 { margin: 12px 0 0; max-width: 20ch; }   /* ch is fine on display type */
.jr-sub { margin: 14px 0 0; max-width: var(--jr-read-lead); }
.jr-meta { margin-top: 18px; font-size: var(--jr-t5); line-height: 1.6;
  color: var(--jr-ink-3); }
.jr-meta b { font-weight: 700; color: var(--jr-ink-2); }
.jr-meta i { margin: 0 9px; opacity: .5; font-style: normal; }

/* --------------------------------------------------------------- images --- */
.jr figure { margin: 0; }
.jr-shot { overflow: hidden; background: var(--jr-paper-3); }
.jr-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jr figcaption { margin-top: 11px; max-width: var(--jr-read);
  font-size: var(--jr-t5); line-height: 1.6; color: var(--jr-ink-3); }
.jr-hero { margin-top: clamp(22px, 3vw, 38px); }
.jr-hero .jr-shot { aspect-ratio: 16 / 8; }
.jr-fig { margin: clamp(30px, 3.8vw, 52px) 0; }
.jr-fig .jr-shot { aspect-ratio: 16 / 9; }
.jr-intro { margin-top: clamp(26px, 3.2vw, 42px); max-width: var(--jr-read-lead); }

/* -------------------------------------------------------------- buttons --- */
.jr-btn { display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; min-height: 48px; padding: 13px 30px; border: 1px solid var(--jr-ink-3);
  border-radius: 999px; background: transparent; color: var(--jr-ink);
  font-family: var(--font-text); font-size: var(--jr-t5); font-weight: 700;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: border-color 180ms ease, color 180ms ease; }
.jr-btn:hover { border-color: var(--jr-accent); color: var(--jr-accent); }
.jr-btn--sm { min-height: 42px; padding: 11px 22px; }
.jr-btn--full { width: 100%; }

/* ------------------------------------------------- numbers in circles ---- */
.jr-dials { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.6vw, 32px); }
.jr-dial { width: 80px; text-align: center; }
.jr-dial b { display: grid; place-items: center; width: 80px; height: 80px;
  border-radius: 50%; border: 1px solid var(--jr-accent); color: var(--jr-accent);
  font-size: var(--jr-t4); font-weight: 700; line-height: 1; }
.jr-dial span { display: block; margin-top: 9px; font-size: var(--jr-t6);
  letter-spacing: .04em; text-transform: uppercase; color: var(--jr-ink-3);
  line-height: 1.35; }

/* -------------------------------------------------------- article shell --- */
/* Two zones. `minmax(0,…)` on BOTH tracks and `min-width:0` on the children is
   mandatory: without it any wide child (the reference table) sizes the track
   and pushes the page sideways on phones. See antipattern A-03. */
.jr-shell { display: grid;
  grid-template-columns: minmax(0, var(--jr-col)) var(--jr-rail);
  gap: clamp(28px, 4vw, 72px); padding: clamp(32px, 4.2vw, 60px) 0 0;
  align-items: start; }
.jr-shell > * { min-width: 0; }
/* DOM order is: sticky card FIRST, then the article. Explicit placement puts the
   card in column 2 on desktop. Do NOT reorder the markup and do NOT use
   `order: -1` on mobile — that would make the visual order disagree with the
   reading order for screen readers and keyboard users. See antipattern A-30. */
.jr-kit  { grid-column: 2; grid-row: 1; }
.jr-main { grid-column: 1; grid-row: 1; }

.jr-kit { position: sticky; top: 112px; padding: 24px;
  border: 1px solid var(--jr-rule); background: var(--jr-paper-2); }
.jr-kit h4 { margin: 8px 0 0; }
.jr-serv { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 16px; padding: 12px 0;
  border-top: 1px solid var(--jr-rule); border-bottom: 1px solid var(--jr-rule); }
.jr-serv > span { font-size: var(--jr-t6); letter-spacing: .05em;
  text-transform: uppercase; color: var(--jr-ink-3); }
.jr-serv div { display: flex; align-items: center; gap: 10px; }
.jr-serv button { width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--jr-ink-3); border-radius: 50%; background: transparent;
  color: var(--jr-ink); font-family: var(--font-text); font-size: var(--jr-t4);
  line-height: 1; cursor: pointer; }
.jr-serv button:hover { border-color: var(--jr-accent); color: var(--jr-accent); }
.jr-serv b { min-width: 1.2em; text-align: center; font-size: var(--jr-t4);
  font-weight: 700; color: var(--jr-ink); }

.jr-needs { margin-top: 18px; }
.jr-needs ul { margin-top: 11px; padding: 0; list-style: none; }
.jr-needs li { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0;
  border-bottom: 1px solid var(--jr-rule-2); font-size: var(--jr-t5);
  line-height: 1.6; color: var(--jr-ink-2); }
.jr-needs li:last-child { border-bottom: 0; }
.jr-needs li i { flex: 0 0 auto; width: 15px; height: 15px; margin-top: .3em;
  border: 1px solid var(--jr-ink-3); }

.jr-facts { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--jr-rule); }
.jr-facts div { display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: var(--jr-t5); }
.jr-facts dt { color: var(--jr-ink-3); }
.jr-facts dd { margin: 0; font-weight: 700; color: var(--jr-ink); }

/* -------------------------------------------------------------- recipe --- */
.jr-recipe > h2, .jr-recipe > h3 { margin: 10px 0 0; }
.jr-recipe .jr-intro { margin-top: 12px; font-size: var(--jr-t4); line-height: 1.7;
  color: var(--jr-ink-2); max-width: var(--jr-read); }
.jr-steps { margin-top: clamp(24px, 3vw, 38px); }
.jr-step { display: grid; grid-template-columns: 44px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 22px); padding: clamp(20px, 2.6vw, 28px) 0;
  border-top: 1px solid var(--jr-rule-2); }
.jr-step:first-child { border-top: 0; padding-top: 0; }
.jr-step-n { display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--jr-accent); color: var(--jr-accent);
  font-size: var(--jr-t5); font-weight: 700; }
.jr-step p { margin-top: 7px; font-size: var(--jr-t4); line-height: 1.7;
  color: var(--jr-ink-2); max-width: var(--jr-read); }
.jr-step-why { margin-top: 9px; max-width: var(--jr-read);
  font-size: var(--jr-t5); line-height: 1.6; color: var(--jr-ink-3); }
.jr-step .jr-shot { margin-top: 16px; aspect-ratio: 16 / 9; }
.jr-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--jr-rule);
  max-width: var(--jr-read); font-size: var(--jr-t5); line-height: 1.6;
  color: var(--jr-ink-3); }

/* ------------------------------------------- explainer: 1 line + opt-in --- */
.jr-why { margin-top: clamp(44px, 5.4vw, 80px); }
.jr-why > h2, .jr-why > h3 { margin: 10px 0 0; }
.jr-why > .jr-why-intro { margin: 12px 0 0; font-size: var(--jr-t4);
  line-height: 1.7; color: var(--jr-ink-2); max-width: var(--jr-read); }
.jr-topics { margin-top: clamp(20px, 2.6vw, 32px); }
.jr-topic { padding: 20px 0; border-top: 1px solid var(--jr-rule-2); }
.jr-topic:last-child { border-bottom: 1px solid var(--jr-rule-2); }
.jr-topic-brief { margin-top: 7px; font-size: var(--jr-t4); line-height: 1.7;
  color: var(--jr-ink-2); max-width: var(--jr-read); }
.jr-topic details { margin-top: 11px; }
.jr-topic summary { display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; list-style: none; font-size: var(--jr-t5); font-weight: 700;
  color: var(--jr-accent); }
.jr-topic summary::-webkit-details-marker { display: none; }
.jr-topic summary svg { transition: transform 220ms ease; }
.jr-topic details[open] summary svg { transform: rotate(180deg); }
.jr-topic-more { padding-top: 12px; font-size: var(--jr-t4); line-height: 1.78;
  color: var(--jr-ink-2); max-width: var(--jr-read); }
/* A parenthetical inside a disclosure. It steps DOWN to t5 rather than staying
   at body size, because --jr-ink-3 is 4.98:1 — fine for a caption-sized aside,
   below the 7:1 the gates demand of 16-18px running text. Do not "fix" this by
   lightening the ink or by promoting it back to t4. See A-11 / G-07. */
.jr-aside { margin-top: 12px; padding-left: 16px;
  border-left: 1px solid var(--jr-rule); font-size: var(--jr-t5);
  line-height: 1.6; color: var(--jr-ink-3); }

/* ------------------------------------------------------- reference list --- */
.jr-cheat { margin: clamp(36px, 4.6vw, 64px) 0; }
.jr-cheat > h2, .jr-cheat > h3 { margin: 10px 0 0; }
.jr-cheat > .jr-note { margin: 10px 0 24px; padding: 0; border: 0;
  max-width: var(--jr-read); }
.jr-cheat ul { display: grid; gap: 0; padding: 0; list-style: none; }
.jr-cheat li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: clamp(14px, 2.4vw, 26px); align-items: center; padding: 18px 0;
  border-top: 1px solid var(--jr-rule-2); }
.jr-cheat li:last-child { border-bottom: 1px solid var(--jr-rule-2); }
.jr-cheat-t { display: grid; place-items: center; width: 80px; height: 80px;
  border-radius: 50%; border: 1px solid var(--jr-accent); color: var(--jr-accent);
  font-size: var(--jr-t4); font-weight: 700; }
.jr-cheat-cut { font-weight: 700; color: var(--jr-ink); }
.jr-cheat-res { display: block; margin-top: 4px; font-size: var(--jr-t4);
  line-height: 1.55; color: var(--jr-ink-2); }
.jr-cheat-time { font-size: var(--jr-t5); color: var(--jr-ink-3);
  white-space: nowrap; text-align: right; }

/* ------------------------------------------------------------------ FAQ --- */
.jr-faq { margin-top: clamp(40px, 5vw, 72px); }
.jr-faq > h2, .jr-faq > h3 { margin: 10px 0 0; }
.jr-faq-list { margin-top: clamp(16px, 2.2vw, 26px); }
.jr-faq details { border-top: 1px solid var(--jr-rule-2); }
.jr-faq details:last-child { border-bottom: 1px solid var(--jr-rule-2); }
.jr-faq summary { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: var(--jr-t4); font-weight: 700; color: var(--jr-ink); }
.jr-faq summary::-webkit-details-marker { display: none; }
.jr-faq summary:hover { color: var(--jr-accent); }
.jr-faq summary svg { flex: 0 0 auto; color: var(--jr-ink-3);
  transition: transform 220ms ease; }
.jr-faq details[open] summary svg { transform: rotate(180deg); }
.jr-faq-a { padding: 0 0 20px; font-size: var(--jr-t4); line-height: 1.78;
  color: var(--jr-ink-2); max-width: var(--jr-read); }

/* ---------------------------------------------------------------- quote --- */
.jr-quote { margin: clamp(40px, 5vw, 76px) 0; padding: 0; border: 0; }
.jr-quote p { font-size: var(--jr-t3); line-height: 1.55; color: var(--jr-ink);
  max-width: 520px; }
.jr-quote cite { display: block; margin-top: 14px; font-size: var(--jr-t5);
  font-style: normal; color: var(--jr-ink-3); }

/* ------------------------------------------------------------ conclusion -- */
.jr-end { margin-top: clamp(40px, 5vw, 72px); }
.jr-end h2 { margin-bottom: .55em; }
.jr-end p { max-width: var(--jr-read); }

/* -------------------------------------------------------------- products -- */
/* Commerce is a different surface (paper-2 + a hairline) so a reader can tell
   at a glance that the editorial has ended. Do not use the brass gradient
   button here and do not put products inside the article column. */
.jr-products { margin-top: clamp(56px, 7vw, 104px); padding: clamp(40px, 5vw, 72px) 0;
  background: var(--jr-paper-2); border-top: 1px solid var(--jr-rule); }
.jr-products > h2, .jr-products > h3 { margin: 10px 0 0; }
.jr-products-head p { margin-top: 12px; max-width: var(--jr-read-lead);
  font-size: var(--jr-t4); line-height: 1.7; color: var(--jr-ink-2); }
.jr-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.8vw, 40px); margin-top: clamp(28px, 3.4vw, 46px); }
.jr-prod .jr-shot { aspect-ratio: 4 / 3; }
.jr-prod h4 { margin-top: 14px; }
.jr-prod-d { margin-top: 6px; font-size: var(--jr-t5); color: var(--jr-ink-3); }
.jr-prod-p { margin-top: 10px; font-size: var(--jr-t4); font-weight: 700;
  color: var(--jr-accent); }
.jr-prod-p small { font-weight: 400; font-size: var(--jr-t6); color: var(--jr-ink-3); }
.jr-products-foot { margin-top: clamp(28px, 3.4vw, 44px); }

/* --------------------------------------------------------------- related -- */
.jr-related { padding: clamp(52px, 6.4vw, 92px) 0; }
.jr-related-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--jr-rule);
  margin-bottom: clamp(22px, 2.8vw, 36px); }
.jr-related-head a { font-size: var(--jr-t5); }
.jr-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.8vw, 40px); }
.jr-card .jr-shot { aspect-ratio: 4 / 3; }
.jr-card h3 { margin-top: 14px; }
.jr-card:hover h3 { color: var(--jr-accent); }
.jr-card-m { margin-top: 8px; font-size: var(--jr-t5); color: var(--jr-ink-3); }

/* ----------------------------------------------------- index (list page) -- */
.jr-index-head { padding: clamp(26px, 3.4vw, 48px) 0 clamp(24px, 3vw, 40px);
  max-width: var(--jr-col); }
.jr-index-head h1 { margin: 12px 0 0; max-width: 24ch; }
.jr-index-head p { margin-top: 14px; max-width: var(--jr-read-lead);
  font-size: var(--jr-t3); line-height: 1.65; color: var(--jr-ink); }
.jr-cats { display: flex; flex-wrap: wrap; gap: 9px;
  padding: 18px 0; border-top: 1px solid var(--jr-rule);
  border-bottom: 1px solid var(--jr-rule); }
.jr-cats a { padding: 9px 18px; border: 1px solid var(--jr-rule);
  border-radius: 999px; font-size: var(--jr-t5); color: var(--jr-ink-2); }
.jr-cats a:hover { border-color: var(--jr-accent); color: var(--jr-accent); }
.jr-cats a[aria-current] { border-color: var(--jr-accent); color: var(--jr-paper);
  background: var(--jr-accent); }
.jr-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 3.4vw, 56px); align-items: center;
  padding: clamp(32px, 4.2vw, 60px) 0; }
.jr-feature--text { grid-template-columns: minmax(0, var(--jr-col)); }
.jr-feature .jr-shot { aspect-ratio: 4 / 3; }
.jr-feature h2 { margin: 12px 0 0; font-size: var(--jr-t1); line-height: 1.16; }
.jr-feature p { margin-top: 14px; max-width: var(--jr-read);
  font-size: var(--jr-t4); line-height: 1.7; }
.jr-list { padding-bottom: clamp(52px, 6.4vw, 92px); }

/* -------------------------------------------------------------- motion ---- */
/* READ THIS BEFORE TOUCHING THE REVEAL MARKUP.  Verified in static/js/site.js:
   the project's observer does NOT read a class off the markup — it queries a
   HARDCODED list of storefront selectors inside #app-shell and *adds* `.reveal`
   to them itself. site.css then has a global `.reveal { opacity: 0 }`.
   Consequence: writing class="reveal" on a journal element makes it invisible
   FOREVER, because nothing will ever add `.reveal-in` to it.
   So the journal uses its OWN class, its OWN observer (8 lines, in the template)
   and its OWN gate class `jr-js`, which that script adds to <html>. With JS off
   the gate is absent and every element is fully visible. See A-28. */
.jr-js .jr-reveal { opacity: 0; transform: translateY(16px);
  transition: opacity 620ms cubic-bezier(.22, .7, .24, 1),
              transform 620ms cubic-bezier(.22, .7, .24, 1); }
.jr-js .jr-reveal.jr-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .jr-js .jr-reveal { opacity: 1; transform: none; transition: none; }
}

.jr ::selection { background: rgba(138, 75, 30, .16); }
.jr :focus-visible { outline: 2px solid var(--jr-accent); outline-offset: 3px; }

/* ---------------------------------------------------------- breakpoints --- */
/* These mirror site.css's own steps. Do not invent new ones. */
@media (max-width: 1180px) {
  .jr-shell { grid-template-columns: minmax(0, 1fr); }
  /* single column: both children fall back to auto placement in DOM order,
     which is card -> article. no `order` property anywhere. */
  .jr-kit  { grid-column: auto; grid-row: auto; position: static;
             max-width: var(--jr-col); }
  .jr-main { grid-column: auto; grid-row: auto; }
  .jr-kit .jr-needs ul { columns: 2; column-gap: 28px; }
}
@media (max-width: 900px) {
  .jr-prods, .jr-grid3 { grid-template-columns: 1fr 1fr; }
  .jr-feature { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .jr { --jr-t4: 1rem; --jr-read: 100%; --jr-read-lead: 100%; --jr-col: 100%; }
  .jr-prods, .jr-grid3 { grid-template-columns: 1fr; }
  .jr-kit .jr-needs ul { columns: 1; }
  .jr-hero .jr-shot { aspect-ratio: 4 / 3; }
  .jr-cheat li { grid-template-columns: 64px minmax(0, 1fr); }
  .jr-cheat-t { width: 64px; height: 64px; font-size: var(--jr-t5); }
  .jr-cheat-time { grid-column: 2; text-align: left; margin-top: 6px; }
  .jr-dial, .jr-dial b { width: 68px; }
  .jr-dial b { height: 68px; }
  .jr-step { grid-template-columns: 34px minmax(0, 1fr); gap: 13px; }
  .jr-step-n { width: 30px; height: 30px; font-size: var(--jr-t6); }
}

/* ----------------------------------------------------------------- print -- */
@media print {
  .jr { background: #fff; color: #000; }
  .jr-kit, .jr-products, .jr-related, .jr-crumbs { display: none; }
  .jr details { display: block; }
  .jr details > summary { display: none; }
  .jr-topic-more { padding-top: 0; }
}

/* ------------------------------------------------- news (announcements) ---- */
/* Same tokens, same six steps, no new ones. `marketing.Announcement` has no
   image, no slug, no excerpt and no author, so this is a list of dated notes,
   NOT the article layout. Do not invent a hero, a reading time, a category or a
   detail page — see the prompt's "do not" list. */
.jr-news { padding-bottom: clamp(52px, 6.4vw, 92px); }
.jr-news-item { max-width: var(--jr-col); padding: clamp(26px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--jr-rule-2); }
.jr-news-item:first-child { border-top: 0; padding-top: clamp(8px, 1.4vw, 16px); }
.jr-news-item:last-child { border-bottom: 1px solid var(--jr-rule-2); }
.jr-news-item h2 { margin-top: 8px; }
.jr-news-item .jr-meta { margin-top: 10px; }
.jr-news-body { margin-top: 14px; max-width: var(--jr-read); }
.jr-news-links { margin-top: 16px; font-size: var(--jr-t5);
  line-height: 1.6; color: var(--jr-ink-3); }
.jr-news-links b { font-weight: 700; color: var(--jr-ink-2); }
.jr-news-links a { margin-right: 4px; }
.jr-news-empty { margin-top: clamp(20px, 2.6vw, 32px); max-width: var(--jr-read);
  color: var(--jr-ink-2); }
