/* КҮРӨШ v2 — «табло». Square corners, dense tables, black masthead, one accent.
   Token names match v1 so existing components keep working while pages move over. */
:root {
  --bg: #f4f1ea; --surface: #fffdf8; --sunken: #e9e4d8; --row-alt: #f9f7f1;
  --ink: #141210; --ink-2: #4f4a43; --ink-3: #807a6f;
  --line: #ddd6c8; --line-2: #c4bba9;
  --red: #c8102e; --red-tint: rgba(200, 16, 46, .07);
  --win: #157347; --loss: #5c5650;
  --gold: #d29b12; --silver: #a2a7ad; --bronze: #b0693a;
  --night: #0e0d0b; --night-2: #1b1916; --night-line: #2c2924; --night-ink: #f3eee4; --night-ink-2: #a39b8d;
  --f-body: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-disp: "Fira Sans Extra Condensed", "Fira Sans", system-ui, sans-serif;
  --head-h: 52px; --nav-h: 58px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #12110f; --surface: #191714; --sunken: #23201c; --row-alt: #161412;
  --ink: #f1ece2; --ink-2: #b1a99b; --ink-3: #7f776b;
  --line: #2b2823; --line-2: #3d3830;
  --red: #ff4f5e; --red-tint: rgba(255, 79, 94, .09);
  --win: #45c08a; --loss: #9a9184;
  --gold: #e6b83a; --silver: #b8bdc3; --bronze: #cf8650;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110f; --surface: #191714; --sunken: #23201c; --row-alt: #161412;
    --ink: #f1ece2; --ink-2: #b1a99b; --ink-3: #7f776b;
    --line: #2b2823; --line-2: #3d3830;
    --red: #ff4f5e; --red-tint: rgba(255, 79, 94, .09);
    --win: #45c08a; --loss: #9a9184;
    --gold: #e6b83a; --silver: #b8bdc3; --bronze: #cf8650;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--f-body); -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
h1, h2, h3, p, ol, ul, table { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header + nav: black in both themes */
.head { position: sticky; top: 0; z-index: 40; background: var(--night); color: var(--night-ink); }
.head .wrap { display: flex; align-items: center; gap: 10px; height: var(--head-h); }
.logo { display: inline-flex; align-items: center; font: 800 25px/1 var(--f-disp); letter-spacing: .01em; color: var(--night-ink); }
.logo:hover { color: var(--night-ink); }
.logo img { width: .74em; height: .74em; margin: 0 .03em; }
.head-ctl { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.h-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--night-line); background: transparent; color: var(--night-ink); font: 600 13.5px/1 var(--f-body); cursor: pointer; }
.h-btn:hover { border-color: var(--night-ink-2); color: var(--night-ink); }
.h-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-btn.heart svg { fill: var(--red); stroke: none; }
.h-btn.icon { width: 36px; padding: 0; justify-content: center; }
.h-btn .sun { display: none; }
:root[data-theme="dark"] .h-btn .sun { display: block; } :root[data-theme="dark"] .h-btn .moon { display: none; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--night); border-top: 1px solid var(--night-line); padding-bottom: env(safe-area-inset-bottom); }
.nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; margin: 0 auto; }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: var(--nav-h); color: var(--night-ink-2); font: 600 11px/1 var(--f-body); letter-spacing: .02em; text-transform: uppercase; }
.nav a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { color: var(--night-ink); }
.nav a[aria-current="page"] { color: var(--night-ink); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; background: var(--red); }

/* Masthead: the page's main fact, big, on black. No lede. */
.mast { background: var(--night); color: var(--night-ink); border-top: 1px solid var(--night-line); }
.mast .wrap { padding-top: 18px; padding-bottom: 20px; display: grid; gap: 12px; }
.mast a:hover { color: var(--night-ink); }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 600 12px/1.2 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--night-ink-2); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; }
.tag.live { background: var(--red); border-color: var(--red); color: #fff; }
.tag.done { color: var(--night-ink-2); }
.tag.light { color: var(--ink-3); }
.mast-title { font: 800 clamp(44px, 13vw, 104px)/.86 var(--f-disp); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.mast-title a { display: block; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--night-line); }
.stats > div { display: grid; gap: 4px; padding: 12px 10px 0 0; }
.stats > div + div { padding-left: 12px; border-left: 1px solid var(--night-line); }
.stats b { font: 800 46px/.9 var(--f-disp); font-variant-numeric: tabular-nums; }
.stats > div > span { display: flex; align-items: center; gap: 6px; font: 600 11.5px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--night-ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--night-ink-2); }
.facts b { color: var(--night-ink); font-weight: 600; }
.eyebrow > span, .eyebrow > a, .seg button { white-space: nowrap; }
.tbl .opp { white-space: normal; display: inline; }
.tbl .opp .flag { margin-right: 5px; vertical-align: -1px; }
/* Earlier bouts with the same opponent, under their name. */
.tbl .h2h { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--ink-3); white-space: normal; }
.tbl .h2h a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mast-go { display: inline-flex; align-items: center; justify-self: start; height: 40px; padding: 0 14px; background: var(--night-ink); color: var(--night); font: 700 13px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.mast-go:hover { background: #fff; color: var(--night) !important; }

/* Tale of the tape (next bout) */
.tape { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; padding-top: 4px; }
.tape .side { display: grid; gap: 6px; min-width: 0; }
.tape .side.r { text-align: right; justify-items: end; }
.tape .nm { font: 800 clamp(23px, 7vw, 64px)/.9 var(--f-disp); text-transform: uppercase; }
.tape .nm.dim { font-size: clamp(15px, 3.5vw, 26px); line-height: 1.1; color: var(--ink-3); }
.tape .cty { display: flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--night-ink-2); }
.tape .vs { font: 700 15px/1 var(--f-disp); color: var(--night-ink-2); padding-bottom: 4px; }
.tape .side.kgz .nm { color: #fff; }
.tape .side.kgz .cty { color: #fff; }
.clock { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--night-line); }
.clock .cd { font: 800 44px/.9 var(--f-disp); font-variant-numeric: tabular-nums; }
.clock .cd span { color: var(--night-ink-2); font-weight: 600; }
.clock .meta { font-size: 14px; color: var(--night-ink-2); }
.clock .meta b { color: var(--night-ink); font-weight: 600; }

/* Section band */
.sec { margin-top: 22px; }
.band { display: flex; align-items: baseline; gap: 10px; padding: 0 0 7px; border-bottom: 2px solid var(--ink); }
/* «Өткөн күндөр» on the schedule: the days before today, folded. */
.past { margin-top: 22px; border: 1px solid var(--line-2); }
.past > summary { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font: 700 15px/1.1 var(--f-disp); letter-spacing: .02em; text-transform: uppercase; }
.past > summary::-webkit-details-marker { display: none; }
.past > summary::after { content: "+"; margin-left: auto; font: 600 18px/1 var(--f-body); color: var(--ink-3); }
.past[open] > summary::after { content: "−"; }
.past > summary .sub { font: 500 13px/1 var(--f-body); color: var(--ink-3); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.past[open] { padding: 0 14px 14px; }
.past[open] > summary { margin: 0 -14px; }
.band h2 { font: 700 19px/1.1 var(--f-disp); letter-spacing: .02em; text-transform: uppercase; }
.band .sub { font: 500 13px/1 var(--f-body); color: var(--ink-3); white-space: nowrap; }
.band .more { margin-left: auto; font: 600 13px/1 var(--f-body); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; white-space: nowrap; }
.band .more:hover { color: var(--red); }
.seg { margin-left: auto; display: flex; border: 1px solid var(--line-2); }
.seg button { height: 26px; padding: 0 9px; border: 0; background: transparent; font: 600 12px/1 var(--f-body); color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Dense table */
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { padding: 7px 6px; font: 600 10.5px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); text-align: left; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; line-height: 1.3; }
.tbl tbody tr:nth-child(even) td { background: var(--row-alt); }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl tbody tr:nth-child(even) td:first-child { box-shadow: -14px 0 0 var(--row-alt); }
.tbl tbody tr:nth-child(even) td:last-child { box-shadow: 14px 0 0 var(--row-alt); }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tbl .n { width: 26px; font: 700 17px/1 var(--f-disp); color: var(--ink-3); }
.tbl .t { width: 50px; font: 700 16px/1 var(--f-disp); }
.tbl .t small { display: block; font: 500 10.5px/1.2 var(--f-body); color: var(--ink-3); margin-top: 2px; }
.tbl .pt { font: 700 17px/1 var(--f-disp); }
.tbl .mc { width: 26px; text-align: center; font: 600 14px/1 var(--f-body); }
.tbl .mc.z { color: var(--ink-3); }
.tbl a.nm, .tbl .nm { font-weight: 600; }
.tbl a.nm:hover { color: var(--red); }
.tbl .sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.tbl .sub b { color: var(--ink-2); font-weight: 600; }
.tbl .opp { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.tbl tr.kgz td { background: var(--red-tint) !important; box-shadow: none !important; }
.tbl tr.kgz td:first-child { box-shadow: inset 3px 0 0 var(--red) !important; padding-left: 8px; }
.tbl tr.next td { background: var(--sunken) !important; box-shadow: none !important; }
.tbl tr.next td:first-child { box-shadow: -14px 0 0 var(--sunken) !important; }
.tbl tr.next td:last-child { box-shadow: 14px 0 0 var(--sunken) !important; }
.tbl tr.done .t { color: var(--ink-3); }

/* Result: W/L square + score */
.res { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 600 14px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.wl { display: inline-grid; place-items: center; width: 20px; height: 20px; font: 700 11.5px/1 var(--f-body); color: #fff; }
.wl.w { background: var(--win); } .wl.l { background: var(--loss); }
.res small { white-space: nowrap; display: block; font: 500 11px/1.2 var(--f-body); color: var(--ink-3); text-align: right; margin-top: 3px; }
.res-wrap { display: inline-grid; justify-items: end; }
.when { font: 600 12.5px/1.2 var(--f-body); color: var(--ink-2); white-space: nowrap; text-align: right; }

.coin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; vertical-align: -2px; }
.coin.g { background: var(--gold); } .coin.s { background: var(--silver); } .coin.b { background: var(--bronze); }
.coin.lg { width: 18px; height: 18px; }
.flag { display: inline-block; width: 18px; height: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }

/* Calendar rows */
.cal td.d { width: 64px; vertical-align: top; padding-top: 11px; }
.cal td.when { vertical-align: top; padding-top: 12px; }
.cal .dt { display: grid; gap: 1px; }
.cal .dt b { font: 800 22px/.9 var(--f-disp); font-variant-numeric: tabular-nums; }
.cal .dt b.m { font-size: 15px; line-height: 1.1; } /* a month instead of days (dates not known yet) */
.cal .dt span { font: 600 10.5px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.cal .ttl { font: 700 17px/1.1 var(--f-disp); text-transform: uppercase; letter-spacing: .01em; }
.first { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line-2); }
.first .lbl { font: 600 11px/1.2 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.first ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 12px; margin-top: 5px; font-size: 13px; }
.first li b { display: inline-block; min-width: 26px; font: 700 14px/1 var(--f-disp); color: var(--ink-2); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 11px 12px; background: var(--ink); color: var(--bg); font: 700 13px/1.2 var(--f-body); letter-spacing: .05em; text-transform: uppercase; }
.cta:hover { color: var(--bg); background: var(--red); }
.cta span { white-space: nowrap; font: 500 12.5px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; opacity: .75; }

/* Footer: one row + one line */
.foot { margin-top: 36px; padding-top: 12px; padding-bottom: 20px; border-top: 2px solid var(--ink); }
.foot-row { display: flex; align-items: center; gap: 6px; }
.share { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; padding: 0; }
.share:hover { border-color: var(--ink); }
.share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share svg.f { fill: currentColor; stroke: none; }
.report { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); background: transparent; font: 600 13px/1 var(--f-body); cursor: pointer; white-space: nowrap; }
.report:hover { border-color: var(--ink); }
.fine { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.fine > * + *::before { content: " · "; }
.fine a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); }

.sample { display: flex; gap: 8px; align-items: baseline; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.sample b { padding: 2px 5px; background: #ffcc00; color: #141210; font: 700 10px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }

/* Desktop */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .wrap { padding: 0 24px; }
  :root { --head-h: 56px; }
  .nav { position: static; background: none; border: 0; padding: 0; margin-left: 18px; align-self: stretch; }
  .nav ul { display: flex; height: 100%; max-width: none; }
  .nav a { flex-direction: row; height: 100%; padding: 0 12px; font-size: 12.5px; letter-spacing: .07em; }
  .nav a svg { display: none; }
  .nav a[aria-current="page"]::before { top: auto; bottom: 0; left: 12px; right: 12px; }
  .mast .wrap { padding-top: 26px; padding-bottom: 28px; gap: 16px; }
  .mast-row { display: grid; gap: 18px; max-width: 640px; }
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats b { font-size: 56px; }
  .grid.home { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .grid.home > .colB { display: grid; align-content: start; }
  .tbl td { padding: 9px 8px; }
  .tbl tbody tr:nth-child(even) td:first-child, .tbl tbody tr:nth-child(even) td:last-child { box-shadow: none; }
  .tbl tr.next td:first-child, .tbl tr.next td:last-child { box-shadow: none !important; }
  .foot { display: flex; align-items: center; gap: 24px; }
  .fine { margin: 0 0 0 auto; text-align: right; }
  .report { margin-left: 8px; }
}
@media (max-width: 899px) { .stats.five > div:nth-child(n+4) { display: none; } }
@media (min-width: 900px) { .facts .m-only { display: none; } .mast-title { font-size: clamp(64px, 8vw, 104px); } }
@media (max-width: 374px) { .stats b { font-size: 40px; } .h-btn.heart span { display: none; } }

/* Photo in the masthead (Wikimedia Commons, credited). B/W, fades into the black. */
.mast { position: relative; overflow: hidden; }
.mast .wrap { position: relative; z-index: 1; }
.mast-photo { position: absolute; top: 0; right: 0; bottom: 0; width: min(62%, 560px); margin: 0; pointer-events: none; }
.mast-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: contrast(1.05) brightness(.85); opacity: .5;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 55%), linear-gradient(to top, transparent 0, #000 40%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 55%), linear-gradient(to top, transparent 0, #000 40%); mask-composite: intersect; }
.mast-photo figcaption { position: absolute; right: 8px; bottom: 6px; font: 400 9.5px/1.2 var(--f-body); color: rgba(243,238,228,.55); pointer-events: auto; }
.mast-photo figcaption a { text-decoration: underline; }
.photo-of { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--night-ink-2); }
@media (min-width: 900px) { .mast-photo { width: min(48%, 640px); } .mast-photo img { opacity: .85; } .mast-title { max-width: 12ch; } }
.mast-photo.left { right: auto; left: 0; width: min(58%, 520px); }
.mast-photo.left img { object-position: 40% 15%; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 55%), linear-gradient(to top, transparent 0, #000 45%); mask-image: linear-gradient(to left, transparent 0, #000 55%), linear-gradient(to top, transparent 0, #000 45%); }
.mast-photo.left figcaption { right: auto; left: 8px; }
@media (min-width: 900px) { .mast-photo.left { width: min(40%, 560px); } }
.mast:has(.mast-photo) .wrap { padding-bottom: 26px; }

/* Wrestler page */
.mast.wr .mast-title { font-size: clamp(38px, 12.2vw, 112px); overflow-wrap: anywhere; }
.mast-photo.w { width: min(64%, 520px); }
.mast-photo.w img { object-position: 50% 22%; opacity: .62; }
.mast-kg { position: absolute; right: -6px; bottom: -.14em; font: 800 clamp(150px, 48vw, 360px)/.8 var(--f-disp); color: transparent; -webkit-text-stroke: 1.5px var(--night-line); letter-spacing: -.03em; pointer-events: none; font-variant-numeric: tabular-nums; }
.stats.wr4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 520px; }
.stats.wr4 > div:last-child b { color: #fff; }
.rec .yr { width: 52px; font: 700 16px/1 var(--f-disp); }
.rec tr.nc .nm, .rec tr.nc .yr { color: var(--ink-3); font-weight: 500; }
.rec tr:not(.nc) td:first-child { box-shadow: inset 3px 0 0 var(--ink) !important; padding-left: 8px; }
.med { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.rd { width: 74px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.legend { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.legend .sw { width: 3px; height: 14px; background: var(--ink); }
.split { display: grid; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.split li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.split b { font: 700 15px/1 var(--f-disp); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .mast.wr .wrap { padding-top: 34px; padding-bottom: 34px; } .mast-photo.w { width: min(44%, 560px); } .mast-photo.w img { opacity: .8; } .mast-kg { right: 24px; } }

/* Photo credit under the name: small but readable, low-key */
.credit { font: 400 10.5px/1.3 var(--f-body); color: rgba(243,238,228,.42); letter-spacing: .01em; margin-top: -4px; }
.credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(243,238,228,.25); text-underline-offset: 2px; }
.credit a:hover { color: var(--night-ink-2); }
.mast-photo.w figcaption { display: none; }
.photo-credit { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.photo-credit a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }

/* No-photo fallback: the mat seen from above + weight + style word. Geometry is the same; the style changes the cut and the accent ring. */
.mast-fb { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mast-fb .mat { position: absolute; width: 150%; max-width: 760px; aspect-ratio: 1; right: -48%; top: 50%; transform: translateY(-50%); }
.mat circle, .mat path { fill: none; stroke: var(--night-line); stroke-width: 1.4; }
.mat .pz { stroke-width: 22; stroke: #1d1b17; }
.mat.freestyle .pz { stroke: #2a2111; }
.mat.greco .pz { stroke: #2b1416; }
.mat.womens .pz { stroke: #13212a; }
.mast-fb.greco .mat { right: -70%; top: 20%; }
.mast-fb.womens .mat { right: -30%; top: 85%; }
.fb-kg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 800 clamp(120px, 36vw, 300px)/.8 var(--f-disp); color: transparent; -webkit-text-stroke: 1.5px #3a362f; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fb-word { white-space: nowrap; position: absolute; right: 16px; bottom: 12px; font: 800 13px/1 var(--f-disp); letter-spacing: .3em; color: #3a362f; }
.mast:has(.mast-fb) .mast-kg { display: none; }
@media (min-width: 900px) { .mast-fb .mat { right: -8%; width: 70%; } .mast-fb.greco .mat { right: -18%; top: 30%; } .mast-fb.womens .mat { right: 2%; top: 78%; } .fb-kg { right: 40px; } .fb-word { right: 44px; bottom: 18px; } }
.mat path { display: none; }

.mast .wrap { grid-template-columns: minmax(0, 1fr); }
.mast .wrap > * { min-width: 0; }

/* Masthead motion: rolling digits, photo push-in on scroll */
.reel { display: inline-block; font: inherit; height: .9em; line-height: .9; overflow: hidden; vertical-align: top; font-style: normal; }
.reel > em { display: flex; flex-direction: column; font: inherit; font-style: normal; transition: transform 1.1s cubic-bezier(.2,.75,.2,1); }
.reel > em > i { display: block; font-style: normal; height: .9em; line-height: .9; }
.mast-photo img { transform-origin: 70% 30%; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .reel > span { transition: none; } }

/* Fallback: weight + style word only, no mat rings */
.mast-fb .mat { display: none; }

/* Tabs (tournament page) */
.tabs { position: sticky; top: var(--head-h); z-index: 30; background: var(--night); border-top: 1px solid var(--night-line); }
.tabs ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: flex; align-items: center; height: 44px; padding: 0 12px; font: 600 12.5px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--night-ink-2); white-space: nowrap; }
.tabs a:hover { color: var(--night-ink); }
.tabs a[aria-selected="true"] { color: var(--night-ink); }
.tabs a[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--red); }
.tabs li:first-child a { padding-left: 0; } .tabs li:first-child a::after { left: 0; }
/* Chips: square */
.chips { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 10px -14px 0; padding: 0 14px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); background: transparent; font: 600 12.5px/1 var(--f-body); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chips button small { font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips button[aria-pressed="true"] small { color: inherit; opacity: .7; }
.chips button.kg { box-shadow: inset 0 -3px 0 var(--red); }
/* Bracket: rounds as compact match tables */
.rounds { display: grid; gap: 0 20px; grid-template-columns: minmax(0, 1fr); }
.rnd h3 { margin-top: 16px; padding-bottom: 5px; border-bottom: 1px solid var(--line-2); font: 600 10.5px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.mt { border-bottom: 1px solid var(--line); padding: 4px 0; }
.mt .sd { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 26px; font-size: 13.5px; color: var(--ink-3); }
.mt .sd.w { color: var(--ink); font-weight: 600; }
.mt .sd .sc { font: 700 15px/1 var(--f-disp); font-variant-numeric: tabular-nums; }
.mt .sd.kgz { color: var(--red); }
.mt .sd .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt .how { font-size: 11px; color: var(--ink-3); padding-left: 28px; }
/* Support */
.pay { display: grid; gap: 16px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.pay img { width: 200px; background: #fff; padding: 8px; box-shadow: 0 0 0 1px var(--line-2); }
.pay .num { font: 800 34px/1 var(--f-disp); font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 16px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 700 13px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* P4P builder */
.p4p-ctl { display: grid; gap: 10px; margin-top: 12px; }
.p4p-ctl .lbl { font: 600 10.5px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.p4p-ctl .line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.p4p-ctl .seg { margin-left: 0; }
.p4p-ctl .seg button { height: 32px; padding: 0 12px; font-size: 13px; }
.ptbl td input { width: 52px; height: 30px; padding: 0 4px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--f-body); text-align: right; font-variant-numeric: tabular-nums; }
.ptbl td input:disabled { opacity: .35; }
.ptbl input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); }
.step { display: inline-flex; border: 1px solid var(--line-2); }
.step button { width: 32px; height: 32px; border: 0; background: transparent; font: 700 16px/1 var(--f-body); cursor: pointer; }
.step b { display: grid; place-items: center; min-width: 36px; font: 700 17px/1 var(--f-disp); border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.mv { font: 600 12px/1 var(--f-body); white-space: nowrap; }
.mv.up { color: var(--win); } .mv.dn { color: var(--red); }
.bar { display: flex; height: 4px; margin-top: 5px; max-width: 220px; }
.bar i { display: block; height: 100%; }
.bar i.OG { background: var(--red); } .bar i.WC { background: var(--ink); } .bar i.WCUP { background: var(--ink-3); } .bar i.AG { background: #2f6f8f; } .bar i.AC { background: #8fb4c4; } .bar i.RS { background: var(--line-2); }
.key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.key span { display: inline-flex; align-items: center; gap: 5px; } .key i { width: 10px; height: 4px; }
.note-line { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
@media (min-width: 900px) {
  .tabs li:first-child a { padding-left: 12px; } .tabs li:first-child a::after { left: 12px; }
  .chips { margin: 10px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .rounds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pay { grid-template-columns: auto 1fr; gap: 28px; }
  .grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .narrow { max-width: 820px; }
}

/* Results grouped by wrestler */
.res-g tbody.grp tr td { background: none !important; box-shadow: none !important; }
.res-g tr.gh td { padding-top: 12px; border-bottom: 1px solid var(--line-2); }
.res-g tbody.grp:first-of-type tr.gh td { padding-top: 6px; }
.res-g tr.gb td { padding-top: 5px; padding-bottom: 5px; font-size: 13.5px; }
.res-g tr.gb:last-child td { border-bottom: 2px solid var(--line-2); }
.rd2 { display: inline-block; min-width: 86px; margin-right: 6px; font-size: 12.5px; color: var(--ink-3); }
/* Slim masthead for list pages: one line, no stat block */
.mast.slim .wrap { padding-top: 14px; padding-bottom: 14px; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.mast.slim .mast-title { font-size: 40px !important; max-width: none; }
.mast.slim .facts { font-size: 13.5px; }
@media (min-width: 900px) { .mast.slim .wrap { padding-top: 18px; padding-bottom: 18px; } .mast.slim .mast-title { font-size: 52px !important; } }
/* P4P bars: one ink ramp, no extra hues */
.bar i.OG { background: var(--ink); } .bar i.WC { background: color-mix(in srgb, var(--ink) 72%, transparent); } .bar i.WCUP { background: color-mix(in srgb, var(--ink) 52%, transparent); }
.bar i.AG { background: color-mix(in srgb, var(--ink) 36%, transparent); } .bar i.AC { background: color-mix(in srgb, var(--ink) 22%, transparent); } .bar i.RS { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.bar i + i { margin-left: 1px; }
.key i.OG { background: var(--ink); } .key i.WC { background: color-mix(in srgb, var(--ink) 72%, transparent); } .key i.WCUP { background: color-mix(in srgb, var(--ink) 52%, transparent); }
.key i.AG { background: color-mix(in srgb, var(--ink) 36%, transparent); } .key i.AC { background: color-mix(in srgb, var(--ink) 22%, transparent); } .key i.RS { background: color-mix(in srgb, var(--ink) 12%, transparent); }

/* Bracket v2: Kyrgyz path + real tree with connectors (final on the right) */
.brk .band .seg { margin-left: auto; }
.kpath { position: relative; margin-top: 14px; padding-left: 18px; }
.kpath::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 14px; width: 2px; background: var(--red); }
.kpath li { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kpath li::before { content: ""; position: absolute; left: -18px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--red); }
.kpath li.w::before { background: var(--red); }
.kpath .rd { font-size: 12.5px; color: var(--ink-3); }
.kpath .op { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.kpath .op span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpath .sc { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--f-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpath .sc small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.kpath li.end { grid-template-columns: auto 1fr; border-bottom: 0; font: 700 16px/1 var(--f-disp); text-transform: uppercase; letter-spacing: .02em; }
.kpath li.end::before { background: var(--red); }
.tree-scroll { overflow-x: auto; margin: 14px -14px 0; padding: 4px 14px 10px; }
.tree { display: inline-flex; min-width: max-content; }
.bn { display: flex; align-items: center; }
.kids { display: flex; flex-direction: column; justify-content: center; }
.kids > .bn { position: relative; padding: 4px 16px 4px 0; }
.kids > .bn::after { content: ""; position: absolute; right: 0; top: 50%; width: 16px; border-top: 1px solid var(--line-2); }
.kids > .bn:first-child:not(:only-child)::before { content: ""; position: absolute; right: 0; top: 50%; bottom: 0; border-right: 1px solid var(--line-2); }
.kids > .bn:last-child:not(:only-child)::before { content: ""; position: absolute; right: 0; top: 0; bottom: 50%; border-right: 1px solid var(--line-2); }
.kids > .bn.k::after, .kids > .bn.k::before { border-color: var(--red) !important; border-width: 2px !important; }
.me { position: relative; padding-left: 16px; }
.me.leaf { padding-left: 0; }
.kids + .me::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; border-top: 1px solid var(--line-2); }
.bn:has(> .kids > .bn.k) > .me::before { border-top: 2px solid var(--red); }
.bx { width: 176px; border: 1px solid var(--line-2); background: var(--surface); }
.bx.kb { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.bx .rl { display: block; padding: 3px 8px; font: 600 10px/1.2 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.bx .s { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; align-items: center; height: 25px; padding: 0 8px; font-size: 12.5px; color: var(--ink-3); }
.bx .s + .s { border-top: 1px solid var(--line); }
.bx .s.w { color: var(--ink); font-weight: 600; }
.bx .s.k .n { color: var(--red); font-weight: 700; }
.bx .s .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx .s b { font: 700 14px/1 var(--f-disp); font-variant-numeric: tabular-nums; }
.bx .nf { width: 18px; }
.brh { margin-top: 18px; padding-bottom: 5px; border-bottom: 1px solid var(--line-2); font: 600 10.5px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.bxs { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; margin-top: 8px; }
.bxs .bx { width: auto; }
@media (min-width: 900px) { .tree-scroll { margin: 14px 0 0; padding: 4px 0 10px; } .bx { width: 190px; } }

/* ---------- Site parts the design pages don't show (live strip, forms, popups, notes) ---------- */
.tag.wait { color: var(--ink-3); }
.tag.today { color: var(--red); }
.nav .live-dot { position: absolute; top: 9px; left: calc(50% + 8px); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; animation: k-pulse 1.6s infinite; }
@keyframes k-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
@media (min-width: 900px) { .nav .live-dot { position: static; margin-left: 6px; } }

/* Live strip under the header on other pages while a tournament is on */
.livebar { display: block; background: var(--night-2); color: var(--night-ink); border-top: 1px solid var(--night-line); font-size: 13.5px; }
.livebar:hover { color: var(--night-ink); }
.livebar .wrap { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.livebar b { font-weight: 600; white-space: nowrap; }
.livebar .meta { color: var(--night-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.livebar .go { margin-left: auto; font: 600 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

.banner { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--gold); border-left-width: 3px; font-size: 14px; line-height: 1.45; }
.muted { color: var(--ink-3); font-size: 14px; padding: 10px 0; }
.mast .crumb { color: var(--night-ink-2); }
.mast .crumb:hover { color: var(--night-ink); text-decoration: underline; }
.flag-t { display: inline-grid; place-items: center; min-width: 18px; height: 12px; padding: 0 2px; font: 700 8px/1 var(--f-body); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line-2); text-decoration: none; flex: none; }
.mast .flag-t { color: var(--night-ink-2); box-shadow: 0 0 0 1px var(--night-line); }
.term { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--ink-3); text-underline-offset: 2px; }
.term:hover { color: var(--red); }
.tbl a.nm { display: inline; }
.tbl .when .tag { vertical-align: middle; }
.tbl .t time { font: inherit; }
.tbl .ctry { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.tbl .mc.z, .tbl .dim { color: var(--ink-3); }
.band .tag { align-self: center; }
.band .sel { margin-left: auto; }
.band .more + .sel, .band .sel + .more { margin-left: 12px; }

/* Selects and the tool row above a table */
.sel { appearance: none; -webkit-appearance: none; height: 32px; padding: 0 28px 0 10px; border: 1px solid var(--line-2); border-radius: 0; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23807a6f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; color: var(--ink); font: 600 12.5px/1 var(--f-body); cursor: pointer; max-width: 100%; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.toolbar .sel.grow { flex: 1 1 200px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12px; }
.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 0; background: var(--surface); color: var(--ink); font: 400 15px/1.4 var(--f-body); }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.textarea { width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 0; background: var(--surface); color: var(--ink); font: 400 15px/1.4 var(--f-body); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field label span { font-weight: 400; color: var(--ink-3); }

/* «Ката таптым» dialog, word popover, toast */
.dlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-top: 3px solid var(--red); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.dlg::backdrop { background: rgba(10, 9, 7, .6); }
.dlg form { display: grid; gap: 14px; padding: 16px; }
.dlg .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg h2, .pop h2 { font: 700 20px/1.1 var(--f-disp); text-transform: uppercase; letter-spacing: .02em; }
.dlg p { font-size: 13.5px; color: var(--ink-2); }
.dlg .x { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.dlg .x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 559px) { .dlg { width: 100vw; max-width: 100vw; margin: auto 0 0; padding-bottom: env(safe-area-inset-bottom); } }
.pop { width: min(400px, calc(100vw - 32px)); margin: auto; padding: 16px; border: 0; border-top: 3px solid var(--red); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.pop::backdrop { background: rgba(10, 9, 7, .45); }
.pop p { margin: 8px 0 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; background: var(--ink); color: var(--bg); font-size: 14px; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* Notes under a table: one quiet line each */
.note-line a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.note-line b { color: var(--ink-2); font-weight: 600; }
.fine a + a::before, .fine span + a::before { text-decoration: none; display: inline-block; }

/* Supporters */
.sup { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.sup li { padding: 6px 10px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; }
.pay > div { min-width: 0; }

/* Bracket extras: the Kyrgyz wrestler's weights in the chips, the note under the path */
.chips button small { white-space: nowrap; }
.brk .note-line { max-width: 640px; }
.bx .s .t { font: 600 11px/1 var(--f-body); color: var(--ink-3); }
.tree-scroll .tree + .tree { margin-top: 18px; }
.kpath li.o::before { box-shadow: inset 0 0 0 2px var(--line-2); }
.kpath .sc .when { font-size: 12.5px; }

/* Home and tournament heads: the photo credit line and the medal-table facts */
.mast .facts a { color: var(--night-ink); text-decoration: underline; text-decoration-color: var(--night-line); text-underline-offset: 3px; }
.stats b small { font-size: .5em; }
.mast-go + .facts { margin-top: 0; }
.chips a { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); font: 600 12.5px/1 var(--f-body); color: var(--ink-2); white-space: nowrap; }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.res-wrap small { display: block; white-space: nowrap; font: 500 11px/1.2 var(--f-body); color: var(--ink-3); text-align: right; margin-top: 3px; }
.fine > * + *::before { content: "·"; display: inline-block; margin: 0 6px; text-decoration: none; color: var(--ink-3); }
.brk .band { flex-wrap: wrap; row-gap: 6px; }
.brk .band h2 { white-space: nowrap; }
.stats b { white-space: nowrap; }
[hidden] { display: none !important; }
#olkolor .band { flex-wrap: wrap; row-gap: 8px; }

/* Phones and narrow screens: the photo is its own band above the title, so nothing covers the face. */
@media (max-width: 899px) {
  .mast-photo, .mast-photo.left, .mast-photo.w { position: relative; top: auto; right: auto; bottom: auto; left: auto; display: block; width: 100%; height: clamp(200px, 56vw, 320px); }
  .mast-photo img, .mast-photo.left img, .mast-photo.w img { opacity: 1 !important; object-position: 50% 28%;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 40%); mask-image: linear-gradient(to top, transparent 0, #000 40%); -webkit-mask-composite: source-over; mask-composite: add; }
  .mast-photo figcaption { right: 14px; bottom: 2px; }
  .mast-photo.left figcaption { left: auto; right: 14px; }
  .mast:has(.mast-photo) .wrap { padding-top: 4px; }
}

/* Photo credits: there, but barely noticed */
.mast-photo figcaption { font-size: 8.5px; color: rgba(243, 238, 228, .3); }
.mast-photo figcaption a { text-decoration-color: rgba(243, 238, 228, .2); }
.credit { font-size: 9px; color: rgba(243, 238, 228, .28); }
.credit a { text-decoration-color: rgba(243, 238, 228, .15); }
/* Wrestler page: group rows in the medal table, the career table (no P4P bar), the youth-medal caption. */
.rec tr.grp td:first-child { padding: 14px 0 6px; font: 600 10.5px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); box-shadow: none !important; }
.rec tr.y td:first-child, .rec.car tr td:first-child { box-shadow: none !important; padding-left: 0; }
.rec.car td.r { white-space: nowrap; font-size: 13.5px; color: var(--ink-2); }
.stats-cap { margin: 0 0 -4px; font: 600 11.5px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--night-ink-2); }
