/* Threshold magazine: page system
 * Every page is a US Letter sheet. Inside a sheet, all sizes come from the
 * tokens below, which are expressed in cqi (1cqi = 1% of the sheet width),
 * so a sheet scales like a PDF and lays out identically at every width and
 * in print. Below 900px the sheets drop their fixed height and the same
 * tokens switch to rem, so the content reflows into a readable column.
 *
 * Brand: Montserrat (display, labels), Source Sans Pro (body),
 * Source Serif 4 (editorial voice: decks, pull quotes, commentary).
 */

/* ---------- Tokens ---------- */
:root {
  --blue-dark: #1b477e;
  --blue: #255ea0;
  --blue-light: #d9ecff;
  --blue-wash: #f2f7fd;
  --blue-prior: #86b6ef;
  --gold: #fdd841;
  --gold-deep: #d9a600;
  --gold-wash: #fff6c7;
  --linen: #fffce5;
  --green-dark: #154440;
  --green: #20605c;
  --green-light: #e3f0ee;
  --green-prior: #8dbdb8;
  --plum-dark: #4a204d;
  --plum: #622c65;
  --plum-light: #f7ecf8;
  --charcoal: #333333;
  --gray: #e0e0e0;

  --paper: #ffffff;
  --text: #333333;
  --text-2: #56606d;
  --text-3: #626b77;
  --rule: #d6dde6;
  --rule-strong: #b9c4d1;

  /* viewer chrome (the desk the sheets sit on) */
  --desk: #e7ebf0;
  --desk-text: #2b3440;
  --desk-muted: #5b6573;
  --bar: rgba(255, 255, 255, 0.92);
  --bar-line: #d3dae3;
  --btn: #ffffff;
  --btn-line: #c6cfda;
  --btn-text: #1b477e;
  --sheet-shadow: 0 1px 2px rgba(20, 38, 64, 0.08), 0 12px 32px rgba(20, 38, 64, 0.12);
  --focus: #1b477e;
  color-scheme: light;

  --f-display: "Montserrat", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --f-body: "Source Sans Pro", "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* page geometry and type scale, paged mode */
  --t-micro: 1.12cqi;
  --t-small: 1.34cqi;
  --t-body: 1.62cqi;
  --t-lead: 2.02cqi;
  --t-h4: 1.78cqi;
  --t-h3: 2.3cqi;
  --t-h2: 4.3cqi;
  --t-h1: 6.2cqi;
  --t-display: 8.4cqi;
  --t-stat: 5.6cqi;
  --t-stat-xl: 13cqi;
  --t-mast: 17.6cqi;

  --s1: 0.55cqi;
  --s2: 1.05cqi;
  --s3: 1.7cqi;
  --s4: 2.5cqi;
  --s5: 3.4cqi;
  --s6: 4.6cqi;

  --mx: 6.4cqi;
  --mt: 4.4cqi;
  --mb: 3.6cqi;
  --hair: max(1px, 0.13cqi);
  --radius: 0.7cqi;
}
/* whole-pixel hairlines so repeated rules and dashes render at one weight */
@supports (width: round(down, 1.3px, 1px)) {
  :root { --hair: max(1px, round(down, 0.13cqi, 1px)); }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #11161d;
    --desk-text: #e3e8ee;
    --desk-muted: #a4aebb;
    --bar: rgba(20, 26, 34, 0.92);
    --bar-line: #2c3643;
    --btn: #1b222c;
    --btn-line: #394657;
    --btn-text: #d9ecff;
    --sheet-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.5);
    --focus: #fdd841;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --desk: #11161d;
  --desk-text: #e3e8ee;
  --desk-muted: #a4aebb;
  --bar: rgba(20, 26, 34, 0.92);
  --bar-line: #2c3643;
  --btn: #1b222c;
  --btn-line: #394657;
  --btn-text: #d9ecff;
  --sheet-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.5);
  --focus: #fdd841;
  color-scheme: dark;
}

/* ---------- Viewer ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--desk-text);
  font-family: var(--f-body);
  overflow-wrap: break-word;
}
img { max-width: 100%; }
.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--blue-dark); color: #fff; padding: 10px 14px;
  font: 600 14px/1 var(--f-display); border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.page :focus-visible { outline-color: var(--blue-dark); }
.page.back :focus-visible { outline-color: var(--gold); }

.bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bar);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--bar-line);
}
.bar-in {
  max-width: 1560px; margin: 0 auto;
  padding: 10px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.bar-title { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.bar-title img { width: 28px; height: 28px; flex: none; }
.bar-name { font: 800 17px/1 var(--f-display); letter-spacing: -0.02em; color: var(--desk-text); }
.bar-issue { font: 600 12px/1.2 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--desk-muted); }
.bar-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--btn-line);
  background: var(--btn); color: var(--btn-text);
  font: 600 13px/1 var(--f-display); letter-spacing: 0.01em;
  text-decoration: none;
}
.btn:hover { border-color: var(--blue); }
.btn[aria-pressed="true"] { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn svg { width: 16px; height: 16px; }
.pager { display: inline-flex; align-items: center; gap: 4px; }
.pager .btn { padding: 0 10px; }
.count { font: 600 13px/1 var(--f-display); color: var(--desk-muted); min-width: 92px; text-align: center; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; border-radius: 8px; overflow: hidden; border: 1px solid var(--btn-line); }
.seg .btn { border: 0; border-radius: 0; }
.seg .btn + .btn { border-left: 1px solid var(--btn-line); }
@media (max-width: 1099px) {
  .seg, .bar-issue { display: none; }
}
/* overview (spread) view: sheets are thumbnails; a click opens one at reading size */
.issue[data-view="spreads"] .page { cursor: zoom-in; }

.toc-pop {
  position: absolute; right: 20px; top: calc(100% + 6px);
  width: min(380px, calc(100vw - 32px));
  max-height: min(70vh, 640px); overflow: auto;
  background: var(--btn); color: var(--desk-text);
  border: 1px solid var(--btn-line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(10, 20, 40, 0.25);
  padding: 8px;
}
.toc-pop a {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline;
  padding: 9px 10px; border-radius: 8px;
  color: inherit; text-decoration: none; font: 500 14px/1.3 var(--f-body);
}
.toc-pop a:hover, .toc-pop a:focus-visible { background: rgba(37, 94, 160, 0.12); }
.toc-pop b { font: 700 13px/1 var(--f-display); color: var(--desk-muted); font-variant-numeric: tabular-nums; }

.issue {
  max-width: 1560px; margin: 0 auto;
  padding-inline: 20px;
  padding-block: 28px 64px;
}
.issue-note { text-align: center; font: 500 13px/1.5 var(--f-body); color: var(--desk-muted); margin: 24px auto 0; max-width: 640px; }

.stack { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.spread { display: flex; justify-content: center; width: 100%; }
.issue:not([data-view="spreads"]) .spread { display: contents; }
.stack .page { width: min(100%, 940px); }

/* Spread view: pages pair like a printed issue (cover alone on the right) */
.issue[data-view="spreads"] .stack { gap: 44px; }
.issue[data-view="spreads"] .spread { max-width: 1520px; }
.issue[data-view="spreads"] .spread .page { width: 50%; }
.issue[data-view="spreads"] .spread.solo-right { justify-content: flex-end; padding-left: 0; }
.issue[data-view="spreads"] .spread.solo-right .page,
.issue[data-view="spreads"] .spread.solo-left .page { width: 50%; }
.issue[data-view="spreads"] .spread.solo-left { justify-content: flex-start; }
.issue[data-view="spreads"] .spread .page + .page { box-shadow: var(--sheet-shadow), inset 12px 0 18px -14px rgba(20, 38, 64, 0.35); }

/* ---------- Sheet ---------- */
.page {
  container-type: inline-size;
  position: relative;
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--sheet-shadow);
  aspect-ratio: 8.5 / 11;
  max-width: 100%;
  overflow: hidden;
  scroll-margin-top: calc(var(--bar-h, 64px) + 12px);
  --accent: var(--blue);
  --accent-dark: var(--blue-dark);
  --accent-light: var(--blue-light);
  --accent-wash: var(--blue-wash);
  --accent-prior: var(--blue-prior);
}
.page[data-desk="pro"] { --accent: var(--green); --accent-dark: var(--green-dark); --accent-light: var(--green-light); --accent-wash: #f1f7f6; --accent-prior: var(--green-prior); }
.page[data-desk="family"] { --accent: var(--plum); --accent-dark: var(--plum-dark); --accent-light: var(--plum-light); --accent-wash: #fbf5fb; }
.page[data-stock="linen"] { background: var(--linen); }

.pg {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--mt) var(--mx) var(--mb);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.42;
}
.pg-body { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: var(--s4); }
.pg p { margin: 0; }
.pg h2, .pg h3, .pg h4 { margin: 0; font-family: var(--f-display); color: var(--accent-dark); text-wrap: balance; }
.pg a { color: var(--accent); text-underline-offset: 0.18em; }
.pg em { font-style: italic; }
.pg sup { font-size: 0.62em; line-height: 0; vertical-align: 0.5em; }
.brand-mark { font-style: italic; white-space: nowrap; }
.nb { display: inline !important; white-space: nowrap; }

/* Running head: a dimension line with the department where the measurement goes */
.run {
  display: flex; align-items: center; gap: var(--s2);
  font: 700 var(--t-micro)/1 var(--f-display);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.run .desk { color: var(--accent-dark); }
.run .meta { color: var(--text-3); letter-spacing: 0.12em; }
.dim-line {
  position: relative; flex: 1 1 auto; height: var(--hair);
  background: currentColor; opacity: 0.55; min-width: 2cqi;
}
.dim-end {
  position: relative; flex: none; width: var(--hair); height: 1.9cqi;
  background: currentColor; opacity: 0.8;
}
.dim-end::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 1.3cqi; height: var(--hair); background: currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Foot: sources on the left, drawing-sheet title block on the right */
.foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s4);
  border-top: var(--hair) solid var(--rule);
  padding-top: var(--s2);
}
.src {
  font: 400 var(--t-micro)/1.35 var(--f-body);
  color: var(--text-3);
}
.src b { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); font-size: 0.92em; }
.src a { color: inherit; text-decoration-color: var(--rule-strong); }
.tblock {
  display: grid; grid-auto-flow: column; align-items: stretch;
  border: var(--hair) solid var(--rule-strong);
  font: 700 var(--t-micro)/1 var(--f-display);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
  white-space: nowrap;
}
.tblock > span { padding: 0.75cqi 1.1cqi; display: flex; flex-direction: column; justify-content: center; gap: 0.35cqi; }
.tblock > span + span { border-left: var(--hair) solid var(--rule-strong); }
.tblock small { font: 600 0.8em/1 var(--f-display); letter-spacing: 0.12em; color: var(--text-3); }
.tblock .sheet-no { color: var(--accent-dark); font-variant-numeric: tabular-nums; }

/* ---------- Shared editorial pieces ---------- */
.fill { flex: 1 1 auto; }
.push { margin-top: auto; }
.stat-grid.fill { grid-auto-rows: 1fr; }
.kicker {
  font: 700 var(--t-small)/1 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.head { display: grid; gap: var(--s2); }
.head h2 { font-size: var(--t-h2); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
.deck { font: italic 400 var(--t-lead)/1.34 var(--f-serif); color: var(--text-2); max-width: 70cqi; }
.deck, .hero-stat p, .gap-note, .ticks li, .take, .myth p, .deliver span { text-wrap: pretty; }
.pg h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.14; letter-spacing: -0.01em; }
.pg h4 { font-size: var(--t-h4); font-weight: 700; line-height: 1.2; }
.label {
  font: 700 var(--t-micro)/1.2 var(--f-display); letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-2);
}
.muted { color: var(--text-2); }
.small { font-size: var(--t-small); line-height: 1.38; }
.serif { font-family: var(--f-serif); }
.cols-2 { column-count: 2; column-gap: var(--s5); }
.cols-3 { column-count: 3; column-gap: var(--s4); }
.cols-2 p + p, .cols-3 p + p, .flow p + p { margin-top: var(--s2); }
.dropcap::first-letter {
  float: left; font: 800 5.3cqi/0.8 var(--f-display); color: var(--accent);
  margin: 0.45cqi 0.9cqi 0 0;
}
.rule { border: 0; border-top: var(--hair) solid var(--rule); margin: 0; }
.grid { display: grid; gap: var(--s4); }
.box {
  background: var(--accent-wash); border: var(--hair) solid var(--accent-light);
  border-radius: var(--radius); padding: var(--s3);
  display: grid; gap: var(--s2); align-content: start;
}
.box h3 { font-size: var(--t-h4); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.ticks li { position: relative; padding-left: 2.1cqi; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 1.2cqi; height: var(--hair); background: var(--accent);
  box-shadow: 0 0 0 0 transparent;
}
.pull {
  margin: 0; padding: var(--s2) 0 var(--s2) var(--s3);
  border-left: 0.5cqi solid var(--gold);
  font: italic 500 var(--t-h3)/1.25 var(--f-serif); color: var(--accent-dark);
}
.pull cite { display: block; margin-top: var(--s1); font: 700 var(--t-micro)/1.2 var(--f-display); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.hl { background: linear-gradient(transparent 58%, var(--gold) 58%, var(--gold) 92%, transparent 92%); padding: 0 0.15em; }

/* Status chips: shape carries the state, the word names it */
.chip {
  display: inline-flex; align-items: center; gap: 0.7cqi;
  font: 700 var(--t-micro)/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55cqi 0.9cqi; border-radius: 99px;
  border: var(--hair) solid var(--rule-strong); color: var(--text); white-space: nowrap;
}
.chip i { width: 1.05cqi; height: 1.05cqi; border-radius: 50%; flex: none; border: 0.2cqi solid currentColor; }
.chip.s-live { color: #1f5a2e; border-color: #9cc7a6; background: #eef7f0; }
.chip.s-live i { background: currentColor; }
.chip.s-pending { color: #5c4a00; border-color: #e8cf6a; background: var(--gold-wash); }
.chip.s-pending i { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.chip.s-scheduled { color: var(--blue-dark); border-color: #a9c7ea; background: var(--blue-wash); }
.chip.s-scheduled i { border-radius: 0.15cqi; transform: rotate(45deg); width: 0.9cqi; height: 0.9cqi; }
.chip.s-proposed { color: var(--text-2); background: #f5f6f8; }
.chip.s-risk { color: #7a2c1c; border-color: #e5b3a6; background: #fbefeb; }
.chip.s-risk i { border-radius: 0; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); border: 0; }

/* Photo placeholders: the brand .placeholder-image API, drawn as a layout comp
 * (a framed box with the classic crossed-diagonal image mark). */
.placeholder-image {
  --ph: 37 94 160;
  position: relative; display: block; width: 100%; max-width: 100%;
  border-radius: var(--radius); overflow: hidden;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0 0L100 100M100 0L0 100' stroke='%23000' stroke-opacity='0.07' stroke-width='0.35' vector-effect='non-scaling-stroke'/></svg>") center / 100% 100% no-repeat,
    linear-gradient(160deg, rgb(var(--ph) / 0.16), rgb(var(--ph) / 0.07) 55%, rgb(var(--ph) / 0.2));
  box-shadow: inset 0 0 0 var(--hair) rgb(var(--ph) / 0.35);
}
.placeholder-image::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 5.4cqi; height: 5.4cqi; transform: translate(-50%, -85%);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b477e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8h3l1.6-2h6.8L17 8h3v11H4z'/><circle cx='12' cy='13' r='3.4'/></svg>") center / 55% no-repeat;
  box-shadow: 0 0 0 var(--hair) rgb(var(--ph) / 0.3);
}
.placeholder-image[data-label]::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, 1.4cqi);
  width: 84%; text-align: center;
  font: 600 var(--t-micro)/1.35 var(--f-display); letter-spacing: 0.04em;
  color: rgb(var(--ph) / 1); filter: brightness(0.62);
}
/* photographs sit in the same frames as the placeholders and crop to fill them */
.photo {
  display: block; width: 100%; max-width: 100%; height: auto;
  object-fit: cover; border-radius: var(--radius);
  background: var(--blue-wash);
}
.ph-hero { aspect-ratio: 21 / 9; }
.ph-wide { aspect-ratio: 16 / 9; }
.ph-card { aspect-ratio: 4 / 3; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-portrait { aspect-ratio: 4 / 5; }

.placeholder-hero { aspect-ratio: 21 / 9; }
.placeholder-wide { aspect-ratio: 16 / 9; }
.placeholder-card-img { aspect-ratio: 4 / 3; }
.placeholder-square { aspect-ratio: 1 / 1; }
.placeholder-portrait { aspect-ratio: 4 / 5; }
.placeholder-trust-blue, .placeholder-products { --ph: 37 94 160; }
.placeholder-dealer-green, .placeholder-dealerships { --ph: 32 96 92; }
.placeholder-legacy-plum, .placeholder-programs { --ph: 98 44 101; }
.placeholder-gold { --ph: 201 154 0; }
.placeholder-neutral { --ph: 90 100 112; }
figure { margin: 0; }
figcaption { margin-top: var(--s1); font: 400 var(--t-micro)/1.35 var(--f-body); color: var(--text-3); }
figcaption b { font-family: var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }

/* ---------- Charts ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ct { font-family: var(--f-display); fill: var(--text-2); }
.chart .cv { font-family: var(--f-display); font-weight: 700; fill: var(--text); }
.chart .grid-l { stroke: var(--rule); stroke-width: 1; }
.chart .axis-l { stroke: var(--rule-strong); stroke-width: 1; }
.chart .hit { fill: transparent; }
.chart-title { font: 700 var(--t-small)/1.25 var(--f-display); color: var(--text); margin-bottom: var(--s2); }
.chart-note { font: 400 var(--t-micro)/1.35 var(--f-body); color: var(--text-3); margin-top: var(--s1); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); font: 600 var(--t-micro)/1.2 var(--f-display); color: var(--text-2); margin-bottom: var(--s3); }
.legend span { display: inline-flex; align-items: center; gap: 0.7cqi; }
.legend i { width: 2.2cqi; height: 0.9cqi; border-radius: 0.3cqi; display: inline-block; }
.legend i.line { height: max(2px, 0.35cqi); border-radius: 0; width: 2.8cqi; }
.chart .chart-phone, .swipe-cue { display: none; }
.runway-list { display: none; }
.tip {
  position: fixed; z-index: 40; pointer-events: none;
  background: #14263d; color: #fff; border-radius: 8px;
  padding: 8px 10px; max-width: 260px;
  font: 500 13px/1.35 var(--f-body);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.tip b { display: block; font: 700 12px/1.3 var(--f-display); letter-spacing: 0.02em; margin-bottom: 2px; }

/* ---------- Cover ---------- */
.cover .pg { grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 0; padding-top: 4.6cqi; }
.cover-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.cover-top img { height: 6.4cqi; width: auto; display: block; }
.cover-top .label { text-align: right; color: var(--blue-dark); }
.mast { margin-top: 3.2cqi; }
.mast .run { color: var(--blue); }
.mast h1 {
  margin: 0.6cqi 0 0; font: 800 var(--t-mast)/0.86 var(--f-display);
  letter-spacing: -0.045em; color: var(--blue-dark);
  margin-left: -0.9cqi;
}
.mast h1 { overflow-wrap: normal; }
.mast h1 .sr { letter-spacing: 0; }
.cover-main { position: relative; min-height: 0; }
.cover-story {
  position: absolute; left: 0; top: 6cqi; width: 36cqi; z-index: 2;
  display: grid; gap: var(--s2);
}
.cover-story h2 {
  font: 800 7cqi/0.95 var(--f-display); letter-spacing: -0.035em; color: var(--blue-dark);
}
.cover-story .deck { font-size: 2.1cqi; color: var(--text); max-width: 33cqi; }
.cover-story .hl-num { font-family: var(--f-display); font-style: normal; font-weight: 800; color: var(--blue-dark); }
.cover-circle {
  position: absolute; right: -0.6cqi; top: 3.4cqi;
  width: 50cqi; aspect-ratio: 1;
}
.cover-circle .placeholder-image,
.cover-circle .photo {
  position: absolute; inset: 3.2cqi; width: auto; height: auto; aspect-ratio: auto;
  border-radius: 50%; object-fit: cover;
}
.cover-circle svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cover-circle .ring { fill: none; stroke: var(--blue); stroke-width: 0.35; stroke-dasharray: 1.6 1.1; }
.cover-circle .dim { stroke: var(--blue-dark); stroke-width: 0.3; }
.cover-circle .dim-t { font: 700 3.1px/1 var(--f-display); fill: var(--blue-dark); letter-spacing: 0.08px; }
.cover-circle .dim-s { font: 600 1.9px/1 var(--f-display); fill: var(--text-2); letter-spacing: 0.1px; }
.cover-circle .dim-bg { fill: #fff; }
.cover-lines {
  position: absolute; left: 0; right: 0; bottom: 2.6cqi;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3);
  border-top: 0.35cqi solid var(--blue-dark); padding-top: var(--s3);
}
.cover-lines a { text-decoration: none; color: inherit; display: grid; gap: 0.7cqi; align-content: start; grid-template-rows: auto auto 1fr auto; }
.cover-lines .pno { align-self: end; }
.cover-lines .label { color: var(--blue); }
.cover-lines b { font: 700 2.05cqi/1.14 var(--f-display); color: var(--blue-dark); letter-spacing: -0.01em; }
.cover-lines span.small { color: var(--text-2); }
.cover-lines .pno { font: 800 var(--t-micro)/1 var(--f-display); color: var(--text-3); letter-spacing: 0.1em; }

/* ---------- Contents ---------- */
.toc-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--s5); min-height: 0; }
.toc-list { display: grid; gap: var(--s3); align-content: start; }
.toc-group { display: grid; gap: var(--s1); }
.toc-group > .run { margin-bottom: var(--s1); }
.toc-item {
  display: grid; grid-template-columns: 6.4cqi minmax(0, 1fr); gap: var(--s2); align-items: baseline;
  text-decoration: none; color: inherit; padding: 0.5cqi 0;
}
.toc-item .n { font: 800 3.3cqi/1 var(--f-display); letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.toc-item b { display: block; font: 700 var(--t-h4)/1.2 var(--f-display); color: var(--accent-dark); }
.toc-item span { display: block; font-size: var(--t-small); line-height: 1.35; color: var(--text-2); margin-top: 0.3cqi; }
.toc-item.d-pro .n, .toc-item.d-pro b { color: var(--green); }
.toc-item.d-family .n, .toc-item.d-family b { color: var(--plum); }
.toc-side { display: grid; gap: var(--s3); align-content: start; }
.key { display: grid; gap: var(--s1); }
.key div { display: grid; grid-template-columns: 2.4cqi 1fr; gap: var(--s1); align-items: center; font-size: var(--t-small); }
.key i { width: 2.4cqi; height: 2.4cqi; border-radius: 0.4cqi; display: block; box-shadow: inset 0 0 0 var(--hair) rgba(0, 0, 0, 0.18); }

/* contents, revised: two columns of departments over a footer row */
.toc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s5); align-content: start; }
.toc-col { display: grid; gap: var(--s4); align-content: start; }
.toc-col .photo { margin-top: var(--s1); }
.toc-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: stretch; }
.toc-col figure { margin-top: var(--s1); }
.toc-foot .box .ticks { font-size: var(--t-small); line-height: 1.38; }

/* ---------- Letter ---------- */
.letter-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--s5); min-height: 0; }
.letter-body { font: 400 1.78cqi/1.5 var(--f-serif); color: var(--text); display: grid; gap: var(--s2); align-content: start; }
.letter-body .dropcap::first-letter { font-family: var(--f-display); }
.sign { font: italic 500 var(--t-lead)/1.3 var(--f-serif); color: var(--blue-dark); margin-top: var(--s2); }
.sign small { display: block; font: 700 var(--t-micro)/1.4 var(--f-display); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-top: var(--s1); }
.masthead-box dl { margin: 0; display: grid; gap: var(--s2); }
.masthead-box dt { font: 700 var(--t-micro)/1.2 var(--f-display); letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); }
.masthead-box dd { margin: 0.2cqi 0 0; font-size: var(--t-small); line-height: 1.35; }

/* ---------- Numbers ---------- */
.hero-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); align-items: end; }
.hero-stat .v { font: 800 var(--t-stat-xl)/0.82 var(--f-display); letter-spacing: -0.05em; color: var(--blue-dark); }
.hero-stat .v small { font-size: 0.42em; letter-spacing: -0.02em; }
.hero-stat p { font: italic 400 var(--t-lead)/1.34 var(--f-serif); color: var(--text-2); padding-bottom: 0.8cqi; }
.measure > .run { flex: 1 1 auto; }
#p-numbers .stat .v { font-size: calc(var(--t-stat) * 1.18); }
#p-numbers .stat .l { font-size: var(--t-lead); }
.measure { color: var(--blue); display: flex; align-items: center; gap: var(--s1); }
.measure .label { color: var(--blue-dark); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3) var(--s4); }
.stat { display: grid; gap: 0.6cqi; align-content: start; padding-top: var(--s2); border-top: var(--hair) solid var(--rule-strong); }
.stat .v { font: 800 var(--t-stat)/1 var(--f-display); letter-spacing: -0.035em; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 0.5em; letter-spacing: 0; font-weight: 700; }
.stat .l { font: 600 var(--t-body)/1.28 var(--f-body); color: var(--text); }
.stat .d { font-size: var(--t-small); line-height: 1.35; color: var(--text-2); }
.stat .s { font: 600 var(--t-micro)/1.3 var(--f-display); letter-spacing: 0.04em; color: var(--text-3); }
.stat.gold .v { color: var(--charcoal); }
.stat.gold .v span { background: linear-gradient(transparent 55%, var(--gold) 55%, var(--gold) 90%, transparent 90%); }

/* ---------- Chart page ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
.two-1-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s5); }
.two-2-1 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s5); }
.callouts { display: grid; gap: var(--s2); align-content: start; }
.callouts p b { font-family: var(--f-display); color: var(--accent-dark); }

/* ---------- Briefing ---------- */
.briefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s5); align-content: start; }
.briefing .briefs { flex: 1 1 auto; align-content: space-between; }
.brief { display: grid; gap: 0.7cqi; align-content: start; padding-top: var(--s2); border-top: var(--hair) solid var(--rule-strong); }
.brief .date { font: 700 var(--t-micro)/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.brief h3 { font-size: 1.98cqi; }
.brief p { font-size: var(--t-small); line-height: 1.4; }
.take { font: italic 400 var(--t-small)/1.4 var(--f-serif); color: var(--accent-dark); padding-left: 1.3cqi; border-left: 0.35cqi solid var(--gold); }
.take b { font: 700 var(--t-micro)/1 var(--f-display); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-right: 0.5cqi; }

/* ---------- Policy table ---------- */
.tbl-wrap { position: relative; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.35; }
.tbl th {
  text-align: left; vertical-align: bottom;
  font: 700 var(--t-micro)/1.2 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
  padding: 0 var(--s2) var(--s1) 0; border-bottom: 0.3cqi solid var(--accent-dark);
}
.tbl td { vertical-align: top; padding: 1.4cqi var(--s2) 1.4cqi 0; border-bottom: var(--hair) solid var(--rule); }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.tbl td b { font-family: var(--f-display); color: var(--accent-dark); font-size: 1.04em; display: block; line-height: 1.22; }
.tbl .when { font: 700 var(--t-micro)/1.3 var(--f-display); letter-spacing: 0.04em; color: var(--text-2); white-space: nowrap; }
.tbl .num { font-variant-numeric: tabular-nums; }

/* ---------- Feature ---------- */
.feature .head h2 { font-size: var(--t-display); line-height: 0.92; letter-spacing: -0.04em; }
.feature .head { gap: var(--s3); }
.byline { font: 700 var(--t-micro)/1.3 var(--f-display); letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); }
.feature-body { font-size: 1.66cqi; line-height: 1.5; }
.feature-cont .head h2 { font-size: var(--t-h1); line-height: 1; letter-spacing: -0.035em; }
.feature-body.flow p + p { margin-top: var(--s2); }
.rulers { display: grid; gap: var(--s3); }
.ruler-row { display: grid; grid-template-columns: 17cqi minmax(0, 1fr); gap: var(--s3); align-items: center; }
.ruler-row .v { font: 800 var(--t-stat)/1 var(--f-display); letter-spacing: -0.035em; color: var(--blue-dark); }
.ruler-row .v.gold { color: var(--charcoal); }
.ruler-row .l { font-size: var(--t-small); line-height: 1.3; color: var(--text-2); margin-top: 0.4cqi; }
.ruler { display: grid; grid-template-columns: repeat(100, minmax(0, 1fr)); align-items: end; height: 4.2cqi; gap: 0.18cqi; border-bottom: var(--hair) solid var(--rule-strong); }
.ruler i { display: block; height: 55%; background: #d3dbe5; border-radius: 0.1cqi 0.1cqi 0 0; }
.ruler i:nth-child(5n) { height: 78%; }
.ruler i:nth-child(10n) { height: 100%; }
.ruler i.on { background: var(--blue); }
.ruler.gold i.on { background: var(--gold-deep); }
.gap-note { font: italic 400 var(--t-small)/1.4 var(--f-serif); color: var(--text-2); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.feat-icon { width: 5.2cqi; height: 5.2cqi; color: var(--blue); }

/* ---------- Trends ---------- */
.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s5); align-content: start; }
.trend { display: grid; gap: 0.8cqi; align-content: start; padding-top: var(--s2); border-top: var(--hair) solid var(--rule-strong); }
.trend p { font-size: var(--t-small); line-height: 1.42; }
.signal { display: flex; align-items: center; gap: 0.9cqi; font: 700 var(--t-micro)/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.signal .bars { display: inline-grid; grid-auto-flow: column; gap: 0.35cqi; align-items: end; }
.signal .bars i { width: 0.7cqi; background: var(--rule); border-radius: 0.1cqi; }
.signal .bars i:nth-child(1) { height: 1cqi; }
.signal .bars i:nth-child(2) { height: 1.6cqi; }
.signal .bars i:nth-child(3) { height: 2.2cqi; }
.signal .bars i.on { background: var(--accent); }
.watch { font-size: var(--t-small); color: var(--text-2); }
.watch b { font: 700 var(--t-micro)/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); margin-right: 0.4cqi; }

/* ---------- Tech ---------- */
.tech-list { display: grid; gap: var(--s2); align-content: space-between; }
.tech-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5cqi var(--s3); padding-top: var(--s2); border-top: var(--hair) solid var(--rule); }
.tech-row h3 { font-size: 2cqi; }
.tech-row p { grid-column: 1 / -1; font-size: var(--t-small); line-height: 1.42; }
.tech-row .cost { grid-column: 1 / -1; font: 600 var(--t-micro)/1.3 var(--f-display); letter-spacing: 0.04em; color: var(--text-2); }
.rate { align-self: start; }
.rate.r-proven { color: #1f5a2e; border-color: #9cc7a6; background: #eef7f0; }
.rate.r-proven i { background: currentColor; }
.rate.r-promising { color: var(--blue-dark); border-color: #a9c7ea; background: var(--blue-wash); }
.rate.r-promising i { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.rate.r-wait { color: var(--text-2); background: #f5f6f8; }

/* tech side stats */
.mini-stats { display: grid; gap: var(--s2); }
.mini-stats .stat { padding-top: var(--s1); }
.mini-stats .stat .v { font-size: 3.4cqi; }
.mini-stats .stat .l { font-size: var(--t-small); }

/* ---------- Room drawing ---------- */
.drawing { border: var(--hair) solid var(--rule-strong); border-radius: var(--radius); padding: var(--s2); background: #fbfdff; }
.drawing svg { display: block; width: 100%; height: auto; }
.drawing .wall { fill: #eef2f7; stroke: var(--blue-dark); stroke-width: 2; }
.drawing .hatch { fill: url(#hatch); stroke: var(--blue-dark); stroke-width: 1; }
.drawing .fix { fill: #fff; stroke: var(--blue-dark); stroke-width: 1.6; }
.drawing .soft { fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 6 5; }
.drawing .bar-g { fill: none; stroke: var(--gold-deep); stroke-width: 5; stroke-linecap: round; }
.drawing .dimln { stroke: var(--blue); stroke-width: 1; fill: none; }
.drawing .tick { stroke: var(--blue); stroke-width: 1.4; }
.drawing .dimtx { font: 700 13.5px/1 var(--f-display); fill: var(--blue-dark); letter-spacing: 0.2px; }
.drawing .dimbg { fill: #fbfdff; }
.drawing .cap { font: 700 12.5px/1 var(--f-display); fill: var(--text-2); letter-spacing: 1.6px; }
.drawing .note { font: 500 12px/1 var(--f-body); fill: var(--text-2); }
.drawing .mk { fill: var(--blue-dark); }
.drawing .mkt { font: 700 13px/1 var(--f-display); fill: #fff; }
.drawing .floor { stroke: var(--blue-dark); stroke-width: 2.4; }
.keylist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1) var(--s4); }
.keylist li { display: grid; grid-template-columns: 2.8cqi minmax(0, 1fr); gap: var(--s1); font-size: var(--t-small); line-height: 1.38; }
.keylist .k { width: 2.6cqi; height: 2.6cqi; border-radius: 50%; background: var(--blue-dark); color: #fff; font: 700 1.3cqi/2.6cqi var(--f-display); text-align: center; }
.keylist b { font-family: var(--f-display); color: var(--blue-dark); }

.specs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2) var(--s3); }
.spec { display: grid; gap: 0.4cqi; align-content: start; }
.spec b { font: 800 2.5cqi/1 var(--f-display); color: var(--blue-dark); letter-spacing: -0.02em; }
.spec span { font-size: var(--t-small); line-height: 1.3; color: var(--text-2); }

/* ---------- Tips ---------- */
.tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s4); align-content: start; }
.tips .tips-foot { margin-top: auto; }
.tip-group { display: grid; gap: var(--s1); align-content: start; }
.tip-group h3 { font-size: var(--t-h4); padding-bottom: 0.6cqi; border-bottom: 0.3cqi solid var(--blue-dark); }
.check { display: grid; grid-template-columns: 2.6cqi minmax(0, 1fr); gap: var(--s1); align-items: start; font-size: var(--t-small); line-height: 1.38; cursor: pointer; padding: 0.35cqi 0; }
.check input { appearance: none; -webkit-appearance: none; margin: 0.1cqi 0 0; width: 2.2cqi; height: 2.2cqi; border: 0.22cqi solid var(--blue-dark); border-radius: 0.35cqi; background: #fff; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--blue-dark); }
.check input:checked::after { content: ""; width: 1.1cqi; height: 0.6cqi; border-left: 0.3cqi solid #fff; border-bottom: 0.3cqi solid #fff; transform: rotate(-45deg) translate(0.1cqi, -0.1cqi); }
.check input:focus-visible { outline: 0.35cqi solid var(--blue-dark); outline-offset: 0.2cqi; }
.check b { font-family: var(--f-display); color: var(--blue-dark); font-size: 0.98em; }
.check .why { display: block; color: var(--text-2); margin-top: 0.2cqi; }
.tips-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); align-items: stretch; }
.scald { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.scald th, .scald td { text-align: left; padding: 0.55cqi 0; border-bottom: var(--hair) solid #eadfae; }
.scald thead th { font: 700 var(--t-micro)/1.2 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.scald tbody th { font: 800 var(--t-h4)/1 var(--f-display); color: var(--blue-dark); width: 42%; }
.scald td { font-family: var(--f-display); font-weight: 700; color: var(--text); text-wrap: balance; }
.page[data-stock="linen"] .box { background: #fff; border-color: #eadfae; }
.progress { font: 700 var(--t-micro)/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }

/* ---------- Money ---------- */
.fund { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.33; }
.fund td, .fund th { padding-right: var(--s3); }
.fund th { text-align: left; font: 700 var(--t-micro)/1.2 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); padding: 0 var(--s2) var(--s1) 0; border-bottom: 0.3cqi solid var(--accent-dark); }
.fund td { padding: 0.95cqi var(--s2) 0.95cqi 0; border-bottom: var(--hair) solid var(--rule); vertical-align: top; }
.fund td:first-child { font-family: var(--f-display); font-weight: 700; color: var(--accent-dark); }
.fund td:last-child, .fund th:last-child { padding-right: 0; }
.fund .amt { font-family: var(--f-display); font-weight: 700; color: var(--text); }
.line41 { display: grid; gap: var(--s1); }
.pro .market .ticks { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s4); font-size: var(--t-small); line-height: 1.4; }
.money-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: stretch; }
.line41 .big { font: 800 var(--t-stat)/1 var(--f-display); color: var(--accent-dark); letter-spacing: -0.03em; }

/* ---------- Q and A ---------- */
.qa { display: grid; gap: var(--s2); align-content: start; }
.qa-item { display: grid; gap: 0.5cqi; padding-top: var(--s2); border-top: var(--hair) solid var(--rule); }
.qa-item h3 { font-size: 1.98cqi; }
.qa-item p { font-size: var(--t-small); line-height: 1.45; }
.family .qa-item p { font-size: 1.46cqi; }
.tips .check { font-size: 1.48cqi; }
.runway { margin-top: var(--s2); padding-top: var(--s3); border-top: var(--hair) solid var(--rule-strong); }
.myths { display: grid; gap: var(--s2); }
.myth { display: grid; gap: 0.5cqi; padding: var(--s2) var(--s3); border-radius: var(--radius); background: var(--accent-wash); border: var(--hair) solid var(--accent-light); }
.myth .m { font: italic 500 var(--t-small)/1.35 var(--f-serif); color: var(--text-2); }
.myth .m b, .myth .f b { font: 700 var(--t-micro)/1 var(--f-display); font-style: normal; letter-spacing: 0.13em; text-transform: uppercase; margin-right: 0.6cqi; }
.myth .m b { color: var(--text-3); }
.myth .f { font-size: var(--t-small); line-height: 1.4; }
.myth .f b { color: var(--accent); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.family .strip { margin-top: auto; }

/* ---------- Almanac ---------- */
.cal { display: grid; gap: 0; align-content: start; }
.cal-row { display: grid; grid-template-columns: 11.5cqi minmax(0, 1fr); gap: var(--s2); padding: 0.9cqi 0; border-bottom: var(--hair) solid var(--rule); }
.cal-row .when { font: 800 var(--t-small)/1.2 var(--f-display); color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.cal-row .when small { display: block; font: 700 var(--t-micro)/1.3 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 0.2cqi; }
.cal-row b { font-family: var(--f-display); font-size: var(--t-small); color: var(--text); display: block; line-height: 1.25; }
.cal-row span { display: block; font-size: var(--t-small); line-height: 1.35; color: var(--text-2); margin-top: 0.15cqi; }
.cal-month { font: 700 var(--t-micro)/1 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); padding: var(--s2) 0 0.3cqi; }
.gloss { margin: 0; display: grid; gap: 1cqi; }
.gloss div { display: grid; gap: 0.15cqi; }
.gloss dt { font: 700 var(--t-small)/1.2 var(--f-display); color: var(--blue-dark); }
.gloss dd { margin: 0; font-size: var(--t-small); line-height: 1.36; color: var(--text); }

/* ---------- Back cover ---------- */
.page.back { background: var(--blue-dark); color: #fff; --accent: var(--gold); --accent-dark: #fff; }
.back .pg { color: #fff; }
.back .run { color: var(--gold); }
.back .run .meta { color: rgba(255, 255, 255, 0.72); }
.back .foot { border-top-color: rgba(255, 255, 255, 0.25); }
.back .src { color: rgba(255, 255, 255, 0.72); }
.back .src b { color: #fff; }
.back .tblock { border-color: rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.86); }
.back .tblock > span + span { border-left-color: rgba(255, 255, 255, 0.4); }
.back .tblock small { color: rgba(255, 255, 255, 0.66); }
.back .tblock .sheet-no { color: var(--gold); }
.back .kicker { color: var(--gold); }
.back h2 { color: #fff; font-size: var(--t-h1); font-weight: 800; letter-spacing: -0.03em; line-height: 1.0; }
.back .deck { color: rgba(255, 255, 255, 0.86); }
.back-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.deliver { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.deliver div { display: grid; gap: 0.5cqi; align-content: start; padding-top: var(--s2); border-top: var(--hair) solid rgba(255, 255, 255, 0.3); }
.deliver b { font: 700 var(--t-h4)/1.2 var(--f-display); color: #fff; }
.deliver span { font-size: var(--t-small); line-height: 1.38; color: rgba(255, 255, 255, 0.84); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 5.4cqi; padding: 0 3.2cqi; border-radius: 0.8cqi;
  background: var(--gold); color: var(--charcoal) !important; text-decoration: none;
  font: 800 1.8cqi/1 var(--f-display); letter-spacing: 0.01em;
  box-shadow: 0 0.4cqi 1.2cqi rgba(0, 0, 0, 0.22);
}
.btn-gold:hover { background: #ffe36b; }
.back a { color: #fff; }
.back .contact { display: grid; gap: 0.6cqi; font-size: var(--t-small); line-height: 1.4; color: rgba(255, 255, 255, 0.9); }
.back .contact b { font: 800 2.6cqi/1.1 var(--f-display); color: #fff; letter-spacing: -0.01em; }
.back .fine { font-size: var(--t-micro); line-height: 1.45; color: rgba(255, 255, 255, 0.7); }
.back .logo-light { height: 7cqi; width: auto; display: block; }
.next-box { border: var(--hair) solid rgba(255, 255, 255, 0.3); border-radius: var(--radius); padding: var(--s3); display: grid; gap: var(--s1); }
.next-box .label { color: var(--gold); }
.next-box li { color: rgba(255, 255, 255, 0.9); }
.next-box .ticks li::before { background: var(--gold); }
.steps-label { color: var(--gold); margin-bottom: var(--s2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.5cqi; align-content: start; padding-top: var(--s2); border-top: 0.35cqi solid var(--gold); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 800 2.4cqi/1 var(--f-display); color: var(--gold); }
.steps b { font: 700 var(--t-h4)/1.2 var(--f-display); color: #fff; }
.steps span { font-size: var(--t-small); line-height: 1.38; color: rgba(255, 255, 255, 0.84); }
.back .fine { border-top: var(--hair) solid rgba(255, 255, 255, 0.25); padding-top: var(--s2); }
.back .placeholder-image { box-shadow: inset 0 0 0 var(--hair) rgba(255, 255, 255, 0.35); background-color: rgba(255, 255, 255, 0.04); }
.back .photo { box-shadow: 0 0 0 var(--hair) rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }

.back .placeholder-image::after { color: #fff; filter: none; }

/* ---------- Reflow mode: phones ---------- */
/* screen only: a printed Letter page is 816px wide and must keep the sheet layout */
/* Set icons -------------------------------------------------------------- */
/* Decorative marks beside a label. Every placement uses negative block margins
   so the icon never makes its line box or its card taller: a sheet that fits
   keeps fitting. */
.ico { display: inline-block; width: auto; vertical-align: middle; }
.signal .ico { height: 4.4cqi; margin: -1.6cqi 0 -1.6cqi auto; }
.keylist + .box h3 .ico { height: 4.6cqi; margin: -1.6cqi 0 -1.6cqi 1cqi; }
.deliver b { display: flex; align-items: flex-start; gap: 0.7cqi; }
.deliver b .ico { flex: none; height: 3.4cqi; margin: -1.7cqi 0; align-self: center; }

/* Seasonal layer --------------------------------------------------------- */
/* Fixed to the viewport and painted under the sheets, so it drifts through the
   margins around the pages and cannot affect any page's layout. */
.season {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.season .leaf {
  position: absolute; top: -10vh; left: var(--x);
  animation: leaf-fall var(--t) linear infinite;
  animation-delay: var(--d);
}
.season .leaf i {
  display: block; width: var(--s); height: var(--s);
  background: var(--leaf) center / contain no-repeat;
  opacity: var(--o);
  animation: leaf-sway var(--t2) ease-in-out infinite alternate;
  animation-delay: var(--d);
}
@keyframes leaf-fall { to { transform: translate3d(var(--dx), 118vh, 0); } }
@keyframes leaf-sway { from { transform: translateX(-1.1vw) rotate(var(--r1)); } to { transform: translateX(1.1vw) rotate(var(--r2)); } }

/* Three leaf shapes in the issue's warm accents, mixed across nine drifters. */
.season-fall .leaf:nth-child(3n + 1) { --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M2 30C2 14 14 2 30 2c0 16-12 28-28 28Z' fill='%23d9a600'/%3E%3Cpath d='M2 30 30 2' stroke='%23b98c00' stroke-width='1.1' fill='none'/%3E%3C/svg%3E"); }
.season-fall .leaf:nth-child(3n + 2) { --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 28C4 12 16 3 30 5c1 15-11 25-26 23Z' fill='%23c2762a'/%3E%3Cpath d='M4 28C12 22 22 14 29 6' stroke='%23a25e1c' stroke-width='1.1' fill='none'/%3E%3C/svg%3E"); }
.season-fall .leaf:nth-child(3n + 3) { --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 30C1 18 9 5 26 2c3 14-5 26-19 28Z' fill='%23a8582c'/%3E%3Cpath d='M7 30C13 22 20 12 25 3' stroke='%238c4520' stroke-width='1.1' fill='none'/%3E%3C/svg%3E"); }

.season .leaf:nth-child(1) { --x: 4vw;  --s: 17px; --o: 0.44; --t: 27s; --t2: 4.1s; --d: -3s;  --dx: 5vw;  --r1: -14deg; --r2: 26deg; }
.season .leaf:nth-child(2) { --x: 13vw; --s: 12px; --o: 0.30; --t: 38s; --t2: 5.6s; --d: -19s; --dx: -3vw; --r1: 12deg;  --r2: -22deg; }
.season .leaf:nth-child(3) { --x: 21vw; --s: 20px; --o: 0.38; --t: 32s; --t2: 4.8s; --d: -11s; --dx: 7vw;  --r1: -20deg; --r2: 16deg; }
.season .leaf:nth-child(4) { --x: 34vw; --s: 14px; --o: 0.26; --t: 44s; --t2: 6.2s; --d: -26s; --dx: -5vw; --r1: 8deg;   --r2: -28deg; }
.season .leaf:nth-child(5) { --x: 49vw; --s: 11px; --o: 0.22; --t: 36s; --t2: 5.1s; --d: -7s;  --dx: 4vw;  --r1: -10deg; --r2: 20deg; }
.season .leaf:nth-child(6) { --x: 63vw; --s: 18px; --o: 0.36; --t: 30s; --t2: 4.4s; --d: -22s; --dx: -6vw; --r1: 18deg;  --r2: -14deg; }
.season .leaf:nth-child(7) { --x: 75vw; --s: 13px; --o: 0.28; --t: 41s; --t2: 5.9s; --d: -14s; --dx: 6vw;  --r1: -16deg; --r2: 24deg; }
.season .leaf:nth-child(8) { --x: 86vw; --s: 21px; --o: 0.40; --t: 34s; --t2: 4.6s; --d: -31s; --dx: -4vw; --r1: 10deg;  --r2: -20deg; }
.season .leaf:nth-child(9) { --x: 94vw; --s: 15px; --o: 0.32; --t: 29s; --t2: 5.3s; --d: -5s;  --dx: 3vw;  --r1: -22deg; --r2: 12deg; }

/* The still mark on the cover, in the open space under the deck. */
.season-mark { display: block; width: 27cqi; height: auto; margin-top: 3.4cqi; }
.season-mark .lf { fill: var(--gold-deep); }
.season-mark .gust { stroke: var(--gold-deep); stroke-width: 0.7; stroke-linecap: round; opacity: 0.22; }
.season-mark .rib { stroke: #fff; stroke-width: 1.4; opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
  .season .leaf, .season .leaf i { animation: none; }
  .season .leaf { top: var(--y, 12vh); }
  .season .leaf:nth-child(2n) { top: 46vh; }
  .season .leaf:nth-child(3n) { top: 74vh; }
}

@media screen and (max-width: 1023px) {
  .back .ph-square, .back .placeholder-square { aspect-ratio: 3 / 2; }

  .season .leaf:nth-child(n + 6) { display: none; }
  .season-mark { width: 60%; }

  :root {
    --t-micro: 0.78rem;
    --t-small: 0.9rem;
    --t-body: 1.02rem;
    --t-lead: 1.16rem;
    --t-h4: 1.04rem;
    --t-h3: 1.2rem;
    --t-h2: 1.85rem;
    --t-h1: 2.1rem;
    --t-display: 2.5rem;
    --t-stat: 2.05rem;
    --t-stat-xl: 3.6rem;
    --t-mast: min(4.1rem, 15.8cqi);   /* the word must fit the sheet: it is 5.34x the font size wide */
    --s1: 0.3rem;
    --s2: 0.55rem;
    --s3: 0.9rem;
    --s4: 1.25rem;
    --s5: 1.6rem;
    --s6: 2rem;
    --mx: 18px;
    --mt: 18px;
    --mb: 16px;
    --hair: 1px;
    --radius: 8px;
  }
  .bar-in { padding: 8px 16px; gap: 8px; }
  .bar-issue, .seg, button.bar-print { display: none; }
  a.bar-print span { display: none; }
  a.bar-print { padding: 0 10px; }
  .stack .page { width: min(100%, 700px); }
  .count { min-width: 72px; }
  .issue { padding-inline: 12px; padding-block: 14px 40px; }
  .stack { gap: 16px; }
  .page { aspect-ratio: auto; overflow: visible; }
  .pg { position: relative; inset: auto; }
  .pg-body { overflow: visible; }
  .dim-end { height: 12px; }
  .dim-end::after { width: 9px; }
  .dim-line { min-width: 12px; }
  .run .meta { display: none; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .tblock { justify-self: start; display: flex; flex-wrap: wrap; max-width: 100%; white-space: normal; }
  .tblock > span + span { border-left: 0; }
  .tblock > span { border-right: var(--hair) solid var(--rule-strong); }
  .tblock > span:last-child { border-right: 0; }
  .tblock > span { padding: 6px 8px; gap: 3px; }
  .cols-2, .cols-3 { column-count: 1; }
  .dropcap::first-letter { font-size: 3.2rem; margin: 4px 8px 0 0; }
  .two, .two-1-2, .two-2-1, .toc-grid, .letter-grid, .back-grid, .tips-foot { grid-template-columns: minmax(0, 1fr); }
  .stat-grid, .briefs, .trend-grid, .tips-grid, .three, .deliver, .strip, .keylist, .toc-cols, .toc-foot, .money-foot, .steps, .tips-foot { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec b { font-size: 1.3rem; }
  .steps li::before { font-size: 1.3rem; }
  .steps li { border-top-width: 3px; }
  .mini-stats .stat .v { font-size: 1.8rem; }
  .family .qa-item p, .tips .check { font-size: var(--t-small); }
  .hero-stat { grid-template-columns: minmax(0, 1fr); }
  .letter-body { font-size: 1.05rem; }
  .brief h3, .qa-item h3, .tech-row h3 { font-size: 1.14rem; }
  .toc-item { grid-template-columns: 2.8rem minmax(0, 1fr); }
  .toc-item .n { font-size: 1.6rem; }
  .key div { grid-template-columns: 18px 1fr; }
  .key i { width: 18px; height: 18px; }
  .cal-row { grid-template-columns: 6.2rem minmax(0, 1fr); }
  .ruler-row { grid-template-columns: 1fr; gap: 4px; }
  .ruler { height: 26px; gap: 1px; }
  .ruler i { height: 50%; }
  .keylist li { grid-template-columns: 26px minmax(0, 1fr); }
  .keylist .k { width: 24px; height: 24px; font-size: 12px; line-height: 24px; }
  .check { grid-template-columns: 28px minmax(0, 1fr); }
  .check input { width: 22px; height: 22px; border-width: 2px; border-radius: 4px; }
  .check input:checked::after { width: 10px; height: 6px; border-width: 2px; }
  .chip { padding: 4px 8px; gap: 5px; }
  .chip i { width: 9px; height: 9px; border-width: 2px; }
  .placeholder-image::before { width: 44px; height: 44px; }
  .placeholder-image[data-label]::after { transform: translate(-50%, 14px); }
  .signal .bars i { width: 5px; }
  .signal .bars i:nth-child(1) { height: 7px; }
  .signal .bars i:nth-child(2) { height: 11px; }
  .signal .bars i:nth-child(3) { height: 15px; }
  .legend i { width: 16px; height: 7px; }
  .btn-gold { min-height: 48px; padding: 0 22px; font-size: 1rem; border-radius: 8px; }
  .back .logo-light { height: 52px; }
  .back .contact b { font-size: 1.4rem; }
  .pull { border-left-width: 4px; }
  .take { border-left-width: 3px; padding-left: 10px; }
  .tbl th, .fund th { border-bottom-width: 2px; }
  .tip-group h3 { border-bottom-width: 2px; }
  .cover-lines { border-top-width: 3px; }
  .tbl-wrap, .scroll-x { overflow-x: auto; }
  .tbl { min-width: 560px; }
  .chart .chart-wide, .runway svg { display: none; }
  .chart .chart-phone { display: block; }
  .runway-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
  .runway-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 8px; font-size: var(--t-small); line-height: 1.35; padding: 5px 0; border-bottom: 1px solid var(--rule); }
  .runway-list b { font-family: var(--f-display); color: var(--blue-dark); }
  .scroll-x svg.chart-wide { min-width: 540px; }
  .drawing { overflow-x: auto; }
  .drawing svg { min-width: 820px; }
  .swipe-cue { display: block; }
  .feature-body { font-size: var(--t-body); line-height: 1.5; }
  .stat-grid.fill { grid-auto-rows: auto; }
  .family .strip, .tips .tips-foot { margin-top: 0; }
  .briefing .briefs { align-content: start; }
  .cover-circle { margin-bottom: 3.4rem; }
  .cover-circle .dim-s { font-size: 2.9px; }
  .chip.s-scheduled i { width: 8px; height: 8px; border-radius: 1px; }
  .check input:focus-visible { outline-width: 3px; outline-offset: 2px; }
  .ticks li { padding-left: 16px; }
  .ticks li::before { width: 9px; }
  .legend i.line { width: 18px; }
  .pro .market .ticks { grid-template-columns: minmax(0, 1fr); }
  .deck { max-width: none; }
  .fund thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fund, .fund tbody, .fund tr, .fund td { display: block; width: auto; }
  .fund tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .fund td { border: 0; padding: 2px 0; }
  .fund td:first-child { font-size: 1.02rem; }
  .fund td.amt { margin-top: 4px; }

  /* the cover recomposes as a column */
  .cover .pg { grid-template-rows: auto auto auto auto; gap: 14px; padding-top: 16px; }
  .cover-top img { height: 38px; }
  .mast { margin-top: 6px; }
  .mast h1 { margin-left: -2px; }
  .cover-main { display: grid; gap: 16px; }
  .cover-story, .cover-circle, .cover-lines { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; }
  .cover-story h2 { font-size: 2.6rem; }
  .cover-story .deck { font-size: 1.12rem; max-width: none; }
  .cover-circle { width: min(100%, 360px); justify-self: center; }
  .cover-circle .placeholder-image { inset: 22px; }
  .cover-lines { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cover-lines b { font-size: 1rem; }
  .cover-lines .small { display: none; }
}

/* Tablets ---------------------------------------------------------------- */
/* Still the reflow layout, but wide enough for two columns. One column here
   pushed running text to 92 characters a line, which is past comfortable. */
@media screen and (min-width: 640px) and (max-width: 1023px) {
  .stack .page { width: min(100%, 760px); }
  .stat-grid, .briefs, .trend-grid, .tips-grid, .three, .deliver, .strip,
  .keylist, .toc-cols, .toc-foot, .money-foot, .steps, .tips-foot,
  .qa, .tech-list, .callouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* tick lists stay single file: they sit in boxes that are already narrow.
     The one exception is the full-width market list on the Pro Desk. */
  .pro .market .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-2 { column-count: 2; column-gap: var(--s5); }
  /* prose that stays in one column keeps a readable measure */
  .deck, .pg-body > p, .feature-body.flow p, .letter-grid p { max-width: 38em; }
  .season .leaf:nth-child(n + 6) { display: revert; }
}

/* Narrow phones ---------------------------------------------------------- */
@media screen and (max-width: 520px) {
  /* the cover's quarterly label wrapped to two lines and orphaned the dimension line */
  .mast .run .desk { letter-spacing: 0.07em; }

  .cover-top { flex-wrap: wrap; row-gap: var(--s2); }
  .cover-top .label { flex: 1 0 100%; }

  /* the almanac's date column left only 24 characters for the entry itself */
  .cal-row { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .cal-row .when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5em; }
  .cal-row .when small { display: inline; margin-top: 0; }
}

/* Narrowest phones (iPhone SE and similar) ------------------------------- */
@media screen and (max-width: 344px) {
  /* the quarterly label needs the room the dimension marks take */
  .mast .run .dim-end, .mast .run .dim-line { display: none; }
  .mast .run { gap: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Print: one sheet per US Letter page ---------- */
@page { size: letter; margin: 0; }
@media print {
  :root { --desk: #fff; }
  body { background: #fff; }
  .bar, .skip, .issue-note, .tip { display: none !important; }
  .issue { padding: 0; max-width: none; }
  .stack, .issue[data-view="spreads"] .stack { display: block; gap: 0; }
  .spread { display: block; max-width: none !important; }
  .stack .page, .issue[data-view="spreads"] .spread .page {
    width: 8.5in !important; height: 11in; aspect-ratio: auto;
    box-shadow: none !important; margin: 0;
    break-after: page; page-break-after: always; break-inside: avoid;
  }
  .page { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .spread:last-child .page:last-child { break-after: auto; page-break-after: auto; }
  .pg a { text-decoration: none; }
}
@media print {
  .season { display: none !important; }
}
