:root {
  --ink: #1b1e24;
  --ink-2: #292e37;
  --muted: #626873;
  --paper: #f4f5f7;
  --paper-light: #ffffff;
  --paper-deep: #e9ecf0;
  --line: #d6dae0;
  --line-dark: #454b55;
  --brand: #b3263a;
  --brand-dark: #8e1c2d;
  /* Brand red is too dark to read on the ink surfaces — use this one there. */
  --brand-soft: #ec6b7c; /* 4.7:1 on the pulse panel, 5.5:1 on the footer */
  --gold: #a77b36;
  --white: #ffffff;
  --focus: #155eef;
  /* Self-hosted (assets/fonts): Inter for the interface, Literata for
     headlines and reading — both with full Cyrillic — and Noto for Armenian. */
  --font-sans: Inter, "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-editorial: Literata, "Noto Serif Armenian", Georgia, "Times New Roman", serif;
  --shell: min(1360px, calc(100vw - 56px));
  --app-nav-height: 70px;
  --ease: 200ms cubic-bezier(.2,.8,.2,1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input { font: inherit; }
button, [role="button"] { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-160%);
  background: #20242b;
  color: var(--white);
}

.skip-link:focus { transform: none; }
.site-shell { width: var(--shell); margin-inline: auto; }

/* Live news wire */
.news-wire {
  min-height: 36px;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}

.news-wire__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 36px;
}

.news-wire__label {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding-right: 20px;
  color: #fff;
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.news-wire__label span {
  width: 7px;
  height: 7px;
  background: #e72c3d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(231 44 61 / 16%);
}

.news-wire__items {
  display: flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  border-left: 1px solid var(--line-dark);
}

.news-wire__items a {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-right: 1px solid var(--line-dark);
  font-size: .74rem;
  text-decoration: none;
  white-space: nowrap;
}

.news-wire__items a:hover span { text-decoration: underline; }
.news-wire__items time { color: #dc9ea6; font-variant-numeric: tabular-nums; }
.news-wire__items span { overflow: hidden; text-overflow: ellipsis; }

/* Masthead */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--paper-light);
  border-bottom: 1px solid var(--ink);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 126px;
}

.masthead__edition {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.masthead__edition span { color: var(--muted); }
.masthead__edition strong { font-weight: 800; }
.masthead__menu { display: none !important; }

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  color: var(--ink);
  text-decoration: none;
}

.brand__overline {
  margin-bottom: 2px;
  color: var(--brand);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .48em;
  text-indent: .48em;
}

.brand__name {
  font-family: var(--font-editorial);
  font-size: clamp(2.7rem, 4.4vw, 4.25rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.035em;
}

.brand__name > span,
.brand--footer > span { color: var(--brand); }

.brand__tagline {
  margin-top: 10px;
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.masthead__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.app-nav button {
  display: inline-grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  transition: background-color var(--ease), color var(--ease);
}

.icon-button:hover { background: var(--ink); color: var(--white); }
.icon { width: 21px; height: 21px; }



.desktop-nav { border-top: 1px solid var(--ink); }
.desktop-nav .site-shell { display: flex; align-items: stretch; }
.desktop-nav__mark {
  display: grid;
  width: 54px;
  flex: 0 0 54px;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-editorial);
  font-size: 1.45rem;
  font-weight: 700;
}

/* On Russian pages the only Armenian letters are the "Հայերեն" switch and
   the "Ա" mark; drawn with the system's own Armenian so that 60 KB of Noto
   is fetched only on Armenian pages, which need it for the text. */
html:not([lang^="hy"]) .desktop-nav__mark,
html:not([lang^="hy"]) .editorial-statement__mark,
html:not([lang^="hy"]) .language-switch [lang="hy"] { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.menu { list-style: none; margin: 0; padding: 0; }
/* The old site's section tree (wp yerkramas terms nav): fourteen sections,
   each opening its subsections on hover or keyboard focus. Long lists
   (Общество has thirty) take columns. The row never wraps: the sections
   that do not fit go under «Ещё» (app.js); without scripts it wraps. */
.menu--primary {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  align-items: stretch;
}

.js .menu--primary { flex-wrap: nowrap; overflow: hidden; }
.js .menu--primary.is-fitted { overflow: visible; }
.menu--primary > li[hidden] { display: none; }
.menu--primary > li { position: relative; border-right: 1px solid var(--line); }
.menu--primary a,
.menu-item--more > button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 0 clamp(10px, .9vw, 13px); /* the row is at most 1 360 px wide: wider padding on wide screens only pushed sections under «Ещё» */
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--ease), background-color var(--ease);
}

.menu-item--more > button { border: 0; background: transparent; color: var(--ink); font-family: var(--font-sans); }
.menu-item--more > button:hover,
.menu-item--more:focus-within > button,
.menu-item--more.is-open > button,
.menu-item--more.is-current > button { background: var(--ink); color: var(--white); }
.menu--primary li.is-open > .sub-menu { display: block; }

.menu--primary > .menu-item-has-children > a::after,
.menu-item--more > button::after {
  width: 5px;
  height: 5px;
  margin: -3px 0 0 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.menu--primary a:hover,
.menu--primary li:focus-within > a,
.menu--primary .current-menu-item > a,
.menu--primary .current-cat > a { background: var(--ink); color: var(--white); }

.menu--primary .sub-menu {
  position: absolute;
  z-index: 60;
  top: 100%;
  left: -1px;
  display: none;
  width: 260px;
  margin: 0;
  padding: 6px 0;
  border: 1px solid var(--ink);
  background: var(--white);
  list-style: none;
}

.menu--primary li:hover > .sub-menu,
.menu--primary li:focus-within > .sub-menu { display: block; }
.menu--primary .sub-menu li { break-inside: avoid; }
.menu--primary .sub-menu a {
  display: flex;
  min-height: 44px;
  padding: 8px 18px;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  white-space: normal;
}

.menu--primary li:has(> .sub-menu > li:nth-child(10)) > .sub-menu { width: 500px; column-count: 2; column-gap: 0; }
.menu--primary li:has(> .sub-menu > li:nth-child(18)) > .sub-menu { width: 720px; column-count: 3; }
/* app.js shifts a list that would cross the viewport edge back inside. */
.menu--primary .sub-menu { max-width: calc(100vw - 24px); }

.language-switch { display: flex; gap: 12px; margin-top: 4px; }
.language-switch a { color: var(--muted); font-weight: 700; text-decoration: none; }
.language-switch a[aria-current] { color: var(--brand); }
.language-switch a:hover { color: var(--ink); }

/* Language menu, top right of the header: the edition's flag and name,
   both editions in a list on click (app.js). */
.lang-menu { position: relative; }
.lang-menu__toggle {
  display: inline-flex;
  height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color var(--ease);
}

.lang-menu__toggle:hover,
.lang-menu__toggle[aria-expanded="true"] { border-color: var(--ink); }
.flag { display: block; width: 22px; height: 15px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 16%); }
.lang-menu__caret { width: 6px; height: 6px; margin: -3px 0 0 1px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--ease), margin var(--ease); }
.lang-menu__toggle[aria-expanded="true"] .lang-menu__caret { margin-top: 3px; transform: rotate(-135deg); }
.lang-menu__list {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  margin: 0;
  padding: 6px 0;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 0 16px 36px rgb(0 0 0 / 14%);
  list-style: none;
}

.lang-menu__list[hidden] { display: none; }
.lang-menu__list a { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 0 18px; color: var(--ink); font-size: .92rem; font-weight: 650; text-decoration: none; }
.lang-menu__list a:hover, .lang-menu__list a:focus-visible { background: var(--paper-deep); }
.lang-menu__list a[aria-current] { color: var(--brand); }
.lang-menu__list a[aria-current]::after { width: 9px; height: 5px; margin: -3px 0 0 auto; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; content: ""; transform: rotate(-45deg); }
html:not([lang^="hy"]) .lang-menu [lang="hy"] { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Search: a panel over the page at the top of the screen, the page dimmed
   behind it. */
.search-backdrop { position: fixed; z-index: 105; inset: 0; background: rgb(15 18 23 / 55%); }
.search-panel {
  position: fixed;
  z-index: 110;
  top: 0;
  right: 0;
  left: 0;
  padding: 28px 0;
  border-bottom: 3px solid var(--brand);
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 20px 50px rgb(0 0 0 / 22%);
}

.search-panel:not([hidden]) { animation: yk-drop 180ms cubic-bezier(.2,.8,.2,1); }
@keyframes yk-drop { from { opacity: 0; transform: translateY(-14px); } }
.search-panel[hidden], .search-backdrop[hidden], .drawer-backdrop[hidden] { display: none; }
.search-panel__inner { display: flex; align-items: center; gap: 12px; }
.search-panel .search-form { flex: 1; min-width: 0; }
.search-panel .search-field { min-height: 56px; padding: 12px 16px; border-width: 2px; font-size: 1.1rem; }
.search-panel .search-submit { min-height: 56px; padding: 0 28px; }
.search-panel__close { width: 56px; min-width: 56px; height: 56px; border-color: transparent; }
.search-form { display: flex; width: 100%; gap: 0; }
.search-form label { flex: 1; }

.search-field {
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink);
}

.search-submit,
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color var(--ease), color var(--ease);
}

.search-submit:hover,
.button:hover { background: var(--brand); }

.mobile-drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(420px, 91vw);
  overflow-y: auto;
  padding: 0 24px 28px;
  transform: translateX(-105%);
  background: var(--ink);
  color: var(--white);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}

.mobile-drawer.is-open { transform: translateX(0); }
.drawer-backdrop { position: fixed; z-index: 90; inset: 0; background: rgb(0 0 0 / 62%); }
.mobile-drawer__header {
  display: flex;
  min-height: 106px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-drawer__header div { display: flex; flex-direction: column; }
.mobile-drawer__header small { color: #c88c94; letter-spacing: .25em; }
.mobile-drawer__header strong { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 700; }
.mobile-drawer .icon-button { border-color: var(--line-dark); color: #fff; }
.menu--drawer a {
  display: flex;
  min-height: 52px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.menu--drawer a::after { content: "→"; margin-left: auto; color: var(--brand); font-family: var(--font-sans); }
/* Sections with subsections: the link goes to the section, the chevron
   button beside it opens the list (app.js adds it). */
.menu--drawer .menu-item-has-children { display: flex; flex-wrap: wrap; }
.menu--drawer .menu-item-has-children > a { flex: 1; min-width: 0; }
.menu--drawer .menu-item-has-children > a::after { content: none; }
.submenu-toggle {
  display: grid;
  width: 52px;
  min-height: 52px;
  place-items: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: var(--brand);
}

.submenu-toggle::before {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform var(--ease);
}

.menu-item.is-open > .submenu-toggle::before { margin-top: 4px; transform: rotate(-135deg); }
.menu--drawer .sub-menu { display: none; flex-basis: 100%; margin: 0; padding: 0 0 6px 16px; list-style: none; }
.menu--drawer .is-open > .sub-menu { display: block; }
.menu--drawer .sub-menu a { min-height: 46px; font-size: .95rem; font-weight: 500; }
.language-switch--drawer { gap: 22px; margin-top: 18px; }
.language-switch--drawer a { display: flex; min-height: 44px; align-items: center; color: #c7bebb; font-size: .9rem; }
.language-switch--drawer a[aria-current] { color: #fff; }
.mobile-drawer__footer { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.mobile-drawer__footer a { display: flex; min-height: 44px; align-items: center; }
.mobile-drawer__footer a { color: #c7bebb; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Front page */
.site-main { min-height: 60vh; }
.home-shell { padding: 0 0 80px; }
.front-page { padding-top: 40px; }
.front-page__header {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  align-items: end;
  gap: 36px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--ink);
}

.issue-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.issue-kicker::before,
.eyebrow::before { content: ""; flex: none; width: 20px; height: 2px; margin-right: 9px; background: currentColor; }
/* A rubric or a headline with a word longer than a phone's column —
   "ՆՈՐՈՒԹՅՈՒՆՆԵՐ/NEWS", a pasted address — breaks instead of pushing the
   page sideways or losing its end under a clamped card title. */
.eyebrow { max-width: 100%; overflow-wrap: anywhere; }
h1, h2, h3, .side-story__title, .home-section__link { overflow-wrap: break-word; }

/* The whole card is the link to its article: on a touch screen the
   headline's line alone was a small target. The rubric keeps its own link,
   on top. */
.news-card, .related-card, .side-story, .home-section__item, .pulse-item { position: relative; }
.news-card__title a::after, .related-card__title a::after, a.side-story__title::after, .home-section__link::after, .pulse-item h2 a::after { content: ""; position: absolute; inset: 0; }
.news-card .eyebrow, .related-card .eyebrow { position: relative; z-index: 1; }

/* Small links get a 24 px tall hit area (WCAG 2.5.8) without moving the
   layout: padding for the finger, the same negative margin for the box. */
a.eyebrow, .news-wire__items a { padding-block: 4px; margin-block: -4px; }
.side-block__title a { display: inline-block; padding-block: 6px; margin-block: -6px; }
.side-newsline a, .home-section__link { padding-block: 3px; }
.front-page__header h1 {
  margin: 5px 0 -8px;
  font-family: var(--font-editorial);
  font-size: clamp(2.5rem, 4vw, 3.9rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.04em;
}

.front-page__header p { max-width: 420px; margin: 0 0 2px auto; color: var(--muted); font-family: var(--font-sans); font-size: .98rem; line-height: 1.55; }
.front-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.lead-story { grid-column: span 8; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
.lead-story__media { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 8.8; overflow: hidden; background: var(--paper-deep); }
.lead-story__media img, .news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms cubic-bezier(.2,.8,.2,1); }
.lead-story:hover .lead-story__media img, .news-card:hover .news-card__media img { transform: scale(1.025); }
.lead-story__content { grid-column: 1 / -1; position: relative; padding: 24px 34px 28px 24px; background: var(--paper-light); }
.lead-story__content::after { content: "01"; position: absolute; right: 24px; top: 24px; color: var(--line); font-family: var(--font-editorial); font-size: 1.8rem; font-weight: 700; }
.lead-story h2 { max-width: 900px; margin: 9px 52px 12px 0; font-family: var(--font-editorial); font-size: clamp(1.85rem, 2.8vw, 2.95rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.lead-story h2 a, .news-card__title a, .pulse-item h2 a { text-decoration: none; }
.lead-story h2 a:hover, .news-card__title a:hover, .pulse-item h2 a:hover { color: var(--brand); }
.lead-story__excerpt { display: -webkit-box; max-width: 760px; overflow: hidden; color: var(--muted); font-family: var(--font-sans); font-size: .96rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.lead-story__excerpt p, .news-card__excerpt p { margin: 0; }

.news-card__meta,
.article__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; color: var(--muted); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.pulse-panel { grid-column: span 4; display: flex; flex-direction: column; background: #272b33; color: #f7f8fa; }
.pulse-panel > header { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 26px 20px; border-bottom: 1px solid var(--line-dark); }
.pulse-panel > header span { color: #d49aa1; font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pulse-panel > header strong { font-family: var(--font-editorial); font-size: 1.75rem; font-weight: 700; }
.pulse-panel__list { flex: 1; padding: 0 26px; }
.pulse-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.pulse-item__number { color: var(--brand-soft); font-family: var(--font-editorial); font-size: 1.1rem; }
.pulse-item time { display: block; margin-bottom: 5px; color: #b9bec7; font-size: .6875rem; letter-spacing: .08em; }
.pulse-item h2 { display: -webkit-box; margin: 0; overflow: hidden; font-family: var(--font-sans); font-size: clamp(.92rem, 1vw, 1.02rem); font-weight: 650; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.pulse-panel__more { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 0 26px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.pulse-panel__more:hover { background: var(--brand-dark); }

.front-secondary { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--paper-light); border-bottom: 1px solid var(--line); }
.news-card { position: relative; }
.news-card__media { display: block; min-width: 0; }
/* Cards under the lead story: picture and text side by side, each card in
   its own margins and rules, so the pictures of neighbouring cards never
   touch. The picture keeps 4:3 whatever the headline's length (it used to
   stretch to the text's height), and long headlines are clamped, so a row
   runs level with no hole beside a shorter card. */
.news-card--feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(16px, 1.6vw, 24px); align-items: start; padding: clamp(18px, 1.8vw, 26px); }
.front-secondary > .news-card--feature:nth-child(2n) { border-left: 1px solid var(--ink); }
.front-secondary > .news-card--feature:nth-child(n+3) { border-top: 1px solid var(--line); }
.news-card--feature .news-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-deep); }
.news-card--feature .news-card__body { display: flex; min-width: 0; flex-direction: column; }
.news-card--feature .news-card__title { display: -webkit-box; overflow: hidden; font-size: clamp(1.08rem, 1.35vw, 1.4rem); -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.news-card--feature .news-card__excerpt { -webkit-line-clamp: 3; }
.news-card__title { margin: 8px 0 0; font-family: var(--font-sans); font-size: clamp(1.18rem, 1.5vw, 1.6rem); font-weight: 700; line-height: 1.28; letter-spacing: -.01em; }
.news-card__excerpt { display: -webkit-box; margin-top: 12px; overflow: hidden; color: var(--muted); font-family: var(--font-sans); font-size: .94rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }

/* Section and story grid */
.latest-section { padding-top: 64px; }
.section-heading--editorial { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; padding-bottom: 18px; border-bottom: 3px solid var(--ink); }
.section-heading__index { color: var(--brand); font-family: var(--font-editorial); font-size: 1.1rem; font-weight: 800; }
.section-heading h1, .section-heading h2 { margin: 0; font-family: var(--font-editorial); font-size: clamp(2rem, 3vw, 3.1rem); font-weight: 700; line-height: 1.06; letter-spacing: -.025em; }
.section-heading__link { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.section-heading__link:hover { color: var(--brand); }
.section-heading__link .icon { width: 18px; }

.news-grid--editorial { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper-light); border-bottom: 1px solid var(--line); }
.news-card--standard, .news-card--wide { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-card--standard:nth-child(3n), .news-card--wide:nth-child(3n) { border-right-color: transparent; }
.news-card--standard .news-card__media, .news-card--wide .news-card__media { display: block; aspect-ratio: 16 / 9; margin-bottom: 18px; overflow: hidden; background: var(--paper-deep); }
.news-card--standard .news-card__title { font-size: clamp(1.08rem, 1.25vw, 1.3rem); line-height: 1.35; }
.news-card--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 28px; overflow: hidden; }
/* `aspect-ratio` here would fight the stretched row height and derive a width
   far wider than the column, sliding the image under the copy. Let the column
   set the width and the row set the height. */
.news-card--wide .news-card__media { width: 100%; min-width: 0; min-height: 240px; margin: 0; aspect-ratio: auto; }
.news-card--wide .news-card__body { min-width: 0; align-self: center; }
.news-card--wide .news-card__title { font-size: clamp(1.45rem, 1.85vw, 1.95rem); line-height: 1.24; }
.news-card__index { display: block; margin-bottom: 9px; color: var(--line); font-family: var(--font-editorial); font-size: 1rem; font-weight: 800; }
/* Text-only cards: no media slot to reserve, so the copy takes the full width. */
.news-card--textonly { display: block; }
.news-card--textonly .news-card__body { padding-inline: 0; }
.news-card--feature.news-card--textonly .news-card__body { padding: 0; }
.news-card--feature.news-card--textonly .news-card__excerpt { -webkit-line-clamp: 5; }
.news-card--textonly .news-card__excerpt { -webkit-line-clamp: 3; }

.media-placeholder { display: grid; width: 100%; height: 100%; min-height: 180px; place-items: center; background: var(--paper-deep); color: var(--brand); }
.media-placeholder span { font-family: var(--font-editorial); font-size: 4rem; font-weight: 900; }

.editorial-statement { margin-top: 64px; background: var(--paper-light); color: var(--ink); border-top: 4px solid var(--brand); border-bottom: 1px solid var(--line); }
.editorial-statement__inner { display: grid; grid-template-columns: auto minmax(0, 1.6fr) minmax(260px, .8fr); align-items: center; gap: 42px; min-height: 280px; padding-block: 48px; }
.editorial-statement__mark { display: grid; width: 96px; height: 96px; place-items: center; background: var(--paper-deep); color: var(--brand); border: 1px solid var(--line); font-family: var(--font-editorial); font-size: 3.2rem; }
.editorial-statement .eyebrow { color: var(--brand); }
.editorial-statement h2 { max-width: 770px; margin: 9px 0 0; font-family: var(--font-editorial); font-size: clamp(1.8rem, 2.5vw, 2.7rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.editorial-statement p { margin: 0; color: var(--muted); font-family: var(--font-sans); font-size: .98rem; line-height: 1.6; }

.support-banner { display: grid; grid-template-columns: .45fr 1.7fr auto; align-items: center; gap: 42px; margin-top: 32px; padding: 36px; background: var(--paper-deep); color: var(--ink); border: 1px solid var(--line); }
.support-banner__label { align-self: stretch; padding-right: 24px; border-right: 1px solid var(--line); color: var(--muted); font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.support-banner h2 { max-width: 830px; margin: 8px 0 0; font-family: var(--font-editorial); font-size: clamp(1.6rem, 2.1vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
.button--light { border-color: var(--brand); background: var(--brand); color: #fff; }
.button--light:hover { border-color: var(--brand-dark); background: var(--brand-dark); color: #fff; }

/* Archives and article */
.archive-shell, .single-shell { padding: 64px 0 96px; }
.archive-header { max-width: 980px; margin-bottom: 44px; padding-bottom: 26px; border-bottom: 4px solid var(--ink); }
.archive-header h1, .article__header h1 { margin: 8px 0 0; font-family: var(--font-editorial); font-size: clamp(2.25rem, 3.5vw, 3.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.archive-description { max-width: 760px; color: var(--muted); font-family: var(--font-editorial); font-size: 1.15rem; }
.search-header .search-form { max-width: 720px; margin-top: 24px; }
.search-header__count { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.archive-shell > .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive-shell .news-card { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.archive-shell .news-card__media { display: block; aspect-ratio: 16 / 9; margin-bottom: 18px; overflow: hidden; }
.article { border-top: 4px solid var(--ink); }
.article__header { max-width: 1120px; padding: 34px 0 36px; }
.article__lead { max-width: 820px; margin-top: 20px; color: var(--muted); font-family: var(--font-sans); font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.62; }
.article__lead p { margin: 0; }
.article__byline { padding-top: 18px; border-top: 1px solid var(--line); }
.article__byline > :first-child { color: var(--ink); font-weight: 900; }
.article__main { min-width: 0; }
.article__hero { margin: 0 0 32px; }
.article__hero img { width: 100%; max-height: 760px; object-fit: cover; }
/* A picture the old site only kept small is shown at its own size, not
   blown up to the full width of the page. */
.article__hero--natural img { width: auto; max-width: 100%; height: auto; }
.article__hero figcaption { padding-top: 9px; color: var(--muted); font-size: .74rem; }
/* The editors' appeal under every article (Customize → «Поддержка редакции»). */
.support-note { margin-top: 36px; padding: 22px 24px; border-top: 4px solid var(--brand); background: var(--paper-deep); font-family: var(--font-sans); font-size: .95rem; line-height: 1.6; }
.support-note p { margin: 0 0 10px; }
.support-note p:last-child { margin-bottom: 0; }
.support-note a { color: var(--brand); }
/* Home: the section blocks of the old home page, each heading linking its /block/ listing. */
.home-sections { margin-top: 64px; }
.home-sections__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.home-section { min-width: 0; border-top: 4px solid var(--ink); }
.home-section__title { margin: 0; }
.home-section__title a { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-family: var(--font-sans); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.home-section__title a:hover { color: var(--brand); }
.home-section__title .icon { width: 18px; color: var(--brand); }
.home-section__list { margin: 0; padding: 0; list-style: none; }
.home-section__item { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.home-section__media { display: block; aspect-ratio: 16 / 9; margin-bottom: 6px; overflow: hidden; }
.home-section__media img { width: 100%; height: 100%; object-fit: cover; }
.home-section__link { color: var(--ink); font-family: var(--font-sans); font-size: .98rem; font-weight: 650; line-height: 1.35; text-decoration: none; }
.home-section__item--lead .home-section__link { font-family: var(--font-editorial); font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.home-section__link:hover { color: var(--brand); }
.home-section__item time { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* Under listings: headline lists side by side, level, as many columns as blocks. */
.home-sections--compact .home-sections__grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.home-sections--compact .home-section__item--lead .home-section__link { font-family: var(--font-sans); font-size: .98rem; font-weight: 650; line-height: 1.35; }

/* Ad, counter and banner slots carried over from the old site (inc/ad-slots.php). */
.ad-slot { max-width: 100%; margin: 28px 0; }
.ad-slot img { max-width: 100%; height: auto; }
.ad-slot--anniversary { margin: 0 0 28px; }
.ad-slot--footer { display: flex; justify-content: center; margin: 0; padding: 12px 0 18px; }
.ad-rail:empty { display: none; }
.ad-rail { display: flow-root; margin-top: 32px; }
.article__sidebar .ad-slot { margin: 28px 0 0; }
.ad-slot--preview { display: grid; min-height: 90px; place-items: center; padding: 16px; border: 2px dashed var(--brand); color: var(--brand); font-family: var(--font-sans); font-size: .8rem; font-weight: 700; text-align: center; }
/* Photo galleries the old site attached under six articles. */
.entry-content .legacy-gallery { margin: 32px 0; }
.entry-content .legacy-gallery ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.entry-content .legacy-gallery li { margin: 0; padding: 0; }
.entry-content .legacy-gallery li::before { content: none; }
.entry-content .legacy-gallery a { display: block; }
.entry-content .legacy-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0; object-fit: cover; }
.entry-content .legacy-gallery figcaption { margin-top: 10px; color: var(--muted); font-family: var(--font-sans); font-size: .85rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 780px) clamp(260px, 26vw, 340px); gap: clamp(40px, 6vw, 96px); align-items: start; justify-content: space-between; }
.entry-content { font-family: var(--font-editorial); font-size: clamp(1.04rem, 1.15vw, 1.15rem); line-height: 1.78; text-align: start; }
.entry-content > :first-child { margin-top: 0; }
/* Safety net for legacy inline `text-align: justify` the content filter misses:
   full justification opens rivers of whitespace in a narrow column. */
.entry-content [style*="text-align: justify"],
.entry-content [style*="text-align:justify"] { text-align: start !important; }
.entry-content.has-dropcap > p:first-of-type::first-letter { float: left; margin: .05em .1em 0 0; color: var(--brand); font-family: var(--font-editorial); font-size: 4.3em; font-weight: 900; line-height: .72; }
.entry-content h2, .entry-content h3 { margin-top: 2em; font-family: var(--font-editorial); line-height: 1.1; }
/* A long word — «МЕЖОРГАНИЗАЦИОННЫЕ» in a capitalised heading, a pasted
   URL — must not widen the column past a phone screen. */
.entry-content { overflow-wrap: break-word; }
.entry-content h2, .entry-content h3, .entry-content h4 { hyphens: auto; }
.entry-content a { color: var(--brand); }
.entry-content blockquote { margin: 2em 0; padding: 8px 0 8px 28px; border-left: 5px solid var(--brand); font-size: 1.4em; line-height: 1.35; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
/* Players carried over with the articles keep the old fixed sizes; video
   hosts fill the column at 16:9 instead, the rest just stay inside it. */
.entry-content iframe { display: block; max-width: 100%; margin: 2em auto; border: 0; }
.entry-content iframe:is([src*="youtube.com/embed"], [src*="youtube-nocookie.com"], [src*="rutube.ru"], [src*="dailymotion.com"], [src*="vk.com/video_ext"], [src*="vkvideo.ru"], [src*="dzen.ru"], [src*="ok.ru/videoembed"]) { width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* Ad units the old texts carried, printed in their place (inc/ad-slots.php). */
.entry-content .ad-slot--inline { display: flex; justify-content: center; margin: 2em 0; overflow: hidden; font-size: 1rem; line-height: normal; }
.entry-content .telegram-post { max-width: 560px; margin: 2em auto; padding: 0; border: 0; font-family: var(--font-sans); font-size: 1rem; }
.entry-content .telegram-post:has(iframe) > p { display: none; }
/* Article sidebar — one surface divided by rules, per the design system:
   zero radius, no shadows, hierarchy from spacing and rules. It starts level
   with the picture and scrolls with the article until its last block shows,
   then stays; app.js moves its top so that, taller than the screen, none of
   it is out of reach (held at the top, Часто читают and the ad slot were). */
.article__sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  background: var(--paper-light);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
}

.share-card, .side-block, .sidebar-extra > * { display: block; padding: 20px; }
.side-block, .sidebar-extra > * { border-top: 1px solid var(--line); }

.share-card__title, .side-block__title, .sidebar-extra h2, .sidebar-extra h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.share-card__title::before, .side-block__title::before, .sidebar-extra h2::before, .sidebar-extra h3::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand);
}

/* Share: the services in their own colours, then copy and save as icons —
   one row. */
.share-card__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform var(--ease), filter var(--ease), border-color var(--ease), color var(--ease);
}

.share-button .icon { width: 22px; height: 22px; }
.share-button:hover { transform: translateY(-2px); filter: brightness(1.07); }
.share-button--telegram { background: #229ed9; }
.share-button--vk { background: #0077ff; }
.share-button--whatsapp { background: #25d366; }
.share-button--copy { margin-left: auto; }
.share-button--copy,
.share-button--save { border: 1.5px solid var(--line); background: var(--paper-light); color: var(--ink); }
.share-button--copy:hover,
.share-button--save:hover { border-color: var(--ink); filter: none; }
.share-button--copy .icon + .icon { display: none; }
.share-button--copy.is-copied { border-color: #1a7f37; color: #1a7f37; }
.share-button--copy.is-copied .icon:first-child { display: none; }
.share-button--copy.is-copied .icon + .icon { display: block; }
.share-button--save[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); }
.share-button--save[aria-pressed="true"] .icon { fill: currentColor; }
/* The reader's saved articles (/saved/). */
.saved-list { max-width: 820px; margin-bottom: 64px; }
.saved-list ul { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.saved-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.saved-item a { color: var(--ink); font-family: var(--font-editorial); font-size: 1.2rem; font-weight: 700; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.saved-item a:hover { color: var(--brand); }
.saved-item__date { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.saved-item button { min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.saved-item button:hover { background: var(--ink); color: var(--white); }

.side-block__list { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.side-story { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 13px; padding: 11px 0; }
.side-story + .side-story { border-top: 1px solid var(--line); }
/* The old article pages' news line (block #149): time and headline, linking its block. */
.side-block__title a { color: inherit; text-decoration: none; }
.side-block__title a:hover { color: var(--brand); }
.side-newsline { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.side-newsline + .side-newsline { border-top: 1px solid var(--line); }
.side-newsline time { padding-top: 2px; color: var(--brand); font-size: .74rem; font-weight: 800; }
.side-newsline a { color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.38; text-decoration: none; }
.side-newsline a:hover { color: var(--brand); }
.side-story__media { display: block; overflow: hidden; width: 64px; height: 64px; background: var(--paper-deep); }
.side-story__media img { width: 100%; height: 100%; object-fit: cover; }
.side-story--text { grid-template-columns: minmax(0, 1fr); }
.side-story__body { min-width: 0; }
.side-story time { display: block; margin-bottom: 4px; color: var(--muted); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.side-story__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.36;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.side-story__title:hover { color: var(--brand); }

/* Anything the site owner drops into the widget area, kept compact. */
.sidebar-extra ul, .sidebar-extra ol { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: .88rem; line-height: 1.4; }
.sidebar-extra li > a { text-decoration: none; }
.sidebar-extra li > a:hover { color: var(--brand); }
.sidebar-extra .search-form { flex-direction: column; gap: 10px; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-sans); font-size: .76rem; }
.article__tags a { padding: 4px 8px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.nav-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; }
.page-numbers { display: inline-flex; min-height: 48px; align-items: center; padding: 0 14px; border: 1px solid var(--ink); text-decoration: none; }

/* "Читайте также" under an article (template-parts/related-articles.php). */
.related { margin-top: 56px; padding-top: 20px; border-top: 3px solid var(--ink); }
.related__heading { margin: 0 0 24px; font-family: var(--font-editorial); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; }
.related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.related-card { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.related-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-deep); }
.related-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.related-card:hover .related-card__media img { transform: scale(1.03); }
.related-card__body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
.related-card__title { margin: 0; font-family: var(--font-editorial); font-size: 1.08rem; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }
.related-card__title a { color: var(--ink); text-decoration: none; }
.related-card__title a:hover { color: var(--brand); }
.related-card__excerpt { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: .88rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.related-card time { color: var(--muted); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.related-card--text { padding-top: 16px; border-top: 3px solid var(--brand); }

/* Older and newer article: two labelled cards. */
.page-numbers.current { background: var(--ink); color: #fff; }
/* "Показать ещё" under lists and under "Читайте также" (yerkramas_news_load_more()). */
.load-more { display: flex; flex-direction: column; align-items: center; margin-top: 36px; }
.load-more[hidden], .load-more__button[hidden], .pagination[hidden] { display: none; }
.load-more__button { min-width: min(100%, 260px); justify-content: center; }
.load-more__button[disabled] { cursor: progress; opacity: .75; }
/* Legacy listings run to thousands of pages ("… 8 152"), so the row must wrap. */
.pagination .nav-links { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.pagination .page-numbers { min-width: 48px; justify-content: center; }

/* Pages */
.empty-state, .error-page { padding: 64px 0; }
.page-shell { padding: 56px 0 90px; }
.page-article { max-width: 1160px; margin-inline: auto; }
.page-content { max-width: 820px; }
.error-page { max-width: 760px; margin-inline: auto; text-align: center; }
.error-page__code { color: var(--brand); font-family: var(--font-editorial); font-size: clamp(5rem, 16vw, 10rem); font-weight: 700; line-height: .8; }
.error-page h1 { font-family: var(--font-editorial); font-size: clamp(2.2rem, 6vw, 4rem); }
.error-page .search-form { margin: 28px 0 16px; }

/* Footer */
.site-footer { padding: 62px 0 28px; background: var(--ink); color: #fff; border-top: 8px solid var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.6fr .8fr .65fr; gap: 60px; }
.footer-brand > span { color: #bbadb0; font-size: .6875rem; font-weight: 800; letter-spacing: .4em; }
/* `.brand` paints itself ink-on-paper; on the dark footer that is invisible. */
.brand--footer { display: block; margin-top: 9px; color: var(--white); font-family: var(--font-editorial); font-size: clamp(2.5rem, 4vw, 3.6rem); font-weight: 700; line-height: .95; letter-spacing: -.035em; }
.brand--footer > span { color: var(--brand-soft); }
.footer-grid p { max-width: 520px; color: #bdb3af; font-family: var(--font-editorial); }
.footer-nav strong, .footer-social strong { display: block; margin-bottom: 16px; color: #9d9290; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; }
.menu--footer a, .footer-social a { display: flex; min-height: 42px; align-items: center; border-bottom: 1px solid var(--line-dark); color: #ece5df; font-size: .78rem; font-weight: 700; text-decoration: none; }
.footer-social a { justify-content: space-between; }
.footer-social .icon { width: 16px; }
.language-switch--footer { gap: 20px; margin-top: 18px; }
.language-switch--footer a { min-height: 44px; border-bottom: 0; color: #ece5df; }
.language-switch--footer a[aria-current] { color: #e2596b; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: #8e8582; font-size: .6875rem; letter-spacing: .04em; }
.app-nav { display: none; }

@media (max-width: 1080px) {
  .home-sections__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --shell: min(100% - 36px, 1360px); }
  .masthead { min-height: 126px; }
  .news-wire__items a:nth-child(3) { display: none; }
  .lead-story { grid-column: span 7; }
  .pulse-panel { grid-column: span 5; }
  .lead-story h2 { font-size: clamp(1.8rem, 3.25vw, 2.7rem); }
  /* The archive grid kept three columns down to 680px, which squeezed headlines
     into six-line stacks on tablets. */
  .news-grid--editorial, .archive-shell > .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card--standard:nth-child(3n), .news-card--wide:nth-child(3n) { border-right-color: var(--line); }
  .news-card--standard:nth-child(2n), .news-card--wide:nth-child(2n) { border-right-color: transparent; }
  .editorial-statement__inner { grid-template-columns: auto 1fr; }
  .editorial-statement__inner > p { grid-column: 2; }
}

@media (max-width: 899px) {
  body { padding-bottom: calc(var(--app-nav-height) + env(safe-area-inset-bottom)); }
  .news-wire__items a:nth-child(n+2), .masthead__edition, .desktop-nav { display: none; }
  /* The footer used to be hidden below 900px, which dropped the copyright and
     the mandatory source-citation notice from every phone and tablet view. */
  .site-footer { padding: 40px 0 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid p { font-size: .95rem; }
  .site-footer__bottom { flex-direction: column; gap: 8px; margin-top: 30px; }
  .news-wire__inner { width: 100%; grid-template-columns: auto minmax(0, 1fr); }
  .news-wire__label { padding-left: 14px; }
  .news-wire__items a { padding-right: 14px; }
  .masthead { grid-template-columns: 48px minmax(0, 1fr) 48px; min-height: 84px; }
  .masthead__menu { display: inline-grid !important; }
  .brand__overline { display: none; }
  .brand__name { font-size: clamp(2.1rem, 8.5vw, 3.1rem); }
  .brand__tagline { margin-top: 6px; font-size: .6875rem; letter-spacing: .08em; }
  .masthead__actions .icon-button { display: none; }
  .front-page { padding-top: 32px; }
  .front-page__header { grid-template-columns: 1fr; gap: 20px; }
  .front-page__header p { margin: 0; }
  .lead-story, .pulse-panel { grid-column: 1 / -1; }
  .pulse-panel { min-height: auto; }
  .front-secondary { grid-template-columns: 1fr; }
  .news-card--feature { grid-template-columns: minmax(140px, 32%) minmax(0, 1fr); }
  .front-secondary > .news-card--feature:nth-child(2n) { border-left: 0; }
  .front-secondary > .news-card--feature:nth-child(n+2) { border-top: 1px solid var(--line); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article__sidebar { position: static; }
  .app-nav {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(var(--app-nav-height) + env(safe-area-inset-bottom));
    padding: 4px 6px env(safe-area-inset-bottom);
    background: rgb(32 36 43 / 97%);
    border-top: 3px solid var(--brand);
    backdrop-filter: blur(14px);
  }
  .app-nav a, .app-nav button {
    position: relative;
    display: flex;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 2px;
    border: 0;
    background: transparent;
    color: #b9bec7;
    font-size: .625rem;
    font-weight: 800;
    text-decoration: none;
  }
  .app-nav a[aria-current="page"] { color: #fff; }
  .app-nav a[aria-current="page"]::before { content: ""; position: absolute; top: -4px; width: 28px; height: 3px; background: var(--brand); }
  .app-nav .icon { width: 22px; height: 22px; }
}

@media (max-width: 680px) {
  .home-sections { margin-top: 40px; }
  .home-sections__grid { grid-template-columns: 1fr; gap: 28px; }
  :root { --shell: min(100% - 24px, 1360px); }
  /* Phones keep the ruled editorial grammar — density comes from tighter
     spacing and clamped lines, not from rounded floating cards. */
  .front-page__header { gap: 10px; padding-bottom: 14px; border-bottom-width: 2px; }
  .front-page__header h1 { margin-bottom: 0; font-size: clamp(1.75rem, 7.4vw, 2.2rem); }
  .front-page__header p { display: none; }
  .lead-story { display: block; background: var(--paper-light); }
  .lead-story__media { aspect-ratio: 16 / 10; }
  .lead-story__content { padding: 15px 16px 20px; }
  .lead-story__content::after { display: none; }
  .lead-story h2 { margin-right: 0; font-size: clamp(1.4rem, 5.9vw, 1.8rem); line-height: 1.22; }
  .lead-story__excerpt { display: none; }

  /* "Сейчас" used to take almost the whole screen. Trim it to a digest:
     three rows, two-line titles, no number gutter. */
  .pulse-panel > header { align-items: center; padding: 14px 18px 13px; }
  .pulse-panel > header strong { font-size: 1.25rem; }
  .pulse-panel__list { padding: 0 18px; }
  .pulse-item { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px 0; }
  .pulse-item:nth-child(n+4) { display: none; }
  .pulse-item:nth-child(3) { border-bottom: 0; }
  .pulse-item__number { display: none; }
  .pulse-item time { margin-bottom: 3px; color: var(--brand-soft); font-weight: 800; }
  .pulse-item h2 { font-size: .94rem; line-height: 1.38; -webkit-line-clamp: 2; }
  .pulse-panel__more { min-height: 52px; padding: 0 18px; font-size: .6875rem; }

  .front-secondary { display: block; }
  .news-card--feature { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
  .news-card--feature .news-card__media { aspect-ratio: 4 / 3; }
  .news-card--feature .news-card__title { display: -webkit-box; overflow: hidden; font-size: 1rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .news-card--feature .news-card__excerpt, .news-card--feature .news-card__meta { display: none; }
  .latest-section { padding-top: 44px; }
  .section-heading--editorial { grid-template-columns: auto 1fr; gap: 12px; padding-bottom: 14px; border-bottom-width: 2px; }
  .section-heading__link { grid-column: 1 / -1; min-height: 44px; }
  .news-grid--editorial, .archive-shell > .news-grid { grid-template-columns: 1fr; }
  .news-card--standard, .news-card--wide, .archive-shell .news-card { padding: 16px 0; border-right: 0; }
  .news-card--wide { grid-column: auto; display: block; padding-top: 0; }
  .news-card--wide .news-card__media { width: 100%; min-width: 0; min-height: 0; aspect-ratio: 16 / 10; margin-bottom: 16px; }
  .news-card--wide .news-card__body { width: 100%; min-width: 0; }
  .news-card--wide .news-card__title { font-size: 1.3rem; line-height: 1.26; }
  .news-card--standard, .archive-shell .news-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .news-card--standard .news-card__media, .archive-shell .news-card__media { width: 104px; min-width: 0; min-height: 88px; margin: 0; aspect-ratio: auto; }
  .news-card--standard .news-card__body, .archive-shell .news-card__body { min-width: 0; align-self: center; }
  .news-card--standard .news-card__title, .archive-shell .news-card__title { display: -webkit-box; overflow: hidden; font-size: 1rem; line-height: 1.36; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .news-card--standard .news-card__meta { margin-top: 9px; font-size: .6875rem; }
  .news-card__index { display: none; }
  .news-card--textonly, .archive-shell .news-card--textonly { display: block; padding: 16px 0; }
  .front-secondary .news-card--feature.news-card--textonly { padding: 14px 16px; }
  .news-card--feature.news-card--textonly .news-card__body { padding: 2px 0; }
  .news-card--feature.news-card--textonly .news-card__excerpt { display: -webkit-box; }
  .news-card--feature.news-card--textonly .news-card__meta { display: flex; }
  .news-card--textonly .news-card__title { -webkit-line-clamp: 4; }
  /* The 180px placeholder floor made image-less cards twice as tall as the rest. */
  .news-card--feature .media-placeholder,
  .news-card--standard .media-placeholder,
  .archive-shell .media-placeholder { min-height: 0; }
  .news-card--feature .media-placeholder span,
  .news-card--standard .media-placeholder span,
  .archive-shell .media-placeholder span { font-size: 2rem; }
  .editorial-statement { margin-top: 56px; }
  .editorial-statement__inner { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .editorial-statement__mark { width: 72px; height: 72px; font-size: 2.5rem; }
  .editorial-statement__inner > p { grid-column: auto; }
  .editorial-statement h2 { font-size: 1.65rem; line-height: 1.18; }
  .support-banner { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .support-banner__label { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--line); writing-mode: initial; transform: none; }
  .support-banner h2 { font-size: 1.5rem; line-height: 1.22; }
  .support-banner .button { width: 100%; }
  .archive-shell, .single-shell { padding: 24px 0 64px; }
  .archive-header { margin-bottom: 18px; padding-bottom: 14px; border-bottom-width: 2px; }
  .archive-header h1 { font-size: clamp(1.75rem, 7.4vw, 2.2rem); }
  .article__header { padding: 20px 0 24px; }
  .article__header h1 { font-size: clamp(1.45rem, 7vw, 2.2rem); line-height: 1.18; overflow-wrap: break-word; hyphens: auto; }
  .article__lead { margin-top: 18px; font-size: 1rem; line-height: 1.58; }
  .article__hero { width: 100vw; margin-left: calc(50% - 50vw); }
  .article__hero figcaption { padding-inline: 12px; }
  .search-form { flex-direction: column; }
  .search-submit { width: 100%; }
  .pagination .nav-links { justify-content: center; margin-top: 32px; }
  .pagination .page-numbers { min-width: 44px; padding: 0 10px; }
  /* Previous / next on their own row under the numbers, half the width each. */
  .pagination .prev, .pagination .next { order: 1; flex: 1 1 calc(50% - 4px); }
}

/* Readable, the tagline no longer fits beside the phone header's buttons. */
@media (max-width: 560px) {
  .brand__tagline { display: none; }
}

@media (max-width: 380px) {
  /* Between the 48px buttons the name had 1px to spare at 320px, and the
     wider Armenian ԵՐԿՐԱՄԱՍ ran 6px under them; it now shrinks with the
     screen and meets the 2.1rem above at 373px. */
  .brand__name { font-size: min(2.1rem, 9vw); }
  .masthead { min-height: 72px; }
  .news-wire__label { padding-right: 10px; }
  .news-wire__items a { padding-left: 10px; }
  .front-page__header h1 { font-size: 2rem; }
  .news-card--feature { grid-template-columns: 100px minmax(0, 1fr); }
  .app-nav a, .app-nav button { font-size: clamp(.55rem, 3vw, .625rem); }
}

@media (max-height: 500px) and (orientation: landscape) and (max-width: 899px) {
  .app-nav { min-height: 58px; }
  .app-nav a, .app-nav button { min-height: 48px; flex-direction: row; gap: 6px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* Tablets and phones: the header's language menu, "Читайте также", the
   older/newer cards, search and the level block lists. */
@media (max-width: 1080px) {
  .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .masthead__actions { justify-self: end; }
  .lang-menu__toggle { width: 48px; justify-content: center; gap: 5px; padding: 0; border-color: var(--ink); }
  .lang-menu__label { display: none; }
}

@media (max-width: 680px) {
  .related { margin-top: 40px; padding-top: 16px; border-top-width: 2px; }
  .related__heading { margin-bottom: 4px; font-size: 1.6rem; }
  .related__grid { grid-template-columns: 1fr; gap: 0; }
  .related-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
  .related-card:first-child { border-top: 0; }
  .related-card__media { aspect-ratio: 4 / 3; }
  .related-card__body { gap: 6px; }
  .related-card__title { font-size: 1rem; line-height: 1.32; }
  .related-card--text { display: block; padding-top: 16px; border-top: 1px solid var(--line); }
  .related-card--text .related-card__excerpt { -webkit-line-clamp: 3; }
  .search-panel { padding: 14px 0; }
  .search-panel .search-form { flex-direction: row; }
  .search-panel .search-field { min-height: 50px; padding: 10px 12px; font-size: 1rem; }
  .search-panel .search-submit { width: auto; min-height: 50px; padding: 0 16px; }
  .search-panel__close { width: 44px; min-width: 44px; height: 50px; }
  .home-sections--compact .home-sections__grid { grid-template-columns: 1fr; }
}

/* Rendering on demand. The front page is sixteen phone screens long: its
   first screen is laid out first, the blocks below it as the reader
   scrolls to them. Their text stays in the page — for search engines,
   find-in-page and screen readers alike. The heights are the blocks' usual
   ones, measured at each width, so the scrollbar does not jump; a block
   keeps its real height once shown. Blocks holding ad slots are left out:
   ad code measures its container as it loads. */
.latest-section,
.home-section,
.editorial-statement,
.support-banner,
.support-note,
.site-footer,
.related,
.article__sidebar .side-block {
  content-visibility: auto;
  overflow-clip-margin: 8px; /* room for focus outlines at the edges */
}
/* Content-box heights: padding and borders come on top. */
.latest-section { contain-intrinsic-height: auto 1610px; }
.home-section { contain-intrinsic-height: auto 770px; }
.editorial-statement { contain-intrinsic-height: auto 280px; }
.support-banner { contain-intrinsic-height: auto 151px; }
.support-note { contain-intrinsic-height: auto 170px; }
.site-footer { contain-intrinsic-height: auto 469px; }
.article__sidebar .side-block { contain-intrinsic-height: auto 569px; }
.home-sections--compact .home-section { contain-intrinsic-height: auto 470px; }
.related { contain-intrinsic-height: auto 730px; }

/* The closed drawer is not drawn at all (nor reachable with Tab). It shows
   its menu at once on opening — app.js moves the focus into it — and keeps
   it on closing until the slide ends. */
.mobile-drawer {
  content-visibility: hidden;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), content-visibility 260ms allow-discrete;
}
.mobile-drawer.is-open {
  content-visibility: visible;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}

@media (max-width: 899px) {
  .latest-section { contain-intrinsic-height: auto 1951px; }
  .home-section { contain-intrinsic-height: auto 740px; }
  .editorial-statement { contain-intrinsic-height: auto 288px; }
  .support-banner { contain-intrinsic-height: auto 152px; }
  .support-note { contain-intrinsic-height: auto 205px; }
  .site-footer { contain-intrinsic-height: auto 893px; }
  .article__sidebar .side-block { contain-intrinsic-height: auto 370px; }
  .home-sections--compact .home-section { contain-intrinsic-height: auto 630px; }
  .related { contain-intrinsic-height: auto 1440px; }
}

/* One column: a block's height follows what it holds — a lead picture,
   four headlines or fewer. */
@media (max-width: 680px) {
  .latest-section { contain-intrinsic-height: auto 2059px; }
  .home-section { contain-intrinsic-height: auto 732px; }
  .home-section:not(:has(li:nth-child(4))) { contain-intrinsic-height: auto 617px; }
  .home-section:not(:has(.home-section__media)) { contain-intrinsic-height: auto 489px; }
  .home-section:not(:has(.home-section__media)):not(:has(li + li)) { contain-intrinsic-height: auto 159px; }
  .editorial-statement { contain-intrinsic-height: auto 389px; }
  .support-banner { contain-intrinsic-height: auto 251px; }
  .support-note { contain-intrinsic-height: auto 350px; }
  .site-footer { contain-intrinsic-height: auto 899px; }
  .article__sidebar .side-block { contain-intrinsic-height: auto 500px; }
  .home-sections--compact .home-section { contain-intrinsic-height: auto 470px; }
  .home-sections--compact .home-section:not(:has(li:nth-child(4))) { contain-intrinsic-height: auto 378px; }
  .related { contain-intrinsic-height: auto 1290px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  .news-wire, .site-header, .app-nav, .article__sidebar, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .article-layout { display: block; }
}
