/* 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; } }

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