/* Ethugalpura International Chess Festival 2026: public site.
   Christmas and chess: warm chess black, Christmas red and wine, gold, snow white paper, holly green only as a touch.
   Fraunces for display, Archivo for text and interface, Noto Sans Sinhala for Sinhala. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Sinhala"; src: url("../fonts/noto-sans-sinhala-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0D80-0DFF, U+200C-200D, U+25CC; }

:root {
  --night: #0e0b0b;
  --night-2: #171112;
  --night-3: #221819;
  --wine: #4a0c16;
  --wine-2: #63101e;
  --line: rgba(255, 240, 226, .13);
  --line-2: rgba(255, 240, 226, .27);
  --text: #fcf6ee;
  --soft: #e6d9cb;
  --muted: #ad9d90;
  --gold: #d9ab4f;
  --gold-2: #f3d07c;
  --gold-ink: #8a6418;
  --red: #c8102e;
  --red-2: #e02340;
  --holly: #1e6e45;
  --cream: #fdf8f1;
  --cream-2: #f4eadb;
  --ink: #1b1412;
  --ink-soft: #5e4f47;
  --paper-line: rgba(27, 20, 18, .14);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --si: "Noto Sans Sinhala", "Iskoola Pota", "Nirmala UI", sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1200px;
  --radius: 6px;
  --ease: cubic-bezier(.22, .61, .2, 1);
  --head-h: 68px;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); }
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans); font-stretch: 96%;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--ink); }
[lang="si"], .si { font-family: var(--si); line-height: 1.85; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.num, .tnum { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- type */
.display { font-family: var(--display); font-optical-sizing: auto; font-weight: 560; letter-spacing: -.012em; }
.h2 { font-family: var(--display); font-optical-sizing: auto; font-weight: 560; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); letter-spacing: -.015em; line-height: 1.04; }
.h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.55rem); line-height: 1.15; }
.lede { font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); color: var(--soft); max-width: 60ch; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: 0 0 1rem; font-size: .8rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.kicker > span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: .9rem; vertical-align: middle; background: currentColor; transform: rotate(45deg); opacity: .7; }
.link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--gold-2); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--text); }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.05em; }
.prose a { color: var(--gold-2); }
.prose h2, .prose h3 { font-family: var(--display); margin: 1.6em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding-left: 1.1em; border-left: 3px solid var(--gold); font-family: var(--display); font-size: 1.2em; }
.prose--lg { font-size: 1.1rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b-bg: transparent; --b-fg: var(--text); --b-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.25rem; border: 1px solid var(--b-bd); border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); font-weight: 650; font-size: 1rem; line-height: 1.1;
  text-decoration: none; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--register {
  --b-bg: var(--red); --b-fg: #fff; --b-bd: var(--red);
  box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--gold), 0 10px 30px -8px rgba(196, 31, 46, .7);
  font-weight: 750; letter-spacing: .02em;
}
.btn--lg { min-height: 58px; padding: .9rem 1.8rem; font-size: 1.12rem; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }
.btn--ghost { --b-bd: var(--line-2); }
.btn--gold { --b-bg: var(--gold); --b-fg: var(--ink); --b-bd: var(--gold); }
.btn--paper { --b-bg: var(--ink); --b-fg: var(--cream); --b-bd: var(--ink); }
.btn--closed { --b-bg: var(--night-3); --b-fg: var(--soft); --b-bd: var(--line-2); cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn--register:hover { --b-bg: var(--red-2); transform: translateY(-1px); box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--gold-2), 0 14px 34px -8px rgba(220, 49, 64, .8); }
  .btn--ghost:hover { --b-bd: var(--gold); --b-fg: var(--gold-2); }
  .btn--gold:hover { --b-bg: var(--gold-2); }
  .btn--paper:hover { --b-bg: #000; }
}
.btn:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--night); border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; gap: 1.2rem; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__logo { flex: none; display: grid; place-items: center; width: 74px; height: 50px; padding: 3px 5px; background: var(--cream); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(214, 169, 79, .5); }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name strong { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: .005em; }
.brand__name small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav ul { display: flex; gap: .2rem; list-style: none; }
.site-nav a { display: block; padding: .55rem .7rem; border-radius: 4px; font-size: .95rem; font-weight: 550; color: var(--soft); text-decoration: none; white-space: nowrap; }
@media (max-width: 1360px) { .site-nav ul { gap: 0; } .site-nav a { padding: .55rem .55rem; font-size: .92rem; } }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: var(--text); background: rgba(244, 236, 220, .06); } }
.site-head__cta { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; place-items: center; }
.menu-btn span, .menu-btn span::before { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.menu-btn span { position: relative; }
.menu-btn span::before { content: ""; position: absolute; top: -6px; }
.menu-btn span::after { content: ""; position: absolute; top: 6px; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.menu { position: fixed; inset: var(--head-h) 0 0; z-index: 39; display: flex; flex-direction: column; gap: 1.5rem; padding: 1.4rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); background: var(--night); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu ul { list-style: none; border-top: 1px solid var(--line); }
.menu li a { display: flex; justify-content: space-between; padding: .95rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.45rem; text-decoration: none; }
.menu li a[aria-current="page"] { color: var(--gold-2); }
.menu__foot { display: grid; gap: .7rem; }
.menu__foot p { color: var(--muted); margin: .4rem 0 0; }
body.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .site-nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 560px) {
  :root { --head-h: 62px; }
  .brand__logo { width: 62px; height: 42px; }
  .brand__name small { display: none; }
  .site-head__cta .btn--register { display: none; }
}

/* ---------------------------------------------------------------- live and closed bars */
.notice { background: var(--red); color: #fff; font-weight: 600; font-size: .95rem; }
.notice a { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .6rem 0; text-decoration: none; }
.notice .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--night); min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: -2; container-type: size; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.8); }
.hero__video { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.hero__video.is-on { opacity: 1; }
.hero__video iframe { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(200, 16, 46, .38), transparent 60%),
    linear-gradient(180deg, rgba(14, 11, 11, .7) 0%, rgba(14, 11, 11, .55) 40%, rgba(14, 11, 11, .92) 100%);
}
.hero__snow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(1.6rem, 4vw, 3rem); padding-bottom: clamp(2.6rem, 6vw, 4.5rem); }
.crests { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .7rem clamp(.6rem, 2vw, 1.4rem); list-style: none; margin-bottom: clamp(1.4rem, 3.5vw, 2.4rem); }
.crests li { display: grid; place-items: center; width: clamp(54px, 7vw, 76px); height: clamp(54px, 7vw, 76px); border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px rgba(14, 11, 11, .6), 0 12px 30px -10px rgba(0, 0, 0, .8); overflow: hidden; }
.crests li img { width: 100%; height: 100%; object-fit: cover; }
.crests .crests__main { width: clamp(150px, 19vw, 210px); height: auto; aspect-ratio: 3 / 2; border-radius: 12px; padding: 6px 10px; }
.crests .crests__main img { object-fit: contain; }
.hero .kicker { justify-content: center; }
.hero__title { font-family: var(--display); font-optical-sizing: auto; font-weight: 560; font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.8rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 1.1rem; max-width: 16ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.hero__title em { font-style: normal; color: var(--gold-2); }
.hero__when { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; margin: 0 0 1.6rem; font-size: 1.08rem; color: var(--soft); }
.hero__when strong { color: var(--text); }
.hero__when span + span::before, .hero__when strong + span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 1.1rem; vertical-align: middle; background: var(--gold); transform: rotate(45deg); }
.hero__prize { color: var(--gold-2); font-weight: 650; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem 1rem; margin-bottom: 1.6rem; }
.hero__actions .wa { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .2rem; font-weight: 600; color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.hero__actions .wa .icon { color: #5bd27f; }
@media (hover: hover) and (pointer: fine) { .hero__actions .wa:hover { color: var(--text); border-color: var(--text); } }

/* Chess-clock countdown */
.clock { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.1rem; padding: .8rem 1rem; background: rgba(14, 11, 11, .7); border: 1px solid rgba(217, 171, 79, .45); border-radius: 12px; text-align: left; }
.clock__label { font-size: .86rem; color: var(--soft); max-width: 15ch; line-height: 1.3; }
.clock__label b { display: block; color: var(--text); font-weight: 650; }
.clock__faces { display: flex; gap: .35rem; }
.clock__face { display: grid; justify-items: center; min-width: 3.3rem; padding: .35rem .3rem .3rem; background: linear-gradient(180deg, #8f0c22, #5a0814); border: 1px solid rgba(243, 208, 124, .45); border-radius: 6px; }
.clock__face b { font: 600 1.6rem/1 var(--sans); font-variant-numeric: tabular-nums; color: #fff; letter-spacing: .02em; }
.clock__face small { margin-top: .2rem; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 235, 215, .75); }

@media (max-width: 560px) {
  .hero { min-height: 0; }
  .hero__in { padding-top: 1.2rem; }
  .crests { gap: .45rem; margin-bottom: 1.2rem; }
  .crests li { width: 46px; height: 46px; box-shadow: 0 0 0 2px var(--gold); }
  .crests .crests__main { width: 100%; max-width: 230px; height: auto; flex-basis: 100%; border-radius: 10px; margin-bottom: .3rem; }
  .hero .kicker { font-size: .7rem; }
  .hero .kicker > span:last-child { display: none; }
  .hero__when { font-size: .98rem; gap: .2rem .8rem; margin-bottom: 1.2rem; }
  .hero__when .hero__prize { flex-basis: 100%; }
  .hero__when .hero__prize::before { display: none !important; }
  .hero__actions { gap: .6rem .8rem; margin-bottom: 1.2rem; }
  .hero__actions .btn--register { width: 100%; }
  .clock { width: 100%; display: grid; gap: .5rem; }
  .clock__label { max-width: none; text-align: center; }
  .clock__label b { display: inline; margin-right: .35rem; }
  .clock__faces { justify-content: space-between; }
  .clock__face { flex: 1; min-width: 0; }
  .clock__face b { font-size: 1.35rem; }
}

/* ---------------------------------------------------------------- facts strip */
.facts { background: var(--night-2); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .facts { display: none; } }
.facts dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.facts dl > div { padding: 1.15rem 1.1rem 1.2rem; border-left: 1px solid var(--line); }
.facts dl > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { display: flex; align-items: center; gap: .45rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dt .icon { color: var(--gold); }
.facts dd { margin: .3rem 0 0; font-family: var(--display); font-size: 1.12rem; font-weight: 550; line-height: 1.25; }
@media (max-width: 900px) {
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts dl > div { border-left: 0; border-top: 1px solid var(--line); padding: .95rem 0; }
  .facts dl > div:nth-child(-n+2) { border-top: 0; }
  .facts dl > div:nth-child(odd) { padding-right: 1rem; }
  .facts dl > div:last-child { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- sections */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.sec--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.sec--alt { background: var(--night-2); }
.sec--wine { background: radial-gradient(120% 120% at 0% 0%, var(--wine-2), var(--wine) 60%); }
.sec--wine .tabs [role="tab"] { border-color: rgba(255, 230, 210, .35); }
.sec--wine .day-list li { border-bottom-color: rgba(255, 230, 210, .16); }
.sec--wine .day-list { border-top-color: rgba(255, 230, 210, .35); }
.sec--wine .lede { color: rgba(255, 238, 225, .85); }
.sec--red { background: linear-gradient(135deg, #a50d26, #6d0a19); }
.sec--red .btn--register { --b-bg: #fff; --b-fg: var(--red); --b-bd: #fff; box-shadow: 0 0 0 2px #6d0a19, 0 0 0 4px var(--gold); }
.sec--red p { color: rgba(255, 240, 230, .9) !important; }
.sec--paper { background: var(--cream); color: var(--ink); }
.sec--paper .lede, .sec--paper .muted { color: var(--ink-soft); }
.sec--paper .link { color: var(--red); }
.sec--paper .link:hover { color: var(--ink); }
.sec--paper :focus-visible { outline-color: var(--red); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec__head .lede { margin: 0; }
.sec__head--stack { grid-template-columns: 1fr; gap: .9rem; }
@media (max-width: 800px) { .sec__head { grid-template-columns: 1fr; } }
/* checkerboard edge on paper sections */
.edge-board { height: 14px; background: repeating-conic-gradient(#111 0 25%, #fdf8f1 0 50%) 0 0 / 28px 28px; }
.edge-board--gold { background: repeating-conic-gradient(var(--gold) 0 25%, transparent 0 50%) 0 0 / 20px 20px; opacity: .35; }

/* ---------------------------------------------------------------- about / legacy */
.legacy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.legacy__record { position: sticky; top: calc(var(--head-h) + 2rem); }
.legacy__num { font-family: var(--display); font-weight: 600; font-size: clamp(4.4rem, 2rem + 9vw, 8.8rem); line-height: .85; letter-spacing: -.04em; color: var(--red); font-variant-numeric: lining-nums; margin: 0; }
.legacy__cap { margin: .8rem 0 1.6rem; font-size: 1.05rem; max-width: 30ch; color: var(--ink-soft); }
.legacy__cap strong { color: var(--ink); }
.legacy__year { font-family: var(--display); font-size: 1.9em; font-weight: 700; line-height: 1; color: var(--red); letter-spacing: -.02em; vertical-align: -.08em; }
.legacy figure { margin: 0; }
@media (max-width: 760px) { .legacy__photo, .venue__info figure { display: none; } }
.legacy figure img { border-radius: var(--radius); width: 100%; }
.legacy figcaption { margin-top: .55rem; font-size: .85rem; color: var(--ink-soft); }
.legacy__text .h2 { margin-bottom: 1.4rem; }
.legacy__text p { font-size: 1.08rem; }
.legacy__text .pull { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); line-height: 1.3; color: var(--ink); margin: 1.6rem 0; padding-left: 1.1rem; border-left: 3px solid var(--holly); }
.partners-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.3rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--paper-line); }
.partners-inline img { width: 52px; height: 52px; }
.partners-inline p { margin: 0; font-size: .9rem; color: var(--ink-soft); flex-basis: 100%; }
@media (max-width: 860px) {
  .legacy { grid-template-columns: 1fr; }
  .legacy__record { position: static; }
}

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { font-size: .98rem; }
.table th, .table td { padding: .8rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-size: .74rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-2); padding-top: 0; }
.table tbody th { font-weight: 650; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr.is-muted td, .table tr.is-muted th { color: var(--muted); }
.sec--paper .table th, .sec--paper .table td { border-bottom-color: var(--paper-line); }
.sec--paper .table thead th { color: var(--ink-soft); border-bottom-color: rgba(29, 25, 19, .35); }

/* events and time controls */
.events-table td, .events-table th { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.events-table tbody th { font-family: var(--display); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.events-table tbody th .icon { display: inline-block; vertical-align: -.15em; margin-right: .5rem; color: var(--gold); width: 1.1em; height: 1.1em; }
.events-table .tc { font-size: 1.05rem; color: var(--text); }
.events-table small { display: block; color: var(--muted); font-size: .85rem; }
.tag { display: inline-block; padding: .12rem .5rem; border-radius: 3px; font-size: .74rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; background: rgba(244, 236, 220, .1); color: var(--soft); }
.tag--open { background: rgba(31, 122, 68, .3); color: #9be3b4; }
.tag--closed { background: rgba(196, 31, 46, .25); color: #ffb3ba; }
.side-note { display: flex; gap: .7rem; margin-top: 1.5rem; padding: 1rem 1.1rem; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--soft); font-size: .98rem; }
.side-note .icon { color: var(--gold); margin-top: .2rem; }
@media (max-width: 700px) {
  .events-table thead { display: none; }
  .events-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .events-table th, .events-table td { border: 0; padding: .15rem 0; }
  .events-table tbody th { grid-column: 1 / -1; margin-bottom: .2rem; }
  .events-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .events-table td.tcell { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: .4rem; margin-bottom: 1.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-height: 48px; padding: .55rem 1rem; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; font-weight: 600; text-align: left; transition: background-color .2s, border-color .2s, color .2s; }
.tabs [role="tab"] small { font-size: .74rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.tabs [role="tab"][aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] small { color: rgba(29, 25, 19, .7); }
.tabs [role="tab"].is-today::after { content: "Today"; margin-top: .1rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-2); }
.tabs [role="tab"][aria-selected="true"].is-today::after { color: var(--red); }
@media (hover: hover) and (pointer: fine) { .tabs [role="tab"]:not([aria-selected="true"]):hover { border-color: var(--gold); } }
.sec--paper .tabs [role="tab"] { border-color: rgba(29, 25, 19, .25); }
.sec--paper .tabs [role="tab"] small { color: var(--ink-soft); }
.sec--paper .tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.sec--paper .tabs [role="tab"][aria-selected="true"] small { color: rgba(246, 238, 220, .7); }
.tabs--sub [role="tab"] { min-height: 40px; padding: .4rem .85rem; border-radius: 999px; font-size: .92rem; }

/* ---------------------------------------------------------------- schedule */
.schedule { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.schedule .tabs { flex-direction: column; overflow: visible; margin: 0; }
.schedule .tabs [role="tab"] { width: 100%; flex-direction: row; align-items: baseline; justify-content: space-between; }
.day-list { list-style: none; border-top: 1px solid var(--line-2); }
.day-list li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.day-list time, .day-list .time { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--gold-2); }
.day-list .what { font-family: var(--display); font-size: 1.22rem; font-weight: 520; }
.day-list .kind { justify-self: end; }
.kind--classical { background: rgba(214, 169, 79, .18); color: var(--gold-2); }
.kind--rapid, .kind--blitz { background: rgba(196, 31, 46, .28); color: #ffc2c8; }
.kind--ceremony { background: rgba(31, 122, 68, .3); color: #a9e8bf; }
.kind--side { background: rgba(244, 236, 220, .1); color: var(--soft); }
.day-list li.is-now { background: linear-gradient(90deg, rgba(214, 169, 79, .12), transparent); }
@media (max-width: 760px) {
  .schedule { grid-template-columns: 1fr; }
  .schedule .tabs { flex-direction: row; overflow-x: auto; }
  .schedule .tabs [role="tab"] { width: auto; flex-direction: column; }
  .day-list li { grid-template-columns: 6.8rem minmax(0, 1fr); }
  .day-list .kind { grid-column: 2; justify-self: start; }
}

/* ---------------------------------------------------------------- fees */
.fees { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.fee-block + .fee-block { margin-top: 2.2rem; }
.fee-block h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; margin-bottom: .2rem; border-bottom: 2px solid var(--gold); font-family: var(--display); font-size: 1.45rem; }
.fee-block h3 small { font: 500 .85rem var(--sans); color: var(--muted); }
.fee-rows { margin: 0; }
.fee-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.fee-rows dt { color: var(--soft); }
.fee-rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee-rows dd.free { color: #9be3b4; }
.fee-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.perk { padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--night-3); border-left: 3px solid var(--gold); }
.perk--red { border-left-color: var(--red-2); }
.perk b { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin-bottom: .2rem; }
.perk p { margin: 0; font-size: .95rem; color: var(--soft); }
.deadlines { margin-top: 2.2rem; }
.deadlines h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: .6rem; }
@media (max-width: 900px) { .fees { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fee-perks { grid-template-columns: 1fr; } }

/* fee calculator: a paper slip on the dark section */
.calc { position: sticky; top: calc(var(--head-h) + 1.5rem); background: var(--cream); color: var(--ink); border-radius: 10px; padding: 1.4rem 1.4rem 1.5rem; box-shadow: 0 30px 60px -35px rgba(0, 0, 0, .9); }
.calc h3 { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.45rem; margin-bottom: .3rem; }
.calc h3 .icon { color: var(--red); }
.calc > p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.1rem; }
.calc fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.calc legend, .calc label.lbl { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .45rem; }
.pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; min-height: 42px; padding: .45rem .95rem; border: 1px solid rgba(29, 25, 19, .3); border-radius: 999px; font-weight: 600; font-size: .95rem; background: #fffaf0; transition: background-color .15s, color .15s, border-color .15s; }
.pills input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pills input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.pills input:disabled + span { opacity: .45; text-decoration: line-through; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.calc input[type="number"], .calc select { width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid rgba(29, 25, 19, .3); border-radius: 6px; background: #fffaf0; color: var(--ink); }
.calc__out { margin-top: 1.2rem; padding-top: 1rem; border-top: 2px dashed var(--paper-line); }
.calc__lines { list-style: none; font-size: .93rem; }
.calc__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; color: var(--ink-soft); }
.calc__lines li b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.calc__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: .7rem; }
.calc__total span { font-weight: 700; }
.calc__total b { font-family: var(--display); font-size: 2.1rem; font-weight: 650; color: var(--red); font-variant-numeric: tabular-nums; }
.calc .btn { width: 100%; margin-top: 1rem; }
@media (max-width: 900px) { .calc { position: static; } }

/* ---------------------------------------------------------------- prizes */
.prize-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.2rem; margin-bottom: 2rem; padding: 1.1rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--paper-line); }
.prize-total b { font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); color: var(--red); font-weight: 650; line-height: 1; }
.prize-total span { color: var(--ink-soft); }
.prize-grid > *, .schedule > *, .fees > *, .pay > *, .stay > *, .rules > *, .venue > *, .legacy > * { min-width: 0; }
.prize-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.prize-table caption { caption-side: top; text-align: left; padding-bottom: .9rem; }
.prize-table caption b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.prize-table caption span { font-size: .92rem; color: var(--ink-soft); }
.prize-table tbody th { font-weight: 650; white-space: nowrap; }
.prize-table td.num { font-weight: 700; }
.prize-table tbody tr:nth-child(-n+3) .num { color: var(--red); }
.prize-table tfoot td, .prize-table tfoot th { border-bottom: 0; padding-top: 1rem; font-weight: 700; }
.prize-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; list-style: none; }
.prize-cats li { padding: .2rem .6rem; border: 1px solid var(--paper-line); border-radius: 3px; font-size: .86rem; font-weight: 600; background: #fffaf0; }
.prize-aside { padding: 1.3rem; border-radius: 10px; background: var(--cream-2); }
.prize-aside h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: .6rem; }
.prize-aside ul { list-style: none; }
.prize-aside li { padding: .55rem 0; border-bottom: 1px solid var(--paper-line); font-size: .95rem; }
.prize-aside li:last-child { border-bottom: 0; }
@media (max-width: 900px) { .prize-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- rules: team, regulations, appeals */
.rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.sector { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.4rem; list-style: none; }
.sector li { display: flex; align-items: center; gap: .55rem; padding: .7rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius); font-weight: 600; }
.sector .icon { color: var(--gold); }
.numbered { list-style: none; counter-reset: n; }
.numbered li { counter-increment: n; position: relative; padding: .8rem 0 .8rem 2.6rem; border-bottom: 1px solid var(--line); }
.numbered li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .82rem; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--gold); }
.accordion { border-top: 1px solid var(--line-2); }
.accordion details { border-bottom: 1px solid var(--line-2); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: 1rem 0; cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.3rem; font-weight: 560; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .25s var(--ease); color: var(--gold); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion summary small { font: 500 .85rem var(--sans); color: var(--muted); margin-left: auto; margin-right: .4rem; }
.accordion .acc-body { padding: 0 0 1.4rem; }
@media (hover: hover) and (pointer: fine) { .accordion summary:hover { color: var(--gold-2); } }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- accommodation and travel */
.stay { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.stay-list { list-style: none; }
.stay-list li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.stay-list .icon { width: 1.6rem; height: 1.6rem; color: var(--gold); margin-top: .15rem; }
.stay-list b { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin-bottom: .15rem; }
.stay-list p { margin: 0; color: var(--soft); }
.grant { padding: 1.5rem; border: 1px solid var(--gold); border-radius: 10px; background: radial-gradient(120% 100% at 100% 0%, rgba(214, 169, 79, .14), transparent 60%); }
.grant h3 { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: 1.35rem; margin-bottom: 1rem; }
.grant h3 .icon { color: var(--gold); }
.grant dl { margin: 0; }
.grant dl div { display: flex; align-items: baseline; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--line); }
.grant dt { font-weight: 600; color: var(--soft); }
.grant dd { margin: 0; font-family: var(--display); font-size: 1.9rem; font-weight: 600; color: var(--gold-2); }
.grant p { margin: 1rem 0 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) { .stay { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- payment */
.pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.passbook { border-radius: 10px; background: #fffaf0; border: 1px solid var(--paper-line); box-shadow: 0 1px 0 rgba(29, 25, 19, .05), 0 24px 40px -30px rgba(29, 25, 19, .5); overflow: hidden; }
.passbook__top { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.2rem; background: var(--ink); color: var(--cream); font-weight: 650; letter-spacing: .04em; }
.passbook__top .icon { color: var(--gold-2); }
.passbook dl { margin: 0; padding: .4rem 1.2rem 1rem; background-image: repeating-linear-gradient(transparent 0 47px, rgba(29, 25, 19, .07) 47px 48px); }
.passbook dl > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: .8rem; align-items: center; min-height: 56px; border-bottom: 1px solid var(--paper-line); }
.passbook dl > div:last-child { border-bottom: 0; }
.passbook dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.passbook dd { margin: 0; font-weight: 650; font-size: 1.05rem; overflow-wrap: anywhere; }
.passbook .acct { font-family: var(--display); font-size: 1.45rem; font-weight: 650; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.copy-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--paper-line); border-radius: 8px; background: transparent; color: var(--ink); transition: background-color .15s, color .15s; }
.copy-btn.is-done { background: var(--holly); border-color: var(--holly); color: #fff; }
@media (hover: hover) and (pointer: fine) { .copy-btn:hover { background: var(--ink); color: var(--cream); } }
.slip-note { margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-left: 4px solid var(--red); background: rgba(196, 31, 46, .07); border-radius: 0 var(--radius) var(--radius) 0; }
.slip-note p { margin: 0; }
.slip-note p[lang="si"] { font-size: .9rem; line-height: 1.75; }
.slip-note p + p { margin-top: .6rem; font-size: .95rem; color: var(--ink-soft); }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--paper-line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: var(--cream); font-weight: 700; }
.steps b { display: block; }
.refund { margin-top: 1.6rem; font-size: .95rem; color: var(--ink-soft); }
.refund h3 { font-family: var(--display); font-size: 1.15rem; color: var(--ink); margin-bottom: .4rem; }
@media (max-width: 860px) { .pay { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .passbook dl > div { grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .6rem; padding: .6rem 0; }
  .passbook dt { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- venue */
.venue { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.venue__info .h2 { margin-bottom: 1.4rem; }
.venue__info h3 { font-family: var(--display); font-size: 1.6rem; margin-bottom: .5rem; }
.venue__info address { font-style: normal; color: var(--soft); margin-bottom: 1.3rem; }
.venue__info figure { margin: 1.6rem 0 0; }
.venue__info figure img { border-radius: var(--radius); }
.venue__info figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.venue__map { position: relative; min-height: 380px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--night-3); }
.venue__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
@media (max-width: 860px) { .venue { grid-template-columns: 1fr; } .venue__map { min-height: 300px; } }

/* ---------------------------------------------------------------- organising team */
.team { display: grid; gap: 2.2rem; }
.team__group h3 { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; }
.people { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .8rem; }
.person { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .8rem; align-items: start; align-content: start; padding: 1rem 1rem 1rem 1.1rem; border-radius: 10px; background: #fff; border: 1px solid var(--paper-line); box-shadow: 0 10px 24px -20px rgba(27, 20, 18, .6); }
.person::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--red); }
.person__name { font-family: var(--display); font-size: 1.12rem; font-weight: 600; line-height: 1.2; }
.person__role { grid-column: 1; display: flex; flex-direction: column; font-size: .9rem; line-height: 1.45; color: var(--ink-soft); margin: .15rem 0 .2rem; }
.person__role span { text-wrap: balance; }
.person__links { grid-column: 2; grid-row: 1 / span 3; display: flex; gap: .3rem; }
.person__links a { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--paper-line); border-radius: 50%; color: var(--ink); }
.person__links a.wa { color: #128c45; }
.person__phone { grid-column: 1; font-size: .88rem; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .person__links a:hover { background: var(--ink); color: var(--cream); } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; gap: .5rem; } .person { padding: .8rem .9rem .8rem 1rem; } }
/* team cards with a photo: portrait on the left, the call buttons under the text */
.person--photo { grid-template-columns: 104px minmax(0, 1fr); gap: .15rem 1rem; padding: .9rem 1rem .9rem 1.1rem; }
.person__photo { grid-column: 1; grid-row: 1 / span 4; width: 104px; height: 130px; object-fit: cover; border-radius: 8px; background: var(--paper-line); }
.person--photo .person__name, .person--photo .person__role, .person--photo .person__phone { grid-column: 2; }
.person--photo .person__links { grid-column: 2; grid-row: auto; margin-top: .45rem; }
@media (max-width: 560px) { .person--photo { grid-template-columns: 84px minmax(0, 1fr); gap: .1rem .85rem; } .person__photo { width: 84px; height: 105px; } }
#arbiters.sec--tight .sec__head { margin-bottom: 0; }

/* rules teaser and rules page */
.rules-teaser { background: var(--night-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules-teaser__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.rules-teaser p { display: flex; gap: .7rem; margin: 0; color: var(--soft); max-width: 70ch; }
.rules-teaser p .icon { color: var(--gold); margin-top: .2rem; }
.rules-teaser strong { color: var(--text); }
.rules-page { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.rules-toc { position: sticky; top: calc(var(--head-h) + 1.5rem); align-self: start; display: grid; gap: .3rem; }
.rules-toc a { padding: .45rem .7rem; border-left: 2px solid var(--line-2); color: var(--soft); text-decoration: none; font-weight: 600; }
.rules-toc a:hover { border-color: var(--red-2); color: var(--text); }
.rules-body section { margin-bottom: 3rem; scroll-margin-top: calc(var(--head-h) + 1rem); }
.rules-body .h3 { margin-bottom: 1rem; }
@media (max-width: 760px) { .rules-page { grid-template-columns: 1fr; } .rules-toc { position: static; display: flex; flex-wrap: wrap; } .rules-toc a { border-left: 0; border-bottom: 2px solid var(--line-2); } }

/* ---------------------------------------------------------------- closing call */
.cta-band { text-align: center; }
.cta-band .h2 { max-width: 22ch; margin: 0 auto 1rem; text-wrap: balance; }
.cta-band p { max-width: 58ch; margin: 0 auto 1.8rem; color: var(--soft); }
.cta-band .actions { justify-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.holly { position: absolute; width: 120px; height: auto; opacity: .9; pointer-events: none; }
.hero .holly { left: max(1rem, calc((100% - var(--max)) / 2 - 1rem)); bottom: 1.4rem; width: 90px; transform: rotate(-10deg); }
@media (max-width: 900px) { .hero .holly { display: none; } }

/* ---------------------------------------------------------------- footer */
.site-foot { background: #090707; border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 calc(1.6rem + var(--bar-h)); font-size: .95rem; }
.site-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem clamp(1.5rem, 4vw, 3rem); }
.site-foot h2 { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.site-foot ul { list-style: none; }
.site-foot li { margin: .45rem 0; }
.site-foot a { color: var(--soft); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-foot a:hover { color: var(--gold-2); text-decoration: underline; } }
.site-foot__brand .brand__logo { width: 110px; height: 74px; margin-bottom: 1rem; }
.site-foot__brand p { color: var(--muted); max-width: 34ch; }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.partners p { margin: 0 .6rem 0 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.partners li { display: flex; align-items: center; gap: .6rem; color: var(--soft); font-size: .86rem; }
.partners img { width: 46px; height: 46px; }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.site-foot__base p { margin: 0; }
.dev-credit { display: inline-flex; align-items: center; gap: .3rem; }
.dev-credit__heart { width: .95em; height: .95em; fill: var(--red-2); }
@media (max-width: 960px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } .site-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- sticky mobile register bar */
.reg-bar { display: none; }
@media (max-width: 760px) {
  body.has-reg-bar { --bar-h: calc(68px + env(safe-area-inset-bottom)); }
  .reg-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; align-items: center; gap: .8rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(12, 9, 9, .97); border-top: 2px solid var(--red); }
  .reg-bar p { margin: 0; flex: 1; min-width: 0; font-size: .82rem; line-height: 1.25; color: var(--soft); }
  .reg-bar p b { display: block; color: var(--text); font-size: .9rem; }
  .reg-bar .btn { flex: none; min-height: 48px; }
}

.to-top { position: fixed; right: 1rem; bottom: calc(1rem + var(--bar-h)); z-index: 37; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--night-2); color: var(--text); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: radial-gradient(90% 140% at 100% 0%, rgba(99, 16, 30, .75), transparent 60%), var(--night); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem 4rem; align-items: end; }
.page-head__title { font-family: var(--display); font-weight: 560; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); letter-spacing: -.02em; line-height: 1; }
.page-head__text { color: var(--soft); font-size: 1.1rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (max-width: 800px) { .page-head__grid { grid-template-columns: 1fr; } }
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: 2rem; }
.split-head p { margin: 0; color: var(--soft); }
@media (max-width: 800px) { .split-head { grid-template-columns: 1fr; } }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section__bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.frame { overflow: hidden; border-radius: var(--radius); }
.frame img { width: 100%; }

/* about */
.heritage__grid, .closing__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.heritage__photo, .closing__photo { margin: 0; }
.heritage__photo figcaption, .closing__photo figcaption { margin-top: .5rem; font-size: .86rem; color: var(--muted); }
.heritage__text .h2 { margin-bottom: 1.2rem; }
.quote-block { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--cream); color: var(--ink); }
.quote-block figure { margin: 0 0 2.5rem; max-width: 900px; }
.quote-block blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.25; }
.quote-block blockquote p { margin: 0; }
.quote-block figcaption { margin-top: 1rem; font-weight: 600; color: var(--ink-soft); }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; list-style: none; border-top: 1px solid var(--paper-line); padding-top: 1.6rem; }
.numbers b { display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 600; color: var(--red); line-height: 1; }
.numbers span { color: var(--ink-soft); font-size: .95rem; }
.hbar { position: relative; display: flex; align-items: center; gap: .7rem; }
.hbar i { display: block; height: 10px; width: var(--w); background: var(--gold); border-radius: 2px; }
.hbar b { font-variant-numeric: tabular-nums; }
.table--growth td:nth-child(2) { width: 70%; }
.tabs--plain { margin-bottom: 1rem; }
@media (max-width: 860px) { .heritage__grid, .closing__grid { grid-template-columns: 1fr; } }

/* news */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chips a { padding: .45rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--soft); }
.chips a[aria-current] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-row a { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.6rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.news-row__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--night-3); }
.news-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-row__ph { display: grid; place-items: center; height: 100%; font-size: 3rem; color: var(--gold); }
.news-row__body { display: flex; flex-direction: column; gap: .45rem; }
.story__meta { display: flex; gap: .8rem; font-size: .82rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); }
.story__meta time { color: var(--muted); }
.story__title { font-family: var(--display); font-size: 1.45rem; font-weight: 580; line-height: 1.2; }
.story__excerpt { color: var(--soft); }
@media (hover: hover) and (pointer: fine) { .news-row a:hover .story__title { text-decoration: underline; text-decoration-thickness: 1px; } .news-row a:hover img { transform: scale(1.03); } }
@media (max-width: 640px) { .news-row a { grid-template-columns: 1fr; gap: 1rem; } }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.pager a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--gold-2); }
.empty { color: var(--muted); padding: 2rem 0; }
.post__head { max-width: 900px; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 1.8rem; }
.post__title { font-family: var(--display); font-weight: 580; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); letter-spacing: -.015em; line-height: 1.06; margin-bottom: 1rem; }
.post__sub { font-size: 1.2rem; color: var(--soft); }
.post__meta { display: flex; gap: 1.2rem; color: var(--muted); font-size: .92rem; }
.post__media { margin-bottom: 2.5rem; }
.post__media img { border-radius: var(--radius); width: 100%; max-height: 640px; object-fit: cover; }
.post__body { margin: 0 auto; }
.post__foot { display: flex; align-items: center; gap: 1rem; max-width: 68ch; margin: 2.5rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.post__foot p { margin: 0; color: var(--muted); }
.share { display: flex; gap: .5rem; }
.share a, .share button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; }

/* contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__list { margin: 0; }
.contact__list > div { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.contact__list dd { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: baseline; }
.contact__big { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 560; text-decoration: none; overflow-wrap: anywhere; }
.contact__list .people { width: 100%; }
.contact__list .people li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.contact__list .people a { font-variant-numeric: tabular-nums; }
.venue-card h2 { font-family: var(--display); font-size: 1.5rem; margin: 1.2rem 0 .3rem; }
.venue-card p { color: var(--soft); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* lightbox (about page gallery) */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(4, 10, 12, .94); padding: 1rem; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { margin-top: .8rem; text-align: center; color: var(--soft); }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--night-2); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; }
.lightbox__nav--next { right: 1rem; top: 50%; }

/* ---------------------------------------------------------------- reveal motion (only with JS, never with reduced motion) */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in, .js.fallback [data-reveal], .js.reduced [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .reg-bar, .to-top, .hero__snow, .menu, .site-foot { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------------- phones: keep it simple */
@media (max-width: 560px) {
  .sec { padding: 2.8rem 0; }
  .sec__head { margin-bottom: 1.4rem; }
  .sec__head .lede { font-size: 1rem; }
  .legacy__text .prose p:nth-child(n+3) { display: none; }
  .legacy__text .pull { font-size: 1.2rem; margin: 1.2rem 0; }
  .events-table td[data-label="First round"] { display: none; }
  .fee-perks { gap: .6rem; }
  .prize-total { margin-bottom: 1.2rem; }
  .prize-aside { display: none; }
  .stay-list li { padding: .8rem 0; }
  .venue__map { min-height: 240px; }
  .cta-band p { font-size: .98rem; }
  .side-note { font-size: .92rem; }
}

/* phones: the 2026 logo on its own line, the four partner badges in one row under it */
@media (max-width: 560px) {
  .crests { display: grid; grid-template-columns: repeat(4, 50px); justify-content: center; gap: .55rem .7rem; }
  .crests li { width: 50px; height: 50px; }
  .crests .crests__main { grid-column: 1 / -1; justify-self: center; width: 200px; max-width: none; height: auto; margin-bottom: .2rem; }
  .hero__when { flex-direction: column; align-items: center; gap: .15rem; }
  .hero__when span::before, .hero__when strong + span::before { display: none !important; }
}

/* round 3: logos without boxes (light versions on the dark hero, header and footer) */
.crests li, .crests .crests__main { width: auto; height: auto; aspect-ratio: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.crests li img { width: auto; height: clamp(48px, 6vw, 74px); object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .55)); }
.crests .crests__main img { height: clamp(110px, 13vw, 160px); width: auto; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .65)); }
.crests { gap: 1rem clamp(1rem, 3vw, 2.2rem); }
.brand__logo { width: auto; height: 50px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.brand__logo img { width: auto; height: 100%; }
.site-foot__brand .brand__logo { width: auto; height: 96px; }
.partners img { width: auto; height: 40px; }
@media (max-width: 560px) {
  .crests { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; }
  .crests li, .crests .crests__main { width: auto; height: auto; }
  .crests .crests__main { flex-basis: 100%; display: flex; justify-content: center; margin-bottom: .3rem; }
  .crests .crests__main img { height: 104px; }
  .crests li img { height: 40px; }
  .brand__logo { height: 42px; }
}
.brand__logo { display: block; }
.brand__logo img { display: block; width: auto; height: 50px; max-width: none; object-fit: contain; }
.site-foot__brand .brand__logo img { height: 96px; }
@media (max-width: 560px) { .brand__logo img { height: 42px; } }

/* roll of honour: the champion's title above the name */
.champ-title { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .1rem; }

/* roll of honour as a club honours board: latest champion large, then two columns of years */
.honours__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3.5rem); border-top: 2px solid var(--gold); }
.honour { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.honour__photo { display: block; width: 96px; height: 120px; object-fit: cover; object-position: center top; border-radius: 3px; background: var(--night-3); outline: 1px solid var(--line-2); outline-offset: 3px; }
.honour__photo--none { display: grid; place-items: center; font-family: var(--display); font-size: 1.9rem; font-weight: 600; color: var(--gold); letter-spacing: .02em; background: repeating-conic-gradient(var(--night-3) 0 25%, var(--night-2) 0 50%) 0 0 / 24px 24px; }
.honour__body { min-width: 0; }
.honour__year { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--gold-2); font-variant-numeric: lining-nums tabular-nums; margin-bottom: .35rem; }
.honour__year small { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: .5rem; vertical-align: middle; }
.honour__name { display: block; font-family: var(--display); font-size: 1.18rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.honour__meta { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin-top: .35rem; font-size: .88rem; color: var(--muted); }
.honour__meta a { color: var(--soft); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.honour__meta a:hover { color: var(--gold-2); text-decoration-color: currentColor; }
.honour__again { display: inline-block; margin-left: .6rem; padding: .2rem .5rem; border: 1px solid var(--gold); border-radius: 3px; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); vertical-align: middle; line-height: 1.2; }
.honour .champ-title { margin-bottom: .15rem; }
.honour--latest { grid-column: 1 / -1; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 2.75rem); padding: 1.6rem 0; }
.honour--latest .honour__photo { width: 200px; height: 250px; outline-offset: 5px; }
.honour--latest .honour__year { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: .6rem; }
.honour--latest .honour__name { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.honour--latest .honour__meta { font-size: 1rem; margin-top: .6rem; }
.honour--none { grid-template-columns: 96px minmax(0, 1fr); padding: .85rem 0; }
.honour--none .honour__year { margin: 0; color: var(--muted); font-size: 1.15rem; text-align: center; white-space: nowrap; }
.honour--none .honour__note { color: var(--muted); font-style: italic; }
@media (max-width: 760px) {
  .honours__list { grid-template-columns: minmax(0, 1fr); }
  .honour { grid-template-columns: 76px minmax(0, 1fr); gap: .9rem; }
  .honour__photo { width: 76px; height: 95px; }
  .honour--none { grid-template-columns: 76px minmax(0, 1fr); }
  .honour--latest { grid-template-columns: 120px minmax(0, 1fr); }
  .honour--latest .honour__photo { width: 120px; height: 150px; }
  .honour--latest .honour__year small { display: block; margin: .45rem 0 0; }
}

/* travel grant contact */
.grant__contact { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.grant__label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.grant .grant__contact p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; font-size: 1rem; color: var(--text); }
.grant__contact b { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.grant__tel { display: inline-flex; align-items: center; gap: .35rem; color: var(--gold-2); font-weight: 600; min-height: 44px; }
.grant__tel .icon { width: 1rem; height: 1rem; }
.grant__guide { margin-top: 1.1rem; }
