/*
 * Preiļu robotikas klubs: the look ("Pasteļu"). A soft lavender-to-rose band with the mark centred and
 * the menu beneath it as buttons of one width, white with a small corner radius, PRČ in navy; cards
 * that rise over the band; a navy promo panel for the next championship; news on a pale tint.
 * Manrope. No JavaScript: the menu is :hover, :focus-within and, on a phone, a checkbox.
 * Surfaces take --card / --panel / --solid tokens rather than a literal white or --navy, so a dark
 * palette could be added by re-valuing the tokens (it was tried and taken out again).
 *
 * Self-hosted Manrope (OFL, variable). The latin-ext file carries the Latvian diacritics (ā č ē ģ ī
 * ķ ļ ņ š ū ž); the combining marks (U+0304 ...) belong to it only: split across two files, the
 * browser draws a decomposed capital's macron from the wrong one.
 */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font: 'Manrope', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --page: #fbf9ff;
  --ink: #1c1a33;
  --ink-soft: #4c4a66;
  --ink-faint: #6b6985;
  --navy: #221d55;
  --accent: #4a3a9c;
  --violet: #6a4c8e;
  --tint: #f3eefb;
  --tint-strong: #e8e1f7;
  --duo: linear-gradient(110deg, #3f6ea3 0%, #5b5cb0 36%, #6a4c8e 66%, #b0548f 100%);
  --soft: linear-gradient(110deg, #c9c0f2, #f2c4de);
  --band: linear-gradient(90deg, #dcd6f7, #f7d6e8); /* horizontal: the header and the band behind the home grid meet without a seam */
  --shadow: 0 16px 30px -18px rgb(34 29 85 / 35%);
  --card: #fff;
  --panel: #221d55; /* the navy panel */
  --solid: #221d55; /* a filled button */
  --on-solid: #fff;
  --bandink: #221d55;
  --ftr: #ede6f9;
  --glass: rgb(255 255 255 / 55%);
  --duo-text: var(--duo);
  --btn-w: 11.5rem; /* every button: one width */
  --gutter: clamp(16px, 4vw, 40px);
  --content: 1180px;
  --prose: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.sr-only { position: absolute; 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: 8px; top: -60px; z-index: 100; background: var(--solid); color: var(--on-solid); padding: 10px 16px; }
.skip-link:focus { top: 8px; color: var(--on-solid); }

.prk-page { min-height: 100vh; display: flex; flex-direction: column; }
.prk-page > main { flex: 1; }
.prk-container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- header: the gradient band ---------- */

.prk-header { background: var(--band); color: var(--bandink); padding-block: 28px 92px; }
.prk-header__inner { position: relative; display: grid; justify-items: center; gap: 20px; }
.prk-logo { display: grid; justify-items: center; gap: 6px; color: inherit; }
.prk-logo:hover { color: inherit; }
.prk-logo svg { display: block; height: 52px; width: calc(52px * 250 / 108); color: currentColor; }
.prk-logo small { font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
body:not(.home) .prk-header { padding-bottom: 36px; }
.home .prk-header { padding-bottom: 28px; }
/* the home page: the header's band runs on behind the grid and ends under it, never across a card */
.prk-heroband { background: var(--band); padding-bottom: clamp(32px, 5vw, 52px); }

.prk-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.prk-nav__list > li { position: relative; }
.prk-nav a, .prk-btn, .wp-block-button__link, .prk-social a { display: block; width: var(--btn-w); padding: 12px 8px; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.25; border-radius: var(--radius); }
.prk-nav__list > li > a { background: var(--card); color: var(--navy); border-radius: var(--radius); transition: background-color 0.15s, color 0.15s; }
.prk-nav__list > li > a:hover, .prk-nav__list > li > a[aria-current='page'] { background: var(--tint-strong); color: var(--navy); }
.prk-nav__list > .prk-nav__highlight > a { background: var(--solid); color: var(--on-solid); font-weight: 800; }
.prk-nav__list > .prk-nav__highlight > a:hover, .prk-nav__list > .prk-nav__highlight > a[aria-current='page'] { background: var(--accent); color: var(--on-solid); }

.prk-nav__submenu { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; list-style: none; padding: 6px; margin: 0; background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--tint-strong); border-radius: var(--radius); }
.prk-nav__submenu a { width: auto; text-align: center; padding: 10px 12px; color: var(--navy); font-weight: 600; letter-spacing: 0.08em; }
.prk-nav__submenu a:hover, .prk-nav__submenu a[aria-current='page'] { background: var(--tint); color: var(--navy); border-radius: 6px; }
.prk-nav__hasChildren:hover > .prk-nav__submenu, .prk-nav__hasChildren:focus-within > .prk-nav__submenu { display: block; }
.prk-nav__hasChildren::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }

.prk-header__toggle { position: absolute; opacity: 0; pointer-events: none; }
.prk-header__toggleLabel { display: none; }

/* the language switch: LV | EN, top right of the band */
.prk-lang { position: absolute; top: -8px; right: var(--gutter); display: flex; gap: 2px; padding: 3px; background: var(--card); border-radius: var(--radius); }
.prk-lang a { display: block; padding: 6px 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; line-height: 1; color: var(--navy); border-radius: 6px; }
.prk-lang a:hover { background: var(--tint-strong); color: var(--navy); }
.prk-lang a[aria-current] { background: var(--solid); color: var(--on-solid); }

/* ---------- photographs: the news photos as they are; the editors' "Duotons" image style in the brand gradient ---------- */

.prk-photo { position: relative; overflow: hidden; background: var(--tint); }
.prk-photo--empty { display: grid; place-items: center; color: rgb(34 29 85 / 14%); }
.prk-photo--empty svg { width: min(42%, 220px); height: auto; aspect-ratio: 250 / 108; }
.prk-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-block-image.is-style-duotone img { filter: grayscale(1) contrast(1.05) brightness(1.15); }
.wp-block-image.is-style-duotone::after { content: ''; position: absolute; inset: 0; background: var(--duo); mix-blend-mode: multiply; pointer-events: none; }
.wp-block-image.is-style-duotone { position: relative; overflow: hidden; background: var(--duo); }

/* ---------- home ---------- */

.prk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prk-tile { position: relative; display: grid; gap: 8px; align-content: start; background: var(--card); border: 1px solid var(--tint-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px 24px 28px; }
.prk-tile::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 5px; background: var(--soft); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.prk-tile h3 { font-size: 18px; font-weight: 800; letter-spacing: 0; }
.prk-tile p { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.prk-tiles .wp-block-group { display: contents; }
.prk-tiles .prk-tile { display: grid; }
.wp-block-group__inner-container { display: contents; }

/* the next championship: the big tile of the bento grid (see below) */
.prk-promo { display: grid; gap: 18px; justify-items: start; }
.prk-promo__chip { display: inline-block; background: #fff; color: #221d55; font-size: 14px; font-weight: 700; padding: 6px 16px; border-radius: 99px; }
.prk-promo__title { color: #fff; font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; }
.prk-promo__text { color: #dedbf7; font-size: 18px; line-height: 1.6; max-width: 46ch; }
.prk-promo .wp-block-buttons { margin: 6px 0 0; }
.prk-promo .wp-block-button__link { background: #fff; color: #221d55; font-weight: 800; box-shadow: none; }
.prk-promo .wp-block-button__link:hover { background: #e8e1f7; color: #221d55; }
.prk-promo .prk-btn--ghost .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 80%); }
.prk-promo .prk-btn--ghost .wp-block-button__link:hover { background: rgb(255 255 255 / 14%); color: #fff; }

/* ---------- the bento grid: the championship, the three cards, the newest achievement ---------- */

.prk-bento { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; }
.prk-bento .prk-tiles, .prk-bento .wp-block-group__inner-container { display: contents; }
.prk-bento__promo { grid-column: 1; grid-row: 1 / span 2; position: relative; overflow: hidden; background: var(--panel); color: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.prk-bento__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.prk-bento__promoBody { position: relative; display: grid; align-content: space-between; gap: 22px; height: 100%; padding: clamp(26px, 3.4vw, 40px); }
.prk-bento__promoBody .wp-block-group { display: contents; }
.prk-bento__promoBody .prk-promo { display: grid; }
.prk-bento__promo.has-date .prk-promo__chip { display: none; }

.prk-date { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.prk-date__tile { display: grid; gap: 2px; min-width: 104px; padding: 12px 20px; text-align: center; color: #fff; background: var(--duo); border-radius: 14px; }
.prk-date__tile b { font-size: 50px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.prk-date__tile span { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; }
.prk-date__tile small { font-size: 12px; font-weight: 700; opacity: 0.85; }
.prk-date__info { display: grid; gap: 8px; justify-items: start; }
.prk-date__info strong { font-size: 22px; font-weight: 800; line-height: 1.1; }
.prk-date__left { display: inline-block; padding: 7px 14px; background: rgb(255 255 255 / 14%); border-radius: 99px; font-size: 14px; font-weight: 700; }

.prk-bento .prk-tile { padding: 26px 24px 24px; }
.prk-bento .prk-tile:nth-child(1) { grid-column: 2; grid-row: 1; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='10' width='18' height='10' rx='1.5'/%3E%3Crect x='6' y='6' width='4' height='4' rx='1'/%3E%3Crect x='14' y='6' width='4' height='4' rx='1'/%3E%3C/svg%3E"); }
.prk-bento .prk-tile:nth-child(2) { grid-column: 3; grid-row: 1; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 3v3M15 3v3M9 18v3M15 18v3M3 9h3M3 15h3M18 9h3M18 15h3'/%3E%3C/svg%3E"); }
.prk-bento .prk-tile:nth-child(3) { grid-column: 2 / span 2; grid-row: 2; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0V4z'/%3E%3Cpath d='M7 6H4v2a3 3 0 0 0 3 3M17 6h3v2a3 3 0 0 1-3 3M12 14v4M8 20h8'/%3E%3C/svg%3E"); }
.prk-bento .prk-tile h3::before { content: ''; display: block; width: 56px; height: 56px; margin-bottom: 14px; background: var(--duo); border-radius: 16px; }
.prk-bento .prk-tile::after { content: ''; position: absolute; left: 24px; top: 26px; width: 56px; height: 56px; background: #fff; -webkit-mask: var(--ico) center / 28px no-repeat; mask: var(--ico) center / 28px no-repeat; }

/* ---------- the championship archive ---------- */

.prk-archive { margin-top: clamp(32px, 5vw, 52px); padding-bottom: clamp(32px, 5vw, 52px); }
.prk-years { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.prk-year { display: grid; gap: 4px; align-content: start; padding: 16px 20px 14px; color: var(--navy); background: var(--card); border: 1px solid var(--tint-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.prk-year:hover { color: var(--navy); border-color: var(--accent); }
.prk-archive__lead { margin: -10px 0 18px; font-size: 16px; color: var(--ink-soft); }
.prk-year b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; background: var(--duo-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prk-year span { margin-top: 4px; font-size: 14px; font-weight: 800; color: var(--accent); }
.prk-year--new { background: var(--panel); border-color: transparent; }
.prk-year--new b { background-image: var(--soft); }
.prk-year--new span { color: #fff; }

.prk-newsband { background: var(--tint); padding-block: 38px 44px; margin-top: 0; }
.prk-eyebrow { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }

/* ---------- cards (news) ---------- */

time { font-size: 14px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.prk-label { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.prk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.prk-cards--three { grid-template-columns: repeat(3, 1fr); }
.prk-card { position: relative; display: grid; align-content: start; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.prk-card__hit { position: absolute; inset: 0; z-index: 1; }
.prk-card .prk-photo { aspect-ratio: 16 / 10; }
.prk-card__body { padding: 14px 16px 18px; display: grid; gap: 4px; }
.prk-card__meta { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.prk-card h2 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.prk-card:hover h2 { color: var(--accent); }
.prk-card__excerpt { font-size: 15px; color: var(--ink-soft); }
.prk-empty { color: var(--ink-soft); }

/* the news on the home page: the newest big with its photo, the next two beside it as text only */
.prk-newsband__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.prk-newsband__head .prk-eyebrow { margin-bottom: 0; }
.prk-newsband__head .prk-btn { width: auto; min-height: 2.75rem; padding: 8px 24px; }
/* the big card is exactly as tall as the two beside it: its photo takes up what the text leaves */
.prk-news { display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; gap: 16px; }
.prk-news:has(.prk-news__side:empty) { grid-template-columns: 1fr; }
.prk-news__side { display: grid; grid-auto-rows: 1fr; gap: 16px; }
.prk-news__side:empty { display: none; }
.prk-card--lead { display: flex; flex-direction: column; }
.prk-card--lead .prk-photo { aspect-ratio: auto; flex: 1 1 0; min-height: 160px; }
.prk-card--lead .prk-card__body { padding: 20px 22px 24px; gap: 8px; }
.prk-card--lead h2 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.prk-card--lead .prk-card__excerpt { font-size: 16px; }
.prk-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.prk-pagination { margin-top: 36px; }
.prk-pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.prk-pagination a, .prk-pagination span { display: block; padding: 8px 16px; font-weight: 600; font-size: 14px; letter-spacing: 0.08em; box-shadow: inset 0 0 0 1.5px var(--tint-strong); }
.prk-pagination .current { background: var(--solid); color: var(--on-solid); box-shadow: none; }

/* ---------- buttons: one width, square ---------- */

.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; gap: 8px; margin-block: 14px; }
.wp-block-button { margin: 0; display: flex; }
.wp-block-button__link, .prk-btn { min-height: 3.2rem; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--card); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); border: 0; transition: background-color 0.15s, color 0.15s; }
.wp-block-button__link:hover, .prk-btn:hover { background: var(--solid); color: var(--on-solid); }
.is-style-solid .wp-block-button__link, .prk-btn--solid, .wp-block-button.prk-btn--solid .wp-block-button__link { background: var(--solid); color: var(--on-solid); }
.is-style-solid .wp-block-button__link:hover, .wp-block-button.prk-btn--solid .wp-block-button__link:hover { background: var(--accent); color: var(--on-solid); }
.prk-btn--line { background: transparent; }

/* ---------- pages and posts ---------- */

.prk-sep { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.01em; max-width: calc(var(--content) + 2 * var(--gutter)); margin: clamp(30px, 5vw, 52px) auto 22px; padding-inline: var(--gutter); }
.prk-prose { padding-bottom: 8px; }
/* an ordinary page: one centred column, the title over the text (the championship's pages stay wide) */
.prk-article--narrow .prk-sep, .prk-article--narrow .prk-prose { max-width: calc(var(--prose) + 2 * var(--gutter)); }
.prk-prose > * + * { margin-top: 1.1em; }
.prk-prose > p, .prk-prose > ul, .prk-prose > ol, .prk-prose > h2, .prk-prose > h3, .prk-prose > h4, .prk-article__date { max-width: var(--prose); }
.prk-prose h2 { font-size: 26px; font-weight: 800; margin-top: 1.8em; }
.prk-prose h3 { font-size: 22px; font-weight: 600; margin-top: 1.5em; }
.prk-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prk-prose .wp-block-button__link { text-decoration: none; }
.prk-prose .is-style-solid .wp-block-button__link, .prk-prose .prk-btn--solid .wp-block-button__link { color: var(--on-solid); }
.prk-prose ul, .prk-prose ol { padding-left: 1.3em; }
.prk-prose li + li { margin-top: 0.4em; }
.prk-prose li::marker { color: var(--violet); }
.prk-article__hero, .prk-article__photo { aspect-ratio: 16 / 9; width: 100%; max-height: 440px; object-fit: cover; }
.prk-prose .wp-block-image { margin-inline: 0; }
.prk-prose .wp-block-image img { max-height: 760px; width: auto; max-width: 100%; }
.prk-prose > .wp-block-image img { max-height: 520px; }
.prk-prose .wp-block-embed { max-width: 880px; }
.prk-prose .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
/* a video: in the YouTube block it fills the block's 16:9 box; a bare address in the text (the copied
   news) has no box around it, so the iframe keeps its own 16:9 shape, never position: absolute */
.prk-prose .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border: 0; }
iframe.prk-youtube { display: block; width: 100%; max-width: 880px; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); }
iframe.prk-frame { display: block; width: 100%; height: min(75vh, 720px); border: 0; background: var(--tint); border-radius: var(--radius-lg); }
.prk-prose iframe[src*='google.com/maps'] { height: 420px; max-width: 880px; }
.prk-prose .wp-block-buttons { margin-block: 1.4em; }

/* a news post's photos: the gallery under the text */
.prk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 1.6em 0 0; }
.prk-gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.prk-gallery__item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.2s; }
.prk-gallery__item:hover img { transform: scale(1.04); }
.prk-gallery__more::after { content: ''; position: absolute; inset: 0; background: rgb(18 16 40 / 62%); }
.prk-gallery__more span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 800; }
.prk-prose > .prk-gallery { max-width: none; }
.prk-article__photo a { display: block; position: absolute; inset: 0; cursor: zoom-in; }

/* the photo viewer: shown while one of its slides is the address's #target (no JavaScript), or, with
   assets/js/gallery.js, while it has .is-open (then nothing is a page navigation and the keys work) */
.prk-viewer { display: none; }
/* margin: 0, against the prose's spacing between blocks, which would push the fixed viewer down and leave a gap at the top */
.prk-viewer:has(.prk-viewer__slide:target), .prk-viewer.is-open { position: fixed; inset: 0; z-index: 1000; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: rgb(14 12 30 / 97%); color: #fff; }
html:has(.prk-viewer__slide:target), html.prk-viewer-open { overflow: hidden; }
.prk-viewer__track { display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.prk-viewer__track::-webkit-scrollbar { display: none; }
.prk-viewer__track:focus-visible { outline: none; }
.prk-viewer__slide { position: relative; flex: 0 0 100%; display: grid; place-items: center; height: 100%; margin: 0; padding: 56px 88px 16px; scroll-snap-align: center; scroll-snap-stop: always; }
.prk-viewer__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; }
.prk-viewer__count { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); left: 24px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; opacity: 0.85; font-variant-numeric: tabular-nums; }
.prk-viewer__prev, .prk-viewer__next, .prk-viewer__close { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: rgb(255 255 255 / 12%); transition: background-color 0.15s; }
.prk-viewer__prev:hover, .prk-viewer__next:hover, .prk-viewer__close:hover { color: #fff; background: rgb(255 255 255 / 26%); }
.prk-viewer__prev svg, .prk-viewer__next svg, .prk-viewer__close svg { width: 26px; height: 26px; }
.prk-viewer__prev { left: 18px; top: 50%; translate: 0 -50%; }
.prk-viewer__next { right: 18px; top: 50%; translate: 0 -50%; }
.prk-viewer__close { top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; }
.prk-viewer__strip { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgb(0 0 0 / 30%); scrollbar-width: thin; }
.prk-viewer__strip a { flex: none; display: block; border-radius: 4px; overflow: hidden; opacity: 0.6; transition: opacity 0.15s; }
.prk-viewer__strip a:hover, .prk-viewer__strip a:focus-visible, .prk-viewer__strip a.is-current { opacity: 1; }
.prk-viewer__strip a.is-current { box-shadow: inset 0 0 0 2px #fff; }
.prk-viewer__strip img { width: 72px; height: 54px; object-fit: cover; }

/* ---------- achievements: prk-core's [prk_timeline]. The year a band like the header's, each competition's medals
   in a column beside its card, the card's head dark. Medals are squares with soft corners and the years are buttons,
   as everywhere else on the site: nothing round. ---------- */

.prk-medals, .prk-timeline { --gold: #d9a521; --silver: #8a93a6; --bronze: #a65a2a; }
.prk-medal, .prk-podium__rank, .prk-medals__count { display: inline-grid; place-items: center; flex: none; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; background: var(--tint-strong); }
.prk-medal--1, .prk-podium__rank--1, .prk-medals__item--1 .prk-medals__count { background: var(--gold); color: #2b2100; }
.prk-medal--2, .prk-podium__rank--2, .prk-medals__item--2 .prk-medals__count { background: var(--silver); color: #fff; }
.prk-medal--3, .prk-podium__rank--3, .prk-medals__item--3 .prk-medals__count { background: var(--bronze); color: #fff; }

.prk-medals { margin-top: 8px; }
.prk-medals__title { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.prk-prose .prk-medals__list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.prk-prose .prk-medals__list li + li { margin-top: 0; }
.prk-medals__item { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; background: var(--card); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1.5px var(--tint-strong); }
.prk-medals__count { min-width: 56px; height: 48px; padding-inline: 8px; border-radius: var(--radius); font-size: 22px; }
.prk-medals__label { font-size: 14px; font-weight: 700; color: var(--navy); }

/* the years: buttons like the championship's year navigation */
.prk-prose .prk-years-nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 8px; }
.prk-prose .prk-years-nav li + li { margin-top: 0; }
.prk-prose .prk-years-nav a { display: flex; align-items: center; justify-content: center; min-width: 4.75rem; min-height: 2.6rem; padding: 6px 12px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--tint-strong); color: var(--navy); font-size: 15px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.prk-prose .prk-years-nav a:hover { background: var(--navy); color: #fff; box-shadow: none; }

.prk-prose .prk-timeline { list-style: none; padding: 0; margin-top: 28px; }
.prk-prose .prk-timeline li + li { margin-top: 0; }
.prk-timeline__item { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; margin-bottom: 16px; }
.prk-timeline .prk-timeline__year { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 30px 0 16px; padding: 12px 18px; border-radius: var(--radius-lg); background: var(--band); scroll-margin-top: 24px; }
.prk-timeline > li:first-child .prk-timeline__year { margin-top: 0; }
.prk-timeline__yearNum { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); font-variant-numeric: tabular-nums; }
.prk-timeline__count { margin-left: auto; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.prk-timeline__medals { display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 4px; }
.prk-medal { width: 30px; height: 30px; border-radius: 7px; font-size: 13px; box-shadow: 0 3px 8px -4px rgb(34 29 85 / 45%); }
.prk-timeline__more { font-size: 12px; font-weight: 800; color: var(--ink-faint); }
.prk-timeline__card { min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--tint-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.prk-timeline__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 14px; padding: 13px 18px; background: var(--navy); color: #fff; }
.prk-timeline .prk-timeline__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; color: #fff; }
.prk-prose .prk-timeline__title a { color: #fff; text-decoration: none; }
.prk-prose .prk-timeline__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.prk-timeline__place { font-size: 14px; font-weight: 600; color: #cfcaf2; }
.prk-timeline__month { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #cfcaf2; }
.prk-timeline__body { padding: 4px 18px 8px; }
.prk-timeline__note { padding: 8px 0; color: var(--ink-soft); }
.prk-podium { margin: 0; }
.prk-podium__row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 10px 0; }
.prk-podium__row + .prk-podium__row { border-top: 1px solid var(--tint-strong); }
.prk-podium dt { padding-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
/* every place on a line of its own, the best first */
.prk-podium dd { display: grid; gap: 8px; margin: 0; }
.prk-podium__place { display: inline-flex; align-items: center; gap: 9px; }
.prk-podium__rank { width: 26px; height: 26px; border-radius: 6px; font-size: 13px; }
.prk-podium__name { font-weight: 700; line-height: 1.3; color: var(--ink); }
.prk-podium__who { font-weight: 500; color: var(--ink-faint); }
.prk-tally { display: inline-flex; gap: 14px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.prk-tally__n { display: inline-flex; align-items: center; gap: 6px; }
.prk-tally__n::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: var(--medal); }
.prk-tally__n--1 { --medal: var(--gold); }
.prk-tally__n--2 { --medal: var(--silver); }
.prk-tally__n--3 { --medal: var(--bronze); }
/* an entry with a highlight ("Pasaules čempionāts"): a gold label in the head, a gold edge */
.prk-timeline__badge { grid-column: 1 / -1; justify-self: start; padding: 3px 10px; border-radius: 6px; background: var(--gold); color: #2b2100; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.prk-timeline__item--highlight .prk-timeline__card { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), var(--shadow); }

.prk-prose .prk-year, .prk-prose .prk-year:hover { text-decoration: none; }
@media (min-width: 1001px) { .prk-prose .prk-years { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }

/* ---------- the championship's page (/prc/, [prk_championship]): one big button for the next championship, which
   leads to its registration, then the archive ---------- */
.prk-next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 1.6em; padding: 24px 26px; border-radius: var(--radius-xl); background: var(--panel); color: #fff; box-shadow: var(--shadow); transition: background-color 0.15s, transform 0.15s; }
.prk-prose .prk-next, .prk-prose .prk-next:hover { color: #fff; text-decoration: none; }
.prk-next:hover { background: var(--accent); transform: translateY(-2px); }
.prk-next__text { display: grid; gap: 6px; justify-items: start; }
.prk-next__when { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #cfcaf2; }
.prk-next__title { font-size: 25px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.prk-next__go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 3.2rem; padding: 12px 22px; border-radius: var(--radius); background: #fff; color: #221d55; font-size: 15px; font-weight: 800; white-space: nowrap; }

/* ---------- the championship's buttons (inc/championship.php marks them): a year's ways in as tiles, a discipline's
   documents as a list of rows; each with its icon and what it is ---------- */
.prk-prose .prk-links { display: grid; gap: 10px; margin-block: 18px 26px; }
.prk-links .wp-block-button { display: block; width: auto; margin: 0; }
.prk-links .wp-block-button__link { position: relative; display: grid; align-items: center; width: 100%; height: auto; min-height: 0; text-align: left; justify-content: stretch; border: 0; background: var(--card); color: var(--navy); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--tint-strong); border-radius: var(--radius-lg); transition: box-shadow 0.15s, transform 0.15s, background-color 0.15s; }
.prk-links .wp-block-button__link::before { content: ''; display: block; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.prk-links .wp-block-button__link:hover { background: var(--card); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.prk-links__label { min-width: 0; line-height: 1.3; }
.prk-links__hint { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-faint); }
.prk-links [data-icon='info'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.6v.4'/%3E%3C/svg%3E"); }
.prk-links [data-icon='register'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E"); }
.prk-links [data-icon='list'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01'/%3E%3C/svg%3E"); }
.prk-links [data-icon='schedule'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.prk-links [data-icon='map'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.prk-links [data-icon='rules'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 12h7M9 16h7'/%3E%3C/svg%3E"); }
.prk-links [data-icon='results'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0V4z'/%3E%3Cpath d='M7 6H4v2a3 3 0 0 0 3 3M17 6h3v2a3 3 0 0 1-3 3M12 14v4M8 20h8'/%3E%3C/svg%3E"); }
.prk-links [data-icon='gallery'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E"); }
.prk-links [data-icon='form'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 10h6M9 14h6M9 18h3'/%3E%3C/svg%3E"); }
.prk-links [data-icon='video'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='3'/%3E%3Cpath d='M10.5 9.5v5l4-2.5z'/%3E%3C/svg%3E"); }
.prk-links [data-icon='doc'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E"); }
.prk-links [data-icon='external'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5H5V6h5'/%3E%3C/svg%3E"); }
.prk-links [data-icon='page'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }

/* tiles: the year's ways in, three abreast */
.prk-prose .prk-links--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prk-links--tiles .wp-block-button { display: flex; }
.prk-links--tiles .wp-block-button__link { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: 12px; row-gap: 2px; height: 100%; min-height: 72px; padding: 14px 16px; font-size: 16px; }
.prk-links--tiles .wp-block-button__link::before { grid-row: 1 / span 2; align-self: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--tint); -webkit-mask: none; mask: none; }
.prk-links--tiles .wp-block-button__link::after { content: ''; position: absolute; left: 27px; top: 50%; width: 22px; height: 22px; translate: 0 -50%; background: var(--navy); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
/* the label and its hint together in the middle, beside the icon; a label alone in the middle too */
.prk-links--tiles .prk-links__label { grid-column: 2; align-self: end; }
.prk-links--tiles .prk-links__hint { grid-column: 2; align-self: start; }
.prk-links--tiles .prk-links__label:last-child { grid-row: 1 / span 2; align-self: center; }
.prk-links--tiles .wp-block-button__link:hover { transform: translateY(-2px); }
/* list: rows, two columns, the icon before and what it is after */
.prk-prose .prk-links--list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.prk-links--list .wp-block-button__link { grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 14px; font-size: 15px; border-radius: var(--radius); }
.prk-links--list .wp-block-button__link::before { color: var(--accent); }
.prk-links--list .prk-links__hint { padding: 3px 7px; border-radius: 5px; background: var(--tint); }
.prk-links--list [data-kind='page'] .prk-links__label::after { content: ' →'; color: var(--accent); }

/* the championship's pages: everything on the middle line, official; a divider between the sections (after the
   ways in, before a heading, between lists of documents): a thin line fading to the sides, a ring and a dot */
.prk-article--prc { --divider: radial-gradient(circle, var(--violet) 0 3.5px, transparent 4px) center top / 18px 18px no-repeat, radial-gradient(circle, transparent 0 7px, var(--tint-strong) 7.5px 8.5px, transparent 9px) center top / 18px 18px no-repeat, linear-gradient(90deg, transparent, var(--tint-strong)) left 8.5px / calc(50% - 20px) 1.5px no-repeat, linear-gradient(90deg, var(--tint-strong), transparent) right 8.5px / calc(50% - 20px) 1.5px no-repeat; }
.prk-article--prc .prk-sep { text-align: center; }
.prk-article--prc .prk-prose > :is(p, h2, h3, h4) { margin-inline: auto; text-align: center; }
.prk-article--prc .prk-prose > :is(ul, ol) { width: fit-content; max-width: 100%; margin-inline: auto; }
.prk-article--prc .prk-prose .wp-block-image, .prk-article--prc .prk-prose .wp-block-embed { margin-inline: auto; text-align: center; }
.prk-article--prc .prk-prose .wp-block-image img { margin-inline: auto; }
.prk-article--prc .prk-sponsors { justify-content: center; }
.prk-article--prc .prk-prose > .prk-links + *, .prk-article--prc .prk-prose > * + h2 { margin-top: 36px; padding-top: 46px; background: var(--divider); }
.prk-article--prc .prk-yearnav.prk-container { justify-content: safe center; }

/* the year's sub-pages: tabs, not a wall of buttons */
/* the line under the tabs is as wide as the text column, not the page */
.prk-yearnav.prk-container { display: flex; gap: 2px; overflow-x: auto; width: calc(100% - 2 * var(--gutter)); max-width: var(--content); margin: 0 auto 26px; padding-inline: 0; border-bottom: 2px solid var(--tint-strong); scrollbar-width: none; }
.prk-yearnav::-webkit-scrollbar { display: none; }
.prk-article--narrow .prk-yearnav.prk-container { max-width: var(--prose); }
.prk-yearnav a { flex: none; padding: 12px 14px; margin-bottom: -2px; border-bottom: 3px solid transparent; color: var(--ink-soft); font-size: 15px; font-weight: 700; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
.prk-yearnav a:hover { color: var(--navy); border-bottom-color: var(--tint-strong); }
.prk-yearnav a[aria-current='page'] { color: var(--navy); border-bottom-color: var(--navy); }

/* the sponsors' logos */
.prk-sponsors { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-top: 16px; padding: clamp(20px, 3vw, 34px); background: #f3eefb; border-radius: var(--radius-xl); } /* light in both modes: the logos are blended with multiply */
.prk-sponsors > .wp-block-image { margin: 0; }
.prk-sponsors .wp-block-image img { height: 52px; width: auto; max-width: 150px; object-fit: contain; mix-blend-mode: multiply; }
.prk-prose > .prk-sponsors { max-width: none; }

/* ---------- footer ---------- */

.prk-footer { margin-top: clamp(40px, 6vw, 72px); background: var(--ftr); color: var(--ink-soft); padding-block: 16px; }
.home .prk-footer { margin-top: 0; }
.prk-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.prk-footer .prk-logo { color: var(--navy); }
.prk-footer .prk-logo svg { height: 36px; width: calc(36px * 250 / 108); }
.prk-footer .prk-logo small { display: none; }
.prk-social { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; list-style: none; padding: 0; margin: 0; }
.prk-social a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; color: var(--navy); background: var(--card); border-radius: 50%; box-shadow: 0 6px 14px -8px rgb(34 29 85 / 45%), inset 0 0 0 1px var(--tint-strong); transition: background 0.15s, color 0.15s, transform 0.15s; }
.prk-social a:hover { background: var(--duo); color: #fff; transform: translateY(-2px); }
.prk-social svg { width: 22px; height: 22px; flex: none; }
.prk-footer__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: 14.5px; flex: 1 1 260px; }
.prk-footer__widget { display: contents; }

/* ---------- small screens ---------- */

@media (max-width: 1000px) {
  .prk-header { padding-block: 18px 74px; }
  .prk-header__inner { gap: 14px; }
  .prk-logo svg { height: 42px; width: calc(42px * 250 / 108); }
  :root { --btn-w: 100%; }
  .prk-header__toggleLabel { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 420px; padding: 12px 16px; cursor: pointer; font-size: 15px; font-weight: 700; background: var(--card); color: var(--navy); border-radius: var(--radius); }
  .prk-header__bars, .prk-header__bars::before, .prk-header__bars::after { display: block; width: 18px; height: 2px; background: var(--navy); content: ''; position: relative; }
  .prk-header__bars::before { position: absolute; top: -6px; }
  .prk-header__bars::after { position: absolute; top: 6px; }
  .prk-header__toggle:checked + .prk-header__toggleLabel .prk-header__bars { background: transparent; }
  .prk-header__toggle:checked + .prk-header__toggleLabel .prk-header__bars::before { top: 0; transform: rotate(45deg); }
  .prk-header__toggle:checked + .prk-header__toggleLabel .prk-header__bars::after { top: 0; transform: rotate(-45deg); }
  .prk-header__toggle:focus-visible + .prk-header__toggleLabel { outline: 3px solid var(--navy); outline-offset: 3px; }
  .prk-nav { display: none; width: 100%; max-width: 420px; }
  .prk-header:has(.prk-header__toggle:checked) .prk-nav { display: block; }
  .prk-nav__list { flex-direction: column; flex-wrap: nowrap; }
  .prk-nav__submenu { display: block; position: static; margin-top: 4px; background: var(--glass); box-shadow: none; }
  .prk-nav__submenu a { color: var(--navy); }
  .prk-nav__hasChildren::after { display: none; }
  .wp-block-buttons .wp-block-button { width: calc(50% - 4px); }
  .prk-links .wp-block-button { width: auto; }
  .prk-prose .prk-links--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prk-prose .prk-links--list { grid-template-columns: 1fr; }
  .wp-block-button__link { width: 100%; }
  .prk-tiles { grid-template-columns: 1fr; gap: 12px; }
  .prk-cards--three { grid-template-columns: 1fr; }
  .prk-lang { top: -4px; right: max(12px, var(--gutter)); }
  .prk-bento { grid-template-columns: 1fr; gap: 12px; }
  .prk-bento__promo, .prk-bento .prk-tile:nth-child(n) { grid-column: 1; grid-row: auto; }
  .prk-bento__promoBody { padding: 26px 22px; }
  .prk-promo__text { font-size: 16px; }
  .prk-years { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prk-year:last-child:nth-child(odd) { grid-column: span 2; }
  .prk-year b { font-size: 30px; }
  .prk-news { grid-template-columns: 1fr; }
  .prk-card--lead h2 { font-size: 22px; }
  .prk-card--lead .prk-photo { flex: none; aspect-ratio: 16 / 9; }
  .prk-gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .prk-next { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 20px; }
  .prk-next__go { grid-column: 1 / -1; }
  .prk-next__title { font-size: 20px; }
  .prk-podium__row { grid-template-columns: 1fr; gap: 6px; }
  .prk-timeline__item { column-gap: 8px; grid-template-columns: 28px minmax(0, 1fr); }
  .prk-medal { width: 26px; height: 26px; font-size: 12px; }
  .prk-timeline__head, .prk-timeline__body { padding-inline: 14px; }
  .prk-timeline__head { grid-template-columns: minmax(0, 1fr); }
  .prk-medals__item { padding-right: 14px; }
  .prk-medals__count { min-width: 46px; height: 40px; font-size: 19px; }
  .prk-viewer__slide { padding: 52px 8px 12px; }
  .prk-viewer__prev, .prk-viewer__next { width: 40px; height: 40px; background: rgb(0 0 0 / 35%); }
  .prk-viewer__prev { left: 8px; }
  .prk-viewer__next { right: 8px; }
  .prk-viewer__strip img { width: 56px; height: 42px; }
  .prk-card--row .prk-card__excerpt { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .wp-block-buttons .wp-block-button { width: 100%; }
  .prk-links .wp-block-button { width: auto; }
    .prk-newsband { padding-block: 30px 34px; }
}
