/* Billiard News — dark editorial theme.
   Black + graphite, billiard-felt green, warm white, restrained gold.
   System font stacks only: no external fonts, no build step. */

:root {
  --bg: #080B0A;
  --surface: #111614;
  --surface-2: #18201C;
  --line: #27312C;
  --text: #F4F1E8;
  --body: #E4E1D7;
  --muted: #A8AEA9;
  --felt: #0F5132;
  --felt-lt: #4FAE7B;
  --gold: #D6B66B;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 4vw, 32px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--felt); color: var(--text); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.wrap-art { width: 100%; max-width: 880px; margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #111; padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.pad-top { padding-top: 40px; }
.pad-bot { padding-bottom: 72px; }

/* ---------- Masthead & navigation ---------- */
.mast { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.mast-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.mast-tag { display: none; }
.mast-tools { display: flex; align-items: center; gap: 4px; }
.brand { display: inline-flex; align-items: center; gap: .5em; font-family: var(--serif); }
.brand-ball {
  position: relative; flex: none; width: .78em; height: .78em; border-radius: 50%;
  background: var(--felt); box-shadow: inset 0 0 0 2px var(--gold);
}
.brand-ball::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--text); }
.brand-word { font-weight: 800; font-size: 1.45rem; letter-spacing: .09em; text-transform: uppercase; line-height: 1; }
.brand-word b { margin-left: .38em; color: var(--gold); font-weight: 800; }

.icon-link { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); }
.icon-link:hover { color: var(--gold); }

.menu summary {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px;
  cursor: pointer; list-style: none; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-bars { width: 20px; height: 2px; background: currentColor; box-shadow: 0 6px currentColor, 0 -6px currentColor; }
.menu[open] .menu-bars { box-shadow: none; transform: rotate(45deg); }
.menu[open] .menu-bars::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; transform: rotate(90deg); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 64px); overflow-y: auto;
  background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px;
}
.menu-panel a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 700 1.375rem/1.2 var(--serif);
}
.menu-panel a[aria-current="page"] { color: var(--gold); }
.menu-panel .menu-search { font: 700 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 0; padding-top: 18px; }

.navbar { display: none; }
@media (max-width: 420px) {
  .brand-word { font-size: 1.1rem; letter-spacing: .06em; }
  .menu summary { padding: 0 4px; gap: 8px; }
  .mast-tools { gap: 0; }
}

@media (min-width: 900px) {
  .mast { position: static; border-bottom: 0; }
  .mast-in { flex-direction: column; justify-content: center; gap: 10px; padding-block: 34px 22px; }
  .mast-tools { display: none; }
  .brand-word { font-size: clamp(2.4rem, 4.2vw, 3.6rem); letter-spacing: .12em; }
  .mast-tag { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; }

  .navbar { display: block; position: sticky; top: 0; z-index: 50; background: rgba(8, 11, 10, .96); border-block: 1px solid var(--line); }
  .navbar-in { display: flex; align-items: center; justify-content: space-between; }
  .nav-d { display: flex; gap: clamp(20px, 3.2vw, 44px); }
  .nav-d a {
    position: relative; display: block; padding: 17px 0;
    font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  }
  .nav-d a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  }
  .nav-d a:hover::after, .nav-d a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-search { display: inline-flex; align-items: center; gap: 8px; padding: 17px 0; color: var(--muted); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; }
  .nav-search:hover { color: var(--gold); }
}

/* ---------- Shared pieces ---------- */
.rule-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
  font: 700 .8125rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.rule-head::after {
  content: ""; order: 1; flex: 1; height: 9px;
  background:
    linear-gradient(var(--line), var(--line)) left center / calc(100% - 9px) 1px no-repeat,
    radial-gradient(circle, var(--gold) 0 3.6px, transparent 4px) right center / 9px 9px no-repeat;
}
.rule-head .more { order: 2; color: var(--muted); letter-spacing: .1em; white-space: nowrap; }
.rule-head .more:hover { color: var(--gold); }
.rule-head a:hover span { color: var(--gold); }

.kicker {
  display: inline-block; margin-bottom: 8px;
  font: 700 .75rem/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--felt-lt);
}
.kicker:hover { color: var(--gold); }
.kicker-lg { font-size: .8125rem; margin-bottom: 18px; }

.meta { color: var(--muted); font-size: .8125rem; line-height: 1.4; margin-top: 10px; }
.meta .by { color: var(--body); font-weight: 600; }
.meta .by::after { content: "·"; margin: 0 .55em; color: var(--muted); font-weight: 400; }

.ph { display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-none {
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 241, 232, .09) 0 17%, transparent 17.5%),
    linear-gradient(135deg, #0B3A25, #0F5132);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ph img { transition: transform .6s ease; }
  a:hover > .ph img, .card:hover .ph img, .lead:hover .ph img, .row:hover .ph img { transform: scale(1.035); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { display: contents; }
.chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 2px; font-size: .875rem; color: var(--body);
}
.chips a:hover { border-color: var(--gold); color: var(--gold); }
.chips a[aria-current="page"] { border-color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px;
  background: var(--felt); border: 1px solid var(--felt-lt); color: var(--text);
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.btn:hover { background: #136a41; }

/* ---------- Story patterns ---------- */
.card-title, .row-title, .tx-title { font-family: var(--serif); font-weight: 700; line-height: 1.2; overflow-wrap: break-word; }
.card-title a, .row-title a, .tx-title a, .lead-title a, .guide-title a { background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat; transition: background-size .3s ease; }
.card-title a:hover, .row-title a:hover, .tx-title a:hover, .lead-title a:hover, .guide-title a:hover { background-size: 100% 1px; }

.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-title { font-size: 1.3125rem; }
.card-excerpt { color: var(--muted); font-size: .9375rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: 12px; }

.row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row .ph { aspect-ratio: 4 / 3; }
.row .kicker { margin-bottom: 4px; }
.row-title { font-size: 1.0625rem; }
.row .meta { margin-top: 6px; }

.tx { padding: 20px 0; border-bottom: 1px solid var(--line); }
.tx:first-child { padding-top: 0; }
.tx .kicker { margin-bottom: 6px; }
.tx-title { font-size: 1.375rem; }
.tx-excerpt { color: var(--muted); font-size: .9375rem; margin-top: 6px; max-width: 46rem; }

.lead { display: block; min-width: 0; }
.lead .ph { aspect-ratio: 16 / 9; }
.lead-body { padding-top: 20px; }
.lead-title { font: 800 clamp(1.875rem, 1.2rem + 2.8vw, 3.25rem)/1.08 var(--serif); letter-spacing: -.012em; overflow-wrap: break-word; }
.lead-dek { margin-top: 14px; color: var(--body); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; max-width: 40rem; }

.grid { display: grid; gap: 40px 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-4:has(> :last-child:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.portrait .ph { aspect-ratio: 4 / 5; }
.square .ph { aspect-ratio: 1 / 1; }
@media (max-width: 599px) { .grid-4.portrait, .grid-4.square { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } .grid-4 .card-title { font-size: 1.0625rem; } .grid-4 .card-excerpt { display: none; } }

/* ---------- Homepage ---------- */
.top { display: grid; gap: 32px; padding-top: 28px; padding-bottom: 8px; }
.top-side { border-top: 1px solid var(--line); padding-top: 22px; }
@media (min-width: 900px) {
  .top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 44px; padding-top: 36px; }
  .top-side { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 36px; }
}

.latest { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 900px) { .latest { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 44px; } .latest-solo { grid-template-columns: minmax(0, 1fr); } }
.tx-list .tx:last-child { border-bottom: 0; }
.mr-list { counter-reset: mr; }
.mr-list li { counter-increment: mr; display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 16px 0; border-bottom: 1px solid var(--line); }
.mr-list li::before { content: counter(mr); content: counter(mr) / ""; font: 800 1.75rem/1 var(--serif); color: var(--gold); }
.mr-list a { font: 700 1.0625rem/1.3 var(--serif); }
.mr-list a:hover { color: var(--gold); }

.block { margin-top: 64px; }
.tour { display: grid; gap: 32px; }
.tour-lead .card-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; }
.tour-list .tx:first-child { padding-top: 0; }
@media (min-width: 900px) { .tour { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; } }

.block-gear { margin-top: 72px; padding-block: 56px 64px; background: var(--surface); border-block: 1px solid var(--line); }
.block-gear .card { background: var(--bg); border: 1px solid var(--line); gap: 0; }
.block-gear .card-body { padding: 18px 18px 20px; }
.block-gear .card-title { font-size: 1.1875rem; }
@media (max-width: 599px) { .block-gear .card-body { padding: 14px 12px 16px; } .block-gear .card-title { font-size: 1rem; } }

.chips + .guides { margin-top: 8px; }
.guides { display: grid; gap: 0 56px; counter-reset: guide; }
@media (min-width: 760px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guide { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
/* The numeral is drawn by CSS (not written into the page text) so the <ol> stays the only numbering. */
.guide { counter-increment: guide; }
.guide::before { content: counter(guide); content: counter(guide) / ""; font: 800 2.75rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--gold); }
.guide-title { font: 700 1.3125rem/1.25 var(--serif); }
.guide-excerpt { margin-top: 8px; color: var(--muted); font-size: .9375rem; }

.block-features { margin-top: 72px; padding-block: 56px 64px; background: var(--felt); }
.block-features .rule-head::after {
  background:
    linear-gradient(rgba(244, 241, 232, .28), rgba(244, 241, 232, .28)) left center / calc(100% - 9px) 1px no-repeat,
    radial-gradient(circle, var(--gold) 0 3.6px, transparent 4px) right center / 9px 9px no-repeat;
}
.block-features .rule-head .more, .block-features .meta, .block-features .card-excerpt { color: #D6DDD2; }
.block-features .kicker { color: var(--gold); }
.block-features .lead-dek { color: #EAEEE4; }
.block-features .meta .by { color: var(--text); }
.block-features .ph-none { background: radial-gradient(circle at 50% 50%, rgba(244, 241, 232, .12) 0 17%, transparent 17.5%), #0B3A25; }
.feat { display: grid; gap: 40px; }
.feat-side { display: grid; gap: 32px; align-content: start; }
.lead-feature .lead-title { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); }
@media (min-width: 900px) { .feat { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; } }
@media (min-width: 600px) and (max-width: 899px) { .feat-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Section / list / search ---------- */
.sect-head { padding-block: 48px 36px; }
.sect-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font: 700 .8125rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--felt-lt);
}
.sect-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.sect-title { font: 800 clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem)/1.02 var(--serif); letter-spacing: -.015em; overflow-wrap: break-word; }
.sect-dek { margin-top: 18px; max-width: 40rem; color: var(--muted); font-size: clamp(1.0625rem, 1rem + .25vw, 1.25rem); line-height: 1.5; }
.sect-head .meta { margin-top: 14px; }
.list-lead { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .list-lead .lead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 44px; align-items: center; }
  .list-lead .lead-body { padding-top: 0; }
}

.search { display: flex; gap: 8px; margin-top: 28px; max-width: 40rem; }
.search input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px; color: var(--text); font: 1.125rem var(--sans);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 2px; }
.search button {
  min-height: 52px; padding: 0 24px; background: var(--felt); border: 1px solid var(--felt-lt); border-radius: 2px; color: var(--text);
  font: 700 .8125rem var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.search button:hover { background: #136a41; }
.tx-list-wide .tx-title { font-size: 1.5rem; }

.empty-state { padding: 24px 0 8px; }
.empty-big { font: 700 clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem)/1.2 var(--serif); }
.empty-sub { margin-top: 12px; color: var(--muted); max-width: 40rem; }
.empty-sub a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 2px; font-size: .875rem; font-weight: 600; }
.pager-btn:hover { border-color: var(--gold); color: var(--gold); }
.pager-count { color: var(--muted); font-size: .875rem; }

.nf { padding-block: 64px 96px; }
.nf-code { font: 800 clamp(5rem, 3rem + 12vw, 11rem)/1 var(--serif); color: var(--felt-lt); letter-spacing: -.02em; margin-bottom: 8px; }
.nf-ball {
  display: inline-block; width: .66em; height: .66em; margin: 0 .03em; border-radius: 50%; vertical-align: -.02em;
  background: radial-gradient(circle at 36% 30%, #fff 0 7%, #F4F1E8 8% 55%, #CFC9B8 100%);
}
.nf-actions { margin-top: 28px; }

/* ---------- Article ---------- */
.art-head { padding-top: 44px; }
.art-title { font: 800 clamp(2rem, 1.3rem + 3.2vw, 3.75rem)/1.07 var(--serif); letter-spacing: -.015em; overflow-wrap: break-word; }
.art-dek { margin-top: 20px; color: var(--body); font: 400 clamp(1.125rem, 1.05rem + .45vw, 1.4375rem)/1.45 var(--serif); }
.byline { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.byline .by { color: var(--text); font-weight: 700; }
.event { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 24px; padding: 18px 20px; background: var(--surface); border-left: 3px solid var(--felt-lt); }
.event dt { color: var(--muted); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; }
.event dd { margin-top: 4px; font: 700 1.0625rem/1.3 var(--serif); }

.art-cover { width: 100%; max-width: 1120px; margin: 36px auto 0; padding-inline: var(--gut); }
.art-cover img { width: 100%; height: auto; max-height: 72vh; object-fit: cover; background: var(--surface-2); }
.art-cover figcaption { margin-top: 10px; color: var(--muted); font-size: .8125rem; line-height: 1.45; max-width: 880px; }
.art-cover .credit { color: #8C938E; margin-left: .4em; }
.art-page .art-head { padding-bottom: 8px; }

.prose { max-width: 42rem; padding-top: 36px; font-size: 1.125rem; line-height: 1.75; color: var(--body); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2.2em; font: 800 clamp(1.5rem, 1.3rem + .8vw, 1.9375rem)/1.2 var(--serif); color: var(--text); letter-spacing: -.01em; }
.prose h3 { margin-top: 1.9em; font: 700 1.3125rem/1.3 var(--serif); color: var(--text); }
.prose h4 { margin-top: 1.6em; font: 700 1rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.prose a:hover { color: var(--gold); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { padding-left: .25em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--felt-lt); }
.prose blockquote { padding-left: 1.4rem; border-left: 3px solid var(--felt-lt); font: italic 400 1.4rem/1.45 var(--serif); color: var(--text); }
.prose blockquote p + p { margin-top: .8em; }
.prose hr { border: 0; height: 9px; margin-block: 2.4em; background: linear-gradient(var(--line), var(--line)) left center / calc(100% - 9px) 1px no-repeat, radial-gradient(circle, var(--gold) 0 3.6px, transparent 4px) right center / 9px 9px no-repeat; }
.prose img { height: auto; margin-inline: auto; }
.prose figure { margin-block: 2em; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; border-bottom-color: var(--felt-lt); }
.prose code { padding: .12em .4em; background: var(--surface-2); border-radius: 2px; font: .875em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose pre { overflow-x: auto; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); font-size: .875rem; line-height: 1.6; }
.prose pre code { padding: 0; background: none; }

/* Blocks generated by the core */
[data-note] { padding: 16px 20px 18px; background: var(--surface); border-left: 4px solid var(--felt-lt); font-size: 1rem; line-height: 1.6; }
[data-note]::before { content: "Note"; display: block; margin-bottom: 6px; color: var(--felt-lt); font: 700 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
[data-note] > :first-child { margin-top: 0; }
[data-note="tip"] { border-left-color: var(--gold); }
[data-note="tip"]::before { content: "Tip"; color: var(--gold); }
[data-note="warning"] { border-left-color: #E0A23A; }
[data-note="warning"]::before { content: "Warning"; color: #E0A23A; }
[data-note="danger"] { border-left-color: #E5766B; }
[data-note="danger"]::before { content: "Important"; color: #E5766B; }
[data-toc] { padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; }
[data-toc] ol { list-style: decimal; padding-left: 1.3em; }
[data-toc] li + li { margin-top: .35em; }
[data-faq] details { border-bottom: 1px solid var(--line); }
[data-faq] summary { padding: 16px 0; cursor: pointer; font: 700 1.125rem/1.35 var(--serif); color: var(--text); }
[data-faq] details[open] summary { color: var(--gold); }
[data-faq] details > :not(summary) { padding-bottom: 16px; margin: 0; }
[data-gallery] { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
[data-gallery] img, [data-gallery] figure { margin: 0; }
[data-gallery] img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
[data-embed] { margin-block: 2em; }
[data-embed] iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: var(--surface); }

.art-foot { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.source { color: var(--body); font-size: .9375rem; }
.source a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.art-foot .chips { margin-top: 16px; }
.prevnext { display: grid; gap: 0; margin-top: 40px; }
.prevnext a { display: block; padding: 22px 0; border-top: 1px solid var(--line); }
.prevnext span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; }
.prevnext strong { font: 700 1.1875rem/1.3 var(--serif); }
.prevnext a:hover strong { color: var(--gold); }
@media (min-width: 700px) { .prevnext { grid-template-columns: 1fr 1fr; gap: 32px; } .prevnext a[rel="next"] { text-align: right; } }
.related { padding-top: 8px; }

/* ---------- Footer ---------- */
.foot { margin-top: 96px; background: #050706; border-top: 3px solid var(--felt); }
.foot-in { display: grid; gap: 36px; padding-block: 48px 36px; }
.foot-in .brand-word { font-size: 1.375rem; }
.foot-brand p { margin-top: 16px; max-width: 28rem; color: var(--muted); font-size: .9375rem; }
.foot-col h2 { margin-bottom: 8px; color: var(--muted); font: 700 .6875rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.foot-col a { display: block; padding: 7px 0; font-size: .9375rem; }
.foot-col a:hover { color: var(--gold); }
.foot-base { padding-block: 20px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 2fr 1fr 1fr; gap: 56px; } }

/* =====================================================================
   MOTION
   Vocabulary: every image "opens" in the direction its content is read
   (lead: rises from the bottom, standard cards: top to bottom, players: left to right,
   features: opens from the center); text unveils behind a clipped edge; lines draw.
   Importance sets intensity: lead/features > cards > compact rows > body text (static).
   Only transform, opacity and clip-path are animated. Entrances live in CSS, reveals need
   motion.js (html.rv) so nothing stays hidden if the script fails.
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); --dy: 28px; --t: .85; }
@media (max-width: 599px) { :root { --dy: 14px; --t: .68; } }
.lite { --dy: 14px; --t: .6; }

/* Refined underlines: they draw in from the left and leave toward the right. */
.card-title a, .row-title a, .tx-title a, .lead-title a, .guide-title a { background-position: 100% 100%; transition: background-size .55s var(--ease-out); }
:is(.card, .row, .tx, .lead, .guide):is(:hover, :focus-within) :is(.card-title, .row-title, .tx-title, .lead-title, .guide-title) a { background-position: 0 100%; background-size: 100% 1px; }
.lead-title a { background-size: 0 2px; }
.lead:is(:hover, :focus-within) .lead-title a { background-size: 100% 2px; }
.prose a {
  text-decoration: none; padding-bottom: 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--gold), var(--gold)) 100% 100% / 0 1px no-repeat, linear-gradient(rgba(214, 182, 107, .45), rgba(214, 182, 107, .45)) 0 100% / 100% 1px no-repeat;
  transition: background-size .55s var(--ease-out), color .3s;
}
.prose a:hover, .prose a:focus-visible { background-position: 0 100%, 0 100%; background-size: 100% 1px, 100% 1px; color: var(--gold); }

/* Navigation: underline enters from the left, leaves to the right; active page stays marked. */
.nav-d a::after { transform-origin: 100% 50%; transition: transform .45s var(--ease-out); }
.nav-d a:hover::after, .nav-d a:focus-visible::after, .nav-d a[aria-current="page"]::after { transform: scaleX(1); }
.nav-d a:hover::after, .nav-d a:focus-visible::after { transform-origin: 0 50%; }
.nav-d a { transition: color .3s; }
.nav-d a:not(:hover):not(:focus-visible):not([aria-current]) { color: #D9D6CC; }
.nav-left { display: flex; align-items: center; }
.nav-mark { display: grid; place-items: center; width: 0; overflow: hidden; opacity: 0; margin: 0; transition: width .5s var(--ease-out), margin .5s var(--ease-out), opacity .35s; }
.nav-mark .brand-ball { width: 20px; height: 20px; }
html.scrolled .nav-mark { width: 22px; margin-right: 24px; opacity: 1; }
html.scrolled .navbar { box-shadow: 0 14px 24px -20px #000; }

/* Buttons, chips, pager: a felt-green sweep fills in from the left. */
.chips a, .btn, .search button, .qs button, .pager-btn { position: relative; overflow: hidden; isolation: isolate; transition: color .3s, border-color .3s, transform .2s var(--ease-out); }
.chips a::before, .btn::before, .search button::before, .qs button::before, .pager-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--felt);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease-out);
}
.btn::before, .search button::before, .qs button::before { background: #136a41; }
.chips a:hover::before, .chips a:focus-visible::before, .btn:hover::before, .btn:focus-visible::before,
.search button:hover::before, .search button:focus-visible::before, .qs button:hover::before, .qs button:focus-visible::before,
.pager-btn:hover::before, .pager-btn:focus-visible::before { transform: scaleX(1); transform-origin: 0 50%; }
.chips a:active, .btn:active, .search button:active, .qs button:active, .pager-btn:active { transform: scale(.97); }
.pager-btn span { display: inline-block; transition: transform .45s var(--ease-out); }
.pager-btn[rel="prev"]:hover span { transform: translateX(-5px); }
.pager-btn[rel="next"]:hover span { transform: translateX(5px); }
.lead-media, .card-media, .row-media { display: block; }

/* Image box: scale and parallax come from custom properties, so hover and drift never fight. */
.ph img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--bs, 1)); }
[data-depth] { --bs: 1.08; }
[data-depth] img { transition: none; will-change: transform; }
.art-frame { display: block; overflow: hidden; }
.art-frame img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--bs, 1)); }

/* Search panel and menu panel. */
.qs { display: none; }
.js .qs {
  display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 55; visibility: hidden; opacity: 0;
  background: rgba(17, 22, 20, .98); border-bottom: 1px solid var(--line); clip-path: inset(0 0 100% 0); transform: translateY(-10px);
  transition: clip-path .55s var(--ease-io), transform .55s var(--ease-out), opacity .3s, visibility 0s linear .55s;
}
.js .qs.open { visibility: visible; opacity: 1; clip-path: inset(0 0 -1px 0); transform: none; transition-delay: 0s; }
.qs-in { padding-block: 22px 26px; }
.qs-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.qs-row { display: flex; gap: 8px; max-width: 44rem; }
.qs input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; color: var(--text); font: 1.125rem var(--sans); }
.qs input:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 2px; }
.qs button { min-height: 52px; padding: 0 24px; background: var(--felt); border: 1px solid var(--felt-lt); border-radius: 2px; color: var(--text); font: 700 .8125rem var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
body::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease-out); }
html.qs-open body::after, html.menu-open body::after { opacity: 1; pointer-events: auto; }

.menu.ctl .menu-panel { clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease-io); }
.menu.ctl.is-open .menu-panel { clip-path: inset(0 0 -1px 0); }
.menu.ctl .menu-panel a { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), color .3s; }
.menu.ctl.is-open .menu-panel a { opacity: 1; transform: none; transition-delay: calc(.1s + var(--i, 0) * .05s); }
.menu-panel a:nth-child(2) { --i: 1; } .menu-panel a:nth-child(3) { --i: 2; } .menu-panel a:nth-child(4) { --i: 3; }
.menu-panel a:nth-child(5) { --i: 4; } .menu-panel a:nth-child(6) { --i: 5; } .menu-panel a:nth-child(7) { --i: 6; }
.menu.ctl[open] .menu-bars { box-shadow: 0 6px currentColor, 0 -6px currentColor; transform: none; transition: box-shadow .3s, transform .45s var(--ease-out); }
.menu.ctl[open] .menu-bars::after { display: none; }
.menu.ctl.is-open .menu-bars { box-shadow: 0 0 transparent, 0 0 transparent; transform: rotate(45deg); }
.menu.ctl.is-open .menu-bars::after { display: block; }

/* Header hides on scroll down, returns on scroll up (class set by motion.js). */
html.m .mast, html.m .navbar { transition: transform .6s var(--ease-io), box-shadow .4s; }
@media (max-width: 899px) { html.hdr-hide .mast { transform: translateY(-101%); } }
@media (min-width: 900px) { html.hdr-hide .navbar { transform: translateY(-101%); } }

@media (prefers-reduced-motion: no-preference) {
  @keyframes wipe-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
  @keyframes wipe-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  @keyframes settle { from { transform: translate3d(0, var(--py, 0px), 0) scale(calc(var(--bs, 1) + .14)); } to { transform: translate3d(0, var(--py, 0px), 0) scale(var(--bs, 1)); } }
  @keyframes unveil { from { clip-path: inset(0 0 100% 0); transform: translate3d(0, calc(var(--dy) * .8), 0); } to { clip-path: inset(0 0 -14% 0); transform: none; } }
  @keyframes fade-up { from { opacity: 0; transform: translate3d(0, var(--dy), 0); } to { opacity: 1; transform: none; } }
  @keyframes slide-in { from { opacity: 0; transform: translate3d(calc(var(--dy) * 1.2), 0, 0); } to { opacity: 1; transform: none; } }
  @keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes scan { 0% { transform: scaleX(0); opacity: .9; } 65% { transform: scaleX(1); opacity: .9; } 100% { transform: scaleX(1); opacity: 0; } }
  @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  /* Entrance: lead story on the homepage and the lead of each section page. Cinematic, one sequence. */
  .top-lead .lead-media, .list-lead .lead-media { animation: wipe-up calc(1.15s * var(--t)) var(--ease-io) backwards; }
  .top-lead .lead-media .ph img, .list-lead .lead-media .ph img { animation: settle calc(1.9s * var(--t)) var(--ease-out) backwards; }
  .top-lead .lead .kicker, .list-lead .lead .kicker { animation: fade-up .7s var(--ease-out) calc(.55s * var(--t)) backwards; }
  .top-lead .lead-title, .list-lead .lead-title { animation: unveil calc(1s * var(--t)) var(--ease-out) calc(.5s * var(--t)) backwards; }
  .top-lead .lead-dek, .list-lead .lead-dek { animation: fade-up .8s var(--ease-out) calc(.85s * var(--t)) backwards; }
  .top-lead .lead .meta, .list-lead .lead .meta { animation: fade-up .8s var(--ease-out) calc(1s * var(--t)) backwards; }
  .top-lead .lead-body, .list-lead .lead-body { position: relative; }
  .top-lead .lead-body::before, .list-lead .lead-body::before {
    content: ""; position: absolute; left: 0; top: 8px; width: 56px; height: 2px; background: var(--gold); transform-origin: 0 50%;
    animation: draw-x .9s var(--ease-io) calc(.45s * var(--t)) backwards;
  }
  .top-side .row { animation: slide-in .9s var(--ease-out) calc(.75s * var(--t) + var(--i, 0) * .09s) backwards; }
  .top-side .row .ph { animation: wipe-right .9s var(--ease-io) calc(.85s * var(--t) + var(--i, 0) * .09s) backwards; }
  .top-side .row:nth-child(2) { --i: 1; } .top-side .row:nth-child(3) { --i: 2; } .top-side .row:nth-child(4) { --i: 3; }

  /* Entrance: section/search/404 headers and article head. */
  .sect-head > * { animation: fade-up .8s var(--ease-out) backwards; }
  .sect-head > .sect-eyebrow { animation-delay: .05s; }
  .sect-head > .sect-title { animation: unveil 1s var(--ease-out) .12s backwards; }
  .sect-head > .sect-dek { animation-delay: .3s; } .sect-head > .meta { animation-delay: .38s; }
  .sect-head > .search, .sect-head > .chips { animation-delay: .45s; }
  .art-head > * { animation: fade-up .8s var(--ease-out) backwards; }
  .art-head > .kicker { animation-delay: .05s; }
  .art-head > .art-title { animation: unveil 1s var(--ease-out) .12s backwards; }
  .art-head > .art-dek { animation-delay: .35s; } .art-head > .byline { animation-delay: .45s; } .art-head > .event { animation-delay: .55s; }
  .art-frame { animation: wipe-up calc(1.2s * var(--t)) var(--ease-io) .35s backwards; }
  .art-frame img { animation: settle calc(1.8s * var(--t)) var(--ease-out) .35s backwards; }
  .art-cover figcaption { animation: fade-up .9s var(--ease-out) 1.1s backwards; }
  .nf-code, .nf .sect-title, .nf .sect-dek { animation: fade-up .9s var(--ease-out) backwards; }

  /* Reading progress: scroll-driven, no script, only where the browser supports it. */
  @supports (animation-timeline: scroll()) {
    .progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 2px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root block); }
  }

  /* Scroll reveals (motion.js sets data-r per content type, html.rv when ready). */
  .rv [data-r] { --d: 0ms; }
  .rv [data-r]:not([data-r="line"]):not([data-r="band"]) { opacity: 0; transition: opacity .9s var(--ease-out) var(--d), transform 1.1s var(--ease-out) var(--d); }
  .rv [data-r].in:not([data-r="line"]):not([data-r="band"]) { opacity: 1; transform: none; }
  .rv [data-r="rise"], .rv [data-r="unveil"] { transform: translate3d(0, var(--dy), 0); }
  .rv [data-r="deal"] { transform: translate3d(0, calc(var(--dy) * 1.5), 0) scale(.97); }
  .rv [data-r="slide"] { transform: translate3d(calc(var(--dy) * .6), 0, 0); }
  .rv [data-r="guide"] { transform: translate3d(0, calc(var(--dy) * .6), 0); }
  .rv [data-r="cine"] { transform: translate3d(0, calc(var(--dy) * 1.4), 0); }
  .rv [data-r="rise"] .ph { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-io) calc(var(--d) + .12s); }
  .rv [data-r="unveil"] .ph { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-io) calc(var(--d) + .12s); }
  .rv [data-r="cine"] .ph { clip-path: inset(9% 6%); transition: clip-path 1.7s var(--ease-io) calc(var(--d) + .1s); }
  .rv [data-r="rise"].in .ph, .rv [data-r="unveil"].in .ph, .rv [data-r="cine"].in .ph { clip-path: inset(0); }
  .rv [data-r="cine"].in .ph img { animation: settle 2s var(--ease-out) backwards; }
  .rv [data-r="cine"] .lead-body { opacity: 0; transform: translate3d(0, var(--dy), 0); transition: opacity .9s var(--ease-out) .5s, transform 1.1s var(--ease-out) .5s; }
  .rv [data-r="cine"].in .lead-body { opacity: 1; transform: none; }
  .rv [data-r="line"]::after { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease-io) .15s; }
  .rv [data-r="line"].in::after { clip-path: inset(0); }
  .rv [data-r="line"] > span, .rv [data-r="line"] > a:first-child > span { display: inline-block; clip-path: inset(0 0 100% 0); transform: translate3d(0, 70%, 0); transition: clip-path .8s var(--ease-out), transform .9s var(--ease-out), color .3s; }
  .rv [data-r="line"].in > span, .rv [data-r="line"].in > a:first-child > span { clip-path: inset(0 0 -20% 0); transform: none; }
  .rv [data-r="line"] .more { opacity: 0; transition: opacity .8s .55s, color .3s; }
  .rv [data-r="line"].in .more { opacity: 1; }
  .rv .block-features { background: none; position: relative; isolation: isolate; }
  .rv .block-features::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--felt); clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease-io); }
  .rv .block-features.in::before { clip-path: inset(0); }
  .guide { position: relative; }
  .rv .guide::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold); opacity: 0; transform: scaleX(0); transform-origin: 0 50%; }
  .rv .guide.in::after { animation: scan 1.5s var(--ease-io) calc(var(--d) + .15s) both; }

  /* Lower-powered and small screens: same story, fewer moving parts (no masks, no depth). */
  .lite .rv [data-r] .ph, .lite.rv [data-r] .ph { clip-path: none !important; transition: none !important; }
  .lite .top-lead .lead-media, .lite .list-lead .lead-media, .lite .art-frame { animation: none; }
  .lite .top-lead .lead-media .ph img, .lite .list-lead .lead-media .ph img, .lite .art-frame img { animation: none; }
  @media (max-width: 599px) {
    .rv [data-r="cine"] .ph { clip-path: inset(4% 3%); }
    .top-lead .lead-media .ph img, .list-lead .lead-media .ph img, .art-frame img { animation-duration: 1.2s; }
  }
}

/* Hover and focus: only on devices that can hover. Each pattern matches the content's weight. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ph img { transition: transform 1.1s var(--ease-out), clip-path .7s var(--ease-out); }
  .card:is(:hover, :focus-within) .ph:not([data-depth]) img { --bs: 1.07; clip-path: inset(10px); }
  .row:is(:hover, :focus-within) .ph img { --bs: 1.09; }
  .lead:is(:hover, :focus-within) .ph:not([data-depth]) img { --bs: 1.035; clip-path: inset(14px); }
  .card-title { transition: transform .6s var(--ease-out); }
  .card:is(:hover, :focus-within) .card-title { transform: translate3d(5px, 0, 0); }
  .card .meta { display: flex; align-items: center; }
  .card .meta::after {
    content: "Read story \2192"; content: "Read story \2192" / ""; margin-left: auto; color: var(--gold); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
    opacity: 0; transform: translate3d(-10px, 0, 0); transition: opacity .4s, transform .6s var(--ease-out);
  }
  .card:is(:hover, :focus-within) .meta::after { opacity: 1; transform: none; }
  .card .meta time, .row .meta time { transition: color .3s; }
  .card:is(:hover, :focus-within) .meta time, .row:is(:hover, :focus-within) .meta time { color: var(--body); }
  .tx { position: relative; }
  .tx-main { transition: transform .6s var(--ease-out); }
  .tx::before { content: ""; position: absolute; left: -14px; top: 1.9em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0; transform: scale(0); transition: opacity .3s, transform .5s var(--ease-out); }
  .tx:is(:hover, :focus-within) .tx-main { transform: translate3d(8px, 0, 0); }
  .tx:is(:hover, :focus-within)::before { opacity: 1; transform: none; }
  .guide::before { transition: color .5s, -webkit-text-stroke-color .5s; }
  .guide:is(:hover, :focus-within)::before { color: rgba(214, 182, 107, .22); }
  .mr-list li { transition: transform .5s var(--ease-out); }
  .mr-list li:hover { transform: translate3d(6px, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
