/* Public site. Tokens and layout from the demo (docs/website-demo/index.template.html) and the brand guide. No JavaScript needed. */
:root {
  --crimson: #8E1F3F; --green: #03764B; --gold: #F2B01E; --ink: #0E0E10;
  --bg: #F6F3EE; --panel: #FFFFFF; --text: #151517; --muted: #54575C; --field: #EFEAE3; --line: #D6D0C7; --accent: #8E1F3F;
  --on-accent: #FFFFFF; --head: #0E0E10; --head-text: #FFFFFF; --silver: #B9BDC3; --bronze: #C98A4B; --picto-filter: none;
  color-scheme: light;
}
/* dark only when the visitor chose it (button in the header, kept in localStorage); never from the system setting */
:root[data-theme="dark"] {
  --bg: #0E0E10; --panel: #17171A; --text: #F4F2EE; --muted: #A9ACB2; --field: #212125; --line: #36373C; --accent: #F2B01E;
  --on-accent: #0E0E10; --head: #09090A; --head-text: #F4F2EE; --picto-filter: invert(1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Barlow', system-ui, sans-serif; font-size: 17px; line-height: 1.45; overflow-wrap: break-word; }
h1, h2, h3, .cond { font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 0; line-height: 1.05; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
/* capulana stripes of the identity: crimson, gold, green, black */
.stripe { height: 8px; background: repeating-linear-gradient(90deg, #8E1F3F 0 36px, #F2B01E 36px 48px, #03764B 48px 84px, #0E0E10 84px 96px); }

/* slim utility bar above the main menu: language and theme, top right */
.utility { background: var(--head); color: var(--head-text); font-size: .88rem; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.utility .how { color: #d8d8d3; text-decoration: none; font-weight: 600; padding: 8px 0; }
.utility .how:hover { color: #fff; text-decoration: underline; }
.utility .controls { display: flex; align-items: center; gap: 6px; margin-left: auto; }
nav.lang { display: flex; }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
nav.lang a, .theme-toggle { text-decoration: none; border: 1px solid rgba(255,255,255,.35); font-weight: 600; padding: 0 .7rem; min-height: 32px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #fff; font-family: inherit; font-size: .85rem; cursor: pointer; }
nav.lang a:hover, .theme-toggle:hover { background: rgba(255,255,255,.14); }
nav.lang a[aria-current] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.utility a:focus-visible, .utility button:focus-visible { outline-color: var(--gold); }

header.site { background: var(--panel); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 8px 20px; min-height: 76px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; flex: none; }
.brand img { height: 52px; width: auto; display: block; }
.brand .t { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.25rem; line-height: 1; }
.brand .t small { display: block; font-family: 'Barlow', sans-serif; font-weight: 400; text-transform: none; font-size: .8rem; color: var(--muted); margin-top: 3px; }
nav.main { flex: 1; display: flex; gap: 0; flex-wrap: wrap; justify-content: flex-end; }
nav.main a { text-decoration: none; padding: 0 .65rem; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; white-space: nowrap; }
nav.main a:hover { background: var(--field); }
nav.main a[aria-current="page"] { border-bottom-color: var(--accent); }
.menu-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); background: var(--panel); font-weight: 600; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-check:focus-visible + .menu-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
/* phones and narrow windows: the menu is a button that opens a stacked list (a checkbox, so no JavaScript is needed) */
@media (max-width: 1060px) {
  .bar { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; }
  nav.main { display: none; flex: 1 0 100%; flex-direction: column; justify-content: flex-start; margin: 0 -16px; border-top: 1px solid var(--line); }
  .menu-check:checked ~ nav.main { display: flex; }
  nav.main a { padding: 0 16px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
  nav.main a[aria-current="page"] { border-left-color: var(--accent); border-bottom-color: var(--line); }
}

main { padding: 22px 0 48px; min-height: 60vh; }
main:focus { outline: none; }
.page-title { margin: 8px 0 16px; }
.page-title h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.page-title p { margin: .4rem 0 0; color: var(--muted); max-width: 70ch; }
h2.section { font-size: 1.35rem; margin: 24px 0 10px; }

.grid { display: grid; gap: 18px; min-width: 0; }
.grid > * { min-width: 0; }
.grid.start { align-content: start; }
.cols-2 > .grid { align-content: start; }
.grid.list { gap: 12px; }
.cols-2 { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 920px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); }
.card > header { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; justify-content: space-between; }
.card > header h2 { font-size: 1.35rem; }
.card > header a { font-size: .9rem; font-weight: 600; }
.card .body { padding: 6px 16px 14px; }
.card .body.tight { padding: 0 6px 8px; }
.row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-child, .result:first-child .row.head { border-top: 0; }
.row .grow, .grow { flex: 1; min-width: 0; }
.row .time { min-width: 3.2rem; font-size: 1.25rem; }
.result + .result { border-top: 1px solid var(--line); }
.result .info { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.updated { font-size: .85rem; color: var(--muted); }
.updated b { color: var(--text); font-variant-numeric: tabular-nums; }

/* status badges always carry a word; colour only reinforces it */
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .12rem .5rem; border: 1px solid currentColor; white-space: nowrap; }
.badge.live { background: #B3123B; color: #fff; border-color: #B3123B; }
.badge.live::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 6px; animation: pulse 1.4s infinite; }
.badge.official { background: #02653F; color: #fff; border-color: var(--green); }
.badge.next { color: var(--muted); }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .badge.live::before { animation: none; } }
.chip { display: inline-block; min-width: 3.1em; text-align: center; background: var(--ink); color: #fff; font-weight: 600; font-size: .78rem; padding: .12rem .35rem; letter-spacing: .05em; }
[data-theme="dark"] .chip { background: var(--field); border: 1px solid var(--line); }
.medal { display: inline-block; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: .08rem .45rem; color: var(--ink); }
.medal.gold { background: var(--gold); } .medal.silver { background: var(--silver); } .medal.bronze { background: var(--bronze); } /* ink on bronze: white failed contrast */
.mdot { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-weight: 700; font-size: .9rem; line-height: 1; color: var(--ink); }
.mdot.gold { background: var(--gold); } .mdot.silver { background: var(--silver); } .mdot.bronze { background: var(--bronze); }
.tile .mdot, summary .mdot, .row .mdot { width: 1.4rem; height: 1.4rem; font-size: .75rem; }
.page-title h1 .flag, .tile h2 .flag { width: 30px; height: 20px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 8px 4px; font-size: .9rem; color: var(--muted); }
.legend .mdot { width: 1.5rem; height: 1.5rem; font-size: .75rem; margin-right: 2px; }
.scoreline { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.podium { display: grid; gap: 6px; margin: 8px 0 10px; padding: 0; list-style: none; }
.podium .p { display: flex; gap: 4px 10px; align-items: center; flex-wrap: wrap; }
.podium .rank { min-width: 3.1em; font-weight: 600; text-align: center; }
.podium .mark { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .55rem .6rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
tbody th { font-weight: 400; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { th, td { padding: .5rem .3rem; } thead th { letter-spacing: 0; } }

.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; align-items: end; }
.filters label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); flex: 1 1 12rem; max-width: 100%; }
.filters select { background: var(--panel); color: var(--text); border: 2px solid var(--text); min-height: 44px; padding: .5rem .7rem; font: inherit; text-transform: none; letter-spacing: 0; width: 100%; }
.filters button { background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent); font: inherit; font-weight: 600; min-height: 44px; padding: .5rem 1.1rem; cursor: pointer; }
[data-theme="dark"] .filters select { border-color: var(--line); }

details.exp { margin-bottom: 8px; }
details.exp > summary { cursor: pointer; list-style: none; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
details.exp > summary::-webkit-details-marker { display: none; }
details.exp > summary .pos { font-size: 1.4rem; min-width: 1.6rem; }
details.exp > summary .counts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
details.exp[open] > summary .caret { transform: rotate(90deg); }
details.exp > .body { border-top: 1px solid var(--line); }
.caret { display: inline-block; transition: transform .15s; }
@media (prefers-reduced-motion: reduce) { .caret { transition: none; } }

/* schedule day links, tiles (sports, delegations), steps (how we publish), news and information text */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tabs a { background: var(--panel); border: 1px solid var(--line); padding: 0 .8rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; text-decoration: none; min-width: 3.4rem; text-align: center; }
.tabs a[aria-current] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.card.day > header h2, .card.group > header h2 { font-size: 1.2rem; }
.card.group { margin-bottom: 16px; }
abbr[title] { text-decoration: none; cursor: help; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tile { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--accent); padding: 14px; text-decoration: none; display: block; height: 100%; }
.tile:hover { background: var(--field); }
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile h2 { font-size: 1.3rem; margin-bottom: 4px; }
.steps { counter-reset: s; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); margin: 0; padding: 0; list-style: none; }
.step { background: var(--panel); border: 1px solid var(--line); padding: 14px 16px 16px; }
.step::before { counter-increment: s; content: counter(s); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 2.4rem; color: var(--accent); display: block; line-height: 1; }
.step h2 { font-size: 1.15rem; margin: 4px 0 6px; }
.step p { margin: 0; }
article.post { background: var(--panel); border: 1px solid var(--line); padding: 16px; }
article.post h2 { font-size: 1.35rem; margin: 4px 0 6px; }
article.post h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 6px 0 12px; }
article.post > p.muted { margin: 0; }
.prose { max-width: 75ch; }
.prose img { max-width: 100%; height: auto; }
.prose pre { overflow-x: auto; }
.grid.tiles { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.counts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

footer.site { background: var(--head); color: #d8d8d3; padding: 40px 0 20px; font-size: .95rem; margin-top: 0; }
footer.site a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px 32px; }
.foot-grid.no-contact { grid-template-columns: 1.4fr 1fr 1.6fr; }
.foot-grid .sports-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.foot-grid h2 { font-size: 1.15rem; color: var(--gold); margin-bottom: 12px; }
.foot-grid h3 { font-size: 1rem; color: var(--gold); margin: 16px 0 6px; }
.foot-grid p { margin: 0; max-width: 46ch; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-grid li a { display: inline-flex; align-items: center; min-height: 32px; }
.foot-grid .contact { gap: 8px; }
.foot-base { border-top: 1px solid rgba(255,255,255,.2); margin-top: 28px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: .88rem; }
.foot-base p { margin: 0; }
@media (max-width: 920px) { .foot-grid, .foot-grid.no-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid, .foot-grid.no-contact { grid-template-columns: minmax(0, 1fr); } .foot-grid .sports-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* flags, pictograms, home hero carousel */
.flag { display: inline-block; width: 24px; height: 16px; vertical-align: -2px; border: 1px solid var(--line); object-fit: cover; }
.picto { filter: var(--picto-filter); flex: none; }
/* home hero: full-width news carousel (image or brand art, gradient shade, copy bottom-left), intro text below it */
.hero { position: relative; background: var(--head); color: var(--head-text); padding: 0; }
.hero::after { content: ''; display: block; height: 6px; background: repeating-linear-gradient(90deg, #8E1F3F 0 36px, #F2B01E 36px 48px, #03764B 48px 84px, #FFFFFF 84px 96px); }
.hero .picto { filter: invert(1); }
.hero a:focus-visible, .hero button:focus-visible { outline-color: var(--gold); }
.hn { position: relative; background: var(--head); color: #fff; overflow: hidden; }
.hn-viewport { position: relative; height: clamp(420px, 50vw, 560px); touch-action: pan-y; }
.hn-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.hn-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.hn-art { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #0E0E10, #8E1F3F 55%, #0E0E10); }
.hn-art.pal1 { background: linear-gradient(135deg, #0E0E10, #03764B 55%, #0E0E10); }
.hn-art.pal2 { background: linear-gradient(135deg, #8E1F3F, #0E0E10 60%, #03764B); }
.hn-art.pal3 { background: linear-gradient(135deg, #4a0f20, #03764B 70%, #0E0E10); }
.hn-art > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hn-slide.is-active .hn-art > img { animation: kb 9s ease-out both; }
@keyframes kb { from { transform: scale(1.07); } to { transform: scale(1); } }
.hn-art .fa { position: absolute; right: 6%; top: 0; bottom: 0; width: 34%; display: grid; place-items: center; opacity: .9; }
.hn-art .fa .picto { width: min(100%, 360px); height: auto; opacity: .28; }
.hn-art .fa .teti { height: 78%; width: auto; max-height: 380px; }
.hn-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.62) 42%, rgba(10,10,10,0) 78%), linear-gradient(0deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,0) 52%); }
.hn-copy { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 104px; }
.hn-copy .in { max-width: 660px; }
.hn-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--crimson); color: #fff; font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: .32rem .7rem; }
.hn-date { display: inline-block; margin-left: 12px; color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.hn-copy h2 { font-size: clamp(2rem, 5.4vw, 3.7rem); margin: 14px 0 10px; color: #fff; text-wrap: balance; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hn-copy h2 a { color: #fff; text-decoration: none; }
.hn-copy h2 a:hover { text-decoration: underline; }
.hn-copy p { color: #e2e2dd; margin: 0 0 20px; max-width: 54ch; font-size: 1.1rem; }
.hn-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none; padding: .72rem 1.15rem; min-height: 48px; }
.hn-cta:hover { background: #fff; }
.hn-ctrl { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; }
.hn-ctrl[hidden] { display: none; }
.hn-ctrl .wrap { display: flex; align-items: flex-end; gap: 18px; }
.hn-dots { display: flex; gap: 10px; flex: 1; max-width: 640px; min-width: 0; }
.hn-dot { flex: 1; min-width: 0; background: none; border: 0; padding: 10px 0 2px; cursor: pointer; text-align: left; color: #fff; font: inherit; }
.hn-dot .hn-bar { display: block; height: 3px; background: rgba(255,255,255,.28); position: relative; overflow: hidden; }
.hn-dot .hn-bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.hn-dot[aria-current="true"] .hn-bar i { animation: prog var(--hn-ms, 7s) linear forwards; }
.hn.paused .hn-dot[aria-current="true"] .hn-bar i, .hn.hold .hn-dot[aria-current="true"] .hn-bar i { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }
.hn-dot .lbl { display: block; margin-top: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-dot[aria-current="true"] .lbl, .hn-dot:hover .lbl { color: #fff; }
.hn-btns { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.hn-count { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; margin-right: 8px; letter-spacing: .04em; }
.hn-count b { color: var(--gold); }
.hn-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: rgba(10,10,10,.35); border: 1px solid rgba(255,255,255,.4); color: #fff; cursor: pointer; padding: 0; font-size: 1.1rem; }
.hn-btn:hover { background: #fff; color: var(--ink); }
.hero-intro { padding-top: 24px; padding-bottom: 26px; }
.hero:not(.has-news) .hero-intro { padding-top: 34px; }
.hero-intro h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); margin: 0; }
.hero-intro p { margin: .6rem 0 0; color: #d8d8d3; max-width: 60ch; }
.hero-intro .meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-weight: 600; }
.hero-intro .meta b { color: var(--gold); }
.hero-intro .hn-cta { margin-top: 18px; }
@media (max-width: 640px) {
  .hn-viewport { height: 500px; }
  .hn-shade { background: linear-gradient(0deg, rgba(10,10,10,.95) 0%, rgba(10,10,10,.75) 48%, rgba(10,10,10,.1) 85%); }
  .hn-dot .lbl, .hn-count { display: none; }
  .hn-copy { padding-bottom: 92px; }
  .hn-ctrl { bottom: 22px; }
  .hn-art .fa { width: 60%; right: 0; opacity: .5; }
}
@media (prefers-reduced-motion: reduce) { .hn-slide.is-active .hn-art > img { animation: none; } .hn-slide { transition: none; } }

/* news cards (list, home, "more news") and the article page */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
article.post.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card .cover { display: block; background: var(--field); }
.news-card .cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card .in { padding: 14px 16px 18px; }
.news-card h2 { font-size: 1.3rem; margin: 4px 0 6px; }
article.post.page { max-width: none; padding: 0; overflow: hidden; }
article.post.page .in { padding: 20px clamp(16px, 4vw, 32px) 26px; }
.post-cover { display: block; width: 100%; height: auto; max-height: 480px; aspect-ratio: 21 / 9; object-fit: cover; }

/* stats strip, home sections */
.stats { background: var(--panel); border-bottom: 1px solid var(--line); }
.stats dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats dl > div { padding: 18px 12px; text-align: center; border-left: 1px solid var(--line); }
.stats dl > div:first-child { border-left: 0; }
.stats dd { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats dt { margin-top: 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .stats dl { grid-template-columns: repeat(2, 1fr); } .stats dl > div:nth-child(3) { border-left: 0; } .stats dl > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
h2.section .more { font-family: 'Barlow', sans-serif; text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 600; margin-left: 14px; }
main section + section { margin-top: 28px; }
.cols-2 + section { margin-top: 32px; }
.sport-grid { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.sport-grid .tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sport-grid h3 { font-size: 1.1rem; }
.flag-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.flag-strip a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.flag-strip a:hover { background: var(--field); }
.flag-strip .flag { width: 36px; height: 24px; }

.row .picto { width: 36px; height: 36px; }
.tile-grid.venues { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.tile-grid.venues .tile { height: auto; }
.tile-grid.venues .tile:hover { background: var(--panel); }
.venue-sports { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.venue-sports li { display: flex; align-items: center; gap: 8px; }
.venue-sports a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.tile-grid.venues p a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* demo mode only */
.demo-box { background: #FFE27A; color: #111; border: 2px dashed #111; padding: 12px 16px; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.demo-box button { min-height: 44px; padding: 0 1rem; background: #111; color: #fff; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
