/* ============================================================
   RBG Communiversity — theme styles
   ============================================================ */

:root {
  --red:       #CE1126;
  --red-dark:  #A60D1F;
  --green:     #007A3D;
  --gold:      #E8B931;
  --ink:       #0B0B0C;
  --cream:     #F5F1E8;

  --ink-2:     #141416;
  --ink-3:     #19191C;
  --ink-4:     #1F1F22;
  --cream-2:   #DCD5C7;
  --cream-3:   #EFE9DC;
  --red-soft:  #FFD9DE;
  --muted:     #8C867C;
  --muted-2:   #7A7268;
  --muted-3:   #9A948A;
  --body-dim:  #CFC8BC;
  --body-dark: #45413B;
  --prose:     #1C1A17;
  --line-light: rgba(245,241,232,.10);
  --line-dark:  rgba(11,11,12,.12);

  --accent: var(--red);

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-ui:      Archivo, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;

  --wrap:    1260px;
  --wrap-sm: 760px;
  --gutter:  28px;
  --header-h: 74px;

  --ease: cubic-bezier(.16,.84,.44,1);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 26px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, iframe, svg, canvas { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -.028em; line-height: 1.04; margin: 0 0 .55em; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--red); color: #fff; }
hr { border: 0; border-top: 1px solid var(--line-light); margin: 2.4rem 0; }

/* ---------- Utility ---------- */
.wrap    { max-width: var(--wrap);    margin-inline: auto; padding-inline: var(--gutter); }
.wrap-sm { max-width: var(--wrap-sm); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 300;
  background: var(--gold); color: var(--ink); padding: 12px 20px;
  font-family: var(--font-ui); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: 13px; transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--ink); }

.kicker {
  display: block; font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--red);
}
.kicker--gold  { color: var(--gold); }
.kicker--green { color: var(--green); }
.kicker--soft  { color: var(--red-soft); }
.kicker--link:hover { color: var(--gold); }

.sep { margin: 0 8px; opacity: .45; }

.section { padding: clamp(64px, 8vw, 128px) 0; }
.section--light { background: var(--cream); color: var(--ink); }
.section--dark  { background: var(--ink);   color: var(--cream); }

.icon { flex: 0 0 auto; vertical-align: middle; }

/* ---------- Flag bar + reading progress ---------- */
.flagbar { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 120; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.flagbar i:nth-child(1) { background: var(--red); }
.flagbar i:nth-child(2) { background: var(--ink); }
.flagbar i:nth-child(3) { background: var(--green); }

.read-progress { position: fixed; top: 4px; left: 0; right: 0; height: 3px; z-index: 121; background: transparent; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .1s linear; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 4px; left: 0; right: 0; z-index: 110;
  background: rgba(11,11,12,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.site-header.is-scrolled { background: rgba(11,11,12,.96); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.site-header.is-hidden { transform: translateY(-110%); }

.site-header__inner { max-width: var(--wrap); margin-inline: auto; padding: 11px var(--gutter); display: flex; align-items: center; gap: 22px; }

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; min-width: 0; }
.brand .custom-logo-link { display: block; flex: 0 0 auto; }
.brand .custom-logo { height: 42px; width: auto; }
.brand__link { color: var(--cream); display: block; min-width: 0; }
.brand__link:hover { color: var(--cream); }
.brand__name {
  display: block; font-family: var(--font-display); font-size: 15px; line-height: 1.1;
  letter-spacing: -.01em; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30ch;
}
.brand__tagline {
  display: block; font-family: var(--font-ui); font-weight: 500; font-size: 10px;
  letter-spacing: .17em; text-transform: uppercase; color: var(--muted-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch;
}

.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--cream);
  padding: 9px 12px; border-radius: 2px; white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: rgba(206,17,38,.22); color: #fff; }
.nav__item.is-current > .nav__link { color: var(--gold); }
.nav__caret { font-size: 9px; opacity: .6; }

.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--ink-2); border: 1px solid var(--line-light);
  padding: 6px; list-style: none; margin: 0;
  display: none; flex-direction: column; gap: 2px; box-shadow: var(--shadow-lg);
}
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { display: flex; }
.nav__sub .nav__link { text-transform: none; letter-spacing: .01em; font-size: 14px; font-weight: 500; white-space: normal; }

.nav__tools { display: flex; align-items: center; gap: 8px; }
.nav__search-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: none; border: 0; color: var(--cream); border-radius: 2px;
}
.nav__search-btn:hover { background: rgba(245,241,232,.1); color: var(--gold); }
.nav__cta {
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: 10px 17px; border-radius: 2px;
  white-space: nowrap; transition: transform .2s ease, background .2s ease;
}
.nav__cta:hover { background: var(--cream); color: var(--ink); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; color: var(--cream); padding: 8px; margin-left: auto; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Header search drawer */
.header-search { border-top: 1px solid var(--line-light); background: rgba(11,11,12,.97); }
.header-search__inner { max-width: var(--wrap); margin-inline: auto; padding: 22px var(--gutter) 26px; }
.header-search__hint { font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 12px 0 0; }

.search-form__row { display: flex; gap: 10px; }
.search-form__input {
  flex: 1; background: var(--ink-2); border: 1px solid rgba(245,241,232,.2); color: var(--cream);
  font-family: var(--font-ui); font-size: 16px; padding: 14px 16px; border-radius: 2px; outline: none;
}
.search-form__input:focus { border-color: var(--gold); }
.search-form__submit {
  background: var(--red); border: 0; color: #fff; padding: 0 20px; border-radius: 2px;
  display: grid; place-items: center; transition: background .2s ease;
}
.search-form__submit:hover { background: var(--red-dark); }
.section--light .search-form__input { background: #fff; border-color: var(--cream-2); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid transparent; border-radius: 2px;
  transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
  text-align: center; cursor: pointer;
}
.btn--primary { background: var(--red); color: var(--cream); }
.btn--primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }
.btn--cream { background: var(--cream); color: var(--red); }
.btn--cream:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(245,241,232,.34); color: var(--cream); }
.btn--ghost:hover { background: rgba(245,241,232,.1); border-color: var(--cream); color: var(--cream); }
.btn--ghost-dark { border-color: var(--cream-2); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--sm { padding: 11px 20px; font-size: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--red);
}
.link-arrow::after { content: '→'; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--red); }
.crumbs__sep { margin: 0 8px; opacity: .45; }
.crumbs__current { color: var(--ink); }
.crumbs--onhero { color: rgba(245,241,232,.72); }
.crumbs--onhero a:hover { color: var(--gold); }
.crumbs--onhero .crumbs__current { color: var(--cream); }

/* ============================================================
   HOME — hero
   ============================================================ */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero--full    { min-height: 100vh; min-height: 100svh; }
.hero--tall    { min-height: 80vh; }
.hero--compact { min-height: 58vh; }

.hero__bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center 30%; filter: grayscale(100%) contrast(118%) brightness(.52); will-change: transform; }
.hero__bg--gradient { background: linear-gradient(135deg, #22222A, var(--ink) 70%); filter: none; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.86) 0%, rgba(11,11,12,.40) 38%, rgba(11,11,12,.93) 88%, var(--ink) 100%); }
.hero__glow {
  position: absolute; top: 12%; right: -6%; width: 46vw; height: 46vw;
  max-width: 640px; max-height: 640px; border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(0,122,61,.42), rgba(206,17,38,.22) 55%, transparent 72%);
  filter: blur(42px); pointer-events: none; will-change: transform;
}
.hero__inner { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 90px); padding-bottom: 86px; width: 100%; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 7px 15px; border: 1px solid rgba(245,241,232,.26); border-radius: 999px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--body-dim);
}
.hero__dot { width: 7px; height: 7px; border-radius: 99px; background: var(--green); }

.hero__title {
  font-size: clamp(40px, 8vw, 128px); line-height: .88; letter-spacing: -.035em;
  text-transform: uppercase; margin: 0 0 24px; max-width: 16ch; text-wrap: balance;
}
.hero__title .t-red   { color: var(--red); }
.hero__title .t-gold  { color: var(--gold); }
.hero__title .t-green { color: var(--green); }

.hero__lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; max-width: 60ch; color: var(--body-dim); margin: 0 0 34px; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll span { font-family: var(--font-ui); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 30px; display: block; background: linear-gradient(180deg, var(--red), transparent); animation: rbgScroll 2.4s ease-in-out infinite; }
@keyframes rbgScroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--red); color: var(--cream); padding: 16px 0; overflow: hidden; border-block: 1px solid rgba(0,0,0,.3); }
.marquee__track { display: flex; gap: 48px; white-space: nowrap; font-family: var(--font-display); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; }
.marquee__group { display: flex; gap: 48px; padding-right: 48px; will-change: transform; align-items: center; }
.marquee__group em { color: var(--gold); font-style: normal; }

/* ---------- Section heads ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; margin-bottom: 46px; }
.sec-head > div { flex: 1 1 min(100%, 520px); min-width: 0; }
.sec-head > p { flex: 0 1 38ch; }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 64px); line-height: .95; text-transform: uppercase; margin: 14px 0 0; }
.sec-head p { font-size: 17px; line-height: 1.6; max-width: 38ch; margin: 0; text-wrap: pretty; color: var(--body-dark); }
.sec-head--dark p { color: var(--body-dim); }
.sec-head--rule { border-bottom: 2px solid currentColor; padding-bottom: 18px; }

/* ---------- Study paths ---------- */
/*
 * Explicit column counts rather than auto-fit: with five cards, auto-fit
 * leaves a half-empty final row and the grid background shows as a grey slab.
 */
.paths { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--cream-2); }
@media (min-width: 560px)  { .paths { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .paths { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .paths { grid-template-columns: repeat(5, 1fr); } }
/* A card in a short final row stretches to close the gap. */
.paths > .path-card:last-child:nth-child(odd) { grid-column: auto; }
.path-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 330px; padding: 24px 22px; background: var(--cream); color: var(--ink);
  overflow: hidden; min-width: 0; transition: background .32s ease, color .32s ease;
}
.path-card::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.path-card:hover { background: var(--ink); color: var(--cream); }
.path-card:hover::after { transform: scaleX(1); }
.path-card__num { position: absolute; top: 22px; left: 22px; font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .2em; opacity: .5; }
.path-card__bar { position: absolute; top: 18px; right: 22px; width: 34px; height: 4px; background: var(--accent); }
.path-card__title {
  font-size: clamp(18px, 1.5vw, 23px); line-height: 1.05; text-transform: uppercase;
  margin: 0 0 12px; overflow-wrap: break-word;
}
.path-card__text { font-size: 15px; line-height: 1.5; margin: 0 0 16px; opacity: .78; text-wrap: pretty; overflow-wrap: break-word; }
.path-card__meta { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--accent); }
.path-card:hover .path-card__meta { color: var(--gold); }

/* ---------- Quote band ---------- */
.quote-band { position: relative; padding: clamp(84px, 12vw, 180px) 0; background: var(--ink); overflow: hidden; }
.quote-band__bg { position: absolute; inset: -16% 0; background-size: cover; background-position: center; opacity: .2; filter: grayscale(100%); will-change: transform; }
.quote-band__scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,11,12,.5), var(--ink) 78%); }
.quote-band__inner { position: relative; max-width: 1000px; margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.quote-band__mark { display: block; font-family: var(--font-display); font-size: 90px; line-height: .6; color: var(--red); opacity: .55; margin-bottom: 12px; }
.quote-band blockquote { font-family: var(--font-body); font-size: clamp(23px, 3.6vw, 48px); line-height: 1.22; font-style: italic; margin: 0 0 28px; color: var(--cream); text-wrap: balance; }
.quote-band cite { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-style: normal; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(26px, 3vw, 40px); }

.post-card { display: flex; flex-direction: column; transition: transform .32s var(--ease); }
.post-card:hover { transform: translateY(-5px); }
.post-card__media { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 3 / 2; margin-bottom: 18px; display: block; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__flag { position: absolute; top: 0; left: 0; background: var(--red); color: var(--cream); font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 8px 14px; }
.post-card__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: .9; text-shadow: 0 4px 18px rgba(0,0,0,.6); }
.post-card__body { display: flex; flex-direction: column; flex: 1; }
.post-card__cat {
  display: inline-block; align-self: flex-start; font-family: var(--font-ui); font-size: 10.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.post-card__title { font-size: 21px; line-height: 1.12; margin: 0 0 10px; text-wrap: balance; overflow-wrap: break-word; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--red); }
.post-card__excerpt { font-size: 15.5px; line-height: 1.55; margin: 0 0 16px; color: var(--body-dark); text-wrap: pretty; }
.post-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }

.post-grid--dark .post-card__title a { color: var(--cream); }
.post-grid--dark .post-card__excerpt { color: var(--body-dim); }
.post-grid--dark .post-card__foot { color: var(--muted); }

/* Featured block */
.post-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(26px, 4vw, 56px); align-items: center; margin-bottom: 58px; }
.post-feature__media { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 3; display: block; }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-feature:hover .post-feature__media img { transform: scale(1.05); }
.post-feature__flag { position: absolute; top: 0; left: 0; background: var(--red); color: var(--cream); font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 9px 16px; }
.post-feature__title { font-size: clamp(27px, 3.5vw, 46px); line-height: 1; margin: 14px 0 18px; text-wrap: balance; }
.post-feature__title a { color: inherit; }
.post-feature__title a:hover { color: var(--red); }
.post-feature__excerpt { font-size: 17.5px; line-height: 1.6; margin: 0 0 18px; max-width: 54ch; color: var(--body-dark); }
.post-feature__meta { font-family: var(--font-ui); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.post-feature__meta a { color: var(--muted-2); }
.post-feature__meta a:hover { color: var(--red); }

/* List rows */
.post-rows { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line-dark); align-items: start; }
.post-row:first-child { padding-top: 0; }
.post-row__media { overflow: hidden; background: var(--ink); aspect-ratio: 4/3; display: block; }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-row:hover .post-row__media img { transform: scale(1.05); }
.post-row__meta { font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.post-row__cat { color: var(--accent); }
.post-row__title { font-size: 23px; line-height: 1.14; margin: 0 0 10px; overflow-wrap: break-word; }
.post-row__title a { color: inherit; }
.post-row__title a:hover { color: var(--red); }
.post-row__excerpt { font-size: 16px; line-height: 1.58; color: var(--body-dark); margin: 0 0 14px; }
.post-row__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.post-row__foot .link-arrow { margin-left: auto; }

/* ---------- Library band ---------- */
.library { position: relative; background: var(--ink); overflow: hidden; padding: clamp(72px, 10vw, 148px) 0; }
.library__bg { position: absolute; inset: -14% 0; background-size: cover; background-position: center; opacity: .17; filter: grayscale(100%); will-change: transform; }
.library__inner { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(36px, 5vw, 74px); align-items: center; }
.library h2 { font-size: clamp(30px, 4.6vw, 64px); line-height: .94; text-transform: uppercase; margin: 16px 0 20px; }
.library p { font-size: 17.5px; line-height: 1.62; color: var(--body-dim); margin: 0 0 30px; max-width: 48ch; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: rgba(245,241,232,.18); margin-bottom: 30px; }
.stat { background: var(--ink); padding: 18px 16px; }
.stat__n { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1; color: var(--cream); }
.stat__l { display: block; font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }

.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.book { aspect-ratio: 2 / 3; background: var(--ink-2); overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.5); will-change: transform; }
.book img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Channels ---------- */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 2px; background: var(--cream-2); }
.channel { position: relative; display: block; background: var(--ink); color: var(--cream); min-height: 310px; overflow: hidden; }
.channel:hover { color: var(--cream); }
.channel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: grayscale(100%); transition: transform .9s var(--ease), opacity .4s ease; }
.channel:hover img { transform: scale(1.08); opacity: .62; }
.channel__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.1), rgba(11,11,12,.92)); }
.channel__body { position: relative; height: 100%; min-height: 310px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.channel__kind { font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.channel__title { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1.06; margin-bottom: 8px; overflow-wrap: break-word; }
.channel__text { font-size: 14.5px; line-height: 1.5; color: var(--body-dim); }

/* ---------- Movement ---------- */
.movement { position: relative; background: var(--ink); padding: clamp(64px, 9vw, 128px) 0; overflow: hidden; }
.movement__glow { position: absolute; top: -10%; left: -8%; width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; background: radial-gradient(circle, rgba(206,17,38,.3), transparent 68%); filter: blur(50px); pointer-events: none; will-change: transform; }
.movement__inner { position: relative; }
.movement h2 { color: var(--cream); }
.campaigns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.campaign {
  display: flex; flex-direction: column; gap: 13px; padding: 24px;
  background: var(--ink-2); border: 1px solid var(--line-light); color: var(--cream);
  transition: border-color .28s ease, transform .28s ease, background .28s ease;
}
.campaign:hover { border-color: var(--red); transform: translateY(-5px); background: var(--ink-3); color: var(--cream); }
.campaign__logo { height: 54px; display: flex; align-items: center; }
.campaign__logo img { max-height: 54px; width: auto; object-fit: contain; }
.campaign__title { font-family: var(--font-display); font-size: 17px; line-height: 1.14; }
.campaign__text { font-size: 14.5px; line-height: 1.5; color: #A8A197; }

/* ---------- Principles rail ---------- */
.principles-section { padding-inline: 0; }
.principles-head { margin-bottom: 36px; }
.principles-head h2 { font-size: clamp(28px, 4vw, 54px); text-transform: uppercase; margin: 14px 0 0; }
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--cream-2); border-radius: 3px; }
.rail__item { flex: 0 0 clamp(210px, 24vw, 290px); scroll-snap-align: start; }
.rail__item img { aspect-ratio: 1/1; width: 100%; object-fit: cover; background: var(--ink); margin-bottom: 12px; transition: transform .9s var(--ease); }
.rail__item:hover img { transform: scale(1.04); }
.rail__name { display: block; font-family: var(--font-display); font-size: 17px; text-transform: uppercase; }
.rail__meaning { display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }

/* ---------- Store ---------- */
.store { position: relative; background: var(--red); color: var(--cream); padding: clamp(64px, 9vw, 128px) 0; overflow: hidden; }
.store__bg { position: absolute; inset: -14% 0; background-size: cover; background-position: center; opacity: .16; mix-blend-mode: luminosity; will-change: transform; }
.store__inner { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 5vw, 66px); align-items: center; }
.store h2 { font-size: clamp(30px, 4.4vw, 60px); line-height: .94; text-transform: uppercase; margin: 16px 0 18px; }
.store p { font-size: 17.5px; line-height: 1.6; color: #FFE4E8; margin: 0 0 28px; max-width: 46ch; }
.merch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.merch { background: rgba(11,11,12,.35); border: 1px solid rgba(245,241,232,.2); overflow: hidden; color: var(--cream); display: block; transition: transform .25s ease; }
.merch:hover { color: var(--cream); transform: translateY(-4px); }
.merch img { aspect-ratio: 1/1; width: 100%; object-fit: cover; }
.merch__body { display: block; padding: 13px; }
.merch__name { display: block; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.merch__price { display: block; font-family: var(--font-ui); font-size: 12px; color: var(--red-soft); margin-top: 4px; }

/* ---------- Subscribe ---------- */
.subscribe { background: var(--ink); padding: clamp(64px, 9vw, 128px) 0; position: relative; overflow: hidden; }
.subscribe::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(206,17,38,.16), transparent 68%); pointer-events: none;
}
.subscribe__inner { position: relative; text-align: center; }
.subscribe__mark { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(206,17,38,.16); color: var(--gold); margin-bottom: 20px; }
.subscribe h2 { font-size: clamp(28px, 4.4vw, 58px); line-height: .95; text-transform: uppercase; margin: 0 0 16px; text-wrap: balance; }
.subscribe p { font-size: 17.5px; line-height: 1.6; color: var(--body-dim); margin: 0 0 30px; }
.subscribe__form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.subscribe__form input[type=email] {
  flex: 1 1 300px; max-width: 420px; background: var(--ink-2);
  border: 1px solid rgba(245,241,232,.22); color: var(--cream);
  font-family: var(--font-ui); font-size: 16px; padding: 16px 18px; border-radius: 2px; outline: none;
}
.subscribe__form input[type=email]:focus { border-color: var(--gold); }
.subscribe__form button {
  font-family: var(--font-ui); font-size: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--cream); background: var(--red); border: 0; padding: 16px 30px; border-radius: 2px;
  transition: background .22s ease, transform .22s ease;
}
.subscribe__form button:hover { background: var(--red-dark); transform: translateY(-2px); }
.subscribe__form button[disabled] { opacity: .6; transform: none; }
.rbg-hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; }
.subscribe__msg { margin-top: 16px; font-family: var(--font-ui); font-size: 14.5px; }
.subscribe__msg.is-ok  { color: var(--green); }
.subscribe__msg.is-err { color: var(--gold); }
.subscribe__note { font-family: var(--font-ui); font-size: 12px; color: var(--muted); margin-top: 16px; }

/* ============================================================
   ARCHIVE / PAGE HERO
   ============================================================ */
.page-hero { position: relative; background: var(--ink); overflow: hidden; padding: calc(var(--header-h) + 74px) 0 58px; border-bottom: 1px solid var(--line-light); }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .24; filter: grayscale(100%); }
.page-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.72), var(--ink)); }
.page-hero__glow {
  position: absolute; top: -30%; right: -10%; width: 44vw; height: 44vw; max-width: 560px; max-height: 560px;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%);
  filter: blur(46px); pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero .kicker { color: var(--accent); }
.page-hero__title { font-size: clamp(32px, 5.6vw, 76px); line-height: .94; text-transform: uppercase; margin: 14px 0 0; text-wrap: balance; }
.page-hero__intro { color: var(--body-dim); max-width: 62ch; margin: 18px 0 0; font-size: 17.5px; line-height: 1.6; }
.page-hero__count { font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 20px 0 0; }
.page-hero__author { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.page-hero__author img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.page-hero__author .page-hero__intro { margin: 0; flex: 1 1 320px; }
.page-hero__children { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.page-hero__children a {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--body-dim); background: rgba(245,241,232,.07);
  border: 1px solid var(--line-light); padding: 8px 13px; border-radius: 2px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.page-hero__children a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-hero__children a span { opacity: .6; font-size: 11px; }

/* ---------- With-sidebar layout ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.with-sidebar__main { min-width: 0; }
.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 24px); }

.widget { margin-bottom: 36px; }
.widget__title, .widget h3 {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--red); margin: 0 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid currentColor;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--cream-2); font-size: 15px; line-height: 1.4; }
.widget li a { color: var(--ink); }
.widget li a:hover { color: var(--red); }
.widget select, .widget input[type=text], .widget input[type=search] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--cream-2); background: #fff; color: var(--ink); border-radius: 2px;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a, .tagcloud a {
  font-family: var(--font-ui); font-size: 12px !important; padding: 7px 12px;
  border: 1px solid var(--cream-2); color: var(--ink); background: #fff; transition: all .2s ease;
}
.tag-cloud a:hover, .tagcloud a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 56px; }
.pagination .page-numbers {
  min-width: 46px; height: 46px; display: grid; place-items: center; padding: 0 14px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  border: 1px solid var(--cream-2); color: var(--ink); background: var(--cream);
  transition: all .2s ease;
}
.pagination a.page-numbers:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.pagination .page-numbers.dots { border: 0; background: none; }

/* ============================================================
   ARTICLE
   ============================================================ */
.article { background: var(--cream); color: var(--ink); }

/* Full-bleed hero */
.article-hero { position: relative; min-height: min(72vh, 680px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.article-hero--page { min-height: min(52vh, 480px); }
.article-hero__media { position: absolute; inset: 0; }
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.article-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.58) 0%, rgba(11,11,12,.30) 34%, rgba(11,11,12,.88) 82%, rgba(11,11,12,.97) 100%); }
.article-hero__inner { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 70px); padding-bottom: 46px; width: 100%; color: var(--cream); }

.article-hero__cat {
  display: inline-block; font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  background: var(--accent); padding: 8px 15px; margin-bottom: 20px;
}
.article-hero__cat:hover { background: var(--gold); color: var(--ink); }
.article-hero__title { font-size: clamp(30px, 5.4vw, 74px); line-height: .96; margin: 0 0 20px; max-width: 20ch; text-wrap: balance; color: var(--cream); }
.article-hero__standfirst { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--body-dim); max-width: 60ch; margin: 0 0 26px; font-style: italic; }
.article-hero__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.article-hero__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(245,241,232,.3); }
.article-hero__by { display: block; font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--cream); }
.article-hero__by a { color: var(--cream); }
.article-hero__by a:hover { color: var(--gold); }
.article-hero__facts { display: block; font-family: var(--font-ui); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-3); margin-top: 3px; }
.article-hero__facts a { color: var(--muted-3); }
.article-hero__facts a:hover { color: var(--gold); }

/* Plain header */
.article-head--plain { background: var(--cream); padding: calc(var(--header-h) + 56px) 0 10px; }
.article-head__title { font-size: clamp(30px, 5vw, 62px); line-height: .96; margin: 14px 0 18px; text-wrap: balance; }
.article-head__standfirst { font-size: 19px; line-height: 1.55; color: var(--body-dark); font-style: italic; margin: 0 0 18px; max-width: 60ch; }
.article-head__meta { font-family: var(--font-ui); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.article-head__meta a { color: var(--muted-2); }
.article-head__meta a:hover { color: var(--red); }

/* Body grid: share rail | prose | aside */
.article-body { padding: clamp(40px, 5vw, 64px) 0 56px; }
.article-body__grid { display: grid; grid-template-columns: 68px minmax(0, var(--wrap-sm)) 300px; gap: clamp(24px, 3vw, 48px); justify-content: center; align-items: start; }
.article-body__grid--page { grid-template-columns: minmax(0, var(--wrap-sm)) 300px; }
.article-body__main { min-width: 0; }

/* Share rail */
.share-rail { position: relative; }
.share-rail__inner { position: sticky; top: calc(var(--header-h) + 28px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.share-rail__label { font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); writing-mode: vertical-rl; margin-bottom: 6px; }
.share-rail a, .share-rail button {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--cream-2); background: #fff; color: var(--ink); border-radius: 2px;
  transition: all .2s ease;
}
.share-rail a:hover, .share-rail button:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-2px); }
.share-rail .is-copied { background: var(--green); border-color: var(--green); color: #fff; }

/* Table of contents */
.article-aside__sticky { position: sticky; top: calc(var(--header-h) + 28px); }
.toc { background: var(--cream-3); border-left: 4px solid var(--gold); padding: 20px 22px; }
.toc__title { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 14px; color: var(--muted-2); }
.toc__list { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 540px); overflow-y: auto; }
.toc__item { margin-bottom: 8px; font-size: 14.5px; line-height: 1.4; }
.toc__item--h3 { padding-left: 16px; font-size: 13.5px; }
.toc__item a { color: var(--body-dark); display: block; border-left: 2px solid transparent; padding-left: 10px; margin-left: -10px; transition: all .2s ease; }
.toc__item a:hover { color: var(--red); }
.toc__item.is-active a { color: var(--ink); font-weight: 600; border-left-color: var(--red); }
.article-aside__widgets { margin-top: 28px; }

.toc-mobile { display: none; background: var(--cream-3); border-left: 4px solid var(--gold); margin-bottom: 28px; }
.toc-mobile summary { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 14px 20px; cursor: pointer; color: var(--muted-2); }
.toc-mobile .toc { border: 0; padding-top: 0; }
.toc-mobile .toc__title { display: none; }

/* ---------- Prose ---------- */
.prose { font-size: 19px; line-height: 1.75; color: var(--prose); }
.prose > * + * { margin-top: 1.3em; }
.prose p { margin: 0 0 1.25em; }
/*
 * The article title is the page's only h1. A level-one heading inside the body
 * is a migration artefact; the content filter steps those down to h2, and this
 * rule catches any that slip through so they never fall back to the browser's
 * 2em display default.
 */
.prose h1 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; margin: 2em 0 .55em; letter-spacing: -.02em; }

.prose h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; margin: 2em 0 .55em; text-transform: none; letter-spacing: -.02em; position: relative; }

/*
 * Long headings -- over 55 characters, which much of the migrated content is --
 * step down a size and gain a little leading so they read as a heading rather
 * than a wall of display type.
 */
.prose h1.h--long { font-size: clamp(22px, 2.3vw, 27px); line-height: 1.26; }
.prose h2.h--long { font-size: clamp(22px, 2.3vw, 27px); line-height: 1.26; }
.prose h3.h--long { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.32; }
.prose h3 { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.18; margin: 1.8em 0 .5em; }
.prose h4 { font-family: var(--font-ui); font-weight: 700; font-size: 19px; margin: 1.6em 0 .45em; letter-spacing: 0; }
.prose h2::before { content: ''; position: absolute; left: -22px; top: .32em; width: 8px; height: 8px; background: var(--accent); opacity: 0; transition: opacity .25s ease; }
.prose h2:hover::before { opacity: 1; }

.heading-anchor { margin-left: 10px; color: var(--cream-2); font-weight: 400; opacity: 0; transition: opacity .2s ease; text-decoration: none; font-size: .7em; }
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }

.prose--dropcap > p:first-of-type::first-letter {
  float: left; font-family: var(--font-display); font-size: 4.6em; line-height: .78;
  margin: .06em .12em 0 0; color: var(--accent);
}

.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--red-dark); background: rgba(232,185,49,.26); }

.prose img { margin-inline: auto; border-radius: 2px; }
.prose figure { margin: 2.2em 0; }
.prose figure img { width: 100%; }
.prose figcaption { font-family: var(--font-ui); font-size: 13px; color: var(--muted-2); margin-top: 10px; text-align: center; line-height: 1.5; }

.prose blockquote {
  margin: 2.2em 0; padding: 6px 0 6px 28px; border-left: 4px solid var(--accent);
  font-style: italic; font-size: 1.14em; line-height: 1.5; color: #2A2721;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; font-style: normal; font-family: var(--font-ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-top: 12px; }

.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent); }

.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .86em; background: var(--cream-3); padding: 2px 7px; border-radius: 3px; }
.prose pre { background: var(--ink); color: var(--cream); padding: 22px; overflow-x: auto; border-left: 3px solid var(--red); font-size: 14.5px; line-height: 1.6; border-radius: 2px; }
.prose pre code { background: none; padding: 0; color: inherit; }

.table-scroll { overflow-x: auto; margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--cream-2); padding: 11px 13px; text-align: left; }
.prose th { background: var(--cream-3); font-family: var(--font-ui); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

.prose hr { border-top: 2px solid var(--cream-2); margin: 2.8em 0; }
.prose mark { background: var(--gold); color: var(--ink); padding: 1px 4px; }
.prose .alignleft  { float: left;  margin: .4em 1.6em 1.2em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .4em 0 1.2em 1.6em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignwide { width: min(100vw - (var(--gutter) * 2), 1100px); max-width: none; margin-inline: calc(50% - min(50vw - var(--gutter), 550px)); }
.prose .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }

/* Embed styling lives in the EMBEDS section near the end of this file. */

.page-links { font-family: var(--font-ui); font-size: 13px; display: flex; gap: 8px; align-items: center; margin: 2em 0; flex-wrap: wrap; }
.page-links a, .page-links > span:not(:first-child) { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--cream-2); }
.page-links a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--cream-2); }
.article-tags__label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-right: 6px; }
.tag-chip {
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  background: var(--cream-3); color: var(--body-dark); padding: 8px 14px; border: 1px solid var(--cream-2);
  transition: all .2s ease;
}
.tag-chip:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Inline share (small screens) */
.share-inline { display: none; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--cream-2); }
.share-inline__label { display: block; font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.share-inline__links { display: flex; gap: 8px; flex-wrap: wrap; }
.share-inline__links a, .share-inline__links button {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--cream-2); background: #fff; color: var(--ink); border-radius: 2px;
}
.share-inline__links a:hover, .share-inline__links button:hover { background: var(--ink); color: var(--cream); }

/* Author box */
.author-box {
  position: relative; display: grid; grid-template-columns: 104px 1fr; gap: 24px;
  padding: 32px 28px 28px; background: var(--cream-3); margin: 44px 0 0; overflow: hidden;
}
.author-box__flag { position: absolute; inset: 0 0 auto 0; height: 4px; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.author-box__flag i:nth-child(1) { background: var(--red); }
.author-box__flag i:nth-child(2) { background: var(--ink); }
.author-box__flag i:nth-child(3) { background: var(--green); }
.author-box__avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.author-box__kicker { font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.author-box__name { font-size: 22px; margin: 6px 0 10px; }
.author-box__name a { color: var(--ink); }
.author-box__name a:hover { color: var(--red); }
.author-box__bio { font-size: 15.5px; line-height: 1.6; color: var(--body-dark); margin: 0 0 14px; }
.author-box__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Post nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--cream-2); }
.post-nav__item { position: relative; display: block; min-height: 190px; overflow: hidden; background: var(--ink); color: var(--cream); }
.post-nav__item--empty { background: var(--cream-3); }
.post-nav__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(100%); opacity: .42; transition: transform .8s var(--ease), opacity .4s ease; }
.post-nav__item:hover .post-nav__bg { transform: scale(1.07); opacity: .58; }
.post-nav__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.42), rgba(11,11,12,.88)); }
.post-nav__body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 190px; padding: 28px; }
.post-nav__dir { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.post-nav__title { font-family: var(--font-display); font-size: 19px; line-height: 1.16; color: var(--cream); }
.post-nav__item--next { text-align: right; }
.post-nav__item--next .post-nav__dir { align-self: flex-end; }

/* ---------- Comments ---------- */
.comments-area { background: var(--cream); color: var(--ink); padding: 60px 0 72px; border-top: 2px solid var(--ink); }
.comments-area__title { font-size: clamp(24px, 3.4vw, 38px); text-transform: uppercase; margin: 0 0 32px; }
.comment-list { list-style: none; margin: 0 0 44px; padding: 0; }
.comment-list .children { list-style: none; margin: 20px 0 0 26px; padding-left: 22px; border-left: 2px solid var(--cream-2); }
.comment { padding: 0 0 24px; }
.comment__inner { padding-bottom: 20px; border-bottom: 1px solid var(--cream-2); }
.comment__head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.comment__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--cream-2); flex: 0 0 auto; }
.comment__name { font-family: var(--font-ui); font-weight: 700; font-size: 15px; }
.comment__name a { color: var(--ink); }
.comment__name a:hover { color: var(--red); }
.comment__badge { font-family: var(--font-ui); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--muted-2); color: #fff; padding: 3px 8px; margin-left: 7px; vertical-align: 2px; }
.comment__badge--author { background: var(--red); }
.comment__meta { font-family: var(--font-ui); font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.comment__meta a { color: var(--muted-2); }
.comment__meta a:hover { color: var(--red); }
.comment__body { font-size: 16.5px; line-height: 1.68; color: #26231F; }
.comment__body p { margin: 0 0 .8em; }
.comment__body p:last-child { margin-bottom: 0; }
.comment__pending { font-family: var(--font-ui); font-size: 13px; color: var(--red); font-style: italic; }
.comment__actions { margin-top: 12px; }
.comment__reply a {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--red);
}
.comments-closed { font-family: var(--font-ui); font-size: 14px; color: var(--muted-2); }

.comment-respond { background: var(--cream-3); padding: 32px 30px; border-top: 3px solid var(--red); }
.comment-reply-title { font-size: 22px; text-transform: uppercase; margin: 0 0 20px; }
.comment-reply-title small { display: block; font-family: var(--font-ui); font-size: 13px; text-transform: none; letter-spacing: 0; margin-top: 8px; }
.comment-form { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.comment-form .comment-form-comment, .comment-form .form-submit, .comment-form .comment-form-cookies-consent { grid-column: 1 / -1; }
.comment-form .field label, .comment-form label {
  display: block; font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 7px;
}
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; background: #fff; border: 1px solid var(--cream-2); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; padding: 13px 15px; border-radius: 2px; outline: none;
}
.comment-form textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(206,17,38,.12); }
.comment-form .field__hint { display: block; font-family: var(--font-ui); font-size: 12px; color: var(--muted-2); margin-top: 5px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.comment-form .req { color: var(--red); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 9px; }
.comment-form-cookies-consent label { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; font-family: var(--font-ui); }
.comment-form .form-submit { margin: 0; }
.comment-form .submit { border: 0; }

/* ---------- Child pages ---------- */
.child-pages { margin-top: 52px; padding-top: 36px; border-top: 2px solid var(--cream-2); }
.child-pages__title { font-size: 24px; text-transform: uppercase; margin-bottom: 22px; }
.child-pages__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2px; background: var(--cream-2); }
.child-page { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 24px; background: var(--cream); color: var(--ink); min-height: 150px; transition: background .25s ease, color .25s ease; }
.child-page:hover { background: var(--ink); color: var(--cream); }
.child-page h3 { font-size: 18px; line-height: 1.14; margin: 0; text-transform: uppercase; }
.child-page p { font-size: 14.5px; line-height: 1.5; margin: 0; opacity: .76; }
.child-page__go { margin-top: auto; color: var(--red); }
.child-page:hover .child-page__go { color: var(--gold); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 72px 20px; color: var(--body-dark); }
.empty-state .icon { color: var(--cream-2); margin-bottom: 18px; }
.empty-state h2 { font-size: 28px; text-transform: uppercase; margin: 0 0 12px; color: var(--ink); }
.empty-state p { margin: 0 auto 24px; max-width: 48ch; }
.empty-state__search { max-width: 460px; margin: 0 auto 26px; }
.empty-state__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.error-page { position: relative; background: var(--ink); padding: calc(var(--header-h) + 80px) 0 96px; overflow: hidden; }
.error-page__glow { position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(206,17,38,.22), transparent 66%); filter: blur(40px); pointer-events: none; }
.error-page__inner { position: relative; text-align: center; }
.error-page__code { font-family: var(--font-display); font-size: clamp(88px, 19vw, 230px); line-height: .82; color: var(--red); margin: 0; letter-spacing: -.04em; }
.error-page h1 { font-size: clamp(26px, 4vw, 46px); text-transform: uppercase; margin: 18px 0 14px; color: var(--cream); }
.error-page__text { color: var(--body-dim); font-size: 17px; max-width: 50ch; margin: 0 auto 30px; }
.error-page__search { max-width: 520px; margin: 0 auto 28px; }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.error-page__cats { margin-bottom: 52px; }
.error-page__cats .kicker { margin-bottom: 14px; }
.error-page__cats .tag-cloud { justify-content: center; }
.error-page__cats .tag-cloud a { background: var(--ink-2); border-color: var(--line-light); color: var(--body-dim); }
.error-page__cats .tag-cloud a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.error-page__recent .kicker { margin-bottom: 20px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: #09090A; border-top: 1px solid var(--line-light); padding: clamp(52px, 7vw, 86px) 0 32px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 38px; margin-bottom: 44px; }
.site-footer__about p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 34ch; }
.site-footer__logo { margin-bottom: 16px; }
.site-footer__logo .custom-logo { height: 54px; width: auto; }
.site-footer__wordmark { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; color: var(--cream); margin: 0 0 14px; }
.site-footer h4 { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); margin: 0 0 14px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-menu a { font-size: 15.5px; color: var(--muted); }
.footer-menu a:hover { color: var(--gold); }
.site-footer .widget li { border-bottom-color: var(--line-light); }
.site-footer .widget li a { color: var(--muted); }
.site-footer .widget__title { color: var(--cream); }

.social-row { display: flex; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.social-row a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-light); color: var(--muted); transition: all .2s ease; }
.social-row a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.site-footer__bottom { max-width: var(--wrap); margin-inline: auto; padding: 22px var(--gutter) 0; border-top: 1px solid rgba(245,241,232,.08); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.site-footer__copy { font-family: var(--font-ui); font-size: 12.5px; color: #6B655C; }
.site-footer__flag { display: flex; gap: 6px; }
.site-footer__flag i { width: 26px; height: 5px; display: block; }
.site-footer__flag i:nth-child(1) { background: var(--red); }
.site-footer__flag i:nth-child(2) { background: var(--ink-4); }
.site-footer__flag i:nth-child(3) { background: var(--green); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--red); color: #fff; border: 0; border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0,0,0,.4); transform: rotate(-90deg);
  transition: background .2s ease, opacity .25s ease, transform .25s ease;
}
.to-top:hover { background: var(--red-dark); }
.to-top[hidden] { display: none; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .78s var(--ease), transform .78s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--font-ui); font-size: 13px; color: var(--muted-2); text-align: center; margin-top: 8px; }
.sticky .post-card__flag { display: block; }
.bypostauthor > .comment__inner { }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 2em 0; }
.gallery-item { margin: 0 !important; }
.gallery img { width: 100%; height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .article-body__grid { grid-template-columns: 58px minmax(0, 1fr); }
  .article-body__grid--page { grid-template-columns: minmax(0, 1fr); }
  .article-aside { display: none; }
  .toc-mobile { display: block; }
}

@media (max-width: 1080px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .sidebar__sticky { position: static; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 4px) 0 0 0;
    background: var(--ink); flex-direction: column; align-items: stretch;
    gap: 0; padding: 20px var(--gutter) 48px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s var(--ease); margin-left: 0;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 15px 0; border-bottom: 1px solid var(--line-light); font-size: 16px; }
  .nav__sub { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 18px; background: none; }
  .nav__tools { margin-top: 20px; justify-content: flex-start; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }
  .post-nav__item--next .post-nav__dir { align-self: flex-start; }
  .post-nav__item--empty { display: none; }
}

@media (max-width: 860px) {
  .share-rail { display: none; }
  .share-inline { display: block; }
  .article-body__grid { grid-template-columns: minmax(0, 1fr); }
  .post-row { grid-template-columns: 150px 1fr; gap: 20px; }
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box__avatar { margin-inline: auto; }
  .author-box__links { justify-content: center; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .prose { font-size: 17.5px; }
  .hero__inner { padding-top: calc(var(--header-h) + 60px); padding-bottom: 64px; }
  .post-row { grid-template-columns: 1fr; }
  .post-row__media { aspect-ratio: 16/9; }
  .comment-list .children { margin-left: 0; padding-left: 14px; }
  .comment-respond { padding: 24px 18px; }
  .book-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .article-hero { min-height: 62vh; }
  .prose--dropcap > p:first-of-type::first-letter { font-size: 3.8em; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .comments-area, .post-nav, .share-rail, .share-inline,
  .marquee, .subscribe, .to-top, .read-progress, .flagbar, .article-aside, .related { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .article, .article-hero { background: #fff; }
  .article-hero__scrim, .article-hero__media { display: none; }
  .article-hero__inner { padding-top: 0; color: #000; }
  .article-hero__title { color: #000; }
  .prose a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ---------- Widget refinements ---------- */
.widget .post-date,
.widget .rss-date,
.widget_recent_entries .post-date {
  display: block;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}
.widget_recent_entries li,
.widget_recent_comments li,
.widget_rss li { line-height: 1.45; }
.widget_recent_entries li a { display: block; }

.widget select {
  font-family: var(--font-ui);
  font-size: 14px;
  max-width: 100%;
}

.widget_search .widget__title { margin-bottom: 14px; }
.widget_search .search-form__input { background: #fff; border-color: var(--cream-2); color: var(--ink); }
.widget_search .search-form__input::placeholder { color: var(--muted-2); }

.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.widget_tag_cloud .tagcloud a { line-height: 1.2; }

/* Article sidebar widgets sit on the light background */
.article-aside__widgets .widget__title { color: var(--red); }
.article-aside__widgets .widget li { border-bottom-color: var(--cream-2); }

/* Cards inside the centred 404 column read better left-aligned. */
.error-page__recent .post-grid,
.error-page__recent .post-card { text-align: left; }
.error-page__recent { max-width: 100%; }

/* ============================================================
   INDEX PAGES — subject areas, topics, by date, contact
   Ported from the PHP build so the pages match exactly.
   ============================================================ */

.page-hero--index { padding-bottom: 54px; }

/* ---------- Subject areas ---------- */
.tax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 2px;
  background: var(--cream-2);
}
.tax-card {
  position: relative;
  background: var(--cream); color: var(--ink);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
  min-height: 140px; min-width: 0;
  transition: background .25s ease, color .25s ease;
}
.tax-card::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--accent, var(--red));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.tax-card:hover { background: var(--ink); color: var(--cream); }
.tax-card:hover::after { transform: scaleX(1); }
.tax-card h3 { font-size: 18px; line-height: 1.12; margin: 0; text-transform: uppercase; overflow-wrap: break-word; }
.tax-card p { font-size: 14.5px; line-height: 1.5; margin: 0; opacity: .75; }
.tax-card__count {
  margin-top: auto; font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent, var(--red));
}
.tax-card:hover .tax-card__count { color: var(--gold); }
.tax-card--child { padding-left: 40px; }
.tax-card--child h3 { font-size: 15px; }

/* ---------- Topic tags index ---------- */
.tag-cloud--index { gap: 10px; align-items: baseline; }
.tag-cloud--index a { padding: 9px 15px; line-height: 1.25; }
.tag-cloud--index a span { opacity: .55; font-size: .85em; margin-left: 3px; }

/* ---------- Archive by date ---------- */
.year-block { margin-bottom: 42px; }
.year-block:last-child { margin-bottom: 0; }
.year-block__title {
  font-size: clamp(26px, 3.4vw, 42px); line-height: 1;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin: 0 0 18px;
}
.year-block__title a { color: var(--ink); }
.year-block__title a:hover { color: var(--red); }
.year-block .tag-cloud a span { opacity: .55; margin-left: 3px; }

/* ---------- Contact ---------- */
.contact-form {
  background: var(--cream-3); padding: 30px 28px;
  border-top: 3px solid var(--red);
}
.contact-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.contact-form .field { margin-bottom: 16px; }
.contact-form label {
  display: block; font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 7px;
}
.contact-form .req { color: var(--red); }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
  width: 100%; background: #fff; border: 1px solid var(--cream-2); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; padding: 13px 15px; border-radius: 2px; outline: none;
}
.contact-form textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(206,17,38,.12);
}
.contact-direct {
  text-align: center; font-family: var(--font-ui); font-size: 14px;
  color: var(--muted-2); margin-top: 24px;
}

.notice-box {
  padding: 16px 20px; margin-bottom: 24px; border-left: 4px solid;
  font-family: var(--font-ui); font-size: 14.5px; line-height: 1.55;
}
.notice-box--ok    { background: #F0FDF4; border-color: var(--green); color: #14532D; }
.notice-box--error { background: #FEF2F2; border-color: var(--red);   color: #7F1D1D; }
.notice-box ul { margin: 8px 0 0; padding-left: 18px; }

@media (max-width: 560px) {
  .tax-card--child { padding-left: 28px; }
  .contact-form { padding: 22px 18px; }
}

/* ---------- Blog index toolbar ---------- */
.list-toolbar { align-items: flex-end; }
.list-toolbar__count { font-size: clamp(20px, 2.4vw, 30px) !important; margin-top: 8px !important; text-transform: none !important; }
.list-toolbar__sort select {
  font-family: var(--font-ui); font-size: 13px; padding: 10px 14px;
  border: 1px solid var(--cream-2); background: #fff; color: var(--ink); border-radius: 2px;
}

/* Brand lockup: logo beside the RBG / COMMUNIVERSITY wordmark */
.brand--has-logo .brand__name { font-size: 15px; }
.brand--has-logo .brand__tagline { letter-spacing: .18em; }

/* ============================================================
   EMBEDS — legacy shortcodes and block embeds
   ============================================================ */

/* Used only by the legacy shortcode shims, which have no container of their own. */
.rbg-embed {
  position: relative;
  margin: 2.2em 0;
  aspect-ratio: var(--ratio, 16/9);
}
.rbg-embed iframe,
.rbg-embed video,
.rbg-embed object,
.rbg-embed embed {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}

/* Document viewers need a real height, not a ratio. */
.rbg-embed--fixed { aspect-ratio: auto; height: 480px; }
.rbg-embed--fixed iframe { position: static; height: 100%; }

.rbg-embed--audio { aspect-ratio: auto; height: 166px; background: transparent; }
.rbg-embed--audio iframe { position: static; height: 166px; }

/*
 * WordPress block embeds size themselves through .wp-embed-aspect-* classes
 * on <body class="wp-embed-responsive">. The theme must not add a second
 * aspect-ratio box or the two stack and leave a black band above the video.
 */
.prose .wp-block-embed { margin: 2.2em 0; }
.prose .wp-block-embed iframe { max-width: 100%; border: 0; display: block; }
.prose .wp-block-embed figcaption {
  font-family: var(--font-ui); font-size: 13px; color: var(--muted-2);
  text-align: center; margin-top: 10px;
}

/* A bare iframe in classic content, with no container of its own. */
.prose > iframe,
.prose p > iframe {
  width: 100%; aspect-ratio: 16/9; height: auto; border: 0; display: block; margin: 2.2em 0;
}

/* Blocks that carry raw HTML (Drive viewers pasted in by hand). */
.prose .wp-block-html iframe { width: 100%; min-height: 480px; border: 0; display: block; margin: 2.2em 0; }

/* A paragraph that was wrongly marked up as a heading in the old site. */
.prose p.was-heading {
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: normal;
  text-transform: none;
  color: var(--prose);
  margin: 0 0 1.25em;
}
.prose p.was-heading strong { font-weight: 600; }

@media (max-width: 560px) {
  .rbg-embed--fixed { height: 360px; }
  .prose .wp-block-html iframe { min-height: 360px; }
}
