/* ==========================================================================
   Федерація фехтування України — design system
   Brand book: blue #0057B7 · yellow #FFD700 · navy #26235B · white
   Type: Roboto Slab Bold (display) · Geologica 300–700 (text)
   ========================================================================== */

@font-face { font-family: "Geologica"; src: url("/fonts/geologica.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geologica"; src: url("/fonts/geologica-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("/fonts/roboto-slab-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Flag emoji where the system has none (Windows shows 🇺🇦 as "UA"): a font with only the flags — drawings by Twemoji,
   CC-BY 4.0; font "Twemoji Country Flags" by TalkJS, MIT (fonts/LICENSE-TwemojiCountryFlags.md). main.js puts it in
   front (html.flag-font) only there; unicode-range keeps it to flag characters. */
@font-face { font-family: "Twemoji Country Flags"; src: url("/fonts/twemoji-country-flags.woff2") format("woff2"); unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; font-display: swap; }

:root {
  --blue: #0057b7;
  --blue-deep: #004592;
  --yellow: #ffd700;
  --navy: #26235b;
  --navy-deep: #1d1b48;
  --white: #fff;

  --ink: var(--navy);
  --ink-2: #55537a;
  --ink-3: #6e6c8c;
  --line: #e4e4ed;
  --line-2: #cdcddb;
  --paper-2: #f5f5f9;

  --font-slab: "Roboto Slab", Rockwell, "Courier New", Georgia, serif;
  --font-sans: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 2.2vw, 32px);
  --header-h: 76px;
  --alert-h: 0px;                                  /* warning bar above the header; main.js sets the exact height */
  --top-h: calc(var(--header-h) + var(--alert-h)); /* everything that sticks to the top */
  --section: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.4vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 3.4vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 6.4vw, 5.25rem);
  --fs-display: clamp(2.5rem, 8.6vw, 8.25rem);
}
html.flag-font {
  --font-slab: "Twemoji Country Flags", "Roboto Slab", Rockwell, "Courier New", Georgia, serif;
  --font-sans: "Twemoji Country Flags", "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.has-alert { --alert-h: 61px; }
@media (max-width: 600px) { .has-alert { --alert-h: 70px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* what scripts hide stays hidden, whatever display a component sets (calendar rows, «show more», empty notices…) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: light; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--fs-base)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.display, .h1, .h2, .slab { font-family: var(--font-slab); font-weight: 700; text-transform: uppercase; letter-spacing: .012em; }
.display { font-size: var(--fs-display); line-height: .94; letter-spacing: .004em; }
.h1 { font-size: var(--fs-h1); line-height: .98; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
.lead { font-size: var(--fs-lg); font-weight: 300; line-height: 1.5; color: var(--ink); max-width: 38em; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow .module { color: var(--blue); }
.muted { color: var(--ink-2); }
.meta { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.meta b { color: var(--blue); font-weight: 500; }
.caption { font-style: italic; font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- links & buttons ---------- */
.link { color: var(--blue); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }
.arrow-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; color: var(--blue); text-decoration: none; }
.section-head .arrow-link, .article-aside .arrow-link { white-space: nowrap; }
.arrow-link .arr { transition: transform .25s var(--ease); }
.arrow-link:hover .arr { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px; border: 1.5px solid var(--navy);
  font: 500 var(--fs-sm)/1 var(--font-sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  background: transparent; color: var(--navy); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); border-color: var(--navy); }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-xs); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font: 500 var(--fs-xs)/1 var(--font-sans); letter-spacing: .02em; cursor: pointer; text-decoration: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag {
  display: inline-block; padding: 3px 8px; border: 1px solid var(--line-2);
  font: 500 11px/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.tag--file { border-color: var(--blue); color: var(--blue); min-width: 46px; text-align: center; }

/* ---------- site top: warning bar + header, sticky together ---------- */
.site-top { position: sticky; top: 0; z-index: 60; }
.site-alert { background: var(--yellow); color: var(--navy); border-bottom: 1px solid rgba(38,35,91,.16); }
.site-alert .wrap { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.site-alert-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--yellow); font: 700 26px/1 var(--font-slab); }
.site-alert p { font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; text-wrap: pretty; }
@media (max-width: 600px) {
  .site-alert .wrap { gap: 12px; padding-block: 8px; }
  .site-alert-icon { width: 30px; height: 30px; font-size: 19px; }
  .site-alert p { font-size: var(--fs-xs); line-height: 1.35; }
}

/* ---------- header ---------- */
.site-header { position: relative; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--blue); text-decoration: none; flex-shrink: 0; }
.brand img { width: auto; height: 46px; }
.brand-word { font-family: var(--font-slab); font-weight: 700; font-size: 11.5px; line-height: 1.12; letter-spacing: .07em; text-transform: uppercase; }
.nav { display: flex; align-items: center; align-self: stretch; gap: clamp(14px, 1.8vw, 30px); margin-left: auto; }
.nav-list { display: flex; align-self: stretch; gap: clamp(12px, 1.5vw, 26px); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item:hover, .nav-item.is-open { z-index: 2; }
.nav > a, .nav-link { position: relative; padding: 10px 0; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav > a::after, .nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.nav > a:hover::after, .nav-link:hover::after, .nav-link[aria-current]::after, .nav-item.is-open > .nav-link::after { transform: scaleX(1); }
.nav .nav-lang { color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .1em; }
.nav-toggle { display: grid; place-items: center; width: 24px; height: 36px; margin-right: -6px; padding: 0; border: 0; background: none; color: var(--ink-3); cursor: pointer; }
.nav-toggle:hover { color: var(--navy); }
.chev { transition: transform .22s var(--ease); }
.nav-item.is-open .chev { transform: rotate(180deg); }
/* popup: opens on hover (mouse), on the arrow button (keyboard, touch); fades out with a short grace period */
.nav-drop {
  position: absolute; top: 100%; left: -18px; min-width: 236px; padding: 8px 0;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--yellow);
  box-shadow: 0 24px 48px -24px rgba(38,35,91,.4);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s var(--ease) .1s, transform .16s var(--ease) .1s, visibility 0s linear .26s;
}
.nav-item.is-open > .nav-drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) {
  .nav-item[data-drop]:hover > .nav-drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-item[data-drop]:hover > .nav-link::after { transform: scaleX(1); }
  .nav-item[data-drop]:hover .chev { transform: rotate(180deg); }
}
html:not(.js) .nav-item:focus-within > .nav-drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-drop a { display: block; padding: 9px 18px; font-size: var(--fs-sm); line-height: 1.35; text-decoration: none; white-space: nowrap; }
.nav-drop a:hover { background: var(--paper-2); color: var(--blue); }
.nav-drop a[aria-current] { color: var(--blue); font-weight: 600; box-shadow: inset 3px 0 0 var(--yellow); }
/* deeper menu levels, group labels, highlighted items (CMS → «Меню») */
.nav-drop .nav-sub { margin: 0 0 6px 18px; border-left: 1px solid var(--line); }
.nav-drop .nav-sub a { padding-block: 6px; font-size: var(--fs-xs); color: var(--ink-2); }
.nav-drop-label { display: block; padding: 12px 18px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
span.nav-link { cursor: default; }
.nav-link.is-current::after { transform: scaleX(1); }
.nav-link.is-accent, .nav-drop a.is-accent { color: var(--blue); font-weight: 600; }
.nav-link.is-accent::before { content: ""; position: absolute; top: 4px; right: -7px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--navy); }
.nav-item[data-drop] > .nav-link.is-accent::before { right: -4px; }
.header-cta { flex-shrink: 0; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 12px; }
.burger span { display: block; height: 2px; background: var(--navy); transition: transform .25s var(--ease), opacity .2s; }
.burger span + span { margin-top: 7px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-nav { position: fixed; inset: var(--top-h) 0 0; z-index: 55; background: var(--navy); color: #fff; padding: 12px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 32px; }
.mobile-nav[hidden] { display: none; }
.mnav > li > a, .mnav summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--font-slab); font-size: clamp(1.4rem, 6vw, 2rem); text-transform: uppercase; text-decoration: none; letter-spacing: .02em; cursor: pointer; }
.mnav > li > a .arr { color: var(--yellow); }
.mnav summary { list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary .chev { flex: none; width: 18px; height: 11px; color: var(--yellow); }
.mnav details[open] > summary { border-bottom-color: transparent; }
.mnav details[open] > summary .chev { transform: rotate(180deg); }
.mnav details > ul { padding: 2px 0 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.mnav details a { display: block; padding: 9px 0 9px 18px; border-left: 2px solid rgba(255,255,255,.18); font-size: var(--fs-base); text-decoration: none; color: rgba(255,255,255,.86); }
.mnav details a:hover { color: #fff; }
.mnav details a[aria-current] { color: var(--yellow); border-left-color: var(--yellow); }
.mnav .mnav-sub { margin: 2px 0 6px 18px; }
.mnav .mnav-sub a { padding-block: 6px; font-size: var(--fs-sm); color: rgba(255,255,255,.72); }
.mnav .mnav-label { display: block; padding: 12px 0 4px 18px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.mnav .is-accent { color: var(--yellow); }
@supports (interpolate-size: allow-keywords) {
  .mobile-nav { interpolate-size: allow-keywords; }
  .mnav details::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
  .mnav details[open]::details-content { height: auto; }
}
.mobile-nav .sub { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--fs-sm); color: rgba(255,255,255,.78); }
.mobile-nav .sub a { text-decoration: none; }
body.nav-open { overflow: hidden; }

/* below this the menu (with its popup arrows) no longer fits next to the logo and the button */
@media (max-width: 1199px) {
  .nav:not(.nav--en), .header-cta { display: none; }
  .burger { display: block; }
}

/* ---------- site search: the magnifier, a full-width bar under the header, live results ---------- */
.search-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; flex-shrink: 0; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: var(--blue); }
.search-toggle--m { display: none; }
html:not(.js) .search-toggle, html:not(.js) .mnav-search { display: none !important; }
.mnav-search { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); font: 500 var(--fs-base)/1 var(--font-sans); text-align: left; cursor: pointer; }
.mnav-search:hover { border-color: var(--yellow); color: #fff; }
.site-search { position: absolute; left: 0; right: 0; top: 100%; z-index: 2; }
.site-search-box { background: #fff; border-top: 1px solid var(--line); box-shadow: 0 32px 64px -32px rgba(20, 18, 50, .45); }
.site-search-bar { display: flex; align-items: center; gap: 16px; padding-block: clamp(14px, 2vw, 22px); color: var(--blue); }
.site-search-bar svg { width: 30px; height: 30px; flex-shrink: 0; }
.site-search-bar input { flex: 1; min-width: 0; padding: 6px 0 10px; border: 0; border-bottom: 3px solid var(--line); background: none; color: var(--navy); font: 600 clamp(1.4rem, 3.4vw, 2.5rem)/1.2 var(--font-sans); letter-spacing: -.01em; outline: none; border-radius: 0; -webkit-appearance: none; appearance: none; }
.site-search-bar input:focus, .site-search-bar input:focus-visible { border-bottom-color: var(--yellow); outline: none; box-shadow: none; }   /* the thick underline is the focus mark */
.site-search-bar input::placeholder { color: var(--ink-3); opacity: .55; font-weight: 400; }
.site-search-bar input::-webkit-search-cancel-button { display: none; }
.site-search-close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 18px; cursor: pointer; }
.site-search-close:hover { border-color: var(--navy); }
.site-search-panel { max-height: calc(100vh - var(--top-h) - 110px); max-height: calc(100dvh - var(--top-h) - 110px); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.site-search-panel .wrap { padding-block: 14px 28px; }
.site-search-status { font-size: var(--fs-xs); letter-spacing: .04em; color: var(--ink-3); }
.site-search-status:empty { display: none; }
.site-search-list { margin-top: 10px; border-top: 1px solid var(--line); }
.site-search-list:empty { display: none; }
.site-search-list li { border-bottom: 1px solid var(--line); }
.site-search-list a { display: grid; gap: 4px; padding: 14px 12px; margin-inline: -12px; text-decoration: none; }
.site-search-list a:hover, .site-search-list a:focus-visible { background: var(--paper-2); outline: none; box-shadow: inset 3px 0 0 var(--yellow); }
.ss-meta { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.ss-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; color: var(--navy); }
.ss-snip { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
.site-search-list mark { background: var(--yellow); color: var(--navy); padding: 0 1px; border-radius: 2px; }
.site-search-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 16px; }
.site-search-foot:empty { display: none; }
/* inside the sticky top (its own stacking context): behind the header and the bar, above the page */
.site-search-backdrop { position: fixed; inset: 0; z-index: -1; background: rgba(20, 18, 50, .35); }
body.search-open { overflow: hidden; }
/* narrow screens: the magnifier sits next to the burger (the menu with its own magnifier is hidden there) */
@media (max-width: 1199px) { .search-toggle--m { display: grid; margin-left: auto; } .burger { margin-left: 0; } }
@media (max-width: 600px) { .site-search-bar { gap: 10px; } .site-search-bar svg { width: 22px; height: 22px; } .site-search-close { width: 38px; height: 38px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vw, 32px); min-height: min(calc(100svh - var(--top-h)), 840px); padding-block: clamp(56px, 10vw, 120px); }
.hero .display { color: var(--navy); max-width: 10.5em; }
.hero .display .accent { color: var(--blue); }
.hero .bar { width: 72px; height: 8px; background: var(--yellow); }
.hero .lead { max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-corner { position: absolute; right: 0; bottom: 0; z-index: 1; width: min(54vw, 900px); color: var(--blue); pointer-events: none; }
.hero-corner svg { width: 100%; height: auto; }
.hero-facts { position: relative; z-index: 2; border-top: 1px solid var(--line); background: rgba(255,255,255,.9); }
@media (max-width: 860px) {
  .hero-inner { min-height: 0; padding-bottom: 40px; }
  .hero-corner { position: relative; width: 100%; margin-top: -24px; }
}

/* top story strip */
.topstory { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 20px 0; text-decoration: none; }
.topstory .tag { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.topstory .t { font-weight: 500; font-size: var(--fs-base); line-height: 1.35; }
@media (max-width: 640px) { .topstory { gap: 14px; align-items: start; } .topstory .t { font-size: var(--fs-sm); } }
.topstory:hover .t { color: var(--blue); }
.topstory .arr { color: var(--blue); font-size: 1.25rem; transition: transform .25s var(--ease); }
.topstory:hover .arr { transform: translateX(4px); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .h2 { flex-shrink: 0; }
.section-head .rule { flex: 1; height: 1px; background: var(--line-2); transform: translateY(-.35em); min-width: 24px; }
.section-head .arrow-link { flex-shrink: 0; font-size: var(--fs-sm); }
@media (max-width: 640px) { .section-head { flex-wrap: wrap; } .section-head .rule { display: none; } .section-head .arrow-link { width: 100%; } }

/* editorial split, as on the brand-book pages */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.split:first-child { border-top: 0; }
.split-aside .h-label { position: sticky; top: calc(var(--top-h) + 24px); font-family: var(--font-slab); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.08; text-transform: uppercase; letter-spacing: .02em; }
.split-aside .num { display: block; margin-bottom: 10px; font: 500 var(--fs-xs)/1 var(--font-sans); letter-spacing: .14em; color: var(--blue); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-aside .h-label { position: static; } }

/* ---------- quick index ---------- */
.index-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.index-links a { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 176px; padding: 26px 24px 24px; text-decoration: none; border-left: 1px solid var(--line); transition: background-color .25s, color .25s; }
.index-links a:first-child { border-left: 0; }
.index-links .num { font: 500 var(--fs-xs)/1 var(--font-sans); letter-spacing: .14em; color: var(--blue); }
.index-links .t { font-family: var(--font-slab); font-size: 1.375rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.index-links .d { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.45; }
.index-links .arr { margin-top: auto; font-size: 1.25rem; color: var(--blue); transition: transform .25s var(--ease), color .25s; }
.index-links a:hover { background: var(--blue); color: #fff; }
.index-links a:hover .num, .index-links a:hover .d { color: rgba(255,255,255,.8); }
.index-links a:hover .arr { color: var(--yellow); transform: translateX(6px); }
@media (max-width: 1024px) { .index-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .index-links a { border-left: 0; border-top: 1px solid var(--line); min-height: 140px; } .index-links a:nth-child(-n+2) { border-top: 0; } .index-links a:nth-child(even) { border-left: 1px solid var(--line); } .index-links a:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .index-links { grid-template-columns: 1fr; } .index-links a { min-height: 0; border-left: 0 !important; border-top: 1px solid var(--line) !important; flex-direction: row; align-items: baseline; gap: 16px; padding: 18px 0; } .index-links a:first-child { border-top: 0 !important; } .index-links .d { display: none; } .index-links .arr { margin: 0 0 0 auto; } .index-links a:hover { background: none; color: var(--blue); } .index-links a:hover .num { color: var(--blue); } }

/* ---------- news ---------- */
.news-home { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); }
@media (max-width: 960px) { .news-home { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); }
/* the whole photo, never cropped: a portrait or square one stands in the middle, a very wide one at the top; the frame's
   background shows around it */
.card-media img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 0; }
.card-title { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.card-title a { text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 3px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.card:hover .card-title a { background-size: 100% 3px; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-excerpt { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--feature .card-title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.12; font-weight: 600; letter-spacing: -.015em; }
.card--feature .card-media { aspect-ratio: 16 / 10; }

.ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; background-color: var(--blue); color: #fff; }
.ph--navy { background-color: var(--navy); }
.ph .ph-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-slab); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.ph .ph-label .module { color: var(--yellow); }

.news-list { border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 18px 0; text-decoration: none; }
.news-list time { padding-top: 3px; font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.news-list .t { font-weight: 500; line-height: 1.38; transition: color .2s; }
.news-list .c { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--blue); letter-spacing: .02em; }
.news-list a:hover .t { color: var(--blue); }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) var(--gap); }
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.filters .label { margin-right: 6px; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.filters .sep { width: 1px; height: 24px; background: var(--line); margin: 0 10px; }

/* ---------- navy band: season & history ---------- */
.band { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.band .ornament-ribbon { color: var(--blue); display: block; }
.band-inner { padding-block: clamp(56px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
@media (max-width: 960px) { .band-inner { grid-template-columns: 1fr; } }
.band .eyebrow { color: rgba(255,255,255,.72); }
.band .eyebrow .module { color: var(--yellow); }
.season-num { font-family: var(--font-slab); font-weight: 700; font-size: clamp(6rem, 17vw, 13.5rem); line-height: .8; color: var(--yellow); letter-spacing: -.02em; margin: 18px 0 16px; }
.season-note { font-size: var(--fs-lg); font-weight: 300; line-height: 1.45; max-width: 22em; color: rgba(255,255,255,.9); }
.medals { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.medals li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: rgba(255,255,255,.8); }
.medals b { font-family: var(--font-slab); font-size: 1.75rem; color: #fff; font-weight: 700; }
.medal-dot { width: 12px; height: 12px; border-radius: 50%; }
.medal-dot.g { background: var(--yellow); } .medal-dot.s { background: #c9cbd8; } .medal-dot.b { background: #c98b5a; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.18); }
.stats > div { padding: 24px 0 26px; border-bottom: 1px solid rgba(255,255,255,.18); }
.stats > div:nth-child(odd) { padding-right: 24px; border-right: 1px solid rgba(255,255,255,.18); }
.stats > div:nth-child(even) { padding-left: 24px; }
.stats dt { font-family: var(--font-slab); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -.01em; }
.stats dd { margin-top: 8px; font-size: var(--fs-sm); color: rgba(255,255,255,.75); line-height: 1.4; }
.band .arrow-link { color: #fff; }
.band .arrow-link .arr { color: var(--yellow); }

/* ---------- announcements ---------- */
.ann-list { border-top: 1px solid var(--line); }
.ann-list > li { border-bottom: 1px solid var(--line); }
.ann { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; padding: 24px 0; align-items: start; text-decoration: none; }
.ann time, .ann .no-date { font-size: var(--fs-xs); color: var(--ink-3); padding-top: 4px; font-variant-numeric: tabular-nums; }
.ann .no-date::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--line-2); vertical-align: middle; }
.ann .t { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.ann .x { margin-top: 8px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; max-width: 60em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ann-list--compact .ann .x { -webkit-line-clamp: 2; }
.ann .arr { color: var(--blue); font-size: 1.2rem; padding-top: 2px; transition: transform .25s var(--ease); }
a.ann:hover .t { color: var(--blue); }
a.ann:hover .arr { transform: translateX(4px); }
@media (max-width: 700px) { .ann { grid-template-columns: 1fr auto; gap: 6px 16px; } .ann time, .ann .no-date { grid-column: 1 / -1; } }

/* ---------- call to action (blue) ---------- */
.cta { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); padding-block: clamp(56px, 8vw, 104px); align-items: end; }
.cta .h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
.cta p { color: rgba(255,255,255,.88); font-weight: 300; font-size: var(--fs-lg); line-height: 1.5; margin-top: 18px; max-width: 26em; }
.cta .phone { display: block; font-family: var(--font-slab); font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1; text-decoration: none; letter-spacing: .01em; }
.cta .phone:hover { color: var(--yellow); }
.cta .messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cta .small { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 14px; }
.cta-corner { position: absolute; right: 0; top: 0; width: min(40vw, 520px); color: rgba(255,255,255,.1); transform: scaleY(-1); pointer-events: none; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } .cta-corner { width: 70vw; } }

/* ---------- partners ---------- */
.partners { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partners > a { grid-column: span var(--lg, 3); }
.partners a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 150px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .2s; }
.partners img { max-height: 64px; max-width: 76%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; mix-blend-mode: multiply; transition: filter .3s, opacity .3s; }
.partners a:hover { background: var(--paper-2); }
.partners a:hover img { filter: none; opacity: 1; }
.partners .n { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; }
.partners .role { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 860px) { .partners > a { grid-column: span var(--sm, 6); } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #fff; }
main > .wrap:last-child { padding-bottom: var(--section); }
.site-footer .ornament-ribbon { color: var(--blue); display: block; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(var(--footer-cols, 3), minmax(0, 2fr)) minmax(0, 3fr); gap: var(--gap); padding-block: clamp(48px, 6vw, 88px) 48px; }
.footer-grid.no-contacts { grid-template-columns: minmax(0, 4fr) repeat(var(--footer-cols, 3), minmax(0, 2fr)); }
.site-footer h2 a { color: inherit; text-decoration: none; }
.site-footer a.is-accent { color: var(--yellow); }
.footer-brand img { width: 108px; }
.footer-brand p { margin-top: 20px; font-size: var(--fs-sm); color: rgba(255,255,255,.72); max-width: 22em; line-height: 1.55; }
.site-footer h2 { margin-bottom: 16px; font: 500 var(--fs-xs)/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.site-footer ul { display: grid; gap: 10px; list-style: none; padding: 0; }
.site-footer li a, .footer-contacts a { font-size: var(--fs-sm); color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer li a:hover, .footer-contacts a:hover { color: #fff; text-decoration: underline; }
.footer-contacts { display: grid; gap: 14px; font-size: var(--fs-sm); }
.footer-contacts .big { font-family: var(--font-slab); font-size: 1.5rem; color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px 32px; border-top: 1px solid rgba(255,255,255,.14); font-size: var(--fs-xs); color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.8); }
@media (max-width: 1024px) { .footer-grid, .footer-grid.no-contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand, .footer-contacts-col { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid, .footer-grid.no-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- inner pages ---------- */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head .wrap { position: relative; z-index: 2; padding-block: clamp(40px, 6vw, 88px) 0; }
.page-head .h1 { max-width: 13em; }
.page-head .lead { margin-top: 20px; }
.page-head-corner { position: absolute; right: 0; bottom: 0; width: min(34vw, 420px); color: var(--blue); pointer-events: none; }
.page-head--plain .page-head-corner { display: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: var(--fs-xs); color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { color: var(--line-2); }
.subnav { position: relative; z-index: 2; display: flex; gap: clamp(18px, 2.6vw, 36px); margin-top: clamp(32px, 5vw, 56px); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { position: relative; padding: 14px 0 16px; background: var(--white); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--ink-2); }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.subnav a:hover { color: var(--navy); }
.subnav a[aria-current] { color: var(--navy); }
.subnav a[aria-current]::after, .subnav a:hover::after { transform: scaleX(1); }
.page-body { padding-block: clamp(40px, 6vw, 80px) 0; }
@media (max-width: 960px) { .page-head-corner { width: 26vw; } .page-head .lead { max-width: 64vw; } }
@media (max-width: 560px) { .page-head-corner { display: none; } }

/* ---------- article ---------- */
.article-head .wrap { padding-bottom: clamp(32px, 4vw, 56px); }
.article-title { font-family: var(--font-slab); font-weight: 700; font-size: clamp(1.875rem, 4.2vw, 3.5rem); line-height: 1.06; letter-spacing: -.005em; max-width: 22em; margin-top: 18px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .02em; }
.article-meta .cat { color: var(--blue); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.article-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(36px, 5vw, 64px); }
/* the cover across the page, never cropped: landscape and square ones fill the width, a portrait one fits a square box */
.article-cover { container-type: inline-size; }
.article-cover a { display: block; background: var(--paper-2); }
.article-cover img { width: 100%; height: auto; max-height: 100vw; max-height: 100cqw; object-fit: contain; }
.article-cover figcaption { margin-top: 10px; font-style: italic; font-size: var(--fs-xs); color: var(--ink-3); }
.article-aside { position: relative; }
.article-aside .sticky { position: sticky; top: calc(var(--top-h) + 24px); display: grid; gap: 28px; }
.article-aside h2 { font: 500 var(--fs-xs)/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); border-top: 1px solid var(--line); padding-top: 28px; margin-top: 56px; }
.article-nav a { text-decoration: none; display: grid; gap: 8px; }
.article-nav a .t { font-weight: 500; line-height: 1.35; }
.article-nav a:hover .t { color: var(--blue); }
.article-nav .next { text-align: right; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-aside .sticky { position: static; } }

.prose { font-size: 1.0625rem; line-height: 1.72; max-width: 44em; }
.prose > * + * { margin-top: 1.05em; }
.prose > p:first-child { font-size: var(--fs-lg); line-height: 1.55; }
.prose strong { font-weight: 600; }
.prose a:not(.btn):not(.arrow-link) { color: var(--blue); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--blue) 40%, transparent); word-break: break-word; }
.prose a:not(.btn):not(.arrow-link):hover { text-decoration-color: currentColor; }
.prose h2, .prose h3, .prose h4 { font-weight: 700; line-height: 1.25; margin-top: 1.8em; }
.prose h2 { font-size: 1.5rem; } .prose h3 { font-size: 1.25rem; } .prose h4 { font-size: 1.0625rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--blue); }
.prose blockquote { border-left: 3px solid var(--yellow); padding: 4px 0 4px 22px; font-size: 1.15em; font-weight: 300; }
.prose figure { margin-block: 2em; }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: 10px; font-style: italic; font-size: var(--fs-xs); color: var(--ink-3); }
/* spacing chosen per paragraph in the CMS editor («Інтервали»): line height, space before, space after */
.prose .lh-tight { line-height: 1.38; }
.prose .lh-tight li + li { margin-top: .12em; }
.prose .lh-loose { line-height: 2.05; }
.prose > .sa-0 + * { margin-top: 0; }
.prose > .sa-s + * { margin-top: .35em; }
.prose > .sa-l + * { margin-top: 2.2em; }
.prose > .sb-0 { margin-top: 0; }
.prose > .sb-s { margin-top: .35em; }
.prose > .sb-l { margin-top: 2.2em; }
/* one photo: the column's width (default), narrower in the middle, or at a side with the text flowing round it */
.prose figure:is(.fig-left, .fig-right, .fig-center) { width: 50%; }
.prose figure:is(.fig-left, .fig-right, .fig-center).fig-s { width: 33%; }
.prose figure:is(.fig-left, .fig-right, .fig-center).fig-l { width: 70%; }
.prose figure.fig-center { margin-inline: auto; }
.prose figure.fig-left { float: left; margin: .3em 1.6em 1em 0; }
.prose figure.fig-right { float: right; margin: .3em 0 1em 1.6em; }
.prose :is(h2, h3, h4, hr, .gallery, .table-wrap, .doc-card) { clear: both; }
.prose::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) {   /* phones: no text beside a photo; placed photos take the column (a small one in the middle: 2/3) */
  .prose figure:is(.fig-left, .fig-right), .prose figure:is(.fig-left, .fig-right, .fig-center):is(.fig-s, .fig-m, .fig-l) { float: none; width: auto; margin: 2em 0; }
  .prose figure.fig-center.fig-s { width: 66%; margin-inline: auto; }
}
/* photo blocks: rows of 2, 3 or 4; the old site's galleries (no layout class) and g-feature: the first photo big */
.prose .gallery { display: grid; gap: 6px; }
.prose .gallery > figure { margin: 0; position: relative; }
.prose .gallery.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .gallery.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .gallery.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prose .gallery:is(.g-2, .g-3, .g-4) img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prose .gallery.g-nocrop { align-items: start; }
.prose .gallery.g-nocrop img { aspect-ratio: auto; height: auto; }
@media (max-width: 600px) { .prose .gallery:is(.g-3, .g-4) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose .gallery:not(.g-2, .g-3, .g-4) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.prose .gallery:not(.g-2, .g-3, .g-4) > figure { grid-column: span 2; }
.prose .gallery:not(.g-2, .g-3, .g-4) img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prose .gallery:not(.g-2, .g-3, .g-4) > figure:first-child { grid-column: 1 / -1; }
.prose .gallery:not(.g-2, .g-3, .g-4) > figure:first-child img { aspect-ratio: auto; height: auto; }
@media (min-width: 601px) {
  .prose .gallery[data-rem="1"] > figure:last-of-type { grid-column: 1 / -1; }
  .prose .gallery[data-rem="1"] > figure:last-of-type img { aspect-ratio: 16 / 9; }
  .prose .gallery[data-rem="2"] > figure:nth-last-of-type(-n+2):not(:first-child) { grid-column: span 3; }
}
@media (max-width: 600px) { .prose .gallery:not(.g-2, .g-3, .g-4) > figure { grid-column: span 3; } .prose .gallery[data-rem] > figure:last-of-type:nth-of-type(even) { grid-column: 1 / -1; } }
.prose .gallery > figcaption { grid-column: 1 / -1; margin-top: 4px; }
/* each photo's own caption (its author, who is on it): on the photo at its bottom (as on the old site), under it
   (cap-under), or only in the photo viewer (cap-none) */
.prose .gallery > figure > figcaption { position: absolute; inset: auto 0 0 0; margin: 0; padding: 26px 10px 8px; font-style: normal; font-size: 12px; line-height: 1.35; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .66)); pointer-events: none; }
.prose .gallery.cap-under > figure > figcaption { position: static; padding: 6px 0 2px; font-style: italic; color: var(--ink-3); background: none; }
.prose .gallery.cap-none > figure > figcaption { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.prose > p:first-child strong { font-weight: 500; }
/* tables: lines between rows (default), a full grid (t-grid) or none (t-plain); striped, compact, as wide as their content */
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.55; }
.prose td, .prose th { border-top: 1px solid var(--line); padding: 14px 12px 14px 0; vertical-align: top; text-align: left; }
.prose th { font-weight: 600; }
.prose thead th { border-top: 0; border-bottom: 2px solid var(--line-2); }
.prose tr:last-child td { border-bottom: 1px solid var(--line); }
.prose table .a-c { text-align: center; }
.prose table .a-r { text-align: right; }
.prose table.t-auto { width: auto; }
.prose table.t-compact :is(td, th) { padding-block: 6px; }
.prose table:is(.t-zebra, .t-grid) :is(td, th) { padding-left: 12px; }
.prose table.t-zebra tbody tr:nth-child(odd) { background: var(--paper-2); }
.prose table.t-grid :is(td, th), .prose table.t-grid tr:last-child td { border: 1px solid var(--line-2); }
.prose table.t-plain :is(td, th), .prose table.t-plain tr:last-child td { border: 0; }
/* a document in a text: a card (type, size, opens in a new tab); a PDF can also show on the page (main.js, wide screens) */
.prose .doc-card { display: flex; align-items: center; gap: 16px; max-width: 38em; padding: 14px 18px; border: 1px solid var(--line); background: var(--paper-2); }
.prose .doc-ico { flex: none; display: grid; place-items: center; width: 42px; height: 52px; background: var(--blue); color: #fff; font: 700 10.5px/1 var(--font-sans); letter-spacing: .06em; clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%); }
.prose .doc-body { display: grid; gap: 3px; flex: 1; min-width: 0; }
.prose a.doc-title { font-weight: 600; text-decoration: none; }
.prose a.doc-title:hover { text-decoration: underline; }
.prose .doc-meta { font-size: var(--fs-xs); color: var(--ink-3); }
.prose a.doc-dl { flex: none; font-size: var(--fs-sm); }
.prose .doc-view { display: block; width: 100%; height: min(85vh, 960px); margin-top: 8px; border: 1px solid var(--line); background: var(--paper-2); }
@media (max-width: 600px) { .prose .doc-card { flex-wrap: wrap; } .prose a.doc-dl { margin-left: 58px; } }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.5em; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--paper-2); border-left: 3px solid var(--yellow); font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- tables & data lists ---------- */
.data-toolbar { display: grid; gap: 14px; margin-bottom: 28px; }
.data-toolbar .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field { position: relative; display: flex; align-items: center; }
.field input, .field select { height: 48px; border: 1px solid var(--line-2); background: #fff; padding: 0 16px; border-radius: 0; appearance: none; -webkit-appearance: none; min-width: 0; font-size: var(--fs-sm); }
.field select { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2326235b' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--yellow); }
.field--search { flex: 1 1 320px; }
.field--search input { width: 100%; padding-left: 46px; }
.field--search svg { position: absolute; left: 16px; color: var(--ink-3); pointer-events: none; }
.count { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .02em; }

.rows { border-top: 1px solid var(--navy); }
.rows > li { border-bottom: 1px solid var(--line); }
.rows-head { display: grid; padding: 12px 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }

/* calendar */
.event { display: grid; grid-template-columns: minmax(150px, max-content) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; }
/* the dates as a table without borders: [day] – [day] in big type; under them the month (and year) in small type, across
   both days in one month, each under its own day otherwise; every cell centred */
.event .when { display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: baseline; gap: 6px 6px;
  font-family: var(--font-slab); font-size: 1.5rem; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.event .when--day { grid-template-columns: auto; }
.event .when .d, .event .when .m { text-align: center; }
.event .when .d { grid-row: 1; grid-column: 1; }
.event .when .dash { grid-row: 1; grid-column: 2; }
.event .when .d--end { grid-column: 3; }
.event .when .m { grid-row: 2; grid-column: 1; font: 400 var(--fs-xs)/1.2 var(--font-sans); color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; }
.event .when .m--end { grid-column: 3; }
.event .when .m--all { grid-column: 1 / -1; }
.event .t { font-weight: 600; font-size: 1.0625rem; }
.event .where { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 4px; }
.event .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
/* the event's documents: regulations, entry form */
.event .ev-docs { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; font-size: var(--fs-sm); }
.event .ev-doc { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--blue); text-decoration: none; }
.event .ev-doc:hover { text-decoration: underline; }
.event .ev-doc .ext { font: 600 10px/1 var(--font-sans); letter-spacing: .06em; padding: 3px 5px; border: 1px solid currentColor; border-radius: 2px; }
.event.is-past { opacity: .5; }
.event .status { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tentative { display: inline-block; padding: 1px 6px; border: 1px dashed var(--line-2); font-size: 11px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); vertical-align: 1px; cursor: help; }
.cal-notes { display: grid; gap: 6px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-3); }
.cal-notes .tentative { cursor: default; }
@media (max-width: 760px) { .event { grid-template-columns: 1fr; gap: 10px; } .event .tags { justify-content: flex-start; } }

/* results */
.result { display: grid; grid-template-columns: 100px minmax(0, 1fr) 150px 190px 72px; gap: 20px; align-items: center; padding: 16px 0; font-size: var(--fs-sm); }
.result .s { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: var(--fs-xs); }
.result .n { font-weight: 500; line-height: 1.35; }
.result .c { color: var(--ink-2); }
.result .k { color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.4; }
.result .f { justify-self: end; }
.result .f a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); text-decoration: none; font-weight: 500; font-size: var(--fs-xs); letter-spacing: .06em; }
.result .f a:hover { text-decoration: underline; }
@media (max-width: 900px) { .result { grid-template-columns: 1fr auto; gap: 4px 16px; } .result .s { grid-column: 1; grid-row: 1; } .result .n { grid-column: 1; } .result .c, .result .k { grid-column: 1; } .result .f { grid-column: 2; grid-row: 1 / span 4; align-self: center; } }
.more-wrap { display: flex; justify-content: center; padding-top: 32px; }

/* rankings */
.rank { width: 100%; border-collapse: collapse; }
.rank th, .rank td { border-bottom: 1px solid var(--line); padding: 20px 16px 20px 0; text-align: left; vertical-align: top; }
.rank thead th { font: 500 11px/1.3 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--navy); padding-block: 12px; }
.rank tbody th { font-family: var(--font-slab); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; width: 16%; }
.rank .cell { display: grid; gap: 6px; }
.rank a, .rank .na { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); font-size: var(--fs-xs); font-weight: 500; text-decoration: none; min-width: 120px; }
.rank a:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.rank a .arr { color: var(--blue); }
.rank a:hover .arr { color: var(--yellow); }
.rank .na { color: var(--ink-3); border-style: dashed; }
.rank-wrap { overflow-x: auto; }
@media (max-width: 860px) {
  .rank thead { display: none; }
  .rank, .rank tbody, .rank tr, .rank th, .rank td { display: block; width: 100%; }
  .rank tbody th { border: 0; padding: 24px 0 8px; width: auto; }
  .rank td { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; }
  .rank td::before { content: attr(data-col); font-size: var(--fs-xs); color: var(--ink-3); padding-top: 9px; }
}

/* clubs */
.region-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.club-group + .club-group { margin-top: clamp(40px, 5vw, 64px); }
.club-group > h2 { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--navy); font-family: var(--font-slab); font-size: 1.375rem; text-transform: uppercase; letter-spacing: .02em; }
.club-group > h2 small { font: 400 var(--fs-xs)/1 var(--font-sans); letter-spacing: .04em; text-transform: none; color: var(--ink-3); }
.club { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) 210px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.club .name { font-weight: 600; line-height: 1.35; }
.club .city { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 6px; }
.club .locs { display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.club .loc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.club .loc a { color: var(--blue); font-size: var(--fs-xs); font-weight: 500; text-decoration: none; white-space: nowrap; }
.club .loc a:hover { text-decoration: underline; }
.club .dist { font-size: var(--fs-xs); font-weight: 600; color: var(--navy); background: var(--yellow); padding: 2px 6px; }
.club .weapons { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-content: start; }
@media (max-width: 860px) { .club { grid-template-columns: 1fr; gap: 12px; } .club .weapons { justify-content: flex-start; } }

/* documents */
.doc-group + .doc-group { margin-top: clamp(40px, 5vw, 64px); }
.doc-group > h2 { padding-bottom: 14px; border-bottom: 1px solid var(--navy); font-family: var(--font-slab); font-size: 1.375rem; text-transform: uppercase; letter-spacing: .02em; }
.doc { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.doc .t { font-weight: 500; line-height: 1.4; }
.doc .dl { font-size: var(--fs-xs); color: var(--blue); font-weight: 500; white-space: nowrap; }
.doc:hover .t { color: var(--blue); }
.doc:hover .tag--file { background: var(--blue); color: #fff; }
.doc.is-missing { color: var(--ink-3); }
.doc.is-missing .tag--file { border-color: var(--line-2); color: var(--ink-3); background: none; }
.doc.is-missing .dl { color: var(--ink-3); font-weight: 400; }

/* people */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) var(--gap); }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .people { grid-template-columns: 1fr; } }
.person .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); margin-bottom: 16px; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(1) contrast(1.04); transition: filter .5s var(--ease), transform .6s var(--ease); }
.person:hover .photo img { filter: none; transform: scale(1.02); }
.person .photo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 4px; background: var(--yellow); transition: width .4s var(--ease); }
.person:hover .photo::after { width: 100%; }
.person .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-slab); font-size: 2.5rem; color: var(--blue); letter-spacing: .04em; }
.person .name { font-weight: 600; line-height: 1.3; }
.person .role { margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; }

.leader { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: end; padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); margin-bottom: clamp(48px, 6vw, 88px); }
.leader .photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.leader .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.leader .h2 { margin: 14px 0 24px; }
.leader ul { display: grid; gap: 0; border-top: 1px solid var(--line); list-style: none; padding: 0; }
.leader li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; } .leader .photo { max-width: 360px; } }

/* contacts */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.contact-cards > div { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line); }
.contact-cards > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.contact-cards .big { display: inline-block; margin-top: 14px; font-family: var(--font-slab); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; text-decoration: none; word-break: break-word; }
.contact-cards .big:hover { color: var(--blue); }
.contact-cards p { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-sm); }
.contact-cards .messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } .contact-cards > div + div { padding-left: 0; border-left: 0; } }
.team { display: grid; gap: 0; border-top: 1px solid var(--line); }
.team-member { display: grid; grid-template-columns: 120px minmax(0, 4fr) minmax(0, 5fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.team-member img { width: 120px; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); }
.team-member .monogram { display: grid; place-items: center; width: 120px; aspect-ratio: 1; background: var(--paper-2); font-family: var(--font-slab); font-size: 2rem; color: var(--blue); letter-spacing: .04em; }
.team-member .name { font-weight: 600; font-size: 1.125rem; }
.team-member .role { margin-top: 4px; font-size: var(--fs-xs); color: var(--blue); letter-spacing: .12em; text-transform: uppercase; }
.team-member .links { display: grid; gap: 6px; margin-top: 14px; font-size: var(--fs-sm); }
.team-member .links a { color: var(--blue); text-decoration: none; word-break: break-all; }
.team-member .links a:hover { text-decoration: underline; }
.team-member .bio { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
@media (max-width: 760px) { .team-member { grid-template-columns: 88px 1fr; } .team-member img, .team-member .monogram { width: 88px; } .team-member .bio { grid-column: 1 / -1; } }

/* forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form label { display: grid; gap: 8px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .04em; color: var(--ink-2); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { height: 52px; width: 100%; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 0; background: #fff; font-size: var(--fs-base); color: var(--ink); appearance: none; -webkit-appearance: none; }
.form textarea { height: 120px; padding-top: 14px; resize: vertical; }
.form select { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2326235b' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--yellow); }
.form .note { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--ink-3); }
.form-status { grid-column: 1 / -1; font-size: var(--fs-sm); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* numbers & facts (about) */
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.facts > div { padding: 24px 20px 26px 0; border-bottom: 1px solid var(--line); }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--font-slab); font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1; color: var(--blue); }
.facts dd { margin-top: 10px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(odd) { padding-left: 0; border-left: 0; } }

.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--navy); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-slab); font-size: 1.75rem; line-height: 1; color: var(--blue); }
.steps h3 { font-size: 1.1875rem; font-weight: 600; }
.steps p, .steps ul { margin-top: 10px; color: var(--ink-2); }
.steps ul { padding-left: 1.1em; display: grid; gap: 4px; list-style: disc; }
.steps ul li::marker { color: var(--blue); }
.steps .example { margin-top: 16px; padding: 16px 18px; background: var(--paper-2); border-left: 3px solid var(--yellow); font-size: var(--fs-sm); color: var(--ink-2); }
.steps .example b { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

/* 404 */
.nf { position: relative; min-height: 70vh; display: grid; align-content: center; gap: 24px; overflow: hidden; padding-block: clamp(56px, 9vw, 128px); }
.nf .display { font-size: clamp(6rem, 18vw, 14rem); color: var(--blue); line-height: .85; }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero .display, .hero .bar, .hero .lead, .hero-actions, .hero .eyebrow { animation: rise .9s var(--ease) both; }
  .hero .bar { animation-name: grow; transform-origin: left; }
  .hero .display { animation-delay: .06s; }
  .hero .lead { animation-delay: .16s; }
  .hero-actions { animation-delay: .24s; }
  .hero-corner path { animation: fade 1.4s .25s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- CMS pages: content blocks ---------- */
.cpage { padding-bottom: clamp(24px, 4vw, 48px); }
.cpage > .cb + .cb { margin-top: clamp(28px, 3.4vw, 44px); }
.cpage > .cb--split + .cb--split, .cpage > .cb--split + .cb, .cpage > .cb + .cb--split { margin-top: 0; }
.cpage > .cb--split .split { border-top: 1px solid var(--line); }
.cpage > .cb--split:first-child .split { border-top: 0; padding-top: 0; }
.cb-h2 { font-family: var(--font-slab); text-transform: uppercase; letter-spacing: .01em; scroll-margin-top: calc(var(--top-h) + 16px); }
.cb-h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.25; scroll-margin-top: calc(var(--top-h) + 16px); }
.cb--heading + .cb { margin-top: 18px !important; }
.cb-figure { max-width: 44em; }
.cb-figure--wide { max-width: none; }
.cb-figure img { width: 100%; background: var(--paper-2); }
.cb-figure figcaption, .cb-video figcaption { margin-top: 10px; font-style: italic; font-size: var(--fs-xs); color: var(--ink-3); }
.cb-gallery .gallery { margin: 0; }
.cb-quote { max-width: 44em; padding: 6px 0 6px 26px; border-left: 3px solid var(--yellow); }
.cb-quote p { font-size: var(--fs-lg); font-weight: 300; line-height: 1.5; }
.cb-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: var(--fs-sm); color: var(--ink-3); }
.cb-quote cite::before { content: "— "; }
.cb-facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cb-files { border-top-color: var(--line); }
.cb-button .btn { margin-right: 10px; }
.cb-notice { max-width: 44em; }
.cb-notice .prose { font-size: inherit; }
.cb-notice .prose > p:first-child { font-size: inherit; }
.cb-video { max-width: 56em; }
.cb-video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.cb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cb-children { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cb-children a { min-height: 150px; }
.cb-divider { display: flex; align-items: center; gap: 16px; color: var(--blue); }
.cb-divider span { flex: 1; height: 1px; background: var(--line); }
.cb-divider svg { flex: none; }
.cpage .h2 + .index-links { margin-top: 24px; }

/* ---------- photo galleries + the photo viewer ---------- */
.pg { margin-top: clamp(36px, 5vw, 56px); max-width: 56em; }
.cpage .pg { margin-top: 0; max-width: none; }
.pg-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; font-family: var(--font-slab); font-size: 1.375rem; text-transform: uppercase; letter-spacing: .02em; }
.pg-title small { font: 400 var(--fs-xs)/1 var(--font-sans); letter-spacing: .04em; text-transform: none; color: var(--ink-3); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); gap: 6px; }
.pg-grid a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
/* larger photos in rows of two or three (CMS: «Вигляд») */
.pg-rows { grid-template-columns: repeat(var(--pg-cols), minmax(0, 1fr)); gap: 8px; }
.pg-rows-2 { --pg-cols: 2; } .pg-rows-3 { --pg-cols: 3; }
.pg-rows a { aspect-ratio: 3 / 2; }
@media (max-width: 600px) { .pg-rows-2 { --pg-cols: 1; } .pg-rows-3 { --pg-cols: 2; } }
/* each photo's caption: on the photo (default) or under it (CMS: «Підписи фото») */
.pg-cap { position: absolute; inset: auto 0 0 0; padding: 22px 8px 6px; font-size: 11.5px; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .64)); pointer-events: none; }
.pg-cap-under .pg-cap { position: static; display: block; padding: 6px 0 2px; font-style: italic; color: var(--ink-3); background: none; }
.pg-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.pg-grid a:hover img { transform: scale(1.04); }
.pg-grid a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.js .pg[data-pg-more]:not(.is-all) .pg-more { display: none; }
.pg-all { margin-top: 18px; }
.pg-credit { margin-top: 12px; font-style: italic; font-size: var(--fs-xs); color: var(--ink-3); }
.prose a[data-lb] { display: block; cursor: zoom-in; }
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 11, 34, .96); color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(12, 11, 34, .96); }
.lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
/* one cell of a definite size, so a photo's max-width/max-height mean the space left on the screen; main.js also sizes each
   photo from its own proportions (a portrait one by the height, a landscape one by the width) */
.lb-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 56px 64px 8px; touch-action: pan-y; }
.lb-img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); }
.lb-bar { display: flex; align-items: baseline; gap: 18px; padding: 14px 64px 22px; font-size: var(--fs-sm); }
.lb-count { flex-shrink: 0; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; }
.lb-cap { margin: 0; color: rgba(255,255,255,.9); line-height: 1.45; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.lb-prev { left: 8px; top: calc(50% - 24px); } .lb-next { right: 8px; top: calc(50% - 24px); }
.lb-close { right: 8px; top: 8px; font-size: 22px; }
.lb-btn[hidden] { display: none; }
@media (max-width: 640px) { .lb-stage { padding: 52px 8px 4px; } .lb-bar { padding: 10px 16px 18px; } .lb-prev, .lb-next { top: auto; bottom: 64px; } }

/* ---------- news: sections, years, pages ---------- */
.news-filters { display: grid; gap: 10px; margin-bottom: clamp(20px, 3vw, 32px); }
.news-filters .filters { margin: 0; }
.news-filters .chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.news-filters a.chip { text-decoration: none; }
.news-count { margin-bottom: clamp(24px, 3vw, 36px); font-size: var(--fs-xs); color: var(--ink-3); }
.pages { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.pages .nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pages .nums a, .pages .nums span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 8px; text-decoration: none; font-variant-numeric: tabular-nums; }
.pages .nums a { border: 1px solid var(--line); }
.pages .nums a:hover { border-color: var(--navy); }
.pages .nums [aria-current] { background: var(--navy); color: #fff; }
.pages .nums .gap { min-width: 20px; color: var(--ink-3); }
.pages .prev, .pages .next { font-weight: 500; color: var(--blue); text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) { .pages { grid-template-columns: 1fr 1fr; } .pages .nums { grid-column: 1 / -1; grid-row: 1; } .pages .next { text-align: right; } }
.article-aside .arrow-link + .arrow-link { margin-top: 10px; }
.ann-photos { margin-top: 8px; font-size: var(--fs-xs); color: var(--blue); font-weight: 500; }
.ann-linked { margin-top: 36px; }

/* ---------- a club's page ---------- */
.club-id { display: flex; gap: 16px; align-items: flex-start; }
.club-logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; background: #fff; border: 1px solid var(--line); padding: 4px; }
.club .name a { text-decoration: none; }
.club .name a:hover { color: var(--blue); text-decoration: underline; }
.club-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); }
.club-main { display: grid; gap: clamp(32px, 4vw, 48px); align-content: start; }
.club-facts { display: grid; border-top: 1px solid var(--navy); }
.club-facts > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.club-facts dt { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.club-facts dd { margin: 0; line-height: 1.55; }
.club-section h2 { margin-bottom: 14px; font-family: var(--font-slab); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.club-coaches, .club-locs { border-top: 1px solid var(--line); }
.club-coaches li, .club-locs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.club-coaches .n { font-weight: 600; }
.club-coaches .x { color: var(--ink-2); font-size: var(--fs-sm); }
.club-aside { display: grid; gap: 28px; align-content: start; }
.club-page-logo { width: min(220px, 60%); aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 12px; }
.club-contacts { display: grid; gap: 10px; justify-items: start; }
.club-contacts a { color: var(--blue); text-decoration: none; overflow-wrap: anywhere; }
.club-contacts a:hover { text-decoration: underline; }
.club-contacts .big { font-family: var(--font-slab); font-size: 1.5rem; color: var(--navy); }
.club-join { display: grid; gap: 14px; justify-items: start; padding: 24px; background: var(--paper-2); }
.club-join p { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 960px) { .club-layout { grid-template-columns: 1fr; } .club-aside { grid-row: 1; } }
@media (max-width: 600px) { .club-facts > div { grid-template-columns: 1fr; gap: 6px; } }

@media print {
  .site-alert, .site-header, .mobile-nav, .site-footer, .hero-corner, .page-head-corner, .subnav, .filters, .data-toolbar { display: none !important; }
  body { font-size: 11pt; }
}
