/* One typeface for the whole site: Onest (self-hosted, no third-party requests) */
@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/onest-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Metric-matched stand-in: while Onest is still loading the browser shows this one, scaled to take the same room (size-adjust + ascent/descent overrides measured from the font files), so the swap does not move the page. */
@font-face { font-family: "Onest Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; size-adjust: 104.8%; ascent-override: 92.6%; descent-override: 29.1%; line-gap-override: 0%; }
@font-face { font-family: "Onest Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 600 800; size-adjust: 100.6%; ascent-override: 96.4%; descent-override: 30.3%; line-gap-override: 0%; }

/* ============ tokens ============ */
:root {
  --paper: #ffffff; --card: #ffffff; --ink: #0e1a38; --navy: #0d1f4f; --blue: #2150d6; --yellow: #ffd23f; --yellow-ink: #0e1a38;
  --line: #dce3ef; --muted: #55627f; --tint: #f0f4fb;
  --serif: var(--sans); /* kept as a name: headings and text use the same single typeface */
  --sans: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hard: 5px 5px 0 var(--ink);
  --r: 6px;
  color-scheme: light;
}
/* the reader's choice (the «Tr» button): one serif face for every page; headings use --serif, which follows --sans */
html[data-font="tnr"] { --sans: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif; }
.tools .tools-font { font-family: "Times New Roman", Times, serif; font-size: .9rem; }
html[data-contrast="high"][data-contrast="high"][data-contrast="high"] {
  --paper: #000; --card: #000; --ink: #fff; --navy: #000; --blue: #ffd400; --yellow: #ffd400; --yellow-ink: #000; --line: #fff; --muted: #fff; --tint: #000;
  --hard: none; color-scheme: dark;
}
html[data-contrast="high"] a { text-decoration: underline; }
html[data-contrast="high"] .card, html[data-contrast="high"] .tile, html[data-contrast="high"] .news-item { border: 2px solid #fff; }

/* ============ base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; font: 1.0625rem/1.7 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; } /* form controls do not inherit the typeface by themselves */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eyebrow, .kicker { margin: 0 0 10px; font: 700 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
ul.plain { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--yellow-ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border: 2px solid var(--ink); border-radius: var(--r); font: 700 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.btn-yellow:hover { box-shadow: 4px 4px 0 #fff; }
.btn-line { color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-line:hover { box-shadow: 4px 4px 0 var(--yellow); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { color: var(--ink); background: transparent; }

/* ============ header ============ */
.util { background: var(--navy); color: #aab6d6; font-size: .8rem; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.tools { display: flex; gap: 2px; margin-left: auto; }
.tools button { min-width: 34px; height: 28px; padding: 0 8px; background: none; color: #d6def5; border: 1px solid transparent; border-radius: 4px; font: 700 .78rem var(--sans); cursor: pointer; }
.tools button:hover { border-color: #51608f; color: #fff; }
.tools button[aria-pressed="true"] { background: var(--yellow); color: var(--yellow-ink); }

.hdr { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.editing .hdr { top: 48px; }
.hdr-in { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; flex: 0 1 auto; }
.brand .logo { height: 54px; width: auto; flex: none; }
html[data-contrast="high"] .brand .logo, html:has(body:not(.editing)) .brand .logo { background: transparent; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; max-width: 330px; }
.brand-text b { font: 700 1.02rem/1.2 var(--serif); }
.brand-text small { margin-top: 3px; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mainnav { margin-left: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 10px 13px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .15s; }
.nav > li > a:hover, .nav > li:focus-within > a, .nav > li > a[aria-current] { box-shadow: inset 0 -3px 0 var(--yellow); }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.nav .sub { display: none; position: absolute; top: calc(100% + 1px); left: 0; min-width: 280px; list-style: none; margin: 0; padding: 6px; background: var(--card); border: 2px solid var(--ink); box-shadow: var(--hard); }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; border-radius: 3px; }
.nav .sub a:hover { background: var(--yellow); color: var(--yellow-ink); }
.mega-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 11px 18px; background: var(--navy); color: #fff; border: 0; border-radius: var(--r); font: 700 .92rem var(--sans); cursor: pointer; }
html[data-contrast="high"] .mega-btn { border: 2px solid #fff; }
.mega-btn[aria-expanded="true"] { background: var(--yellow); color: var(--yellow-ink); }
.chev { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.mega-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.search-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); cursor: pointer; }
.search-btn:hover { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.burger { display: none; width: 44px; height: 44px; flex: none; background: var(--navy); border: 0; border-radius: var(--r); cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px; }
.burger span { height: 2px; background: #fff; display: block; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); color: #fff; max-height: calc(100vh - 140px); overflow: auto; overscroll-behavior: contain; border-bottom: 6px solid var(--yellow); } /* the exact height is set by site.js (fitMega) */
html.mega-open { overflow: hidden; scrollbar-gutter: stable; }
html.mega-open body::after { content: ""; position: fixed; inset: 0; z-index: 39; background: rgba(13, 31, 79, .5); } /* dims the page behind the open menu, under the header (z-index 40) */
.mega[hidden] { display: none; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 36px; padding-top: 34px; padding-bottom: 38px; }
.mega-h { display: block; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .2); font: 700 1rem/1.3 var(--serif); color: var(--yellow); text-decoration: none; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega ul a { display: block; padding: 4px 0; color: #cfd8f3; text-decoration: none; font-size: .9rem; line-height: 1.4; }
.mega a:hover, .mega a[aria-current] { color: #fff; text-decoration: underline; }

/* ============ hero (home) ============ */
.hero { --hero-split: 50%; position: relative; display: grid; grid-template-columns: minmax(0, var(--hero-split)) minmax(0, 1fr); min-height: 580px; background: var(--navy); color: #fff; transition: grid-template-columns .35s ease; } /* the text and the photo take half each; site.js adds a handle that moves the boundary */
.hero.dragging { transition: none; user-select: none; }
.hero-text { container-type: inline-size; min-width: 0; overflow: hidden; padding: 72px 32px 72px min(max(24px, calc((100vw - 1240px) / 2 + 24px)), 12%); display: flex; flex-direction: column; justify-content: center; transition: opacity .2s; }
.hero.collapsed .hero-text { opacity: 0; pointer-events: none; }
.hero .kicker { color: var(--yellow); display: flex; align-items: center; gap: 12px; }
.hero .kicker::before { content: ""; width: 34px; height: 3px; background: var(--yellow); flex: none; }
.hero h1 { font-size: clamp(1.5rem, 12.5cqi, 4.1rem); overflow-wrap: anywhere; font-weight: 800; line-height: 1.03; letter-spacing: -.02em; margin-bottom: 22px; }
.hero .lead { margin: 0 0 34px; max-width: 34ch; font: 500 clamp(1rem, 4.6cqi, 1.3rem)/1.45 var(--serif); color: #cbd5f2; font-style: italic; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; background: #17306f; overflow: hidden; min-height: 320px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; } /* the box is wider than a group photo: keep the heads, not the middle of the picture */
.hero-media::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--yellow); z-index: 1; }
/* the handle on the boundary: drag it, click it (text / photo), or use the arrow keys */
.hero-grip { position: absolute; top: 0; bottom: 0; left: var(--hero-split); width: 48px; margin-left: -24px; z-index: 3; display: grid; place-items: center; cursor: ew-resize; touch-action: none; transition: left .35s ease; }
.hero.dragging .hero-grip { transition: none; }
.hero-grip span { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); border: 3px solid var(--yellow); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); transition: transform .15s; }
.hero-grip:hover span, .hero-grip:focus-visible span { transform: scale(1.12); }
.hero-grip svg { width: 22px; height: 22px; }
.hero-grip:focus-visible { outline: none; } .hero-grip:focus-visible span { outline: 3px solid #fff; outline-offset: 2px; }

/* ============ sections ============ */
.sec { padding: 76px 0; }
.sec-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 28px; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-row .sec-title { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--yellow); padding-bottom: 2px; white-space: nowrap; }
.more:hover { background: var(--yellow); color: var(--yellow-ink); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
.tile:hover { transform: translate(-3px, -3px); box-shadow: var(--hard); border-color: var(--ink); }
.tile .ico { width: 54px; height: 54px; padding: 13px; margin-bottom: 12px; background: var(--yellow); color: var(--yellow-ink); border-radius: 4px; stroke-width: 1.6; }
.tile b { font: 700 1.18rem/1.25 var(--serif); }
.tile small { color: var(--muted); font-size: .9rem; line-height: 1.45; }

.sec-split { background: var(--tint); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.sec-split.reverse .split-media { order: 2; }
.split-media { position: relative; aspect-ratio: 4 / 5; max-height: 600px; background: var(--line); }
.split-media::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--yellow); transform: translate(16px, 16px); z-index: 0; pointer-events: none; }
.split-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.split-text .kicker { color: var(--blue); }
.split-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin-bottom: 18px; }
.prose-plain { margin-bottom: 26px; font-size: 1.1rem; }
.prose-plain p { margin: 0 0 .8em; }
.split-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.video { aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--ink); box-shadow: var(--hard); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video { position: relative; }
.video-poster { position: absolute; inset: 0; display: grid; place-items: center; background: var(--navy); color: #fff; }
.video-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 8px; background: var(--navy); color: #fff; border: 2px solid var(--yellow); }
.video-poster:hover .video-play { background: #17306f; }
.video-poster:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }

/* ============ news ============ */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.news-item { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .12s, box-shadow .12s, border-color .12s; }
.news-item:hover { transform: translate(-3px, -3px); box-shadow: var(--hard); border-color: var(--ink); }
.news-thumb { display: block; aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb.ph { background: var(--navy); position: relative; }
.news-thumb.ph::after { content: "Новини"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .35); font: 700 1rem var(--serif); letter-spacing: .15em; text-transform: uppercase; }
.news-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body time { font: 700 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.news-body h3 { font-size: 1.12rem; line-height: 1.3; }
.news-body h3 a { color: var(--ink); text-decoration: none; }
.news-body h3 a::after { content: ""; position: absolute; inset: 0; }
.news-body p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-list.featured { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; }
.news-list.featured .news-item:first-child { grid-row: span 2; }
.news-list.featured .news-item:first-child .news-thumb { aspect-ratio: 4 / 3; }
.news-list.featured .news-item:first-child h3 { font-size: 1.6rem; }
.news-list.featured .news-item:first-child .news-body p { font-size: 1rem; -webkit-line-clamp: 5; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; align-items: center; }
.pager a, .pager b { min-width: 42px; text-align: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; font-weight: 600; color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.pager b { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .gap { color: var(--muted); padding: 0 4px; }

/* ============ inner pages ============ */
.page-head { background: var(--navy); color: #fff; padding: 40px 0 46px; border-bottom: 6px solid var(--yellow); }
.page-head h1 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 800; max-width: 26ch; letter-spacing: -.015em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 18px; font-size: .82rem; color: #aab6d6; }
.crumbs a { color: #aab6d6; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs > * + *::before { content: "/"; margin-right: 10px; color: #5d6c9c; }
.crumbs [aria-current] { color: #fff; max-width: 56ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-date { display: inline-block; margin-top: 18px; padding: 4px 12px; background: var(--yellow); color: var(--yellow-ink); font: 700 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; border-radius: 3px; }

.page-wrap { padding-top: 44px; padding-bottom: 96px; }
.page-wrap.has-toc { display: grid; grid-template-columns: 250px minmax(0, 880px); gap: 56px; justify-content: center; align-items: start; }
.content { min-width: 0; max-width: 880px; margin: 0 auto; width: 100%; }
.has-toc .content { margin: 0; }
.toc { position: sticky; top: 104px; max-height: calc(100vh - 130px); overflow: auto; padding-right: 8px; font-size: .88rem; }
.editing .toc { top: 152px; }
.toc .eyebrow { color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 700; border-left-color: var(--yellow); }
.subnav { margin-bottom: 34px; padding: 18px 20px; background: var(--tint); border-radius: var(--r); }
.subnav .eyebrow { color: var(--muted); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { display: block; padding: 7px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.subnav a:hover { border-color: var(--ink); }
.subnav a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

.blocks { display: flex; flex-direction: column; gap: 14px; }
.page-wrap .sec { padding: 28px 0; }
.page-wrap .sec .wrap { padding: 0; max-width: none; }
.page-wrap .sec-split { background: none; }
.page-wrap .split { grid-template-columns: 1fr; gap: 28px; }
.page-wrap .hero { min-height: 0; grid-template-columns: 1fr; }
.page-wrap .hero-text { padding: 40px 28px; } .page-wrap .hero-media { min-height: 220px; }
.page-wrap .tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.page-wrap .news-list.featured { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.page-wrap .news-list.featured .news-item:first-child { grid-row: auto; }
.page-wrap .news-list.featured .news-item:first-child .news-thumb { aspect-ratio: 16 / 10; }
.page-wrap .news-list.featured .news-item:first-child h3 { font-size: 1.12rem; }

.b-heading { margin-top: 34px; font-size: 1.65rem; line-height: 1.25; }
h3.b-heading { font-size: 1.35rem; } h4.b-heading { font-size: 1.15rem; }
.prose { font-size: 1.0625rem; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1em; } .prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; } .prose li { margin-bottom: .35em; }
.prose img { height: auto; border-radius: 4px; cursor: zoom-in; }
.prose table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; margin: 1em 0; }
.prose td, .prose th { padding: 8px 12px; vertical-align: top; }
.prose table.grid td, .prose table.grid th { border: 1px solid var(--line); }
.prose th { background: var(--tint); text-align: left; }
.prose table img { max-height: 300px; width: auto; margin: 0 auto; display: block; }
.prose iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 2px solid var(--ink); }
.prose blockquote { margin: 1em 0; padding: .2em 1.2em; border-left: 4px solid var(--yellow); color: var(--muted); }

.card { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 15px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4; transition: transform .12s, box-shadow .12s, border-color .12s; }
.card > span { flex: 1; min-width: 0; }
.card .hint { flex-basis: 100%; }
a.card::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; opacity: .5; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
a.card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); border-color: var(--ink); }
a.card:hover::after { opacity: 1; }
.card[class*="ft-"]:not(.ft-)::before { flex: none; min-width: 44px; text-align: center; padding: 5px 0; border-radius: 3px; font: 800 .66rem var(--sans); letter-spacing: .08em; color: var(--paper); background: var(--ink); }
html:not([data-contrast]) .ft-ext::before { background: var(--blue); }
html[data-contrast="high"] .card::before { color: #000; background: #fff; }
.ft-pdf::before { content: "PDF"; } .ft-doc::before { content: "DOC"; } .ft-xls::before { content: "XLS"; } .ft-ppt::before { content: "PPT"; }
.ft-zip::before { content: "ZIP"; } .ft-ext::before { content: "WEB"; } .ft-page::before { content: "→"; }
.card-caps { background: var(--tint); }
.card-caps > span { text-transform: uppercase; letter-spacing: .06em; font-size: .88rem; font-weight: 800; }
.card-banner { justify-content: center; text-align: center; margin: 14px 0; padding: 26px 24px; background: var(--yellow); color: var(--yellow-ink); border: 2px solid var(--ink); box-shadow: var(--hard); }
.card-banner > span { font: 800 1.3rem/1.25 var(--serif); letter-spacing: .02em; text-transform: uppercase; }
.card-banner::before { display: none !important; }
a.card-banner::after { opacity: 1; }
a.card-banner:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.news-placeholder { justify-content: center; color: var(--muted); border-style: dashed; text-align: center; }

/* photos are laid out by their real proportions: rows of equal height that fill the width, nothing cropped or stretched */
.b-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.b-gallery figure { flex: calc(var(--ar, 1.5) * 100) 1 calc(var(--ar, 1.5) * 200px); margin: 0; position: relative; overflow: hidden; background: var(--tint); border: 1px solid var(--line); border-radius: 6px; }
.b-gallery img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 1.5); object-fit: cover; cursor: zoom-in; transition: transform .35s; }
.b-gallery figure:hover img { transform: scale(1.03); }
.b-gallery.many::after { content: ""; flex-grow: 1000000; }
.b-gallery.few figure { flex-basis: calc(var(--ar, 1.5) * 120px); }
.b-gallery.single { display: block; text-align: center; }
.b-gallery.single figure { display: inline-block; max-width: 100%; }
.b-gallery.single img { max-width: 100%; max-height: 72vh; height: auto; aspect-ratio: var(--ar, 1.5); object-fit: contain; }
.b-gallery.single figure:hover img { transform: none; }
.image-unavailable { display: grid; place-items: center; min-height: 100px; padding: 20px; border: 1px dashed var(--line); border-radius: 4px; background: var(--tint); color: var(--muted); font-size: 1rem; text-align: center; }
.b-gallery > .image-unavailable { flex: 1 0 100%; }

/* ============ footer ============ */
.foot { background: var(--navy); color: #b9c5e6; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 44px; }
.foot-brand b { display: block; font: 700 1.25rem/1.25 var(--serif); color: #fff; margin-bottom: 10px; }
.foot-brand p { margin: 0; max-width: 34ch; font-size: .92rem; }
.foot h3 { margin-bottom: 14px; font: 700 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.foot address { font-style: normal; font-size: .93rem; }
.foot address p { margin: 0 0 8px; }
.foot a { color: #d6def5; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.flinks { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.flinks li { margin-bottom: 7px; }
.foot-copy { padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; color: #8493bd; }

/* ============ search + lightbox ============ */
.search-ov { position: fixed; inset: 0; z-index: 300; background: rgba(7, 13, 30, .72); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 0; }
.search-box { width: min(680px, 100%); background: var(--card); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--hard); }
.search-box input { width: 100%; padding: 20px 22px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; font: 600 1.15rem var(--sans); outline: none; }
.search-head { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.search-head input { min-width: 0; border-bottom: 0; }
.search-close { flex: none; width: 44px; height: 44px; margin-right: 8px; background: transparent; color: inherit; border: 1px solid var(--line); border-radius: 4px; font-size: 1.6rem; cursor: pointer; }
.search-res { list-style: none; margin: 0; padding: 6px; max-height: 56vh; overflow: auto; }
.search-res a { display: block; padding: 11px 16px; color: var(--ink); text-decoration: none; border-radius: 4px; }
.search-res a:hover, .search-res a.sel { background: var(--yellow); color: var(--yellow-ink); }
.search-res b { display: block; font: 700 1rem/1.3 var(--serif); }
.search-res small { display: block; opacity: .7; font-size: .8rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-hint { padding: 12px 22px; color: var(--muted); font-size: .88rem; }

.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(5, 10, 22, .94); display: grid; place-items: center; padding: 40px 70px; }
.lightbox img { max-width: 100%; max-height: 88vh; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 12px; } .lb-next { right: 12px; }
.lightbox.single .lb-nav { display: none; }
.lb-count { position: absolute; bottom: 14px; color: #c8d6ee; font-size: .9rem; }

/* ============ responsive ============ */
@media (max-width: 1180px) {
  .brand-text small { display: none; }
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-list.featured { grid-template-columns: 1fr 1fr; }
  .news-list.featured .news-item:first-child { grid-column: span 2; grid-row: auto; }
  .page-wrap.has-toc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .has-toc .content { margin: 0 auto; }
}
@media (max-width: 980px) {
  .burger { display: flex; margin-left: auto; }
  .search-btn { margin-left: 0; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; margin: 0; max-height: calc(100vh - 120px); overflow: auto; }
  .hdr.open .mainnav, .mainnav.open { display: block; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); box-shadow: none !important; }
  .nav .has-sub > a::after { display: none; }
  .nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 14px; background: none; }
  .mega-li { margin-top: 12px; } .mega-btn { margin: 0; width: 100%; justify-content: space-between; }
  .mega { position: static; max-height: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero { grid-template-columns: 1fr; min-height: 0; } .hero-grip { display: none; }
  .hero-text { padding: 48px 24px 44px; }
  .hero-media { min-height: 260px; order: -1; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .sec-split.reverse .split-media { order: 0; }
  .split-media { max-height: 420px; margin-right: 16px; }
  .sec { padding: 52px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .util-contact { display: none; }
  .hdr-in { min-height: 68px; gap: 12px; }
  .brand .logo { height: 44px; }
  .brand-text b { font-size: .9rem; }
  .mega-grid { grid-template-columns: 1fr; }
  .news-list, .news-list.featured { grid-template-columns: 1fr; }
  .news-list.featured .news-item:first-child { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .page-head { padding: 28px 0 32px; }
  .page-wrap { padding-top: 28px; }
  .sec-row { flex-direction: column; align-items: flex-start; }
  .mainnav { padding-left: 16px; padding-right: 16px; }
}
@media print { .util, .hdr, .toc, .subnav, .foot, .search-ov { display: none; } body { background: #fff; } .page-head { background: none; color: #000; border: 0; } .page-head h1 { color: #000; } }

/* ---- refinements ---- */
.hdr .brand-text small { display: none; }

/* ---- photo albums ---- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.album { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
.album:hover { transform: translate(-3px, -3px); box-shadow: var(--hard); border-color: var(--ink); }
.album-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.album:hover .album-cover img { transform: scale(1.04); }
.album-cover em { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; background: var(--navy); color: #fff; font: 700 .72rem var(--sans); font-style: normal; border-radius: 3px; }
.album-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.album-body b { font: 700 1rem/1.3 var(--serif); }
.album-body small { color: var(--muted); }
.muted { color: var(--muted); }

/* ---- footer: social icons + partners ---- */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.soc { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: #fff; }
.soc:hover { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); text-decoration: none; }
.soc .ico { width: 19px; height: 19px; }
.soc-ico.fill { fill: currentColor; stroke: none; }
.partners li { line-height: 1.4; }
.partners span.flink { color: #b9c5e6; }
.editing .foot .soc.item { display: inline-flex; width: auto; height: auto; gap: 8px; padding: 6px 12px; border-radius: 6px; }

/* ---- mega menu: deeper levels ---- */
.mega ul ul { margin: 2px 0 6px 10px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .2); }
.mega ul ul a { font-size: .84rem; color: #aebbe0; padding: 3px 0; }
.mega ul ul ul a { font-size: .8rem; }

/* ---- footer: partners with logos, social icons ---- */
.foot-grid { grid-template-columns: 1.4fr 1.2fr 1fr; }
.foot-partners { border-top: 1px solid rgba(255, 255, 255, .14); padding: 28px 0 8px; }
.foot-partners h3 { margin-bottom: 16px; }
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.partner { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 8px; color: #e6ecfb; max-width: 340px; }
a.partner:hover { background: rgba(255, 255, 255, .08); border-color: var(--yellow); color: #fff; text-decoration: none; }
.p-logo { flex: none; width: 54px; height: 54px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #fff; }
.p-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; }
.p-logo i { font: 800 .95rem var(--serif); font-style: normal; letter-spacing: .02em; color: #0d1f4f; }
.p-name { font-size: .92rem; line-height: 1.3; }
.soc.is-off { opacity: .45; cursor: default; }
.soc.is-off:hover { background: none; color: #fff; border-color: rgba(255, 255, 255, .3); }
.util-social { display: flex; gap: 2px; margin-left: 18px; }
.util-social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #d6def5; }
.util-social a:hover { background: var(--yellow); color: var(--yellow-ink); }
.util-social .ico { width: 15px; height: 15px; }

/* ---- 404 ---- */
.notfound { max-width: 640px; }
.notfound .lead { font: 500 1.35rem/1.45 var(--serif); margin: 0 0 18px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
kbd { padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; font: 600 .85em var(--sans); background: var(--tint); }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } .partner { max-width: 100%; } }

/* ---- header buttons (Абітурієнту / Новини / Контакти) ---- */
.nav > li.cta-li { margin-left: 6px; }
.nav > li.cta-li:first-of-type, .nav > li:not(.cta-li) + li.cta-li { margin-left: 14px; }
.nav > li.cta-li > a, .nav > li.cta-li > span.btn { padding: 9px 16px; border: 2px solid var(--ink); border-radius: var(--r); color: var(--ink); font: 700 .9rem/1.2 var(--sans); box-shadow: none; white-space: nowrap; }
.nav > li.cta-li > a:hover, .nav > li.cta-li:focus-within > a { box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px, -2px); }
.nav > li.cta-li > .primary { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.nav > li.cta-li > .primary:hover { box-shadow: 3px 3px 0 var(--ink); }
.nav > li.cta-li.has-sub > a { padding-right: 28px; }
.nav > li.cta-li.has-sub > a::before { display: none; }
.nav > li.cta-li.has-sub > a::after { content: ""; display: block; position: absolute; left: auto; right: 12px; top: 50%; width: 5px; height: 5px; margin: -4px 0 0; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); background: none; border-radius: 0; height: 5px; }
.nav > li.cta-li.has-sub > a:hover { transform: translate(-2px, -2px); }
.cta-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.cta-scope { display: flex; align-items: center; gap: 8px; margin-left: 14px; }

/* ---- footer: partners are a compact 4th column ---- */
.foot-grid { grid-template-columns: 1.35fr 1.1fr .95fr 1.15fr; gap: 40px; }
.foot-partners { border: 0; padding: 0; }
.foot-partners h3 { margin-bottom: 14px; }
.partners { flex-direction: column; flex-wrap: nowrap; gap: 9px; }
.partner { padding: 0; border: 0; border-radius: 0; gap: 10px; max-width: none; background: none; }
a.partner:hover { background: none; color: #fff; text-decoration: underline; }
.p-logo { width: 34px; height: 34px; border-radius: 5px; }
.p-logo i { font-size: .66rem; }
.p-name { font-size: .86rem; line-height: 1.3; }
.hero-cta:empty { display: none; }
@media (max-width: 1180px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-partners { grid-column: 1 / -1; } .partners { flex-direction: row; flex-wrap: wrap; gap: 14px 22px; } }
@media (max-width: 980px) {
  .nav > li.cta-li, .nav > li.cta-li:first-of-type, .nav > li:not(.cta-li) + li.cta-li { margin: 8px 0 0; }
  .nav > li.cta-li > a, .nav > li.cta-li > span.btn { display: block; text-align: center; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
  .cta-scope { margin: 8px 0 0; }
}
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---- header fit: no wrapping, tighter spacing, burger menu below 1280px ---- */
.hdr-in { gap: 16px; }
.brand-text { max-width: 270px; }
.nav a, .mega-btn { white-space: nowrap; }
.nav > li > a { padding-left: 11px; padding-right: 11px; }
.nav .has-sub > a { padding-right: 26px; }
.mega-btn { margin-left: 4px; padding: 11px 16px; }
@media (max-width: 1279px) {
  .burger { display: flex; margin-left: auto; }
  .search-btn { margin-left: 0; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; margin: 0; max-height: calc(100vh - 120px); overflow: auto; }
  .hdr.open .mainnav, .mainnav.open { display: block; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); box-shadow: none !important; }
  .nav .has-sub > a::after { display: none; }
  .nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 14px; background: none; min-width: 0; }
  .nav .sub a { padding: 10px 12px; }
  .mega-li { margin-top: 12px; } .mega-btn { margin: 0; width: 100%; justify-content: space-between; }
  .mega { position: static; max-height: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .nav > li.cta-li, .nav > li.cta-li:first-of-type, .nav > li:not(.cta-li) + li.cta-li { margin: 8px 0 0; }
  .nav > li.cta-li > a, .nav > li.cta-li > span.btn { display: block; text-align: center; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
  .nav > li.cta-li.has-sub > a::after { display: none; }
  .nav > li.cta-li.has-sub > a { padding-right: 16px; }
  .cta-list { flex-wrap: wrap; } .cta-scope { margin: 8px 0 0; flex-wrap: wrap; }
}
@media (max-width: 640px) { .mega-grid { grid-template-columns: 1fr; } }

/* ---- partners: wide, rectangular logo cards (logo on white, name underneath) ---- */
.partners { gap: 14px; }
.partner { flex-direction: column; align-items: flex-start; gap: 6px; }
.p-logo { width: auto; min-width: 96px; max-width: 100%; height: 46px; padding: 5px 12px; border-radius: 6px; background: #fff; }
.p-logo img { height: 100%; width: auto; max-width: 100%; padding: 0; object-fit: contain; }
.p-logo i { font-size: .8rem; letter-spacing: .04em; }
.p-name { font-size: .8rem; line-height: 1.3; color: #b9c5e6; }
a.partner:hover .p-name { color: #fff; }
@media (max-width: 1180px) { .partner { flex-direction: row; align-items: center; gap: 12px; } .p-name { font-size: .86rem; } }
.p-logo { height: 48px; padding: 5px 12px; box-sizing: border-box; }
.p-logo img { height: 38px; width: auto; max-height: none; max-width: 100%; object-fit: contain; display: block; }

/* all partner logo cards have the same width; the logo itself is centred inside */
.p-logo { width: 214px; max-width: 100%; min-width: 0; }
.p-logo i { font-size: .95rem; }

/* shorter logo cards */
.p-logo { width: 128px; height: 44px; padding: 5px 10px; }
.p-logo img { height: 34px; }
.p-logo i { font-size: .85rem; }

/* footer: the partners column ends exactly at the container's right edge; the divider line spans the content width */
@media (min-width: 1181px) { .foot-grid { grid-template-columns: 1.4fr 1.1fr 1fr auto; } }
.foot-copy { border-top: 0; position: relative; }
.foot-copy::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 640px) { .foot-copy::before { left: 16px; right: 16px; } }
.partners, .foot-partners { justify-self: end; }

/* footer: the name block on the left, the three info columns as one group flush right with equal gaps */
@media (min-width: 1181px) {
  .foot-grid { grid-template-columns: minmax(260px, 1fr) 240px 210px auto; column-gap: 48px; }
  .foot-brand { max-width: 380px; }
}

/* partner logo cards span the full width of their column (= the width of the name below) */
.foot-partners { justify-self: end; width: max-content; max-width: 100%; }
.partner { align-items: stretch; }
.p-logo { width: 100%; }
@media (max-width: 1180px) { .partner { align-items: center; } .p-logo { width: 128px; } }

/* logos with white lettering sit on a dark card */
.p-logo.p-dark { background: #0a2463; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }

/* ---- documents: size on the card, search over long lists ---- */
.card .fsize { flex: none; color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.docsearch { margin: 0 0 18px; }
.docsearch[hidden], .blocks > [hidden] { display: none; }

/* ---- video gallery ---- */
.vsearch { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.vsearch input { flex: 1 1 280px; max-width: 520px; padding: 13px 16px; border: 2px solid var(--ink); border-radius: 0; background: var(--card); color: var(--ink); font: 600 1rem var(--sans); }
.vsearch input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.vcount { color: var(--muted); font-size: .92rem; }
.vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.vitem[hidden] { display: none; }
.vcard { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
a.vcard:hover { transform: translate(-3px, -3px); box-shadow: var(--hard); border-color: var(--ink); text-decoration: none; }
.v-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #0a2463, #1d4ed8); }
.v-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
a.vcard:hover .v-thumb img { transform: scale(1.04); }
.v-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #0a2463; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .15s; }
.v-play svg { margin-left: 3px; }
a.vcard:hover .v-play { transform: scale(1.1); }
.v-thumb em { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; background: var(--navy); color: #fff; font: 700 .72rem var(--sans); font-style: normal; border-radius: 3px; }
.v-title { padding: 14px 16px 16px; font: 700 1rem/1.35 var(--serif); }
.v-empty { margin: 18px 0 0; color: var(--muted); }
.vmodal { position: fixed; inset: 0; z-index: 400; background: rgba(5, 10, 22, .92); display: grid; place-items: center; padding: 24px; }
.vm-box { position: relative; width: min(1040px, 100%); }
.vm-frame { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.vm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 12px; color: #fff; }
.vm-foot a { color: var(--yellow); }
.vm-close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.vm-close:hover { background: rgba(255, 255, 255, .28); }
@media (max-width: 640px) { .vgrid { grid-template-columns: 1fr; } .vmodal { padding: 12px; } }

/* search results grouped by kind */
.s-group { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 6px; color: var(--muted); font: 700 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.s-group span { padding: 1px 8px; border-radius: 10px; background: var(--tint); color: var(--ink); }
.s-more { padding: 4px 16px 8px; color: var(--muted); font-size: .8rem; }

/* social icons in the top strip: same plain look as the other controls */
.util-social { gap: 2px; margin-left: 12px; }
.util-social a { width: 28px; height: 28px; background: none; border: 0; color: #fff; }
.util-social a:hover { background: var(--yellow); color: var(--yellow-ink); }
.util-social .ico { width: 17px; height: 17px; }

/* ---- generated site map page ---- */
.sitemap ul { list-style: none; padding-left: 0; margin: 0 0 1em; }
.sitemap ul ul { padding-left: 1.4em; margin: .35em 0 .2em; border-left: 2px solid var(--line); }
.sitemap li { margin: 0 0 .4em; }
.sitemap > ul > li > a { font-weight: 700; }

/* ---- section sub-navigation: way back to the parent page, calmer focus ---- */
.subnav .eyebrow a { color: inherit; text-decoration: none; }
.subnav .eyebrow a:hover { color: var(--ink); text-decoration: underline; }
.subnav a:focus-visible, .subnav .eyebrow a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 999px; }
.subnav a:active { transform: translateY(1px); }
.subnav .eyebrow a.subnav-up { display: inline; padding: 0; background: none; border: 0; border-radius: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.subnav .eyebrow a.subnav-up:hover { color: var(--ink); text-decoration: underline; }
.subnav .eyebrow a.subnav-up:focus-visible { border-radius: 4px; }

/* ---- layout tables from the old site (logos next to a name, ...): keep pictures tidy ---- */
.prose table:not(.grid) td { vertical-align: middle; }
.prose table:not(.grid) td img { max-width: 150px; max-height: 120px; width: auto; height: auto; object-fit: contain; margin: 4px auto; }
.subnav .eyebrow:only-child { margin: 0; }
.subnav + .subnav { margin-top: -22px; }

/* ---- footer partners: ONE ROW under the columns (7 logos side by side), names under the logos ---- */
@media (min-width: 1181px) { .foot-grid { grid-template-columns: minmax(260px, 1fr) 240px 210px; column-gap: 48px; } }
.foot-partners { grid-column: 1 / -1; justify-self: stretch; width: auto; max-width: none; margin-top: 8px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.foot-partners h3 { margin-bottom: 14px; }
.foot-partners .partners { display: flex; flex-direction: row; flex-wrap: wrap; justify-self: auto; gap: 18px 16px; }
.foot-partners .partners li { flex: 1 1 140px; min-width: 0; max-width: 220px; }
.foot-partners .partner { display: flex; flex-direction: column; align-items: stretch; gap: 8px; height: 100%; }
.foot-partners .p-logo { width: 100%; height: 54px; padding: 6px 10px; }
.foot-partners .p-logo img { height: 42px; width: auto; max-width: 100%; }
.foot-partners .p-name { font-size: .78rem; line-height: 1.3; }
@media (max-width: 1180px) { .foot-partners .partner { flex-direction: column; align-items: stretch; } .foot-partners .p-logo { width: 100%; } }

/* ---- news tags: search field + chips, tags under an article ---- */
.tagbar { margin: 0 0 26px; padding: 16px 18px; background: var(--tint); border-radius: var(--r); }
.tagbar-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.tagbar .tag-q { flex: 1 1 260px; max-width: 420px; padding: 11px 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--card); color: var(--ink); font: 600 .95rem var(--sans); }
.tagbar .tag-q:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.tagbar .tag-all { font-weight: 700; font-size: .9rem; }
.tagchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tagchips li[hidden] { display: none; }
.tagchips a { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 13px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.tagchips a small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.tagchips a:hover { border-color: var(--ink); }
.tagchips a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tagchips a[aria-current] small { color: #c5d0ee; }
.tagchips a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.tag-none { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.article-tags { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-tags span { color: var(--muted); font-weight: 600; }
.article-tags a { padding: 4px 12px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.article-tags a:hover { border-color: var(--ink); }

/* ---- footer quick links: two columns (they mirror the header, so there are more of them) ---- */
.foot .flinks { columns: 2; column-gap: 28px; }
.foot .flinks li { break-inside: avoid; }
@media (min-width: 1181px) { .foot-grid { grid-template-columns: minmax(260px, 1fr) 240px 360px; } }
@media (max-width: 640px) { .foot .flinks { columns: 1; } }

/* =====================================================================
   PHONES AND TABLETS: nothing may push the page wider than the screen
   ===================================================================== */
.card, .card > span, .prose, .b-text, .news-body, .split-text, .page-head h1, .tile { overflow-wrap: anywhere; }
.card-banner > span { font-size: clamp(1rem, 4.6vw, 1.3rem); }
.prose iframe, .prose img, .b-gallery img, .video iframe { max-width: 100%; }
.prose table { max-width: 100%; }

@media (max-width: 1279px) {
  /* the menu panel: scrolls inside itself, long titles wrap, sub-menus fold */
  .mainnav { max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-shadow: 0 22px 36px rgba(13, 31, 79, .22); }
  .nav a, .mega-btn { white-space: normal; }
  .nav > li { position: relative; }
  .nav .has-sub > a { padding-right: 52px; }
  .nav .sub { display: none; }
  .nav li.sub-open > .sub { display: block; }
  .sub-toggle { position: absolute; right: 0; top: 4px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
  .sub-toggle::before { content: ""; width: 9px; height: 9px; margin-top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
  .nav li.sub-open > .sub-toggle::before { transform: rotate(-135deg); margin-top: 3px; }
  .nav > li.cta-li > .sub-toggle { top: 12px; right: 4px; }
  .nav > li.cta-li.has-sub > a { padding-right: 52px; }
  html.menu-open { overflow: hidden; }
  .nav .sub a { padding: 12px 10px; }
}

@media (max-width: 640px) {
  /* tables used for page layout on the old site (logos next to text, ...) stack into one column; data tables (.grid) scroll sideways */
  .prose table:not(.grid), .prose table:not(.grid) tbody, .prose table:not(.grid) tr, .prose table:not(.grid) td { display: block; width: auto !important; max-width: 100%; }
  .prose table:not(.grid) td { padding: 6px 0; text-align: center; }
  .prose table:not(.grid) td img { margin: 4px auto; }
  /* document / link cards: badge + title, size under the title, no arrow (the title gets the full width) */
  .card { padding: 13px 14px; gap: 4px 12px; }
  a.card::after { display: none; }
  .card .fsize { order: 3; flex-basis: 100%; padding-left: 56px; margin-top: -2px; font-size: .78rem; }
  .card-banner { padding: 20px 16px; }
  /* tag chips: one row you swipe instead of a wall of 18 chips */
  .tagchips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .tagchips li { flex: none; }
  .tagchips a { white-space: nowrap; padding: 9px 14px; }
  .tagbar { padding: 14px; }
  .tagbar .tag-q { flex-basis: 100%; max-width: none; }
  .subnav { padding: 14px; }
  .subnav a { padding: 9px 14px; }
}
@media (min-width: 1280px) { .sub-toggle { display: none; } }
h1, h2, h3, h4, .b-heading, .eyebrow, .crumbs { overflow-wrap: break-word; } /* a long hashtag line in a heading must not widen the page */

/* ---- phones: compact tiles (icon beside the title), bigger touch targets, air under the footer partners ---- */
@media (max-width: 640px) {
  .tiles { gap: 10px; }
  .tile { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; }
  .tile .ico { grid-row: 1 / span 2; width: 46px; height: 46px; padding: 11px; margin: 0; }
  .tile b { font-size: 1.05rem; align-self: end; }
  .tile small { align-self: start; font-size: .86rem; }
  .tile:hover { transform: none; box-shadow: none; }
  .foot-partners { padding-bottom: 28px; }
  .foot .flinks a { display: block; padding: 8px 0; }
  .foot .flinks li { margin-bottom: 0; }
  .util .wrap { gap: 6px; }
  .util a, .util button { min-width: 40px; min-height: 40px; }
  .search-btn, .burger { width: 46px; height: 46px; }
}
@media (hover: none) { .tile:hover, a.card:hover, .btn:hover { transform: none; } } /* no "lifted" hover state stuck after a tap */

/* ---- phones: tighter rhythm in the page content, footer that is shorter to scroll and easier to tap ---- */
@media (max-width: 640px) {
  /* content: less empty space between blocks, headings sized for a narrow column */
  .page-head h1 { font-size: clamp(1.6rem, 7.4vw, 2rem); }
  .crumbs { margin-bottom: 12px; }
  .crumbs a { display: inline-block; padding: 9px 0; margin: -9px 0; } /* a finger-sized target without moving the line */
  .page-wrap { padding-bottom: 56px; }
  .page-wrap .sec { padding: 18px 0; }
  .b-heading { margin-top: 22px; font-size: 1.4rem; }
  h3.b-heading { font-size: 1.2rem; } h4.b-heading { font-size: 1.08rem; }
  .prose { font-size: 1rem; }
  .prose blockquote { padding: .1em .9em; }
  .prose table.grid { font-size: .92rem; }
  .prose td, .prose th { padding: 7px 9px; }
  .subnav { margin-bottom: 24px; }
  .subnav a { border-radius: 12px; line-height: 1.35; } /* a pill that wraps onto two lines turns into a soft card, not a blob */
  .subnav .eyebrow a.subnav-up { display: inline-block; padding: 8px 0; margin: -8px 0; }
  .tagbar .tag-all { display: inline-block; padding: 8px 0; }
  .article-tags a { padding: 7px 13px; }
  .split-media { margin-right: 10px; }
  .split-media::after { transform: translate(10px, 10px); }
  .sec-split .split { gap: 30px; }

  /* footer: two columns of quick links instead of one long list, contacts as tap targets */
  .foot-grid { gap: 28px; padding-top: 40px; padding-bottom: 28px; }
  .foot-brand b { font-size: 1.12rem; }
  .foot .flinks { columns: 2; column-gap: 16px; }
  .foot .flinks .flink { display: block; padding: 8px 0; line-height: 1.35; }
  .foot address p { margin: 0 0 2px; }
  .foot address p:first-child { margin-bottom: 6px; }
  .foot address a { display: inline-block; padding: 8px 0; }
  .social { margin-top: 16px; }
  .soc { width: 44px; height: 44px; }
  .foot-partners { margin-top: 0; padding-top: 24px; }
  .foot-partners .partners { gap: 16px 12px; }
  .foot-partners .partners li { flex-basis: calc(50% - 6px); max-width: none; }
  .foot-partners .p-logo { height: 50px; }
  .foot-partners .p-logo img { height: 38px; }
  .foot-copy { padding-top: 16px; line-height: 1.5; }
}

/* ---- section styles chosen in the editor: a background band, less or more space (render.js bandsHtml; .blk.bg-* / .blk.sp-* in the editor) ---- */
.band, .blk.bg-tint, .blk.bg-navy { padding: 28px 32px; border-radius: 12px; }
.band { display: flex; flex-direction: column; gap: 14px; }
.band-tint, .blk.bg-tint { background: var(--tint); }
.band-navy, .blk.bg-navy { background: var(--navy); color: #fff; }
:is(.band-navy, .blk.bg-navy) :is(h2, h3, h4, .b-heading, .sec-title) { color: #fff; }
:is(.band-navy, .blk.bg-navy) :is(.prose, .prose-plain) a, :is(.band-navy, .blk.bg-navy) .kicker { color: var(--yellow); }
:is(.band-navy, .blk.bg-navy) .prose blockquote { color: #cbd5f2; }
:is(.band, .blk.bg-tint, .blk.bg-navy) .sec-split { background: none; }
/* in the editor, neighbours with the same background look like the one band the site will show */
.blk.bg-tint + .blk.bg-tint, .blk.bg-navy + .blk.bg-navy { margin-top: -14px; padding-top: 14px; border-top-left-radius: 0; border-top-right-radius: 0; }
.blk.bg-tint:has(+ .blk.bg-tint), .blk.bg-navy:has(+ .blk.bg-navy) { padding-bottom: 14px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.sp-compact { margin-block: -7px; }
.sp-large { margin-block: 22px; }
/* the home page's blocks are full-width sections: their band runs from edge to edge */
.home .band, .home .blk.bg-tint, .home .blk.bg-navy { padding: 0; border-radius: 0; }
.home .band { gap: 0; }
html[data-contrast="high"] :is(.band, .blk.bg-tint, .blk.bg-navy) { background: #000; color: #fff; border: 2px solid #fff; }
@media (max-width: 640px) { .band, .blk.bg-tint, .blk.bg-navy { padding: 20px 16px; border-radius: 8px; } .home .band, .home .blk.bg-tint, .home .blk.bg-navy { padding: 0; border-radius: 0; } }

/* safety net: the page itself never gets wider than the screen */
html, body { max-width: 100%; overflow-x: clip; }
