/* =============================================================
   Gazetamjeku — editorial design system
   ============================================================= */

/* ---------- Tokens (light) ---------- */
:root {
  --bg:           #faf8f3;
  --surface:      #ffffff;
  --surface-alt:  #f3ede2;
  --surface-warm: #fbf3e6;

  --ink:          #0e1a1c;
  --ink-soft:     #3d4a4c;
  --muted:        #6b7472;

  --line:         #e3ddcf;
  --line-strong:  #1a2628;

  --primary:       #0b6f63;
  --primary-dark:  #084a42;
  --primary-tint:  #d6ebe7;

  --accent:        #b8732b;
  --accent-soft:   #f6e7d2;

  --danger:        #b91c1c;
  --danger-soft:   #fde2e2;

  --shadow-sm: 0 1px 2px rgba(14, 26, 28, 0.04);
  --shadow-md: 0 4px 16px rgba(14, 26, 28, 0.06);
  --shadow-lg: 0 18px 48px rgba(14, 26, 28, 0.08);

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;

  --font-serif: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1280px;
  --gutter: 24px;

  --header-h: 72px;

  color-scheme: light;
}

/* ---------- Tokens (dark) ---------- */
[data-theme="dark"] {
  --bg:           #0e1414;
  --surface:      #161e1f;
  --surface-alt:  #1d2627;
  --surface-warm: #1f2625;

  --ink:          #f3eee2;
  --ink-soft:     #c5beac;
  --muted:        #8a8a7e;

  --line:         #2a3232;
  --line-strong:  #f3eee2;

  --primary:       #4fc8b2;
  --primary-dark:  #2eaa92;
  --primary-tint:  #143430;

  --accent:        #d99655;
  --accent-soft:   #2a2118;

  --danger:        #ef4444;
  --danger-soft:   #2a1818;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

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

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Visually hidden helper */
.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid { display: grid; }
.flex { display: flex; }

main:focus { outline: none; }

/* ============================================================
   GLOBAL CHROME — topbar, header, nav, footer
   ============================================================ */

/* ---------- Top bar ---------- */
.topbar {
  background: var(--line-strong);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: .01em;
}
[data-theme="dark"] .topbar { background: #050a0a; color: var(--ink-soft); }
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 24px;
}
.topbar .date { opacity: .8; }
.topbar nav { display: flex; gap: 18px; }
.topbar nav a { opacity: .85; }
.topbar nav a:hover { opacity: 1; color: var(--primary); }
.topbar .socials { display: flex; gap: 6px; }
.topbar .socials a {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  transition: background .15s ease, color .15s ease;
}
.topbar .socials a:hover { background: var(--primary); color: #fff; }
.topbar .socials svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.logo .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 20px;
}
.logo .name { line-height: 1; }
.logo .dot { color: var(--primary); }
.logo small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* Primary nav (inline with header on desktop) */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex: 1;
}
.primary-nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: wrap;
}
.primary-nav li { position: relative; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-tint); }
.primary-nav li.has-sub > a::after {
  content: "";
  width: 6px; height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .6;
}
.primary-nav li ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--surface);
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.primary-nav li.has-sub:hover > ul,
.primary-nav li.has-sub:focus-within > ul { display: block; }
.primary-nav li ul a { width: 100%; padding: 8px 12px; font-weight: 500; }

/* Header utilities (search + theme + menu) */
.header-utils {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--surface-alt); border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Theme toggle shows opposite-mode icon */
[data-theme="dark"] .icon-btn .icon-moon,
:root:not([data-theme="dark"]) .icon-btn .icon-sun { display: none; }

/* Mobile menu button */
.menu-btn { display: none; }

/* Mobile nav drawer (hidden on desktop) */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(14, 26, 28, 0.5);
  backdrop-filter: blur(4px);
}
.mobile-nav .panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  background: var(--surface);
  padding: 22px 18px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .panel-head span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > .panel > ul > li > a,
.mobile-nav .group-title {
  display: block;
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .group-title {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 0;
  padding-top: 18px;
}
.mobile-nav .sub-list a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .sub-list a:hover,
.mobile-nav > .panel > ul > li > a:hover { color: var(--primary); background: var(--primary-tint); }

/* ---------- Breaking news strip ---------- */
.breaking {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  overflow: hidden;
}
.breaking .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
}
.breaking .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.breaking .tag::before {
  content: "";
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.breaking-list {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.breaking-list::-webkit-scrollbar { display: none; }
.breaking-list li { font-size: 13.5px; color: var(--ink-soft); position: relative; }
.breaking-list li + li::before {
  content: "•";
  position: absolute;
  left: -16px;
  color: var(--muted);
}
.breaking-list a:hover { color: var(--primary); }
.breaking-list time { color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1213;
  color: #b9b2a3;
  margin-top: 60px;
}
[data-theme="dark"] .site-footer { background: #050a0a; }
.site-footer a { color: #d8d2c3; }
.site-footer a:hover { color: var(--primary); }
.site-footer .container {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.site-footer .brand .logo { color: #fff; }
.site-footer .brand .logo small { color: #8a8478; }
.site-footer .brand p { font-size: 14px; line-height: 1.7; color: #999184; margin: 16px 0 0; max-width: 32ch; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; font-size: 14px; }
.foot-bottom {
  border-top: 1px solid #1a2425;
  padding: 18px var(--gutter);
  font-size: 12px;
  color: #7a7367;
  text-align: center;
  line-height: 1.6;
}
.foot-bottom .disclaimer {
  display: block;
  max-width: 760px;
  margin: 0 auto 8px;
  font-style: italic;
}

/* ============================================================
   COMPONENTS — labels, cards, sections, forms
   ============================================================ */

/* ---------- Category labels ---------- */
.cat-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0;
  margin: 0 0 10px;
}
.cat-label::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--primary);
}
.cat-label.news    { color: var(--danger); }
.cat-label.news::before    { background: var(--danger); }
.cat-label.expert  { color: var(--accent); }
.cat-label.expert::before  { background: var(--accent); }
.cat-label.solid {
  color: #fff;
  padding: 4px 10px;
  background: var(--primary);
  border-radius: var(--radius-xs);
}
.cat-label.solid::before { display: none; }
.cat-label.solid.news    { background: var(--danger); }
.cat-label.solid.expert  { background: var(--accent); }

/* ---------- Article cards ---------- */
.card {
  display: flex;
  flex-direction: column;
}
.card .thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
}
.card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .thumb img { transform: scale(1.04); }
.card h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.card h3 a:hover { color: var(--primary); }
.card .excerpt {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.card .byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-sans);
  margin-top: auto;
}
.card .byline .author { color: var(--ink-soft); font-weight: 600; }
.card .byline > * + *::before { content: "·"; margin-right: 10px; color: var(--muted); }

/* Lead card variant (larger) */
.card.lead h3 { font-size: 26px; }
.card.lead .thumb { aspect-ratio: 16 / 9; }
.card.lead .excerpt { font-size: 16px; }

/* Compact card (no excerpt, image inline) */
.card-compact {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.card-compact:last-child { border-bottom: 0; }
.card-compact .thumb {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
}
.card-compact .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-compact h4 {
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 6px;
}
.card-compact h4 a:hover { color: var(--primary); }
.card-compact .byline { color: var(--muted); font-size: 12px; }

/* List card (horizontal, wider thumb) */
.card-list {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.card-list .thumb {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
}
.card-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-list h3 { font-size: 21px; margin: 6px 0 8px; }
.card-list .excerpt { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 10px; }
.card-list .byline { color: var(--muted); font-size: 12px; }
.card-list .byline > * + *::before { content: "·"; margin: 0 6px; }

/* Hero card (image background, overlay) */
.card-hero {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 460px;
  background: #0a1213;
  isolation: isolate;
}
.card-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: transform .6s ease, opacity .4s ease;
  z-index: 0;
}
.card-hero:hover img { transform: scale(1.03); }
.card-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10, 18, 19, 0.92) 0%,
    rgba(10, 18, 19, 0.55) 40%,
    rgba(10, 18, 19, 0) 100%);
  z-index: 1;
}
.card-hero .meta {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
}
.card-hero h2 {
  color: #fff;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 22ch;
}
.card-hero h2 a { color: inherit; }
.card-hero .excerpt {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  max-width: 60ch;
  margin: 0 0 14px;
}
.card-hero .byline { color: rgba(255,255,255,.75); font-size: 13px; }
.card-hero .cat-label { color: #fff; }
.card-hero .cat-label::before { background: #fff; }

/* Hero secondary (smaller, half-overlay) */
.card-hero.small { min-height: 220px; }
.card-hero.small .meta { padding: 20px; min-height: 220px; }
.card-hero.small h3 {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
  max-width: 28ch;
}
.card-hero.small h3 a { color: inherit; }

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 14px;
  margin: 0 0 28px;
}
.section-head .kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 4px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 0;
}
.section-head .more {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.section-head .more:hover { color: var(--primary); }
.section-head .more::after { content: " →"; }

/* Section spacing */
.section { padding: 56px 0; }
.section + .section { padding-top: 0; }

/* ============================================================
   HOMEPAGE LAYOUTS
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  padding: 36px 0 8px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
}
.hero-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
}
.hero-side .card-hero.small h3 { font-size: 15.5px; }
.hero-side .card-hero.small .meta { padding: 16px 18px; min-height: 0; }
.hero-side .card-hero.small { min-height: 0; }

/* ---------- Main + sidebar ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 16px 0 40px;
}
.layout main { min-width: 0; }

/* ---------- Grids inside sections ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-mix {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ============================================================
   EXPERT SPOTLIGHT
   ============================================================ */
.expert-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
}
[data-theme="dark"] .expert-block { background: var(--surface-alt); }
.expert-block .portrait {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow-md);
}
.expert-block .portrait img { width: 100%; height: 100%; object-fit: cover; }
.expert-block .kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.expert-block h3 {
  font-size: 28px;
  margin: 0 0 6px;
}
.expert-block .specialty {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.expert-block .bio {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 18px;
  max-width: 60ch;
}
.expert-block .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
}
.expert-block .btn-link::after { content: " →"; }
.expert-block .btn-link:hover { color: var(--primary-dark); }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar > .widget { margin-bottom: 36px; }
.sidebar .widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 10px;
  margin: 0 0 18px;
}
.sidebar .widget-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Numbered "most read" */
.ranked {
  list-style: none;
  counter-reset: rank;
  padding: 0;
  margin: 0;
}
.ranked li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ranked li:last-child { border-bottom: 0; }
.ranked li::before {
  content: counter(rank);
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.ranked li h4 { font-size: 14.5px; margin: 0 0 4px; line-height: 1.3; }
.ranked li h4 a:hover { color: var(--primary); }
.ranked li .byline { font-size: 11.5px; color: var(--muted); }

/* Filter widget */
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.filter-list li:last-child { border-bottom: 0; }
.filter-list .count {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.filter-list a:hover { color: var(--primary); }

/* Ad slot */
.ad-slot {
  display: grid;
  place-items: center;
  gap: 4px;
  background:
    linear-gradient(135deg, rgba(11,111,99,.08), rgba(184,115,43,.08)),
    var(--surface-alt);
  border: 1px dashed var(--muted);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-align: center;
  padding: 60px 12px;
  margin-bottom: 32px;
  min-height: 120px;
  border-radius: var(--radius-md);
}
.ad-slot span,
.ad-slot strong,
.ad-slot small { display: block; }
.ad-slot strong {
  font-size: 18px;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.ad-slot small {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 10px;
  letter-spacing: .08em;
}
.ad-wrap { padding-top: 24px; }
.ad-wrap .ad-slot {
  min-height: 190px;
  margin-bottom: 0;
}
.article-body .ad-slot {
  font-family: var(--font-sans);
  margin: 34px 0;
  padding: 42px 12px;
}
.mobile-sticky-ad { display: none; }

/* Search and editorial forms */
.search-page-form,
.feedback form {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.search-page-form {
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.search-page-form label {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--primary);
}
.search-page-form input,
.feedback input,
.feedback textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.search-page-form button,
.feedback button {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 700;
}
.search-page-form button:hover,
.feedback button:hover {
  background: var(--primary-dark);
  color: #fff;
}
.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink-soft);
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 48px;
  border-radius: var(--radius-md);
  margin: 48px 0;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border: 30px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.newsletter .kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin: 0 0 8px;
  opacity: .85;
}
.newsletter h2 { color: #fff; font-size: 28px; margin: 0 0 10px; max-width: 22ch; }
.newsletter p { margin: 0 0 22px; max-width: 50ch; opacity: .92; }
.newsletter form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  flex: 1;
  min-width: 220px;
  border: 0;
  padding: 14px 18px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.newsletter button {
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.newsletter button:hover { background: var(--accent); }
.newsletter .fine-print {
  font-size: 12px;
  opacity: .8;
  margin: 14px 0 0;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-wrap { padding: 36px 0 60px; }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
}
.article-grid main { min-width: 0; }

.breadcrumbs {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { color: var(--primary-dark); }
.breadcrumbs .sep { color: var(--muted); }

.article-head .cat-label { margin-bottom: 14px; }
.article-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.article-head .deck {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 22px;
  max-width: 60ch;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 28px;
  flex-wrap: wrap;
}
.article-meta .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-alt);
}
.article-meta .avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-meta .author-info { display: flex; flex-direction: column; line-height: 1.3; }
.article-meta .author-info .author { color: var(--ink); font-weight: 700; font-size: 13.5px; }
.article-meta .author-info .role { font-size: 12px; color: var(--muted); }
.article-meta .dots { color: var(--line); }
.article-meta .share { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.share a, .share button {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  background: var(--surface-alt);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.share a:hover, .share button:hover { background: var(--primary); color: #fff; }
.share svg { width: 15px; height: 15px; fill: currentColor; }
.share .label { font-family: var(--font-sans); font-size: 12px; color: var(--muted); margin-right: 4px; }

.featured-img {
  position: relative;
  margin: 0 0 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-img figcaption {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 2px 0;
}

/* Table of contents */
.toc {
  background: var(--surface-alt);
  border-left: 3px solid var(--primary);
  padding: 18px 22px;
  margin: 0 0 32px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.toc-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 10px;
}
.toc ol {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.7;
  padding-left: 22px;
  margin: 0;
  color: var(--ink-soft);
}
.toc a:hover { color: var(--primary); }

/* Article body typography */
.article-body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 68ch;
}
.article-body p { margin: 0 0 1.2em; }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4.2em;
  float: left;
  line-height: .85;
  margin: .06em .08em 0 0;
  color: var(--primary);
  font-weight: 700;
}
.article-body h2 {
  font-size: 26px;
  margin: 1.8em 0 .5em;
  scroll-margin-top: 90px;
}
.article-body h3 { font-size: 21px; margin: 1.6em 0 .4em; }
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin: 0 0 1.2em;
}
.article-body li { margin-bottom: .4em; }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body a {
  color: var(--primary);
  border-bottom: 1px solid var(--primary-tint);
}
.article-body a:hover { border-bottom-color: var(--primary); }

.article-body blockquote {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  border-left: 4px solid var(--primary);
  padding: 8px 0 8px 26px;
  margin: 1.6em 0;
  max-width: none;
}
.article-body blockquote cite {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: .5px;
}

/* Pull quote (centered, big) */
.pullquote {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.25;
  font-style: italic;
  text-align: center;
  color: var(--primary-dark);
  padding: 32px 24px;
  margin: 32px 0;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  max-width: none;
}
[data-theme="dark"] .pullquote { color: var(--primary); }

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
}
.tags a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
}
.tags a:hover { background: var(--primary); color: #fff; }

/* Medical disclaimer */
.medical-disclaimer {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 32px 0;
}
[data-theme="dark"] .medical-disclaimer { background: var(--surface-alt); }
.medical-disclaimer .icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  color: var(--accent);
}
.medical-disclaimer .icon svg { width: 100%; height: 100%; }
.medical-disclaimer p {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.medical-disclaimer strong { color: var(--ink); }

/* Author bio block */
.author-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  margin: 32px 0;
}
.author-card .avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
}
.author-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card .name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 2px;
}
.author-card .role {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 8px;
}
.author-card .bio {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Feedback */
.feedback {
  padding: 28px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  margin: 32px 0;
  text-align: center;
}
.feedback h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--ink-soft);
}
.feedback .buttons { display: inline-flex; gap: 8px; }
.feedback button {
  padding: 10px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.feedback button:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   CATEGORY / ARCHIVE
   ============================================================ */
.archive-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 36px;
}
.archive-hero .kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.archive-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.archive-hero p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* Filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}
.chip:hover { color: var(--primary); border-color: var(--primary); }
.chip[aria-pressed="true"], .chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip .count { color: var(--muted); font-size: 11.5px; }
.chip[aria-pressed="true"] .count, .chip.active .count { color: rgba(255,255,255,.7); }

/* Pagination */
.pager {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 48px 0 16px;
  font-family: var(--font-sans);
}
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.pager a:hover { color: var(--primary); border-color: var(--primary); }
.pager .current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pager .ellipsis { border: 0; background: transparent; }

/* ============================================================
   DOCTOR PROFILE / EXPERT PAGE
   ============================================================ */
.expert-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.expert-hero .container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
}
.expert-hero .portrait {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-md);
}
.expert-hero .portrait img { width: 100%; height: 100%; object-fit: cover; }
.expert-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}
.expert-hero .role {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.expert-hero .credentials {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.expert-hero .credentials li {
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 5px 12px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
}
[data-theme="dark"] .expert-hero .credentials li { color: var(--primary); }
.expert-hero .bio {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 22px;
}
.expert-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn.secondary:hover { background: var(--ink); color: var(--bg); }
.btn.ghost {
  background: transparent;
  color: var(--primary);
}
.btn.ghost:hover { background: var(--primary-tint); color: var(--primary-dark); }

/* ============================================================
   Q&A PAGE
   ============================================================ */
.qa-disclaimer {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  margin: 24px 0 32px;
}
[data-theme="dark"] .qa-disclaimer { background: var(--surface-alt); }
.qa-disclaimer .icon { color: var(--accent); width: 28px; height: 28px; flex-shrink: 0; }
.qa-disclaimer h3 { font-family: var(--font-sans); font-size: 14px; margin: 0 0 6px; }
.qa-disclaimer p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.qa-list { list-style: none; padding: 0; margin: 0; }
.qa-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.qa-item .q-cat {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.qa-item h3 { font-size: 20px; margin: 0 0 10px; }
.qa-item h3 a:hover { color: var(--primary); }
.qa-item .answer-preview {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 10px;
  max-width: 72ch;
}
.qa-item .meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
}
.qa-item .meta .doctor { color: var(--ink); font-weight: 600; }

/* Q&A form */
.qa-form {
  padding: 32px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  margin: 40px 0;
}
.qa-form h2 { font-size: 24px; margin: 0 0 8px; }
.qa-form p.intro { color: var(--ink-soft); margin: 0 0 24px; }

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.form-row .hint {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
  font-family: var(--font-sans);
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
  border-color: var(--primary);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   ABOUT / CONTACT
   ============================================================ */
.page-hero {
  padding: 60px 0 24px;
  border-bottom: 1px solid var(--line);
}
.page-hero .kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.page-hero .deck {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0;
  font-style: italic;
}

.prose {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 68ch;
}
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 24px; margin: 1.6em 0 .5em; }
.prose ul { padding-left: 22px; margin: 0 0 1.2em; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px 0;
}
.value-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.value-card .num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 14px;
}
.value-card h3 { font-size: 18px; margin: 0 0 8px; }
.value-card p { font-family: var(--font-sans); font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0 48px;
}
.team-member .portrait {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-alt);
  margin-bottom: 14px;
}
.team-member .portrait img { width: 100%; height: 100%; object-fit: cover; }
.team-member h4 { font-size: 17px; margin: 0 0 4px; }
.team-member .role { font-family: var(--font-sans); font-size: 12.5px; color: var(--muted); margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  margin: 40px 0;
}
.contact-info h3 { font-size: 14px; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 1.8px; margin: 0 0 8px; color: var(--ink-soft); }
.contact-info p { font-family: var(--font-sans); font-size: 15px; color: var(--ink); margin: 0 0 22px; }
.contact-info a { color: var(--primary); }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-bar-large {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 22px;
  max-width: 700px;
  margin: 16px 0 24px;
}
.search-bar-large input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 16px;
  padding: 12px 0;
}
.search-bar-large input:focus { outline: none; }
.search-bar-large button {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.search-bar-large button:hover { background: var(--primary-dark); }

.search-summary {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}
.search-summary strong { color: var(--ink); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 20px; color: var(--line-strong); opacity: .4; }
.empty-state h2 { font-size: 24px; margin: 0 0 8px; }
.empty-state p { font-family: var(--font-sans); font-size: 14px; max-width: 40ch; margin: 0 auto; }

/* ============================================================
   SEARCH OVERLAY (header search)
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 28, 0.6);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  backdrop-filter: blur(4px);
}
.search-overlay.open { display: flex; }
.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.search-overlay-inner form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.search-overlay-inner input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 18px;
  padding: 14px 0;
}
.search-overlay-inner input:focus { outline: none; }
.search-overlay-inner button.close {
  width: 36px; height: 36px;
  background: var(--surface-alt);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.search-overlay-inner button.close:hover { color: var(--ink); }
.search-overlay-inner .hint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  padding: 16px;
}
.search-overlay-inner kbd {
  display: inline-block;
  padding: 2px 6px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 11px;
  font-family: var(--font-sans);
  color: var(--ink-soft);
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .topbar, .site-header, nav, .site-footer, .sidebar, .share, .feedback, .newsletter { display: none !important; }
  .article-grid { grid-template-columns: 1fr; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Laptop (≤ 1180px) — tighten */
@media (max-width: 1180px) {
  :root { --gutter: 20px; }
  .layout, .article-grid { gap: 36px; }
  .site-footer .container { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .site-footer .col-team { display: none; }
}

/* Tablet (≤ 1024px) — sidebar drops, nav collapses inline */
@media (max-width: 1024px) {
  .primary-nav > ul { gap: 0; }
  .primary-nav a { padding: 6px 8px; font-size: 13px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .card-hero { min-height: 380px; }
  .card-hero .meta { min-height: 380px; }
  .layout, .article-grid { grid-template-columns: 1fr; }
  .sidebar { max-width: 100%; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-mix { grid-template-columns: 1fr 1fr; }
  .grid-mix > :first-child { grid-column: 1 / -1; }
  .expert-block { grid-template-columns: 200px 1fr; padding: 28px; }
  .expert-block h3 { font-size: 24px; }
  .expert-hero .container { grid-template-columns: 180px 1fr; gap: 28px; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .values { grid-template-columns: 1fr; }
}

/* Tablet portrait / hide-nav threshold (≤ 880px) */
@media (max-width: 880px) {
  .primary-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-utils .search-trigger { display: none; }
  .mobile-nav.open { display: flex; }
}

/* Phone (≤ 640px) */
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 60px; }

  .topbar { display: none; }
  .site-header .container { gap: 12px; padding: 10px 16px; }
  .logo { font-size: 24px; }
  .logo .mark { width: 32px; height: 32px; font-size: 16px; }
  .logo small { display: none; }
  .breaking .container { height: 38px; gap: 12px; }
  .breaking .tag { padding: 3px 8px; font-size: 10px; }
  .breaking-list { gap: 22px; }

  .hero { padding: 22px 0 0; }
  .hero-grid { gap: 14px; }
  .hero-side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .card-hero { min-height: 320px; border-radius: var(--radius-sm); }
  .card-hero .meta { padding: 22px; min-height: 320px; }
  .card-hero h2 { font-size: 24px; }
  .card-hero.small { min-height: 180px; }
  .card-hero.small .meta { padding: 16px; min-height: 180px; }

  .grid-3, .grid-2, .grid-mix { grid-template-columns: 1fr; gap: 22px; }
  .grid-mix > :first-child { grid-column: auto; }
  .card-list { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .card-list .thumb { aspect-ratio: 16 / 10; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 10px; margin-bottom: 22px; }
  .section-head h2 { font-size: 22px; }
  .section { padding: 36px 0; }

  .expert-block { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .expert-block .portrait { max-width: 200px; }

  .article-head h1 { font-size: 28px; }
  .article-head .deck { font-size: 16.5px; }
  .article-meta { gap: 10px; font-size: 12px; }
  .article-meta .share { margin-left: 0; width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }
  .article-body { font-size: 16.5px; }
  .article-body h2 { font-size: 22px; }
  .article-body blockquote { font-size: 20px; }
  .pullquote { font-size: 22px; padding: 22px 12px; }

  .newsletter { padding: 32px 22px; }
  .newsletter h2 { font-size: 22px; }
  .newsletter form { flex-direction: column; }
  .newsletter input[type="email"] { min-width: 0; }
  .search-page-form { grid-template-columns: 1fr; }
  .ad-wrap .ad-slot { min-height: 120px; }
  .sidebar .ad-slot { display: none; }
  .mobile-sticky-ad {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 80;
    padding: 8px;
    background: rgba(250, 248, 243, .96);
    border-top: 1px solid var(--line);
  }
  [data-theme="dark"] .mobile-sticky-ad { background: rgba(14, 20, 20, .96); }
  .mobile-sticky-ad .ad-slot {
    min-height: 50px;
    padding: 8px;
    margin: 0;
    border-radius: var(--radius-sm);
  }
  .mobile-sticky-ad .ad-slot strong { font-size: 13px; }
  .mobile-sticky-ad .ad-slot small { display: none; }

  .expert-hero { padding: 36px 0; }
  .expert-hero .container { grid-template-columns: 1fr; text-align: left; gap: 18px; }
  .expert-hero .portrait { max-width: 160px; }

  .team { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .ranked li::before { font-size: 24px; }
  .ranked li h4 { font-size: 14px; }
}

/* Touch device tap targets */
@media (pointer: coarse) {
  .icon-btn, .pager a, .pager span, .chip, .tags a { min-height: 44px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
