/*
Theme Name:  Blogomed
Theme URI:   https://blogomed.ru
Author:      Blogomed Team
Description: Научный медицинский портал. Академический дизайн — PT Serif + PT Sans, navy + brass палитра.
Version:     1.0.0
License:     GPL-2.0-or-later
Text Domain: blogomed
*/

/* ───────────────────────────────────────────────────
   CSS Custom Properties
─────────────────────────────────────────────────── */
:root {
  --ink:       #13171C;
  --ink-2:     #3A4049;
  --ink-3:     #6B7280;
  --paper:     #FAF8F4;
  --paper-2:   #F3EFE6;
  --rule:      #E6DFD0;
  --rule-2:    #D4CBB6;
  --navy:      #0F3D6E;
  --navy-900:  #0A2A4D;
  --navy-800:  #0F3D6E;
  --navy-700:  #1B5391;
  --navy-100:  #E2EAF2;
  --brass:     #B8945A;
  --brass-2:   #C9A96E;
  --plum:      #7A2C3D;
  --moss:      #3B5A3F;
  --header-bg: #0A2A4D;
  --topbar-bg: #082341;
  --footer-bg: #0A2A4D;
  --body-bg:   #FFFFFF;
}

/* ───────────────────────────────────────────────────
   Base Reset & Typography
─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--body-bg);
  color: var(--ink);
}

body {
  font-family: 'PT Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--navy); color: var(--paper); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ───────────────────────────────────────────────────
   Paper texture (cool white dot grid)
─────────────────────────────────────────────────── */
.paper-tex {
  background-color: #FFFFFF;
  background-image: radial-gradient(rgba(15,61,110,.018) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ───────────────────────────────────────────────────
   Clinical grid (header / footer)
─────────────────────────────────────────────────── */
.clinical-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image:
    linear-gradient(#FAF8F4 1px, transparent 1px),
    linear-gradient(90deg, #FAF8F4 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ───────────────────────────────────────────────────
   Image / Placeholder tiles
─────────────────────────────────────────────────── */
.ph {
  position: relative;
  overflow: hidden;
  background: #EFEAD9;
  color: #3A4049;
  background-image:
    repeating-linear-gradient(135deg, rgba(15,61,110,.05) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #F3EFE6 0%, #E8E2D0 100%);
}
.ph--navy  { background-image: linear-gradient(180deg, #0F3D6E, #0A2A4D); background-color: #0F3D6E; }
.ph--ink   { background-image: linear-gradient(180deg, #1F2C39, #10171F); background-color: #1A2733; }
.ph--plum  { background-image: linear-gradient(180deg, #7A2C3D, #591E2A); background-color: #7A2C3D; }
.ph--moss  { background-image: linear-gradient(180deg, #3B5A3F, #2A4730); background-color: #3B5A3F; }
.ph--brass { background-image: linear-gradient(180deg, #D6B881, #B8945A); background-color: #C9A96E; }

.ph__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .02em;
  color: #FAF8F4;
  text-transform: uppercase;
  opacity: .78;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.ph__cap--dark { color: #3A4049; }
.ph__cap::before { content: ''; width: 10px; height: 10px; border: 1px solid currentColor; flex: none; }

/* ───────────────────────────────────────────────────
   Avatar (initials circle)
─────────────────────────────────────────────────── */
.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'PT Serif', serif;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}
.av--navy  { background: #0F3D6E; color: #FAF8F4; border: 1px solid #0A2A4D; }
.av--paper { background: #EFEAD9; color: #0F3D6E; border: 1px solid #D4CBB6; }
.av--plum  { background: #7A2C3D; color: #FAF8F4; border: 1px solid #591E2A; }
.av--brass { background: #C9A96E; color: #1A2733; border: 1px solid #B8945A; }
.av--moss  { background: #3B5A3F; color: #FAF8F4; border: 1px solid #2A4730; }

/* ───────────────────────────────────────────────────
   Typography helpers
─────────────────────────────────────────────────── */
.font-serif  { font-family: 'PT Serif', Georgia, serif; }
.font-sans   { font-family: 'PT Sans', sans-serif; }
.font-narrow { font-family: 'PT Sans Narrow', sans-serif; }
.font-mono   { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.tag {
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.tag-line { display: inline-flex; align-items: center; gap: 8px; }
.tag-line::before { content: ''; width: 14px; height: 1px; background: var(--brass); }

.dropcap::first-letter {
  font-family: 'PT Serif', serif;
  float: left;
  font-size: 64px;
  line-height: .92;
  padding: 6px 10px 0 0;
  color: var(--navy);
  font-weight: 700;
}

.rule-d      { border: 0; border-top: 1px solid var(--rule); }
.rule-double { border: 0; border-top: 1px solid var(--ink); position: relative; }
.rule-double::after { content: ''; display: block; height: 3px; border-top: 1px solid var(--ink); margin-top: 3px; }

.rank-num {
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 42px;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -.02em;
}

/* ───────────────────────────────────────────────────
   Hover effects
─────────────────────────────────────────────────── */
.a-edit {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s ease;
}
.a-edit:hover { background-size: 100% 1px; }

.card-rise { transition: transform .35s ease, box-shadow .35s ease; }
.card-rise:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -22px rgba(15,23,28,.25); }

/* ───────────────────────────────────────────────────
   Layout
─────────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-content { flex: 1; }

/* Main + sidebar grid */
.content-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .content-grid { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
}
@media (min-width: 1024px) {
  .sidebar-sticky { position: sticky; top: 24px; }
}

/* ───────────────────────────────────────────────────
   Top Bar
─────────────────────────────────────────────────── */
.topbar {
  position: relative;
  overflow: hidden;
  background: var(--topbar-bg);
  color: #C9D4E2;
  border-bottom: 1px solid #1A4774;
}
.topbar__inner {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  position: relative;
}
.topbar__left,
.topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__date  { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #9FB1C7; }
.topbar__issn  { font-size: 11px; color: #9FB1C7; display: flex; align-items: center; gap: 8px; }
.topbar__issn .pulse-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7BC4B8; }
.topbar__lang  { font-size: 11px; color: #9FB1C7; display: flex; align-items: center; gap: 6px; }
.topbar__lang button { text-transform: uppercase; letter-spacing: .08em; background: none; border: none; color: inherit; font-size: 11px; cursor: pointer; }
.topbar__lang button.active { color: var(--brass-2); font-weight: 700; }
.topbar__lang .sep { color: #1A4774; }
.topbar__social { display: flex; align-items: center; gap: 12px; color: #9FB1C7; }
.topbar__social a { color: inherit; transition: color .2s; }
.topbar__social a:hover { color: var(--paper); }
.topbar__subscribe {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--brass-2); transition: color .2s;
}
.topbar__subscribe:hover { color: var(--paper); }

@media (max-width: 767px) {
  .topbar__issn, .topbar__lang, .topbar__social { display: none; }
}

/* ───────────────────────────────────────────────────
   Site Header
─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  color: #E2EAF2;
  overflow: hidden;
}
.site-header__ecg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  opacity: .14;
  pointer-events: none;
}
.site-header__border {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #1A4774;
}
.site-header__inner {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__wordmark {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--paper);
  line-height: 1;
}
.logo__tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #C9D4E2;
  opacity: .7;
  margin-top: 4px;
}
.logo--mono .logo__wordmark { color: currentColor; }
.logo--mono .logo__tagline  { color: currentColor; }

/* Main Nav */
.main-nav { display: none; }
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #C9D4E2;
    flex: 1;
  }
  .main-nav a { transition: color .2s; }
  .main-nav a:hover { color: var(--brass-2); }
  .main-nav a.current-menu-item { color: var(--brass-2); }
}

/* Header right actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-search {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  width: 220px;
  border: 1px solid #1A4774;
  background: rgba(15,61,110,.4);
  transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--brass-2); }
.header-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--paper);
  width: 100%;
  font-family: 'PT Sans', sans-serif;
}
.header-search input::placeholder { color: #6B83A1; }
@media (min-width: 768px) {
  .header-search { display: flex; }
}
.header-profile-btn,
.header-menu-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #1A4774;
  background: transparent;
  color: #C9D4E2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.header-profile-btn:hover,
.header-menu-btn:hover { border-color: var(--brass-2); color: var(--brass-2); }
.header-profile-btn { display: none; }
@media (min-width: 768px) { .header-profile-btn { display: inline-flex; } }
.header-menu-btn { }
@media (min-width: 1024px) { .header-menu-btn { display: none; } }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--header-bg);
  border-top: 1px solid #1A4774;
  padding: 16px 24px 20px;
  position: relative;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: #C9D4E2;
  border-bottom: 1px solid #1A4774;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #1A4774;
  margin-top: 12px;
}
.mobile-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--paper);
  flex: 1;
  font-family: 'PT Sans', sans-serif;
}
.mobile-search input::placeholder { color: #6B83A1; }

/* ───────────────────────────────────────────────────
   Section Heading
─────────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.section-head__kicker { margin-bottom: 8px; }
.section-head__title {
  font-family: 'PT Serif', serif;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
}
.section-head__more {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--ink-2);
  flex-shrink: 0;
  padding-bottom: 8px;
  transition: color .2s;
}
.section-head__more:hover { color: var(--navy); }
@media (min-width: 768px) { .section-head__more { display: inline-flex; } }

/* ───────────────────────────────────────────────────
   Hero Block
─────────────────────────────────────────────────── */
.hero { padding-top: 40px; padding-bottom: 56px; }
.hero__issue-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-3);
}
.hero__issue-bar span:nth-child(2) { flex: 1; border-top: 1px solid var(--rule); }
.hero__grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
.hero__featured { cursor: pointer; }
.hero__featured:hover .hero__title { color: var(--navy); }

.hero__cover { width: 100%; aspect-ratio: 16/9; }
.hero__meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 24px;
}
.hero__category { color: var(--navy); }
.hero__type { color: var(--ink-3); font-weight: 400; font-size: 12px; text-transform: none; letter-spacing: 0; }
.hero__sep { color: var(--rule-2); }
.hero__title {
  font-family: 'PT Serif', serif;
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
  transition: color .2s;
  max-width: 58ch;
}
.hero__lead {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}
.hero__byline {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.hero__author { display: flex; align-items: center; gap: 12px; }
.hero__author-name { font-weight: 700; color: var(--ink); font-size: 13px; }
.hero__author-aff { font-size: 11px; color: var(--ink-3); }
.hero__dot { color: var(--rule-2); }
.hero__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.hero__doi { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); }

/* Side focus cards */
.hero__focus-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}
.focus-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  cursor: pointer;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.focus-card:last-child { border-bottom: 0; padding-bottom: 0; }
.focus-card:hover .focus-card__title { color: var(--navy); }
.focus-card__cover { aspect-ratio: 4/5; }
.focus-card__cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); margin-bottom: 6px; }
.focus-card__title { font-family: 'PT Serif', serif; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); transition: color .2s; }
.focus-card__meta { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ───────────────────────────────────────────────────
   Fresh / Latest Research
─────────────────────────────────────────────────── */
.fresh-list { padding-top: 48px; }
.fresh-article {
  display: grid;
  gap: 24px;
  cursor: pointer;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.fresh-article:last-child { border-bottom: 0; margin-bottom: 0; }
.fresh-article:hover .fresh-article__title { color: var(--navy); }
@media (min-width: 768px) {
  .fresh-article { grid-template-columns: 260px 1fr; }
}
.fresh-article__cover { aspect-ratio: 5/4; }
.fresh-article__num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); font-weight: 400; text-transform: none; letter-spacing: 0; }
.fresh-article__title {
  font-family: 'PT Serif', serif;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  transition: color .2s;
  margin-top: 8px;
}
.fresh-article__excerpt { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
.fresh-article__meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.fresh-article__author { font-weight: 700; color: var(--ink); }
.fresh-article__read-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  opacity: 0;
  transition: opacity .2s;
}
.fresh-article:hover .fresh-article__read-more { opacity: 1; }

/* ───────────────────────────────────────────────────
   Reviews Grid
─────────────────────────────────────────────────── */
.reviews-section { padding-top: 56px; }
.reviews-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  border: 1px solid var(--rule);
  background: var(--paper);
  cursor: pointer;
}
.review-card:hover .review-card__title { color: var(--navy); }
.review-card__cover { aspect-ratio: 5/3; }
.review-card__body { padding: 20px; }
.review-card__cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brass); margin-bottom: 8px; }
.review-card__title { font-family: 'PT Serif', serif; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); transition: color .2s; }
.review-card__footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}

/* ───────────────────────────────────────────────────
   Videos Row
─────────────────────────────────────────────────── */
.videos-section { padding-top: 56px; }
.videos-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .videos-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card { cursor: pointer; }
.video-card:hover .video-card__title { color: var(--navy); }
.video-card__thumb { position: relative; aspect-ratio: 16/9; }
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.video-card__play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(250,248,244,.95);
  border: 1px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15,23,28,.2);
  transition: background .2s;
}
.video-card:hover .video-card__play-btn { background: var(--brass-2); }
.video-card__dur {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  background: rgba(19,23,28,.85);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .05em;
}
.video-card__title { font-family: 'PT Serif', serif; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); transition: color .2s; margin-top: 16px; }
.video-card__lecturer { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

/* ───────────────────────────────────────────────────
   Sidebar
─────────────────────────────────────────────────── */
.widget-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-3);
  margin-bottom: 16px;
}

/* Sections list */
.widget-sections { border-left: 1px solid var(--ink); padding-left: 20px; }
.widget-sections ul { list-style: none; }
.widget-sections li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-family: 'PT Serif', serif;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  transition: color .2s;
}
.widget-sections li a:hover { color: var(--navy); }
.widget-sections .sec-dots { flex: 1; border-bottom: 1px dotted var(--rule-2); margin-bottom: 3px; }
.widget-sections .sec-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.widget-sections li a:hover .sec-count { color: var(--navy); }

/* Popular */
.widget-popular { }
.widget-popular__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.widget-popular__head h3 { font-family: 'PT Serif', serif; font-size: 20px; letter-spacing: -.01em; color: var(--ink); }
.widget-popular__period { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.popular-item { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; cursor: pointer; margin-bottom: 20px; }
.popular-item:last-child { margin-bottom: 0; }
.popular-item:hover .popular-item__title { color: var(--navy); }
.popular-item__cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brass); margin-bottom: 4px; }
.popular-item__title { font-family: 'PT Serif', serif; font-size: 15px; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); transition: color .2s; }
.popular-item__meta { margin-top: 8px; font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }

/* Newsletter widget */
.widget-newsletter {
  background: var(--navy);
  color: var(--paper);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.widget-newsletter__bg {
  position: absolute;
  right: -32px;
  top: -32px;
  opacity: .2;
  pointer-events: none;
}
.widget-newsletter__kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--brass-2);
  margin-bottom: 12px;
}
.widget-newsletter__title { font-family: 'PT Serif', serif; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.widget-newsletter__desc { margin-top: 12px; font-size: 13px; line-height: 1.55; opacity: .8; max-width: 34ch; }
.widget-newsletter form { margin-top: 20px; }
.widget-newsletter input {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(250,248,244,.3);
  color: var(--paper);
  font-size: 13px;
  outline: none;
  font-family: 'PT Sans', sans-serif;
  transition: border-color .2s;
}
.widget-newsletter input::placeholder { color: rgba(250,248,244,.4); }
.widget-newsletter input:focus { border-color: var(--brass-2); }
.widget-newsletter button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  margin-top: 8px;
  background: var(--brass-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: none;
  transition: background .2s;
  cursor: pointer;
  font-family: 'PT Sans', sans-serif;
}
.widget-newsletter button:hover { background: var(--paper); }
.widget-newsletter__note { margin-top: 12px; font-size: 11px; opacity: .6; }
.widget-newsletter__note a { text-decoration: underline; }
.widget-newsletter__note a:hover { opacity: 1; }

/* Tag cloud */
.widget-tags .tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-tags .tag-chip {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12.5px;
  border: 1px solid var(--rule-2);
  color: var(--ink-2);
  transition: all .2s;
}
.widget-tags .tag-chip:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.widget-tags .tag-chip--bold { border-color: var(--ink); color: var(--ink); }

/* Expert of the month */
.widget-expert {
  border: 1px solid var(--rule);
  padding: 24px;
  background: rgba(243,239,230,.5);
}
.widget-expert__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--brass);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-expert__label::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }
.widget-expert__head { display: flex; align-items: flex-start; gap: 16px; }
.widget-expert__name { font-family: 'PT Serif', serif; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.widget-expert__degree { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.widget-expert__pos { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-top: 16px; }
.widget-expert__bio { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin-top: 16px; }
.widget-expert__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  transition: color .2s;
}
.widget-expert__link:hover { color: var(--ink); }

/* Archive */
.widget-archive ul { list-style: none; }
.widget-archive li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}
.widget-archive .arch-year { font-family: 'PT Serif', serif; font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.widget-archive .arch-months { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: .05em; }
.widget-archive .arch-show { font-size: 12px; color: var(--ink-3); transition: color .2s; }
.widget-archive .arch-show:hover { color: var(--navy); }

/* ───────────────────────────────────────────────────
   Weekly Topics tiles
─────────────────────────────────────────────────── */
.weekly-section { padding-top: 80px; }
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px)  { .weekly-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .weekly-grid { grid-template-columns: repeat(6, 1fr); } }

.weekly-tile {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
}
.weekly-tile__inner {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.weekly-tile__kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .8;
}
.weekly-tile__title {
  font-family: 'PT Serif', serif;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.weekly-tile__sub { font-size: 11px; opacity: .75; margin-top: 8px; }
.weekly-tile--light { color: var(--ink); }
.weekly-tile--dark  { color: var(--paper); }

/* ───────────────────────────────────────────────────
   Authors Block
─────────────────────────────────────────────────── */
.authors-section { padding-top: 80px; }
.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 24px;
}
@media (min-width: 768px)  { .authors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .authors-grid { grid-template-columns: repeat(6, 1fr); } }

.author-card { text-align: center; cursor: pointer; }
.author-card .av { margin: 0 auto; transition: transform .2s; }
.author-card:hover .av { transform: scale(1.05); }
.author-card__name { font-family: 'PT Serif', serif; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin-top: 16px; }
.author-card__degree { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.author-card__spec { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-top: 8px; display: inline-block; }
.author-card__papers { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }

/* ───────────────────────────────────────────────────
   Quote of the Day
─────────────────────────────────────────────────── */
.quote-section { padding-top: 80px; }
.quote-block {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 56px 24px;
  position: relative;
  text-align: center;
}
@media (min-width: 768px) { .quote-block { padding: 56px 64px; } }
.quote-block__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.quote-block blockquote {
  font-family: 'PT Serif', serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  font-style: italic;
  max-width: 68ch;
  margin: 0 auto;
}
.quote-block__author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 14px;
}
.quote-block__author-name { font-weight: 700; color: var(--ink); }
.quote-block__author-meta { color: var(--ink-3); }
.quote-block__line { width: 40px; border-top: 1px solid var(--brass); }

/* ───────────────────────────────────────────────────
   Site Footer
─────────────────────────────────────────────────── */
.site-footer {
  margin-top: 96px;
  background: var(--footer-bg);
  color: #C9D4E2;
  position: relative;
  overflow: hidden;
}
.site-footer__ecg {
  position: absolute;
  left: 0; right: 0; top: 0;
  width: 100%;
  opacity: .10;
  pointer-events: none;
}
.site-footer__inner { padding-top: 64px; padding-bottom: 40px; position: relative; }
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 4fr); }
}
.footer-about p { font-size: 14px; line-height: 1.6; color: #9FB1C7; max-width: 36ch; margin-top: 20px; }
.footer-social { display: flex; align-items: center; gap: 16px; margin-top: 24px; color: #9FB1C7; }
.footer-social a { color: inherit; transition: color .2s; }
.footer-social a:hover { color: var(--paper); }
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 8px 16px;
  border: 1px solid #1A4774;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #6B83A1;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #C9D4E2; transition: color .2s; }
.footer-col a:hover { color: var(--paper); }
.footer-newsletter h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #6B83A1;
  margin-bottom: 16px;
}
.footer-newsletter p { font-size: 14px; color: #9FB1C7; max-width: 40ch; margin-bottom: 16px; }
.footer-newsletter form {
  display: flex;
  border: 1px solid #1A4774;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15,61,110,.4);
  transition: border-color .2s;
}
.footer-newsletter form:focus-within { border-color: var(--brass-2); }
.footer-newsletter input {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--paper);
  font-family: 'PT Sans', sans-serif;
}
.footer-newsletter input::placeholder { color: #6B83A1; }
.footer-newsletter button {
  padding: 10px 20px;
  background: var(--brass-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: none;
  cursor: pointer;
  transition: background .2s;
  font-family: 'PT Sans', sans-serif;
  white-space: nowrap;
}
.footer-newsletter button:hover { background: var(--paper); }
.footer-newsletter__note { font-size: 11px; color: #6B83A1; margin-top: 12px; }
.footer-newsletter__note a { text-decoration: underline; }
.footer-newsletter__note a:hover { color: var(--paper); }

.footer-divider { border: 0; border-top: 1px solid #1A4774; margin: 40px 0; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 12px;
  color: #6B83A1;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom__left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-bottom__left a { transition: color .2s; }
.footer-bottom__left a:hover { color: var(--paper); }
.footer-bottom__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom__right span { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.index-badge {
  padding: 4px 10px;
  border: 1px solid #1A4774;
  font-size: 12px;
}

/* ───────────────────────────────────────────────────
   Article / Single Post
─────────────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 40;
  pointer-events: none;
  background: transparent;
}
.reading-progress__bar {
  height: 100%;
  background: var(--brass-2);
  width: 0%;
  transition: width .15s linear;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-3);
  margin-bottom: 32px;
}
.article-breadcrumb a:hover { color: var(--navy); }

.article-header {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.article-header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: 20px;
}
.article-header__cat { color: var(--navy); }
.article-header__type { font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 11px; color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.article-header h1 {
  font-family: 'PT Serif', serif;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
}
.article-header__lead {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.article-header__authors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 36px;
}
.article-header__author-info { text-align: left; line-height: 1.3; }
.article-header__author-name { font-weight: 700; color: var(--ink); }
.article-header__author-aff { font-size: 11px; color: var(--ink-3); }
.article-header__coauthors { font-size: 13px; color: var(--ink-3); }
.article-header__dateline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
  margin-top: 20px;
}
.article-header__dateline-item { display: inline-flex; align-items: center; gap: 6px; }
.article-header__doi { font-family: 'JetBrains Mono', monospace; }
.article-dot { color: var(--rule-2); }

.article-cover { max-width: 1100px; margin: 0 auto; margin-top: 48px; }
.article-cover__img { width: 100%; aspect-ratio: 16/9; }
.article-cover__caption { margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); max-width: 60ch; }
.article-cover__caption strong { color: var(--ink-2); }

.article-actionbar {
  max-width: 820px;
  margin: 0 auto;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.article-actionbar__actions { display: flex; align-items: center; gap: 4px; }
.article-actionbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink-2);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
  font-family: 'PT Sans', sans-serif;
}
.article-actionbar__btn:hover { color: var(--navy); }
.article-actionbar__btn.is-saved { color: var(--navy); }
.article-actionbar__badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-badge {
  padding: 4px 8px;
  border: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.article-badge--tinted { background: rgba(243,239,230,.5); }

.article-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  margin-top: 56px;
}
.article-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .article-grid { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
}

/* Two-column: body | sidebar (TOC вверху сайдбара) */
.article-grid--with-sidebar {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .article-grid--with-sidebar {
    grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
  }
}
.article-sidebar { font-size: 14px; }
.article-sidebar .widget-newsletter { padding: 20px; }
.article-sidebar .widget-newsletter__title { font-size: 20px; }
.article-sidebar .rank-num { font-size: 32px; }
.article-sidebar .popular-item__title { font-size: 13px; }
.article-sidebar .widget-expert { padding: 18px; }

/* TOC */
.article-toc { }
.article-toc__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.article-toc ol { list-style: none; border-left: 1px solid var(--rule); padding-left: 16px; }
.article-toc li { margin-bottom: 8px; }
.article-toc a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-2);
  transition: color .2s;
  line-height: 1.3;
}
.article-toc a:hover { color: var(--navy); }
.article-toc a.is-active { color: var(--navy); font-weight: 700; }
.article-toc__num { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--ink-3); margin-right: 8px; }

.article-metrics { font-size: 12px; color: var(--ink-3); margin-top: 24px; }
.article-metrics__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.article-metrics__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.article-metrics__val { font-family: 'PT Serif', serif; font-size: 20px; color: var(--ink); line-height: 1; }
.article-metrics__label { font-size: 10.5px; }

/* Article body */
.article-body { max-width: none; }
.article-tldr {
  background: rgba(243,239,230,.6);
  border-left: 2px solid var(--brass);
  padding: 28px;
  margin-bottom: 48px;
}
.article-tldr__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--brass);
  margin-bottom: 16px;
}
.article-tldr ol { list-style: none; }
.article-tldr li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
}
.article-tldr li:last-child { margin-bottom: 0; }
.article-tldr__num { font-family: 'PT Serif', serif; font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.6; }

.article-section { margin-bottom: 48px; }
.article-section h2 {
  font-family: 'PT Serif', serif;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 20px;
  margin-top: 32px;
}
.article-section__num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--brass); margin-right: 12px; vertical-align: middle; }
.article-section p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.article-figure { margin: 32px 0; border: 1px solid var(--rule); padding: 20px; }
.article-figure__img { width: 100%; aspect-ratio: 16/7; }
.article-figure figcaption { margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.article-figure figcaption strong { color: var(--ink-2); }

.article-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  margin: 32px 0;
}
.article-stats__item {
  padding: 20px;
  border-right: 1px solid var(--ink);
}
.article-stats__item:last-child { border-right: 0; }
.article-stats__val { font-family: 'PT Serif', serif; font-size: 36px; line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.article-stats__label { margin-top: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.article-stats__sub { margin-top: 4px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--ink-3); }

.article-pullquote {
  margin: 56px 0;
  padding: 32px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.article-pullquote p {
  font-family: 'PT Serif', serif;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
  font-style: italic;
  margin: 12px 0 0;
}

.article-references { margin-top: 64px; }
.article-references h2 {
  font-family: 'PT Serif', serif;
  font-size: 28px;
  letter-spacing: -.01em;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 20px;
}
.article-references ol { list-style: none; }
.article-references li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.article-references__num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); }

.article-author-box {
  margin-top: 64px;
  border: 1px solid var(--rule);
  padding: 28px;
  background: rgba(243,239,230,.4);
}
.article-author-box__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--brass);
  margin-bottom: 8px;
}
.article-author-box__head { display: flex; align-items: flex-start; gap: 20px; }
.article-author-box__name { font-family: 'PT Serif', serif; font-size: 22px; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.article-author-box__aff { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.article-author-box__bio { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.article-author-box__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  transition: color .2s;
}
.article-author-box__link:hover { color: var(--ink); }

.article-nav {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
  transition: color .2s;
}
.article-nav__back:hover { color: var(--navy); }
.article-nav__num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); }

/* ───────────────────────────────────────────────────
   WordPress entry-content / article-content
─────────────────────────────────────────────────── */
.article-content p,
.entry-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.article-content h2,
.entry-content h2 {
  font-family: 'PT Serif', serif;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-top: 16px;
}
.article-content h3,
.entry-content h3 {
  font-family: 'PT Serif', serif;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-content blockquote,
.entry-content blockquote {
  border-left: 2px solid var(--brass);
  padding: 16px 24px;
  margin: 28px 0;
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
}
.article-content ul,
.entry-content ul,
.article-content ol,
.entry-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-content li,
.entry-content li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.article-content a,
.entry-content a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(15,61,110,.3);
}
.article-content a:hover,
.entry-content a:hover {
  text-decoration-color: var(--navy);
}
.article-content img,
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px 0;
}
.article-content figure,
.entry-content figure {
  margin: 32px 0;
}
.article-content figcaption,
.entry-content figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
}
.article-content table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 24px 0;
}
.article-content th,
.entry-content th {
  background: var(--paper-2);
  font-weight: 700;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  text-align: left;
}
.article-content td,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
.article-content code,
.entry-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 2px;
}
.article-content pre,
.entry-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 20px 24px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  margin: 24px 0;
}
/* First paragraph dropcap */
.article-content > p:first-of-type::first-letter {
  font-family: 'PT Serif', serif;
  float: left;
  font-size: 64px;
  line-height: .92;
  padding: 6px 10px 0 0;
  color: var(--navy);
  font-weight: 700;
}

/* ───────────────────────────────────────────────────
   SVG Inline helpers
─────────────────────────────────────────────────── */
.ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ───────────────────────────────────────────────────
   Pulse animation
─────────────────────────────────────────────────── */
@keyframes pulseDot { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.4; transform:scale(.7);} }
.pulse-dot { animation: pulseDot 1.6s ease-in-out infinite; display:inline-block; }

/* ───────────────────────────────────────────────────
   Route / Page fade-in
─────────────────────────────────────────────────── */
@keyframes pageFade { from { opacity:0; transform: translateY(6px);} to { opacity:1; transform:none; } }
.page-enter { animation: pageFade .35s ease both; }

/* ───────────────────────────────────────────────────
   Utility
─────────────────────────────────────────────────── */
/* ───────────────────────────────────────────────────
   Pagination
─────────────────────────────────────────────────── */
.page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all .2s;
}
.page-numbers:hover { border-color: var(--navy); color: var(--navy); }
.page-numbers.current { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.page-numbers.dots { border: 0; padding: 8px 4px; }
.page-numbers.prev,
.page-numbers.next { gap: 8px; }

.text-navy  { color: var(--navy); }
.text-brass { color: var(--brass); }
.text-brass-2 { color: var(--brass-2); }
.text-ink-3 { color: var(--ink-3); }
.text-paper { color: var(--paper); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
