/*!
 * Mnsterstvo Eksternih Relacij · mer.vilgeria.com
 * © 2026 RV Software Board. All rights reserved.
 */
:root {
    --g-950: #08150e;
    --g-900: #0f2a1c;
    --g-800: #1e3d2b;
    --g-700: #2d5a41;
    --g-600: #3d7556;
    --g-500: #5fae7e;
    --g-400: #86c7a0;
    --g-200: #cfe6d8;
    --g-100: #e4f0e8;
    --g-50: #f1f7f3;

    --bg: #f2f5f3;
    --surface: #ffffff;
    --ink: #122019;
    --muted: #475a4f;
    --dim: #53675b;
    --line: #d5dfd8;
    --line-2: #b7c7bc;
    --link: #1a6a40;
    --brand: var(--g-800);
    --focus: #1a6a40;

    --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
    --font-sans: 'Manrope', 'Segoe UI', Roboto, system-ui, sans-serif;

    --wrap: 1200px;
    --gutter: 24px;
    --nav-h: 54px;
    --radius: 3px;
    --shadow: 0 1px 2px rgba(8, 21, 14, 0.06), 0 12px 28px -16px rgba(8, 21, 14, 0.32);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: light;
}

html[data-theme="dark"] {
    --g-950: #030805;
    --g-900: #07110b;
    --g-800: #0d2016;
    --g-700: #173526;
    --g-600: #214c35;
    --g-500: #35704e;
    --g-100: #0e1b14;
    --g-50: #07100b;
    --bg: #050a07;
    --surface: #09110c;
    --ink: #e2ebe5;
    --muted: #9aada1;
    --dim: #75887c;
    --line: #15221a;
    --line-2: #22332a;
    --link: #7fd0a0;
    --brand: #cfe6d8;
    --focus: #7fd0a0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 14px 30px -16px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
}

html[data-theme="dark"] .flagmark i:nth-child(1) { background: #2a6045; }
html[data-theme="dark"] .flagmark i:nth-child(2) { background: #c4c9c5; }
html[data-theme="dark"] .flagmark i:nth-child(3) { background: #1a1d1b; }

html[data-fs="-1"] { font-size: 14.5px; }
html[data-fs="1"] { font-size: 18px; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--g-700); color: #fff; }

html {
    font-size: 16px;
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
.article__title, .pagehead__title, .stage__title, .about__title, .ncard__title { hyphens: manual; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.utility, .mainnav, .footer, .callout, .stage, .band, .pagehead, .block--green { --focus: #c4ead3; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: fixed; left: 12px; top: -64px; z-index: 5000; padding: 10px 16px; border-radius: 3px; background: #fff; color: var(--g-900); font-weight: 700; transition: top 0.2s; }
.skip:focus { top: 12px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.arms {
    display: inline-block; flex: none; width: 52px; height: 54px; background: currentColor;
    -webkit-mask: url('/images/logos/RV_Coat_of_Arms.png') center / contain no-repeat;
    mask: url('/images/logos/RV_Coat_of_Arms.png') center / contain no-repeat;
}

.flagmark { display: inline-flex; flex: none; width: 22px; height: 14px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.flagmark i { flex: 1; }
.flagmark i:nth-child(1) { background: var(--g-500); }
.flagmark i:nth-child(2) { background: #f4f3ee; }
.flagmark i:nth-child(3) { background: #3a3d3b; }
.flagmark--wide { width: 56px; height: 6px; border-radius: 1px; }

.utility { background: var(--g-950); color: rgba(241, 247, 243, 0.75); font-size: 0.8rem; }
.utility__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility__id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.utility__id span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility__tools { display: flex; align-items: center; gap: 10px; flex: none; }

.fs { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 3px; overflow: hidden; }
.fs button { min-width: 30px; height: 26px; padding: 0 6px; border: 0; background: transparent; color: inherit; font-weight: 800; font-size: 0.8rem; line-height: 1; }
.fs button + button { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.fs button[data-fs="-1"] { font-size: 0.7rem; }
.fs button[data-fs="1"] { font-size: 0.95rem; }
.fs small { font-size: 0.65rem; vertical-align: super; }
.fs button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.fs button[aria-pressed="true"] { background: var(--g-700); color: #fff; }

.themebtn { display: grid; place-items: center; width: 30px; height: 26px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 3px; background: transparent; color: inherit; }
.themebtn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.themebtn .i { grid-area: 1 / 1; width: 15px; height: 15px; }
.themebtn__sun { display: none; }
html[data-theme="dark"] .themebtn__sun { display: block; }
html[data-theme="dark"] .themebtn__moon { display: none; }

.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 3px; overflow: hidden; }
.lang a { padding: 0 10px; line-height: 24px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; }
.lang a + a { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.lang a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.lang a[aria-current] { background: var(--g-600); color: #fff; }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; color: var(--brand); }
.brand .arms { width: 56px; height: 58px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand__text small { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.brand__text strong { margin-top: 2px; font-family: var(--font-serif); font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--brand); }
.brand__text em { margin-top: 3px; font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--link); }

.search { display: flex; flex: none; width: min(340px, 36vw); }
.search input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-right: 0; border-radius: 3px 0 0 3px; background: var(--surface); font-size: 0.92rem; }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--g-600); box-shadow: inset 0 0 0 1px var(--g-600); }
.search button { display: grid; place-items: center; width: 46px; height: 42px; border: 0; border-radius: 0 3px 3px 0; background: var(--g-800); color: #fff; transition: background 0.2s; }
.search button:hover { background: var(--g-600); }
.search .i { width: 19px; height: 19px; }

.mainnav { position: sticky; top: 0; z-index: 1000; background: var(--g-800); color: #fff; box-shadow: 0 8px 18px -14px rgba(0, 0, 0, 0.7); }
.mainnav__in { position: relative; display: flex; align-items: stretch; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.mainnav__panel { display: flex; min-width: 0; }
.menu { display: flex; align-items: stretch; }
.menu__item { position: relative; display: flex; }
.menu__link {
    position: relative; display: flex; align-items: center; gap: 6px; padding: 0 18px; border: 0; background: none;
    font-size: 0.95rem; font-weight: 700; color: rgba(255, 255, 255, 0.88); white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.menu__link::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--g-500); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.menu__item:hover > .menu__link, .menu__item.is-open > .menu__link { background: var(--g-700); color: #fff; }
.menu__item.is-active > .menu__link { color: #fff; }
.menu__item.is-active > .menu__link::after { transform: none; }
.menu__chev { width: 14px; height: 14px; transition: transform 0.25s; }
.menu__item.is-open .menu__chev { transform: rotate(180deg); }

.submenu {
    position: absolute; left: 0; top: 100%; z-index: 20; width: 360px; padding: 8px 0;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--g-500); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.submenu a { display: block; padding: 11px 22px; }
.submenu a b { display: block; font-size: 0.95rem; }
.submenu a span { display: block; margin-top: 1px; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
.submenu a:hover { background: var(--g-50); }
.submenu a:hover b { color: var(--link); }
.menu__item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 981px) {
    .menu__item.has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: none; }
    .menu__item.has-sub:hover .menu__chev { transform: rotate(180deg); }
}

.staff { align-self: center; flex: none; padding: 7px 16px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 3px; font-size: 0.86rem; font-weight: 700; transition: background 0.2s, border-color 0.2s; }
.staff:hover { background: var(--g-600); border-color: var(--g-500); }

.burger { display: none; align-items: center; gap: 10px; align-self: center; height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 3px; background: transparent; color: #fff; font-size: 0.9rem; font-weight: 700; }
.burger .i { width: 20px; height: 20px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (max-width: 980px) {
    .masthead__in { gap: 16px; }
    .search { display: none; }
    .burger { display: inline-flex; }
    .mainnav__panel {
        position: absolute; left: 0; right: 0; top: 100%; z-index: 30; max-height: calc(100vh - var(--nav-h) - 20px); overflow-y: auto;
        background: var(--g-900); border-top: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
        opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
    }
    .mainnav__panel.is-open { opacity: 1; visibility: visible; transform: none; }
    .menu { flex-direction: column; width: 100%; padding: 8px var(--gutter) 16px; }
    .menu__item { flex-direction: column; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .menu__link { justify-content: space-between; padding: 15px 4px; font-size: 1.02rem; }
    .menu__link::after { display: none; }
    .menu__item:hover > .menu__link { background: none; }
    .menu__item.is-open > .menu__link { background: none; color: var(--g-400); }
    .submenu { position: static; width: auto; padding: 0 0 10px 12px; border: 0; border-left: 2px solid var(--g-600); box-shadow: none; background: transparent; color: #fff; display: none; opacity: 1; visibility: visible; transform: none; }
    .menu__item.is-open > .submenu { display: block; }
    .submenu a { padding: 9px 12px; }
    .submenu a span { color: rgba(255, 255, 255, 0.6); }
    .submenu a:hover { background: rgba(255, 255, 255, 0.06); }
    .submenu a:hover b { color: #fff; }
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: 3px;
    font-size: 0.94rem; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primary { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.btn--primary:hover { background: var(--g-800); border-color: var(--g-800); }
html[data-theme="dark"] .btn--primary { background: var(--g-600); border-color: var(--g-600); }
html[data-theme="dark"] .btn--primary:hover { background: var(--g-500); border-color: var(--g-500); color: var(--g-950); }
.btn--light { background: #fff; color: var(--g-800); }
.btn--light:hover { background: #dcebe2; color: #0d2016; }
.btn--line { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn--line:hover { border-color: var(--g-600); color: var(--link); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }
.label--light { color: var(--g-400); }
a.label:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 0.82rem; color: var(--dim); }
.meta time { font-variant-numeric: tabular-nums; }
.meta__country { color: var(--link); font-weight: 700; }
.kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--link); }
.kicker--light { color: var(--g-400); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; color: var(--link); }
.more .i { transition: transform 0.25s var(--ease); }
.more:hover .i { transform: translateX(3px); }
.link { color: var(--link); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--link) 40%, transparent); }
.link:hover { border-color: var(--link); }
.ref { font-size: 0.86rem; color: var(--dim); }

.chip { display: inline-block; padding: 2px 10px; border-radius: 2px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1.7; white-space: nowrap; background: var(--g-100); color: var(--g-800); border: 1px solid transparent; }
.chip--r-ally, .chip--t-ratified { background: var(--g-700); color: #fff; }
.chip--r-diplomatic { background: var(--g-100); color: var(--g-800); border-color: var(--g-200); }
.chip--r-partner { background: #dcefee; color: #17504f; }
.chip--r-contact, .chip--t-negotiating { background: #e8ece9; color: #4a5d52; }
.chip--r-severed, .chip--t-terminated { background: #f6dcd8; color: #8a2b21; }
.chip--t-signed { background: #e3ebf8; color: #27498a; }
.chip--t-suspended { background: #fbefd2; color: #77520a; }
html[data-theme="dark"] .chip--r-ally, html[data-theme="dark"] .chip--t-ratified { background: var(--g-600); }
html[data-theme="dark"] .chip--r-diplomatic { background: #163325; color: var(--g-200); border-color: #244a35; }
html[data-theme="dark"] .chip--r-partner { background: #153332; color: #9bd6d3; }
html[data-theme="dark"] .chip--r-contact, html[data-theme="dark"] .chip--t-negotiating { background: #1e2a24; color: #a2b5a9; }
html[data-theme="dark"] .chip--r-severed, html[data-theme="dark"] .chip--t-terminated { background: #3a1f1b; color: #f0a79c; }
html[data-theme="dark"] .chip--t-signed { background: #182640; color: #a6c0f0; }
html[data-theme="dark"] .chip--t-suspended { background: #3a2f12; color: #f0cf8a; }

.ncard__img.ph, .related .ph { background: linear-gradient(135deg, var(--g-100), var(--g-200)); }
.ncard__img.ph::before, .related .ph::before { background: rgba(30, 61, 43, 0.22); }
html[data-theme="dark"] .ncard__img.ph, html[data-theme="dark"] .related .ph { background: linear-gradient(135deg, #14261c, #0f1d16); }
html[data-theme="dark"] .ncard__img.ph::before { background: rgba(207, 230, 216, 0.14); }

.ph { position: relative; display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--g-800), var(--g-900)); overflow: hidden; }
.ph::before {
    content: ''; position: absolute; inset: 18%; background: rgba(255, 255, 255, 0.13);
    -webkit-mask: url('/images/logos/RV_Coat_of_Arms.png') center / contain no-repeat; mask: url('/images/logos/RV_Coat_of_Arms.png') center / contain no-repeat;
}

.shead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); position: relative; }
.shead::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--g-600); }
.shead__title { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.2; }
.shead__more { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 0.88rem; font-weight: 700; color: var(--link); }
.shead__more:hover { text-decoration: underline; text-underline-offset: 3px; }

.block { padding: clamp(40px, 5vw, 64px) 0; }
.block--tint { background: var(--g-50); border-block: 1px solid var(--line); }
.block--tight { padding-top: 56px; }
.block--green { background: radial-gradient(70% 120% at 100% 0%, rgba(95, 174, 126, 0.25), transparent 65%), linear-gradient(135deg, var(--g-800), var(--g-950)); color: #f1f7f3; }

.empty { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border: 1px dashed var(--line-2); background: var(--surface); }
.empty__mark { flex: none; width: 34px; height: 36px; background: var(--g-600); opacity: 0.55; -webkit-mask: url('/images/logos/RV_Coat_of_Arms.png') center / contain no-repeat; mask: url('/images/logos/RV_Coat_of_Arms.png') center / contain no-repeat; }
.empty { flex-wrap: wrap; }
.empty p { flex: 1 1 240px; color: var(--muted); }
.empty .more { flex-basis: 100%; padding-left: 50px; }
.empty > * + .more { margin-top: 6px; }
.note { padding: 14px 18px; border-left: 3px solid var(--g-500); background: var(--g-50); color: var(--muted); font-size: 0.94rem; }

.top { padding: 28px 0 8px; }
.top__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }

.stage { position: relative; min-width: 0; overflow: hidden; background: var(--g-900); min-height: 440px; border-radius: var(--radius); }
.stage__slides, .stage__slide, .stage__link { position: absolute; inset: 0; }
.stage__slide[hidden] { display: none; }
.stage__link { display: block; color: #fff; }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.stage__link:hover .stage__img { transform: scale(1.025); }
.stage__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 21, 14, 0.95) 0%, rgba(8, 21, 14, 0.62) 38%, rgba(8, 21, 14, 0.1) 72%); }
.stage__text { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; padding: 28px 32px 34px; }
[data-slider] .stage__text { padding-right: 190px; }
.stage__text .meta { color: rgba(255, 255, 255, 0.78); }
.stage__title { font-family: var(--font-serif); font-size: clamp(1.45rem, 2.6vw, 2.15rem); font-weight: 700; line-height: 1.2; }
.stage__lead { font-size: 0.98rem; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.stage--static .stage__link { position: absolute; }
.stage__ctrl { position: absolute; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.stage__ctrl > button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 3px; background: rgba(8, 21, 14, 0.5); color: #fff; backdrop-filter: blur(4px); }
.stage__ctrl > button:hover { background: var(--g-700); }
.stage__dots { display: flex; gap: 6px; }
.stage__dots button { width: 22px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, 0.4); }
.stage__dots button[aria-current] { background: var(--g-400); }

.top__side { display: flex; flex-direction: column; gap: 24px; }
.minister { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--g-700); border-radius: var(--radius); box-shadow: var(--shadow); }
.minister__photo { width: 92px; height: 112px; overflow: hidden; border-radius: 2px; background: var(--g-800); }
.minister__img { width: 100%; height: 100%; object-fit: cover; }
.minister__role { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); line-height: 1.4; }
.minister__name { margin: 4px 0 10px; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.is-vacant { color: var(--dim); font-style: italic; font-weight: 400 !important; }

.callout { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border-radius: var(--radius); color: #f1f7f3; background: radial-gradient(90% 90% at 100% 0%, rgba(95, 174, 126, 0.3), transparent 60%), linear-gradient(160deg, var(--g-700), var(--g-900)); }
.callout__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); color: var(--g-200); }
.callout__ico .i { width: 24px; height: 24px; }
.callout h2 { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.25; }
.callout p { flex: 1; color: rgba(241, 247, 243, 0.82); font-size: 0.96rem; }

@media (max-width: 980px) {
    .top__grid { grid-template-columns: minmax(0, 1fr); }
    .top__side { flex-direction: row; }
    .top__side > * { flex: 1; }
}
@media (max-width: 720px) {
    .stage { min-height: 420px; }
    .stage__text, [data-slider] .stage__text { padding: 22px 20px 74px; }
    .top__side { flex-direction: column; }
}

.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.ngrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ngrid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ncard { display: flex; flex-direction: column; gap: 14px; }
.ncard__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--g-900); border-radius: var(--radius); }
.ncard__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.ncard:hover .ncard__img { transform: scale(1.04); }
.ncard__body { display: flex; flex-direction: column; gap: 8px; }
.ncard__title { font-family: var(--font-serif); font-size: 1.22rem; line-height: 1.32; }
.ncard__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s; }
.ncard__title a:hover { background-size: 100% 1px; color: var(--link); }
.ncard__lead { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 980px) { .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ngrid, .ngrid--2, .ngrid--list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
    .ngrid, .ngrid--2, .ngrid--list { gap: 22px; }
    .ncard { flex-direction: row; align-items: flex-start; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
    .ncard__media { flex: 0 0 112px; aspect-ratio: 1 / 1; }
    .ncard__title { font-size: 1.05rem; }
    .ncard__lead { display: none; }
    .related__list .ncard { padding-bottom: 0; border: 0; }
}

.infos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.info { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 22px 54px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--g-700); border-radius: var(--radius); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.2s; }
.info:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-top-color: var(--g-500); }
.info b { margin-top: 12px; font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.3; }
.info > span:not(.ico) { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.info__go { position: absolute; left: 22px; bottom: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--g-100); color: var(--g-800); font-style: normal; transition: background 0.2s, color 0.2s; }
.info:hover .info__go { background: var(--g-700); color: #fff; }
html[data-theme="dark"] .info__go { color: var(--g-200); }
@media (max-width: 1060px) { .infos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .infos { grid-template-columns: minmax(0, 1fr); } }

.ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 3px; background: var(--g-100); color: var(--g-700); }
.ico .i { width: 24px; height: 24px; }
html[data-theme="dark"] .ico { color: var(--g-200); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
@media (max-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.rows { border-top: 1px solid var(--line); }
.rows li a { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 6px; border-bottom: 1px solid var(--line); transition: background 0.2s; }
.rows li a:hover { background: var(--g-50); }
.rows__date { font-size: 0.82rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.rows__title { font-family: var(--font-serif); font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.rows li a:hover .rows__title { color: var(--link); }
.rows--country li a { grid-template-columns: 52px minmax(0, 1fr) auto; }
.rows__flag { display: grid; place-items: center; width: 48px; height: 32px; overflow: hidden; border-radius: 2px; background: var(--g-100); }
.rows__emb { width: 100%; height: 100%; object-fit: cover; }
.rows__ini { font-family: var(--font-serif); font-weight: 700; color: var(--g-700); }
@media (max-width: 560px) { .rows li a { grid-template-columns: minmax(0, 1fr) auto; } .rows__date { grid-column: 1 / -1; } }

.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.about__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.about__title { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; }
.about__text p { max-width: 560px; font-size: 1.04rem; color: rgba(241, 247, 243, 0.84); }
.about__fig { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.about__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.about__fig figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 18px; background: rgba(8, 21, 14, 0.78); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.res { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.res a { position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 18px 44px 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--g-600); border-radius: var(--radius); transition: background 0.2s, border-color 0.2s; }
.res a:hover { background: var(--g-50); border-left-color: var(--g-500); }
.res b { font-size: 0.95rem; }
.res span { font-size: 0.82rem; color: var(--dim); overflow-wrap: anywhere; }
.res__ext { position: absolute; right: 16px; top: 18px; width: 16px; height: 16px; color: var(--dim); }
.res--col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1060px) { .res { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .res, .res--col { grid-template-columns: minmax(0, 1fr); } }

.pagehead {
    color: #fff; padding: 34px 0 40px;
    background: linear-gradient(90deg, rgba(8, 21, 14, 0.95) 0%, rgba(15, 42, 28, 0.86) 55%, rgba(30, 61, 43, 0.72) 100%), url('/images/photos/hero.jpg') 50% 38% / cover no-repeat;
    background-color: var(--g-900);
}
.pagehead--article { padding: 16px 0; background: var(--g-900); }
.crumbs { margin-bottom: 18px; font-size: 0.82rem; }
.pagehead--article .crumbs { margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; color: rgba(255, 255, 255, 0.72); }
.crumbs li + li::before { content: '/'; margin: 0 9px; opacity: 0.5; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }
.pagehead__kicker { margin-bottom: 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--g-400); }
.pagehead__title { font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12; max-width: 900px; }
.pagehead__lead { margin-top: 14px; max-width: 760px; font-size: 1.08rem; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }

.page { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 52px; padding-block: 44px 80px; align-items: start; }
.page--single { grid-template-columns: minmax(0, 860px); }
.page--article { grid-template-columns: minmax(0, 800px); justify-content: center; }
.page__main > :first-child { margin-top: 0; }
.side { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 24px; }
.sidenav h2 { margin-bottom: 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.sidenav ul { border-left: 1px solid var(--line-2); }
.sidenav a { display: block; margin-left: -1px; padding: 9px 16px; border-left: 3px solid transparent; font-size: 0.95rem; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.sidenav a:hover { color: var(--ink); background: var(--g-50); }
.sidenav a[aria-current] { border-left-color: var(--g-600); color: var(--ink); background: var(--g-50); font-weight: 800; }
@media (max-width: 980px) {
    .page { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 56px; }
    .side { position: static; }
    .sidenav ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
    .sidenav a { margin: 0; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 0.88rem; }
    .sidenav a[aria-current] { border-color: var(--g-600); }
}

.panel { padding: 20px 22px 8px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--g-700); border-radius: var(--radius); }
.panel__title { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 6px; }
.facts > div { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.facts dt { color: var(--dim); font-weight: 600; }
.facts dd { font-weight: 700; overflow-wrap: anywhere; }
.panel .facts > div { grid-template-columns: minmax(0, 1fr); gap: 1px; }
.facts--inline { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.facts--inline > div { display: block; padding: 0; border: 0; }
.facts--table { margin-bottom: 28px; border: 1px solid var(--line); background: var(--surface); }
.facts--table > div { padding: 12px 18px; }
.facts--table > div:first-child { border-top: 0; }
@media (max-width: 980px) { .panel { display: none; } }

.lead { font-family: var(--font-serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.6; color: var(--ink); margin-bottom: 18px; }
.page__main > p { margin-top: 14px; color: var(--muted); max-width: 760px; }
.page__main > p.lead { color: var(--ink); }
.page__main .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sec { margin-top: 52px; }
.sec--first { margin-top: 0; }
.sec__title { position: relative; margin-bottom: 18px; padding-bottom: 12px; font-family: var(--font-serif); font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.25; border-bottom: 1px solid var(--line-2); }
.sec__title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: var(--g-600); }
.sec__title small { font-family: var(--font-sans); font-size: 0.8rem; color: var(--dim); font-weight: 600; margin-left: 6px; }
.sec > p { margin-top: 12px; color: var(--muted); max-width: 760px; }
.sec > p:first-of-type { margin-top: 0; }
.sec > p .btn, .sec > p.actions { margin-top: 6px; }

.prose { font-size: 1.06rem; line-height: 1.8; color: var(--ink); max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-family: var(--font-serif); font-size: 1.55rem; line-height: 1.25; }
.prose h3 { margin-top: 1.6em; font-family: var(--font-serif); font-size: 1.25rem; }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose ul li::marker { color: var(--g-600); }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--link); border-bottom: 1px solid color-mix(in srgb, var(--link) 40%, transparent); }
.prose a:hover { border-color: var(--link); }
.prose blockquote { padding: 4px 0 4px 22px; border-left: 4px solid var(--g-500); font-family: var(--font-serif); font-style: italic; color: var(--muted); }
.prose img { margin-block: 1.4em; border-radius: var(--radius); }

.duties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.duties li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.duties h3 { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.3; }
.duties p { margin-top: 4px; font-size: 0.93rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 760px) { .duties { grid-template-columns: minmax(0, 1fr); } }

.princ { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.princ li { padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--g-600); border-radius: var(--radius); }
.princ b { display: block; margin-bottom: 4px; font-family: var(--font-serif); font-size: 1.1rem; }
.princ span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; display: block; }
@media (max-width: 1060px) { .princ { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .princ { grid-template-columns: minmax(0, 1fr); } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 56px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--g-700); color: #fff; font-family: var(--font-serif); font-weight: 700; }
.steps li + li::after { content: ''; position: absolute; left: -19px; top: 30px; width: 18px; border-top: 2px dotted var(--g-600); }
.steps h3 { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.3; }
.steps p { margin-top: 6px; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.steps--v { grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 760px; }
.steps--v li { padding: 16px 18px 16px 70px; }
.steps--v li::before { top: 16px; }
.steps--v li + li::after { display: none; }
@media (max-width: 1060px) { .steps:not(.steps--v) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li + li::after { display: none; } }
@media (max-width: 560px) { .steps:not(.steps--v) { grid-template-columns: minmax(0, 1fr); } }

.ladder { margin: 18px 0; counter-reset: rank; max-width: 560px; }
.ladder li { counter-increment: rank; display: flex; align-items: center; gap: 14px; padding: 11px 16px; margin-left: calc(var(--n, 0) * 0px); border: 1px solid var(--line); border-top: 0; background: var(--surface); font-weight: 600; }
.ladder li:first-child { border-top: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: var(--g-700); color: #fff; border-color: var(--g-700); }
.ladder li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.ladder li::before { content: counter(rank); display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--g-100); color: var(--g-800); font-size: 0.8rem; font-weight: 800; }
.ladder li:first-child::before { background: rgba(255, 255, 255, 0.2); color: #fff; }
html[data-theme="dark"] .ladder li::before { color: var(--g-200); }

.quotes { display: grid; gap: 22px; margin-top: 28px; }
.quotes li { padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--g-600); border-radius: var(--radius); }
.quotes h2 { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }
.quotes blockquote { margin: 8px 0; font-family: var(--font-serif); font-size: 1.14rem; font-style: italic; line-height: 1.6; }
.quotes__ref { font-size: 0.84rem; color: var(--dim); }
.notice { margin-top: 44px; padding: 20px 24px; background: var(--g-50); border: 1px solid var(--g-200); border-left: 4px solid var(--g-700); border-radius: var(--radius); max-width: 760px; }
html[data-theme="dark"] .notice { border-color: var(--line-2); }
.notice h2 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 4px; }
.notice p { color: var(--muted); }

.tier { margin-bottom: 44px; }
.tier__title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tier__title span { font-family: var(--font-serif); font-size: 1rem; letter-spacing: 0.04em; color: var(--link); }
.tier__title::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.tier__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tier__grid--1 { grid-template-columns: minmax(0, 560px); }
.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--g-600); border-radius: var(--radius); }
.person--big { grid-template-columns: 132px minmax(0, 1fr); padding: 22px; border-left-color: var(--g-500); box-shadow: var(--shadow); }
.person__photo { width: 96px; height: 120px; overflow: hidden; background: var(--g-800); border-radius: 2px; }
.person--big .person__photo { width: 132px; height: 165px; }
.person__img { width: 100%; height: 100%; object-fit: cover; }
.person__role { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); line-height: 1.4; }
.person__name { margin-top: 4px; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; }
.person--big .person__name { font-size: 1.55rem; }
.person__ids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.person__ids span { padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 0.78rem; color: var(--muted); }
.person__ids b { margin-right: 4px; color: var(--dim); }
.person.is-vacant { border-style: dashed; border-left-style: solid; background: transparent; }
.person.is-vacant .person__photo { opacity: 0.5; }
.person.is-vacant .person__name { color: var(--dim); font-style: italic; font-weight: 400; font-size: 1.05rem; }
@media (max-width: 480px) { .person, .person--big { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; } .person__photo, .person--big .person__photo { width: 72px; height: 90px; } .person--big .person__name { font-size: 1.25rem; } }

.corps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.corps li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.corps__av { width: 44px; height: 44px; flex: none; overflow: hidden; border-radius: 50%; background: var(--g-800); }
.corps__img { width: 100%; height: 100%; object-fit: cover; }
.corps b { display: block; font-size: 0.95rem; line-height: 1.3; }
.corps small { color: var(--dim); font-size: 0.8rem; }

.ccards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.ccard { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--g-700); border-radius: var(--radius); }
.ccard h2 { margin: 14px 0 6px; font-family: var(--font-serif); font-size: 1.15rem; }
.ccard p { color: var(--muted); }
@media (max-width: 640px) { .ccards { grid-template-columns: minmax(0, 1fr); } }

.tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line-2); }
.tabs a { display: block; margin-bottom: -1px; padding: 8px 0 10px; border-bottom: 3px solid transparent; font-size: 0.92rem; font-weight: 700; color: var(--muted); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { border-color: var(--g-600); color: var(--ink); }
.tabs small { margin-left: 3px; color: var(--dim); font-weight: 600; }

.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.country__link { display: flex; gap: 18px; height: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.3s, transform 0.3s var(--ease); }
.country__link:hover { border-color: var(--g-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.country__emb { display: grid; place-items: center; flex: none; width: 72px; height: 48px; overflow: hidden; background: var(--g-100); border-radius: 2px; }
.country__emb img { width: 100%; height: 100%; object-fit: cover; }
.ini { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--g-700); }
html[data-theme="dark"] .ini { color: var(--g-200); }
.country__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.country__body b { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.25; }
.country__body small { color: var(--dim); font-size: 0.82rem; }
.country__sum { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) { .cgrid { grid-template-columns: minmax(0, 1fr); } }
.cdetail { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-bottom: 28px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cdetail__emb { display: grid; place-items: center; width: 120px; height: 80px; overflow: hidden; background: var(--g-100); border-radius: 2px; }
.cdetail__img { width: 100%; height: 100%; object-fit: cover; }

.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 24px; }
.filter__q { flex: 1 1 260px; }
.filter input[type="search"], .filter select { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); font-size: 0.94rem; }
.filter select { width: auto; min-width: 180px; padding-right: 32px; }
.filter input:focus, .filter select:focus { outline: none; border-color: var(--g-600); box-shadow: inset 0 0 0 1px var(--g-600); }
.filter .btn { height: 44px; padding-block: 0; }
.filter--news, .filter--search { max-width: 720px; }
.count { margin-bottom: 12px; font-size: 0.9rem; color: var(--dim); }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.reg { width: 100%; border-collapse: collapse; text-align: left; }
.reg th { padding: 13px 18px; background: var(--g-800); color: #fff; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.reg td { padding: 15px 18px; border-top: 1px solid var(--line); vertical-align: top; font-size: 0.94rem; }
.reg tbody tr:nth-child(even) { background: var(--g-50); }
.reg td a { font-family: var(--font-serif); font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.reg td a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.reg td small { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--dim); }
@media (max-width: 760px) {
    .reg thead { display: none; }
    .reg, .reg tbody, .reg tr, .reg td { display: block; }
    .reg tr { padding: 14px 16px; border-top: 1px solid var(--line); }
    .reg tr:first-child { border-top: 0; }
    .reg td { padding: 3px 0; border: 0; }
    .reg td::before { content: attr(data-label) ': '; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
    .reg td:nth-child(2)::before { display: none; }
    .reg td:nth-child(2) { margin-bottom: 4px; }
}

.mlist { display: grid; gap: 18px; }
.mission { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--g-600); border-radius: var(--radius); }
.mission__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.mission__kind { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }
.mission h3 { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.25; }
.mission .prose { margin-top: 14px; font-size: 0.98rem; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; }
.pager ol { display: flex; gap: 6px; }
.pager li a, .pager__gap { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 3px; font-weight: 700; font-size: 0.92rem; }
.pager__gap { border: 0; }
.pager li a:hover, .pager__step:hover { border-color: var(--g-600); color: var(--link); }
.pager li a[aria-current] { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.pager__step { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 3px; font-weight: 700; font-size: 0.9rem; }

.article__head { padding-bottom: 8px; }
.article__title { margin: 12px 0 16px; font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; }
.article__lead { font-family: var(--font-serif); font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.55; color: var(--muted); }
.article__fig { margin: 28px 0; overflow: hidden; border-radius: var(--radius); }
.article__img { width: 100%; max-height: 520px; object-fit: cover; }
.article .note { margin-bottom: 20px; }
.article__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.related { margin-top: 56px; }
.related .shead { margin-bottom: 22px; }
.related__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .related__list { grid-template-columns: minmax(0, 1fr); } }

.sres { margin-top: 36px; }
.sres__list li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.sres__list li a:hover b { color: var(--link); }
.sres__list b { display: block; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.35; }
.sres__list span { display: block; font-size: 0.82rem; color: var(--dim); }
.sres__list em { display: block; margin-top: 4px; font-style: normal; font-size: 0.92rem; color: var(--muted); }

.smap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.smap h2 { margin-bottom: 8px; font-family: var(--font-serif); font-size: 1.15rem; }
.smap li { padding: 4px 0; }
.smap a { color: var(--link); }
.smap a:hover { text-decoration: underline; text-underline-offset: 3px; }
.smap small { color: var(--dim); }
.smap__wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .smap { grid-template-columns: minmax(0, 1fr); } }

.nf { padding: 90px 0 110px; }
.nf .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.nf__code { font-family: var(--font-serif); font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; line-height: 1; color: var(--g-600); }
.nf h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.nf p { max-width: 560px; color: var(--muted); }
.nf .filter { width: 100%; margin: 8px 0; }

.footer { flex: none; margin-top: auto; background: var(--g-950); color: rgba(241, 247, 243, 0.72); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; padding-block: 56px 44px; }
.footer__logo { display: flex; align-items: center; gap: 14px; color: #f1f7f3; }
.footer__logo .arms { width: 48px; height: 50px; }
.footer__logo b { display: block; font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.25; }
.footer__logo em { display: block; margin-top: 2px; font-style: normal; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-400); }
.footer__brand p { max-width: 300px; margin-top: 16px; font-size: 0.86rem; line-height: 1.55; }
.footer h2 { margin-bottom: 14px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--g-400); }
.footer ul { display: grid; gap: 9px; }
.footer li a { font-size: 0.9rem; transition: color 0.2s; }
.footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-block: 20px; font-size: 0.8rem; }
.footer__bottom-in p { color: rgba(241, 247, 243, 0.55); }
.footer__docs { display: flex; gap: 20px; }
.footer__docs a:hover { color: #fff; }
@media (max-width: 1060px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

.totop { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--g-500); border-radius: 3px; background: var(--g-700); color: #fff; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease), background 0.2s; }
.totop__i { transform: rotate(-90deg); }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--g-600); }

.wait { position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center; padding: 20px; background: rgba(6, 14, 9, 0.74); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.wait[hidden] { display: none; }
.wait__box { width: min(100%, 420px); padding: 34px 28px 26px; display: grid; justify-items: center; gap: 10px; text-align: center; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--g-500); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.wait__box h2 { font-family: var(--font-serif); font-size: 1.3rem; }
.wait__box p { color: var(--muted); font-size: 0.92rem; }
.wait__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.wait__act .btn { padding: 10px 18px; font-size: 0.88rem; }
.wait__spin { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--g-500); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait__msg { width: 100%; padding: 12px 16px; border-radius: 3px; font-size: 0.88rem; text-align: left; color: #b3382a; background: rgba(179, 56, 42, 0.08); border: 1px solid rgba(179, 56, 42, 0.3); }
html[data-theme="dark"] .wait__msg { color: #ff8a7a; background: rgba(255, 138, 122, 0.08); border-color: rgba(255, 138, 122, 0.3); }
.wait__msg[hidden], .wait__spin[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
    .utility, .masthead .search, .mainnav, .footer, .totop, .side, .article__foot, .related, .wait, .stage__ctrl { display: none !important; }
    body { background: #fff; color: #000; }
    .pagehead { background: none !important; color: #000; padding: 12px 0; }
    .pagehead * { color: #000 !important; }
    .page { display: block; padding: 12px 0; }
    a { text-decoration: underline; }
}

.repuser { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.repuser__av { display: grid; place-items: center; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: var(--g-700); color: #fff; font-weight: 800; }
.repuser__av img { width: 100%; height: 100%; object-fit: cover; }
.repuser p { flex: 1; min-width: 0; line-height: 1.35; }
.repuser small { display: block; color: var(--dim); font-size: 0.78rem; }
.repuser b { font-size: 1.02rem; }
.repuser span { color: var(--muted); font-size: 0.9rem; }

.note--bad { border-left-color: #e0705f; color: #f0a79c; background: rgba(224, 112, 95, 0.08); }
.notice--top { margin-top: 0; margin-bottom: 28px; }
.notice .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.rform { display: grid; gap: 18px; max-width: 560px; }
.rf label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 700; }
.rf label small { color: var(--dim); font-weight: 500; }
.rf input[type="text"], .rf input[type="url"], .rf select, .rf textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); color: var(--ink); font: inherit; }
.rf textarea { resize: vertical; }
.rf input:focus, .rf select:focus, .rf textarea:focus { outline: none; border-color: var(--g-500); box-shadow: inset 0 0 0 1px var(--g-500); }
.rf.is-bad input, .rf.is-bad select, .rf.is-bad textarea { border-color: #e0705f; }
.rf__err { margin-top: 6px; color: #f0a79c; font-size: 0.86rem; }
.rf__err[hidden], .note[hidden], .notice[hidden], .rform[hidden] { display: none; }

.repapps { display: grid; gap: 12px; }
.repapps__item { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--g-600); border-radius: var(--radius); }
.repapps__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.repapps__meta { margin-top: 4px; color: var(--dim); font-size: 0.86rem; }
.repapps__answer { margin-top: 10px; color: var(--muted); }
.chip--rep-pending { background: #3a2f12; color: #f0cf8a; }
.chip--rep-approved { background: var(--g-600); color: #fff; }
.chip--rep-rejected { background: #3a1f1b; color: #f0a79c; }
.rep-staff { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.9rem; }

.board { display: grid; gap: 40px; }
.board__plate { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 auto 22px; padding: 12px 28px; max-width: 100%; text-align: center; background: var(--g-800); border: 1px solid var(--g-600); border-radius: var(--radius); box-shadow: var(--shadow); font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g-200); }
.board__plate small { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--g-400); }
.board__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 22px; }
.pcard { display: flex; flex-direction: column; align-items: center; width: 168px; text-align: center; }
.pcard__frame { width: 100%; aspect-ratio: 3 / 4; padding: 7px; overflow: hidden; background: #b9c2bc; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.pcard__frame .ph, .pcard__img { width: 100%; height: 100%; object-fit: cover; }
.pcard__role { margin-top: 12px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); line-height: 1.4; }
.pcard__name { margin-top: 4px; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.pcard.is-vacant .pcard__name { font-style: italic; font-weight: 400; color: var(--dim); font-size: 0.95rem; }
.pcard.is-vacant .pcard__frame { opacity: 0.55; }
.pcard__ids { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 0.76rem; color: var(--muted); }
.pcard__ids b { margin-right: 4px; color: var(--dim); font-weight: 700; }
@media (max-width: 560px) { .pcard { width: 138px; } }
