@charset "UTF-8";
/* ==========================================================================
   EduNav.az — public stylesheet
   Static HTML + CSS + vanilla JS. No build step, no framework, no CDN JS.
   Section order:
     01  Fonts + modern reset
     02  Design tokens (:root)
     03  Layout — container, sections, grids, table-wrap
     04  Typography classes
     05  Header, navigation, drawer
     06  Buttons
     07  Section heads
     08  Institution cards (.ecard) + gradient media
     09  Search bar, chips, dropdown (.dd)
     10  Dark / soft banners, marquee
     11  Vacancies, news, blogs, announcements
     12  Badges
     13  Page head, breadcrumbs, compare bar, modal
     14  Forms
     15  Pager, empty state, tabs, stats, avatar, rating
     16  Footer
     17  Hero
     18  Keyframes + reveal
     19  Media queries — 1024 / 768 / 560
     20  prefers-reduced-motion
   ========================================================================== */

/* ==========================================================================
   01  FONTS + MODERN RESET
   --------------------------------------------------------------------------
   Lexend and Manrope are loaded by every page through a single Google Fonts
   <link> in <head>, before this sheet:

     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link href="https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700
           &family=Manrope:wght@400;500;600;700;800&display=swap" rel="stylesheet">

   One letter is self-hosted. Manrope has the small «ə» but no capital «Ə»
   (U+018F) at any weight, so every «Əlaqə», «Ətraflı» and uppercase «MƏKTƏB»
   fell back to another font: first the system's, then Lexend's — wider,
   rounder and shorter than the capitals beside it, so the letter looked
   dropped. assets/fonts/edunav-schwa.woff2 (1 KB) is that one glyph, drawn
   from Manrope's own «ə»: grown to the capital O's height and width, with
   each weight taken from a lighter one so its strokes come out as thick as
   O's. resources/fonts/build-schwa.py rebuilds it. Manrope is SIL OFL 1.1;
   the file carries its copyright and licence.

   The faces below are named «Manrope» and cover U+018F only, so every stack
   that names Manrope — public site, panel and admin alike — gets the letter
   with no change of its own. They come after Google's faces, and of faces
   whose ranges overlap the browser tries the last defined first. One rule
   per weight, as Google declares them, so the two sets are matched together.

   The reset resets properties explicitly — `all: unset` is never used because
   it also clears `box-sizing` and produces horizontal overflow bugs.
   ========================================================================== */

@font-face { font-family: "Manrope"; src: url("../fonts/edunav-schwa.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+018F; }
@font-face { font-family: "Manrope"; src: url("../fonts/edunav-schwa.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+018F; }
@font-face { font-family: "Manrope"; src: url("../fonts/edunav-schwa.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+018F; }
@font-face { font-family: "Manrope"; src: url("../fonts/edunav-schwa.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+018F; }
@font-face { font-family: "Manrope"; src: url("../fonts/edunav-schwa.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+018F; }

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  tab-size: 4;
}

body {
  min-height: 100%;
  /* overflow-x:clip (not hidden) — `hidden` would force overflow-y to auto
     and silently break position:sticky on the header. */
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* body scroll lock while a drawer / modal owns the viewport */
body.is-locked { overflow: hidden; }

img,
picture,
video,
canvas { display: block; max-width: 100%; height: auto; }

svg { display: block; flex: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.026em;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

input,
button,
textarea,
select { font: inherit; color: inherit; letter-spacing: inherit; }

button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  text-align: inherit;
  line-height: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

input,
textarea { -webkit-appearance: none; appearance: none; border-radius: 0; }

textarea { resize: vertical; }

table { border-collapse: collapse; border-spacing: 0; }

fieldset { min-width: 0; padding: 0; border: 0; }

hr { height: 1px; border: 0; background: var(--line); }

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-ctl); }

::selection { background: var(--brand); color: var(--ink); }

/* screen-reader-only helper — used for skip links and icon-button labels.
   `.sr-only` is the name PARTIALS.md ships; `.u-sr-only` is kept as an alias. */
.u-sr-only,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.u-nowrap { white-space: nowrap; }
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-flex-1 { flex: 1; min-width: 0; }

/* skip link */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-xs);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ==========================================================================
   02  DESIGN TOKENS
   ========================================================================== */

:root{
  /* ink */
  --ink:#0F1420;  --ink-2:#1B2230;  --ink-3:#243049;
  /* --muted was #8A93A5: 3.09:1 on white, under the 4.5 small text needs,
     and it sets every date, district, «/il» and place line on the site —
     47 failures on the homepage, 37 on /vakansiyalar. #677186 is the same
     blue-grey darkened just until it passes on every ground it sits on:
     4.90 white, 4.78 the hero's cream, 4.66 --surface, 4.53 --surface-2.
     --text-2 a step darker for the same reason: #6B7484 measured 4.39 on a
     profile page's #F4F7FC ground (its tabs, its section subtitle); #687181
     is 4.58 there and 4.92 on white. */
  --text:#5B6577; --text-2:#687181; --muted:#677186; --muted-2:#9AA3B2; --muted-3:#A6AEBB;
  /* brand */
  /* --brand-dark was #B0891F: 3.26:1 on white, and it is the colour of
     every kicker («KARYERA», «MƏKTƏBLƏR») and category label. #8C6D19 is
     the same gold darkened until it passes on every ground it sits on: 4.86
     white, 4.74 cream, 4.62 --surface, 4.63 --brand-soft, 4.53 a profile
     page's #F4F7FC. --warn keeps the old gold: a status colour, and not one
     that failed. */
  --brand:#FFC629; --brand-deep:#EDB412; --brand-dark:#8C6D19; --brand-word:#F0AE00;
  --brand-soft:#FFF9E8;
  /* kindergarten accent (purple) */
  --kg:#C8C6F4; --kg-2:#D5D3F8; --kg-3:#EDE4F6; --kg-ink:#1A1840; --kg-text:#453E86;
  /* surfaces & lines */
  --bg:#fff; --surface:#F8F9FC; --surface-2:#F4F6F9; --surface-3:#F1F3F7;
  --line:#E9ECF1; --line-2:#E6EAF0; --line-3:#E4E8EE; --line-4:#EEF1F5; --line-5:#E2E6EC;
  /* status */
  /* #2C7A4C, not #2E7D4F: «Aktiv» on --ok-bg was 4.499:1, a hair under. */
  --ok:#2C7A4C; --ok-bg:#E8F5EE;
  --warn:#B0891F; --warn-bg:#FFF4D6;
  --danger:#C2415C; --danger-bg:#FDE8EC;
  --info:#2C63C4; --info-bg:#E4EEFF;
  /* radii */
  /* Three tiers, and which one a thing belongs to is a question about what it
     is, not how big it is.

       surfaces  cards, panels, images, sections — 3–12px by size. Barely
                 there, but a hard 0 read as unfinished rather than crisp;
                 nothing in the system goes past 12.
       --r-ctl   anything you click or type into — soft, because a control
                 wants to look touchable
       --r-pill  shapes whose roundness IS the shape: badges, counters, dots,
                 avatars, switch tracks, progress bars

     The scale this replaced was 22 / 20 / 16 / 12 / 10 / 9. */
  /* iOS rounds harder than the web convention at every tier: a control is
     12, a card is 14–18, a sheet is 22. The ladder below is the old one
     shifted up to meet that, keeping the same six steps so nothing has
     to be re-decided per component. */
  --r-xxs:5px; --r-xs:7px; --r-sm:9px; --r-md:12px; --r-lg:14px; --r-xl:18px;
  --r-ctl:12px;
  --r-pill:999px;
  /* shadow */
  /* Apple lifts a surface with a hairline of contact shadow and a very wide,
     very faint spread — never with one dark blur. Each of these is now that
     pair. The alphas drop by roughly two thirds; the geometry does the work
     the darkness used to do. */
  --sh-1:0 1px 2px rgba(15,20,32,.06), 0 4px 12px -6px rgba(15,20,32,.16);
  --sh-2:0 1px 3px rgba(15,20,32,.05), 0 12px 28px -14px rgba(15,20,32,.16);
  --sh-3:0 2px 6px rgba(15,20,32,.06), 0 22px 44px -22px rgba(15,20,32,.20);
  --sh-4:0 2px 8px rgba(15,20,32,.07), 0 30px 60px -28px rgba(15,20,32,.26);
  /* motion */
  /* UIKit's default curve: leaves fast, lands slow and long. Reads as
     something settling rather than something stopping. */
  --ease:cubic-bezier(.32,.72,0,1);

  /* --- liquid glass ------------------------------------------------------
     Glass only reads as glass when something moves behind it, so this is
     defined once and spent only on surfaces that overlay scrolling content:
     the header, the compare bar, the modal, the drawer. Cards keep their
     solid ground — a form or a paragraph on glass is a form or a paragraph
     you have to work to read.
     Three ingredients, in the order the eye picks them up: a heavy saturating
     blur so what is behind becomes colour rather than shape; a bright rim on
     the top edge where light would catch; a faint dark line on the bottom
     where the pane has thickness. No new hues — the light glass is white and
     the dark glass is --ink, both simply let through. */
  --glass-blur: saturate(180%) blur(28px);
  /* .66 looked better and failed: with a dark photograph or the ink band
     scrolling under the header the muted nav links measured 3.4:1. At .80 the
     worst case is 4.9:1 and the pane still reads as material, not a plate. */
  --glass-light: rgba(255,255,255,.80);
  --glass-dark: rgba(15,20,32,.62);
  --glass-edge-light: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(15,20,32,.06);
  --glass-edge-dark: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.22);
  /* layout */
  --container:1200px; --pad:32px; --header-h:78px;
}

/* Leaflet is vendored and ships its own rounded chrome. Its rules load after
   ours, so matching its specificity would lose the tie — .leaflet-container
   is the extra class that settles it. */
.leaflet-container .leaflet-bar,
.leaflet-container .leaflet-bar a,
.leaflet-container.leaflet-touch .leaflet-bar a:first-child,
.leaflet-container.leaflet-touch .leaflet-bar a:last-child,
.leaflet-container .leaflet-bar a:first-child,
.leaflet-container .leaflet-bar a:last-child,
.leaflet-container .leaflet-popup-content-wrapper,
.leaflet-container .leaflet-popup-tip,
.leaflet-container .leaflet-control-attribution { border-radius: 0; }

/* Type scale — kept in a second block so the colour contract above stays
   byte-for-byte identical to the specification. */
:root {
  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* The capital «Ə» comes from Manrope's own self-hosted face (section 01).
     Lexend stays second only as the net under it: were that file ever
     missing, the letter would still be a designed one, not the system's.
     The admin and panel sheets write the stack out and carry the same name. */
  --font-body: "Manrope", "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-h1: clamp(30px, 4.6vw, 62px);
  --fs-h2: clamp(23px, 2.4vw, 28px);
  --fs-h3: clamp(20px, 2vw, 31px);
  --fs-h4: 17px;
  --fs-lead: clamp(16px, 1.4vw, 20.5px);
  --fs-body: 14.5px;
  --fs-meta: 12.5px;
  --fs-label: 11px;

  --gap: 20px;
  --gap-lg: 24px;
}

/* ==========================================================================
   03  LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.container--wide { max-width: 1340px; }
.container--narrow { max-width: 820px; }

.section { padding: 64px 0 0; }
.section--tight { padding: 48px 0 0; }
.section--flush { padding-top: 0; }
/* last section before the footer */
.section--last { padding-bottom: 72px; }

.section-inner { position: relative; }

/* --- grids --------------------------------------------------------------- */
.grid-2,
.grid-3,
.grid-4 { display: grid; gap: var(--gap); align-items: stretch; }

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* fluid opt-in: use where an auto-fitting track count is acceptable */
.grid-fluid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.grid-gap-lg { gap: var(--gap-lg); }
.grid-span-2 { grid-column: span 2; }
.grid-span-all { grid-column: 1 / -1; }

/* two-column page shell: content + aside */
.grid-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

/* --- horizontally scrollable table shell --------------------------------- */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--line-5) transparent;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line-5); border-radius: var(--r-ctl); }
.table-wrap::-webkit-scrollbar-track { background: transparent; }

.table { width: 100%; min-width: 620px; font-size: 13.5px; }
.table th,
.table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-4);
}
.table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table td strong { font-weight: 700; }

/* ==========================================================================
   04  TYPOGRAPHY CLASSES
   ========================================================================== */

.h1,
.h2,
.h3,
.h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -.026em;
  text-wrap: pretty;
  color: var(--ink);
}

.h1 { font-size: var(--fs-h1); line-height: 1.14; }
.h2 { font-size: var(--fs-h2); line-height: 1.15; }
.h3 { font-size: var(--fs-h3); line-height: 1.14; }
.h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -.019em; }

.lead {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

.sec-title {
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.026em;
  color: var(--ink);
  text-wrap: pretty;
  margin: 0;
}

.sec-sub {
  margin: 10px 0 0;
  max-width: 620px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.kicker--brand { color: var(--brand); }
.kicker--kg { color: var(--kg-text); }
.kicker--muted { color: var(--text-2); }
.kicker--dot { display: flex; align-items: center; gap: 9px; }
.kicker--dot::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: edu-blink 2.4s ease-in-out infinite;
}

.meta-line {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
}
.meta-line--dark { color: var(--muted-2); }

.prose { max-width: 72ch; }
.prose p { margin: 0 0 16px; font-size: 15px; line-height: 1.75; color: var(--text); }
.prose h2 { margin: 32px 0 12px; font-size: var(--fs-h2); }
.prose h3 { margin: 26px 0 10px; font-size: 19px; letter-spacing: -.02em; }
.prose ul { margin: 0 0 16px; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
/* Numbered lists and the inline marks the admin's text editor writes. The
   reset above takes list-style off every list, so a numbered one has to put
   its numbers back. */
.prose ol { margin: 0 0 16px; padding-left: 22px; list-style: decimal; }
.prose ol li { margin-bottom: 8px; padding-left: 4px; font-size: 15px; line-height: 1.7; color: var(--text); }
.prose ol li::marker { color: var(--brand-dark); font-weight: 700; }
.prose li > ul, .prose li > ol { margin: 8px 0 0; }
.prose strong { font-weight: 700; color: var(--ink); }
/* The editor's text alignment (RichText::TEXT_ALIGN); left is no class. */
.prose .ta-center { text-align: center; }
.prose .ta-right { text-align: right; }
.prose blockquote p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.prose blockquote p + p { margin-top: 10px; }
.prose a { color: var(--info); text-decoration: underline; text-underline-offset: 3px; }
/* Pictures inside the text — uploaded through the admin's editor, always
   the column's width at most. */
.prose figure { margin: 6px 0 24px; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose p > img, .prose li > img { margin: 8px 0; }
.prose figcaption { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--muted); }
/* A YouTube video in the text: always 16:9, the column's width or the share
   the editor gave it. */
.prose figure.video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-md);
  background: #000;
}
/* The widths the editor's resize handle sets (App\Support\RichText::SIZE):
   a figure's share of the column with its picture filling it, or a lone
   picture's own; narrower than the column, it stands in the middle. */
.prose figure[class*="w-"] img { width: 100%; }
.prose figure[class*="w-"], .prose img[class*="w-"] { margin-left: auto; margin-right: auto; }
.prose .w-20 { width: 20%; } .prose .w-30 { width: 30%; } .prose .w-40 { width: 40%; }
.prose .w-50 { width: 50%; } .prose .w-60 { width: 60%; } .prose .w-70 { width: 70%; }
.prose .w-80 { width: 80%; } .prose .w-90 { width: 90%; }
/* Left or right (RichText::ALIGN): a narrower picture or video stands on
   that side and the text flows past it, as WordPress's alignleft/alignright.
   The article contains its floats, so the tags below never ride up. */
.prose figure.al-left, .prose img.al-left { float: left; margin: 6px 24px 16px 0; }
.prose figure.al-right, .prose img.al-right { float: right; margin: 6px 0 16px 24px; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 560px) {
  /* A phone's column is narrow already: small pictures take the whole of it,
     and nothing stands beside the text. */
  .prose figure[class*="w-"], .prose img[class*="w-"] { width: 100%; }
  .prose figure.al-left, .prose img.al-left,
  .prose figure.al-right, .prose img.al-right { float: none; margin: 6px 0 20px; }
}

/* The admin's «Ön baxış»: the band that says the page is not the live one. */
.preview-bar {
  padding: 11px 0;
  background: var(--brand);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
}
.preview-bar b { font-weight: 800; }

/* A news item's or blog post's header image, over its text. */
.article-cover {
  max-width: 880px;
  margin: 0 0 26px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The editor's «Görünüş» box (App\Support\ArticleLayout). Every default is no
   rule at all — the page as it was.
   Dar: picture, byline and text in one 680px column in the middle, and the
   title over that column rather than at the page's edge. Geniş: nothing held
   to a reading width. */
.article-shell--dar { max-width: 680px; margin: 0 auto; }
.article-shell--dar .article-main > *,
.article-shell--genis .article-main > * { max-width: none; }
.page-head--dar .container { max-width: calc(680px + 2 * var(--pad)); }

/* Tam enə banner: the header image the page's full width, under the title.
   Where the advertising rails stand beside the page it keeps to the space
   between them instead of running under them. */
.article-banner { margin: 0; height: clamp(220px, 32vw, 520px); overflow: hidden; background: var(--surface-2); }
.article-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-banner + .section { padding-top: 44px; }
@media (min-width: 1736px) {
  body:has(.ad-rail) .article-banner { max-width: var(--container); margin: 28px auto 0; border-radius: var(--r-lg); }
}

/* Yan panel: the related pieces in a column beside the text, kept in view
   while the text scrolls; after the text, in one column, below 1024px — where
   .grid-aside goes to one as well. In the news rows, made to fit 300px. */
.article-shell--side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.article-shell--side.article-shell--dar { max-width: 1020px; grid-template-columns: minmax(0, 680px) 300px; }
.page-head--dar.page-head--side .container { max-width: calc(1020px + 2 * var(--pad)); }
.article-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.article-side-title {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}
.article-side .news-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 6px 12px;
  padding: 12px;
}
.article-side .news-card + .news-card { margin-top: 0; }
.article-side .news-thumb { grid-row: span 2; width: 72px; height: 54px; }
.article-side .news-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 13.5px;
  line-height: 1.4;
}
.article-side .news-date { line-height: 1.2; }
.article-side-all { align-self: flex-start; margin-top: 6px; }
@media (max-width: 1024px) {
  .article-shell--side,
  .article-shell--side.article-shell--dar { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .article-shell--side.article-shell--dar { max-width: 680px; }
  .page-head--dar.page-head--side .container { max-width: calc(680px + 2 * var(--pad)); }
  .article-side { position: static; }
}

.prose blockquote {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ==========================================================================
   05  HEADER / NAV / DRAWER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  /* A thinner ground and a saturating blur — iOS bars take their colour from
     what scrolls under them rather than sitting on top as a white plate. */
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(15, 20, 32, .07);
  box-shadow: var(--glass-edge-light);
}
/* Where the browser has no blur the bar must stay opaque, or the page reads
   straight through it. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, .97); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
}

.logo-mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-xxs);
  background: var(--brand);
}
.logo-mark svg { width: 18px; height: 18px; }

.logo-text {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.018em;
  color: var(--ink);
}

/* The wordmark carries a descriptor under it, so the two lines stack while the
   mark stays centred against the pair. */
.logo-words { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.logo-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--text-2);
  white-space: nowrap;
}

@media (max-width: 360px) {
  /* Only where the bar genuinely runs out: at 375px the wordmark still
     leaves ~180px between itself and the burger. */
  .site-header .logo-sub { display: none; }
}

/* The 8 contract links must fit the 1200px container's 1136px content box.
   At the contract's 9px/13px padding + 2px gap they need 1182px and overlap
   .header-actions at every width, so the horizontal padding is 10px and the
   gap 0 — 1120px, 16px of slack. Font size stays at the contract's 15px. */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
  /* Right-aligned: `margin: 0 auto` centred it, which left the last item
     floating in the middle of the bar once the menu dropped to five items. */
  margin-left: auto;
  margin-right: 0;
  flex: 0 1 auto;
  min-width: 0;
}

/* Every menu item was an anchor until «Əlaqə», which has no page to point at
   and is therefore a button. Only the chrome an anchor never had is reset —
   `font: inherit` would have been the obvious line and is the wrong one:
   button.nav-link outranks .nav-link, so the shorthand overrode the menu's own
   15.5px/600 with the page's 14.5px/400. */
button.nav-link,
button.footer-link {
  border: 0;
  background: none;
  cursor: pointer;
}
/* .chip carries its own `1px solid transparent` and its own ground, so a
   button wearing it needs neither reset — only the pointer. Zeroing the border
   here made the chip 2px shorter than the anchors beside it. */
button.chip { cursor: pointer; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: var(--r-xxs);
  font-family: var(--font-body);
  font-size: 15.5px;
  /* The menu was mid-grey at weight 500 and read as disabled text. Ink at 600
     is the same contrast the rest of the page uses for things you can click. */
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  transition: color .16s var(--ease);
}

/* One brand underline does both jobs: it wipes in under the item the pointer
   is on, and it simply stays put on the current section. The grey pill that
   used to mark hover is gone — a filled background on one item among six read
   as "you are here", which is the other state's job. */
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--brand);
  transform: scaleX(0);
  transition: transform .2s var(--ease);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after { transform: scaleX(1); }

/* Hovering the open dropdown's trigger and its panel is one gesture. */
.nav-drop:hover .nav-drop-trigger::after,
.nav-drop:focus-within .nav-drop-trigger::after { transform: scaleX(1); }

.nav-link.is-active { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .nav-link::after { transition: none; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  /* .nav now carries the auto margin. Two of them split the free space, which
     is what left the right-aligned menu sitting in the middle. */
  margin-left: 0;
}

/* The bar's search box.
   Was a 34px magnifier button that no page ever drew; it is the real search
   form now, at the right-hand end of the row, on every page of the site.
   `flex: 0 1 260px` — it gives width back before the menu does, and stops
   shrinking at 190px, below which the placeholder is no longer a sentence. */
.header-search {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 260px;
  min-width: 190px;
  box-sizing: border-box;
  height: 40px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-pill);
  background: var(--surface);
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.header-search:focus-within { border-color: var(--brand-deep); background: var(--bg); }

.header-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.header-search-input::placeholder { color: var(--text-2); font-weight: 500; }
/* `outline: none` above takes the global focus ring with it, and the 1px
   --brand-deep border on white is under WCAG 1.4.11's 3:1. The ring goes on
   the pill instead of the field, so it follows the shape the reader sees. */
.header-search:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.header-search-input:focus-visible { outline: none; }

.header-search-go {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .16s var(--ease);
}
.header-search-go:hover { background: var(--brand-deep); }
.header-search-go svg { width: 17px; height: 17px; }

/* In the drawer it is the full width of the panel and opens the menu. */
.header-search--drawer {
  flex: none;
  width: 100%;
  margin-bottom: 18px;
}

/* burger — shown at ≤1200px only (see media queries) */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-5);
  border-radius: var(--r-ctl);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.burger:hover { border-color: var(--ink); }

/* three plain bars — the structure PARTIALS.md ships */
.burger-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--r-pill);
  background: currentColor;
  transition: transform .24s var(--ease), opacity .18s var(--ease);
}
/* app.js toggles `.is-on` on the button while the drawer is open */
.burger.is-on .burger-line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-on .burger-line:nth-child(2) { opacity: 0; }
.burger.is-on .burger-line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.burger-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.burger-lines::before,
.burger-lines::after,
.burger-lines span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: var(--r-pill);
  background: currentColor;
  transition: transform .24s var(--ease), opacity .18s var(--ease);
}
.burger-lines::before { top: 0; }
.burger-lines span { top: 5px; }
.burger-lines::after { bottom: 0; }

.burger.is-open .burger-lines::before,
.burger.is-on .burger-lines::before { transform: translateY(5px) rotate(45deg); }
.burger.is-open .burger-lines span,
.burger.is-on .burger-lines span { opacity: 0; }
.burger.is-open .burger-lines::after,
.burger.is-on .burger-lines::after { transform: translateY(-5px) rotate(-45deg); }

/* drawer — full-screen slide-in; display toggled on at ≤768px */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  padding: 0;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(14%);
  transition: opacity .26s var(--ease), transform .3s var(--ease), visibility .3s;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

/* Dim layer behind the panel. The panel is full-screen (DESIGN-SPEC § 4:
   "full-screen slide-in"), so this only shows through while it animates. */
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 32, .38);
  -webkit-backdrop-filter: saturate(140%) blur(22px);
  backdrop-filter: saturate(140%) blur(22px);
}

/* The scroll container. PARTIALS.md nests the head/nav/sections inside this
   wrapper, so the column layout and the overflow live here, not on .drawer. */
.drawer-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--bg);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  height: var(--header-h);
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line-4);
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-5);
  border-radius: var(--r-ctl);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .16s var(--ease);
}
.drawer-close:hover { border-color: var(--ink); }
.drawer-close svg { width: 14px; height: 14px; }

.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px var(--pad) 28px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
  padding: 20px var(--pad) 0;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.drawer-link:hover { background: var(--surface-2); color: var(--ink); }
.drawer-link.is-active { background: var(--brand-soft); color: var(--ink); }
.drawer-link svg { width: 14px; height: 14px; color: var(--muted-3); }

.drawer-section {
  flex: none;
  margin-top: 22px;
  padding: 20px var(--pad) 0;
  border-top: 1px solid var(--line-4);
}
.drawer-section-title {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
  margin-top: 24px;
  padding: 24px var(--pad) 28px;
  border-top: 1px solid var(--line-4);
}
.drawer-actions .btn-brand,
.drawer-actions .btn-ghost,
.drawer-actions .btn-dark { justify-content: center; width: 100%; padding: 15px 20px; }

.drawer-meta { margin-top: 22px; font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   06  BUTTONS
   ========================================================================== */

.btn-brand,
.btn-ghost,
.btn-dark,
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-sizing: border-box;
  margin: 0;
  border: 1px solid transparent;
  font-family: var(--font-body);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.btn-brand svg,
.btn-ghost svg,
.btn-dark svg,
.btn-pill svg { width: 14px; height: 14px; }

.btn-brand:focus-visible,
.btn-ghost:focus-visible,
.btn-dark:focus-visible,
.btn-pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn-brand {
  padding: 12px 20px;
  border-radius: var(--r-ctl);
  background: var(--brand);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.btn-brand:hover { background: var(--brand-deep); color: var(--ink); }
.btn-brand:active { transform: translateY(1px); }

.btn-ghost {
  padding: 11px 20px;
  border-radius: var(--r-ctl);
  border-color: var(--line-5);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost:active { transform: translateY(1px); }

.btn-dark {
  padding: 12px 20px;
  border-radius: var(--r-ctl);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.btn-dark:hover { background: var(--ink-2); color: #fff; box-shadow: 0 16px 26px -16px rgba(15, 20, 32, .6); }
.btn-dark:active { transform: translateY(1px); }

.btn-pill {
  padding: 15px 22px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.btn-pill:hover { background: var(--brand-deep); color: var(--ink); }
.btn-pill--dark { background: var(--ink); color: #fff; }
.btn-pill--dark:hover { background: var(--ink-2); color: #fff; }
.btn-pill--kg { background: var(--kg-ink); color: #fff; }
.btn-pill--kg:hover { background: #332D6B; color: #fff; }

/* size modifier — combine with any button class */
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-sm svg { width: 13px; height: 13px; }

.btn-block { display: flex; width: 100%; }

.btn-brand[disabled],
.btn-ghost[disabled],
.btn-dark[disabled],
.btn-pill[disabled],
.btn-brand.is-disabled,
.btn-ghost.is-disabled,
.btn-dark.is-disabled,
.btn-pill.is-disabled { opacity: .5; pointer-events: none; cursor: not-allowed; }

/* small square icon button (card actions, table rows, close controls) */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.btn-icon:hover { border-color: var(--ink); }
.btn-icon:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-icon svg { width: 14px; height: 14px; }

/* ==========================================================================
   07  SECTION HEAD
   ========================================================================== */

.sec-head { margin-bottom: 24px; }

.sec-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sec-all {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  transition: color .16s var(--ease);
}
.sec-all:hover { color: var(--ink); }
/* A 14px line is a 14px target: on a phone «Hamısına bax» was 104 x 14,
   under the 24px WCAG asks and far under the 44px this site holds itself
   to. 15px of padding above and below, given back by the margin, makes the
   reach 44px without moving a thing. */
.sec-all { padding-block: 15px; margin-block: -15px; }
.sec-all svg { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.sec-all:hover svg { transform: translateX(3px); }

.sec-head .kicker { margin-bottom: 10px; }

/* ==========================================================================
   08  INSTITUTION CARD  .ecard
   ========================================================================== */

.ecard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.ecard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.ecard:focus-within { border-color: var(--ink); }

.ecard-media {
  position: relative;
  height: 188px;
  flex: none;
  background: var(--line-2);
  overflow: hidden;
}

.ecard-mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .22);
  user-select: none;
  pointer-events: none;
}

.ecard-fav {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  box-shadow: var(--sh-1);
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.ecard-fav svg { width: 15px; height: 15px; }
.ecard-fav:hover { transform: scale(1.06); }
.ecard-fav:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ecard-fav.is-on { background: var(--brand); color: var(--ink); }
.ecard-fav.is-on svg { fill: var(--ink); }

.ecard-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 15px 16px 16px;
}

.ecard-meta {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
}

.ecard-title {
  margin-top: 7px;
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.019em;
  color: var(--ink);
  text-wrap: pretty;
}
.ecard-title a { color: inherit; }

/* whole-card link overlay so the title anchor stays the accessible target */
.ecard-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.ecard-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }

.ecard-desc {
  margin: 9px 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  text-wrap: pretty;
}

.ecard-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--surface-3);
}

.ecard-price {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
}

.ecard-per {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* horizontal list variant used by catalogue “list view” */
.ecard--row { flex-direction: row; }
.ecard--row .ecard-media { width: 220px; height: auto; min-height: 160px; }
.ecard--row .ecard-body { padding: 18px 20px; }

/* --- gradient media variants .g1 … .g6 ----------------------------------- */
.g1 { background: linear-gradient(140deg, #0F1420, #243049); }
.g2 { background: linear-gradient(140deg, #D5D3F8, #EDE4F6); }
.g3 { background: linear-gradient(140deg, #FFC629, #FFE9A3); }
.g4 { background: linear-gradient(140deg, #2C63C4, #8FB4F2); }
.g5 { background: linear-gradient(140deg, #2E7D4F, #A6D8BE); }
.g6 { background: linear-gradient(140deg, #C2415C, #F3B6C2); }

/* light gradients need a dark monogram to stay legible */
.g2 .ecard-mono,
.g3 .ecard-mono { color: rgba(15, 20, 32, .22); }

/* ==========================================================================
   09  SEARCH BAR, CHIPS, DROPDOWN
   ========================================================================== */

.search-wrap { position: relative; }

.search-glow {
  position: absolute;
  left: 50%;
  top: -30px;
  width: min(820px, 100%);
  height: 210px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 198, 41, .34) 0%, rgba(255, 198, 41, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
}

.searchbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: var(--sh-3), 0 2px 0 rgba(15, 20, 32, .02);
}
.searchbar:focus-within { border-color: var(--brand-deep); }

.searchbar-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--ink);
}
.searchbar-icon svg { width: 22px; height: 22px; }

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  cursor: text;
}

/* Scoped, not bare: .input sits ~1700 lines below this and wins at equal
   specificity, so the bare selector's `border: 0` never applied and every
   search bar drew a bordered white field inside its bordered white pill. */
.searchbar .search-input {
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.searchbar .search-input::placeholder { color: var(--text-2); font-weight: 500; }
/* `outline:none` above kills the global :focus-visible ring, and the 1px
   --brand-deep border on white is only 1.90:1 — below WCAG 1.4.11's 3:1.
   Put a real, contrasting ring back on the field. */
.searchbar .search-input:focus-visible,
.search-field:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--r-pill);
}

.search-hint {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted-2);
  max-width: 100%;
  overflow: hidden;
}
.search-hint-word {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
  animation: edu-word-in .5s cubic-bezier(.2, .7, .3, 1) both;
}
.search-hint-caret {
  display: inline-block;
  width: 2px;
  height: 17px;
  background: var(--brand);
  animation: edu-caret 1.1s steps(1, end) infinite;
}
.search-field:focus-within .search-hint { display: none; }

.search-kbd {
  flex: none;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border: 1px solid var(--line-4);
  border-radius: var(--r-ctl);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted-3);
}

.searchbar .btn-dark,
.searchbar .btn-brand {
  flex: none;
  padding: 15px 24px;
  border-radius: var(--r-ctl);
  font-size: 15px;
}

/* divider between inline dropdown filters inside the bar */
.searchbar-sep {
  flex: none;
  width: 1px;
  align-self: stretch;
  margin: 4px 0;
  background: var(--line-4);
}

/* chips row under the bar */
.search-pop {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 4px 0;
}
.search-pop-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  /* --muted, not --muted-3: #A6AEBB was 2.24:1 on white. */
  color: var(--muted);
}
.search-pop-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: edu-blink 2.4s ease-in-out infinite;
}

/* --- chip ---------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.chip:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip svg { width: 12px; height: 12px; }

.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }

.chip--outline { background: var(--bg); border-color: var(--line-3); font-size: 12.5px; }
.chip--sm { padding: 6px 10px; font-size: 12px; }
.chip--static { cursor: default; }
.chip--static:hover { background: var(--surface-2); border-color: transparent; color: var(--text); }

.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- custom dropdown .dd ------------------------------------------------- */
.dd { position: relative; min-width: 0; }

.dd-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.dd-trigger:hover { border-color: var(--muted); }
.dd-trigger:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dd.is-open .dd-trigger { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 20, 32, .06); }

.dd-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-value.is-placeholder { color: var(--muted); font-weight: 400; }

.dd-caret {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--muted-3);
  transition: transform .22s var(--ease);
}
.dd.is-open .dd-caret { transform: rotate(180deg); }

/* bare trigger — used inline inside the search bar */
.dd-bare .dd-trigger { padding: 4px 0; border: 0; background: none; }
.dd-bare.is-open .dd-trigger { box-shadow: none; }

/* A shut panel is display:none, not merely invisible. Invisible but laid
   out, it still counted towards the page's scrollable width: a 240px panel
   hung from a narrower dropdown near the end of a row reached past the
   viewport, and with every dropdown shut the page scrolled sideways — 3px on
   /admin/namizedler at 375px, 46px on /admin/muessiseler at 560px.
   `display` is in the transition list and changes discretely, so a closing
   panel stays drawn until its fade is over; @starting-style below gives an
   opening one a state to fade in from. A browser without either shows and
   hides the panel without the fade. */
.dd-panel {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 70;
  box-sizing: border-box;
  width: max(240px, 100%);
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--sh-3);
  transform-origin: top left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(.98);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s, display .18s;
  transition-behavior: allow-discrete;
}
.dd.is-open .dd-panel {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Dropdowns inside the search bar open UPWARD — the bar sits near the fold.
   `.dd-up` is the authored opt-in; `.is-up` is what app.js sets at runtime when
   it measures no room below. Both must be listed — a mismatch here silently
   kills the flip and the panel opens off-screen. */
.searchbar .dd-panel,
.dd-up .dd-panel,
.dd.is-up .dd-panel {
  top: auto;
  bottom: calc(100% + 12px);
  transform-origin: bottom left;
  transform: translateY(6px) scale(.98);
}
.searchbar .dd.is-open .dd-panel,
.dd-up.is-open .dd-panel,
.dd.is-up.is-open .dd-panel { transform: translateY(0) scale(1); }

/* Where an opening panel fades in from — the shut panel's own state, which
   display:none would otherwise skip. Same selectors as the open rules above,
   so an upward panel rises and a downward one drops. */
@starting-style {
  .dd.is-open .dd-panel { opacity: 0; transform: translateY(-6px) scale(.98); }
  .searchbar .dd.is-open .dd-panel,
  .dd-up.is-open .dd-panel,
  .dd.is-up.is-open .dd-panel { transform: translateY(6px) scale(.98); }
}

/* Hung from the dropdown's right edge instead of its left. `.dd-end` is the
   authored opt-in; `.is-end` is what app.js sets when it opens a panel that
   would otherwise run past the right of the viewport — a 240px panel under
   a 205px «Müəssisə» at the end of a phone's filter row. */
.dd-end .dd-panel,
.dd.is-end .dd-panel { left: auto; right: 0; transform-origin: top right; }
.dd-end.dd-up .dd-panel,
.dd-end.dd.is-up .dd-panel,
.dd.is-end.dd-up .dd-panel,
.dd.is-end.is-up .dd-panel,
.searchbar .dd.is-end .dd-panel { transform-origin: bottom right; }

.dd-search {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.dd-search:focus { border-color: var(--ink); background: var(--bg); }

.dd-list {
  max-height: min(360px, 52vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.dd-list::-webkit-scrollbar { width: 6px; }
.dd-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--r-ctl); }
.dd-list::-webkit-scrollbar-track { background: transparent; }

/* NOTE: explicit reset — never `all: unset`, it would clear box-sizing. */
.dd-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 10px 34px 10px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: background-color .14s var(--ease), color .14s var(--ease);
}
.dd-option:hover,
.dd-option.is-active { background: var(--surface-2); color: var(--ink); }
.dd-option:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.dd-option[aria-selected="true"] { color: var(--ink); font-weight: 600; }

.dd-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* single-select tick */
.dd:not(.dd-multi) .dd-option::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 5px;
  height: 9px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: translateY(-62%) rotate(45deg);
  opacity: 0;
  transition: opacity .14s var(--ease);
}
.dd:not(.dd-multi) .dd-option[aria-selected="true"]::after { opacity: 1; }

/* multi-select checkbox */
.dd-multi .dd-option { padding-left: 44px; }
.dd-multi .dd-option::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 1.5px solid var(--line-5);
  border-radius: var(--r-ctl);
  background: var(--bg);
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.dd-multi .dd-option::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 5px;
  height: 9px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: translateY(-64%) rotate(45deg);
  opacity: 0;
  transition: opacity .16s var(--ease);
}
.dd-multi .dd-option:hover::before { border-color: var(--muted); }
.dd-multi .dd-option[aria-selected="true"]::before { background: var(--brand); border-color: var(--brand-deep); }
.dd-multi .dd-option[aria-selected="true"]::after { opacity: 1; }

.dd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 9px 6px 4px;
  border-top: 1px solid var(--line-4);
}
.dd-clear {
  box-sizing: border-box;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.dd-clear:hover { color: var(--ink); text-decoration: underline; }
.dd-empty {
  padding: 18px 12px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   10  BANNERS, MARQUEE
   ========================================================================== */

.banner-dark {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(112deg, #0F1420 0%, #1A2130 48%, #243049 100%);
  box-shadow: var(--sh-4);
  color: #fff;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.banner-dark:hover { transform: translateY(-3px); box-shadow: 0 34px 64px -32px rgba(15, 20, 32, .6); }
/* two decorative radial blobs, no extra markup needed */
.banner-dark::before,
.banner-dark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.banner-dark::before {
  top: -160px;
  right: 26%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 198, 41, .22) 0%, rgba(255, 198, 41, 0) 66%);
}
.banner-dark::after {
  bottom: -180px;
  left: -60px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(200, 198, 244, .22) 0%, rgba(200, 198, 244, 0) 68%);
}

/* purple “for parents” CTA twin */
.banner-soft {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(108deg, #D5D3F8 0%, #C8C6F4 44%, #EDE4F6 100%);
  box-shadow: 0 26px 56px -36px rgba(26, 24, 64, .45);
  color: var(--kg-ink);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.banner-soft:hover { transform: translateY(-3px); box-shadow: 0 34px 64px -34px rgba(26, 24, 64, .45); }
.banner-soft::before,
.banner-soft::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.banner-soft::before {
  top: -150px;
  left: 34%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 66%);
}
.banner-soft::after {
  bottom: -170px;
  right: 12%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 198, 41, .28) 0%, rgba(255, 198, 41, 0) 68%);
}

.banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 34px;
}

.banner-copy { flex: 1; min-width: 0; }

.banner-title {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.026em;
  color: #fff;
  text-wrap: pretty;
}
.banner-soft .banner-title { color: var(--kg-ink); max-width: 600px; }
.banner-title em { font-style: normal; color: var(--brand); }

.banner-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.banner-pill svg { width: 13px; height: 13px; }

.banner-text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted-2);
}
.banner-soft .banner-text { color: var(--kg-text); font-weight: 500; }

.banner-cta { flex: none; }

/* --- marquee ------------------------------------------------------------- */
.marquee-row { display: flex; align-items: center; gap: 32px; }
.marquee-label {
  flex: none;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.marquee {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: edu-marquee 78s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: color .2s var(--ease);
}
/* The tape used to be links; now it is eight names with nowhere to go, and a
   hover that darkens them promises a click that never happens. */

.marquee-mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  color: inherit;
}

.marquee-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
  white-space: nowrap;
  color: inherit;
}

/* ==========================================================================
   11  VACANCIES, NEWS, BLOGS, ANNOUNCEMENTS
   ========================================================================== */

/* --- vacancy row --------------------------------------------------------- */
.vac-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.vac-row + .vac-row { margin-top: 12px; }
.vac-row:hover { border-color: var(--line-5); box-shadow: var(--sh-2); transform: translateY(-2px); }

.vac-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.vac-icon svg { width: 20px; height: 20px; }
.vac-icon--info { background: var(--info-bg); color: var(--info); }
.vac-icon--ok { background: var(--ok-bg); color: var(--ok); }
.vac-icon--kg { background: var(--kg-3); color: var(--kg-text); }

.vac-main { flex: 1 1 240px; min-width: 0; }

.vac-title {
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.019em;
  color: var(--ink);
  text-wrap: pretty;
}

.vac-org {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.vac-loc {
  flex: 0 1 170px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.vac-salary {
  flex: none;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.018em;
  color: var(--ink);
  white-space: nowrap;
}

.vac-row .chip { flex: none; }
.vac-row .btn-ghost { flex: none; }

/* --- news card ----------------------------------------------------------- */
.news-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.news-card + .news-card { margin-top: 10px; }
.news-card:hover { background: var(--surface); border-color: var(--line-5); transform: translateY(-2px); }

.news-thumb {
  position: relative;
  flex: none;
  width: 92px;
  height: 66px;
  border-radius: var(--r-xxs);
  overflow: hidden;
  background: var(--line-2);
}
.news-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}

.news-date {
  flex: none;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

/* --- announcement row ---------------------------------------------------- */
.ann-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.ann-row + .ann-row { margin-top: 10px; }
.ann-row:hover { background: var(--surface); border-color: var(--line-5); transform: translateY(-2px); }
.ann-body { flex: 1; min-width: 0; }
.ann-title {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.ann-meta {
  margin-top: 7px;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}
.ann-date {
  flex: none;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

/* --- blog cards ---------------------------------------------------------- */
.blog-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--surface-3);
  transition: opacity .2s var(--ease);
}
.blog-card:last-child { border-bottom: 0; }
.blog-card:hover { opacity: .72; }

.blog-num {
  flex: none;
  width: 22px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #D7DCE4;
}
.blog-body { flex: 1; min-width: 0; }
.blog-cat {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--brand-dark);
}
.blog-title {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}
.blog-meta {
  display: block;
  margin-top: 7px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
}
.blog-thumb {
  position: relative;
  flex: none;
  width: 76px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--line-2);
}
.blog-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list {
  display: flex;
  flex-direction: column;
  padding: 6px 18px;
  border: 1px solid var(--line-4);
  border-radius: var(--r-lg);
  background: var(--bg);
}

/* featured blog card */
.blog-card--feature {
  position: relative;
  display: block;
  height: 100%;
  min-height: 424px;
  padding: 0;
  border-bottom: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(140deg, #0F1420, #243049);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.blog-card--feature:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -30px rgba(15, 20, 32, .5);
}
.blog-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-feature-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 32, 0) 26%, rgba(15, 20, 32, .62) 62%, rgba(15, 20, 32, .93) 100%);
  pointer-events: none;
}
.blog-feature-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.blog-feature-tag svg { width: 12px; height: 12px; }
.blog-feature-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 28px 24px;
}
.blog-feature-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
}
.blog-feature-cat span { color: rgba(255, 255, 255, .72); }
.blog-feature-title {
  margin-top: 12px;
  max-width: 460px;
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -.024em;
  color: #fff;
  text-wrap: pretty;
}
.blog-feature-desc {
  margin-top: 11px;
  max-width: 480px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.62;
  color: rgba(255, 255, 255, .76);
  text-wrap: pretty;
}
.blog-feature-author {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}
.blog-feature-author .meta-line { color: rgba(255, 255, 255, .5); }

/* ==========================================================================
   12  BADGES
   ========================================================================== */










/* --- the aside help panel ---------------------------------------------------
   Written for the FAQ page as .faq-side / .faq-support and left behind when it
   was removed; /sebeke/* is the only page that uses it now, so it is named for
   what it is. Two panels: the branch-matching wizard and the contact card.
   -------------------------------------------------------------------------- */
.side-help {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.side-help-card {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid #EDE7D8;
  border-radius: var(--r-lg);
  background: #F6F4EE;
}
.side-help-card::before {
  content: "?";
  position: absolute;
  right: -6px;
  top: -42px;
  font-family: var(--font-head);
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
  color: #EFE9D8;
  pointer-events: none;
  user-select: none;
}
.side-help-inner { position: relative; }
.side-help-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.018em;
  color: var(--ink);
  text-wrap: pretty;
}
.side-help-text {
  margin-top: 8px;
  max-width: 230px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.side-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

/* --- badge --------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--brand { background: var(--brand); color: var(--ink); }
.badge--dark { background: var(--ink); color: #fff; }
.badge--pill { border-radius: var(--r-pill); padding: 6px 12px; }

/* ==========================================================================
   13  PAGE HEAD, CRUMBS, COMPARE BAR, MODAL
   ========================================================================== */

.page-head {
  padding: 40px 0 28px;
  background:
    radial-gradient(90% 120% at 8% -30%, #FFF7E0 0%, rgba(255, 247, 224, 0) 60%),
    linear-gradient(180deg, var(--surface) 0%, #fff 100%);
  border-bottom: 1px solid var(--line-4);
}
.page-head .kicker { margin-bottom: 10px; }
.page-head .h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.14; }
.page-head .lead { margin-top: 12px; max-width: 680px; font-size: 15.5px; }
.page-head--plain { background: var(--bg); }
/* Crumbs and nothing else: the head's 28px floor and the crumbs' own 14px
   margin stack under a single line, which on the institution profile left a
   69px hole above the card. */
.page-head--crumbs { padding-bottom: 14px; }
.page-head--crumbs .crumbs { margin-bottom: 0; }

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
}
.crumbs a { color: var(--muted); transition: color .16s var(--ease); }
.crumbs a:hover { color: var(--ink); }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-5);
}
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* --- compare bar --------------------------------------------------------- */
.compare-bar {
  position: fixed;
  left: 50%;
  /* --cb-lift is written by app.js once the footer is on screen, so the bar
     parks above the dark band instead of crossing it. It rides on `bottom`
     because the transform is already spent on the centring and the slide-in,
     and it is deliberately outside the transition below — it has to track the
     scroll frame for frame, not chase it. */
  bottom: calc(22px + var(--cb-lift, 0px));
  z-index: 70;
  box-sizing: border-box;
  display: block;
  width: min(760px, calc(100vw - 32px));
  padding: 12px 12px 12px 18px;
  border-radius: var(--r-lg);
  /* The same ink, let through rather than laid on. */
  background: var(--glass-dark);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #fff;
  box-shadow: var(--sh-4), var(--glass-edge-dark);
  /* hidden state MUST use all three — translateY alone still traps clicks */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px);
  transition: opacity .24s var(--ease), transform .28s var(--ease), visibility .28s;
}
.compare-bar.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* The bar itself is only the fixed shell; `.compare-bar-inner` is the row.
   It also carries `.container`, so the container caps must be neutralised. */
.compare-bar-inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.cb-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.cb-avatars {
  display: flex;
  align-items: center;
  flex: none;
}
.cb-avatars > * {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink-3);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
}
.cb-avatars > *:first-child { margin-left: 0; }
.cb-avatars img { width: 100%; height: 100%; object-fit: cover; }
.cb-count {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--r-xxs);
  background: var(--brand);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.cb-text {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cb-hint {
  display: block;
  color: var(--muted-2);
  font-weight: 500;
}
.cb-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cb-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.cb-close:hover { background: var(--ink-3); color: #fff; }
.cb-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.compare-clear {
  padding: 8px 4px;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  cursor: pointer;
}
.compare-clear:hover { color: #fff; text-decoration: underline; }

/* --- modal --------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s var(--ease), visibility .22s;
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  /* Lighter than it was, and blurred far harder. An iOS sheet does not dim
     the page so much as put it out of focus — the dimming was doing the work
     four pixels of blur could not. */
  background: rgba(15, 20, 32, .38);
  -webkit-backdrop-filter: saturate(140%) blur(22px);
  backdrop-filter: saturate(140%) blur(22px);
  border: 0;
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  border-radius: var(--r-xl);
  /* The panel itself stays opaque: it holds a form. Only its edge is glass —
     the rim that says the sheet has thickness. */
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(15, 20, 32, .5), var(--glass-edge-light);
  transform: translateY(12px) scale(.985);
  transition: transform .26s var(--ease);
}
.modal.is-open .modal-panel { transform: none; }
.modal-panel--wide { max-width: 720px; }

.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-4);
}
.modal-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: #FFF6E0;
  color: var(--brand-word);
}
.modal-head-text { flex: 1; min-width: 0; }
.modal-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
/* Smaller than a standalone badge: next to a 16px title the default padding
   makes the aside louder than the heading it qualifies. */
.modal-title-row .badge { padding: 4px 9px; }
.modal-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.019em;
  color: var(--ink);
}
.modal-sub {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  /* --muted measured 3.09:1 on the panel — under the floor, and the line that
     tells a visitor what the form is for. */
  color: var(--text);
}
.modal-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s var(--ease);
}
.modal-close:hover { border-color: var(--ink); }
.modal-close svg { width: 13px; height: 13px; }

.modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: none;
  padding: 16px 24px;
  border-top: 1px solid var(--line-4);
  background: var(--surface);
}

/* --- guest modal benefit list -------------------------------------------- */
.modal-list { display: flex; flex-direction: column; gap: 12px; }
.modal-list-item {
  position: relative;
  padding-left: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.modal-list-item::before {
  content: "";
  position: absolute;
  top: .45em;
  left: 2px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
  transform: rotate(-45deg);
}
.modal-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* --- in-place success panel ---------------------------------------------- */
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  text-align: center;
}
.modal-success[hidden] { display: none; }
.modal-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
}
.modal-success-title {
  font-size: var(--fs-h4);
  line-height: 1.3;
  letter-spacing: -.019em;
  color: var(--ink);
}
.modal-success-text {
  max-width: 38ch;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ==========================================================================
   14  FORMS
   ========================================================================== */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .field-full { grid-column: 1 / -1; }

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
}
.field-label .req { color: var(--danger); margin-left: 2px; }

.input,
.textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-ctl);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
/* A placeholder is text and answers to the same 4.5:1. --muted-2 was 2.54. */
.input::placeholder,
.textarea::placeholder { color: var(--text-2); font-weight: 400; }
.input:hover,
.textarea:hover { border-color: var(--muted); }
.input:focus,
.textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 20, 32, .06); }
.input[disabled],
.textarea[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.input.has-error,
.textarea.has-error { border-color: var(--danger); }
.input.has-error:focus,
.textarea.has-error:focus { box-shadow: 0 0 0 3px rgba(194, 65, 92, .12); }

.textarea { min-height: 132px; line-height: 1.6; resize: vertical; }

/* --- password box with a reveal button ------------------------------------
   The input keeps its own box; the button sits inside it, over the padding the
   text is kept out of. A wrapper rather than an absolutely-positioned button
   inside .field, because .field also holds the label above and the hint below,
   and «the right-hand end of the input» is not a position you can name from
   there without measuring.

   The button is authored hidden and app.js un-hides it — with no script it does
   nothing, and a control that does nothing is worse than no control. */
.pw { position: relative; display: block; }
/* Room for the button, so a long passphrase does not run underneath it. */
.pw .input { padding-right: 46px; }

.pw-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--r-xxs);
  background: none;
  color: var(--text-2);
  cursor: pointer;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.pw-eye:hover { background: var(--surface-2); color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.pw-eye svg { width: 18px; height: 18px; }
/* Revealed is a state worth seeing at a glance — the eye goes ink, not grey. */
.pw-eye[aria-pressed="true"] { color: var(--ink); }
.pw-eye .pw-ico--off { display: none; }
.pw-eye[aria-pressed="true"] .pw-ico--on { display: none; }
.pw-eye[aria-pressed="true"] .pw-ico--off { display: block; }

.field-hint {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  /* Was --muted at 3.09:1. A hint is the line that explains a rule the field
     will otherwise reject you for, so it is not the place to save contrast. */
  color: var(--text);
}

.field-error {
  display: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--danger);
}
.field-error.is-on { display: block; }
.field.has-error .field-error { display: block; }

.field-row { display: flex; align-items: center; gap: 10px; }

/* --- switch -------------------------------------------------------------- */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.switch-track {
  position: relative;
  flex: none;
  width: 44px;
  height: 25px;
  border-radius: var(--r-pill);
  background: var(--line-2);
  transition: background-color .2s var(--ease);
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px -1px rgba(15, 20, 32, .35);
  transition: transform .2s var(--ease);
}
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(19px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch input[disabled] + .switch-track { opacity: .5; cursor: not-allowed; }
.switch-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

/* --- checkbox / radio ---------------------------------------------------- */
.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
/* The reset at the top of this file takes `appearance` off every input, which
   removes the native control entirely — so a checkbox rendered as an 18px hole
   with no box and no tick, and a ticked one looked exactly like an unticked
   one. `accent-color` cannot bring it back: it tints a native widget, and
   there is no longer a native widget to tint. The control has to be drawn.

   Drawn the way the product already draws one: .dd-multi's option box above is
   a 1.5px --line-5 square that fills with --brand and shows an --ink tick. */
.check input {
  flex: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1.5px solid var(--line-5);
  border-radius: var(--r-xxs);
  background: #fff no-repeat center / 12px 12px;
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.check input[type="radio"] { border-radius: 50%; }
.check:hover input:not(:checked) { border-color: var(--muted); }
.check input:checked { border-color: var(--brand-deep); background-color: var(--brand); }
.check input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4 6.4 11.3 12.5 5' fill='none' stroke='%230F1420' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.4' fill='%230F1420'/%3E%3C/svg%3E");
}
.check input:disabled { opacity: .55; cursor: not-allowed; }

/* ==========================================================================
   15  PAGER, EMPTY STATE, TABS, STATS, AVATAR, RATING
   ========================================================================== */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-ctl);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease);
}
.pager-btn:hover { border-color: var(--ink); color: var(--ink); }
.pager-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pager-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-btn[disabled],
.pager-btn.is-disabled { opacity: .45; pointer-events: none; }
.pager-btn svg { width: 14px; height: 14px; }
.pager-gap {
  display: inline-flex;
  align-items: flex-end;
  height: 40px;
  padding: 0 4px;
  color: var(--muted-3);
  font-weight: 700;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 24px;
  border: 1px dashed var(--line-5);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: center;
}
.empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
}
.empty-state-icon svg { width: 24px; height: 24px; }
.empty-state h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.empty-state p {
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: none;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s var(--ease);
}
.tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--brand);
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { opacity: 1; }

.tab-panel { display: none; padding-top: 24px; }
.tab-panel.is-active { display: block; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 20px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
}
.stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-2);
}
.stat-row--boxed .stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}

/* A compact set: these are a header for the prose underneath, not the page's
   headline figures, so they take a third less room and let the reader reach
   the text sooner. */
.stat-row--tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); gap: 12px; }
/* A profile with one fact to its name would otherwise get a single card
   stretched across the whole column, which reads as a banner. */
.stat-row--tight .stat { gap: 3px; padding: 12px 14px; border-radius: var(--r-sm); max-width: 260px; }
.stat-row--tight .stat-num { font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.03em; }
.stat-row--tight .stat-label { font-size: 11.5px; line-height: 1.35; }

.avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--line-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.avatar--lg { width: 48px; height: 48px; font-size: 15px; }
.avatar--brand { background: var(--brand); color: var(--ink); }
.avatar--dark { background: var(--ink); color: #fff; }

.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { border: 2px solid #fff; box-sizing: content-box; }
.avatar-stack .avatar + .avatar { margin-left: -13px; }

/* ==========================================================================
   16  FOOTER
   ========================================================================== */

.footer {
  position: relative;
  /* Above .ad-rail, which is fixed at 40. Below it the two gutter rails were
     painted over the dark band and cut off by the bottom of the window; now
     the footer slides over them. */
  z-index: 45;
  margin-top: 48px;
  background: var(--ink);
  color: #fff;
  /* The footer's quiet grey is a light one on ink. --muted was darkened for
     white grounds (2026-10), which took it to 3.75:1 here; inside the band
     it keeps the old value, 5.99:1 on ink. */
  --muted: #8A93A5;
}

/* The index on the left, the social marks opposite it — both hung on the same
   edges as the copyright below them. */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 20px 0 16px;
}

.footer-social { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 44px is the target every other control on the site clears; the mark itself
     is 18px and the rest is reach. */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* No disc behind it. A brand mark is a shape in its own right and a grey
     circle only competes with it. */
  background: none;
  color: #fff;
  transition: color .18s var(--ease);
}
.footer-social-link:hover { color: var(--brand); }
.footer-social-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Drawn but not wired. White like the rest — a dimmed brand mark reads as a
   rendering fault rather than as a slot waiting for an address. */
.footer-social-link.is-empty { cursor: default; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}
/* Quieter than the header's 15.5px/700 — it is an index, not the navigation —
   but no longer a different family. 12.5/500 read as another site's footer.
   Scoped here rather than on .footer-link, which two inline prose links
   elsewhere also wear. */
/* `a` alone missed «Əlaqə», which is a button because there is no contact page
   for it to point at — it fell back to .footer-link's 12.5px/500 beside its
   13.5px/600 neighbours. */
.footer-nav a,
.footer-nav button { font-size: 13.5px; font-weight: 600; }


.footer-link {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.4;
  /* Same 3.92:1 problem as the copyright: these are the footer's navigation,
     so they were the worst place for it. */
  color: var(--muted);
  transition: color .16s var(--ease);
}
.footer-link:hover { color: var(--brand); }
.footer-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0;
  padding: 16px 0 20px;
  border-top: 1px solid var(--ink-2);
}
.footer-copy,
.footer-made {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 400;
  line-height: 1.4;
  /* --text-2 measures 3.92:1 on the footer's ink ground — under the floor, and
     it has been since the footer was written. --muted is 5.99:1 and still
     plainly secondary against the white wordmark. */
  color: var(--muted);
}
.footer-made-who {
  font-weight: 500;
  color: #C9D0DA;
}
a.footer-made-who { transition: color .16s var(--ease); }
a.footer-made-who:hover { color: var(--brand); }
a.footer-made-who:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }



/* ==========================================================================
   16b  AD RAILS  (DESIGN-SPEC § 4)
   --------------------------------------------------------------------------
   Two fixed 244px rails flanking the 1200px container. Each holds 3 .ad-card
   that cross-fade every 5.2s. Hidden below 1736px so they never crowd the page.
   `--ad-top` lets page JS clamp the rail above the footer without inline styles
   on the cards (default 88px, per the contract).
   ========================================================================== */

.ad-rail { display: none; }

@media (min-width: 1736px) {
  .ad-rail {
    position: fixed;
    top: var(--ad-top, 88px);
    z-index: 40;
    display: grid;
    box-sizing: border-box;
    width: 244px;
  }
  .ad-rail--left  { left: calc(50% - 600px - 268px); }
  .ad-rail--right { right: calc(50% - 600px - 268px); }

  /* --ad-shift is negative once the footer is close enough to be crossed; app.js
     writes it on every frame the page scrolls. Zero, and therefore inert, when
     the script has not run. */
  .ad-rail { transform: translateY(var(--ad-shift, 0px)); }

  /* The creative is the whole card, and it takes every pixel the screen has
     left under the rail's top offset. Sized from the viewport rather than a
     fixed ratio so a tall monitor gets a taller ad instead of dead space, with
     860px as the ceiling — past that the crop starts throwing away the middle
     of the artwork. No padding and no chrome: what the operator uploads is
     exactly what the visitor sees. */
  .ad-card {
    grid-area: 1 / 1;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    height: min(860px, calc(100vh - var(--ad-top, 88px) - 24px));
    border-radius: var(--r-md);
    background: var(--surface-2);
    box-shadow: var(--sh-2);
    opacity: 0;
    visibility: hidden;
    animation: edu-ad-fade 15.6s var(--ease) infinite both;
  }
  .ad-card:nth-child(1) { animation-delay: 0s; }
  .ad-card:nth-child(2) { animation-delay: 5.2s; }
  .ad-card:nth-child(3) { animation-delay: 10.4s; }

  .ad-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
  }
  a.ad-card:hover .ad-photo { transform: scale(1.03); }
  a.ad-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
}

/* ==========================================================================
   17  HERO
   The homepage's alone, so it lives in pages/index.css with the rest of that
   page — the owner's three-card hero replaced this section whole.
   ========================================================================== */

/* ==========================================================================
   18  KEYFRAMES + REVEAL
   ========================================================================== */

@keyframes edu-word-in {
  from { opacity: 0; transform: translateY(.42em) rotate(-2deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes edu-caret {
  0%, 45%   { opacity: 1; }
  55%, 100% { opacity: 0; }
}

@keyframes edu-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 22px)); }
}

@keyframes edu-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.75); }
}


/* 3 × 5.2s cross-fade for the .ad-rail cards */
@keyframes edu-ad-fade {
  0%       { opacity: 0; visibility: hidden; }
  3%, 30%  { opacity: 1; visibility: visible; }
  33%,100% { opacity: 0; visibility: hidden; }
}

/* IntersectionObserver reveal — app.js adds .is-in, honouring
   data-reveal-delay (ms) via an inline transition-delay-free timeout. */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }
/* JS-off safety net: app.js stamps `js-ready` on <html> before first paint, so
   until (or unless) that happens nothing is hidden and every page stays readable. */
html:not(.js-ready) [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   19  MEDIA QUERIES — 1200 / 1024 / 768 / 560
   ========================================================================== */

/* -------------------------------------------------------------- ≤1200px --
   The 8 nav links + logo + both CTAs need ~1182px of content, but .container
   never offers more than 1200 - 2×--pad. The desktop nav therefore hands over
   to the burger + drawer at the container width, not at 768px.
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .drawer { display: flex; }
}

/* -------------------------------------------------------------- ≤1024px -- */
@media (max-width: 1024px) {
  :root { --pad: 24px; }

  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .grid-aside { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* Stacked below the content, so it has nothing left to stick to. */
  .side-help { position: static; }

  .header-inner { gap: 14px; }
  .nav-link { padding: 9px 10px; font-size: 14.5px; }

  .banner-inner { gap: 22px; padding: 28px 26px; }

  .blog-card--feature { min-height: 380px; }
  .blog-feature-title { font-size: 24px; }

  .footer-inner { gap: 18px 24px; }

  .vac-loc { flex-basis: 140px; }
}

/* --------------------------------------------------------------- ≤768px -- */
@media (max-width: 768px) {
  .grid-3,
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section { padding: 48px 0 0; }
  .section--tight { padding: 36px 0 0; }
  .section--last { padding-bottom: 56px; }

  /* header: the nav/burger swap already happened at 1200px — drop the CTA */
  .header-actions { margin-left: auto; gap: 8px; }
  .header-actions .btn-ghost { display: none; }
  /* No room beside a wordmark and a burger; the drawer's copy takes over, so
     the rule is scoped to the bar rather than to the class. */
  .site-header .header-search { display: none; }

  /* search bar becomes a stacked block */
  .searchbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 12px;
    border-radius: var(--r-lg);
  }
  .searchbar-icon { width: 42px; height: 42px; }
  .search-field { flex: 1 1 160px; }
  .searchbar .btn-dark,
  .searchbar .btn-brand { flex: 1 1 100%; justify-content: center; padding: 14px 20px; }
  .searchbar-sep { display: none; }
  .search-glow { height: 160px; }

  .banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 26px 24px;
  }
  .banner-cta { width: 100%; }
  .banner-cta .btn-brand,
  .banner-cta .btn-pill { width: 100%; justify-content: center; }

  .marquee-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee { width: 100%; }
  .marquee-track { gap: 32px; }
  .marquee-name { font-size: 16px; }

  /* vacancy rows stack */
  .vac-row { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
  .vac-main { flex: 1 1 100%; }
  .vac-loc { flex: 1 1 auto; }
  .vac-salary { flex: none; }
  .vac-row .btn-ghost { flex: 1 1 100%; justify-content: center; }

  .news-card,
  .ann-row { padding: 12px 14px; gap: 12px; }
  .news-thumb { width: 78px; height: 58px; }

  .blog-card--feature { min-height: 320px; }
  .blog-feature-body { padding: 22px 22px 20px; }
  .blog-feature-title { font-size: 22px; }
  .blog-feature-desc { display: none; }
  .blog-list { padding: 4px 16px; }

  .modal { padding: 16px; }
  .modal-body { padding: 22px 20px 20px; }
  .modal-head { padding: 16px 20px; }

  .form-grid { grid-template-columns: minmax(0, 1fr); }

  .compare-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 10px 10px 10px 14px;
    transform: translateY(14px);
  }
  .compare-bar.is-on { transform: translateY(0); }
  .compare-bar-inner { gap: 10px; }

  .page-head { padding: 30px 0 24px; }

  .footer { margin-top: 48px; }
  .footer-bottom { margin-top: 30px; }
}

/* --------------------------------------------------------------- ≤560px -- */
@media (max-width: 560px) {
  :root {
    --pad: 18px;
    --fs-h1: clamp(30px, 8vw, 38px);
    --fs-h2: 22px;
    --fs-h3: 20px;
    --gap: 14px;
    --gap-lg: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }

  .section { padding: 40px 0 0; }
  .section--tight { padding: 30px 0 0; }
  .section--last { padding-bottom: 44px; }

  /* non-essential meta is dropped to keep rows readable at 390px */
  .is-optional { display: none !important; }
  .search-pop-label { display: none; }
  .news-date { display: none; }
  .vac-loc { display: none; }
  .blog-num { display: none; }

  .header-inner { gap: 10px; }
  .header-actions .btn-brand { display: none; }
  .logo-text { font-size: 19px; }

  .drawer-head { padding: 0 var(--pad); }
  .drawer-body { padding: 16px var(--pad) 24px; }
  .drawer-link { font-size: 15.5px; padding: 13px 12px; }

  .searchbar { gap: 10px; padding: 10px; }
  .searchbar-icon { width: 38px; height: 38px; }
  .searchbar-icon svg { width: 18px; height: 18px; }
  .search-input,
  .search-hint { font-size: 15px; }
  .search-pop { gap: 6px; padding: 12px 2px 0; }
  .chip { padding: 7px 11px; font-size: 12.5px; }

  .sec-head { margin-bottom: 18px; }
  .sec-head-row { gap: 12px; }
  .sec-all { font-size: 13px; }

  .ecard-media { height: 168px; }
  .ecard--row { flex-direction: column; }
  .ecard--row .ecard-media { width: 100%; height: 168px; min-height: 0; }

  .banner-inner { padding: 22px 18px; }
  .banner-title { font-size: 21px; }

  .vac-row { padding: 14px; }
  .vac-title { font-size: 15.5px; }
  .vac-icon { width: 38px; height: 38px; }

  .news-card { flex-wrap: wrap; }
  .news-thumb { width: 66px; height: 50px; }
  .news-title { font-size: 14px; }
  .ann-date { display: none; }

  .blog-card { gap: 12px; }
  .blog-thumb { width: 64px; height: 54px; }
  .blog-card--feature { min-height: 280px; }
  .blog-feature-title { font-size: 19px; }
  .blog-feature-body { padding: 18px 18px 16px; }

  .page-head { padding: 24px 0 20px; }
  .page-head .lead { font-size: 14.5px; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-panel {
    max-width: none;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot > * { width: 100%; justify-content: center; }

  .compare-bar { padding: 10px 12px; }
  .compare-bar-inner { flex-wrap: wrap; }
  .cb-left { flex: 1 1 100%; order: 2; }
  .cb-actions { flex: 1; justify-content: flex-end; }

  .pager { gap: 6px; margin-top: 28px; }
  .pager-btn { min-width: 36px; height: 36px; padding: 0 9px; font-size: 13px; }

  .empty-state { padding: 40px 18px; }

  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

  .table { min-width: 560px; }

  /* Stacked: the index, then the marks, both left-hung. */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 0 14px; }
  .footer-social { margin-left: -12px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 20px 0 24px;
  }
}

/* ==========================================================================
   20  REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  /* elements whose visible state depends on an animation must stay visible */
  .search-hint-word { opacity: 1; transform: none; }

  .search-hint-caret { animation: none; opacity: 1; }

  .marquee-track { animation: none; transform: none; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }

  /* the ad cards cross-fade by animation — without it, show the first only */
  .ad-card { animation: none; display: none; }
  .ad-card:first-child { display: flex; opacity: 1; visibility: visible; }

  .kicker--dot::before,
  .search-pop-label::before { animation: none; opacity: 1; }

  [data-reveal] { opacity: 1; transform: none; }

  .ecard:hover,
  .banner-dark:hover,
  .banner-soft:hover,
  .vac-row:hover,
  .news-card:hover,
  .ann-row:hover,
  .blog-card--feature:hover { transform: none; }
}

/* ==========================================================================
   21  RUNTIME ADDENDUM  (added while writing COMPONENTS.md)
   --------------------------------------------------------------------------
   Everything in this section styles markup or state that exists ONLY at
   runtime: assets/js/app.js builds it or toggles it, so no HTML file can be
   authored with the class names above to reach it. Each rule says why it is
   here. Nothing in this block is optional decoration — without it the module
   named in the comment is visibly broken.
   ========================================================================== */

/* --- HeroWord: in pages/index.css, with the rest of the homepage's hero. -- */

/* --- Compare bar ---------------------------------------------------------
   Compare.render() still stamps `has-compare-bar` on <body>; nothing reserves
   space for the bar any more. Reserved space has to be trailing space for the
   bar to clear the footer at maximum scroll, and trailing space is either a
   white band under the dark one (on <body>) or a footer that grows the moment
   something is compared (on .footer). Neither is acceptable, so app.js lifts
   the bar above the footer instead — see --cb-lift on .compare-bar. */

/* ==========================================================================
   23. Toast + a11y helper — added with the Share module. Toasts confirm
   actions that leave no visible trace on the page (copying a link).
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.toast-wrap {
  position: fixed; z-index: 200;
  left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--glass-dark);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #fff;
  font: 600 14px/1.4 var(--font-body, Manrope), sans-serif;
  box-shadow: var(--sh-2), var(--glass-edge-dark);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }

/* The compare bar also lives at the bottom — lift toasts clear of it. */
body.has-compare-bar .toast-wrap { bottom: 104px; }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}

/* Off-screen but NOT clipped — a clipped textarea cannot be selected, and
   execCommand('copy') needs a live selection. Used by Share.fallbackCopy. */
.offscreen-copy {
  position: fixed;
  top: 0; left: -9999px;
  width: 1px; height: 1px;
  padding: 0; border: 0;
  opacity: 0;
}

/* ==========================================================================
   24. Card photography — real images layered over the gradient placeholder.
   The gradient and monogram stay underneath as the fallback, so a card whose
   photo is missing or fails to load still reads as designed rather than blank.
   ========================================================================== */

.ecard-photo,
.news-photo,
.blog-photo,
.ad-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  background: transparent;
}

/* The favourite button and the monogram must stay above the photo. */
.ecard-media .ecard-fav { z-index: 3; }
.ecard-media .ecard-mono { z-index: 0; }

/* A soft floor under the photo so white tag pills keep their contrast. */
.ecard-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,20,32,.22) 0%, rgba(15,20,32,0) 42%);
}
.ecard-media:not(:has(.ecard-photo))::after { display: none; }

.ecard:hover .ecard-photo { transform: scale(1.03); }
.ecard-photo { transition: transform .4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .ecard-photo { transition: none; }
  .ecard:hover .ecard-photo { transform: none; }
}

/* ==========================================================================
   25. Compare control on the card — it took over the favourite's corner slot.
   There are no accounts, so comparing is the only save-like action a visitor
   has; a faint icon would hide it. It reads as a labelled button instead.
   ========================================================================== */

.ecard-cmp {
  position: absolute;
  z-index: 4;
  top: 11px;
  right: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(15, 20, 32, .08);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(15, 20, 32, .55);
  transition: background-color .18s var(--ease), color .18s var(--ease),
              transform .18s var(--ease), box-shadow .18s var(--ease);
}
.ecard-cmp svg { flex: none; }
.ecard-cmp:hover {
  background: var(--brand);
  border-color: var(--brand-deep);
  transform: translateY(-1px);
}
.ecard-cmp:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Selected: brand fill, so a chosen card is obvious from across the grid. */
.ecard-cmp.is-on {
  background: var(--brand);
  border-color: var(--brand-deep);
  color: var(--ink);
  box-shadow: 0 10px 22px -10px rgba(255, 198, 41, .95);
}
.ecard-cmp .ecard-cmp-on { display: none; }
.ecard-cmp.is-on .ecard-cmp-off { display: none; }
.ecard-cmp.is-on .ecard-cmp-on { display: inline; }

@media (max-width: 560px) {
  .ecard-cmp { top: 9px; right: 9px; padding: 7px 11px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ecard-cmp { transition: none; }
  .ecard-cmp:hover { transform: none; }
}

/* ==========================================================================
   26. Banner CTA moved into the copy column — it now sits under the sentence
   that argues for it rather than stranded past the photo on the far right.
   ========================================================================== */

/* The CTA rides the pill/text line so that line fills the column. On its own
   row it left a wide dead strip between the button and the photo. */
.banner-row .banner-cta {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.banner-copy > .banner-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
/* .banner-inner is a flex row and the CTA is its right-hand column: the copy
   takes the space, the button ends the line. */
.banner-inner > .banner-cta {
  margin-top: 0;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 768px) {
  .banner-row .banner-cta { margin-left: 0; width: 100%; }
  .banner-copy .banner-cta { margin-top: 18px; }
  .banner-copy .banner-cta .btn-brand,
  .banner-copy .banner-cta .btn-dark,
  .banner-copy .banner-cta .btn-ghost { width: 100%; justify-content: center; }
}

/* ==========================================================================
   NAV DROPDOWN  (.nav-drop)  +  EDITORIAL TABS  (.etabs)
   --------------------------------------------------------------------------
   News, announcements and the journal are one destination in the menu and
   three tabs on the page. The trigger is a real link to the first section, so
   the group is reachable with the script unloaded and on touch, where hover
   never fires.
   ========================================================================== */

.nav-drop { position: relative; }

.nav-drop-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop-caret { transition: transform .18s var(--ease); }
.nav-drop:hover .nav-drop-caret,
.nav-drop:focus-within .nav-drop-caret { transform: rotate(180deg); }

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 60;
  display: grid;
  gap: 2px;
  min-width: 172px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  box-shadow: var(--sh-2);
  /* Hidden by clipping rather than display:none so the panel can animate and
     so its links keep their measured width for the caret alignment. */
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Bridges the 10px gap so the pointer can travel from trigger to panel
   without passing over dead space and closing it. */
.nav-drop-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.nav-drop-item {
  padding: 9px 12px;
  border-radius: var(--r-xxs);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
.nav-drop-item:hover { background: var(--surface); color: var(--ink); }
.nav-drop-item.is-active { background: var(--brand-soft); color: var(--ink); }

.drawer-group {
  margin: 14px 0 2px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.drawer-link--sub { padding-left: 12px; }

/* --- the tab strip -------------------------------------------------------- */

.etabs {
  border-bottom: 1px solid var(--line-4);
  background: var(--bg);
}
.etabs-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.etabs-inner::-webkit-scrollbar { display: none; }

.etab {
  position: relative;
  flex: none;
  padding: 16px 14px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-2);
  white-space: nowrap;
}
.etab:hover { color: var(--ink); }

/* The underline sits on the section's own border, so the active tab reads as
   attached to the page rather than floating above it. */
.etab.is-on { color: var(--ink); font-weight: 700; }
.etab.is-on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .nav-drop-panel,
  .nav-drop-caret { transition: none; }
}

/* ==========================================================================
   EDITORIAL CARDS  (.ntile)  —  /xeberler, /elanlar, /bloglar
   --------------------------------------------------------------------------
   Photo, then category, headline, standfirst, byline: one card per entry,
   read top to bottom. It lives in the shared sheet because all three listings
   use it — shipped inside pages/xeberler.css it left the other two completely
   unstyled, which is exactly how it was first caught.
   ========================================================================== */

.ntile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ntile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.ntile:hover,
.ntile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-5);
  box-shadow: var(--sh-2);
}

.ntile-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}
.ntile-img { width: 100%; height: 100%; object-fit: cover; }

.ntile-mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--muted-3);
}

/* Sits on the photo rather than above the headline: it labels the picture and
   keeps the text column to three elements. The design's own rule, restored
   with the label. */
.ntile-cat {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--brand);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

/* «Kateqoriyaya görə süzgəc» over the /xeberler and /bloglar grids. */
.ntile-cats { margin-bottom: 22px; }

.ntile-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 16px 15px;
}

.ntile-title {
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.017em;
  color: var(--ink);
  text-wrap: pretty;
}
.ntile:hover .ntile-title { color: var(--brand-dark); }

.ntile-text {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  /* Three lines keeps every card in a row the same height whatever the copy. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pushed to the foot so the byline sits on one line across the row even when
   one card has a standfirst and its neighbour does not. */
.ntile-dot { margin: 0 5px; }

/* The lead story now carries a picture, so the slab needs to clip it. */

@media (max-width: 1024px) {
  .ntile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 620px) {
  .ntile-grid { grid-template-columns: minmax(0, 1fr); }
  .ntile-shot { aspect-ratio: 2 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ntile:hover { transform: none; }
}

/* ==========================================================================
   ACCOUNT SETUP  (.qur-*)  —  /qurulus/<token>
   A one-screen page reached from a private link: a card, two fields, no
   navigation away from the task.
   ========================================================================== */

.qur-card {
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--sh-2);
}

.qur-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0 20px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.qur-meta > div { display: flex; justify-content: space-between; gap: 14px; }
.qur-meta dt {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.qur-meta dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

/* --muted, not --muted-2: #9AA3B2 was 2.54:1 on white, and these lines say
   how long the code lasts and where a lost letter went. */
.qur-note {
  margin: 18px 0 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 480px) {
  .qur-card { padding: 20px 16px; }
  .qur-meta > div { flex-direction: column; gap: 2px; }
  .qur-meta dd { text-align: left; }
}

/* ==========================================================================
   VACANCY CARD  (.vak-card)  —  parts/vaccard.php
   --------------------------------------------------------------------------
   Shared: the homepage, /vakansiyalar and an institution profile all render
   this partial. It used to live in vakansiyalar.css, which meant the card
   arrived unstyled on any page that did not load that file.
   ========================================================================== */

/* --- the card ------------------------------------------------------------- */
.vak-card {
  --vak-accent: var(--brand);
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  height: 100%;
  padding: 18px 18px 16px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.vak-card--info { --vak-accent: var(--info); }
.vak-card--ok   { --vak-accent: var(--ok); }
.vak-card--kg   { --vak-accent: var(--kg-text); }

.vak-card:hover,
.vak-card:focus-within {
  border-color: var(--line-5);
  box-shadow: var(--sh-2);
  transform: translateY(-4px);
}

/* the coloured spine — echoes the role colour of .vac-icon */
.vak-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--vak-accent);
  transition: width .2s var(--ease);
}
.vak-card:hover .vak-spine,
.vak-card:focus-within .vak-spine { width: 6px; }

/* --- head: role icon · contract chip · publish date ----------------------- */
.vak-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.vak-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
  text-align: right;
}

.vak-date {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

/* --- body: title · organisation · location ------------------------------- */
.vak-body { min-width: 0; }

.vak-card .vac-title { margin: 0; }

.vak-link {
  color: inherit;
  text-decoration: none;
}
/* whole-card hit area: the only link in the card */
.vak-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
}
.vak-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-xxs);
}

.vak-card .vac-org {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

/* the row layout hides .vac-loc below 560px; inside a card it is a full line */
.vak-card .vac-loc {
  display: flex;
  align-items: center;
  flex: none;
  gap: 7px;
  margin-top: 10px;
  color: var(--text-2);
}
.vak-card .vac-loc svg {
  flex: none;
  color: var(--muted-2);
}

/* --- foot: salary · CTA --------------------------------------------------- */
.vak-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--surface-3);
}

.vak-pay {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.vak-card .vac-salary { white-space: normal; }

.vak-per {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* visual button — the card link above supplies the actual navigation */
.vak-cta {
  flex: none;
  pointer-events: none;
}
.vak-cta svg { transition: transform .18s var(--ease); }

.vak-card:hover .vak-cta,
.vak-card:focus-within .vak-cta {
  border-color: var(--ink);
  color: var(--ink);
}
.vak-card:hover .vak-cta svg,
.vak-card:focus-within .vak-cta svg { transform: translateX(3px); }

@media (max-width: 560px) {
  .vak-card { padding: 16px 16px 14px 20px; }
  .vak-head-meta { gap: 5px; }
  .vak-foot { padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .vak-card,
  .vak-spine,
  .vak-cta svg { transition: none; }
}

/* ==========================================================================
   ACHIEVEMENTS NOTE  (.award)  —  institution profile
   --------------------------------------------------------------------------
   A medal, one sentence, and a way to step through the rest. Every sentence
   is in the markup; the script only hides the ones not showing, so the note
   still reads as a list with JavaScript off.
   ========================================================================== */

.award {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--line-4);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--brand-soft);
}

.award-ico { margin-top: 3px; color: var(--brand-dark); }
.award-ico svg { display: block; width: 18px; height: 18px; }

.award-list { margin: 0; min-width: 0; }
.award-item {
  display: block;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
}
/* Several lines with the script off: a list, not one run-on paragraph. */
.award-item + .award-item { margin-top: 6px; }

.award-nav { display: flex; align-items: center; gap: 12px; margin-top: 1px; }

/* Where you are: three dots beat the words "3 / 3", and each one is a way to
   get there directly. */
.award-dots { display: flex; align-items: center; gap: 5px; }
.award-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(176, 137, 31, .28);
  cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.award-dot:hover { background: rgba(176, 137, 31, .55); }
.award-dot.is-on { background: var(--brand-deep); transform: scale(1.28); }
.award-dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Moving: one control, not two loose boxes — they share a border and a hairline
   divider, the way a stepper reads. */
.award-arrows {
  display: flex;
  border: 1px solid #EADFB6;
  border-radius: var(--r-xs);
  background: var(--bg);
  overflow: hidden;
}
.award-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.award-btn + .award-btn { border-left: 1px solid #EADFB6; }
.award-btn svg { display: block; width: 14px; height: 14px; }
.award-btn:hover { background: var(--brand); }
.award-btn:active { background: var(--brand-deep); }
.award-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  .award-dot { transition: none; }
}

@media (max-width: 560px) {
  .award { grid-template-columns: 20px minmax(0, 1fr); gap: 10px 12px; padding: 14px 16px; }
  .award-nav { grid-column: 2; justify-content: flex-end; }
}

/* ==========================================================================
   FEED CARD  (.mgrid / .mcard)  —  institution profile
   --------------------------------------------------------------------------
   One module carries the openings, the notices and the news, so one card has
   to serve all three: picture on top, words underneath, white ground like
   every other card on the site. A vacancy has no photograph, so its slot
   carries the type mark instead — the shape never changes down the row, only
   what is in the frame.

   The kind is told by the chip, not by the card's colour: three tinted
   backgrounds in one grid read as three unrelated components.
   ========================================================================== */

.mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  /* Every row the height of the tallest card in the whole grid, not just its
     own row — a fixed min-height cannot do that, because one long title makes
     one card taller than the number we guessed. */
  grid-auto-rows: 1fr;
  gap: 16px;
}

.mcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease),
              transform .16s var(--ease);
}
.mcard:hover {
  border-color: var(--line-5);
  box-shadow: 0 14px 28px -20px rgba(15, 20, 32, .55);
  transform: translateY(-2px);
}
.mcard:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* --- the frame ------------------------------------------------------------ */

.mcard-shot {
  flex: none;
  width: 100%;
  height: 132px;
  object-fit: cover;
  background: var(--surface-2);
}
.mcard-shot--none {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line-4);
}
.mcard-shot--none svg { width: 34px; height: 34px; }

/* --- the words ------------------------------------------------------------ */

.mcard-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}

.mcard-top { display: flex; align-items: center; gap: 7px; }

.mcard-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: var(--r-xxs);
}
.mcard-ico svg { display: block; width: 13px; height: 13px; }

.mcard-kind {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mcard-title {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
  /* Three lines is a title; more is a paragraph that broke out of its card. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcard-place {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}
.mcard-place svg { flex: none; width: 13px; height: 13px; color: var(--muted-2); }

/* Pinned to the bottom so the figures line up across the row even when one
   title runs to three lines and its neighbour to one. */
.mcard-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }

.mcard-fact {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.mcard-meta {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

/* --- the three kinds, told by the chip alone ------------------------------ */

.mcard--vakansiya .mcard-ico  { background: var(--brand); color: var(--ink); }
.mcard--vakansiya .mcard-kind { color: var(--brand-dark); }
.mcard--vakansiya .mcard-shot--none { background: var(--brand-soft); color: var(--brand-dark); }

.mcard--elan .mcard-ico  { background: var(--kg); color: var(--kg-ink); }
.mcard--elan .mcard-kind { color: var(--kg-text); }
.mcard--elan .mcard-shot--none { background: var(--kg-3); color: var(--kg-text); }

.mcard--xeber .mcard-ico  { background: #CFE0F8; color: var(--info); }
.mcard--xeber .mcard-kind { color: var(--info); }
.mcard--xeber .mcard-shot--none { background: var(--info-bg); color: var(--info); }

@media (max-width: 560px) {
  .mgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mcard-shot { height: 150px; }
  .mcard-body { padding: 13px 15px 15px; }
}


/* ==========================================================================
   14  iOS PRESS AND MATERIAL
   --------------------------------------------------------------------------
   The last of the Apple traits that are not a token. Colours are deliberately
   absent from this block — the brief was the shape of things, not their hue.
   ========================================================================== */

/* Every control answers a press by shrinking slightly and coming back on the
   system curve. It is the single strongest iOS tell after corner radius, and
   it costs one transform. */
.btn-brand,
.btn-ghost,
.btn-dark,
.btn-pill,
.chip,
.tab {
  transition: transform .24s var(--ease),
              background-color .18s var(--ease),
              border-color .18s var(--ease),
              color .18s var(--ease);
}
.btn-brand:active,
.btn-ghost:active,
.btn-dark:active,
.btn-pill:active,
.chip:active {
  transform: scale(.96);
}
/* .btn-brand already nudged itself down 1px on press; the scale replaces it,
   and the two together read as a wobble. */
.btn-brand:active { transform: scale(.96); }

/* A tab is a target, not a button, so it takes the softer half of the same
   idea: a rounded tint under the cursor the way an iOS bar item does. */
.tab {
  border-radius: var(--r-ctl) var(--r-ctl) 0 0;
}
.tab:hover { background: var(--surface-2); }

/* Cards that already lift on hover now lift on the system curve and land
   without the drop shadow darkening — the movement carries it. */
@media (hover: hover) {
  .mcard:hover,
  .story:hover { transform: translateY(-3px); }
}

/* Apple never draws a box around a field that is already sitting on a tinted
   ground; the ground is the affordance. Kept as a hairline here because the
   palette is fixed, but softened to the same weight as a list separator. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-brand:active,
  .btn-ghost:active,
  .btn-dark:active,
  .btn-pill:active,
  .chip:active { transform: none; }
}


/* Without backdrop-filter there is no glass, only a transparent bar with the
   page legible straight through it. Every surface above goes opaque. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, .97); }
  .compare-bar,
  .toast { background: var(--ink); }
  .modal-backdrop,
  .drawer-backdrop { background: rgba(15, 20, 32, .6); }
}

/* A blur is a compositing cost on every scrolled frame. Where the reader has
   asked for less motion, spend it on none of them. */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .compare-bar,
  .toast,
  .modal-backdrop,
  .drawer-backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header { background: rgba(255, 255, 255, .97); }
  .compare-bar,
  .toast { background: var(--ink); }
  .modal-backdrop,
  .drawer-backdrop { background: rgba(15, 20, 32, .6); }
}

/* --- the discount flag ------------------------------------------------------
   It used to sit on the photograph, where it needed its own gradient to stay
   readable and had nothing to do with the picture. It belongs beside the
   price: that is the question it answers. Rose is the tone the profile gives
   «Endirim və güzəştlər», carried by the mark; the words stay ink, because
   rose on rose measures 4.3:1 and this text is 11px. */
.ecard-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  background: var(--danger-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .69rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}
.ecard-flag svg { flex: none; color: var(--danger); }

/* The list row's side is already a centred flex row, so the flag only has to
   drop the auto margin the card needs — the row aligns it. */
.ecard-flag--row { margin: 0; }
