/* ==========================================================================
   Samarqand tuman texnikumi — public design system (2026-10 redesign)
   Direction: calm, modern institution. Deep green + cream + measured gold.
   Every size, colour and radius below comes from these tokens.
   ========================================================================== */

:root {
  /* Green */
  --g-950: #0b2d24;
  --g-900: #0f3b30;
  --g-800: #154a3c;
  --g-700: #1d5a46;
  --g-600: #2a6f58;
  --g-200: #c9ddd1;
  --g-100: #e3eee7;
  --g-50:  #f1f6f2;
  /* Cream / paper */
  --cream-50: #fcfaf5;
  --cream-100: #f7f2e7;
  --cream-200: #efe7d4;
  --line: #e4dccb;
  --line-soft: #ece6d8;
  /* Gold — 500 for fills, 700 for text on light (AA), 300 for text on green */
  --gold-300: #e8c97c;
  --gold-500: #c9962e;
  --gold-600: #b07f1d;
  --gold-700: #8a6416;
  --gold-100: #f6ebcf;
  /* Ink */
  --ink: #15211d;
  --ink-2: #3d4a45;
  --ink-3: #56635e;
  --white: #fff;

  /* Type scale (base 17px) */
  --font: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: .875rem;     /* 14 – smallest allowed */
  --fs-sm: .9375rem;    /* 15 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-md: 1.1875rem;   /* 19 */
  --fs-lg: 1.375rem;    /* 22 */
  --fs-xl: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);   /* 24–30 */
  --fs-2xl: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem); /* 30–40 */
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);  /* 36–56 */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.7;

  /* Spacing (4px grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(56px, 4rem + 3vw, 104px);

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 59, 48, .06), 0 2px 8px rgba(15, 59, 48, .05);
  --shadow-md: 0 10px 30px rgba(15, 59, 48, .10);
  --shadow-lg: 0 24px 60px rgba(11, 45, 36, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1280px;
  --gutter: 16px;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--gold-500);
  /* Faces in event photos sit in the upper-middle: crop from there. */
  --photo-focus: 50% 38%;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.samtp {
  margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: var(--lh-body);
  color: var(--ink); background: var(--white); font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.samtp a { color: inherit; text-decoration: none; }
.samtp img { max-width: 100%; display: block; }
.samtp h1, .samtp h2, .samtp h3, .samtp h4 { font-weight: 800; letter-spacing: -.02em; line-height: var(--lh-tight); color: var(--g-950); margin: 0; }
.samtp p { margin: 0 0 1em; }
.samtp :focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.samtp ::selection { background: var(--gold-100); color: var(--g-950); }
.wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s4); top: var(--s2); z-index: 2000; background: var(--g-900); color: #fff !important; padding: var(--s3) var(--s4); border-radius: var(--r-sm); font-weight: 700; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.skip-link:focus { clip-path: none; opacity: 1; pointer-events: auto; }

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow, .eyebrow.light { color: var(--gold-300); }
.section-head { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: end; justify-content: space-between; margin-bottom: var(--s6); }
.section-head h2 { font-size: var(--fs-2xl); margin-top: var(--s2); }
.section-head p { color: var(--ink-2); max-width: 56ch; margin: var(--s3) 0 0; }
.section { padding-block: var(--section); }
.section.cream { background: var(--cream-50); border-block: 1px solid var(--line-soft); }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn-x {
  --bg: var(--g-900); --fg: #fff; --bd: var(--g-900);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-md); border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg) !important; font: 700 var(--fs-sm)/1 var(--font); letter-spacing: 0;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn-x i { font-size: 1.05em; transition: transform .2s var(--ease); }
.btn-x:hover { --bg: var(--g-700); --bd: var(--g-700); }
.btn-x:hover i { transform: translateX(3px); }
.btn-x:active { transform: translateY(1px); }
.btn-x.secondary { --bg: transparent; --fg: var(--g-900); --bd: var(--g-900); }
.btn-x.secondary:hover { --bg: var(--g-900); --fg: #fff; }
.btn-x.gold { --bg: var(--gold-500); --fg: #1d1606; --bd: var(--gold-500); }
.btn-x.gold:hover { --bg: var(--gold-300); --bd: var(--gold-300); }
.btn-x.light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .55); }
.btn-x.light:hover { --bg: #fff; --fg: var(--g-900); --bd: #fff; }
.btn-x.sm { min-height: 40px; padding: 0 var(--s4); }
.btn-x.icon { width: 44px; min-height: 44px; padding: 0; }
.text-link { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 800; font-size: var(--fs-sm); color: var(--g-700) !important; border-bottom: 2px solid var(--gold-500); padding-block: 4px; }
.text-link:hover { color: var(--g-950) !important; }
.text-link i { transition: transform .2s var(--ease); }
.text-link:hover i { transform: translateX(3px); }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; color: var(--g-700); background: var(--g-100); border-radius: var(--r-pill); padding: 5px 12px; }
.chip.gold { background: var(--gold-100); color: var(--gold-700); }
.chip.solid { background: var(--g-900); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.filter-chips { display: flex; gap: var(--s2); overflow-x: auto; padding: 2px 2px var(--s3); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.filter-chips a { flex: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); transition: all .2s var(--ease); }
.filter-chips a span { font-size: var(--fs-xs); color: var(--ink-3); background: var(--cream-100); border-radius: var(--r-pill); padding: 1px 8px; }
.filter-chips a:hover { border-color: var(--g-700); color: var(--g-900); }
.filter-chips a[aria-current] { background: var(--g-900); border-color: var(--g-900); color: #fff; }
.filter-chips a[aria-current] span { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- Utility bar + header ---------- */
@media (max-width: 767.98px) { .utility { display: none; } }
.utility { background: var(--g-950); color: #d5e3da; font-size: var(--fs-xs); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 40px; }
.utility i { color: var(--gold-300); margin-right: 6px; }
.utility a:hover { color: #fff; }
.utility-links { display: flex; gap: var(--s5); }
.site-head { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-soft); transition: box-shadow .25s var(--ease); }
.site-head.is-scrolled { box-shadow: var(--shadow-sm); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 76px; }
.brand { display: flex; align-items: center; gap: var(--s3); flex: none; color: var(--g-950) !important; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--g-900); color: var(--gold-300); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: var(--fs-base); font-weight: 800; letter-spacing: -.01em; }
.brand-text span { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: var(--s1); }
.main-nav > a, .nav-drop > button { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s3); font: 700 var(--fs-sm)/1 var(--font); color: var(--ink); background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.main-nav > a::after, .nav-drop > button::after { content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: 6px; height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav > a:hover::after, .main-nav > a[aria-current]::after, .nav-drop.is-current > button::after { transform: scaleX(1); }
.main-nav > a[aria-current], .nav-drop.is-current > button { color: var(--g-700); }
.nav-drop { position: relative; }
.nav-drop > button i { font-size: 12px; transition: transform .2s; }
.nav-drop[data-open] > button i { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: var(--s2); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .18s var(--ease); }
.nav-drop[data-open] .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: flex; flex-direction: column; padding: var(--s3) var(--s3); border-radius: var(--r-sm); font-weight: 700; font-size: var(--fs-sm); }
.nav-menu a small { font-weight: 500; color: var(--ink-3); font-size: var(--fs-xs); }
.nav-menu a:hover, .nav-menu a[aria-current] { background: var(--g-50); color: var(--g-700); }
.head-actions { display: flex; align-items: center; gap: var(--s2); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; color: var(--g-900); font-size: 18px; cursor: pointer; transition: all .2s var(--ease); }
.icon-btn:hover { border-color: var(--g-900); background: var(--g-900); color: #fff; }
.menu-btn { display: none; }
@media (max-width: 1099.98px) {
  .main-nav, .head-actions .btn-x { display: none; }
  .menu-btn { display: inline-grid; }
  .head-actions { margin-left: auto; }
  .site-head .wrap { min-height: 68px; }
}
@media (max-width: 575.98px) {
  .utility-note { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-text strong { font-size: var(--fs-sm); }
  .site-head .brand { flex: 1 1 auto; min-width: 0; }
  .site-head .wrap { gap: var(--s3); }
  .head-actions { gap: 6px; }
}

/* Search panel */
.search-panel { border-top: 1px solid var(--line-soft); background: var(--cream-50); }
.search-panel[hidden] { display: none; }
.search-panel form { display: flex; gap: var(--s2); padding-block: var(--s4); }
.field { width: 100%; min-height: 48px; padding: 0 var(--s4); border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; font: 500 var(--fs-base) var(--font); color: var(--ink); transition: border-color .2s; }
textarea.field { padding-block: var(--s3); min-height: 140px; resize: vertical; line-height: 1.6; }
.field:focus { outline: none; border-color: var(--g-700); box-shadow: 0 0 0 3px var(--g-100); }
.field::placeholder { color: #66726d; }
label.lbl { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: var(--s2); color: var(--ink); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 1060; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(11, 45, 36, .5); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line-soft); }
.drawer-nav { padding: var(--s3) var(--s5); display: flex; flex-direction: column; }
.drawer-nav a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-weight: 700; font-size: var(--fs-md); border-bottom: 1px solid var(--line-soft); }
.drawer-nav a i { color: var(--ink-3); font-size: 16px; }
.drawer-nav a[aria-current] { color: var(--g-700); }
.drawer-nav .sub { padding-left: var(--s4); font-size: var(--fs-base); font-weight: 600; color: var(--ink-2); }
.drawer-foot { margin-top: auto; padding: var(--s5); background: var(--cream-50); display: grid; gap: var(--s3); font-size: var(--fs-sm); color: var(--ink-2); }
body.no-scroll { overflow: hidden; }

/* ---------- Media frame (fixed ratio, face-safe crop, graceful empty) ---------- */
.media { position: relative; overflow: hidden; background: var(--g-100); border-radius: var(--r-md); aspect-ratio: var(--ratio, 3 / 2); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-focus); transition: transform .6s var(--ease); }
.media.is-empty { display: grid; place-items: center; background: radial-gradient(circle at 20% 15%, var(--g-700), var(--g-900) 70%); color: var(--gold-300); }
.media.is-empty::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(135deg, rgba(232, 201, 124, .08) 25%, transparent 25%, transparent 50%, rgba(232, 201, 124, .08) 50%, rgba(232, 201, 124, .08) 75%, transparent 75%); background-size: 28px 28px; }
.media.is-empty .ph { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s2); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: var(--s4); }
.media.is-empty svg { width: 44px; height: 44px; opacity: .9; }

/* ---------- News card ---------- */
.news-card { position: relative; display: flex; flex-direction: column; gap: var(--s4); height: 100%; }
.news-card .media { --ratio: 3 / 2; }
.news-card:hover .media img { transform: scale(1.035); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.news-meta time { display: inline-flex; align-items: center; gap: 6px; }
.news-card .card-title { font-size: var(--fs-md); line-height: var(--lh-snug); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card-title a { background: linear-gradient(var(--gold-500), var(--gold-500)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.news-card:hover h3 a { background-size: 100% 2px; }
.news-card .card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-card p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card-body { display: flex; flex-direction: column; gap: var(--s3); }
.news-card .chip { position: relative; z-index: 2; }
/* Lead variant */
.news-card.is-lead .media { --ratio: 16 / 10; border-radius: var(--r-lg); }
.news-card.is-lead .card-title { font-size: var(--fs-xl); line-height: 1.22; -webkit-line-clamp: 4; }
.news-card.is-lead p { font-size: var(--fs-base); -webkit-line-clamp: 3; }
/* Row variant */
.news-card.is-row { height: auto; flex-direction: row; gap: var(--s4); align-items: flex-start; padding-block: var(--s4); border-bottom: 1px solid var(--line-soft); }
.news-card.is-row:first-child { padding-top: 0; }
.news-card.is-row .media { --ratio: 1 / 1; width: 112px; flex: none; border-radius: var(--r-sm); }
.news-card.is-row .card-title { font-size: var(--fs-base); -webkit-line-clamp: 3; }
.news-card.is-row p { display: none; }
@media (min-width: 768px) { .news-card.is-row .media { width: 148px; --ratio: 4 / 3; } }

/* Grids */
.grid-3 { display: grid; gap: var(--s7) var(--s5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s7) var(--s6); } }
.news-feature { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .news-feature { grid-template-columns: 1.35fr 1fr; gap: var(--s7); } }

/* ---------- HERO ---------- */
.hero { background: var(--g-950); color: #fff; position: relative; overflow: hidden; }
.hero-stage { display: grid; position: relative; }
.hero-slide { grid-area: 1 / 1; display: grid; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); z-index: 1; }
.hero-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.hero-slide.is-active .hero-photo img { transform: scale(1); }
.hero-copy { padding: var(--s6) var(--gutter) var(--s5); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1, .hero-copy h2 { color: #fff; font-size: var(--fs-3xl); margin: var(--s4) 0; max-width: 14ch; }
.hero-copy p { font-size: var(--fs-md); color: #d9e6de; max-width: 40ch; margin-bottom: var(--s6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .08s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .16s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .24s; }
.hero-bar { position: relative; z-index: 2; border-top: 1px solid rgba(255, 255, 255, .12); background: var(--g-950); }
.hero-bar .wrap { display: flex; align-items: stretch; gap: var(--s3); }
.hero-tabs { flex: 1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.hero-tab { position: relative; text-align: left; background: none; border: 0; color: #b9cdc2; font: 600 var(--fs-xs)/1.35 var(--font); padding: var(--s4) var(--s3) var(--s4) 0; cursor: pointer; display: flex; gap: var(--s2); }
.hero-tab b { color: var(--gold-300); font-weight: 800; }
.hero-tab span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-tab::before { content: ""; position: absolute; top: -1px; left: 0; right: var(--s3); height: 3px; background: rgba(255, 255, 255, .14); }
.hero-tab::after { content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 0; background: var(--gold-500); }
.hero-tab[aria-selected="true"] { color: #fff; }
.hero-tab[aria-selected="true"]::after { width: calc(100% - var(--s3)); animation: heroProgress var(--hero-ms, 7000ms) linear; }
.hero.is-paused .hero-tab::after { animation: none; }
@keyframes heroProgress { from { width: 0; } to { width: calc(100% - var(--s3)); } }
.hero-ctrl { display: flex; align-items: center; gap: var(--s2); padding-block: var(--s3); }
.hero-ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.hero-ctrl button i, .icon-btn i { pointer-events: none; }
.hero-ctrl button:hover { background: #fff; color: var(--g-900); border-color: #fff; }
@media (max-width: 767.98px) {
  .hero-tabs { display: none; }
  .hero-bar .wrap { justify-content: space-between; }
  .hero-count { align-self: center; font-weight: 800; color: #fff; }
  .hero-count small { color: #9fb8ab; font-weight: 600; }
}
@media (min-width: 768px) { .hero-count { display: none; } }
@media (min-width: 600px) and (max-width: 899.98px) { .hero-photo { aspect-ratio: 16 / 9; } .hero-copy { padding-block: var(--s6); } .hero-copy p { margin-bottom: var(--s5); } }
@media (min-width: 900px) {
  .hero-slide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: clamp(480px, 60vh, 600px); }
  .hero-photo { aspect-ratio: auto; order: 2; }
  .hero-copy { order: 1; padding: var(--s8) var(--s7) var(--s8) max(var(--gutter), calc((100vw - var(--container)) / 2)); }
  .hero-photo::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 64px; background: linear-gradient(90deg, var(--g-950), transparent); z-index: 1; }
}

/* ---------- Quick links ---------- */
.quick { background: var(--cream-50); border-bottom: 1px solid var(--line-soft); }
.quick-grid { display: grid; grid-template-columns: 1fr; }
.quick-grid a { display: flex; gap: var(--s4); align-items: center; padding: var(--s5) 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.quick-grid a:last-child { border-bottom: 0; }
.quick-grid .qi { width: 48px; height: 48px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--g-700); font-size: 20px; flex: none; transition: all .2s; }
.quick-grid strong { display: block; font-size: var(--fs-base); color: var(--g-950); }
.quick-grid small { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.quick-grid .arr { margin-left: auto; color: var(--gold-700); transition: transform .2s; }
.quick-grid a:hover .qi { background: var(--g-900); color: var(--gold-300); border-color: var(--g-900); }
.quick-grid a:hover .arr { transform: translateX(4px); }
@media (min-width: 768px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .quick-grid a { border-bottom: 0; border-right: 1px solid var(--line); padding: var(--s5) var(--s5) var(--s5) 0; }
  .quick-grid a + a { padding-left: var(--s5); }
  .quick-grid a:last-child { border-right: 0; }
}
@media (min-width: 768px) and (max-width: 1099.98px) { .quick-grid .arr { display: none; } .quick-grid a { flex-direction: column; align-items: flex-start; gap: var(--s3); } }

/* Stats band (figures from admin "Statistika" block) */
.stats-band { background: var(--g-900); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.stats-grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: var(--s5) var(--s4); border-left: 1px solid rgba(255, 255, 255, .12); }
.stats-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
.stats-grid > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
.stats-grid dd { margin: 0; font-size: var(--fs-2xl); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--gold-300); }
.stats-grid dt { font-size: var(--fs-sm); font-weight: 600; color: #c9dacf; }
@media (min-width: 768px) {
  .stats-band .stats-grid { grid-template-columns: repeat(var(--n, 4), 1fr); }
  .stats-band .stats-grid > div { padding: var(--s6) var(--s5); border-top: 0; border-left: 1px solid rgba(255, 255, 255, .12); }
  .stats-band .stats-grid > div:first-child { border-left: 0; padding-left: 0; }
}
.stats-grid.compact { background: var(--g-900); border-radius: var(--r-lg); padding: var(--s2) var(--s5); }
.stats-grid.compact > div { padding: var(--s4) var(--s3); }
.stats-grid.compact > div:nth-child(even) { padding-left: var(--s4); }
.stats-grid.compact dd { font-size: var(--fs-xl); }
.map-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; font-size: var(--fs-sm); color: var(--g-700) !important; font-weight: 700; }
.utility-links a { display: inline-flex; align-items: center; }
.tg-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s7); padding: var(--s5); border-radius: var(--r-lg); background: var(--g-50); border: 1px solid var(--g-200); }
.tg-cta > i { font-size: 32px; color: #1d8ac0; }
.tg-cta div { flex: 1 1 260px; }
.tg-cta strong { display: block; font-size: var(--fs-base); color: var(--g-950); }
.tg-cta span { font-size: var(--fs-sm); color: var(--ink-2); }
.drawer-foot > a:not(.btn-x) { font-weight: 700; color: var(--ink); }

/* Header "Qabul" call to action */
.main-nav > a.nav-cta { margin-left: var(--s2); background: var(--gold-100); color: var(--gold-700); border-radius: var(--r-pill); padding: 0 var(--s4); }
.main-nav > a.nav-cta::after { display: none; }
.main-nav > a.nav-cta:hover, .main-nav > a.nav-cta[aria-current] { background: var(--gold-500); color: #1d1606; }
@media (min-width: 1100px) and (max-width: 1279.98px) { .head-actions .btn-x { display: none; } }
.drawer-nav a.drawer-cta { margin: var(--s2) 0 var(--s3); padding: 0 var(--s4); min-height: 56px; border: 0; border-radius: var(--r-md); background: var(--gold-500); color: #1d1606; }
.drawer-nav a.drawer-cta i { color: #1d1606; }

/* Quick link: primary (admission) */
.quick-grid a.is-primary .qi { background: var(--gold-500); border-color: var(--gold-500); color: #1d1606; }
.quick-grid a.is-primary strong { color: var(--gold-700); }

/* Professions */
.prof-groups { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .prof-groups { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.prof-group { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: #fff; }
.prof-group header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s4); }
.prof-group h2, .prof-group h3 { font-size: var(--fs-lg); }
.prof-list { list-style: none; margin: 0; padding: 0; display: grid; }
.prof-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line-soft); }
.prof-name { font-weight: 700; color: var(--g-950); }
.prof-meta { font-size: var(--fs-xs); font-weight: 600; color: var(--g-700); }
.prof-groups.is-compact .prof-list { display: flex; flex-wrap: wrap; gap: var(--s2); }
.prof-groups.is-compact .prof-list li { border: 1px solid var(--g-200); background: var(--g-50); border-radius: var(--r-pill); padding: 6px 14px; }
.prof-groups.is-compact .prof-name { font-size: var(--fs-sm); }
.source-note { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s4); }
.prose .source-note { font-size: var(--fs-sm); border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: 2em; }
.prose .lead-p { font-size: var(--fs-lg); color: var(--g-950); }
.admission-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 900px) { .admission-facts { grid-template-columns: repeat(4, 1fr); gap: var(--s4); } }
.admission-facts > div { display: flex; flex-direction: column; gap: 4px; padding: var(--s4); border-radius: var(--r-lg); background: var(--cream-50); border: 1px solid var(--line); }
.admission-facts i { font-size: 22px; color: var(--gold-700); margin-bottom: var(--s1); }
.admission-facts strong { font-size: var(--fs-md); color: var(--g-950); line-height: 1.25; }
.admission-facts span { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }

/* Achievements: two cards fill the row */
@media (min-width: 1024px) { .grid-3.is-two { grid-template-columns: repeat(2, 1fr); } }

/* Copy-link feedback */
.share { position: relative; }
.copy-tip:not(:empty) { position: absolute; right: 0; top: calc(100% + 8px); white-space: nowrap; font-size: var(--fs-xs); font-weight: 700; background: var(--g-900); color: #fff; padding: 6px 10px; border-radius: var(--r-sm); }
.copy-tip.is-error { background: #7c2a15; }

/* Phone: shorter home page */
.mobile-only { display: none; }
@media (max-width: 767.98px) {
  .mobile-only { display: inline-flex; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: var(--s2); padding-block: var(--s4); }
  .quick-grid a { flex-direction: column; align-items: flex-start; gap: var(--s2); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
  .quick-grid a:last-child { border-bottom: 1px solid var(--line); }
  .quick-grid .arr, .quick-grid small { display: none; }
  .quick-grid strong { font-size: var(--fs-sm); }
  .quick-grid .qi { width: 40px; height: 40px; font-size: 18px; }
  .is-home .news-feature .reveal-stagger > :nth-child(n+3) { display: none; }
  .is-home .dir-grid > :nth-child(n+5) { display: none; }
  .gallery-grid.home .g-item:nth-child(n+5) { display: none !important; }
  .gallery-grid.home .g-item:nth-child(1) { grid-column: auto; aspect-ratio: 1; }
}

.prof-count { display: none; }
@media (max-width: 767.98px) {
  :root { --section: 44px; }
  .section-head { margin-bottom: var(--s5); }
  .hero-copy { padding-block: var(--s5); }
  .hero-copy h1, .hero-copy h2 { margin: var(--s3) 0; }
  .hero-copy p { font-size: var(--fs-base); margin-bottom: var(--s4); }
  .hero-actions .btn-x.light { display: none; }
  /* professions: one tappable row per group */
  .prof-groups.is-compact { gap: var(--s2); }
  .prof-groups.is-compact .prof-group { padding: var(--s4); }
  .prof-groups.is-compact .prof-group header { margin: 0; }
  .prof-groups.is-compact .prof-list { display: none; }
  .prof-groups.is-compact .prof-count { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: var(--fs-sm); color: var(--g-700); }
  .prof-groups.is-compact .prof-group h3 { font-size: var(--fs-base); flex-basis: 100%; }
  /* topics: two-column tiles without photos */
  .is-home .dir-grid { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .is-home .dir-grid > :nth-child(n+5) { display: flex; }
  .is-home .dir-card { padding: var(--s3); }
  .is-home .dir-card .media, .is-home .dir-card i.arr { display: none; }
  .is-home .dir-card h3 { font-size: var(--fs-sm); }
  /* achievements: compact rows */
  .band-green .news-card { flex-direction: row; gap: var(--s3); }
  .band-green .news-card .media { width: 104px; flex: none; --ratio: 1 / 1; }
  .band-green .news-card p { display: none; }
  .band-green .news-card .card-title { font-size: var(--fs-base); }
  .band-green .grid-3 { gap: var(--s4); }
  /* footer: two columns */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); padding-block: var(--s6) var(--s4); }
  .foot-grid > :first-child, .foot-grid > :last-child { grid-column: 1 / -1; }
}

/* Status notice (e.g. admission data being confirmed) */
.notice-x { display: flex; gap: var(--s3); align-items: flex-start; margin: 0 0 var(--s5); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--gold-100); border: 1px solid #ecd9a6; color: #4d3809; font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; }
.notice-x i { color: var(--gold-700); font-size: 18px; line-height: 1.3; flex: none; }
.page-hero .notice-x { margin: 0 0 var(--s4); }

/* Stat pill (verified figures only) */
.stat-pill { display: inline-flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); background: var(--g-900); color: #d5e3da; border-radius: var(--r-lg); }
.stat-pill strong { font-size: var(--fs-2xl); font-weight: 800; line-height: 1; color: var(--gold-300); letter-spacing: -.02em; }
.stat-pill span { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }

/* ---------- Directions ---------- */
.dir-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dir-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.dir-card { position: relative; display: flex; align-items: center; gap: var(--s4); padding: var(--s3); padding-right: var(--s5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.dir-card .media { --ratio: 1 / 1; width: 88px; flex: none; border-radius: var(--r-md); }
.dir-card h3 { font-size: var(--fs-md); line-height: 1.25; }
.dir-card p { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.dir-card i.arr { margin-left: auto; color: var(--gold-700); font-size: 18px; transition: transform .2s; }
.dir-card:hover { border-color: var(--g-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dir-card:hover i.arr { transform: translate(3px, -3px); }

/* ---------- Achievements band ---------- */
.band-green { background: var(--g-900); color: #e3eee7; position: relative; overflow: hidden; }
.band-green::before { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(232, 201, 124, .2); box-shadow: 0 0 0 60px rgba(232, 201, 124, .04), 0 0 0 120px rgba(232, 201, 124, .03); pointer-events: none; }
.band-green h2, .band-green h3, .band-green .card-title { color: #fff; }
.band-green .section-head p { color: #c5d8cd; }
.band-green .news-card p, .band-green .news-meta { color: #bcd0c5; }
.band-green .news-card .media { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.band-green .chip { background: rgba(232, 201, 124, .16); color: var(--gold-300); }
.band-green .text-link { color: #fff !important; }
.award-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 800; color: var(--gold-300); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: var(--s2); grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
.gallery-grid .g-item { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; background: var(--g-100); }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-focus); transition: transform .6s var(--ease); }
.gallery-grid .g-item:hover img { transform: scale(1.05); }
.gallery-grid .g-cap { position: absolute; inset: auto 0 0 0; padding: var(--s6) var(--s3) var(--s3); background: linear-gradient(transparent, rgba(11, 45, 36, .92)); color: #fff; font-size: var(--fs-xs); font-weight: 700; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); }
.gallery-grid .g-cap small { display: block; color: var(--gold-300); font-weight: 600; }
.gallery-grid .g-item:hover .g-cap, .gallery-grid .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery-grid .g-cap { opacity: 1; transform: none; } }
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
  .gallery-grid.home .g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery-grid.home .g-item:nth-child(6) { grid-column: span 2; aspect-ratio: auto; }
  .gallery-grid.home .g-item:nth-child(n+9) { display: none; }
}
@media (max-width: 767.98px) { .gallery-grid.home .g-item:nth-child(1) { grid-column: span 2; aspect-ratio: 4 / 3; } .gallery-grid.home .g-item:nth-child(n+8) { display: none; } .gallery-grid .g-cap { font-size: 13px; } }

/* ---------- Contact band (home) ---------- */
.contact-card { display: grid; gap: var(--s6); background: var(--cream-100); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6) var(--s5); }
@media (min-width: 900px) { .contact-card { grid-template-columns: 1.1fr 1fr; padding: var(--s7); align-items: center; } }
.contact-card h2 { font-size: var(--fs-2xl); margin: var(--s3) 0; }
.contact-card p { color: var(--ink-2); }
.contact-list { display: grid; gap: var(--s3); }
.contact-item { display: flex; gap: var(--s4); align-items: flex-start; background: #fff; border-radius: var(--r-md); padding: var(--s4); border: 1px solid var(--line-soft); }
.contact-item .ci { width: 44px; height: 44px; border-radius: 50%; background: var(--g-100); color: var(--g-700); display: grid; place-items: center; font-size: 18px; flex: none; }
.contact-item strong { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.contact-item span, .contact-item a { font-weight: 700; color: var(--ink); }
.contact-item a:hover { color: var(--g-700); }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--cream-50); border-bottom: 1px solid var(--line-soft); padding-block: var(--s6) var(--s7); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 48px rgba(201, 150, 46, .05); pointer-events: none; }
.page-hero h1 { font-size: var(--fs-3xl); margin: var(--s3) 0 var(--s3); max-width: 22ch; }
.page-hero p.lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 60ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); margin-bottom: var(--s5); position: relative; z-index: 1; }
.crumbs a { color: var(--g-700); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs i { font-size: 11px; color: #9aa5a0; }
.crumbs [aria-current] { color: var(--ink-2); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- News index toolbar ---------- */
.toolbar { display: grid; gap: var(--s4); margin-block: var(--s6) var(--s7); }
@media (min-width: 1024px) { .toolbar { grid-template-columns: 1fr 340px; align-items: start; } .toolbar .filter-chips { flex-wrap: wrap; overflow: visible; padding-bottom: 0; } }
.search-inline { position: relative; }
.search-inline i { position: absolute; left: var(--s4); top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search-inline .field { padding-left: 44px; padding-right: 108px; }
.search-inline button { position: absolute; right: 4px; top: 4px; bottom: 4px; min-height: 0; }
.result-note { font-size: var(--fs-sm); color: var(--ink-3); margin: calc(-1 * var(--s5)) 0 var(--s5); }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s8); }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 var(--s3); border-radius: var(--r-md); border: 1.5px solid var(--line); font-weight: 700; font-size: var(--fs-sm); background: #fff; }
.pager a:hover { border-color: var(--g-900); color: var(--g-900); }
.pager [aria-current] { background: var(--g-900); border-color: var(--g-900); color: #fff; }
.pager .gap { border: 0; min-width: 24px; background: none; color: var(--ink-3); }
.pager .is-disabled { color: #a9b2ae; border-color: var(--line-soft); }
@media (max-width: 575.98px) { .pager .lbl-text { display: none; } }

/* ---------- Article ---------- */
.article-head { padding-block: var(--s6) var(--s6); background: var(--cream-50); }
.article-head .wrap { max-width: calc(980px + var(--gutter) * 2); }
.article-head h1 { font-size: var(--fs-3xl); line-height: 1.12; margin: var(--s4) 0 var(--s5); }
.article-head h1.is-long { font-size: var(--fs-2xl); line-height: 1.18; }
@media (max-width: 575.98px) { .article-head h1.is-long { font-size: var(--fs-xl); } }
.article-head .standfirst { font-size: var(--fs-md); color: var(--ink-2); max-width: 64ch; margin: 0 0 var(--s5); }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; padding-top: var(--s4); border-top: 1px solid var(--line); }
.article-meta i { color: var(--gold-700); margin-right: 6px; }
.article-meta .event { color: var(--g-700); }
.article-cover { max-width: calc(1120px + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); margin-top: calc(-1 * var(--s1)); }
.article-cover figure { margin: 0; }
/* Cover is never cropped: whole photo, letterboxed on deep green when needed. */
.article-cover .media { display: grid; place-items: center; aspect-ratio: auto; border-radius: var(--r-lg); background: var(--g-950); cursor: zoom-in; }
.article-cover .media img { width: auto; height: auto; max-width: 100%; max-height: min(78vh, 760px); object-fit: contain; }
.article-cover .media:hover img { transform: none; }
.article-cover figcaption { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s2); }
.article-body { max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: var(--s7) var(--gutter) 0; }
.prose { font-size: var(--fs-md); line-height: 1.75; color: #24302c; overflow-wrap: anywhere; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose table { margin: 0 0 1.15em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: var(--fs-xl); margin: 1.8em 0 .6em; }
.prose h3 { font-size: var(--fs-lg); margin: 1.6em 0 .5em; }
.prose a { color: var(--g-700); text-decoration: underline; text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose img { height: auto; border-radius: var(--r-md); margin-inline: auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding: var(--s4) var(--s5); border-left: 4px solid var(--gold-500); background: var(--cream-50); border-radius: 0 var(--r-md) var(--r-md) 0; font-weight: 600; color: var(--g-900); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: var(--s2) var(--s3); }
.prose span[style] { font-size: inherit !important; font-family: inherit !important; }
.prose .MsoNormal { margin: 0; }
.prose .eyebrow { margin-bottom: -.5em; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
.tags a { font-size: var(--fs-xs); font-weight: 700; color: var(--g-700); border: 1.5px solid var(--g-200); border-radius: var(--r-pill); padding: 6px 12px; }
.tags a:hover { background: var(--g-900); border-color: var(--g-900); color: #fff; }
.post-gallery { margin-top: var(--s7); }
.post-gallery h2 { font-size: var(--fs-lg); margin-bottom: var(--s4); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.post-gallery h2 small { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
.pg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (min-width: 768px) { .pg-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } .pg-grid.n-2, .pg-grid.n-4 { grid-template-columns: repeat(2, 1fr); } }
.pg-grid a { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--g-100); }
.pg-grid a img { width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-focus); transition: transform .5s var(--ease); }
.pg-grid a:hover img { transform: scale(1.05); }
.pg-grid a .zoom { position: absolute; right: var(--s2); bottom: var(--s2); width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--g-900); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.pg-grid a:hover .zoom, .pg-grid a:focus-visible .zoom { opacity: 1; }
.pg-grid .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; color: #fff; background: rgba(11, 45, 36, .25); }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.share { display: flex; align-items: center; gap: var(--s2); }
.share span { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-3); margin-right: var(--s1); }
.related { margin-top: var(--s8); }

/* ---------- Staff ---------- */
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; padding: 4px; background: var(--cream-100); border-radius: var(--r-pill); border: 1px solid var(--line); margin-bottom: var(--s6); }
.seg a { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 clamp(14px, 4vw, 24px); border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); }
.seg a[aria-current] { background: var(--g-900); color: #fff; }
.staff-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
.staff-card { display: flex; gap: var(--s5); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.staff-card.is-lead { border-color: var(--gold-500); box-shadow: inset 4px 0 0 var(--gold-500); }
.avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex: none; background: var(--g-100); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-lg); color: var(--g-700); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.staff-card h3 { font-size: var(--fs-md); }
.staff-card .role { font-size: var(--fs-sm); font-weight: 700; color: var(--gold-700); margin: 4px 0 var(--s3); }
.staff-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.staff-card li { display: flex; gap: var(--s2); align-items: baseline; overflow-wrap: anywhere; }
.staff-card li i { color: var(--g-600); }
.staff-card a:hover { color: var(--g-700); text-decoration: underline; }

/* ---------- Documents ---------- */
.doc-layout { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .doc-layout { grid-template-columns: 300px 1fr; align-items: start; } }
.filter-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: var(--cream-50); display: grid; gap: var(--s4); }
@media (min-width: 1024px) { .filter-card { position: sticky; top: 100px; } }
.filter-card h2 { font-size: var(--fs-md); }
.doc-list { display: grid; gap: var(--s3); }
.doc-row { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; align-items: center; }
@media (min-width: 768px) { .doc-row { grid-template-columns: auto 1fr auto; } }
.doc-ico { width: 52px; height: 60px; border-radius: var(--r-sm); background: var(--g-50); border: 1px solid var(--g-200); display: grid; place-items: center; color: var(--g-700); font-size: 22px; position: relative; }
.doc-ico small { position: absolute; bottom: -8px; font-size: 11px; font-weight: 800; background: var(--gold-500); color: #1d1606; border-radius: 4px; padding: 0 5px; }
.doc-row h3 { font-size: var(--fs-base); line-height: 1.35; }
.doc-row p { font-size: var(--fs-sm); color: var(--ink-2); margin: 4px 0 var(--s2); }
.doc-row .btn-x { grid-column: 1 / -1; }
@media (min-width: 768px) { .doc-row .btn-x { grid-column: auto; } }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: var(--s8) var(--s5); border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--cream-50); }
.empty i { font-size: 36px; color: var(--gold-600); }
.empty h2, .empty h3 { font-size: var(--fs-lg); margin: var(--s3) 0 var(--s2); }
.empty p { color: var(--ink-2); max-width: 46ch; margin: 0 auto var(--s5); }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 1.25fr; } }
.form-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6) var(--s5); background: #fff; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .form-card { padding: var(--s7); } }
.form-card h2 { font-size: var(--fs-xl); margin-bottom: var(--s2); }
.form-grid { display: grid; gap: var(--s4); margin-top: var(--s5); }
@media (min-width: 640px) { .form-grid .half { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); } }
.form-hint { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }
.req { color: #a5381f; }
.alert-x { display: flex; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); font-weight: 600; margin-bottom: var(--s5); }
.alert-x.ok { background: var(--g-100); color: var(--g-900); }
.alert-x.err { background: #fbe9e4; color: #7c2a15; }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-top: var(--s5); }

/* ---------- About page ---------- */
.about-layout { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .about-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s8); } }
.about-aside { display: grid; gap: var(--s4); align-content: start; }
@media (min-width: 1024px) { .about-aside { position: sticky; top: 100px; } }
.aside-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: var(--cream-50); }
.aside-card h2 { font-size: var(--fs-md); margin-bottom: var(--s3); }
.aside-links { display: grid; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-weight: 700; }
.aside-links a:last-child { border-bottom: 0; }
.aside-links a:hover { color: var(--g-700); }
.aside-photo { --ratio: 4 / 3; border-radius: var(--r-lg); }
.prose .about-intro h2:first-of-type { font-size: var(--fs-2xl); margin-top: .4em; }
.prose .about-links { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; margin: 1.6em 0; }
.prose .action-primary { display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-md); background: var(--g-900); color: #fff !important; text-decoration: none; font-weight: 700; font-size: var(--fs-sm); }
.prose .action-primary:hover { background: var(--g-700); }
.prose .text-action { font-weight: 800; font-size: var(--fs-sm); text-decoration: none; border-bottom: 2px solid var(--gold-500); }

/* ---------- Footer ---------- */
.site-foot { background: var(--g-950); color: #c3d5ca; margin-top: var(--section); font-size: var(--fs-sm); }
.site-foot.flush { margin-top: 0; }
.foot-grid { display: grid; gap: var(--s6); padding-block: var(--s8) var(--s6); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-foot .brand { color: #fff !important; }
.site-foot .brand-mark { background: var(--g-800); }
.site-foot .brand-text span { color: #9fb8ab; }
.site-foot h2 { color: var(--gold-300); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s4); font-weight: 800; }
.site-foot nav a { display: block; padding-block: 6px; color: #dbe7e0; }
.site-foot nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-about { max-width: 38ch; margin-top: var(--s4); color: #b5cabe; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; padding-block: var(--s5); border-top: 1px solid rgba(255, 255, 255, .1); color: #9fb8ab; font-size: var(--fs-xs); }
.foot-bottom a:hover { color: #fff; }

/* Back to top */
.to-top { position: fixed; right: var(--s4); bottom: var(--s4); z-index: 1020; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--g-900); color: #fff; box-shadow: var(--shadow-md); display: grid; place-items: center; font-size: 18px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-500); color: var(--g-950); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: var(--s9); }
.notfound .code { font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; line-height: 1; color: var(--g-100); -webkit-text-stroke: 2px var(--g-700); }
.notfound h1 { font-size: var(--fs-2xl); margin: var(--s4) 0; }
.notfound p { color: var(--ink-2); max-width: 46ch; margin: 0 auto var(--s6); }

/* ---------- Motion: reveal on scroll (light, meaningful) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > :nth-child(2) { transition-delay: .07s; }
.reveal-stagger.is-visible > :nth-child(3) { transition-delay: .14s; }
.reveal-stagger.is-visible > :nth-child(4) { transition-delay: .21s; }
.reveal-stagger.is-visible > :nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-visible > :nth-child(6) { transition-delay: .35s; }
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* GLightbox tweaks */
.glightbox-clean .gslide-description { background: var(--g-950); }
.glightbox-clean .gdesc-inner { padding: var(--s3) var(--s4); }
.glightbox-clean .gslide-title { color: #fff; font-family: var(--font); font-size: var(--fs-sm); margin: 0; }

/* Print */
@media print {
  .utility, .site-head, .site-foot, .to-top, .share, .related, .hero-bar { display: none !important; }
  .article-head { background: none; }
}
