/* ═══════════════════════════════════════════════════════════════
   The Clinical Lighthouse — Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #666666;
  --card: #f8f9fa;
  --border: #e5e7eb;
  --accent: #1B2A4A;
  --accent-hover: #142038;
  --gold: #C5A55A;
  --gold-hover: #b8963f;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --maxw: 720px;
  --header-bg: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --card: #18181b;
  --border: #27272a;
  --accent: #3d5a8a;
  --accent-hover: #5a7ab5;
  --gold: #d4b76a;
  --gold-hover: #e0c87a;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
  --header-bg: rgba(10, 10, 10, 0.92);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

/* ── Animations ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 0;
}
.header-inner .header-nav {
  margin-left: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo img {
  height: 54px;
  width: auto;
}
.logo-motto {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  font-style: italic;
  opacity: 0.9;
}

/* Topics dropdown */
.topics-dropdown {
  position: relative;
  margin-left: 12px;
}
.topics-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}
.topics-toggle:hover,
.topics-toggle[aria-expanded="true"] {
  color: var(--fg);
  border-color: var(--accent);
}
.topics-toggle svg {
  transition: transform .2s ease;
}
.topics-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.topics-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 100;
  padding: 4px 0;
}
.topics-menu--open {
  display: block;
}
.topics-menu__item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  transition: background .1s ease;
}
.topics-menu__item:hover {
  background: var(--border);
}
.topics-menu__item--active {
  color: var(--accent);
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
.nav-user { font-weight: 600; color: var(--fg); }
.btn-primary-sm {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s;
}
.btn-primary-sm:hover { background: var(--accent-hover); }

.nav-badge-pro {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-badge-free {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #6b7280;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Hamburger button ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
  z-index: 201;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger--open span:nth-child(2) {
  opacity: 0;
}
.hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile slide-out menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  z-index: 200;
  padding: 72px 20px 24px;
  overflow-y: auto;
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
.mobile-menu--open {
  right: 0;
}
.mobile-menu__section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 4px 12px;
  margin-bottom: 4px;
}
.mobile-menu__link {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s ease;
}
.mobile-menu__link:hover {
  background: var(--border);
}
.mobile-menu__cta {
  font-weight: 600;
  color: var(--gold);
}
.mobile-menu__user {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.mobile-menu__divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.mobile-menu .theme-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
}
.mobile-menu .theme-toggle:hover {
  background: var(--border);
}

body.menu-open {
  overflow: hidden;
}
/* Overlay element behind mobile menu */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
}
.mobile-overlay--visible {
  display: block;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--fg); background: var(--card); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Axis Header ── */
.axis-header {
  padding: 36px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.axis-header__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.axis-header__desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.6;
  max-width: 600px;
}
.axis-header__back {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.axis-header__back:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── Topbar / Branding ── */
.topbar {
  text-align: center;
  padding: 24px 24px 0;
}
.brand-tagline {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.article-counter {
  font-size: 13px;
  color: var(--muted);
}
.counter-number {
  font-weight: 700;
  color: var(--accent);
}

/* ── Hero subbar ── */
.hero-subbar {
  background: var(--accent);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 24px;
  text-align: center;
}
.hero-subbar__text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13.5px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 0;
  max-width: 1120px;
  margin: 0 auto;
}
[data-theme="dark"] .hero-subbar {
  background: var(--card);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .hero-subbar__text {
  color: rgba(61,90,138,0.9);
}

/* ── Section headers ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   HERO CARD
   ═══════════════════════════════════════════════════════════════ */
/* Free article tag */
.free-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  background: rgba(34,197,94,.85);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.free-tag--sm {
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  font-size: 10px;
}
.free-tag--member {
  background: rgba(38, 102, 178, .85);
}
.med-card__img-wrap,
.std-card__img-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 480px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 8px;
}
.hero-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 40%, #1a0533 100%);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.hero-card--has-img .hero-card__bg {
  background-size: cover;
  background-position: center;
}
.hero-card:hover .hero-card__bg { transform: scale(1.03); }
.hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.2) 100%);
}
.hero-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  padding: 48px 48px 44px;
}
.hero-card__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-card__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  max-width: 700px;
}
.hero-card__dek {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 16px;
}
.hero-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.hero-card__cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 10px 24px;
  border-radius: 8px;
  width: fit-content;
  transition: background 0.2s, transform 0.2s;
}
.hero-card:hover .hero-card__cta {
  background: var(--accent-hover);
  transform: translateX(4px);
}
/* Hero badges always on dark bg */
.hero-card__badges .badge {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════════════════════
   FULL-WIDTH HERO
   ═══════════════════════════════════════════════════════════════ */
.hero-full {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  text-decoration: none;
  color: #fff;
}
.hero-full__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 40%, #1a0533 100%);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.hero-full--has-img .hero-full__bg {
  background-size: cover;
  background-position: center;
}
.hero-full:hover .hero-full__bg { transform: scale(1.03); }
.hero-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.15) 100%);
}
.hero-full__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  padding: 56px 0 52px;
}
.hero-full__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero-full__inner .hero-card__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-full__inner .hero-card__badges .badge {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
}
.hero-full__title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  max-width: 740px;
}
.hero-full__dek {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin-bottom: 18px;
}
.hero-full__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 22px;
}
.hero-full__cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 10px 24px;
  border-radius: 8px;
  width: fit-content;
  transition: background 0.2s, transform 0.2s;
}
.hero-full:hover .hero-full__cta {
  background: var(--accent-hover);
  transform: translateX(4px);
}
.hero-full .free-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}
@media (max-width: 768px) {
  .hero-full { min-height: 400px; }
  .hero-full__content { min-height: 400px; padding: 36px 0 36px; }
  .hero-full__inner { padding: 0 20px; }
  .hero-full__title { font-size: 28px; }
  .hero-full__dek { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════════
   DIGEST AS EDITOR'S PICK CARD
   ═══════════════════════════════════════════════════════════════ */
/* Digest pick: stack vertically so image is on top, body below, podcast at bottom */
.med-card--digest {
  flex-direction: column;
  position: relative;
}
.med-card--digest .med-card__img-wrap {
  width: 100%;
  height: 160px;
  flex-shrink: 0;
}
.med-card--digest .med-card__body {
  padding: 16px 20px 12px;
  background: #1e3a5f;
  color: #fff;
}
.med-card--digest .med-card__title {
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
}
.med-card--digest .med-card__dek {
  font-size: 13px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
}
.med-card--digest .med-card__meta {
  color: rgba(255, 255, 255, 0.7);
}
/* The podcast bar shares the navy body so the whole card reads as one
   solid block. The audio control keeps its native browser styling. */
.med-card--digest .med-card__podcast {
  background: #1e3a5f;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.med-card--digest .med-card__podcast-label {
  color: #fff;
}
.med-card--digest .med-card__podcast-blurb {
  color: rgba(255, 255, 255, 0.75);
}
.med-card--digest-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 60%, #1a0533 100%);
  color: #fff;
  min-height: 100%;
}
.med-card--digest-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.8);
}
.badge--digest {
  background: rgba(30,58,95,0.15) !important;
  color: #1e3a5f !important;
}
[data-theme="dark"] .badge--digest {
  background: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.8) !important;
}
.med-card__podcast {
  padding: 8px 16px 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.med-card__podcast-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}
.med-card__podcast-blurb {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 8px;
}
.med-card__podcast audio {
  width: 100%;
  height: 32px;
}
.med-card--digest-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1;
}
.med-card--digest-overlay-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1e3a5f;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
}
.med-card--digest-overlay-seg {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
}
.med-card__img-wrap { position: relative; }

/* ═══════════════════════════════════════════════════════════════
   DAILY DIGEST CARD
   ═══════════════════════════════════════════════════════════════ */
.digest-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
  animation: fadeSlideUp 0.5s ease both;
}
.digest-card__header {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 60%, #1a0533 100%);
  padding: 32px 36px 24px;
  color: #fff;
}
[data-theme="dark"] .digest-card__header {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}
.digest-card__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.digest-card__meta {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.digest-card__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.digest-hl {
  padding: 24px 28px;
  text-decoration: none;
  color: var(--fg);
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.digest-hl:last-child { border-right: none; }
.digest-hl:hover { background: var(--bg); }
.digest-hl__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--fg);
}
.digest-hl__summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.digest-card__briefs {
  border-top: 1px solid var(--border);
  padding: 20px 28px;
}
.digest-card__briefs-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 12px;
}
.digest-card__briefs-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.digest-card__briefs-list li {
  font-size: 13px;
  line-height: 1.5;
  padding: 4px 0;
}
.digest-card__briefs-list a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s;
}
.digest-card__briefs-list a:hover {
  color: var(--accent);
}
.digest-card__podcast {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.digest-card__podcast-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
@media (max-width: 768px) {
  .digest-card__highlights {
    grid-template-columns: 1fr;
  }
  .digest-hl {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .digest-hl:last-child { border-bottom: none; }
  .digest-card__briefs-list {
    grid-template-columns: 1fr;
  }
  .digest-card__podcast {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MEDIUM CARDS
   ═══════════════════════════════════════════════════════════════ */
.medium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 8px;
}
.med-card {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  animation: fadeSlideUp 0.5s ease both;
}
.med-card:hover {
  box-shadow: 0 12px 32px var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.med-card__img-wrap {
  width: 220px;
  flex-shrink: 0;
  align-self: stretch;
}
.med-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.med-card__img--placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e3a5f, #4338ca);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
}
.med-card__img--placeholder svg { width: 48px; height: 48px; }
.med-card__body { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
.med-card__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.med-card__title { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.med-card__dek { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.med-card__meta { font-size: 12px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════
   STANDARD CARDS GRID
   ═══════════════════════════════════════════════════════════════ */
/* ── Latest carousel wrapper ── */
.latest-carousel {
  position: relative;
  margin-bottom: 64px;
}
.latest-carousel__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.latest-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.latest-carousel__btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-size: 16px;
}
.latest-carousel__btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
}
.latest-carousel__btn:disabled {
  opacity: .3;
  cursor: default;
}
.latest-carousel__dots {
  display: flex;
  gap: 6px;
}
.latest-carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.latest-carousel__dot--active {
  background: var(--accent);
  transform: scale(1.3);
}
.latest-carousel__counter {
  font-size: 12px;
  color: var(--muted);
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.std-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  animation: fadeSlideUp 0.5s ease both;
}
.std-card:hover {
  box-shadow: 0 12px 32px var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.std-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.std-card__img--placeholder {
  width: 100%; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0f172a, #312e81);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.2);
}
.std-card__img--placeholder svg { width: 40px; height: 40px; }
.std-card__body { padding: 18px 20px 20px; }
.std-card__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.std-card__title { font-size: 15px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.std-card__dek { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.std-card__meta { font-size: 11px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.4;
}
/* Light theme (default) */
.badge--journal { background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.4); color: #7c3aed; }
.badge--specialty { background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.4); color: #2563eb; }
.badge--study-design { background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.4); color: #16a34a; }
.badge--guideline { background: rgba(197, 165, 90, 0.12); border: 1px solid rgba(197, 165, 90, 0.5); color: #8a6d2e; font-weight: 700; }
/* Dark theme */
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .gate-box input:focus { box-shadow: 0 0 0 3px rgba(90, 122, 181, 0.15); }
[data-theme="dark"] .badge--journal { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); color: #a78bfa; }
[data-theme="dark"] .badge--specialty { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
[data-theme="dark"] .badge--study-design { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.3); color: #4ade80; }
[data-theme="dark"] .badge--guideline { background: rgba(212, 183, 106, 0.14); border-color: rgba(212, 183, 106, 0.4); color: #d4b76a; }

a.badge--clickable {
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.badge--clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ═══════════════════════════════════════════════════════════════
   SUBSCRIBE GATE
   ═══════════════════════════════════════════════════════════════ */
.subscribe-gate {
  position: relative;
  margin-top: -60px;
  padding-top: 0;
}
.gate-preview {
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.gate-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  gap: 32px;
}
.gate-login, .gate-signup { flex: 1; }
.pro-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.gate-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.gate-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  margin-bottom: 10px;
}
.gate-box input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
}
.upgrade-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.upgrade-btn:hover { background: var(--accent-hover); }
.gate-divider {
  display: flex;
  align-items: center;
  width: 1px;
  background: var(--border);
  position: relative;
}
.gate-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0;
}
.gate-signup p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.paywall-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.paywall-features li {
  font-size: 14px;
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: var(--fg);
}
.paywall-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.gate-error { color: #ef4444; font-size: 13px; margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 24px;
}
.auth-box {
  max-width: 420px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.auth-box h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-family: inherit;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row .form-group { margin-bottom: 16px; }
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
.form-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}
.auth-next-step {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  font-weight: 500;
}
.btn-primary {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); }
.auth-link { text-align: center; font-size: 14px; color: var(--muted); margin-top: 20px; }
.auth-link a { color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════════════════════════════ */
.article-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.article-header { margin-bottom: 32px; }
.article-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.article-meta-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.article-dek {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
}
.article-hero {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}
.hero-img { width: 100%; height: auto; display: block; }
.article-content { font-size: 17px; line-height: 1.8; }
.article-content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 16px; }
.article-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ── Static pages ── */
.static-page {
  max-width: var(--maxw);
  padding: 60px 24px;
}
.static-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 24px; }
.static-page p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES (Terms of Service / Privacy Policy)
   ══════════════════════════════════════════════════════════════ */
.legal-page {
  max-width: 780px;
  padding: 56px 24px 80px;
}

/* ── Header ── */
.legal-header { margin-bottom: 40px; }
.legal-header__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.legal-header h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.legal-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.legal-meta__sep { opacity: .4; }

/* ── Table of Contents ── */
.legal-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px 20px;
  margin-bottom: 48px;
}
.legal-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.legal-toc__list {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.legal-toc__list li {
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 3px;
  break-inside: avoid;
}
.legal-toc__list a {
  color: var(--fg);
  text-decoration: none;
}
.legal-toc__list a:hover { color: var(--accent); text-decoration: underline; }

/* ── Sections ── */
.legal-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-of-type { border-bottom: none; }

.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.3;
}
.legal-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
  flex-shrink: 0;
}
.legal-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--fg);
}
.legal-section p {
  font-size: 15px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--fg) 80%, var(--muted));
  margin-bottom: 12px;
}
.legal-section a { color: var(--accent); }
.legal-section a:hover { text-decoration: underline; }

/* ── Lists ── */
.legal-list {
  margin: 8px 0 14px 0;
  padding-left: 20px;
}
.legal-list li {
  font-size: 15px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--fg) 80%, var(--muted));
  margin-bottom: 6px;
}
.legal-list--plain { list-style: none; padding-left: 0; }
.legal-list--plain li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.legal-list--plain li:last-child { border-bottom: none; }

/* ── Callouts ── */
.legal-callout {
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.legal-callout h2 { margin-bottom: 10px; }
.legal-callout--warning {
  border-left-color: #b45309;
  background: color-mix(in srgb, #b45309 6%, var(--bg));
}
.legal-callout__lead {
  font-weight: 700;
  font-size: 15px !important;
  color: var(--fg) !important;
  margin-bottom: 8px !important;
}

/* ── Retention table ── */
.legal-table-wrap {
  overflow-x: auto;
  margin: 12px 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table th {
  background: var(--card);
  font-weight: 700;
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.legal-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: color-mix(in srgb, var(--fg) 80%, var(--muted));
  line-height: 1.5;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: color-mix(in srgb, var(--card) 40%, transparent); }

/* ── Contact card ── */
.legal-contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 12px 0 16px;
  display: inline-block;
  min-width: 260px;
}
.legal-contact-card p { margin-bottom: 4px !important; font-size: 14px !important; }
.legal-contact-card__name { font-weight: 700; font-size: 15px !important; color: var(--fg) !important; margin-bottom: 8px !important; }

/* ── Footer note ── */
.legal-footer-note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.legal-footer-note a { color: var(--accent); }

/* ── Language switcher ── */
.lang-switcher {
  position: relative;
  display: inline-block;
  margin-top: 16px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--accent); }
.lang-flag { display: inline-block; border-radius: 2px; vertical-align: middle; flex-shrink: 0; }
.lang-chevron { transition: transform .2s; flex-shrink: 0; color: var(--muted); }
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
  padding: 4px 0;
}
.lang-switcher.open .lang-menu { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--fg);
  text-decoration: none;
  transition: background .1s;
}
.lang-option:hover { background: var(--card); }
.lang-option--active { font-weight: 600; color: var(--accent); }
.lang-option__flag { display: none; }
.lang-option__check { margin-left: auto; color: var(--accent); flex-shrink: 0; }

.legal-meta__en-link { color: var(--accent); text-decoration: none; }
.legal-meta__en-link:hover { text-decoration: underline; }

/* ── Translated body (plain txt → html) ── */
.legal-body--translated h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.legal-body--translated h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 6px;
  color: var(--fg);
}
.legal-body--translated p {
  font-size: 15px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--fg) 80%, var(--muted));
  margin-bottom: 10px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .legal-header h1 { font-size: 26px; }
  .legal-toc__list { columns: 1; }
  .legal-page { padding: 32px 16px 60px; }
  .lang-menu { min-width: 180px; }
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 120px 24px;
}
.empty-state h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════════════════════════════════ */
.ck {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 28px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  padding: 16px 18px 14px;
  z-index: 9000;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
[data-theme="dark"] .ck {
  box-shadow: 0 4px 28px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.2);
}
.ck--in  { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ck--out { opacity: 0; transform: translateY(8px); pointer-events: none; }

.ck__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 12px;
}
.ck__link { color: var(--accent); text-decoration: none; white-space: nowrap; }
.ck__link:hover { text-decoration: underline; }

.ck__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.ck__btn {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1.4;
}
.ck__btn--reject {
  background: transparent;
  color: var(--muted);
}
.ck__btn--reject:hover {
  background: var(--card);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: var(--fg);
}
.ck__btn--accept {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.ck__btn--accept:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

@media (max-width: 480px) {
  .ck { right: 12px; left: 12px; max-width: none; bottom: 12px; }
  .ck__actions { flex-direction: column-reverse; gap: 6px; }
  .ck__btn { width: 100%; text-align: center; padding: 8px 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   AXIS NAVIGATION & HEADER
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero-card__content { padding: 32px 24px 28px; min-height: 360px; }
  .hero-card__title { font-size: 24px; }
  .hero-card__dek { font-size: 14px; }
  .hero-subbar { padding: 7px 20px; }
  .hero-subbar__text { font-size: 12.5px; text-wrap: balance; }
  .medium-grid { grid-template-columns: 1fr; }
  .med-card { flex-direction: column; }
  .med-card__img-wrap { width: 100%; height: 200px; }
  .latest-carousel__track { grid-template-columns: 1fr 1fr; }
  .standard-grid { grid-template-columns: 1fr 1fr; }
  .gate-box { flex-direction: column; padding: 24px; }
  .gate-divider { width: 100%; height: 1px; }
  .gate-divider span { padding: 0 8px; }
  .article-title { font-size: 26px; }
  .topics-menu { min-width: 180px; }
  .axis-header__title { font-size: 24px; }
  .desktop-only { display: none !important; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .logo-motto { display: none; }
  .logo img { height: 40px; }
  .logo { flex: 1; min-width: 0; }
}

@media (max-width: 480px) {
  .standard-grid { grid-template-columns: 1fr; }
  .latest-carousel__track { grid-template-columns: 1fr; }
  .logo img { height: 36px; }
  .auth-box { padding: 28px 20px; }
}

/* ── Email verification banner (minimal, subtle) ── */
.verification-banner {
  background: transparent;
  border-bottom: 1px solid var(--border, #e5e5e5);
  color: var(--muted, #666);
  padding: .5rem 1rem;
  font-size: .8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  line-height: 1.4;
}
.verification-banner::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97706;
  flex-shrink: 0;
}
.verification-banner__link {
  color: var(--text, #111);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.verification-banner__link:hover { color: var(--accent, #3b82f6); }

/* ── Flash messages (minimal pills) ── */
.flash-messages {
  max-width: 640px;
  margin: 1rem auto 0;
  padding: 0 1rem;
}
.flash {
  padding: .625rem 1rem;
  border-radius: 6px;
  font-size: .8125rem;
  margin-bottom: .375rem;
  border: 1px solid transparent;
}
.flash--info    { background: #f8fafc; color: #334155; border-color: #e2e8f0; }
.flash--success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.flash--warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.flash--error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
[data-theme="dark"] .flash--info    { background: #1e293b; color: #cbd5e1; border-color: #334155; }
[data-theme="dark"] .flash--success { background: #14532d; color: #86efac; border-color: #166534; }
[data-theme="dark"] .flash--warning { background: #422006; color: #fde68a; border-color: #78350f; }
[data-theme="dark"] .flash--error   { background: #450a0a; color: #fca5a5; border-color: #7f1d1d; }

/* ── Email verification banner (brand: gold accent + navy CTA) ── */
.verify-banner {
  background: rgba(197, 165, 90, 0.10); /* subtle gold tint */
  color: var(--fg);
  border-bottom: 2px solid var(--gold);
  font-size: .875rem;
  line-height: 1.5;
}
.verify-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.verify-banner__text { flex: 1 1 auto; color: var(--fg); }
.verify-banner__text strong { color: var(--accent); }
.verify-banner__form { margin: 0; flex: 0 0 auto; }
.verify-banner__btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .5rem 1.125rem;
  border-radius: 6px;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
  letter-spacing: .01em;
}
.verify-banner__btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.verify-banner__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[data-theme="dark"] .verify-banner {
  background: rgba(212, 183, 106, 0.08);
  border-bottom-color: var(--gold);
}
[data-theme="dark"] .verify-banner__text strong { color: var(--gold); }
[data-theme="dark"] .verify-banner__btn {
  background: var(--gold);
  color: #1a1200;
}
[data-theme="dark"] .verify-banner__btn:hover { background: var(--gold-hover); }

/* ═══════════════════════════════════════════════════════════════
   THIS WEEK'S MOST READ
   ═══════════════════════════════════════════════════════════════ */
.section-label--trending {
  color: var(--accent);
  flex-wrap: wrap;
  row-gap: 6px;
}
.section-label--trending::after {
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 40%);
}
@media (max-width: 600px) {
  .section-label--trending::after {
    flex-basis: 100%;
  }
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.trend-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.trend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}
[data-theme="dark"] .trend-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
}

.trend-card__rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.trend-card__img-wrap {
  width: 100%;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.trend-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.trend-card:hover .trend-card__img {
  transform: scale(1.04);
}
.trend-card__img--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8edf5, #d0daea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: .6;
}
[data-theme="dark"] .trend-card__img--placeholder {
  background: linear-gradient(135deg, #141b28, #1e2a40);
  color: var(--accent);
  opacity: .8;
}

.trend-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.trend-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.trend-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trend-card__dek {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.trend-card__meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .trending-grid {
    grid-template-columns: 1fr;
  }
  .trend-card {
    flex-direction: row;
    border-radius: 10px;
  }
  .trend-card__img-wrap {
    width: 110px;
    height: auto;
    min-height: 100px;
    flex-shrink: 0;
    border-radius: 0;
  }
  .trend-card__rank {
    top: 8px;
    left: 8px;
  }
  .trend-card__body {
    padding: 12px;
  }
  .trend-card__title {
    font-size: 13px;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }
  .trend-card__dek {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Homepage 3-column grid: Trial Watch | New Guidelines | Latest
   ═══════════════════════════════════════════════════════════════ */
.homepage-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin: 16px 0 56px;
}
.homepage-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.homepage-column__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.column-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
}
.column-list > li {
  border-bottom: 1px solid var(--border);
}
.column-list > li:last-child { border-bottom: none; }
.column-card {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  color: var(--fg);
  text-decoration: none;
  align-items: flex-start;
}
.column-card__img-wrap {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}
.column-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.column-card:hover .column-card__img {
  transform: scale(1.04);
}
.column-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: .35;
  background: linear-gradient(135deg, #e8edf5, #d0daea);
}
.column-card__img--placeholder svg {
  width: 36px;
  height: 36px;
}
[data-theme="dark"] .column-card__img--placeholder {
  background: linear-gradient(135deg, #141b28, #1e2a40);
  opacity: .6;
}
.column-card__body {
  flex: 1;
  min-width: 0;
}
.column-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--fg);
  transition: color .15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Long acronym chains like "AHA/ACC/ACCP/ACEP/CHEST/SCAI/SHM/SIR/SVM/SVN"
     don't break on slashes by default, blowing past the card width. Force
     break-anywhere so the clamp + ellipsis behave. */
  overflow-wrap: anywhere;
  word-break: break-word;
}
.column-card:hover .column-card__title {
  color: var(--accent);
}
.column-card__meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.4;
}
.column-card__sep {
  opacity: 0.6;
  margin: 0 2px;
}
.homepage-column__more {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 14px;
  text-decoration: none;
}
.homepage-column__more:hover {
  text-decoration: underline;
}
.homepage-column__empty {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0;
  font-style: italic;
}

@media (max-width: 900px) {
  .homepage-columns {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Shared section chrome (axis back-link, scope tag)
   ═══════════════════════════════════════════════════════════════ */
.section-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  transition: opacity .15s ease;
}
.section-back:hover { opacity: 0.75; }
.section-back--inverse {
  color: var(--accent);
  margin-bottom: 14px;
}
.section-scope {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 0.55em;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  text-transform: none;
}
.section-axis-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.section-axis-bar__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.section-axis-bar .section-back {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   TRIAL WATCH — /trials  (editorial, scientific tone)
   ═══════════════════════════════════════════════════════════════ */
.trials-page { padding-bottom: 64px; }
.trials-header {
  background: linear-gradient(180deg, #1B2A4A 0%, #243860 100%);
  color: #f0f4ff;
  padding: 56px 24px 48px;
  border-bottom: 4px solid var(--gold);
  margin-bottom: 36px;
}
.trials-header__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.trials-header__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
}
.trials-header__title {
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #fff;
  line-height: 1.05;
}
.trials-header__lede {
  font-size: 17px;
  line-height: 1.55;
  max-width: 64ch;
  color: rgba(255,255,255,0.78);
  margin: 0 0 18px;
}
.trials-header__meta {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
}

/* ── Pivotal hero ──────────────────────────────────────────────── */
.pivotal-hero {
  margin: 0 0 48px;
  position: relative;
}
.pivotal-hero__link {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.pivotal-hero__link:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  transform: translateY(-3px);
}
.pivotal-hero__art {
  position: relative;
  min-height: 320px;
  background: var(--card);
}
.pivotal-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.pivotal-hero__img--placeholder {
  background: linear-gradient(135deg, #e8edf5, #d0daea);
}
.pivotal-hero__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 14px;
  background: var(--gold);
  color: #1B2A4A;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.pivotal-hero__body {
  padding: 38px 38px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pivotal-hero__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.trial-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--fg);
  background: var(--card);
}
.trial-chip--design {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.35);
  color: #16a34a;
}
[data-theme="dark"] .trial-chip--design {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.30);
  color: #4ade80;
}
.trial-chip--journal {
  background: rgba(139, 92, 246, 0.10);
  border-color: rgba(139, 92, 246, 0.35);
  color: #7c3aed;
}
[data-theme="dark"] .trial-chip--journal {
  background: rgba(139, 92, 246, 0.14);
  color: #a78bfa;
}
.pivotal-hero__title {
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.018em;
  margin: 0 0 14px;
  color: var(--fg);
}
.pivotal-hero__dek {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 22px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pivotal-hero__meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pivotal-hero__cta {
  color: var(--accent);
  font-weight: 700;
}

/* ── Section divider ───────────────────────────────────────────── */
.trials-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.trials-section-label__count {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1.2px;
}

/* ── Trials grid ───────────────────────────────────────────────── */
.trials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 40px;
}
.trial-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.trial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}
[data-theme="dark"] .trial-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
}
.trial-card__art {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--card);
}
.trial-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.trial-card:hover .trial-card__img {
  transform: scale(1.04);
}
.trial-card__img--placeholder {
  background: linear-gradient(135deg, #e8edf5, #d0daea);
}
[data-theme="dark"] .trial-card__img--placeholder {
  background: linear-gradient(135deg, #141b28, #1e2a40);
}
.trial-card__design-stamp {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: rgba(27, 42, 74, 0.92);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 4px;
}
.trial-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.trial-card__journal {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  margin-bottom: 8px;
}
.trial-card__title {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trial-card__dek {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trial-card__meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ── Pagination (shared style for trials & news) ───────────────── */
.trials-pagination, .news-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.trials-pagination__btn, .news-pagination__btn {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.trials-pagination__btn:hover, .news-pagination__btn:hover {
  background: var(--accent);
  color: #fff;
}
.trials-pagination__btn--disabled, .news-pagination__btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.trials-pagination__pos, .news-pagination__pos {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.trials-empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .pivotal-hero__link { grid-template-columns: 1fr; }
  .pivotal-hero__art { aspect-ratio: 16/9; min-height: 0; }
  .pivotal-hero__body { padding: 24px; }
  .pivotal-hero__title { font-size: 24px; }
  .trials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .trials-header { padding: 36px 20px 32px; }
  .trials-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   THE BRIEFING — /news  (newsroom feed, state-of-the-art)
   ═══════════════════════════════════════════════════════════════ */
.briefing-page { padding-bottom: 64px; }
.briefing-wrap { max-width: 1120px; }

/* ── Slim masthead ─────────────────────────────────────────────── */
.briefing-masthead {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 30px 24px 28px;
  margin-bottom: 36px;
}
.briefing-masthead__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.briefing-masthead__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.briefing-masthead__title {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--accent);
  margin: 8px 0 0;
  line-height: 1;
}
.briefing-masthead__scope {
  font-size: 0.55em;
  color: var(--gold);
  font-weight: 700;
}
.briefing-masthead__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 999px;
}
.briefing-masthead__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  animation: briefing-pulse 2s ease-in-out infinite;
}
@keyframes briefing-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}
.briefing-masthead__live-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #dc2626;
}
.briefing-masthead__lede {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.5;
  max-width: 64ch;
}

/* ── Shared section-head ───────────────────────────────────────── */
.feed-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.feed-section-head__title {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--accent);
  margin: 0;
  padding-right: 12px;
  border-right: 3px solid var(--gold);
}
.feed-section-head__count {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  font-weight: 600;
}
.feed-section-head__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.feed-section-head--bucket .feed-section-head__title {
  font-size: 24px;
}

/* ── Lead story (horizontal hero) ──────────────────────────────── */
.briefing-lead { margin: 0 0 44px; }
.lead-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.lead-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  transform: translateY(-2px);
}
.lead-card__art {
  position: relative;
  min-height: 360px;
  background: var(--card);
  overflow: hidden;
}
.lead-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.lead-card:hover .lead-card__img { transform: scale(1.04); }
.lead-card__img--placeholder {
  background: linear-gradient(135deg, #1B2A4A, #5a7ab5);
}
.lead-card__pin {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: #1B2A4A;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 7px 12px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.lead-card__body {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lead-card__kickers {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.lead-card__kicker { color: var(--accent); }
.lead-card__design {
  color: var(--gold);
  padding: 3px 9px;
  border: 1px solid rgba(197, 165, 90, 0.45);
  border-radius: 4px;
  letter-spacing: 1px;
}
.lead-card__title {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 12px;
  color: var(--fg);
}
.lead-card__dek {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 22px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lead-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.lead-card__cta {
  font-weight: 700;
  color: var(--accent);
}

/* ── Top stories row ───────────────────────────────────────────── */
.briefing-top { margin: 0 0 44px; }
.briefing-top__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.top-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--fg);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.top-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.top-card__art {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--card);
}
.top-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.top-card:hover .top-card__img { transform: scale(1.04); }
.top-card__img--placeholder {
  background: linear-gradient(135deg, #e8edf5, #d0daea);
}
[data-theme="dark"] .top-card__img--placeholder {
  background: linear-gradient(135deg, #141b28, #1e2a40);
}
.top-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.top-card__kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.top-card__title {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top-card__meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: auto;
}
.top-card__design { color: var(--accent); font-weight: 600; }
.dot-sep { margin: 0 6px; opacity: 0.5; }

/* ── Continuous feed (newsroom rows) ───────────────────────────── */
.briefing-bucket { margin: 0 0 36px; }
.feed-rows {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feed-row + .feed-row {
  border-top: 1px solid var(--border);
}
.feed-row__link {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px 0;
  text-decoration: none;
  color: var(--fg);
  align-items: start;
  transition: opacity .15s ease;
}
.feed-row__link:hover .feed-row__title { color: var(--accent); }
.feed-row__art {
  width: 180px;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--card);
  border-radius: 8px;
  flex-shrink: 0;
}
.feed-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.feed-row__link:hover .feed-row__img { transform: scale(1.04); }
.feed-row__img--placeholder {
  background: linear-gradient(135deg, #e8edf5, #d0daea);
}
[data-theme="dark"] .feed-row__img--placeholder {
  background: linear-gradient(135deg, #141b28, #1e2a40);
}
.feed-row__body { min-width: 0; }
.feed-row__meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.feed-row__journal { color: var(--accent); }
.feed-row__design { color: var(--gold); }
.feed-row__time { color: var(--muted); }
.feed-row__title {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.012em;
  margin: 0 0 6px;
  color: var(--fg);
  transition: color .15s ease;
}
.feed-row__dek {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .lead-card { grid-template-columns: 1fr; }
  .lead-card__art { min-height: 0; aspect-ratio: 16/9; }
  .lead-card__body { padding: 22px 22px 24px; }
  .lead-card__title { font-size: 24px; }
  .briefing-top__grid { grid-template-columns: repeat(2, 1fr); }
  .feed-row__link { grid-template-columns: 130px 1fr; gap: 16px; }
  .feed-row__art { width: 130px; }
  .feed-row__title { font-size: 16px; }
}
@media (max-width: 600px) {
  .briefing-masthead { padding: 24px 20px 22px; }
  .briefing-top__grid { grid-template-columns: 1fr; }
  .feed-row__link { grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; }
  .feed-row__art { width: 96px; border-radius: 6px; }
  .feed-row__title { font-size: 15px; }
  .feed-row__dek { -webkit-line-clamp: 2; font-size: 13px; }
  .feed-row__meta { letter-spacing: 1px; font-size: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   GUIDELINES LIBRARY — /guidelines  (reference / library tone)
   ═══════════════════════════════════════════════════════════════ */
.guidelines-page { padding-bottom: 64px; }

.lib-masthead {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 44px;
  margin-bottom: 40px;
  position: relative;
}
.lib-masthead::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--accent) 100%);
}
.lib-masthead__inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.lib-masthead__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--gold);
  margin-bottom: 16px;
}
.lib-masthead__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 10px;
}
.lib-masthead__title {
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--accent);
  line-height: 1.05;
}
.lib-masthead__lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto 18px;
  max-width: 64ch;
}
.lib-masthead__count {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

/* ── Library section headers ─────────────────────────────────── */
.lib-section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
}
.lib-section-header__title {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--accent);
  margin: 0;
}
.lib-section-header__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Recently issued: 3-up spotlight grid ─────────────────────── */
.lib-spotlight { margin: 0 0 56px; }
.lib-spotlight__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.spotlight-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--fg);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,.10);
}
.spotlight-card__art {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--card);
}
.spotlight-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.spotlight-card:hover .spotlight-card__img { transform: scale(1.04); }
.spotlight-card__img--placeholder {
  background: linear-gradient(135deg, #1B2A4A, #5a7ab5);
}
.spotlight-card__year {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: #1B2A4A;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: Georgia, serif;
}
.spotlight-card__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.spotlight-card__society {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.spotlight-card__society-co {
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.8px;
}
.spotlight-card__title {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spotlight-card__dek {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spotlight-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.spotlight-card__fam {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(27, 42, 74, 0.10);
  color: var(--accent);
}
[data-theme="dark"] .spotlight-card__fam {
  background: rgba(90, 122, 181, 0.20);
  color: #93b4e0;
}
.spotlight-card__cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── All guidelines: catalogue list (row-based) ─────────────── */
.lib-catalogue { margin: 0 0 40px; }
.lib-catalogue__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--accent);
}
.catalogue-row {
  border-bottom: 1px solid var(--border);
}
.catalogue-row__link {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  gap: 24px;
  padding: 22px 8px;
  text-decoration: none;
  color: var(--fg);
  align-items: start;
  transition: background .15s ease;
}
.catalogue-row__link:hover {
  background: var(--card);
}
.catalogue-row__year {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--gold);
  line-height: 1;
}
.catalogue-row__main {
  min-width: 0;
}
.catalogue-row__society {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.catalogue-row__society-co {
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.8px;
}
.catalogue-row__title {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--fg);
}
.catalogue-row__link:hover .catalogue-row__title {
  color: var(--accent);
}
.catalogue-row__dek {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalogue-row__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 4px;
}
.catalogue-row__fam {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(27, 42, 74, 0.10);
  color: var(--accent);
}
[data-theme="dark"] .catalogue-row__fam {
  background: rgba(90, 122, 181, 0.20);
  color: #93b4e0;
}
.catalogue-row__cta {
  font-size: 18px;
  color: var(--accent);
  font-weight: 700;
}

.lib-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  font-size: 15px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 14px;
}

@media (max-width: 900px) {
  .lib-spotlight__grid { grid-template-columns: repeat(2, 1fr); }
  .catalogue-row__link {
    grid-template-columns: 60px 1fr 50px;
    gap: 16px;
  }
  .catalogue-row__year { font-size: 22px; }
  .catalogue-row__title { font-size: 16px; }
  .catalogue-row__fam { display: none; }
}
@media (max-width: 600px) {
  .lib-masthead { padding: 40px 20px 32px; }
  .lib-spotlight__grid { grid-template-columns: 1fr; }
  .catalogue-row__link {
    grid-template-columns: 50px 1fr 30px;
    gap: 12px;
    padding: 18px 4px;
  }
  .catalogue-row__year { font-size: 20px; }
  .catalogue-row__dek { -webkit-line-clamp: 3; }
}

