/* US Padel Index tokens. Colours are RGB triplets so Tailwind can add opacity. fea_01m7pvfzpcfpzdya3wnx85 */
:root {
  color-scheme: light;
  --bg: 244 243 238; --panel: 255 255 255; --sunk: 236 235 228;
  --ink: 14 21 18; --ink2: 72 84 79; --ink3: 118 129 124; --line: 223 221 211;
  --acc: 12 122 84; --up: 10 132 88; --dn: 200 50 78;
  --ball: 200 236 60; --onball: 14 21 18;
  --q1: 222 242 230; --q2: 166 222 190; --q3: 92 188 140; --q4: 24 140 96; --q5: 8 92 62;
  --s0: 12 122 84; --s1: 47 109 220; --s2: 214 130 20; --s3: 196 72 140; --s4: 20 150 160;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: 9 14 12; --panel: 16 23 21; --sunk: 12 18 16;
    --ink: 233 240 236; --ink2: 166 180 173; --ink3: 112 126 120; --line: 33 45 41;
    --acc: 200 245 96; --up: 61 220 151; --dn: 255 107 129;
    --ball: 200 245 96; --onball: 9 14 12;
    --q1: 22 52 42; --q2: 28 92 66; --q3: 46 140 92; --q4: 120 200 96; --q5: 210 248 110;
    --s0: 200 245 96; --s1: 106 160 255; --s2: 245 176 72; --s3: 240 120 180; --s4: 60 210 214;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: 9 14 12; --panel: 16 23 21; --sunk: 12 18 16;
  --ink: 233 240 236; --ink2: 166 180 173; --ink3: 112 126 120; --line: 33 45 41;
  --acc: 200 245 96; --up: 61 220 151; --dn: 255 107 129;
  --ball: 200 245 96; --onball: 9 14 12;
  --q1: 22 52 42; --q2: 28 92 66; --q3: 46 140 92; --q4: 120 200 96; --q5: 210 248 110;
  --s0: 200 245 96; --s1: 106 160 255; --s2: 245 176 72; --s3: 240 120 180; --s4: 60 210 214;
}
html { -webkit-text-size-adjust: 100%; }
body { background: rgb(var(--bg)); color: rgb(var(--ink)); overflow-x: hidden; }
.num, .font-mono { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: rgb(var(--ball)); color: rgb(var(--onball)); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid rgb(var(--acc)); outline-offset: 2px; }
.link { color: rgb(var(--acc)); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.no-bar { scrollbar-width: none; } .no-bar::-webkit-scrollbar { display: none; }

/* Nav: underlined tabs sitting on the header rule */
.nav { white-space: nowrap; padding: 10px 0 9px; border-bottom: 2px solid transparent; color: rgb(var(--ink2)); }
.nav:hover { color: rgb(var(--ink)); }
.nav.on { color: rgb(var(--ink)); border-bottom-color: rgb(var(--acc)); font-weight: 600; }

/* Editorial layout. fea_01m7pvfzpcfpzdya3wnx85
   Sections open on a heavy rule, figures sit on the page, columns are split by hairlines. No boxed cards. */
.sec { margin-top: 3.5rem; padding-top: 14px; border-top: 2px solid rgb(var(--ink)); }
/* Full-bleed band: the sunk colour runs to the window edges without widening the page. */
.sec.band { border-top: 0; padding-block: 28px 32px; background: rgb(var(--sunk)); box-shadow: 0 0 0 100vmax rgb(var(--sunk)); clip-path: inset(0 -100vmax); }
.sec.band + .sec { border-top-color: rgb(var(--ink)); }
.note { border-left: 2px solid rgb(var(--ink3)); padding: 2px 0 2px 12px; font-size: 14px; line-height: 1.55; color: rgb(var(--ink2)); max-width: 48rem; }
.more { margin-top: 12px; padding: 6px 0; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--acc)); }
.more::after { content: " \2193"; }
.more:hover { color: rgb(var(--ink)); }
.pick { appearance: none; -webkit-appearance: none; background: transparent; color: rgb(var(--ink)); border: 0; border-bottom: 1px solid rgb(var(--ink3)); border-radius: 0; padding: 4px 20px 4px 0; background-image: linear-gradient(45deg, transparent 50%, rgb(var(--ink3)) 50%), linear-gradient(135deg, rgb(var(--ink3)) 50%, transparent 50%); background-position: right 6px center, right 2px center; background-size: 4px 4px; background-repeat: no-repeat; }
.pick option { background: rgb(var(--panel)); color: rgb(var(--ink)); }
/* Toggles: mono labels with an underline, not pills */
.seg { margin-right: 16px; padding: 6px 0; border-bottom: 2px solid transparent; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--ink3)); }
.seg:hover { color: rgb(var(--ink)); }
.seg[aria-pressed="true"] { color: rgb(var(--ink)); border-bottom-color: rgb(var(--acc)); }
.seg.tab { margin-right: 24px; padding: 10px 0; margin-bottom: -1px; font-size: 12px; }

/* Figure strip: numbers set straight on the page, split by column rules */
.strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgb(var(--ink)); border-bottom: 1px solid rgb(var(--line)); }
.strip > * { padding: 16px 0 16px 16px; border-left: 1px solid rgb(var(--line)); min-width: 0; }
.strip > *:nth-child(2n+1) { border-left: 0; padding-left: 0; padding-right: 16px; }
.strip > *:nth-child(n+3) { border-top: 1px solid rgb(var(--line)); }
@media (min-width: 1024px) {
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip > *, .strip > *:nth-child(2n+1) { border-left: 1px solid rgb(var(--line)); padding: 18px 20px; border-top: 0; }
  .strip > *:first-child { border-left: 0; padding-left: 0; }
}
.strip.s3 { grid-template-columns: minmax(0, 1fr); }
.strip.s3 > *, .strip.s3 > *:nth-child(2n+1) { border-left: 0; padding: 14px 0; border-top: 0; }
.strip.s3 > * + * { border-top: 1px solid rgb(var(--line)); }
@media (min-width: 640px) {
  .strip.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip.s3 > *, .strip.s3 > *:nth-child(2n+1), .strip.s3 > * + * { border-top: 0; border-left: 1px solid rgb(var(--line)); padding: 16px 20px; }
  .strip.s3 > *:first-child { border-left: 0; padding-left: 0; }
}

/* Ticker strip */
.ticker { overflow: hidden; position: relative; }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 16px; border-right: 1px solid rgb(var(--line)); font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticker-item b { color: rgb(var(--ink3)); font-weight: 600; letter-spacing: .04em; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; scrollbar-width: none; }
  .ticker-track { animation: none; }
  .ticker-track [aria-hidden="true"] { display: none; }
}

/* Live dot: a padel ball */
.ball { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--ball)); box-shadow: 0 0 0 0 rgb(var(--ball) / .6); animation: pulse 2.4s ease-out infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(var(--ball) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--ball) / 0); } }
@media (prefers-reduced-motion: reduce) { .ball { animation: none; } }

/* Heat map tiles */
.tiles { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 2px; }
.tile { aspect-ratio: 1; border-radius: 1px; display: grid; place-content: center; text-align: center; font: 600 9px/1.1 ui-monospace, Menlo, monospace; color: rgb(var(--ink3)); background: rgb(var(--sunk)); transition: transform .15s ease; }
.tile small { display: none; font-weight: 400; opacity: .85; }
a.tile:hover { outline: 2px solid rgb(var(--ink)); outline-offset: 1px; z-index: 1; }
@media (min-width: 640px) { .tile { font-size: 11px; } .tile small { display: block; font-size: 9px; margin-top: 1px; } .tiles { gap: 3px; } }
.q1 { background: rgb(var(--q1)); color: rgb(var(--ink)); }
.q2 { background: rgb(var(--q2)); color: rgb(var(--ink)); }
.q3 { background: rgb(var(--q3)); color: #fff; }
.q4 { background: rgb(var(--q4)); color: #fff; }
.q5 { background: rgb(var(--q5)); color: #fff; }
:root[data-theme="dark"] .q4, :root[data-theme="dark"] .q5 { color: rgb(var(--onball)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .q4, :root:not([data-theme="light"]) .q5 { color: rgb(var(--onball)); } }

/* Charts */
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { fill: rgb(var(--ink3)); font: 11px ui-monospace, Menlo, monospace; }
.chart text.lbl { font-weight: 600; }
.tip { position: fixed; z-index: 40; pointer-events: none; min-width: 150px; padding: 8px 10px; border-radius: 2px; background: rgb(var(--ink)); color: rgb(var(--bg)); font: 12px/1.5 ui-monospace, Menlo, monospace; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.tip div { display: flex; justify-content: space-between; gap: 14px; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: right; font: 600 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .05em; text-transform: uppercase; color: rgb(var(--ink3)); padding: 0 8px 10px; border-bottom: 1px solid rgb(var(--ink)); }
.tbl td { text-align: right; padding: 9px 8px; vertical-align: middle; border-bottom: 1px solid rgb(var(--line)); font-variant-numeric: tabular-nums; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl tbody tr:hover { background: rgb(var(--sunk)); }
.tbl td.l, .tbl th.l { text-align: left; }
@media (max-width: 639px) { .hide-s { display: none; } .tbl th, .tbl td { padding-left: 5px; padding-right: 5px; } }

/* FAQ */
details.faq > summary { list-style: none; cursor: pointer; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary .plus { transition: transform .2s ease; }
details.faq[open] > summary .plus { transform: rotate(45deg); }
