/* =========================================================
   SOVEREIGN-TERMINAL — clean health news magazine
   White canvas, soft violet accent, rounded cards,
   landscape (5:3 / 4:3) imagery throughout
   ========================================================= */

/* ── RESET & TOKENS ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Accent (overridden by colour schemes) */
  --accent:      #7357F6;
  --accent-deep: #5A3FDB;
  --accent-soft: #EEEAFE;
  --accent-rgb:  115, 87, 246;
  --tint:        #F7F6FD;
  --tint-2:      #ECE9FA;

  /* Neutrals */
  --paper:  #FFFFFF;
  --ink:    #16142B;
  --ink-2:  #3B3852;
  --muted:  #6E6B85;
  --line:   #E8E6F0;
  --dark:   #14122A;
  --darker: #0E0C20;
  --danger: #E5484D;

  /* Logo sizes (overridden from the Customizer) */
  --logo-h:        42px;
  --logo-h-m:      38px;
  --footer-logo-h: 40px;

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & depth */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --sh-sm: 0 1px 2px rgba(22, 20, 43, .04), 0 4px 14px rgba(22, 20, 43, .05);
  --sh-md: 0 14px 34px rgba(22, 20, 43, .10);

  /* Layout */
  --container-w: 1200px;
  --gutter:      24px;
  --header-h:    76px;
  --sticky-top:  calc(var(--header-h) + 24px);
}
.admin-bar { --sticky-top: calc(var(--header-h) + 56px); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.nav-locked { overflow: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  /* Footer always sits at the bottom of the viewport on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body.admin-bar { min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); }
.site-main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; margin: 0;
  top: 10px; left: 10px; z-index: 100001;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm);
}

/* ── LAYOUT ───────────────────────────────────────────── */
.container { width: 100%; max-width: calc(var(--container-w) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding: 72px 0; }
.section--first { padding: 32px 0 40px; }
.section--tight { padding-top: 0; }
.section--tint { background: var(--tint); }

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

.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
/* The aside spans the full row height so its inner wrapper has room to stick */
.sidebar { align-self: stretch; }
.sidebar__sticky { position: sticky; top: var(--sticky-top); display: flex; flex-direction: column; gap: 24px; }

/* ── UI ATOMS ─────────────────────────────────────────── */
.icon { flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(var(--accent-rgb), .25); }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn.is-loading .icon { animation: st-spin .8s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--tint-2); color: var(--accent-deep); }

.chip {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--accent); color: #fff; }
.chip--light { background: var(--accent); color: #fff; }
.chip--light:hover { background: #fff; color: var(--accent-deep); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .78rem; color: var(--muted); }
.meta__item { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { opacity: .75; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap .2s, color .2s;
}
.link-arrow:hover { gap: 10px; color: var(--accent-deep); }

/* Section heading with an accent tick on the rule */
.sec-head { position: relative; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sec-head::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 64px; height: 3px; border-radius: 3px; background: var(--accent); }
.sec-head__title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.sec-head__sub { margin-top: 4px; font-size: .92rem; color: var(--muted); }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* Shared media box + placeholder */
.card__media, .side-card__media, .row-card__media, .pick__media, .mini__media, .lead-card__media { overflow: hidden; background: var(--tint-2); }
.card__media img, .side-card__media img, .row-card__media img, .pick__media img, .mini__media img, .lead-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.media-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent-soft), var(--tint-2)); }

/* Whole-card click target: the title link stretches over its card */
.card, .side-card, .lead-card, .row-card, .pick, .mini { position: relative; }
.card__title a::after, .side-card__title a::after, .lead-card__title a::after,
.row-card__title a::after, .pick__title a::after, .mini__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }

.card:hover img, .side-card:hover img, .lead-card:hover img, .row-card:hover img, .pick:hover img, .mini:hover img { transform: scale(1.05); }

/* Multi-line clamps */
.card__title, .side-card__title, .row-card__title, .pick__title, .mini__title, .lead-card__title,
.card__excerpt, .row-card__excerpt, .lead-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

/* ── TOP BAR ──────────────────────────────────────────── */
.topbar { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); color: #fff; font-size: .78rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__date { opacity: .9; font-weight: 500; }
.topbar__list { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.topbar__list a { opacity: .9; transition: opacity .2s; }
.topbar__list a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(22, 20, 43, .07); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.header-logo { flex-shrink: 0; display: flex; align-items: center; }
.header-logo .custom-logo-link { display: block; }
.header-logo img, .nav-menu__brand img { height: var(--logo-h); width: auto; max-width: 240px; object-fit: contain; }
.site-title-text { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

.header-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav-list a:hover { color: var(--accent-deep); background: var(--tint); }
.nav-list > .current-menu-item > a,
.nav-list > .current-menu-ancestor > a,
.nav-list > .current-cat > a,
.nav-list > .current-post-ancestor > a { color: var(--accent-deep); background: var(--accent-soft); }

/* Desktop dropdown */
.nav-list .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-list .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-list .sub-menu a { border-radius: var(--r-sm); font-size: .88rem; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.burger-btn { display: none; }

/* Search panel */
.header-search { border-top: 1px solid var(--line); background: var(--paper); padding: 16px 0; }
.search-form, .search-inline, .nav-menu__search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 6px 6px 16px;
  color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within, .search-inline:focus-within, .nav-menu__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.search-form input, .search-inline input, .nav-menu__search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: none;
  outline: none;
  background: transparent;
  font-size: .95rem;
  color: var(--ink);
}
.search-inline { max-width: 540px; margin-top: 22px; }

/* Mobile drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(22, 20, 43, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
.nav-menu {
  position: fixed;
  top: 0; bottom: 0; right: 0;
  z-index: 100001;
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 20px 24px;
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(22, 20, 43, .18);
  overflow-y: auto;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s;
}
.nav-menu.is-open { transform: none; visibility: visible; }
.nav-menu__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-menu__brand img { height: var(--logo-h-m); }
.nav-menu__brand--text { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.nav-menu__body .menu > li { border-bottom: 1px solid var(--line); }
.nav-menu__body a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink); }
.nav-menu__body a:hover { color: var(--accent); }
.nav-menu__body .menu-item-has-children > a::after { content: '+'; font-size: 1.2rem; color: var(--muted); transition: transform .2s; }
.nav-menu__body .menu-item-has-children.is-open > a::after { transform: rotate(45deg); }
.nav-menu__body .sub-menu { display: none; padding: 0 0 10px 14px; }
.nav-menu__body .is-open > .sub-menu { display: block; }
.nav-menu__body .sub-menu a { padding: 9px 4px; font-size: .92rem; color: var(--ink-2); }
.nav-menu__footer { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.nav-menu__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .8rem; color: var(--muted); }

/* ══════════════════════════════════════════════════════
   HOMEPAGE
══════════════════════════════════════════════════════ */

/* 1. Featured */
.featured__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.featured__row { margin-top: 24px; }

.lead-card {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #fff;
}
.lead-card__media { position: absolute; inset: 0; z-index: -1; }
.lead-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 12, 32, .9) 0%, rgba(14, 12, 32, .55) 38%, rgba(14, 12, 32, 0) 72%);
}
.lead-card__body { display: flex; flex-direction: column; gap: 12px; padding: 32px; max-width: 680px; }
.lead-card__title { font-size: clamp(1.45rem, 2.4vw, 2.05rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: #fff; -webkit-line-clamp: 3; }
.lead-card__excerpt { font-size: .98rem; line-height: 1.6; color: rgba(255, 255, 255, .85); -webkit-line-clamp: 2; }
.lead-card .meta { color: rgba(255, 255, 255, .8); }

.featured__side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.side-card {
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.side-card:hover { box-shadow: var(--sh-md); border-color: transparent; }
.side-card__media { min-height: 100%; }
.side-card__body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px; }
.side-card__title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; -webkit-line-clamp: 3; transition: color .2s; }
.side-card:hover .side-card__title { color: var(--accent-deep); }

/* Vertical card */
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: transparent; }
.card__media { aspect-ratio: 5 / 3; }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.card__title { font-size: 1.06rem; font-weight: 700; line-height: 1.38; -webkit-line-clamp: 3; transition: color .2s; }
.card:hover .card__title { color: var(--accent-deep); }
.card__excerpt { font-size: .9rem; color: var(--muted); line-height: 1.6; -webkit-line-clamp: 2; }
.card .meta { margin-top: auto; padding-top: 2px; }
.card--compact .card__body { gap: 8px; padding: 14px 16px 16px; }
.card--compact .card__title { font-size: .95rem; }

/* 2. Picks */
.picks {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 32px 36px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--tint) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--tint-2);
}
.picks__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.picks__title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.picks__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pick {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: box-shadow .25s;
}
.pick:hover { box-shadow: var(--sh-md); }
.pick__media { flex-shrink: 0; width: 104px; height: 104px; border-radius: 50%; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--tint-2); }
.pick__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pick__title { font-size: 1rem; font-weight: 700; line-height: 1.38; -webkit-line-clamp: 3; transition: color .2s; }
.pick:hover .pick__title { color: var(--accent-deep); }

/* 4. Latest list */
.row-list { display: flex; flex-direction: column; }
.row-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.row-card__media { aspect-ratio: 5 / 3; border-radius: var(--r); }
.row-card__body { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.row-card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.32; letter-spacing: -.015em; -webkit-line-clamp: 3; transition: color .2s; }
.row-card:hover .row-card__title { color: var(--accent-deep); }
.row-card__excerpt { font-size: .93rem; color: var(--muted); line-height: 1.6; -webkit-line-clamp: 2; }
.row-list > .row-card:last-child { border-bottom: none; margin-bottom: 0; }
.load-more { display: flex; justify-content: center; margin-top: 36px; }
.empty-note { color: var(--muted); }

/* ── SIDEBAR PIECES ───────────────────────────────────── */
.subscribe-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 26px 26px;
  border-radius: var(--r-lg);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .16) 0 92px, transparent 93px),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, .08) 0 120px, transparent 121px),
    linear-gradient(155deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 18px 40px rgba(var(--accent-rgb), .28);
  scroll-margin-top: var(--sticky-top);
}
.subscribe-card__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.subscribe-card__eyebrow { display: block; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.subscribe-card__title { margin: 6px 0 8px; font-size: 1.4rem; font-weight: 800; line-height: 1.22; letter-spacing: -.02em; color: #fff; }
.subscribe-card__text { margin-bottom: 20px; font-size: .9rem; line-height: 1.55; opacity: .88; }

.box { padding: 22px 22px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.box__title { position: relative; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 800; }
.box__title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 40px; height: 3px; border-radius: 3px; background: var(--accent); }
.mini-list { counter-reset: mini; }
.mini { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); counter-increment: mini; }
.mini:last-child { border-bottom: none; }
.mini::before {
  content: counter(mini);
  position: absolute;
  top: 10px; left: -4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--paper);
}
.mini__media { width: 64px; height: 64px; border-radius: 50%; }
.mini__body { display: flex; flex-direction: column; gap: 4px; }
.mini__title { font-size: .9rem; font-weight: 700; line-height: 1.38; -webkit-line-clamp: 3; transition: color .2s; }
.mini:hover .mini__title { color: var(--accent-deep); }
.mini .meta { font-size: .74rem; }

/* ── CONTACT FORM 7 (newsletter) ──────────────────────── */
.wpcf7-spinner { display: none !important; }
.wpcf7 form .form-fields p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.wpcf7 form .form-fields p br { display: none; }
.wpcf7 form .form-fields .wpcf7-form-control-wrap { flex: 1 1 180px; min-width: 0; }
.wpcf7 form input[type="email"],
.wpcf7 form input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: .92rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.wpcf7 form input[type="email"]::placeholder { color: #9A97AE; }
.wpcf7 form input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.wpcf7 form input[type="submit"] {
  flex: none;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.wpcf7 form input[type="submit"]:hover { background: var(--accent-deep); }
.wpcf7 form .form-privacy p { margin: 14px 0 0; font-size: .76rem; line-height: 1.5; color: var(--muted); }
.wpcf7 form .form-privacy label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.wpcf7 form .form-privacy input[type="checkbox"] { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; accent-color: var(--accent); }
.wpcf7 form .form-privacy a { text-decoration: underline; text-underline-offset: 2px; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7-not-valid-tip { display: none !important; }
.wpcf7 form input.wpcf7-not-valid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
.wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label { text-decoration: underline wavy var(--danger); text-underline-offset: 3px; }
.wpcf7 form .wpcf7-response-output { margin: 14px 0 0 !important; padding: 10px 14px !important; border-width: 1px !important; border-radius: var(--r-sm); font-size: .82rem; line-height: 1.45; }

/* In the violet subscribe card: stacked, white field, dark button */
.subscribe-card .wpcf7 form .form-fields p { flex-direction: column; gap: 10px; }
.subscribe-card .wpcf7 form .form-fields .wpcf7-form-control-wrap { flex: none; width: 100%; }
.subscribe-card .wpcf7 form input[type="email"] { height: 50px; border-color: transparent; }
.subscribe-card .wpcf7 form input[type="email"]:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.subscribe-card .wpcf7 form input[type="submit"] { width: 100%; height: 50px; background: var(--ink); }
.subscribe-card .wpcf7 form input[type="submit"]:hover { background: #fff; color: var(--accent-deep); }
.subscribe-card .wpcf7 form .form-privacy p { color: rgba(255, 255, 255, .82); }
.subscribe-card .wpcf7 form .form-privacy a { color: #fff; }
.subscribe-card .wpcf7 form .form-privacy input[type="checkbox"] { accent-color: var(--ink); }
.subscribe-card .wpcf7 form input.wpcf7-not-valid { border-color: #FFB4B6; box-shadow: 0 0 0 3px rgba(255, 180, 182, .45); }
.subscribe-card .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label { text-decoration-color: #FFD0D1; }
.subscribe-card .wpcf7 form .wpcf7-response-output { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45) !important; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .68); }
.footer-top { padding: 64px 0 52px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr) minmax(0, .75fr) minmax(0, 1.4fr); gap: 44px; }
.footer-brand__logo { display: inline-block; }
.footer-brand__logo img { height: var(--footer-logo-h); width: auto; max-width: 240px; object-fit: contain; }
.footer-brand__logo--invert img { filter: brightness(0) invert(1); }
.footer-brand__name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: #fff; }
.footer-brand__desc { margin-top: 18px; max-width: 42ch; font-size: .88rem; line-height: 1.7; }
.footer-brand__note { margin-top: 14px; max-width: 46ch; font-size: .76rem; line-height: 1.55; font-style: italic; opacity: .6; }
.footer-col__title { margin-bottom: 18px; font-size: .95rem; font-weight: 700; color: #fff; }
.footer-col__list { display: flex; flex-direction: column; gap: 10px; }
.footer-col__list a { font-size: .9rem; transition: color .2s; }
.footer-col__list a:hover { color: #fff; }
.footer-news { scroll-margin-top: var(--sticky-top); }
.footer-news__text { margin-bottom: 16px; font-size: .88rem; line-height: 1.6; }
.site-footer .wpcf7 form input[type="email"] { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.site-footer .wpcf7 form input[type="email"]::placeholder { color: rgba(255, 255, 255, .45); }
.site-footer .wpcf7 form input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .3); }
.site-footer .wpcf7 form .form-privacy p { color: rgba(255, 255, 255, .55); }
.site-footer .wpcf7 form .form-privacy a { color: rgba(255, 255, 255, .85); }
.site-footer .wpcf7 form .wpcf7-response-output { color: #fff; background: rgba(255, 255, 255, .06); }
.footer-bottom { background: var(--darker); padding: 18px 0; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.footer-copy, .footer-tag { font-size: .8rem; color: rgba(255, 255, 255, .55); }
.footer-copy a { color: rgba(255, 255, 255, .8); }

/* ══════════════════════════════════════════════════════
   INNER PAGES
══════════════════════════════════════════════════════ */

/* Archive / search header */
.archive-main { padding-bottom: 80px; }
.page-head { padding: 32px 0 40px; }
.page-head__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 48px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--tint) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--tint-2);
}
.page-head__text { max-width: 680px; }
.page-head__title { margin-top: 10px; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
.page-head__title span { color: var(--accent); }
.page-head__desc { margin-top: 12px; font-size: 1rem; line-height: 1.65; color: var(--muted); }
.page-head__count {
  display: inline-flex;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent-deep);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  box-shadow: var(--sh-sm);
}

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  transition: border-color .2s, color .2s, background .2s;
}
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border: none; min-width: auto; }

.no-results { padding: 56px 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r-lg); }
.no-results p { margin-bottom: 22px; font-size: 1.05rem; font-weight: 500; color: var(--ink-2); }

/* Single post */
.reading-progress { position: fixed; top: 0; left: 0; z-index: 100002; height: 3px; width: 0; background: var(--accent); border-radius: 0 3px 3px 0; }
.single-main { padding-top: 36px; }
.single-main > .with-sidebar { padding-bottom: 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: .82rem; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.article__title { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.16; letter-spacing: -.025em; }
.article__lede { margin-top: 16px; font-size: 1.15rem; line-height: 1.6; color: var(--muted); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.article__meta .meta { font-size: .85rem; }
.article__hero { margin: 28px 0 34px; border-radius: var(--r-lg); overflow: hidden; background: var(--tint-2); }
.article__hero img { width: 100%; }
.article__hero figcaption { padding: 10px 16px; font-size: .8rem; color: var(--muted); background: var(--tint); }
.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__tags span { margin-right: 4px; font-family: var(--font-head); font-size: .85rem; font-weight: 700; }
.article__tags a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--ink-2); transition: border-color .2s, color .2s; }
.article__tags a:hover { border-color: var(--accent); color: var(--accent); }

/* Prose */
.entry-content { font-size: 1.06rem; line-height: 1.8; color: var(--ink-2); overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5 { margin: 1.8em 0 .6em; font-weight: 800; line-height: 1.3; color: var(--ink); }
.entry-content h2 { font-size: 1.6rem; letter-spacing: -.02em; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content p { margin-bottom: 1.3em; }
.entry-content ul, .entry-content ol { margin-bottom: 1.4em; padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .5em; padding-left: .2em; }
.entry-content li::marker { color: var(--accent); font-weight: 700; }
.entry-content a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(var(--accent-rgb), .45); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content strong { color: var(--ink); }
.entry-content img { border-radius: var(--r); margin: 1.6em 0; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figure img { margin: 0; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--tint);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content code { padding: 2px 7px; border-radius: 6px; background: var(--tint-2); font-size: .88em; }
.entry-content hr { height: 1px; margin: 2.5em 0; border: none; background: var(--line); }
.entry-content table { width: 100%; margin-bottom: 1.6em; border-collapse: collapse; font-size: .94rem; }
.entry-content th, .entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--tint); color: var(--ink); font-family: var(--font-head); }
.related { padding: 64px 0 72px; }

/* Static page */
.page-main { padding: 48px 0 88px; }
.static-page__header { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); position: relative; }
.static-page__header::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 64px; height: 3px; border-radius: 3px; background: var(--accent); }
.static-page__title { font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; }
.static-page__hero { margin-bottom: 32px; border-radius: var(--r-lg); overflow: hidden; }
.static-page__hero img { width: 100%; }

/* 404 */
.error-main { padding: 56px 0 88px; }
.error-page { display: flex; flex-direction: column; align-items: center; margin-bottom: 44px; text-align: center; }
.error-page__code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 15vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page__title { margin-top: 12px; font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; }
.error-page__desc { max-width: 520px; margin-top: 12px; color: var(--muted); }
.error-page .search-inline { width: 100%; }
.error-main .box { max-width: 620px; margin-inline: auto; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .with-sidebar { grid-template-columns: minmax(0, 1fr) 310px; gap: 36px; }
  .row-card { grid-template-columns: 250px minmax(0, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-news { grid-column: span 1; }
}

@media (max-width: 1024px) {
  .header-nav { display: none; }
  .burger-btn { display: inline-grid; margin-right: -8px; }
  .header-actions { margin-left: auto; }
  .header-inner { gap: 12px; }
  .header-logo img { height: var(--logo-h-m); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picks { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .picks__intro { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .picks__intro .eyebrow { width: 100%; }
}

@media (max-width: 960px) {
  .featured__top { grid-template-columns: minmax(0, 1fr); }
  .featured__side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .side-card { grid-template-columns: minmax(0, 1fr); }
  .side-card__media { aspect-ratio: 5 / 3; min-height: 0; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .sidebar__sticky { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .section { padding: 56px 0; }
  .section--first { padding: 24px 0 32px; }
  .section--tight { padding-top: 0; }
  .page-head__panel { padding: 36px 32px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  body.admin-bar { min-height: calc(100vh - 46px); min-height: calc(100dvh - 46px); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .topbar { display: none; }
  /* Phone: logo left, burger right; search + subscribe live in the drawer */
  .header-actions { display: none; }
  .burger-btn { margin-left: auto; }
  .lead-card { aspect-ratio: 4 / 3; }
  .lead-card__body { padding: 20px; gap: 10px; }
  .lead-card__excerpt { display: none; }
  .featured__side { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side-card { grid-template-columns: 40% minmax(0, 1fr); }
  .side-card__media { aspect-ratio: auto; min-height: 100%; }
  .side-card__body { padding: 14px 16px; gap: 8px; }
  .side-card__title { font-size: .95rem; }
  .grid { gap: 16px; }
  .featured__row { margin-top: 16px; }
  .picks { padding: 20px; border-radius: var(--r-lg); }
  .picks__list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pick { padding: 12px; gap: 14px; }
  .pick__media { width: 84px; height: 84px; }
  .sidebar__sticky { grid-template-columns: minmax(0, 1fr); }
  .sec-head__title { font-size: 1.4rem; }
  .sec-head--row { flex-direction: column; align-items: flex-start; }
  .row-card { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; margin-bottom: 18px; }
  .row-card__media { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
  .row-card__body { justify-content: flex-start; gap: 7px; }
  .row-card__title { font-size: 1rem; }
  .row-card__excerpt { display: none; }
  .row-card .meta__item:last-child:not(:first-child) { display: none; }
  .page-head { padding: 20px 0 28px; }
  .page-head__panel { padding: 28px 22px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-news { grid-column: 1 / -1; }
  .footer-bottom__inner { flex-direction: column; text-align: center; }
  .single-main { padding-top: 24px; }
  .article__lede { font-size: 1.05rem; }
  .entry-content { font-size: 1.02rem; }
}

@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 460px) {
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .card--compact { display: grid; grid-template-columns: 40% minmax(0, 1fr); }
  .card--compact .card__media { aspect-ratio: auto; min-height: 100%; }
  .card--compact .card__body { padding: 12px 14px; }
  .card--compact:hover { transform: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
