/*
 * WinterSport — "The push-off cut" (direction B, design-taste seed 277758359), portal edition.
 * One motif: the slanted cut a blade leaves when it pushes off. It masks photographs,
 * buttons, topic choices, bullets and the seams between sections.
 * Source of truth: pressroom repo design/wintersport/portal (prototype) → theme/pushoff.
 * Class names avoid WordPress body classes (home, single, page, search, archive, category…).
 */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/league-spartan-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/league-spartan-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/figtree-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --bg: #cbe4f2; --surface: #bcdcee; --ink: #0a0a0a; --muted: #2c4552;
  --accent: #b0298f; --accent-hover: #8e1f73; --accent-ink: #ffffff;
  --sand: #f1e3b5; --yellow: #ffc013; --black: #0a0a0a; --black-ink: #f2f2f2; --sky-deep: #7fb6d3;
  --font-display: 'League Spartan', 'Arial Black', system-ui, sans-serif;
  --font-text: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1rem + 1vw, 2rem);
  --step-title: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.4vw, 4.5rem);
  --step-display: clamp(3.25rem, 6.4vw, 7rem);
  --m: clamp(16px, 2.3vw, 32px);
  --gap: 24px;
  --slant: 0.36;            /* tan of the push-off angle, about 20 degrees */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --section: clamp(96px, 11vw, 176px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; overflow-x: clip; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, .mark, .disp { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: .92; }
h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.vh, .sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--black); color: var(--black-ink); padding: 10px 16px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.tlink { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .22em; text-decoration-thickness: .08em; transition: text-decoration-color .2s ease; }
@media (hover: hover) { .tlink:hover { text-decoration-color: currentColor; } }
.tlink[aria-current="page"] { text-decoration-color: currentColor; }
time, .num { font-variant-numeric: tabular-nums; }

/* ---------- the motif ---------- */
.cut { clip-path: polygon(0 0, calc(100% - var(--c, 24px)) 0, 100% 100%, var(--c, 24px) 100%); }
.button { --c: 17px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 34px; background: var(--accent); color: var(--accent-ink); font: 600 var(--step-body)/1 var(--font-text); text-decoration: none; border: 0; cursor: pointer; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 100%, var(--c) 100%); transition: transform .14s var(--ease-out), background-color .2s ease; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.button:active { transform: scale(.97); }
@media (hover: hover) { .button:hover { background: var(--accent-hover); } }
.button.dark { background: var(--black); color: var(--black-ink); }
@media (hover: hover) { .button.dark:hover { background: #333; } }
.button.small { min-height: 42px; padding: 0 26px; font-size: var(--step-small); --c: 14px; }
.go-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.go-link span { display: inline-block; transition: transform .2s var(--ease-out); }
@media (hover: hover) { .go-link:hover span { transform: translateX(4px); } .go-link:hover { text-decoration: underline; text-underline-offset: .2em; } }

/* ---------- top bar (inside the home hero, and on its own elsewhere) ---------- */
.top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--m) 22px; }
.mark { font-size: 32px; text-decoration: none; letter-spacing: -0.03em; white-space: nowrap; }
.top .links { display: flex; align-items: center; gap: 28px; font-weight: 600; }
.top .links a { text-decoration-color: transparent; }
.top .more { display: none; position: relative; font-weight: 600; }
.top .more summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 2px; }
.top .more summary::-webkit-details-marker { display: none; }
.top .more[open] summary { text-decoration: underline; text-underline-offset: .22em; }
.drawer { position: absolute; right: 0; top: calc(100% + 8px); width: min(86vw, 320px); background: var(--black); color: var(--black-ink); padding: 18px 22px 22px; z-index: 40; }
.drawer a { display: block; padding: 9px 0; font-weight: 600; text-decoration: none; }
.drawer p { margin-top: 10px; font-size: var(--step-small); color: #c9c9c9; font-weight: 400; }
.bar { background: var(--bg); }
.bar .links { color: var(--ink); }

/* ---------- home hero: giant cropped shape ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.hero .shape { position: absolute; top: -8vh; bottom: -8vh; left: 47vw; right: -10vw; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, calc(116vh * var(--slant)) 100%); }
.hero .photo { position: absolute; top: 19vh; right: var(--m); width: 38vw; height: 60vh; --c: calc(60vh * var(--slant)); overflow: hidden; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero .cap { position: absolute; right: var(--m); top: calc(79vh + 12px); color: var(--accent-ink); font-size: var(--step-small); }
.hero .top .links { color: var(--accent-ink); background: var(--accent); }
.hero .copy { position: relative; z-index: 2; align-self: center; padding-left: max(var(--m), 6vw); max-width: 47vw; padding-bottom: 6vh; }
.hero h1 { font-size: var(--step-display); line-height: .88; }
.hero h1 span { display: block; }
.hero .sub { font-size: var(--step-body); max-width: 36ch; margin-top: 36px; }
.hero .acts { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .photo { clip-path: polygon(0 0, 0 0, var(--c) 100%, var(--c) 100%); transition: clip-path 1.1s var(--ease) .2s; }
  .js .hero.is-in .photo { clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 100%, var(--c) 100%); }
  .js .hero .photo img { transform: scale(1.12); transition: transform 1.5s var(--ease) .2s; }
  .js .hero.is-in .photo img { transform: none; }
  .js .hero .shape { transform: translateX(12vw); transition: transform 1s var(--ease); }
  .js .hero.is-in .shape { transform: none; }
  .js .hero .copy > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s var(--ease); }
  .js .hero.is-in .copy > * { opacity: 1; transform: none; }
  .js .hero.is-in .copy > :nth-child(2) { transition-delay: .08s; }
  .js .hero.is-in .copy > :nth-child(3) { transition-delay: .16s; }
}

/* ---------- topics as one paragraph with picture words ---------- */
.words { background: var(--sand); padding-block: var(--section); }
.words h2 { grid-column: 1 / 13; font-size: var(--step-head); margin-bottom: 56px; }
.words .para { grid-column: 1 / 12; font-size: clamp(1.375rem, 0.9rem + 1.6vw, 2.25rem); line-height: 1.32; font-weight: 600; letter-spacing: -0.01em; max-width: 36em; }
.words .para a { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .14em; text-decoration-color: rgba(10,10,10,.35); transition: text-decoration-color .2s ease, color .2s ease; }
@media (hover: hover) { .words .para a:hover { text-decoration-color: var(--accent); color: var(--accent); } }
.slot { display: inline-block; height: 1em; width: 1.9em; vertical-align: -0.12em; overflow: hidden; --c: 0.36em; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 100%, var(--c) 100%); margin-inline: .08em; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.words .after { grid-column: 7 / 13; margin-top: 64px; }
.words .after p { max-width: 44ch; margin-bottom: 24px; }

/* ---------- start here: one lead guide, three beside it ---------- */
.start { padding-block: var(--section); }
.start > h2 { font-size: var(--step-head); margin-bottom: 56px; max-width: 14ch; }
.start .lead { grid-column: 1 / 8; text-decoration: none; display: block; }
.start .lead .pic { --c: calc(min(42vw, 640px) * 0.24); aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.start .lead .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.start .lead h3 { font-size: var(--step-title); margin-top: 28px; max-width: 24ch; }
.start .lead p { margin-top: 14px; max-width: 52ch; }
.start .lead .meta { color: var(--muted); font-size: var(--step-small); margin-top: 12px; }
@media (hover: hover) { .start .lead:hover .pic img { transform: scale(1.04); } .start .lead:hover h3 { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: .06em; } }
.start .side { grid-column: 9 / 13; display: grid; align-content: start; gap: 40px; }
.start .side a { display: grid; grid-template-columns: 96px 1fr; gap: 18px; text-decoration: none; }
.start .side img { width: 96px; height: 96px; object-fit: cover; --c: 30px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 100%, var(--c) 100%); transition: transform .3s var(--ease-out); }
.start .side b { display: block; font-weight: 600; line-height: 1.3; }
.start .side span { display: block; color: var(--muted); font-size: var(--step-small); margin-top: 6px; }
@media (hover: hover) { .start .side a:hover img { transform: translateX(6px); } .start .side a:hover b { text-decoration: underline; text-underline-offset: .2em; } }

/* ---------- guides as a two-column menu with photo bullets (latest, archives) ---------- */
.latest { background: var(--surface); padding-block: var(--section); }
.latest .head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 64px; flex-wrap: wrap; }
.latest h2 { font-size: var(--step-head); max-width: 14ch; }
.items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 40px; }
.item { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; align-items: start; text-decoration: none; }
.item .bul { width: 72px; height: 72px; overflow: hidden; --c: 26px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 100%, var(--c) 100%); background: var(--sky-deep); transition: transform .3s var(--ease-out); }
.item .bul img { width: 100%; height: 100%; object-fit: cover; }
.item .t { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: var(--step-body); line-height: 1.3; }
.item .t span:last-child { font-weight: 400; white-space: nowrap; color: var(--muted); }
.item p { max-width: 46ch; color: var(--muted); margin-top: 6px; }
.item .note { color: #86176b; font-weight: 600; font-size: var(--step-small); margin-top: 8px; }
.items.big { row-gap: 48px; }
.items.big .item { grid-template-columns: 192px 1fr; column-gap: 24px; }
.items.big .item .bul { width: 192px; height: 128px; --c: 44px; }
@media (hover: hover) { .item:hover .bul { transform: translateX(6px); } .item:hover .t span:first-child { text-decoration: underline; text-underline-offset: .2em; } }

/* ---------- the band between the halves ---------- */
.band { margin: 0; position: relative; height: 64vh; min-height: 380px; clip-path: polygon(0 12vh, 100% 0, 100% calc(100% - 12vh), 0 100%); background: var(--accent); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (prefers-reduced-motion: no-preference) { .band img { transform: scale(1.12) translateY(var(--py, 0px)); will-change: transform; } }

/* ---------- live thing: find your hollow ---------- */
.hollow { background: var(--yellow); padding-block: var(--section); margin-top: -12vh; padding-top: calc(72px + 12vh); }
.hollow h2 { font-size: var(--step-head); margin-bottom: 28px; }
.hollow .intro { grid-column: 1 / 7; }
.hollow .intro > p { max-width: 46ch; }
.hollow fieldset { border: 0; padding: 0; margin: 32px 0 0; min-width: 0; }
.hollow legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg label { position: relative; cursor: pointer; touch-action: manipulation; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg span { --c: 16px; display: inline-flex; align-items: center; min-height: 46px; padding: 0 26px; background: rgba(10,10,10,.1); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 100%, var(--c) 100%); transition: background-color .2s ease, color .2s ease, transform .14s var(--ease-out); user-select: none; -webkit-user-select: none; }
.seg label:active span { transform: scale(.97); }
.seg input:checked + span { background: var(--black); color: var(--yellow); }
.seg input:focus-visible + span { background: var(--accent); color: #fff; }
@media (hover: hover) { .seg label:hover span { background: rgba(10,10,10,.2); } .seg label:hover input:checked + span { background: var(--black); } }
.hollow .result { grid-column: 8 / 13; align-self: center; }
.hollow svg { width: 100%; max-width: 460px; height: auto; }
.hollow .size { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; font-size: clamp(5rem, 10vw, 9rem); line-height: .85; margin-top: 20px; }
.hollow .size small { font-family: var(--font-text); font-size: var(--step-body); letter-spacing: 0; font-weight: 600; }
.hollow .facts { margin-top: 16px; }
.hollow .facts b { font-weight: 600; }
.hollow .note { margin-top: 16px; max-width: 46ch; }

/* ---------- every topic: an index, one row per topic ---------- */
.topics { padding-block: clamp(72px, 7vw, 112px) var(--section); }
.topics > h2, .topics > p { margin-inline: var(--m); }
.topics > h2 { font-size: var(--step-head); max-width: 14ch; margin-bottom: 24px; }
.topics > p { max-width: 52ch; margin-bottom: 64px; }
.trow { padding-block: 44px; }
.trow { padding-inline: var(--m); }
.trow:nth-child(odd of .trow) { background: var(--surface); }
.trow .tname { grid-column: 1 / 5; display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; text-decoration: none; }
.trow .tname .pic { width: 112px; height: 84px; overflow: hidden; --c: 30px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 100%, var(--c) 100%); }
.trow .tname img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.trow h3 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); }
.trow .tname span { display: block; color: var(--muted); font-size: var(--step-small); margin-top: 8px; font-family: var(--font-text); }
@media (hover: hover) { .trow .tname:hover img { transform: scale(1.08); } .trow .tname:hover h3 { color: var(--accent); } }
.trow ul { grid-column: 5 / 11; display: grid; gap: 10px; }
.trow li a { display: flex; justify-content: space-between; gap: 20px; text-decoration: none; font-weight: 600; line-height: 1.3; }
.trow li a span:last-child { font-weight: 400; color: var(--muted); white-space: nowrap; }
@media (hover: hover) { .trow li a:hover span:first-child { text-decoration: underline; text-underline-offset: .2em; } }
.trow .all { grid-column: 11 / 13; justify-self: end; }

/* ---------- about: inset panel, shaped clip ---------- */
.about { padding: 20px; background: var(--bg); }
.panel { position: relative; background: var(--black); color: var(--black-ink); min-height: 92svh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; padding: 56px; }
.panel h2 { font-size: var(--step-head); max-width: 11ch; color: var(--bg); }
.panel .shaped { position: absolute; left: 56px; bottom: -7vw; width: 46vw; aspect-ratio: 1.15; --c: calc(40vw * var(--slant)); overflow: hidden; background: #1c2b33; }
.panel .shaped video, .panel .shaped img { width: 100%; height: 100%; object-fit: cover; }
.panel .text { grid-column: 2; padding-left: 13%; display: grid; align-content: start; gap: 56px; padding-top: 8px; }
.panel h3 { font-size: var(--step-lead); font-family: var(--font-text); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.2; }
.panel p { max-width: 38ch; }
.panel a:not(.button) { color: var(--bg); }

/* ---------- footer: the mark, built large ---------- */
.footer { background: var(--sand); padding: clamp(64px, 6vw, 96px) var(--m) calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer > h2 { font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 28px; line-height: 1.1; }
.blocks { display: flex; gap: 4px; align-items: flex-end; height: 34svh; min-height: 220px; }
.blocks span { height: var(--h); flex: 1; display: flex; align-items: flex-end; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 7vw, 7.5rem); line-height: .8; padding-bottom: .12em; color: var(--sand); }
.blocks span:nth-child(4n+1) { background: var(--accent); }
.blocks span:nth-child(4n+2) { background: var(--black); }
.blocks span:nth-child(4n+3) { background: var(--yellow); color: var(--black); }
.blocks span:nth-child(4n+4) { background: var(--sky-deep); color: var(--black); }
.foot { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); margin-top: 56px; }
.foot nav { grid-column: 1 / 9; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot nav p { font-weight: 600; margin-bottom: 6px; }
.foot nav li { margin-bottom: 4px; }
.foot .contact { grid-column: 9 / 13; overflow-wrap: anywhere; }
.foot .contact p + p { margin-top: 10px; }
.legal { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 64px; }
.legal .credits { font-size: var(--step-small); max-width: 75ch; line-height: 1.5; }
.legal .credits a { text-decoration-color: rgba(10,10,10,.35); }

/* ---------- page heads: topic archive, all guides, about pages, search ---------- */
.t-head { position: relative; overflow: hidden; padding: 24px var(--m) 96px; }
.t-head .shape { position: absolute; top: 0; bottom: 0; left: 58vw; right: -10vw; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, calc(70vh * var(--slant)) 100%); }
.t-head .grid { position: relative; z-index: 1; align-items: center; min-height: min(56vh, 520px); }
.t-head .txt { grid-column: 1 / 7; }
.t-head h1 { font-size: var(--step-head); max-width: 13ch; }
.t-head .lead { font-size: var(--step-body); max-width: 44ch; margin-top: 28px; }
.t-head .meta { margin-top: 18px; color: var(--muted); font-size: var(--step-small); }
.t-head .pic { grid-column: 8 / 13; --c: calc(min(36vw, 520px) * 0.24); aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.t-head .pic img { width: 100%; height: 100%; object-fit: cover; }
.t-head.plain .shape { left: 72vw; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 36px; }
.tabs a { --c: 14px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; background: rgba(10,10,10,.08); text-decoration: none; font-weight: 600; font-size: var(--step-small); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 100%, var(--c) 100%); transition: background-color .2s ease, transform .14s var(--ease-out); touch-action: manipulation; }
.tabs a:active { transform: scale(.97); }
.tabs a[aria-current="page"] { background: var(--black); color: var(--bg); }
@media (hover: hover) { .tabs a:not([aria-current]):hover { background: rgba(10,10,10,.18); } }

.listing { padding-block: 24px var(--section); }
.listing .first { margin-bottom: 88px; align-items: center; text-decoration: none; }
.listing .first .pic { grid-column: 1 / 8; --c: calc(min(48vw, 720px) * 0.2); aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.listing .first .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.listing .first .txt { grid-column: 8 / 13; }
.listing .first h2 { font-size: var(--step-title); line-height: 1.02; }
.listing .first p { margin-top: 16px; max-width: 48ch; }
.listing .first .meta { color: var(--muted); font-size: var(--step-small); margin-top: 14px; }
@media (hover: hover) { .listing .first:hover .pic img { transform: scale(1.04); } .listing .first:hover h2 { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: .06em; } }
.listing > h2 { font-size: var(--step-title); margin-bottom: 40px; }
.empty { font-size: var(--step-lead); max-width: 30ch; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 72px; }
.pager a, .pager span { --c: 12px; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 18px; background: rgba(10,10,10,.08); text-decoration: none; font-weight: 600; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 100%, var(--c) 100%); }
.pager .current { background: var(--black); color: var(--bg); }
.pager .dots { background: none; }
@media (hover: hover) { .pager a:hover { background: rgba(10,10,10,.18); } }

/* the full index of guides, one block per topic */
.index { padding-block: 32px var(--section); }
.iblock { padding-block: 56px; }
.iblock { padding-inline: var(--m); }
.iblock:nth-child(even of .iblock) { background: var(--surface); }
.iblock .ihead { grid-column: 1 / 5; }
.iblock .ipic { width: 180px; height: 120px; overflow: hidden; --c: 40px; margin-bottom: 20px; }
.iblock .ipic img { width: 100%; height: 100%; object-fit: cover; }
.iblock h2 { font-size: clamp(1.75rem, 1rem + 2.2vw, 3rem); }
.iblock .ihead p { color: var(--muted); margin-top: 12px; max-width: 32ch; }
.iblock .ihead .go-link { display: inline-block; margin-top: 16px; }
.iblock ol { grid-column: 5 / 13; display: grid; gap: 0; }
.iblock li a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-block: 9px; text-decoration: none; font-weight: 600; line-height: 1.3; }
.iblock li a span:last-child { color: var(--muted); font-weight: 400; white-space: nowrap; font-size: var(--step-small); }
@media (hover: hover) { .iblock li a:hover span:first-child { text-decoration: underline; text-underline-offset: .2em; } }

/* search form */
.ws-find { display: flex; gap: 8px; max-width: 640px; margin-top: 32px; }
.ws-find input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; font: 400 max(16px, var(--step-body))/1 var(--font-text); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.ws-find input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ws-find .button { min-height: 52px; }

/* ---------- article ---------- */
.a-hero { position: relative; overflow: hidden; padding: 16px var(--m) 72px; }
.a-hero .shape { position: absolute; top: 34%; bottom: 0; left: 52vw; right: -10vw; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, calc(60vh * var(--slant)) 100%); }
.a-hero .grid { position: relative; z-index: 1; align-items: start; row-gap: 36px; }
.a-hero .txt { grid-column: 1 / 5; }
.a-hero h1 { grid-column: 1 / 13; font-size: clamp(2rem, 1rem + 2.6vw, 3.75rem); line-height: .98; letter-spacing: -0.03em; max-width: 30ch; margin-top: 12px; }
.a-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 0; font-size: var(--step-small); color: var(--muted); }
.a-meta a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 2px; }
.a-lead { font-size: clamp(1.1875rem, 1rem + .6vw, 1.5rem); line-height: 1.42; max-width: 44ch; margin-top: 28px; }
.a-hero .pic { grid-column: 5 / 13; --c: calc(min(60vw, 900px) * 0.14); aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.a-hero .pic img { width: 100%; height: 100%; object-fit: cover; }
.a-hero figcaption { margin-top: -24px; font-size: var(--step-small); color: var(--accent-ink); grid-column: 5 / 13; text-align: right; }

.keyfigs { background: var(--sand); padding-block: 64px; }
.keyfigs h2 { grid-column: 1 / 4; font-size: var(--step-title); line-height: 1; align-self: start; }
.keyfig { grid-column: span 3; }
.keyfig b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4.25rem); letter-spacing: -0.04em; line-height: .9; white-space: nowrap; }
.keyfig.long b { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); white-space: normal; }
.keyfig p { margin-top: 12px; max-width: 30ch; }

.a-body { padding-block: 72px var(--section); align-items: start; }
.toc { grid-column: 1 / 4; position: sticky; top: 24px; font-size: var(--step-small); }
.toc h2 { font-family: var(--font-text); font-size: var(--step-body); letter-spacing: 0; font-weight: 600; line-height: 1.3; margin-bottom: 14px; }
.toc ol { display: grid; gap: 2px; counter-reset: none; }
.toc a { display: block; padding: 7px 0 7px 16px; text-decoration: none; line-height: 1.3; position: relative; color: var(--muted); transition: color .2s ease; }
.toc a::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 12px; background: currentColor; clip-path: polygon(0 0, 50% 0, 100% 100%, 50% 100%); opacity: .45; }
.toc a.on, .toc a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.toc a.on::before { background: var(--accent); opacity: 1; }
@media (hover: hover) { .toc a:hover { color: var(--ink); } }
.prose { grid-column: 4 / 11; max-width: 68ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.62; }
.a-body.notoc .prose { grid-column: 3 / 11; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.125rem); line-height: 1.06; letter-spacing: -0.025em; margin-top: 2.2em; scroll-margin-top: 24px; }
.prose h3 { font-size: 1.2em; margin-top: 1.8em; letter-spacing: -0.01em; line-height: 1.2; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { text-decoration-color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 0; }
.prose ul > li { position: relative; padding-left: 26px; margin-top: .45em; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .55em; width: 13px; height: 9px; background: var(--accent); clip-path: polygon(0 0, 62% 0, 100% 100%, 38% 100%); }
.prose ol { counter-reset: li; }
.prose ol > li { position: relative; padding-left: 32px; margin-top: .45em; counter-increment: li; }
.prose ol > li::before { content: counter(li) "."; position: absolute; left: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.prose blockquote { font-size: 1.2em; font-weight: 600; padding-left: 22px; border-left: 6px solid var(--accent); }
.prose img { max-width: 100%; height: auto; }
.prose figure { margin-top: 1.6em; }
.prose figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 8px; }
.prose .pr-updated { font-size: var(--step-small) !important; opacity: 1 !important; color: var(--muted); }
/* reference tables: a real table on wide screens, a stack of cards on phones */
.tbl-wrap { margin-top: 1.6em; overflow-x: auto; }
.prose figure.pr-data { margin-top: 1.8em; }
.prose figure.pr-data figcaption, .tbl-wrap caption { font-family: var(--font-display); font-weight: 700; font-size: 1.15em; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 12px; text-align: left; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92em; line-height: 1.45; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; vertical-align: bottom; font-weight: 600; background: var(--black); color: var(--bg); padding: 10px 14px; }
.tbl td { vertical-align: top; padding: 11px 14px; }
.tbl tbody tr:nth-child(odd) td { background: var(--surface); }
.tbl td:first-child { font-weight: 600; }

/* key takeaways, FAQ, sources, editorial box, reach block */
.prose .faq-q { font-family: var(--font-text); font-size: 1.05em; font-weight: 700; letter-spacing: 0; margin-top: 1.4em; line-height: 1.3; }
.prose .faq-q + p { margin-top: .35em; }
.prose .faq { background: var(--sand); padding: 8px 28px 28px; margin-top: 1.4em; }
.prose .pr-editorial { margin-top: 2.4em !important; padding: 18px 22px !important; border: 0 !important; border-radius: 0 !important; background: var(--surface) !important; font-size: var(--step-small) !important; }
.prose .pr-editorial__label { color: var(--muted) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: var(--step-small) !important; font-weight: 400 !important; }
.prose .pr-deep { border-top: 0 !important; padding-top: 0 !important; margin-top: 2.6em !important; }
.prose .pr-deep-h { font-family: var(--font-display) !important; font-size: 1.4em !important; letter-spacing: -0.02em; }
.prose .pr-deep-card { border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; } /* taste-skill-ignore: removes the mu-plugin card shadow */
.prose .pr-deep-thumb { --c: 18px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 100%, var(--c) 100%); }
.prose .pr-deep-title { padding: 8px 0 0 !important; font-weight: 600 !important; }
@media (hover: hover) { .prose .pr-deep-card:hover .pr-deep-title { text-decoration: underline; text-underline-offset: .2em; } }
.prose .pressroom-reads { font-size: var(--step-small); color: var(--muted); }

.related { background: var(--surface); padding-block: var(--section); }
.related .head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.related h2 { font-size: var(--step-head); max-width: 16ch; }
.rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rel a { text-decoration: none; display: block; }
.rel .pic { --c: 34px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sky-deep); }
.rel .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.rel b { display: block; margin-top: 18px; font-weight: 600; font-size: var(--step-body); line-height: 1.3; max-width: 34ch; }
.rel span { display: block; margin-top: 6px; color: var(--muted); font-size: var(--step-small); }
@media (hover: hover) { .rel a:hover .pic img { transform: scale(1.05); } .rel a:hover b { text-decoration: underline; text-underline-offset: .2em; } }

/* 404 */
.nf { padding: 24px var(--m) var(--section); }
.nf .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(7rem, 22vw, 18rem); line-height: .8; letter-spacing: -0.05em; color: var(--accent); }

/* ---------- entrances (content never depends on them on long pages) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-rise] { transform: translateY(18px); transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-rise].is-in { transform: none; }
  .js .blocks span { transform: translateY(18%); opacity: 0; transition: transform .7s var(--ease), opacity .5s ease; transition-delay: calc(var(--n, 0) * 50ms); }
  .js .blocks.is-in span { transform: none; opacity: 1; }
  .js .t-head .pic, .js .a-hero .pic { clip-path: polygon(0 0, 0 0, var(--c) 100%, var(--c) 100%); transition: clip-path 1s var(--ease) .1s; }
  .js .t-head.is-in .pic, .js .a-hero.is-in .pic { clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 100%, var(--c) 100%); }
}

/* ---------- tablet ---------- */
.item > div { min-width: 0; }
@media (max-width: 1100px) {
  .items.big { grid-template-columns: 1fr; }
  .trow .tname { grid-column: 1 / 6; }
  .trow ul { grid-column: 6 / 13; }
  .trow .all { grid-column: 6 / 13; justify-self: start; margin-top: 18px; }
  .prose { grid-column: 4 / 13; }
  .a-body.notoc .prose { grid-column: 2 / 12; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --gap: 16px; }
  .grid { display: block; }
  .mark { font-size: 26px; }
  .top { padding-block: calc(env(safe-area-inset-top, 0px) + 14px) 14px; }
  .top .links { display: none; }
  .top .more { display: block; }
  .hero { min-height: 100svh; }
  .hero .shape { top: 58svh; left: -10vw; right: -10vw; bottom: -4svh; clip-path: polygon(0 12vw, 100% 0, 100% 100%, 0 100%); }
  .hero .photo { top: calc(58svh + 18vw); right: auto; left: 16px; width: calc(100vw - 32px); height: 30svh; --c: calc(30svh * var(--slant)); }
  .hero .cap { display: none; }
  .hero .copy { align-self: start; max-width: none; padding: 6svh 16px 0; }
  .hero h1 { font-size: 12.4vw; }
  .hero .sub { margin-top: 18px; font-size: 18px; }
  .hero .acts { margin-top: 20px; }
  .words h2 { margin-bottom: 32px; }
  .words .para { font-size: 22px; }
  .slot { width: 1.5em; }
  .words .after { margin-top: 40px; }
  .start > h2, .latest h2, .topics > h2, .related h2 { font-size: 11vw; }
  .start .lead h3 { font-size: 26px; }
  .start .side { margin-top: 48px; gap: 28px; }
  .start .side a { grid-template-columns: 76px 1fr; }
  .start .side img { width: 76px; height: 76px; --c: 24px; }
  .latest .head { margin-bottom: 40px; }
  .items { grid-template-columns: 1fr; row-gap: 32px; }
  .item { grid-template-columns: 56px 1fr; column-gap: 16px; }
  .item .bul { width: 56px; height: 56px; --c: 20px; }
  .items.big .item { grid-template-columns: 112px 1fr; column-gap: 16px; }
  .items.big .item .bul { width: 112px; height: 75px; --c: 26px; }
  .items.big .item .ex { display: none; }
  .iblock .ipic { width: 120px; height: 80px; --c: 28px; }
  .item .t { flex-direction: column; gap: 2px; }
  .band { height: 44svh; min-height: 0; clip-path: polygon(0 6vh, 100% 0, 100% calc(100% - 6vh), 0 100%); }
  .hollow { padding-top: calc(100px + 6vh); margin-top: -6vh; }
  .hollow .result { margin-top: 48px; }
  .topics > p { margin-bottom: 32px; }
  .trow { padding-block: 32px; }
  .trow .tname { grid-template-columns: 84px 1fr; }
  .trow .tname .pic { width: 84px; height: 64px; --c: 22px; }
  .trow ul { margin-top: 22px; }
  .trow li a { flex-direction: column; gap: 0; }
  .trow .all { display: inline-block; margin-top: 18px; }
  .about { padding: 10px; }
  .panel { display: block; padding: 36px 20px 0; min-height: 0; }
  .panel h2 { font-size: 11vw; }
  .panel .text { padding: 32px 0 0; gap: 36px; }
  .panel .shaped { position: relative; left: auto; bottom: auto; width: 86vw; margin: 40px auto 0; --c: calc(86vw * var(--slant)); }
  .latest .item .ex { display: none; }
  .footer { padding-top: 64px; }
  .blocks { height: 22svh; min-height: 140px; gap: 3px; }
  .blocks span { font-size: 6.6vw; }
  .foot { display: block; }
  .foot nav { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot .contact { margin-top: 32px; }
  .legal { flex-direction: column; align-items: flex-start; }

  .t-head { padding-bottom: 56px; }
  .t-head .shape { top: auto; height: 46%; left: -10vw; right: -10vw; clip-path: polygon(0 18vw, 100% 0, 100% 100%, 0 100%); }
  .t-head .grid { min-height: 0; }
  .t-head h1 { font-size: 11vw; }
  .t-head .pic { margin-top: 36px; }
  .tabs { margin-top: 28px; }
  .listing .first { margin-bottom: 56px; display: block; }
  .listing .first .txt { margin-top: 22px; }
  .listing .first h2 { font-size: 24px; }
  .iblock { padding-block: 40px; }
  .iblock ol { margin-top: 20px; }
  .iblock li a { flex-direction: column; gap: 0; }
  .ws-find .button { padding: 0 20px; }

  .a-hero { padding-bottom: 40px; }
  .a-hero .shape { top: auto; height: 34%; left: -10vw; right: -10vw; clip-path: polygon(0 16vw, 100% 0, 100% 100%, 0 100%); }
  .a-hero h1 { font-size: 24px; line-height: 1.06; letter-spacing: -0.02em; }
  .a-meta { margin-top: 16px; }
  .a-lead { margin-top: 18px; font-size: 18px; }
  .a-hero .pic { margin-top: 32px; }
  .a-hero figcaption { color: var(--ink); margin-top: 8px; text-align: left; }
  .keyfigs { padding-block: 44px; }
  .keyfigs h2 { font-size: 21px; margin-bottom: 20px; }
  .keyfig + .keyfig { margin-top: 26px; }
  .a-body { padding-top: 40px; }
  .toc { position: static; background: var(--surface); padding: 18px 20px 14px; margin-bottom: 40px; }
  .toc h2 { margin-bottom: 6px; }
  .prose { font-size: 17.5px; }
  .prose h2 { font-size: 21px; line-height: 1.12; }
  .prose h3 { font-size: 18.5px; }
  .prose .faq { padding: 4px 18px 22px; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tr { margin-bottom: 12px; background: var(--surface); padding: 6px 0; }
  .tbl tbody tr:nth-child(odd) td { background: none; }
  .tbl td { padding: 6px 16px; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
  .tbl td:first-child { font-family: var(--font-display); font-size: 1.15em; letter-spacing: -0.01em; }
  .tbl td:first-child::before { display: none; }
  .tbl-wrap { overflow: visible; }
  .rel { grid-template-columns: 1fr; gap: 36px; }
}

/* portrait tablets take the phone's hero composition */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .hero .shape { top: 56svh; left: -10vw; right: -10vw; bottom: -4svh; clip-path: polygon(0 10vw, 100% 0, 100% 100%, 0 100%); }
  .hero .photo { top: calc(56svh + 14vw); right: auto; left: var(--m); width: calc(100vw - 2 * var(--m)); height: 30svh; --c: calc(30svh * var(--slant)); }
  .hero .cap { display: none; }
  .hero .top .links { background: none; color: var(--ink); }
  .hero .copy { align-self: start; max-width: none; padding: 8svh var(--m) 0; }
  .hero h1 { font-size: 10vw; }
  .t-head .txt { grid-column: 1 / 8; }
  .t-head .pic { grid-column: 8 / 13; }
  .a-hero .txt { grid-column: 1 / 13; }
  .a-hero .pic { grid-column: 1 / 13; }
  .a-hero figcaption { grid-column: 1 / 13; }
  .a-hero .shape { left: 30vw; top: 50%; }
}

@media print {
  .top, .footer, .toc, .related, .band, .hollow, .shape { display: none !important; }
  body { background: #fff; }
}

/* 404 code, in the t-head */
.t-head .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 14vw, 11rem); line-height: .8; letter-spacing: -0.05em; color: var(--accent); margin-bottom: 12px; }

/* fleet mu-plugin chrome after the footer: the "Guides" page strip and the cookie-settings control
   sit in the page flow on the sand field (never floating over text) */
body .pr-guides { border-top: 0 !important; background: var(--sand); font-size: var(--step-small) !important; }
body .pr-guides .pr-guides__in { max-width: none !important; padding: 0 var(--m) 20px !important; gap: 4px 20px !important; }
body .pr-guides .pr-guides__h { font-weight: 600 !important; }
body #prc-l { position: static !important; margin: 0; width: 100%; border-radius: 0 !important; background: var(--sand) !important; color: var(--ink) !important; opacity: 1 !important; text-align: left; padding: 0 var(--m) calc(24px + env(safe-area-inset-bottom, 0px)) !important; font: 600 var(--step-small)/1.4 var(--font-text) !important; text-decoration: underline; text-underline-offset: .22em; }
body #prc-b button, body #prc-m button { border-radius: 0 !important; }
