/* NHWA Journal Online — magazine-style editorial design */

:root {
  /* NHWA brand palette */
  --paper: #ffffff;
  --paper-2: #f5f5f5;        /* subtle grey panel */
  --paper-3: #ffffff;        /* main page surface */
  --ink: #3C4C54;            /* NHWA charcoal — not pure black */
  --ink-2: #5c6970;
  --ink-3: #8a949a;
  --rule: #3C4C54;
  --rule-soft: rgba(60, 76, 84, 0.16);
  --accent: #008A52;         /* NHWA green */
  --accent-2: #09979B;       /* NHWA teal */
  --accent-soft: rgba(0, 138, 82, 0.12);

  /* Corner radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* All typography uses Open Sans — matches nhwa.com.au */
  --serif-display: 'Open Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif-text:    'Open Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sans:          'Open Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:          'Open Sans', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut-x: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--serif-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ─── NHWA site header (verbatim from nhwa.com.au) ─── */
header { display: block; }

.layoutwidth {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* Black strip on top */
/* removed vestigial leaky rule for parent-theme conflict: .header-top */
/* removed vestigial leaky rule for parent-theme conflict: .header-top .layoutwidth */
/* removed vestigial leaky rule for parent-theme conflict: .header-top .top-right */
/* removed vestigial leaky rule for parent-theme conflict: .header-top .menu-top-wrap */
/* removed vestigial leaky rule for parent-theme conflict: .header-top .menu-top */
/* removed vestigial leaky rule for parent-theme conflict: .header-top .menu-top li */
/* removed vestigial leaky rule for parent-theme conflict: .header-top .menu-top a */
/* removed vestigial leaky rule for parent-theme conflict: .header-top .menu-top a:hover */
/* removed vestigial leaky rule for parent-theme conflict: .header-top .menu-top .menu-nhwa-shop a::before */
/* removed vestigial leaky rule for parent-theme conflict: .header-top .menu-top .menu-cart a::before */

/* Main header */
/* removed vestigial leaky rule for parent-theme conflict: .header-bottom */
/* removed vestigial leaky rule for parent-theme conflict: .header-bottom .layoutwidth */

/* removed vestigial leaky rule for parent-theme conflict: .header-logo */
/* removed vestigial leaky rule for parent-theme conflict: .header-logo a */
/* removed vestigial leaky rule for parent-theme conflict: .header-logo svg.icon */

/* Main menu */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu nav */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu .menu-container */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu .menu-main */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu .menu-main > li */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu .menu-main > li > a */
.menu-wrap.menu .menu-main > li > a:hover,
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu .menu-main > li.active > a */

/* Donate item: green $ circle + green text */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu .menu-main > li.donate > a */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu .menu-main > li.donate > a::before */

/* Member Login: solid green block flush to right edge */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu .menu-main > li.login */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu .menu-main > li.login:hover */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu .menu-main > li.login > a */
/* removed vestigial leaky rule for parent-theme conflict: .menu-wrap.menu .menu-main > li.login > a::before */

/* v0.9.7: prior orphaned selectors (.menu-wrap.menu .sub-menu,
   .menu-wrap.menu .menu-wrapper, .menu-wrap.menu .mobile-back) were
   inadvertently inheriting the .masthead { position: sticky; top: 0; }
   block below, breaking the parent theme's hover dropdowns site-wide.
   The selectors were never meant to be ours to style. Removed. */

/* Sticky masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper-3);
  border-bottom: 3px solid var(--accent);
  transition: padding 220ms ease;
}
.masthead-inner {
  padding: 14px var(--gut-x) 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: padding 220ms ease;
}

/* Utility strip above the title */
.masthead-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px var(--gut-x);
  border-bottom: 1px solid var(--rule-soft);
  background: #fafafa;
}

/* Hamburger toggle — mobile only */
.util-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-right: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
  transition: background 160ms;
}
.util-hamburger:hover { background: rgba(60,76,84,0.06); }
.util-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 160ms ease;
}
.masthead.menu-open .util-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.masthead.menu-open .util-hamburger span:nth-child(2) { opacity: 0; }
.masthead.menu-open .util-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-down menu — hidden by default; mobile-only */
.mobile-menu {
  display: none;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu li { list-style: none; }
.mobile-menu-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 14px var(--gut-x);
  cursor: pointer;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 140ms, color 140ms;
}
.mobile-menu-item:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-menu-item.active { background: var(--accent); color: #fff; }

/* Subscribe pill (utility) */
.util-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 160ms, transform 160ms;
}
.util-subscribe:hover { background: #00703f; transform: translateY(-1px); }

/* Search — icon-only, expands inline when toggled */
.util-search {
  display: flex;
  align-items: center;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: border-color 200ms ease, background 200ms ease, padding 240ms ease;
  overflow: hidden;
  background: transparent;
}
.util-search-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  border-radius: 999px;
  transition: background 160ms;
  flex-shrink: 0;
}
.util-search-toggle:hover { background: rgba(60,76,84,0.06); }
.util-search input {
  width: 0;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  padding: 0;
  opacity: 0;
  transition: width 240ms ease, opacity 200ms ease, padding 240ms ease;
}
.util-search input::placeholder { color: var(--ink-3); }
.util-search.open {
  border-color: var(--rule-soft);
  background: #fff;
  padding-right: 14px;
}
.util-search.open input {
  width: 220px;
  opacity: 1;
  padding: 6px 4px 6px 0;
}
.util-search.open:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Compact (scrolled) mode — hide the utility strip so the sticky masthead is denser */
.masthead.compact .masthead-utility { display: none; }

@media (max-width: 820px) {
  /* Show hamburger, hide horizontal nav */
  .util-hamburger { display: flex; }
  .nav-row { display: none; }

  /* Hide the utility strip's compact-hide rule has no effect now; tighter spacing */
  .masthead-utility { padding: 6px var(--gut-x); }
  .util-subscribe { padding: 6px 12px; font-size: 12px; }
  .util-search.open input { width: 140px; }

  /* Title compacts a bit on mobile */
  .masthead-title { font-size: 32px !important; }
  .masthead-inner { padding: 10px var(--gut-x); }

  /* Mobile menu — show as slide-down panel */
  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--rule-soft);
    transition: max-height 280ms ease;
  }
  .mobile-menu.open { max-height: 600px; }
}
.masthead-title {
  font-family: var(--sans);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  text-align: center;
  transition: font-size 220ms ease;
  color: #000;
}
.masthead-title .amp {
  font-weight: 400;
  color: var(--accent);
}
.masthead-strapline {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-2);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.masthead-strapline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); display: inline-block; }

/* Compact form when scrolled — `!important` so it wins against inline font-size that
   the user may have set via direct-manipulation editing. */
.masthead.compact .masthead-inner { padding-top: 4px !important; padding-bottom: 2px !important; }
.masthead.compact .masthead-title { font-size: 32px !important; }
.masthead.compact .masthead-strapline { display: none !important; }

/* ─── Primary nav row ─── */

.nav-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-3);
  padding: 0 var(--gut-x);
  position: relative;
}
.nav-row .nav-items {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  flex-wrap: wrap;
}

.nav-item {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  padding: 11px 16px;
  cursor: pointer;
  border: 0;
  background: transparent;
  position: relative;
  white-space: nowrap;
  transition: color 160ms, background 160ms, padding 160ms, font-size 160ms;
}
.nav-item + .nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28%;
  bottom: 28%;
  width: 1px;
  background: var(--rule-soft);
}
.nav-item:hover { color: var(--accent); }
/* Nav active state — pill shape now that nav row is the only "chrome" */
.nav-item.active {
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}
.nav-item.active::before,
.nav-item.active + .nav-item::before { background: transparent; }

.nav-row .nav-search {
  display: flex;
  align-items: center;
  border-left: 1px solid var(--rule);
  padding: 0 16px;
  width: 240px;
  flex: 0 0 240px;
  transition: width 220ms ease, flex-basis 220ms ease, padding 220ms ease;
}
.nav-row .nav-search input {
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  width: 100%;
  padding: 12px 8px;
  outline: none;
}
.nav-row .nav-search input::placeholder {
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
}
.nav-row .nav-search svg { flex-shrink: 0; }
.nav-row .nav-search button.search-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 12px 4px;
  cursor: pointer;
  color: var(--ink);
}
.nav-row .nav-search.collapsed {
  width: 52px;
  flex: 0 0 52px;
  padding: 0;
  justify-content: center;
}
.nav-row .nav-search.collapsed input { display: none; }
.nav-row .nav-search.collapsed svg { display: none; }
.nav-row .nav-search.collapsed button.search-toggle { display: flex; align-items: center; justify-content: center; }
.nav-row .nav-search.collapsed.open {
  position: absolute;
  right: 0; top: 100%;
  width: 100%;
  flex: none;
  background: var(--paper-3);
  border-top: 1px solid var(--rule);
  border-left: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--gut-x);
  z-index: 5;
  justify-content: flex-start;
}
.nav-row .nav-search.collapsed.open input { display: block; flex: 1; }
.nav-row .nav-search.collapsed.open svg { display: block; margin-right: 8px; }
.nav-row .nav-search.collapsed.open button.search-toggle { display: none; }

/* ─── Section heading ─── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px var(--gut-x) 18px;
  gap: 24px;
  position: relative;
}
.section-head h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0;
  margin: 0;
  color: #000;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-head .meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 400;
}
.section-head .meta .pill {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 700;
}

/* ─── Featured Articles grid ─── */
.featured-grid {
  padding: 0 var(--gut-x) 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 28px;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 40px;
}
.featured-card { cursor: pointer; }
.featured-card .hero {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 200ms ease;
  border-radius: var(--r-lg);
}
.featured-card .hero .hero-img {
  width: 100%; height: 100%;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.featured-card:hover .hero { border-color: var(--accent); }
.featured-card:hover .hero .hero-img img,
.featured-card:hover .hero .hero-img { transform: scale(1.025); }
.featured-card:hover .title { color: var(--accent); }
/* Featured-card category label — small green pill */
.featured-card .cat {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 800;
  display: inline-block;
}
.featured-card .title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: 0;
  margin: 6px 0 0;
  text-wrap: pretty;
  color: #000;
}

/* Smaller-row latest article cards */
.latest-grid {
  padding: 0 var(--gut-x) 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 24px;
}
.latest-card { cursor: pointer; }
.latest-card .hero {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 200ms ease;
  border-radius: var(--r-lg);
}
.latest-card .hero .hero-img {
  width: 100%; height: 100%;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.latest-card:hover .hero { border-color: var(--accent); }
.latest-card:hover .hero .hero-img { transform: scale(1.03); }
.latest-card:hover .title { color: var(--accent); }
.latest-card .cat {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
}
.latest-card .title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  margin: 4px 0 0;
  color: #000;
}

/* Hero image placeholders (subtly-striped, with monospace label) */
.hero-img {
  display: block;
  background-color: var(--tone, #b48a5a);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.05) 0 14px,
      rgba(0,0,0,0.04) 14px 28px
    );
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.hero-img::after {
  /* Faint green tint overlay on hover — added by parent .featured-card:hover */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.featured-card:hover .hero-img::after,
.latest-card:hover .hero-img::after,
.cat-row:hover .hero-img::after { opacity: 0.08; }
.hero-img .label {
  position: absolute;
  left: 12px; bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
}
.hero-img .badge {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  background: rgba(0,0,0,0.32);
  color: #fff;
  padding: 3px 6px;
  border-radius: 2px;
  letter-spacing: 0.1em;
}

/* ─── Editorial rule with edition mark ─── */
.edition-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--gut-x);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule-soft);
}
.edition-mark::before,
.edition-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-soft);
}
.edition-mark .roman { font-family: var(--sans); font-style: normal; color: var(--ink); letter-spacing: 0; font-weight: 600; }

.past-editions {
  background: #f2f4f7;
  padding: 56px 0 64px;
  border-top: 1px solid rgba(60, 76, 84, 0.12);
  margin-top: 32px;
}
.past-editions .section-head { padding-top: 0; }
.carousel {
  display: flex;
  gap: 28px;
  padding: 18px var(--gut-x) 28px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gut-x);
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 4px; }
.cover {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  cursor: pointer;
}
.cover .cover-img {
  width: 100%;
  aspect-ratio: 5 / 7;
  background-color: var(--tone, #b48a5a);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.05) 0 14px,
      rgba(0,0,0,0.04) 14px 28px
    );
  position: relative;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 18px;
  color: #fff;
  border-radius: var(--r-lg);
}
/* Past Editions cover — subtle green border on hover */
.cover:hover .cover-img { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 20px rgba(0,138,82,0.18); }
.cover .cover-img .cv-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.cover .cover-img .cv-edition {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.9;
  align-self: flex-start;
}
.cover .cover-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  flex-wrap: nowrap;
  white-space: nowrap;
}
.cover .cover-meta strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.cover .cover-meta span { white-space: nowrap; font-weight: 600; color: var(--ink); }
.cover-view-more {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  border: 1.5px dashed var(--rule-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 24px;
  aspect-ratio: 5 / 7;
  transition: background 200ms, color 200ms, border-color 200ms;
  border-radius: var(--r-lg);
}
.cover-view-more:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cover-view-more .arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-display);
  font-size: 16px;
}

/* ─── Category (filtered) view ─── */
.category-hero {
  padding: 24px var(--gut-x) 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
}
.category-hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  color: #000;
}
.category-hero h1 .accent { color: var(--accent); }
.category-hero .lede {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  max-width: 60ch;
  text-wrap: pretty;
  font-weight: 400;
}

/* Edition tabs (replaces numeric pagination) */
.edition-tabs {
  display: flex;
  gap: 4px;
  padding: 10px var(--gut-x);
  border-bottom: 1px solid var(--rule-soft);
  overflow-x: auto;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.edition-tabs .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 12px;
  white-space: nowrap;
  font-weight: 700;
}
.edition-tab {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  border: 0;
  background: transparent;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink-2);
  white-space: nowrap;
  border-radius: 999px;
  transition: background 160ms, color 160ms;
}
.edition-tab:hover { color: var(--ink); }
.edition-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.edition-tab.empty { color: var(--ink-3); opacity: 0.55; }
.edition-tab.empty.active { background: var(--ink-3); color: var(--paper); opacity: 1; }

/* Category article list — Events Calendar style: title left, image right */
.cat-list {
  display: flex;
  flex-direction: column;
  padding: 16px var(--gut-x) 60px;
}
.cat-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
  transition: background 180ms, padding 180ms, border-radius 180ms;
}
.cat-row:hover {
  background: var(--accent-soft);
  padding-left: 16px; padding-right: 16px;
  border-radius: var(--r-lg);
}
.cat-row:hover h3 { color: var(--accent); }
.cat-row:hover .hero-img { transform: scale(1.025); }
.cat-row .hero {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.cat-row .hero .hero-img {
  width: 100%; height: 100%;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.cat-row .meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  display: flex; gap: 12px;
  font-weight: 600;
}
.cat-row .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); display: inline-block; align-self: center; }
.cat-row h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  letter-spacing: 0;
  margin: 8px 0;
  text-wrap: pretty;
  color: #000;
}
.cat-row .dek {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: #000;
  max-width: 62ch;
  text-wrap: pretty;
  font-weight: 400;
}

/* ─── Article reader view ─── */
.breadcrumb {
  padding: 18px var(--gut-x) 6px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  font-weight: 400;
}
.breadcrumb a, .breadcrumb button {
  color: var(--ink-2);
  text-decoration: none;
  border: 0; background: transparent;
  padding: 0; cursor: pointer;
  font-family: inherit; font-size: inherit; letter-spacing: inherit; text-transform: inherit;
  font-weight: 400;
}
.breadcrumb a:hover, .breadcrumb button:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 10px; color: var(--ink-3); }

.article-wrap {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 var(--gut-x);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  margin-bottom: 22px;
  font-weight: 600;
}
.article-meta .cat-pill {
  padding: 4px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); display: inline-block; }
.article-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-wrap: pretty;
  color: #000;
}
.article-dek {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  margin: 0 0 28px;
  max-width: 60ch;
  text-wrap: pretty;
}
.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-2);
  font-weight: 400;
}
.article-byline .author { font-weight: 700; color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 13px; }
.article-hero {
  aspect-ratio: 16 / 9;
  margin: 36px 0 14px;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.article-hero .hero-img { width: 100%; height: 100%; }
.article-caption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 36px;
  font-style: italic;
}
.article-body { font-size: 16px; line-height: 1.7; font-family: var(--sans); color: var(--ink); }
.article-body p { margin: 0 0 1.2em; text-wrap: pretty; }
.article-body p:first-of-type::first-letter {
  /* drop cap removed */
  float: none;
}
.article-body h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  margin: 2em 0 0.5em;
  color: #000;
}
.article-body blockquote {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  margin: 1.4em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
}

/* ─── Share row ─── */
.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0 8px;
}
.share-row .lbl {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
  margin-right: 6px;
  font-weight: 600;
}
.share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 160ms, color 160ms, border-color 160ms, transform 160ms;
  color: var(--ink);
}
.share-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-1px); }
.share-btn svg { width: 15px; height: 15px; }
.share-btn .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 9px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms;
}
.share-btn .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--ink);
}
.share-btn:hover .tooltip { opacity: 1; }
.share-btn.copied { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.nav-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  align-self: center;
  transition: background 160ms, transform 160ms;
}
.nav-subscribe:hover { background: #00703f; transform: translateY(-1px); }
.nav-subscribe svg { display: inline-block; }

/* End-of-article subscribe card */
.article-subscribe {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--accent-soft);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.article-subscribe .article-subscribe-text {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
}
.article-subscribe .article-subscribe-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.article-subscribe h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.article-subscribe p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .nav-subscribe { padding: 6px 10px; font-size: 11.5px; margin: 0 6px 0 4px; }
  .nav-subscribe svg { display: none; }
  .article-subscribe { padding: 22px 22px; }
}

/* ─── Subscribe block — five variants (still available, currently not rendered) ─── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.subscribe { font-family: var(--sans); }
.subscribe h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ink);
}
.subscribe p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.subscribe .subscribe-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* CTA button (no email input) */
.subscribe-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms, transform 160ms, gap 160ms;
  white-space: nowrap;
  text-decoration: none;
}
.subscribe-cta:hover { background: #00703f; transform: translateY(-1px); gap: 14px; }
.subscribe-cta-arrow { transition: transform 160ms; }
.subscribe-cta:hover .subscribe-cta-arrow { transform: translateX(2px); }
.subscribe-cta--sm { padding: 10px 18px; font-size: 13px; }

/* 1. Inline — heading + form on one row, minimal */
.subscribe--inline {
  margin: 56px var(--gut-x) 0;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.subscribe--inline h3 { font-size: 18px; }
.subscribe--inline p { font-size: 13px; margin-top: 2px; }
.subscribe--inline .subscribe-form { flex: 0 0 auto; min-width: 320px; }

/* 2. Split — two-column, text left, button right */
.subscribe--split {
  margin: 56px var(--gut-x) 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--rule-soft);
}
.subscribe--split .subscribe-text { max-width: 50ch; }

/* 3. Card — centered rounded card, soft tint */
.subscribe--card {
  margin: 56px var(--gut-x) 0;
  padding: 40px 32px;
  background: var(--accent-soft);
  border-radius: var(--r-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.subscribe--card .subscribe-text { max-width: 52ch; }
.subscribe--card .subscribe-cta { margin-top: 4px; }

/* 4. Ribbon — dark green full-bleed strip */
.subscribe--ribbon {
  margin: 56px 0 0;
  padding: 32px var(--gut-x);
  background: var(--accent);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.subscribe--ribbon h3 { color: #fff; }
.subscribe--ribbon p { color: rgba(255,255,255,0.85); }
.subscribe--ribbon .subscribe-cta { background: #fff; color: var(--accent); }
.subscribe--ribbon .subscribe-cta:hover { background: var(--ink); color: #fff; }

/* 5. Boxed — bordered editorial box with corner accent */
.subscribe--boxed {
  margin: 56px var(--gut-x) 0;
  padding: 36px 32px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  position: relative;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.subscribe--boxed .subscribe-corner {
  position: absolute;
  top: -1px; left: -1px;
  width: 64px; height: 64px;
  border-top: 4px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-top-left-radius: var(--r-lg);
  pointer-events: none;
}
.subscribe--boxed h3 { margin-top: 4px; }
.subscribe--boxed .subscribe-cta { margin-top: 18px; }

@media (max-width: 820px) {
  .subscribe--split,
  .subscribe--ribbon { grid-template-columns: 1fr; gap: 16px; }
  .subscribe--inline { flex-direction: column; align-items: flex-start; }
}

/* ─── Partnership strip — six variants ─── */

/* Shared bits */
.partnership { font-family: var(--sans); }
.partnership .partnership-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
}
.partnership .partnership-name {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms;
}
.partnership .partnership-name:hover { color: var(--accent); }

/* 1. Hairline — restrained, current default */
.partnership--hairline {
  margin: 56px var(--gut-x) 0;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  flex-wrap: wrap;
  text-align: center;
}
.partnership--hairline .partnership-name { font-size: 20px; }

/* 2. Card — soft tinted block with a tiny logo lockup */
.partnership--card {
  margin: 56px var(--gut-x) 0;
  padding: 22px 28px;
  background: #f2f4f7;
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}
.partnership--card .partnership-text { display: flex; flex-direction: column; gap: 4px; }
.partnership--card .partnership-name { font-size: 22px; line-height: 1.15; }
.partnership--card .partnership-blurb {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 60ch;
}
.cwa-mark {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.cwa-mark-letter + .cwa-mark-letter { margin-left: -4px; opacity: 0.8; }

/* 3. Pill — a single green-outline pill the user can click */
.partnership--pill {
  margin: 56px 0 0;
  padding: 22px var(--gut-x);
  display: flex;
  justify-content: center;
}
.partnership-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
  transition: background 160ms, transform 160ms;
}
.partnership-pill-link:hover { background: var(--accent); transform: translateY(-1px); }
.partnership-pill-link:hover .partnership-label,
.partnership-pill-link:hover .partnership-name { color: #fff; }
.partnership--pill .partnership-label { color: var(--accent); font-size: 10.5px; }
.partnership--pill .partnership-name { font-size: 15px; color: var(--accent); }
.partnership--pill .partnership-divider {
  width: 1px; height: 14px; background: var(--accent); opacity: 0.4;
}

/* 4. Colophon — centered, subtle, magazine-style credit (no caps) */
.partnership--colophon {
  margin: 32px var(--gut-x) 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}
.partnership--colophon .partnership-label {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink-2);
}
.partnership--colophon .partnership-name { font-size: 14px; }

/* 5. Stacked — ceremonial, full-bleed, big name on its own line */
.partnership--stacked {
  margin: 64px var(--gut-x) 0;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.partnership--stacked .partnership-label { font-size: 10.5px; letter-spacing: 0.32em; }
.partnership--stacked .partnership-name {
  font-size: 32px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* 6. Accent — left-aligned with green vertical bar */
.partnership--accent {
  margin: 56px var(--gut-x) 0;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.partnership--accent .partnership-bar {
  width: 4px;
  height: 36px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.partnership--accent .partnership-label { font-size: 11px; letter-spacing: 0.18em; }
.partnership--accent .partnership-name { font-size: 18px; margin-left: auto; }

@media (max-width: 720px) {
  .partnership--card { grid-template-columns: 1fr; text-align: center; }
  .partnership--card .cwa-mark { margin: 0 auto; }
  .partnership--accent { flex-wrap: wrap; }
  .partnership--accent .partnership-name { margin-left: 0; }
}

/* Legacy plain `.partnership` (without variant class) — kept for compatibility */
.partnership:not([class*="partnership--"]) {
  margin: 56px var(--gut-x) 0;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

/* ─── Get Your Journal CTA banner (above footer, on every page) ─── */
.get-journal {
  background: var(--accent);
  color: #fff;
  margin: 64px var(--gut-x) 0;
  border-radius: 12px;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: visible;
}
.get-journal .cover-block {
  position: relative;
  width: 110px;
  height: 142px;
  transform: translateY(-22px);
}
.get-journal .cover-block .cover-art {
  position: absolute;
  inset: 0;
  background: #f3f1ec;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.get-journal .cover-block .cover-art .cover-top {
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  padding: 6px 8px 4px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.get-journal .cover-block .cover-art .cover-top .tag {
  background: #fff;
  color: var(--accent);
  padding: 2px 5px;
  border-radius: 2px;
  font-size: 7.5px;
  letter-spacing: 0.16em;
}
.get-journal .cover-block .cover-art .cover-mast {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  letter-spacing: -0.01em;
  color: var(--accent);
  padding: 8px 0 4px;
  line-height: 1;
}
.get-journal .cover-block .cover-art .cover-image {
  flex: 1;
  background:
    linear-gradient(135deg, #4a6b3c 0%, #6b8a5a 60%, #b4a36a 100%);
  position: relative;
}
.get-journal .cover-block .cover-art .cover-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255,255,255,0.18) 0 18%, transparent 22%),
    radial-gradient(ellipse at 70% 65%, rgba(255,255,255,0.14) 0 14%, transparent 18%),
    radial-gradient(ellipse at 50% 75%, rgba(255,255,255,0.12) 0 16%, transparent 20%);
}
.get-journal .cover-block .cover-art .cover-foot {
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px;
  text-align: center;
  background: #fff;
}
.get-journal .cover-block .out-now {
  position: absolute;
  top: 0;
  right: -10px;
  width: 22px;
  height: 100%;
  background: #c9d96a;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.get-journal .copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.get-journal .copy .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #c9d96a;
}
.get-journal .copy h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
  color: #fff;
}
.get-journal .copy p {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.get-journal .cta {
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 160ms, color 160ms, transform 160ms;
  white-space: nowrap;
  text-decoration: none;
}
.get-journal .cta:hover { background: var(--ink); color: #fff; transform: translateX(2px); }
.get-journal .cta .arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}
.get-journal .cta:hover .arr { background: #fff; color: var(--ink); }

@media (max-width: 820px) {
  .get-journal { grid-template-columns: auto 1fr; padding: 22px 22px; }
  .get-journal .cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) {
  .get-journal { grid-template-columns: 1fr; }
  .get-journal .cover-block { transform: none; }
}

.site-footer {
  margin-top: 64px;
  background: var(--ink);
  color: var(--paper);
  padding: 56px var(--gut-x) 28px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
  opacity: 0.65;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); font-size: 13.5px; }
.site-footer li.new { color: var(--paper); }
.site-footer li.new::after {
  content: "NEW";
  font-size: 9px;
  letter-spacing: 0.18em;
  background: var(--accent);
  color: var(--paper);
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 2px;
  vertical-align: middle;
}
.site-footer .footer-brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.site-footer .footer-strap {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 36ch;
}
.site-footer .footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}
.site-footer .footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.site-footer .footer-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  transition: background 160ms, color 160ms, border-color 160ms;
  text-decoration: none;
}
.site-footer .footer-socials a svg { width: 14px; height: 14px; }
.site-footer .footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── Side strip page numerals (graphical accent — off by default now) ─── */
.page-numeral {
  position: fixed;
  left: 14px;
  bottom: 90px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
  text-transform: none;
  pointer-events: none;
  z-index: 30;
  transform: scale(var(--dc-inv-zoom, 1));
  transform-origin: bottom left;
}

/* ─── Responsive ─── */
@media (max-width: 1380px) {
  .nav-item { padding: 14px 14px; letter-spacing: 0.12em; }
}
@media (max-width: 1240px) {
  .nav-item { padding: 14px 10px; font-size: 11.5px; letter-spacing: 0.1em; }
  .nav-row .nav-search { width: 200px; flex-basis: 200px; padding: 0 12px; }
}
@media (max-width: 1100px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .category-hero { grid-template-columns: 1fr; gap: 24px; }
  .nav-item { padding: 14px 8px; font-size: 11px; }
}
@media (max-width: 980px) {
  /* Collapse search to an icon to free room for all 10 nav items */
  .nav-row .nav-search { width: 52px; flex: 0 0 52px; padding: 0; justify-content: center; }
  .nav-row .nav-search input,
  .nav-row .nav-search > svg { display: none; }
  .nav-row .nav-search button.search-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-row .nav-search.open {
    position: absolute;
    right: 0; top: 100%;
    width: 100%;
    flex: none;
    background: var(--paper-3);
    border-top: 1px solid var(--rule);
    border-left: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 var(--gut-x);
    z-index: 5;
    justify-content: flex-start;
  }
  .nav-row .nav-search.open input { display: block; flex: 1; }
  .nav-row .nav-search.open > svg { display: block; margin-right: 8px; }
  .nav-row .nav-search.open button.search-toggle { display: none; }
}
@media (max-width: 820px) {
  .nav-row { grid-template-columns: 1fr; padding: 4px var(--gut-x); }
  .nav-row .nav-subscribe { display: none; }
  .nav-row .nav-search { display: none; }
  .nav-row .nav-items { grid-column: 1; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .nav-row .nav-items::-webkit-scrollbar { display: none; }
  .nav-item { padding: 14px 12px; }
}
@media (max-width: 720px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .latest-grid { grid-template-columns: 1fr 1fr; }
  .cat-row { grid-template-columns: 1fr; }
  .cat-row .hero { order: -1; }
}

/* ─── nhwa-theme override section ──────────────────────────────────────
 * The parent theme's CSS uses higher-specificity selectors that override
 * .mobile-menu's default display: none. We scope these to body.nhwa-journal
 * + !important to guarantee the journal layout wins on desktop.
 * ─────────────────────────────────────────────────────────────────────── */

body.nhwa-journal .mobile-menu {
  display: none !important;
}
body.nhwa-journal .mobile-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.nhwa-journal .util-hamburger { display: none; }

@media (max-width: 820px) {
  body.nhwa-journal .mobile-menu {
    display: block !important;
    max-height: 0 !important;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--rule-soft);
    transition: max-height 280ms ease;
  }
  body.nhwa-journal .mobile-menu.open {
    max-height: 600px !important;
  }
  body.nhwa-journal .util-hamburger { display: flex !important; }
  body.nhwa-journal .nav-row { display: none !important; }
}

/* Article body — the parent theme's typography is leaking; force readable defaults */
body.nhwa-journal .article-body { line-height: 1.7; max-width: 720px; }
body.nhwa-journal .article-body p { margin: 0 0 1em; font-family: var(--sans, 'Open Sans', system-ui, sans-serif); font-size: 17px; color: var(--ink, #3c4c54); }
body.nhwa-journal .article-title { font-family: var(--sans, 'Open Sans', system-ui, sans-serif); }

/* Featured card titles must be readable — parent theme h3 styling can override */
body.nhwa-journal .featured-card h3.title,
body.nhwa-journal .featured-card .title {
  font-family: var(--sans, 'Open Sans', system-ui, sans-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 0;
}

/* ─── Parent theme overrides that need to win across pages ────────────────────
 * 1. nhwa-theme's 'header { height: 110px }' clips our masthead so the
 *    masthead-title and nav-row render BELOW it. Force auto height.
 * 2. nhwa-theme has a generic 'svg { max-width: 100% }' (with flex shrinking
 *    in the masthead) which collapses inline icon SVGs to width:0. Force them
 *    to honour their declared dimensions inside the journal layout.
 * 3. Anchor tags inside .share-btn / .util-search-toggle pick up theme
 *    underline & padding — strip those.
 * ─────────────────────────────────────────────────────────────────────────── */

body.nhwa-journal header.masthead {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
body.nhwa-journal .masthead .masthead-utility,
body.nhwa-journal .masthead .masthead-inner,
body.nhwa-journal .masthead .nav-row {
  width: 100%;
  box-sizing: border-box;
}

/* Force inline icon SVGs to honour their HTML width/height attributes */
body.nhwa-journal .util-search-toggle svg,
body.nhwa-journal .util-search svg,
body.nhwa-journal .util-subscribe svg,
body.nhwa-journal .util-hamburger svg,
body.nhwa-journal .share-btn svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 auto;
  display: inline-block;
}
body.nhwa-journal .util-subscribe svg { width: 14px !important; height: 14px !important; }

/* Share-row buttons: kill anchor inheritance from theme */
body.nhwa-journal .share-row .share-btn,
body.nhwa-journal .share-row a.share-btn {
  text-decoration: none !important;
  border-bottom: 0 !important;
}
body.nhwa-journal .share-btn { line-height: 0; }

/* Make sure the search input expands properly when toggled open */
body.nhwa-journal .util-search input[type=search] {
  width: 0;
  transition: width 200ms ease;
}
body.nhwa-journal .util-search.open input[type=search] {
  width: 200px;
}

/* ─── Round 2 visual fixes (v0.1.4) ───────────────────────────────────── */

/* 1. Kill the 40px margin-top leaking from the parent theme onto our masthead */
body.nhwa-journal header.masthead {
  margin: 0 !important;
}
body.nhwa-journal main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 2. Title — larger when not scrolled, shrink when compact */
body.nhwa-journal .masthead-title {
  font-size: clamp(36px, 5vw, 56px) !important;
  line-height: 1.15 !important;
}
body.nhwa-journal .masthead.compact .masthead-title {
  font-size: 28px !important;
}

/* 3. Search bar in the utility strip — keep compact and pill-shaped */
body.nhwa-journal .util-search {
  height: 36px;
  align-items: center;
}
body.nhwa-journal .util-search-toggle {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent;
  min-width: 0;
  flex: 0 0 32px;
}
body.nhwa-journal .util-search input[type=search] {
  height: 28px;
  line-height: 28px;
  padding: 0 !important;
  margin: 0;
  font-size: 14px;
  box-sizing: border-box;
}
body.nhwa-journal .util-search.open {
  padding: 0 12px 0 6px !important;
}
body.nhwa-journal .util-search.open input[type=search] {
  width: 200px !important;
  padding: 0 6px !important;
}

/* 4. Smooth compact transition — use max-height instead of display:none on the
 *    utility strip so the sticky header doesn't 'pop' on scroll, eliminating
 *    the seizure-like jitter around the scroll threshold. */
body.nhwa-journal .masthead-utility {
  overflow: hidden;
  max-height: 80px;
  transition: max-height 220ms ease, padding 220ms ease, opacity 180ms ease,
              border-bottom-color 200ms ease;
}
body.nhwa-journal .masthead.compact .masthead-utility {
  display: flex !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
  pointer-events: none;
  border-bottom-color: transparent !important;
}

/* Smooth masthead-inner padding transition (already in base CSS but pin
 * to specific values so it's predictable) */
body.nhwa-journal .masthead.compact .masthead-inner {
  padding-top: 8px !important;
  padding-bottom: 6px !important;
}

/* 5. Share icons — visually unified */
body.nhwa-journal .share-row .share-btn svg {
  width: 16px !important;
  height: 16px !important;
}
body.nhwa-journal .share-row .share-btn[data-share='copy'] svg,
body.nhwa-journal .share-row .share-btn[data-share='email'] svg,
body.nhwa-journal .share-row .share-btn[data-share='instagram'] svg {
  stroke-width: 1.8;
}


/* ─── Round 3 fixes (v0.1.6) ────────────────────────────────────────────
 * (a) The Copy share button (only one that's <button>) was getting native
 *     button padding from the parent theme, making it elliptical.
 * (b) Animating title font-size on scroll reflows the masthead height,
 *     which makes the sticky element jitter against the scrolling content.
 *     Keep the title at 56px throughout. The compact-on-scroll effect is
 *     produced entirely by the utility strip sliding away.
 * ───────────────────────────────────────────────────────────────────── */

/* (a) Force the Copy share <button> to match the others exactly */
body.nhwa-journal .share-row .share-btn,
body.nhwa-journal .share-row button.share-btn,
body.nhwa-journal .share-row a.share-btn {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid var(--rule, #e0e4e7) !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  flex: 0 0 36px !important;
  line-height: 1 !important;
  font-size: 0 !important;
  vertical-align: middle;
  cursor: pointer;
  -webkit-appearance: none !important;
  appearance: none !important;
}
body.nhwa-journal .share-row .share-btn:hover {
  background: var(--ink, #3c4c54) !important;
  color: var(--paper, #fff) !important;
  border-color: var(--ink, #3c4c54) !important;
}

/* (b) Don't animate title size — keep constant 56px to avoid masthead reflow */
body.nhwa-journal .masthead-title {
  font-size: clamp(36px, 5vw, 56px) !important;
  transition: none !important;
}
body.nhwa-journal .masthead.compact .masthead-title {
  /* override the earlier 28px compact rule — keep constant size to prevent reflow */
  font-size: clamp(36px, 5vw, 56px) !important;
}

/* Re-confirm the utility strip transition (the only animated part now) */
body.nhwa-journal .masthead-utility {
  transition: max-height 280ms cubic-bezier(.2,.7,.2,1),
              padding 280ms cubic-bezier(.2,.7,.2,1),
              opacity 220ms ease,
              border-bottom-color 200ms ease !important;
}

/* Also disable transitions on .masthead and .masthead-inner so the only animated
 * thing is the utility strip's collapse. Prevents stacking transitions. */
body.nhwa-journal .masthead {
  transition: none !important;
}
body.nhwa-journal .masthead-inner {
  transition: none !important;
}


/* ─── Round 4 fixes (v0.1.7) — anti-jitter sticky header ────────────────
 * Strategy: pin the masthead to two FIXED heights (200px normal, 100px
 * compact). All children resize WITHIN these fixed containers, so the
 * sticky position only recalculates once per state change (not per frame
 * during a transition). The masthead's outer height transitions smoothly
 * between the two values, not gradually as content reflows.
 * ───────────────────────────────────────────────────────────────────── */

body.nhwa-journal header.masthead {
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  transition: height 260ms cubic-bezier(.2,.7,.2,1),
              min-height 260ms cubic-bezier(.2,.7,.2,1),
              max-height 260ms cubic-bezier(.2,.7,.2,1) !important;
  overflow: hidden;
  will-change: height;
}
body.nhwa-journal header.masthead.compact {
  height: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
}

/* Title — shrinks via font-size, transitions smoothly */
body.nhwa-journal .masthead-title {
  font-size: clamp(36px, 5vw, 56px) !important;
  transition: font-size 260ms cubic-bezier(.2,.7,.2,1) !important;
}
body.nhwa-journal .masthead.compact .masthead-title {
  font-size: 28px !important;
}

/* Utility strip — slide up via transform (no layout effect) */
body.nhwa-journal .masthead-utility {
  transition: transform 260ms cubic-bezier(.2,.7,.2,1),
              opacity 200ms ease !important;
  will-change: transform, opacity;
  /* Remove the max-height transition we added in round 2 */
  max-height: none !important;
}
body.nhwa-journal .masthead.compact .masthead-utility {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  /* Don't change display — keep it flex so transition works */
  display: flex !important;
  max-height: none !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}


/* ─── Round 5 fixes (v0.1.8) — switch to position: fixed ────────────────
 * Sticky positioning recalculates per scroll event when its element
 * resizes — that's the jitter. Switch to position: fixed, give main an
 * equivalent padding-top, and transition both heights together via a CSS
 * variable. The padding-top transition keeps content stable while the
 * fixed header animates above it.
 * ───────────────────────────────────────────────────────────────────── */

:root {
  --nhwa-mast-h: 204px;
}
body.nhwa-journal main {
  padding-top: var(--nhwa-mast-h) !important;
  transition: padding-top 280ms cubic-bezier(.2,.7,.2,1) !important;
}
body.nhwa-journal header.masthead.compact ~ * { /* not needed but kept for clarity */ }

/* Override the fixed-height + overflow:hidden from round 4 — let masthead grow naturally */
body.nhwa-journal header.masthead {
  /* position: fixed (superseded by sticky in v0.7.3) */
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  z-index: 100 !important;
  /* No height transition — the masthead auto-sizes based on children */
  transition: none !important;
  will-change: auto;
}

/* Utility strip collapses via max-height (which actually reduces layout
 * height, so nav-row moves up naturally) */
body.nhwa-journal .masthead-utility {
  max-height: 80px;
  overflow: hidden;
  opacity: 1;
  transform: none !important;
  transition: max-height 280ms cubic-bezier(.2,.7,.2,1),
              opacity 200ms ease,
              padding 280ms cubic-bezier(.2,.7,.2,1) !important;
}
body.nhwa-journal header.masthead.compact .masthead-utility {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
  border-bottom-color: transparent !important;
}

/* Title — sized naturally; transition is fine here */
body.nhwa-journal .masthead-title {
  font-size: clamp(36px, 5vw, 56px) !important;
  transition: font-size 280ms cubic-bezier(.2,.7,.2,1) !important;
}
body.nhwa-journal header.masthead.compact .masthead-title {
  font-size: 28px !important;
}


/* ─── Round 6 fixes (v0.2.1) — header alignment + nav padding ──────────── */

/* (1) Active nav pill — more horizontal breathing room so the selected state
 *     doesn't look squashed against the dividers and other items */
body.nhwa-journal .nav-item.active {
  padding: 11px 24px !important;
  margin: 0 4px;
}
body.nhwa-journal .nav-item {
  padding: 11px 18px !important;
}
/* Increase divider clearance on either side of the active pill */
body.nhwa-journal .nav-item.active::before,
body.nhwa-journal .nav-item.active + .nav-item::before {
  background: transparent !important;
}

/* (2) Header alignment — the masthead is position:fixed and spans the full
 *     viewport. The page content below has gutters (~55px each side). Make
 *     the masthead's inner row sit within an equivalent max-width container
 *     so the title visually aligns with the content's center, not the
 *     viewport's center (which can drift when the page has asymmetric
 *     chrome). Also explicitly center the title within its row. */
body.nhwa-journal .masthead-utility,
body.nhwa-journal .masthead-inner,
body.nhwa-journal .nav-row {
  max-width: 1400px;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.nhwa-journal .masthead-inner {
  justify-content: center !important;
  text-align: center !important;
}
body.nhwa-journal .masthead-title {
  margin: 0 auto !important;
  text-align: center !important;
  display: block;
}


/* ─── Round 7 — breathing room below the fixed masthead ─────────────────
 * The nav-row sits at the bottom of the fixed masthead; the next content
 * section was rendering 4px below it (flush). Push main content down by
 * an extra 32px so the section heading doesn't hug the nav-row pills.
 * Apply the same offset in compact mode so the spacing stays consistent
 * after the masthead shrinks. */

body.nhwa-journal main {
  padding-top: calc(var(--nhwa-mast-h) + 12px) !important;
}


/* ─── Round 8 — bulletproof title centering (v0.3.0) ────────────────────
 * Set H1 to width: 100% within the masthead-inner. With text-align: center,
 * the title's visible text is centered within its full-width parent,
 * regardless of flex behaviour or theme leakage.
 * ───────────────────────────────────────────────────────────────────── */

body.nhwa-journal header.masthead .masthead-inner {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px 0 10px !important;
}
body.nhwa-journal header.masthead .masthead-inner > .masthead-title {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  display: block !important;
  flex: 1 1 100% !important;
}
body.nhwa-journal header.masthead .masthead-inner > .masthead-title > a {
  display: inline-block;
  margin: 0 auto;
}

/* Same alignment treatment for nav-row and utility — full-width, centered content */
body.nhwa-journal header.masthead .masthead-utility,
body.nhwa-journal header.masthead .nav-row {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.nhwa-journal header.masthead .nav-row {
  justify-content: center !important;
}


/* ─── Round 9 — nav-row vertical padding + smaller pill ─────────────────
 * The active pill was touching the top and bottom of the nav-row. Add
 * vertical padding to the row, and reduce the active pill's internal
 * padding so it doesn't dominate the row visually. */

body.nhwa-journal header.masthead .nav-row {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  align-items: center !important;
}
body.nhwa-journal header.masthead .nav-row .nav-items {
  align-items: center !important;
}
body.nhwa-journal .nav-item {
  padding: 8px 16px !important;
}
body.nhwa-journal .nav-item.active {
  padding: 6px 18px !important;
  margin: 0 4px !important;
}


/* ─── Round 10 — image alignment (v0.3.3) ───────────────────────────────
 * Featured + Latest card images were stretching to fill the 4:5/4:3
 * container (object-fit: fill). Cover-crop them instead so every card
 * presents the same shape, centered around the image's middle. */

body.nhwa-journal .featured-card .hero img,
body.nhwa-journal .featured-card .hero .hero-img,
body.nhwa-journal .latest-card .hero img,
body.nhwa-journal .latest-card .hero .hero-img,
body.nhwa-journal .article-hero img,
body.nhwa-journal .article-hero .hero-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

/* Make sure the .hero container clips the image to its rounded corners */
body.nhwa-journal .featured-card .hero,
body.nhwa-journal .latest-card .hero {
  overflow: hidden;
  background: var(--tone, #c9b89a);
}


/* ─── Round 11 — state-page card image alignment (v0.3.6) ────────────── */
body.nhwa-journal .cat-row .hero img,
body.nhwa-journal .cat-row .hero .hero-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}
body.nhwa-journal .cat-row .hero {
  overflow: hidden;
  background: var(--tone, #c9b89a);
}

/* ─── CTA banner real cover image (v0.3.7) ───────────────────────────── */
body.nhwa-journal .get-journal .cover-image-real {
  width: 110px;
  height: 137px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
@media (max-width: 820px) {
  body.nhwa-journal .get-journal .cover-image-real {
    width: 90px;
    height: 112px;
  }
}

/* ─── Past Editions — real cover image (v0.3.8) ─────────────────────── */
body.nhwa-journal .cover .cover-img.cover-img-real {
  background-color: var(--tone, #7a8a6b);
  background-image: var(--bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.nhwa-journal .cover .cover-img.cover-img-real .cv-title,
body.nhwa-journal .cover .cover-img.cover-img-real .cv-edition {
  display: none;
}
body.nhwa-journal .all-editions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  padding: 12px var(--gut-x) 80px;
}
@media (max-width: 1024px) {
  body.nhwa-journal .all-editions-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body.nhwa-journal .all-editions-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ─── Featured grid — 3 columns instead of 4 (v0.4.1) ───────────────── */
body.nhwa-journal .featured-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 36px !important;
}
@media (max-width: 1024px) {
  body.nhwa-journal .featured-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  body.nhwa-journal .featured-grid { grid-template-columns: 1fr !important; }
}
/* Bigger card titles on featured */
body.nhwa-journal .featured-card .title {
  font-size: 22px !important;
  line-height: 1.28 !important;
}

/* ─── Featured hero — landscape aspect (v0.4.2) ─────────────────────── */
body.nhwa-journal .featured-card .hero {
  aspect-ratio: 3 / 2 !important;
}
body.nhwa-journal .latest-card .hero {
  aspect-ratio: 3 / 2 !important;
}

/* ─── Bigger state label + tighter title gap (v0.4.3) ──────────────────── */
body.nhwa-journal .featured-card .cat,
body.nhwa-journal .latest-card .cat {
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
  font-weight: 700 !important;
  margin-top: 16px !important;
}
body.nhwa-journal .featured-card .title,
body.nhwa-journal .latest-card .title {
  margin-top: 2px !important;
}
body.nhwa-journal .featured-card h3.title,
body.nhwa-journal .latest-card h3.title {
  margin: 2px 0 0 !important;
}

/* ─── Hero aspect — slightly taller landscape (v0.4.4) ─────────────── */
body.nhwa-journal .featured-card .hero,
body.nhwa-journal .latest-card .hero {
  aspect-ratio: 4 / 3 !important;
}

/* ─── Even tighter state-to-title gap (v0.4.5) ──────────────────────── */
body.nhwa-journal .featured-card .cat,
body.nhwa-journal .latest-card .cat {
  display: block;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}
body.nhwa-journal .featured-card .title,
body.nhwa-journal .latest-card .title,
body.nhwa-journal .featured-card h3.title,
body.nhwa-journal .latest-card h3.title {
  margin: 0 !important;
  padding: 4px 0 0 !important;
  line-height: 1.25 !important;
}

/* ─── A tad more space state-to-title (v0.4.6) ──────────────────────── */
body.nhwa-journal .featured-card .title,
body.nhwa-journal .latest-card .title,
body.nhwa-journal .featured-card h3.title,
body.nhwa-journal .latest-card h3.title {
  padding-top: 10px !important;
}

/* ─── All Editions archive — full-size cover grid (v0.4.7) ──────────────
 * The .cover style has a fixed width: 220px from its carousel use. In the
 * archive grid, we want covers to fill each grid column (auto-sized to 1fr)
 * so the magazine covers are properly large and visually impactful. */
body.nhwa-journal .all-editions-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 48px 36px !important;
  padding: 24px var(--gut-x) 80px !important;
}
body.nhwa-journal .all-editions-grid .cover {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
}
body.nhwa-journal .all-editions-grid .cover .cover-img {
  width: 100% !important;
  aspect-ratio: 768 / 1086 !important; /* exact ratio of the source cover images */
  border-radius: 8px;
}
body.nhwa-journal .all-editions-grid .cover .cover-meta {
  margin-top: 14px !important;
  font-size: 15px;
}
body.nhwa-journal .all-editions-grid .cover .cover-meta strong {
  font-size: 16px;
}
body.nhwa-journal .all-editions-grid .cover .cover-meta a {
  font-weight: 600;
}
@media (max-width: 1024px) {
  body.nhwa-journal .all-editions-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 720px) {
  body.nhwa-journal .all-editions-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 32px 20px !important; }
}

/* ─── Round 13 fixes (v0.4.8) ─────────────────────────────────────────── */

/* 1. Title J descender — give title bottom breathing room so the J doesn't
 *    crash into the green border. Also tighten so the title doesn't appear
 *    weirdly tall when there's no descender (with padding-bottom). */
body.nhwa-journal .masthead-title {
  padding-bottom: 8px !important;
  line-height: 1.05 !important;
}

/* 2. Click glitch on title — kill the default anchor focus/active flash */
body.nhwa-journal .masthead-title a,
body.nhwa-journal .masthead-title a:focus,
body.nhwa-journal .masthead-title a:active,
body.nhwa-journal .masthead-title a:hover {
  color: inherit !important;
  text-decoration: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* 3. Features all caps — applies to nav-item labels (state names) */
body.nhwa-journal .nav-item,
body.nhwa-journal .mobile-menu-item {
  text-transform: uppercase !important;
  letter-spacing: 0.05em;
}

/* 4. Edition pill placement — move out of the top-right of section-head, place
 *    as a small badge below the Featured Articles heading. */
body.nhwa-journal main .section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
body.nhwa-journal main .section-head h2 {
  margin: 0;
}
body.nhwa-journal main .section-head .meta {
  order: 2;
}
body.nhwa-journal main .section-head .pill {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}

/* 5. Remove green hover outline on ALL card images */
body.nhwa-journal .featured-card:hover .hero,
body.nhwa-journal .latest-card:hover .hero,
body.nhwa-journal .cat-row:hover .hero,
body.nhwa-journal .past-editions .cover:hover .cover-img,
body.nhwa-journal .all-editions-grid .cover:hover .cover-img,
body.nhwa-journal .article-hero:hover {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
/* Also nuke the green tint overlay on hover */
body.nhwa-journal .hero-img::after { display: none !important; }

/* 6. Past editions — overlay date + Open INSIDE cover image; whole cover is link */
body.nhwa-journal .past-editions .cover,
body.nhwa-journal .all-editions-grid .cover { position: relative; }
body.nhwa-journal .cover .cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
body.nhwa-journal .cover .cover-img.cover-img-real {
  position: relative;
  overflow: hidden;
}
body.nhwa-journal .cover .cover-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  pointer-events: none;
}
body.nhwa-journal .cover .cover-overlay .ce-label {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
body.nhwa-journal .cover .cover-overlay .ce-open {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0.95;
}
body.nhwa-journal .cover .cover-meta { display: none; }
body.nhwa-journal .cover .cover-link:hover .cover-overlay {
  background: linear-gradient(180deg, rgba(0,138,82,0.0) 0%, rgba(0,138,82,0.85) 100%);
}


/* Title J descender — override the earlier 'padding: 0' rule with higher specificity */
body.nhwa-journal header.masthead .masthead-inner > .masthead-title {
  padding-top: 0 !important;
  padding-bottom: 12px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  line-height: 1.18 !important;
}

/* ─── Open badge — high-contrast, accessible (v0.5.0) ──────────────────
 * White text on solid green (#008A52 = NHWA accent). Contrast ratio
 * with white = 4.74:1, exceeds WCAG AA for normal text (4.5:1).
 * Replaces the previous low-contrast gradient overlay. */
body.nhwa-journal .cover-overlay { display: none !important; }
body.nhwa-journal .cover .cover-open-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--accent, #008A52);
  color: #ffffff !important;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}
body.nhwa-journal .cover .cover-link:hover .cover-open-badge {
  background: #006a3f; /* darker green — even higher contrast on hover */
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* ─── Open badge — switch to charcoal for higher contrast (v0.5.1) ──── */
body.nhwa-journal .cover .cover-open-badge {
  background: var(--ink, #3C4C54) !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  font-size: 15px !important;
  padding: 9px 18px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4) !important;
}
body.nhwa-journal .cover .cover-link:hover .cover-open-badge {
  background: var(--accent, #008A52) !important;
  border-color: #ffffff !important;
}

/* ─── Revert Open back to in-image text with WCAG-grade dark band (v0.5.2)
 * White on charcoal (#1f2a30 ≈ near-black) gives ~14:1 contrast,
 * well above WCAG AAA (7:1). The gradient eases the band into the cover
 * image so it doesn't look like a strip slapped on top. */

/* Hide the previous pill badge */
body.nhwa-journal .cover .cover-open-badge { display: none !important; }

/* Bring back gradient overlay with stronger opacity at the bottom */
body.nhwa-journal .cover-overlay { display: flex !important; }
body.nhwa-journal .cover .cover-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 18px 16px;
  background: linear-gradient(180deg,
    rgba(31,42,48,0) 0%,
    rgba(31,42,48,0.55) 35%,
    rgba(31,42,48,0.95) 100%);
  color: #ffffff !important;
  font-family: var(--sans);
  display: flex !important;
  justify-content: flex-end;
  align-items: baseline;
  pointer-events: none;
}
body.nhwa-journal .cover .cover-overlay .ce-label { display: none; }
body.nhwa-journal .cover .cover-overlay .ce-open {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
body.nhwa-journal .cover .cover-link:hover .cover-overlay {
  background: linear-gradient(180deg,
    rgba(0,138,82,0) 0%,
    rgba(0,138,82,0.7) 40%,
    rgba(0,138,82,0.95) 100%);
}

/* ─── Mobile — masthead height auto (v0.5.3) ────────────────────────────
 * On mobile the nav-row is hidden, so the fixed --nhwa-mast-h height
 * leaves a big empty band above the green border. Let the masthead size
 * to its actual content instead. Match main's padding-top to the new
 * smaller height via a media-scoped CSS variable. */
@media (max-width: 820px) {
  body.nhwa-journal { --nhwa-mast-h: 140px; }
  body.nhwa-journal header.masthead {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}
@media (max-width: 480px) {
  body.nhwa-journal { --nhwa-mast-h: 130px; }
}

/* ─── Mobile — tighten article-page whitespace under masthead (v0.5.4)
 * On mobile main has padding-top to clear the fixed masthead PLUS a 12px
 * buffer PLUS the breadcrumb has its own padding-top — adds up to noticeable
 * empty space on small viewports. Tighten both. */
@media (max-width: 820px) {
  body.nhwa-journal main {
    padding-top: calc(var(--nhwa-mast-h) + 4px) !important;
  }
  body.nhwa-journal .breadcrumb {
    padding-top: 6px !important;
    padding-bottom: 4px !important;
  }
  body.nhwa-journal .article-wrap {
    margin-top: 8px !important;
  }
}

/* ─── Mobile — tighten section-head spacing (v0.5.5) ────────────────── */
@media (max-width: 820px) {
  body.nhwa-journal main .section-head {
    padding-top: 16px !important;
    padding-bottom: 8px !important;
    margin-top: 0 !important;
    gap: 6px !important;
  }
  body.nhwa-journal main .section-head h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  body.nhwa-journal main .section-head .pill {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }
  /* And shrink the featured/latest grid top padding on mobile */
  body.nhwa-journal .featured-grid,
  body.nhwa-journal .latest-grid {
    padding-top: 0 !important;
  }
}

/* ─── Mobile — tighten title padding (v0.5.6) ──────────────────────── */
@media (max-width: 820px) {
  body.nhwa-journal header.masthead .masthead-inner > .masthead-title {
    padding-bottom: 4px !important;
    line-height: 1.1 !important;
  }
  body.nhwa-journal header.masthead .masthead-inner {
    padding: 8px 16px 6px !important;
  }
  body.nhwa-journal main .section-head {
    padding-top: 10px !important;
  }
}

/* ─── Section-head h2 — force compact height (v0.5.7) ──────────────────── */
body.nhwa-journal main .section-head h2,
body.nhwa-journal section .section-head h2 {
  display: block !important;
  margin: 0 !important;
  padding: 0 0 0 16px !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  border-left: 4px solid var(--accent, #008A52);
  align-items: initial !important;
}
@media (max-width: 820px) {
  body.nhwa-journal main .section-head h2 {
    font-size: 22px !important;
  }
  body.nhwa-journal main .section-head {
    padding: 14px 16px 8px !important;
  }
}

/* ─── Revert mobile static-height attempts (v0.5.8) ─────────────────────
 * The previous attempts (v0.5.4 → v0.5.7) used static --nhwa-mast-h values
 * that didn't match the actual rendered masthead height — leaving gaps.
 * Now the JS dynamically measures the masthead height after layout and
 * writes the real px value to --nhwa-mast-h. We just need to ensure the
 * masthead has no leftover space-reserving rules. */

body.nhwa-journal header.masthead {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
/* The nav-row really is removed from layout on mobile */
@media (max-width: 820px) {
  body.nhwa-journal .nav-row { display: none !important; }
  /* Reset main's padding-top to exactly the masthead height — no buffer */
  body.nhwa-journal main {
    padding-top: var(--nhwa-mast-h) !important;
  }
  /* Revert section-head overrides */
  body.nhwa-journal main .section-head { padding: 14px 16px 8px !important; }
}


/* ─── Final mast-h sync — JS writes to body inline (v0.5.9) ──────────────
 * Reset any static media-query overrides on body's --nhwa-mast-h so the
 * JS-measured value (set inline on body) wins via the cascade. */
@media (max-width: 820px) {
  body.nhwa-journal { /* let inline JS value pass through */ }
}

/* ─── Fix duplicate green bar before section heading (v0.6.1) ───────────
 * v0.5.7 added border-left on .section-head h2, but the section-head
 * already has a green decoration from its own ::before pseudo-element.
 * Remove the duplicate. */
body.nhwa-journal main .section-head h2,
body.nhwa-journal section .section-head h2 {
  border-left: 0 !important;
  padding-left: 0 !important;
}

/* ─── Revert section-head to original design (v0.6.2) ───────────────────
 * My recent overrides (v0.4.8, v0.5.5–v0.5.7) all shifted the section-head
 * away from the package's original design. Restore the original layout:
 *   - Row layout, heading on left, edition pill on right
 *   - 40px top, 18px bottom padding
 *   - h2 with inline-flex + ::before green bar (6×24px) — single decoration
 * ───────────────────────────────────────────────────────────────────── */

body.nhwa-journal main .section-head,
body.nhwa-journal section .section-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 40px var(--gut-x) 18px !important;
  gap: 24px !important;
  margin: 0 !important;
}
body.nhwa-journal main .section-head h2,
body.nhwa-journal section .section-head h2 {
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: clamp(20px, 2vw, 26px) !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #000 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-left: 0 !important;
}
@media (max-width: 820px) {
  body.nhwa-journal main .section-head {
    padding: 28px var(--gut-x) 14px !important;
    gap: 16px !important;
  }
  body.nhwa-journal main .section-head h2 {
    font-size: 22px !important;
  }
}

/* ─── Compact mode — actually collapse layout (v0.6.3) ───────────────────
 * In compact mode the utility strip was using transform: translateY(-100%)
 * which moves it visually off-screen but keeps its layout space. Switch to
 * max-height: 0 + padding: 0 so the masthead's bounding box really shrinks
 * — and the JS-measured padding-top will follow automatically. */

body.nhwa-journal header.masthead.compact .masthead-utility {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transform: none !important;
  border-bottom-color: transparent !important;
  pointer-events: none;
}

/* Also compact the inner padding so the title doesn't sit lonely with
 * extra air around it. Title font shrinks too — matches earlier UX intent. */
body.nhwa-journal header.masthead.compact .masthead-inner {
  padding-top: 8px !important;
  padding-bottom: 4px !important;
}
body.nhwa-journal header.masthead.compact .masthead-inner > .masthead-title {
  font-size: clamp(24px, 3.2vw, 32px) !important;
  padding-bottom: 4px !important;
}


/* ─── Kill padding-top transition on main (v0.6.4) ──────────────────────
 * ResizeObserver fires every layout frame with subpixel changes,
 * continuously restarting the 280ms transition — so the JS-set
 * padding-top value never actually settles. Snap instead. */
body.nhwa-journal main {
  transition: none !important;
}

/* ─── Compact masthead — let it shrink to content (v0.6.8) ──────────────
 * Round 4 (v0.1.7) hard-set the compact masthead to height: 100px /
 * min-height: 100px. That floors the height even when content is shorter,
 * causing whitespace below the title and above the green border. Let it
 * size to content naturally. */
body.nhwa-journal header.masthead.compact {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
/* Same for non-compact — already done, but be defensive */
body.nhwa-journal header.masthead {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* ─── Get-Your-Journal CTA — proper responsive layout (v0.6.9) ──────────
 * The 3-column grid was leaving empty space next to the cover on mobile
 * (cover left-aligned in a wide row, copy and button stacking below).
 * Centre everything on mobile; horizontal 3-column on desktop. */

body.nhwa-journal .get-journal {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  gap: 36px !important;
  align-items: center !important;
  margin: 64px var(--gut-x) 48px !important;
  padding: 28px 36px !important;
  border-radius: 12px !important;
  background: var(--accent) !important;
  color: #fff !important;
  text-align: left;
}
body.nhwa-journal .get-journal .cover-block {
  position: relative;
  flex-shrink: 0;
}
body.nhwa-journal .get-journal .copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.nhwa-journal .get-journal .copy .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}
body.nhwa-journal .get-journal .copy h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
body.nhwa-journal .get-journal .copy p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
body.nhwa-journal .get-journal .cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--accent);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 200ms, box-shadow 200ms;
}
body.nhwa-journal .get-journal .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
body.nhwa-journal .get-journal .cta .arr {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  align-items: center;
  justify-content: center;
}

/* v0.9.17: Mobile CTA — centred stack on every page (journal and the
 * uplifted .get-journal on other pages). Cover, copy and CTA all
 * horizontally centred. Applies to both .get-journal (regardless of
 * .nhwa-journal scope) so the layout is consistent sitewide. */
@media (max-width: 820px) {
  .get-journal,
  body.nhwa-journal .get-journal {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 32px 20px 28px !important;
    text-align: center !important;
    justify-items: center !important;
  }
  .get-journal .cover-block,
  body.nhwa-journal .get-journal .cover-block {
    transform: none !important;
    margin: 0 auto !important;
  }
  .get-journal .copy,
  body.nhwa-journal .get-journal .copy {
    align-items: center !important;
    max-width: none !important;
  }
  .get-journal .cta,
  body.nhwa-journal .get-journal .cta {
    margin: 0 auto !important;
    display: inline-flex !important;
    width: auto;
  }
}

/* ─── Site chrome integration (v0.7.3) ──────────────────────────────────
 * The journal pages now render INSIDE the parent theme's site header and
 * footer. Switch the journal masthead from position: fixed to sticky so
 * it sits below the site header in document flow and only pins to the
 * top of viewport once the user scrolls past the site header. Main no
 * longer needs padding-top — the masthead occupies its natural layout
 * space rather than floating above content. */

body.nhwa-journal header.masthead {
  position: sticky !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
}

/* Reset main's padding-top — no longer compensating for fixed masthead */
body.nhwa-journal main {
  padding-top: 0 !important;
}
@media (max-width: 820px) {
  body.nhwa-journal main {
    padding-top: 0 !important;
  }
}

/* High-specificity sticky override — beats any parent header rule */
body.nhwa-journal.nhwa-journal header.masthead.masthead {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
}

/* ─── Revert v0.7.3-v0.7.6 — restore standalone journal (v0.7.7) ────────
 * The site-chrome integration broke things. Restore the previous working
 * state: full-page standalone journal pages, position: fixed masthead. */
body.nhwa-journal header.masthead {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* ─── Hide parent theme's old journal module on journal-preview (v0.8.1) ─
 * nhwa-theme's footer.php calls getModule('journal') which embeds the OLD
 * journal teaser. Hide it on our new journal-preview pages. */
body.nhwa-journal .module.module-journal,
body.nhwa-journal .module-journal {
  display: none !important;
}

/* ─── Targeted journal-masthead position override (v0.8.2) ──────────────
 * header-fixed body class restored so the parent site header lays out
 * correctly. Now we need a more specific selector to override the
 * .header-fixed header { position: fixed } rule on JUST our journal
 * masthead, leaving the parent site header alone. */
body.header-fixed.nhwa-journal header.masthead {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  z-index: 50 !important;
}

/* ─── Position journal masthead below fixed site header (v0.8.3) ────────
 * Parent site header is position: fixed at top:0, height 110px. It's
 * out of layout flow, so journal masthead would render BEHIND it.
 * Add margin-top to push journal masthead into view, and set sticky
 * top so it pins below the site header on scroll. */
body.header-fixed.nhwa-journal header.masthead {
  position: sticky !important;
  top: 110px !important;        /* sticks below fixed site header */
  margin-top: 110px !important;  /* clears fixed site header on initial render */
  left: auto !important;
  right: auto !important;
  z-index: 50 !important;
}
/* With admin bar showing, WP pushes everything down by 32/46px;
 * the site header is at top:32 with admin bar, so journal stays at 110+32 */
body.admin-bar.header-fixed.nhwa-journal header.masthead {
  top: 142px !important; /* 110 + 32 */
}
@media (max-width: 782px) {
  body.admin-bar.header-fixed.nhwa-journal header.masthead {
    top: 156px !important; /* 110 + 46 (smaller mobile admin bar) */
  }
}


/* v0.9.2: leaky parent-theme rules removed (.header-logo svg.icon,
   .menu-wrap.menu .menu-main, .layoutwidth) — they were conflicting with
   parent theme on every viewport, making the journal page render the
   logo 45% larger than the rest of the site. */
/* Sticky masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper-3);
  border-bottom: 3px solid var(--accent);
  transition: padding 220ms ease;
}
.masthead-inner {
  padding: 14px var(--gut-x) 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: padding 220ms ease;
}

/* Utility strip above the title */
.masthead-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px var(--gut-x);
  border-bottom: 1px solid var(--rule-soft);
  background: #fafafa;
}

/* Hamburger toggle — mobile only */
.util-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-right: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
  transition: background 160ms;
}
.util-hamburger:hover { background: rgba(60,76,84,0.06); }
.util-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 160ms ease;
}
.masthead.menu-open .util-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.masthead.menu-open .util-hamburger span:nth-child(2) { opacity: 0; }
.masthead.menu-open .util-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-down menu — hidden by default; mobile-only */
.mobile-menu {
  display: none;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu li { list-style: none; }
.mobile-menu-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 14px var(--gut-x);
  cursor: pointer;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 140ms, color 140ms;
}
.mobile-menu-item:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-menu-item.active { background: var(--accent); color: #fff; }

/* Subscribe pill (utility) */
.util-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 160ms, transform 160ms;
}
.util-subscribe:hover { background: #00703f; transform: translateY(-1px); }

/* Search — icon-only, expands inline when toggled */
.util-search {
  display: flex;
  align-items: center;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: border-color 200ms ease, background 200ms ease, padding 240ms ease;
  overflow: hidden;
  background: transparent;
}
.util-search-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  border-radius: 999px;
  transition: background 160ms;
  flex-shrink: 0;
}
.util-search-toggle:hover { background: rgba(60,76,84,0.06); }
.util-search input {
  width: 0;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  padding: 0;
  opacity: 0;
  transition: width 240ms ease, opacity 200ms ease, padding 240ms ease;
}
.util-search input::placeholder { color: var(--ink-3); }
.util-search.open {
  border-color: var(--rule-soft);
  background: #fff;
  padding-right: 14px;
}
.util-search.open input {
  width: 220px;
  opacity: 1;
  padding: 6px 4px 6px 0;
}
.util-search.open:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Compact (scrolled) mode — hide the utility strip so the sticky masthead is denser */
.masthead.compact .masthead-utility { display: none; }

@media (max-width: 820px) {
  /* Show hamburger, hide horizontal nav */
  .util-hamburger { display: flex; }
  .nav-row { display: none; }

  /* Hide the utility strip's compact-hide rule has no effect now; tighter spacing */
  .masthead-utility { padding: 6px var(--gut-x); }
  .util-subscribe { padding: 6px 12px; font-size: 12px; }
  .util-search.open input { width: 140px; }

  /* Title compacts a bit on mobile */
  .masthead-title { font-size: 32px !important; }
  .masthead-inner { padding: 10px var(--gut-x); }

  /* Mobile menu — show as slide-down panel */
  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--rule-soft);
    transition: max-height 280ms ease;
  }
  .mobile-menu.open { max-height: 600px; }
}
.masthead-title {
  font-family: var(--sans);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  text-align: center;
  transition: font-size 220ms ease;
  color: #000;
}
.masthead-title .amp {
  font-weight: 400;
  color: var(--accent);
}
.masthead-strapline {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-2);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.masthead-strapline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); display: inline-block; }

/* Compact form when scrolled — `!important` so it wins against inline font-size that
   the user may have set via direct-manipulation editing. */
.masthead.compact .masthead-inner { padding-top: 4px !important; padding-bottom: 2px !important; }
.masthead.compact .masthead-title { font-size: 32px !important; }
.masthead.compact .masthead-strapline { display: none !important; }

/* ─── Primary nav row ─── */

.nav-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-3);
  padding: 0 var(--gut-x);
  position: relative;
}
.nav-row .nav-items {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  flex-wrap: wrap;
}

.nav-item {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  padding: 11px 16px;
  cursor: pointer;
  border: 0;
  background: transparent;
  position: relative;
  white-space: nowrap;
  transition: color 160ms, background 160ms, padding 160ms, font-size 160ms;
}
.nav-item + .nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28%;
  bottom: 28%;
  width: 1px;
  background: var(--rule-soft);
}
.nav-item:hover { color: var(--accent); }
/* Nav active state — pill shape now that nav row is the only "chrome" */
.nav-item.active {
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}
.nav-item.active::before,
.nav-item.active + .nav-item::before { background: transparent; }

.nav-row .nav-search {
  display: flex;
  align-items: center;
  border-left: 1px solid var(--rule);
  padding: 0 16px;
  width: 240px;
  flex: 0 0 240px;
  transition: width 220ms ease, flex-basis 220ms ease, padding 220ms ease;
}
.nav-row .nav-search input {
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  width: 100%;
  padding: 12px 8px;
  outline: none;
}
.nav-row .nav-search input::placeholder {
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
}
.nav-row .nav-search svg { flex-shrink: 0; }
.nav-row .nav-search button.search-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 12px 4px;
  cursor: pointer;
  color: var(--ink);
}
.nav-row .nav-search.collapsed {
  width: 52px;
  flex: 0 0 52px;
  padding: 0;
  justify-content: center;
}
.nav-row .nav-search.collapsed input { display: none; }
.nav-row .nav-search.collapsed svg { display: none; }
.nav-row .nav-search.collapsed button.search-toggle { display: flex; align-items: center; justify-content: center; }
.nav-row .nav-search.collapsed.open {
  position: absolute;
  right: 0; top: 100%;
  width: 100%;
  flex: none;
  background: var(--paper-3);
  border-top: 1px solid var(--rule);
  border-left: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--gut-x);
  z-index: 5;
  justify-content: flex-start;
}
.nav-row .nav-search.collapsed.open input { display: block; flex: 1; }
.nav-row .nav-search.collapsed.open svg { display: block; margin-right: 8px; }
.nav-row .nav-search.collapsed.open button.search-toggle { display: none; }

/* ─── Section heading ─── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px var(--gut-x) 18px;
  gap: 24px;
  position: relative;
}
.section-head h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0;
  margin: 0;
  color: #000;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-head .meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 400;
}
.section-head .meta .pill {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 700;
}

/* ─── Featured Articles grid ─── */
.featured-grid {
  padding: 0 var(--gut-x) 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 28px;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 40px;
}
.featured-card { cursor: pointer; }
.featured-card .hero {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 200ms ease;
  border-radius: var(--r-lg);
}
.featured-card .hero .hero-img {
  width: 100%; height: 100%;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.featured-card:hover .hero { border-color: var(--accent); }
.featured-card:hover .hero .hero-img img,
.featured-card:hover .hero .hero-img { transform: scale(1.025); }
.featured-card:hover .title { color: var(--accent); }
/* Featured-card category label — small green pill */
.featured-card .cat {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 800;
  display: inline-block;
}
.featured-card .title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: 0;
  margin: 6px 0 0;
  text-wrap: pretty;
  color: #000;
}

/* Smaller-row latest article cards */
.latest-grid {
  padding: 0 var(--gut-x) 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 24px;
}
.latest-card { cursor: pointer; }
.latest-card .hero {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 200ms ease;
  border-radius: var(--r-lg);
}
.latest-card .hero .hero-img {
  width: 100%; height: 100%;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.latest-card:hover .hero { border-color: var(--accent); }
.latest-card:hover .hero .hero-img { transform: scale(1.03); }
.latest-card:hover .title { color: var(--accent); }
.latest-card .cat {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
}
.latest-card .title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  margin: 4px 0 0;
  color: #000;
}

/* Hero image placeholders (subtly-striped, with monospace label) */
.hero-img {
  display: block;
  background-color: var(--tone, #b48a5a);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.05) 0 14px,
      rgba(0,0,0,0.04) 14px 28px
    );
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.hero-img::after {
  /* Faint green tint overlay on hover — added by parent .featured-card:hover */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.featured-card:hover .hero-img::after,
.latest-card:hover .hero-img::after,
.cat-row:hover .hero-img::after { opacity: 0.08; }
.hero-img .label {
  position: absolute;
  left: 12px; bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
}
.hero-img .badge {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  background: rgba(0,0,0,0.32);
  color: #fff;
  padding: 3px 6px;
  border-radius: 2px;
  letter-spacing: 0.1em;
}

/* ─── Editorial rule with edition mark ─── */
.edition-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--gut-x);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule-soft);
}
.edition-mark::before,
.edition-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-soft);
}
.edition-mark .roman { font-family: var(--sans); font-style: normal; color: var(--ink); letter-spacing: 0; font-weight: 600; }

.past-editions {
  background: #f2f4f7;
  padding: 56px 0 64px;
  border-top: 1px solid rgba(60, 76, 84, 0.12);
  margin-top: 32px;
}
.past-editions .section-head { padding-top: 0; }
.carousel {
  display: flex;
  gap: 28px;
  padding: 18px var(--gut-x) 28px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gut-x);
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 4px; }
.cover {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  cursor: pointer;
}
.cover .cover-img {
  width: 100%;
  aspect-ratio: 5 / 7;
  background-color: var(--tone, #b48a5a);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.05) 0 14px,
      rgba(0,0,0,0.04) 14px 28px
    );
  position: relative;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 18px;
  color: #fff;
  border-radius: var(--r-lg);
}
/* Past Editions cover — subtle green border on hover */
.cover:hover .cover-img { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 20px rgba(0,138,82,0.18); }
.cover .cover-img .cv-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.cover .cover-img .cv-edition {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.9;
  align-self: flex-start;
}
.cover .cover-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  flex-wrap: nowrap;
  white-space: nowrap;
}
.cover .cover-meta strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.cover .cover-meta span { white-space: nowrap; font-weight: 600; color: var(--ink); }
.cover-view-more {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  border: 1.5px dashed var(--rule-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 24px;
  aspect-ratio: 5 / 7;
  transition: background 200ms, color 200ms, border-color 200ms;
  border-radius: var(--r-lg);
}
.cover-view-more:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cover-view-more .arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-display);
  font-size: 16px;
}

/* ─── Category (filtered) view ─── */
.category-hero {
  padding: 24px var(--gut-x) 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
}
.category-hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  color: #000;
}
.category-hero h1 .accent { color: var(--accent); }
.category-hero .lede {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  max-width: 60ch;
  text-wrap: pretty;
  font-weight: 400;
}

/* Edition tabs (replaces numeric pagination) */
.edition-tabs {
  display: flex;
  gap: 4px;
  padding: 10px var(--gut-x);
  border-bottom: 1px solid var(--rule-soft);
  overflow-x: auto;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.edition-tabs .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 12px;
  white-space: nowrap;
  font-weight: 700;
}
.edition-tab {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  border: 0;
  background: transparent;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink-2);
  white-space: nowrap;
  border-radius: 999px;
  transition: background 160ms, color 160ms;
}
.edition-tab:hover { color: var(--ink); }
.edition-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.edition-tab.empty { color: var(--ink-3); opacity: 0.55; }
.edition-tab.empty.active { background: var(--ink-3); color: var(--paper); opacity: 1; }

/* Category article list — Events Calendar style: title left, image right */
.cat-list {
  display: flex;
  flex-direction: column;
  padding: 16px var(--gut-x) 60px;
}
.cat-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
  transition: background 180ms, padding 180ms, border-radius 180ms;
}
.cat-row:hover {
  background: var(--accent-soft);
  padding-left: 16px; padding-right: 16px;
  border-radius: var(--r-lg);
}
.cat-row:hover h3 { color: var(--accent); }
.cat-row:hover .hero-img { transform: scale(1.025); }
.cat-row .hero {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.cat-row .hero .hero-img {
  width: 100%; height: 100%;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.cat-row .meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  display: flex; gap: 12px;
  font-weight: 600;
}
.cat-row .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); display: inline-block; align-self: center; }
.cat-row h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  letter-spacing: 0;
  margin: 8px 0;
  text-wrap: pretty;
  color: #000;
}
.cat-row .dek {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: #000;
  max-width: 62ch;
  text-wrap: pretty;
  font-weight: 400;
}

/* ─── Article reader view ─── */
.breadcrumb {
  padding: 18px var(--gut-x) 6px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  font-weight: 400;
}
.breadcrumb a, .breadcrumb button {
  color: var(--ink-2);
  text-decoration: none;
  border: 0; background: transparent;
  padding: 0; cursor: pointer;
  font-family: inherit; font-size: inherit; letter-spacing: inherit; text-transform: inherit;
  font-weight: 400;
}
.breadcrumb a:hover, .breadcrumb button:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 10px; color: var(--ink-3); }

.article-wrap {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 var(--gut-x);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  margin-bottom: 22px;
  font-weight: 600;
}
.article-meta .cat-pill {
  padding: 4px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); display: inline-block; }
.article-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-wrap: pretty;
  color: #000;
}
.article-dek {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  margin: 0 0 28px;
  max-width: 60ch;
  text-wrap: pretty;
}
.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-2);
  font-weight: 400;
}
.article-byline .author { font-weight: 700; color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 13px; }
.article-hero {
  aspect-ratio: 16 / 9;
  margin: 36px 0 14px;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.article-hero .hero-img { width: 100%; height: 100%; }
.article-caption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 36px;
  font-style: italic;
}
.article-body { font-size: 16px; line-height: 1.7; font-family: var(--sans); color: var(--ink); }
.article-body p { margin: 0 0 1.2em; text-wrap: pretty; }
.article-body p:first-of-type::first-letter {
  /* drop cap removed */
  float: none;
}
.article-body h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  margin: 2em 0 0.5em;
  color: #000;
}
.article-body blockquote {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  margin: 1.4em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
}

/* ─── Share row ─── */
.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0 8px;
}
.share-row .lbl {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
  margin-right: 6px;
  font-weight: 600;
}
.share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 160ms, color 160ms, border-color 160ms, transform 160ms;
  color: var(--ink);
}
.share-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-1px); }
.share-btn svg { width: 15px; height: 15px; }
.share-btn .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 9px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms;
}
.share-btn .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--ink);
}
.share-btn:hover .tooltip { opacity: 1; }
.share-btn.copied { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.nav-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  align-self: center;
  transition: background 160ms, transform 160ms;
}
.nav-subscribe:hover { background: #00703f; transform: translateY(-1px); }
.nav-subscribe svg { display: inline-block; }

/* End-of-article subscribe card */
.article-subscribe {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--accent-soft);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.article-subscribe .article-subscribe-text {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
}
.article-subscribe .article-subscribe-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.article-subscribe h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.article-subscribe p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .nav-subscribe { padding: 6px 10px; font-size: 11.5px; margin: 0 6px 0 4px; }
  .nav-subscribe svg { display: none; }
  .article-subscribe { padding: 22px 22px; }
}

/* ─── Subscribe block — five variants (still available, currently not rendered) ─── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.subscribe { font-family: var(--sans); }
.subscribe h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ink);
}
.subscribe p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.subscribe .subscribe-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* CTA button (no email input) */
.subscribe-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms, transform 160ms, gap 160ms;
  white-space: nowrap;
  text-decoration: none;
}
.subscribe-cta:hover { background: #00703f; transform: translateY(-1px); gap: 14px; }
.subscribe-cta-arrow { transition: transform 160ms; }
.subscribe-cta:hover .subscribe-cta-arrow { transform: translateX(2px); }
.subscribe-cta--sm { padding: 10px 18px; font-size: 13px; }

/* 1. Inline — heading + form on one row, minimal */
.subscribe--inline {
  margin: 56px var(--gut-x) 0;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.subscribe--inline h3 { font-size: 18px; }
.subscribe--inline p { font-size: 13px; margin-top: 2px; }
.subscribe--inline .subscribe-form { flex: 0 0 auto; min-width: 320px; }

/* 2. Split — two-column, text left, button right */
.subscribe--split {
  margin: 56px var(--gut-x) 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--rule-soft);
}
.subscribe--split .subscribe-text { max-width: 50ch; }

/* 3. Card — centered rounded card, soft tint */
.subscribe--card {
  margin: 56px var(--gut-x) 0;
  padding: 40px 32px;
  background: var(--accent-soft);
  border-radius: var(--r-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.subscribe--card .subscribe-text { max-width: 52ch; }
.subscribe--card .subscribe-cta { margin-top: 4px; }

/* 4. Ribbon — dark green full-bleed strip */
.subscribe--ribbon {
  margin: 56px 0 0;
  padding: 32px var(--gut-x);
  background: var(--accent);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.subscribe--ribbon h3 { color: #fff; }
.subscribe--ribbon p { color: rgba(255,255,255,0.85); }
.subscribe--ribbon .subscribe-cta { background: #fff; color: var(--accent); }
.subscribe--ribbon .subscribe-cta:hover { background: var(--ink); color: #fff; }

/* 5. Boxed — bordered editorial box with corner accent */
.subscribe--boxed {
  margin: 56px var(--gut-x) 0;
  padding: 36px 32px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  position: relative;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.subscribe--boxed .subscribe-corner {
  position: absolute;
  top: -1px; left: -1px;
  width: 64px; height: 64px;
  border-top: 4px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-top-left-radius: var(--r-lg);
  pointer-events: none;
}
.subscribe--boxed h3 { margin-top: 4px; }
.subscribe--boxed .subscribe-cta { margin-top: 18px; }

@media (max-width: 820px) {
  .subscribe--split,
  .subscribe--ribbon { grid-template-columns: 1fr; gap: 16px; }
  .subscribe--inline { flex-direction: column; align-items: flex-start; }
}

/* ─── Partnership strip — six variants ─── */

/* Shared bits */
.partnership { font-family: var(--sans); }
.partnership .partnership-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
}
.partnership .partnership-name {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms;
}
.partnership .partnership-name:hover { color: var(--accent); }

/* 1. Hairline — restrained, current default */
.partnership--hairline {
  margin: 56px var(--gut-x) 0;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  flex-wrap: wrap;
  text-align: center;
}
.partnership--hairline .partnership-name { font-size: 20px; }

/* 2. Card — soft tinted block with a tiny logo lockup */
.partnership--card {
  margin: 56px var(--gut-x) 0;
  padding: 22px 28px;
  background: #f2f4f7;
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}
.partnership--card .partnership-text { display: flex; flex-direction: column; gap: 4px; }
.partnership--card .partnership-name { font-size: 22px; line-height: 1.15; }
.partnership--card .partnership-blurb {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 60ch;
}
.cwa-mark {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.cwa-mark-letter + .cwa-mark-letter { margin-left: -4px; opacity: 0.8; }

/* 3. Pill — a single green-outline pill the user can click */
.partnership--pill {
  margin: 56px 0 0;
  padding: 22px var(--gut-x);
  display: flex;
  justify-content: center;
}
.partnership-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
  transition: background 160ms, transform 160ms;
}
.partnership-pill-link:hover { background: var(--accent); transform: translateY(-1px); }
.partnership-pill-link:hover .partnership-label,
.partnership-pill-link:hover .partnership-name { color: #fff; }
.partnership--pill .partnership-label { color: var(--accent); font-size: 10.5px; }
.partnership--pill .partnership-name { font-size: 15px; color: var(--accent); }
.partnership--pill .partnership-divider {
  width: 1px; height: 14px; background: var(--accent); opacity: 0.4;
}

/* 4. Colophon — centered, subtle, magazine-style credit (no caps) */
.partnership--colophon {
  margin: 32px var(--gut-x) 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}
.partnership--colophon .partnership-label {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink-2);
}
.partnership--colophon .partnership-name { font-size: 14px; }

/* 5. Stacked — ceremonial, full-bleed, big name on its own line */
.partnership--stacked {
  margin: 64px var(--gut-x) 0;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.partnership--stacked .partnership-label { font-size: 10.5px; letter-spacing: 0.32em; }
.partnership--stacked .partnership-name {
  font-size: 32px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* 6. Accent — left-aligned with green vertical bar */
.partnership--accent {
  margin: 56px var(--gut-x) 0;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.partnership--accent .partnership-bar {
  width: 4px;
  height: 36px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.partnership--accent .partnership-label { font-size: 11px; letter-spacing: 0.18em; }
.partnership--accent .partnership-name { font-size: 18px; margin-left: auto; }

@media (max-width: 720px) {
  .partnership--card { grid-template-columns: 1fr; text-align: center; }
  .partnership--card .cwa-mark { margin: 0 auto; }
  .partnership--accent { flex-wrap: wrap; }
  .partnership--accent .partnership-name { margin-left: 0; }
}

/* Legacy plain `.partnership` (without variant class) — kept for compatibility */
.partnership:not([class*="partnership--"]) {
  margin: 56px var(--gut-x) 0;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

/* ─── Get Your Journal CTA banner (above footer, on every page) ─── */
.get-journal {
  background: var(--accent);
  color: #fff;
  margin: 64px var(--gut-x) 0;
  border-radius: 12px;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: visible;
}
.get-journal .cover-block {
  position: relative;
  width: 110px;
  height: 142px;
  transform: translateY(-22px);
}
.get-journal .cover-block .cover-art {
  position: absolute;
  inset: 0;
  background: #f3f1ec;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.get-journal .cover-block .cover-art .cover-top {
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  padding: 6px 8px 4px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.get-journal .cover-block .cover-art .cover-top .tag {
  background: #fff;
  color: var(--accent);
  padding: 2px 5px;
  border-radius: 2px;
  font-size: 7.5px;
  letter-spacing: 0.16em;
}
.get-journal .cover-block .cover-art .cover-mast {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  letter-spacing: -0.01em;
  color: var(--accent);
  padding: 8px 0 4px;
  line-height: 1;
}
.get-journal .cover-block .cover-art .cover-image {
  flex: 1;
  background:
    linear-gradient(135deg, #4a6b3c 0%, #6b8a5a 60%, #b4a36a 100%);
  position: relative;
}
.get-journal .cover-block .cover-art .cover-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255,255,255,0.18) 0 18%, transparent 22%),
    radial-gradient(ellipse at 70% 65%, rgba(255,255,255,0.14) 0 14%, transparent 18%),
    radial-gradient(ellipse at 50% 75%, rgba(255,255,255,0.12) 0 16%, transparent 20%);
}
.get-journal .cover-block .cover-art .cover-foot {
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px;
  text-align: center;
  background: #fff;
}
.get-journal .cover-block .out-now {
  position: absolute;
  top: 0;
  right: -10px;
  width: 22px;
  height: 100%;
  background: #c9d96a;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.get-journal .copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.get-journal .copy .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #c9d96a;
}
.get-journal .copy h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
  color: #fff;
}
.get-journal .copy p {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.get-journal .cta {
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 160ms, color 160ms, transform 160ms;
  white-space: nowrap;
  text-decoration: none;
}
.get-journal .cta:hover { background: var(--ink); color: #fff; transform: translateX(2px); }
.get-journal .cta .arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}
.get-journal .cta:hover .arr { background: #fff; color: var(--ink); }

@media (max-width: 820px) {
  .get-journal { grid-template-columns: auto 1fr; padding: 22px 22px; }
  .get-journal .cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) {
  .get-journal { grid-template-columns: 1fr; }
  .get-journal .cover-block { transform: none; }
}

.site-footer {
  margin-top: 64px;
  background: var(--ink);
  color: var(--paper);
  padding: 56px var(--gut-x) 28px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
  opacity: 0.65;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); font-size: 13.5px; }
.site-footer li.new { color: var(--paper); }
.site-footer li.new::after {
  content: "NEW";
  font-size: 9px;
  letter-spacing: 0.18em;
  background: var(--accent);
  color: var(--paper);
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 2px;
  vertical-align: middle;
}
.site-footer .footer-brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.site-footer .footer-strap {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 36ch;
}
.site-footer .footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}
.site-footer .footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.site-footer .footer-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  transition: background 160ms, color 160ms, border-color 160ms;
  text-decoration: none;
}
.site-footer .footer-socials a svg { width: 14px; height: 14px; }
.site-footer .footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── Side strip page numerals (graphical accent — off by default now) ─── */
.page-numeral {
  position: fixed;
  left: 14px;
  bottom: 90px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
  text-transform: none;
  pointer-events: none;
  z-index: 30;
  transform: scale(var(--dc-inv-zoom, 1));
  transform-origin: bottom left;
}

/* ─── Responsive ─── */
@media (max-width: 1380px) {
  .nav-item { padding: 14px 14px; letter-spacing: 0.12em; }
}
@media (max-width: 1240px) {
  .nav-item { padding: 14px 10px; font-size: 11.5px; letter-spacing: 0.1em; }
  .nav-row .nav-search { width: 200px; flex-basis: 200px; padding: 0 12px; }
}
@media (max-width: 1100px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .category-hero { grid-template-columns: 1fr; gap: 24px; }
  .nav-item { padding: 14px 8px; font-size: 11px; }
}
@media (max-width: 980px) {
  /* Collapse search to an icon to free room for all 10 nav items */
  .nav-row .nav-search { width: 52px; flex: 0 0 52px; padding: 0; justify-content: center; }
  .nav-row .nav-search input,
  .nav-row .nav-search > svg { display: none; }
  .nav-row .nav-search button.search-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-row .nav-search.open {
    position: absolute;
    right: 0; top: 100%;
    width: 100%;
    flex: none;
    background: var(--paper-3);
    border-top: 1px solid var(--rule);
    border-left: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 var(--gut-x);
    z-index: 5;
    justify-content: flex-start;
  }
  .nav-row .nav-search.open input { display: block; flex: 1; }
  .nav-row .nav-search.open > svg { display: block; margin-right: 8px; }
  .nav-row .nav-search.open button.search-toggle { display: none; }
}
@media (max-width: 820px) {
  .nav-row { grid-template-columns: 1fr; padding: 4px var(--gut-x); }
  .nav-row .nav-subscribe { display: none; }
  .nav-row .nav-search { display: none; }
  .nav-row .nav-items { grid-column: 1; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .nav-row .nav-items::-webkit-scrollbar { display: none; }
  .nav-item { padding: 14px 12px; }
}
@media (max-width: 720px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .latest-grid { grid-template-columns: 1fr 1fr; }
  .cat-row { grid-template-columns: 1fr; }
  .cat-row .hero { order: -1; }
}

/* ─── nhwa-theme override section ──────────────────────────────────────
 * The parent theme's CSS uses higher-specificity selectors that override
 * .mobile-menu's default display: none. We scope these to body.nhwa-journal
 * + !important to guarantee the journal layout wins on desktop.
 * ─────────────────────────────────────────────────────────────────────── */

body.nhwa-journal .mobile-menu {
  display: none !important;
}
body.nhwa-journal .mobile-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.nhwa-journal .util-hamburger { display: none; }

@media (max-width: 820px) {
  body.nhwa-journal .mobile-menu {
    display: block !important;
    max-height: 0 !important;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--rule-soft);
    transition: max-height 280ms ease;
  }
  body.nhwa-journal .mobile-menu.open {
    max-height: 600px !important;
  }
  body.nhwa-journal .util-hamburger { display: flex !important; }
  body.nhwa-journal .nav-row { display: none !important; }
}

/* Article body — the parent theme's typography is leaking; force readable defaults */
body.nhwa-journal .article-body { line-height: 1.7; max-width: 720px; }
body.nhwa-journal .article-body p { margin: 0 0 1em; font-family: var(--sans, 'Open Sans', system-ui, sans-serif); font-size: 17px; color: var(--ink, #3c4c54); }
body.nhwa-journal .article-title { font-family: var(--sans, 'Open Sans', system-ui, sans-serif); }

/* Featured card titles must be readable — parent theme h3 styling can override */
body.nhwa-journal .featured-card h3.title,
body.nhwa-journal .featured-card .title {
  font-family: var(--sans, 'Open Sans', system-ui, sans-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 0;
}

/* ─── Parent theme overrides that need to win across pages ────────────────────
 * 1. nhwa-theme's 'header { height: 110px }' clips our masthead so the
 *    masthead-title and nav-row render BELOW it. Force auto height.
 * 2. nhwa-theme has a generic 'svg { max-width: 100% }' (with flex shrinking
 *    in the masthead) which collapses inline icon SVGs to width:0. Force them
 *    to honour their declared dimensions inside the journal layout.
 * 3. Anchor tags inside .share-btn / .util-search-toggle pick up theme
 *    underline & padding — strip those.
 * ─────────────────────────────────────────────────────────────────────────── */

body.nhwa-journal header.masthead {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
body.nhwa-journal .masthead .masthead-utility,
body.nhwa-journal .masthead .masthead-inner,
body.nhwa-journal .masthead .nav-row {
  width: 100%;
  box-sizing: border-box;
}

/* Force inline icon SVGs to honour their HTML width/height attributes */
body.nhwa-journal .util-search-toggle svg,
body.nhwa-journal .util-search svg,
body.nhwa-journal .util-subscribe svg,
body.nhwa-journal .util-hamburger svg,
body.nhwa-journal .share-btn svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 auto;
  display: inline-block;
}
body.nhwa-journal .util-subscribe svg { width: 14px !important; height: 14px !important; }

/* Share-row buttons: kill anchor inheritance from theme */
body.nhwa-journal .share-row .share-btn,
body.nhwa-journal .share-row a.share-btn {
  text-decoration: none !important;
  border-bottom: 0 !important;
}
body.nhwa-journal .share-btn { line-height: 0; }

/* Make sure the search input expands properly when toggled open */
body.nhwa-journal .util-search input[type=search] {
  width: 0;
  transition: width 200ms ease;
}
body.nhwa-journal .util-search.open input[type=search] {
  width: 200px;
}

/* ─── Round 2 visual fixes (v0.1.4) ───────────────────────────────────── */

/* 1. Kill the 40px margin-top leaking from the parent theme onto our masthead */
body.nhwa-journal header.masthead {
  margin: 0 !important;
}
body.nhwa-journal main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 2. Title — larger when not scrolled, shrink when compact */
body.nhwa-journal .masthead-title {
  font-size: clamp(36px, 5vw, 56px) !important;
  line-height: 1.15 !important;
}
body.nhwa-journal .masthead.compact .masthead-title {
  font-size: 28px !important;
}

/* 3. Search bar in the utility strip — keep compact and pill-shaped */
body.nhwa-journal .util-search {
  height: 36px;
  align-items: center;
}
body.nhwa-journal .util-search-toggle {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent;
  min-width: 0;
  flex: 0 0 32px;
}
body.nhwa-journal .util-search input[type=search] {
  height: 28px;
  line-height: 28px;
  padding: 0 !important;
  margin: 0;
  font-size: 14px;
  box-sizing: border-box;
}
body.nhwa-journal .util-search.open {
  padding: 0 12px 0 6px !important;
}
body.nhwa-journal .util-search.open input[type=search] {
  width: 200px !important;
  padding: 0 6px !important;
}

/* 4. Smooth compact transition — use max-height instead of display:none on the
 *    utility strip so the sticky header doesn't 'pop' on scroll, eliminating
 *    the seizure-like jitter around the scroll threshold. */
body.nhwa-journal .masthead-utility {
  overflow: hidden;
  max-height: 80px;
  transition: max-height 220ms ease, padding 220ms ease, opacity 180ms ease,
              border-bottom-color 200ms ease;
}
body.nhwa-journal .masthead.compact .masthead-utility {
  display: flex !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
  pointer-events: none;
  border-bottom-color: transparent !important;
}

/* Smooth masthead-inner padding transition (already in base CSS but pin
 * to specific values so it's predictable) */
body.nhwa-journal .masthead.compact .masthead-inner {
  padding-top: 8px !important;
  padding-bottom: 6px !important;
}

/* 5. Share icons — visually unified */
body.nhwa-journal .share-row .share-btn svg {
  width: 16px !important;
  height: 16px !important;
}
body.nhwa-journal .share-row .share-btn[data-share='copy'] svg,
body.nhwa-journal .share-row .share-btn[data-share='email'] svg,
body.nhwa-journal .share-row .share-btn[data-share='instagram'] svg {
  stroke-width: 1.8;
}


/* ─── Round 3 fixes (v0.1.6) ────────────────────────────────────────────
 * (a) The Copy share button (only one that's <button>) was getting native
 *     button padding from the parent theme, making it elliptical.
 * (b) Animating title font-size on scroll reflows the masthead height,
 *     which makes the sticky element jitter against the scrolling content.
 *     Keep the title at 56px throughout. The compact-on-scroll effect is
 *     produced entirely by the utility strip sliding away.
 * ───────────────────────────────────────────────────────────────────── */

/* (a) Force the Copy share <button> to match the others exactly */
body.nhwa-journal .share-row .share-btn,
body.nhwa-journal .share-row button.share-btn,
body.nhwa-journal .share-row a.share-btn {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid var(--rule, #e0e4e7) !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  flex: 0 0 36px !important;
  line-height: 1 !important;
  font-size: 0 !important;
  vertical-align: middle;
  cursor: pointer;
  -webkit-appearance: none !important;
  appearance: none !important;
}
body.nhwa-journal .share-row .share-btn:hover {
  background: var(--ink, #3c4c54) !important;
  color: var(--paper, #fff) !important;
  border-color: var(--ink, #3c4c54) !important;
}

/* (b) Don't animate title size — keep constant 56px to avoid masthead reflow */
body.nhwa-journal .masthead-title {
  font-size: clamp(36px, 5vw, 56px) !important;
  transition: none !important;
}
body.nhwa-journal .masthead.compact .masthead-title {
  /* override the earlier 28px compact rule — keep constant size to prevent reflow */
  font-size: clamp(36px, 5vw, 56px) !important;
}

/* Re-confirm the utility strip transition (the only animated part now) */
body.nhwa-journal .masthead-utility {
  transition: max-height 280ms cubic-bezier(.2,.7,.2,1),
              padding 280ms cubic-bezier(.2,.7,.2,1),
              opacity 220ms ease,
              border-bottom-color 200ms ease !important;
}

/* Also disable transitions on .masthead and .masthead-inner so the only animated
 * thing is the utility strip's collapse. Prevents stacking transitions. */
body.nhwa-journal .masthead {
  transition: none !important;
}
body.nhwa-journal .masthead-inner {
  transition: none !important;
}


/* ─── Round 4 fixes (v0.1.7) — anti-jitter sticky header ────────────────
 * Strategy: pin the masthead to two FIXED heights (200px normal, 100px
 * compact). All children resize WITHIN these fixed containers, so the
 * sticky position only recalculates once per state change (not per frame
 * during a transition). The masthead's outer height transitions smoothly
 * between the two values, not gradually as content reflows.
 * ───────────────────────────────────────────────────────────────────── */

body.nhwa-journal header.masthead {
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  transition: height 260ms cubic-bezier(.2,.7,.2,1),
              min-height 260ms cubic-bezier(.2,.7,.2,1),
              max-height 260ms cubic-bezier(.2,.7,.2,1) !important;
  overflow: hidden;
  will-change: height;
}
body.nhwa-journal header.masthead.compact {
  height: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
}

/* Title — shrinks via font-size, transitions smoothly */
body.nhwa-journal .masthead-title {
  font-size: clamp(36px, 5vw, 56px) !important;
  transition: font-size 260ms cubic-bezier(.2,.7,.2,1) !important;
}
body.nhwa-journal .masthead.compact .masthead-title {
  font-size: 28px !important;
}

/* Utility strip — slide up via transform (no layout effect) */
body.nhwa-journal .masthead-utility {
  transition: transform 260ms cubic-bezier(.2,.7,.2,1),
              opacity 200ms ease !important;
  will-change: transform, opacity;
  /* Remove the max-height transition we added in round 2 */
  max-height: none !important;
}
body.nhwa-journal .masthead.compact .masthead-utility {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  /* Don't change display — keep it flex so transition works */
  display: flex !important;
  max-height: none !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}


/* ─── Round 5 fixes (v0.1.8) — switch to position: fixed ────────────────
 * Sticky positioning recalculates per scroll event when its element
 * resizes — that's the jitter. Switch to position: fixed, give main an
 * equivalent padding-top, and transition both heights together via a CSS
 * variable. The padding-top transition keeps content stable while the
 * fixed header animates above it.
 * ───────────────────────────────────────────────────────────────────── */

:root {
  --nhwa-mast-h: 204px;
}
body.nhwa-journal main {
  padding-top: var(--nhwa-mast-h) !important;
  transition: padding-top 280ms cubic-bezier(.2,.7,.2,1) !important;
}
body.nhwa-journal header.masthead.compact ~ * { /* not needed but kept for clarity */ }

/* Override the fixed-height + overflow:hidden from round 4 — let masthead grow naturally */
body.nhwa-journal header.masthead {
  /* position: fixed (superseded by sticky in v0.7.3) */
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  z-index: 100 !important;
  /* No height transition — the masthead auto-sizes based on children */
  transition: none !important;
  will-change: auto;
}

/* Utility strip collapses via max-height (which actually reduces layout
 * height, so nav-row moves up naturally) */
body.nhwa-journal .masthead-utility {
  max-height: 80px;
  overflow: hidden;
  opacity: 1;
  transform: none !important;
  transition: max-height 280ms cubic-bezier(.2,.7,.2,1),
              opacity 200ms ease,
              padding 280ms cubic-bezier(.2,.7,.2,1) !important;
}
body.nhwa-journal header.masthead.compact .masthead-utility {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
  border-bottom-color: transparent !important;
}

/* Title — sized naturally; transition is fine here */
body.nhwa-journal .masthead-title {
  font-size: clamp(36px, 5vw, 56px) !important;
  transition: font-size 280ms cubic-bezier(.2,.7,.2,1) !important;
}
body.nhwa-journal header.masthead.compact .masthead-title {
  font-size: 28px !important;
}


/* ─── Round 6 fixes (v0.2.1) — header alignment + nav padding ──────────── */

/* (1) Active nav pill — more horizontal breathing room so the selected state
 *     doesn't look squashed against the dividers and other items */
body.nhwa-journal .nav-item.active {
  padding: 11px 24px !important;
  margin: 0 4px;
}
body.nhwa-journal .nav-item {
  padding: 11px 18px !important;
}
/* Increase divider clearance on either side of the active pill */
body.nhwa-journal .nav-item.active::before,
body.nhwa-journal .nav-item.active + .nav-item::before {
  background: transparent !important;
}

/* (2) Header alignment — the masthead is position:fixed and spans the full
 *     viewport. The page content below has gutters (~55px each side). Make
 *     the masthead's inner row sit within an equivalent max-width container
 *     so the title visually aligns with the content's center, not the
 *     viewport's center (which can drift when the page has asymmetric
 *     chrome). Also explicitly center the title within its row. */
body.nhwa-journal .masthead-utility,
body.nhwa-journal .masthead-inner,
body.nhwa-journal .nav-row {
  max-width: 1400px;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.nhwa-journal .masthead-inner {
  justify-content: center !important;
  text-align: center !important;
}
body.nhwa-journal .masthead-title {
  margin: 0 auto !important;
  text-align: center !important;
  display: block;
}


/* ─── Round 7 — breathing room below the fixed masthead ─────────────────
 * The nav-row sits at the bottom of the fixed masthead; the next content
 * section was rendering 4px below it (flush). Push main content down by
 * an extra 32px so the section heading doesn't hug the nav-row pills.
 * Apply the same offset in compact mode so the spacing stays consistent
 * after the masthead shrinks. */

body.nhwa-journal main {
  padding-top: calc(var(--nhwa-mast-h) + 12px) !important;
}


/* ─── Round 8 — bulletproof title centering (v0.3.0) ────────────────────
 * Set H1 to width: 100% within the masthead-inner. With text-align: center,
 * the title's visible text is centered within its full-width parent,
 * regardless of flex behaviour or theme leakage.
 * ───────────────────────────────────────────────────────────────────── */

body.nhwa-journal header.masthead .masthead-inner {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px 0 10px !important;
}
body.nhwa-journal header.masthead .masthead-inner > .masthead-title {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  display: block !important;
  flex: 1 1 100% !important;
}
body.nhwa-journal header.masthead .masthead-inner > .masthead-title > a {
  display: inline-block;
  margin: 0 auto;
}

/* Same alignment treatment for nav-row and utility — full-width, centered content */
body.nhwa-journal header.masthead .masthead-utility,
body.nhwa-journal header.masthead .nav-row {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.nhwa-journal header.masthead .nav-row {
  justify-content: center !important;
}


/* ─── Round 9 — nav-row vertical padding + smaller pill ─────────────────
 * The active pill was touching the top and bottom of the nav-row. Add
 * vertical padding to the row, and reduce the active pill's internal
 * padding so it doesn't dominate the row visually. */

body.nhwa-journal header.masthead .nav-row {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  align-items: center !important;
}
body.nhwa-journal header.masthead .nav-row .nav-items {
  align-items: center !important;
}
body.nhwa-journal .nav-item {
  padding: 8px 16px !important;
}
body.nhwa-journal .nav-item.active {
  padding: 6px 18px !important;
  margin: 0 4px !important;
}


/* ─── Round 10 — image alignment (v0.3.3) ───────────────────────────────
 * Featured + Latest card images were stretching to fill the 4:5/4:3
 * container (object-fit: fill). Cover-crop them instead so every card
 * presents the same shape, centered around the image's middle. */

body.nhwa-journal .featured-card .hero img,
body.nhwa-journal .featured-card .hero .hero-img,
body.nhwa-journal .latest-card .hero img,
body.nhwa-journal .latest-card .hero .hero-img,
body.nhwa-journal .article-hero img,
body.nhwa-journal .article-hero .hero-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

/* Make sure the .hero container clips the image to its rounded corners */
body.nhwa-journal .featured-card .hero,
body.nhwa-journal .latest-card .hero {
  overflow: hidden;
  background: var(--tone, #c9b89a);
}


/* ─── Round 11 — state-page card image alignment (v0.3.6) ────────────── */
body.nhwa-journal .cat-row .hero img,
body.nhwa-journal .cat-row .hero .hero-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}
body.nhwa-journal .cat-row .hero {
  overflow: hidden;
  background: var(--tone, #c9b89a);
}

/* ─── CTA banner real cover image (v0.3.7) ───────────────────────────── */
body.nhwa-journal .get-journal .cover-image-real {
  width: 110px;
  height: 137px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
@media (max-width: 820px) {
  body.nhwa-journal .get-journal .cover-image-real {
    width: 90px;
    height: 112px;
  }
}

/* ─── Past Editions — real cover image (v0.3.8) ─────────────────────── */
body.nhwa-journal .cover .cover-img.cover-img-real {
  background-color: var(--tone, #7a8a6b);
  background-image: var(--bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.nhwa-journal .cover .cover-img.cover-img-real .cv-title,
body.nhwa-journal .cover .cover-img.cover-img-real .cv-edition {
  display: none;
}
body.nhwa-journal .all-editions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  padding: 12px var(--gut-x) 80px;
}
@media (max-width: 1024px) {
  body.nhwa-journal .all-editions-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body.nhwa-journal .all-editions-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ─── Featured grid — 3 columns instead of 4 (v0.4.1) ───────────────── */
body.nhwa-journal .featured-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 36px !important;
}
@media (max-width: 1024px) {
  body.nhwa-journal .featured-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  body.nhwa-journal .featured-grid { grid-template-columns: 1fr !important; }
}
/* Bigger card titles on featured */
body.nhwa-journal .featured-card .title {
  font-size: 22px !important;
  line-height: 1.28 !important;
}

/* ─── Featured hero — landscape aspect (v0.4.2) ─────────────────────── */
body.nhwa-journal .featured-card .hero {
  aspect-ratio: 3 / 2 !important;
}
body.nhwa-journal .latest-card .hero {
  aspect-ratio: 3 / 2 !important;
}

/* ─── Bigger state label + tighter title gap (v0.4.3) ──────────────────── */
body.nhwa-journal .featured-card .cat,
body.nhwa-journal .latest-card .cat {
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
  font-weight: 700 !important;
  margin-top: 16px !important;
}
body.nhwa-journal .featured-card .title,
body.nhwa-journal .latest-card .title {
  margin-top: 2px !important;
}
body.nhwa-journal .featured-card h3.title,
body.nhwa-journal .latest-card h3.title {
  margin: 2px 0 0 !important;
}

/* ─── Hero aspect — slightly taller landscape (v0.4.4) ─────────────── */
body.nhwa-journal .featured-card .hero,
body.nhwa-journal .latest-card .hero {
  aspect-ratio: 4 / 3 !important;
}

/* ─── Even tighter state-to-title gap (v0.4.5) ──────────────────────── */
body.nhwa-journal .featured-card .cat,
body.nhwa-journal .latest-card .cat {
  display: block;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}
body.nhwa-journal .featured-card .title,
body.nhwa-journal .latest-card .title,
body.nhwa-journal .featured-card h3.title,
body.nhwa-journal .latest-card h3.title {
  margin: 0 !important;
  padding: 4px 0 0 !important;
  line-height: 1.25 !important;
}

/* ─── A tad more space state-to-title (v0.4.6) ──────────────────────── */
body.nhwa-journal .featured-card .title,
body.nhwa-journal .latest-card .title,
body.nhwa-journal .featured-card h3.title,
body.nhwa-journal .latest-card h3.title {
  padding-top: 10px !important;
}

/* ─── All Editions archive — full-size cover grid (v0.4.7) ──────────────
 * The .cover style has a fixed width: 220px from its carousel use. In the
 * archive grid, we want covers to fill each grid column (auto-sized to 1fr)
 * so the magazine covers are properly large and visually impactful. */
body.nhwa-journal .all-editions-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 48px 36px !important;
  padding: 24px var(--gut-x) 80px !important;
}
body.nhwa-journal .all-editions-grid .cover {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
}
body.nhwa-journal .all-editions-grid .cover .cover-img {
  width: 100% !important;
  aspect-ratio: 768 / 1086 !important; /* exact ratio of the source cover images */
  border-radius: 8px;
}
body.nhwa-journal .all-editions-grid .cover .cover-meta {
  margin-top: 14px !important;
  font-size: 15px;
}
body.nhwa-journal .all-editions-grid .cover .cover-meta strong {
  font-size: 16px;
}
body.nhwa-journal .all-editions-grid .cover .cover-meta a {
  font-weight: 600;
}
@media (max-width: 1024px) {
  body.nhwa-journal .all-editions-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 720px) {
  body.nhwa-journal .all-editions-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 32px 20px !important; }
}

/* ─── Round 13 fixes (v0.4.8) ─────────────────────────────────────────── */

/* 1. Title J descender — give title bottom breathing room so the J doesn't
 *    crash into the green border. Also tighten so the title doesn't appear
 *    weirdly tall when there's no descender (with padding-bottom). */
body.nhwa-journal .masthead-title {
  padding-bottom: 8px !important;
  line-height: 1.05 !important;
}

/* 2. Click glitch on title — kill the default anchor focus/active flash */
body.nhwa-journal .masthead-title a,
body.nhwa-journal .masthead-title a:focus,
body.nhwa-journal .masthead-title a:active,
body.nhwa-journal .masthead-title a:hover {
  color: inherit !important;
  text-decoration: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* 3. Features all caps — applies to nav-item labels (state names) */
body.nhwa-journal .nav-item,
body.nhwa-journal .mobile-menu-item {
  text-transform: uppercase !important;
  letter-spacing: 0.05em;
}

/* 4. Edition pill placement — move out of the top-right of section-head, place
 *    as a small badge below the Featured Articles heading. */
body.nhwa-journal main .section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
body.nhwa-journal main .section-head h2 {
  margin: 0;
}
body.nhwa-journal main .section-head .meta {
  order: 2;
}
body.nhwa-journal main .section-head .pill {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}

/* 5. Remove green hover outline on ALL card images */
body.nhwa-journal .featured-card:hover .hero,
body.nhwa-journal .latest-card:hover .hero,
body.nhwa-journal .cat-row:hover .hero,
body.nhwa-journal .past-editions .cover:hover .cover-img,
body.nhwa-journal .all-editions-grid .cover:hover .cover-img,
body.nhwa-journal .article-hero:hover {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
/* Also nuke the green tint overlay on hover */
body.nhwa-journal .hero-img::after { display: none !important; }

/* 6. Past editions — overlay date + Open INSIDE cover image; whole cover is link */
body.nhwa-journal .past-editions .cover,
body.nhwa-journal .all-editions-grid .cover { position: relative; }
body.nhwa-journal .cover .cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
body.nhwa-journal .cover .cover-img.cover-img-real {
  position: relative;
  overflow: hidden;
}
body.nhwa-journal .cover .cover-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  pointer-events: none;
}
body.nhwa-journal .cover .cover-overlay .ce-label {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
body.nhwa-journal .cover .cover-overlay .ce-open {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0.95;
}
body.nhwa-journal .cover .cover-meta { display: none; }
body.nhwa-journal .cover .cover-link:hover .cover-overlay {
  background: linear-gradient(180deg, rgba(0,138,82,0.0) 0%, rgba(0,138,82,0.85) 100%);
}


/* Title J descender — override the earlier 'padding: 0' rule with higher specificity */
body.nhwa-journal header.masthead .masthead-inner > .masthead-title {
  padding-top: 0 !important;
  padding-bottom: 12px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  line-height: 1.18 !important;
}

/* ─── Open badge — high-contrast, accessible (v0.5.0) ──────────────────
 * White text on solid green (#008A52 = NHWA accent). Contrast ratio
 * with white = 4.74:1, exceeds WCAG AA for normal text (4.5:1).
 * Replaces the previous low-contrast gradient overlay. */
body.nhwa-journal .cover-overlay { display: none !important; }
body.nhwa-journal .cover .cover-open-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--accent, #008A52);
  color: #ffffff !important;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}
body.nhwa-journal .cover .cover-link:hover .cover-open-badge {
  background: #006a3f; /* darker green — even higher contrast on hover */
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* ─── Open badge — switch to charcoal for higher contrast (v0.5.1) ──── */
body.nhwa-journal .cover .cover-open-badge {
  background: var(--ink, #3C4C54) !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  font-size: 15px !important;
  padding: 9px 18px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4) !important;
}
body.nhwa-journal .cover .cover-link:hover .cover-open-badge {
  background: var(--accent, #008A52) !important;
  border-color: #ffffff !important;
}

/* ─── Revert Open back to in-image text with WCAG-grade dark band (v0.5.2)
 * White on charcoal (#1f2a30 ≈ near-black) gives ~14:1 contrast,
 * well above WCAG AAA (7:1). The gradient eases the band into the cover
 * image so it doesn't look like a strip slapped on top. */

/* Hide the previous pill badge */
body.nhwa-journal .cover .cover-open-badge { display: none !important; }

/* Bring back gradient overlay with stronger opacity at the bottom */
body.nhwa-journal .cover-overlay { display: flex !important; }
body.nhwa-journal .cover .cover-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 18px 16px;
  background: linear-gradient(180deg,
    rgba(31,42,48,0) 0%,
    rgba(31,42,48,0.55) 35%,
    rgba(31,42,48,0.95) 100%);
  color: #ffffff !important;
  font-family: var(--sans);
  display: flex !important;
  justify-content: flex-end;
  align-items: baseline;
  pointer-events: none;
}
body.nhwa-journal .cover .cover-overlay .ce-label { display: none; }
body.nhwa-journal .cover .cover-overlay .ce-open {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
body.nhwa-journal .cover .cover-link:hover .cover-overlay {
  background: linear-gradient(180deg,
    rgba(0,138,82,0) 0%,
    rgba(0,138,82,0.7) 40%,
    rgba(0,138,82,0.95) 100%);
}

/* ─── Mobile — masthead height auto (v0.5.3) ────────────────────────────
 * On mobile the nav-row is hidden, so the fixed --nhwa-mast-h height
 * leaves a big empty band above the green border. Let the masthead size
 * to its actual content instead. Match main's padding-top to the new
 * smaller height via a media-scoped CSS variable. */
@media (max-width: 820px) {
  body.nhwa-journal { --nhwa-mast-h: 140px; }
  body.nhwa-journal header.masthead {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}
@media (max-width: 480px) {
  body.nhwa-journal { --nhwa-mast-h: 130px; }
}

/* ─── Mobile — tighten article-page whitespace under masthead (v0.5.4)
 * On mobile main has padding-top to clear the fixed masthead PLUS a 12px
 * buffer PLUS the breadcrumb has its own padding-top — adds up to noticeable
 * empty space on small viewports. Tighten both. */
@media (max-width: 820px) {
  body.nhwa-journal main {
    padding-top: calc(var(--nhwa-mast-h) + 4px) !important;
  }
  body.nhwa-journal .breadcrumb {
    padding-top: 6px !important;
    padding-bottom: 4px !important;
  }
  body.nhwa-journal .article-wrap {
    margin-top: 8px !important;
  }
}

/* ─── Mobile — tighten section-head spacing (v0.5.5) ────────────────── */
@media (max-width: 820px) {
  body.nhwa-journal main .section-head {
    padding-top: 16px !important;
    padding-bottom: 8px !important;
    margin-top: 0 !important;
    gap: 6px !important;
  }
  body.nhwa-journal main .section-head h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  body.nhwa-journal main .section-head .pill {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }
  /* And shrink the featured/latest grid top padding on mobile */
  body.nhwa-journal .featured-grid,
  body.nhwa-journal .latest-grid {
    padding-top: 0 !important;
  }
}

/* ─── Mobile — tighten title padding (v0.5.6) ──────────────────────── */
@media (max-width: 820px) {
  body.nhwa-journal header.masthead .masthead-inner > .masthead-title {
    padding-bottom: 4px !important;
    line-height: 1.1 !important;
  }
  body.nhwa-journal header.masthead .masthead-inner {
    padding: 8px 16px 6px !important;
  }
  body.nhwa-journal main .section-head {
    padding-top: 10px !important;
  }
}

/* ─── Section-head h2 — force compact height (v0.5.7) ──────────────────── */
body.nhwa-journal main .section-head h2,
body.nhwa-journal section .section-head h2 {
  display: block !important;
  margin: 0 !important;
  padding: 0 0 0 16px !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  border-left: 4px solid var(--accent, #008A52);
  align-items: initial !important;
}
@media (max-width: 820px) {
  body.nhwa-journal main .section-head h2 {
    font-size: 22px !important;
  }
  body.nhwa-journal main .section-head {
    padding: 14px 16px 8px !important;
  }
}

/* ─── Revert mobile static-height attempts (v0.5.8) ─────────────────────
 * The previous attempts (v0.5.4 → v0.5.7) used static --nhwa-mast-h values
 * that didn't match the actual rendered masthead height — leaving gaps.
 * Now the JS dynamically measures the masthead height after layout and
 * writes the real px value to --nhwa-mast-h. We just need to ensure the
 * masthead has no leftover space-reserving rules. */

body.nhwa-journal header.masthead {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
/* The nav-row really is removed from layout on mobile */
@media (max-width: 820px) {
  body.nhwa-journal .nav-row { display: none !important; }
  /* Reset main's padding-top to exactly the masthead height — no buffer */
  body.nhwa-journal main {
    padding-top: var(--nhwa-mast-h) !important;
  }
  /* Revert section-head overrides */
  body.nhwa-journal main .section-head { padding: 14px 16px 8px !important; }
}


/* ─── Final mast-h sync — JS writes to body inline (v0.5.9) ──────────────
 * Reset any static media-query overrides on body's --nhwa-mast-h so the
 * JS-measured value (set inline on body) wins via the cascade. */
@media (max-width: 820px) {
  body.nhwa-journal { /* let inline JS value pass through */ }
}

/* ─── Fix duplicate green bar before section heading (v0.6.1) ───────────
 * v0.5.7 added border-left on .section-head h2, but the section-head
 * already has a green decoration from its own ::before pseudo-element.
 * Remove the duplicate. */
body.nhwa-journal main .section-head h2,
body.nhwa-journal section .section-head h2 {
  border-left: 0 !important;
  padding-left: 0 !important;
}

/* ─── Revert section-head to original design (v0.6.2) ───────────────────
 * My recent overrides (v0.4.8, v0.5.5–v0.5.7) all shifted the section-head
 * away from the package's original design. Restore the original layout:
 *   - Row layout, heading on left, edition pill on right
 *   - 40px top, 18px bottom padding
 *   - h2 with inline-flex + ::before green bar (6×24px) — single decoration
 * ───────────────────────────────────────────────────────────────────── */

body.nhwa-journal main .section-head,
body.nhwa-journal section .section-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 40px var(--gut-x) 18px !important;
  gap: 24px !important;
  margin: 0 !important;
}
body.nhwa-journal main .section-head h2,
body.nhwa-journal section .section-head h2 {
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: clamp(20px, 2vw, 26px) !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #000 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-left: 0 !important;
}
@media (max-width: 820px) {
  body.nhwa-journal main .section-head {
    padding: 28px var(--gut-x) 14px !important;
    gap: 16px !important;
  }
  body.nhwa-journal main .section-head h2 {
    font-size: 22px !important;
  }
}

/* ─── Compact mode — actually collapse layout (v0.6.3) ───────────────────
 * In compact mode the utility strip was using transform: translateY(-100%)
 * which moves it visually off-screen but keeps its layout space. Switch to
 * max-height: 0 + padding: 0 so the masthead's bounding box really shrinks
 * — and the JS-measured padding-top will follow automatically. */

body.nhwa-journal header.masthead.compact .masthead-utility {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transform: none !important;
  border-bottom-color: transparent !important;
  pointer-events: none;
}

/* Also compact the inner padding so the title doesn't sit lonely with
 * extra air around it. Title font shrinks too — matches earlier UX intent. */
body.nhwa-journal header.masthead.compact .masthead-inner {
  padding-top: 8px !important;
  padding-bottom: 4px !important;
}
body.nhwa-journal header.masthead.compact .masthead-inner > .masthead-title {
  font-size: clamp(24px, 3.2vw, 32px) !important;
  padding-bottom: 4px !important;
}


/* ─── Kill padding-top transition on main (v0.6.4) ──────────────────────
 * ResizeObserver fires every layout frame with subpixel changes,
 * continuously restarting the 280ms transition — so the JS-set
 * padding-top value never actually settles. Snap instead. */
body.nhwa-journal main {
  transition: none !important;
}

/* ─── Compact masthead — let it shrink to content (v0.6.8) ──────────────
 * Round 4 (v0.1.7) hard-set the compact masthead to height: 100px /
 * min-height: 100px. That floors the height even when content is shorter,
 * causing whitespace below the title and above the green border. Let it
 * size to content naturally. */
body.nhwa-journal header.masthead.compact {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
/* Same for non-compact — already done, but be defensive */
body.nhwa-journal header.masthead {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* ─── Get-Your-Journal CTA — proper responsive layout (v0.6.9) ──────────
 * The 3-column grid was leaving empty space next to the cover on mobile
 * (cover left-aligned in a wide row, copy and button stacking below).
 * Centre everything on mobile; horizontal 3-column on desktop. */

body.nhwa-journal .get-journal {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  gap: 36px !important;
  align-items: center !important;
  margin: 64px var(--gut-x) 48px !important;
  padding: 28px 36px !important;
  border-radius: 12px !important;
  background: var(--accent) !important;
  color: #fff !important;
  text-align: left;
}
body.nhwa-journal .get-journal .cover-block {
  position: relative;
  flex-shrink: 0;
}
body.nhwa-journal .get-journal .copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.nhwa-journal .get-journal .copy .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}
body.nhwa-journal .get-journal .copy h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
body.nhwa-journal .get-journal .copy p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
body.nhwa-journal .get-journal .cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--accent);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 200ms, box-shadow 200ms;
}
body.nhwa-journal .get-journal .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
body.nhwa-journal .get-journal .cta .arr {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  align-items: center;
  justify-content: center;
}

/* v0.9.17: Mobile CTA — centred stack on every page (journal and the
 * uplifted .get-journal on other pages). Cover, copy and CTA all
 * horizontally centred. Applies to both .get-journal (regardless of
 * .nhwa-journal scope) so the layout is consistent sitewide. */
@media (max-width: 820px) {
  .get-journal,
  body.nhwa-journal .get-journal {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 32px 20px 28px !important;
    text-align: center !important;
    justify-items: center !important;
  }
  .get-journal .cover-block,
  body.nhwa-journal .get-journal .cover-block {
    transform: none !important;
    margin: 0 auto !important;
  }
  .get-journal .copy,
  body.nhwa-journal .get-journal .copy {
    align-items: center !important;
    max-width: none !important;
  }
  .get-journal .cta,
  body.nhwa-journal .get-journal .cta {
    margin: 0 auto !important;
    display: inline-flex !important;
    width: auto;
  }
}

/* ─── Site chrome integration (v0.7.3) ──────────────────────────────────
 * The journal pages now render INSIDE the parent theme's site header and
 * footer. Switch the journal masthead from position: fixed to sticky so
 * it sits below the site header in document flow and only pins to the
 * top of viewport once the user scrolls past the site header. Main no
 * longer needs padding-top — the masthead occupies its natural layout
 * space rather than floating above content. */

body.nhwa-journal header.masthead {
  position: sticky !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
}

/* Reset main's padding-top — no longer compensating for fixed masthead */
body.nhwa-journal main {
  padding-top: 0 !important;
}
@media (max-width: 820px) {
  body.nhwa-journal main {
    padding-top: 0 !important;
  }
}

/* High-specificity sticky override — beats any parent header rule */
body.nhwa-journal.nhwa-journal header.masthead.masthead {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
}

/* ─── Revert v0.7.3-v0.7.6 — restore standalone journal (v0.7.7) ────────
 * The site-chrome integration broke things. Restore the previous working
 * state: full-page standalone journal pages, position: fixed masthead. */
body.nhwa-journal header.masthead {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* ─── Hide parent theme's old journal module on journal-preview (v0.8.1) ─
 * nhwa-theme's footer.php calls getModule('journal') which embeds the OLD
 * journal teaser. Hide it on our new journal-preview pages. */
body.nhwa-journal .module.module-journal,
body.nhwa-journal .module-journal {
  display: none !important;
}

/* ─── Targeted journal-masthead position override (v0.8.2) ──────────────
 * header-fixed body class restored so the parent site header lays out
 * correctly. Now we need a more specific selector to override the
 * .header-fixed header { position: fixed } rule on JUST our journal
 * masthead, leaving the parent site header alone. */
body.header-fixed.nhwa-journal header.masthead {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  z-index: 50 !important;
}

/* ─── Position journal masthead below fixed site header (v0.8.3) ────────
 * Parent site header is position: fixed at top:0, height 110px. It's
 * out of layout flow, so journal masthead would render BEHIND it.
 * Add margin-top to push journal masthead into view, and set sticky
 * top so it pins below the site header on scroll. */
body.header-fixed.nhwa-journal header.masthead {
  position: sticky !important;
  top: 110px !important;        /* sticks below fixed site header */
  margin-top: 110px !important;  /* clears fixed site header on initial render */
  left: auto !important;
  right: auto !important;
  z-index: 50 !important;
}
/* With admin bar showing, WP pushes everything down by 32/46px;
 * the site header is at top:32 with admin bar, so journal stays at 110+32 */
body.admin-bar.header-fixed.nhwa-journal header.masthead {
  top: 142px !important; /* 110 + 32 */
}
@media (max-width: 782px) {
  body.admin-bar.header-fixed.nhwa-journal header.masthead {
    top: 156px !important; /* 110 + 46 (smaller mobile admin bar) */
  }
}

/* ─── Use parent theme's --v-menu-top-height offset variable (v0.8.5) ───
 * The parent already exposes how much the site header is offset (e.g. by
 * the admin bar). Apply its formula 'calc(110px + var(--v-menu-top-height))'
 * so the journal masthead sits exactly below the fixed site header in all
 * conditions — admin bar visible, browser debug banner, mobile, etc. */
body.header-fixed.nhwa-journal header.masthead {
  position: sticky !important;
  top: calc(110px + var(--v-menu-top-height, 0px)) !important;
  margin-top: calc(110px + var(--v-menu-top-height, 0px)) !important;
  left: auto !important;
  right: auto !important;
  z-index: 50 !important;
}
/* Drop the old hardcoded admin-bar adjustments — they're redundant now */
body.admin-bar.header-fixed.nhwa-journal header.masthead { top: calc(110px + var(--v-menu-top-height, 0px)) !important; }
@media (max-width: 782px) {
  body.admin-bar.header-fixed.nhwa-journal header.masthead { top: calc(110px + var(--v-menu-top-height, 0px)) !important; }
}

/* Highest-specificity override for sticky top (v0.8.6) */
body.header-fixed.nhwa-journal.nhwa-journal header.masthead.masthead {
  top: calc(110px + var(--v-menu-top-height, 0px)) !important;
}

/* ─── Switch back to fixed — parent's body overflow breaks sticky (v0.8.8)
 * Parent theme has body { overflow: hidden auto } making the body the
 * scroll container, with masthead inside <div.layout> (viewport-height).
 * That confines sticky positioning to .layout's height — masthead stops
 * sticking after one viewport. Use position: fixed instead. */

/* v0.8.9: Parent site header compacts on scroll (110px -> 65px). Use a
 * CSS var --nhwa-site-bottom set by JS to track its actual bottom edge,
 * so the journal masthead always sits flush under it with no gap. */
body.header-fixed.nhwa-journal.nhwa-journal header.masthead.masthead,
body.header-fixed.nhwa-journal header.masthead {
  position: fixed !important;
  top: var(--nhwa-site-bottom, calc(110px + var(--v-menu-top-height, 0px))) !important;
  left: 0 !important;
  right: 0 !important;
  margin-top: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
  transition: top 0s !important; /* v0.8.19: rAF loop drives top per-frame; no transition needed */
}

/* main padding-top equals total fixed-header stack height (site header + journal masthead). */
body.nhwa-journal main {
  padding-top: var(--nhwa-stack-h, calc(110px + var(--v-menu-top-height, 0px) + 217px)) !important;
}

/* v0.8.11: Mobile fallback. Parent site header is ~150px tall on mobile
 * (not 110px), so before JS sets --nhwa-site-bottom the desktop fallback
 * positions the journal masthead 40px too high, hiding the utility row
 * (subscribe/search) behind the site header on first paint. */
@media (max-width: 820px) {
  /* v0.8.14: Mobile fallbacks aligned to the new tightened 80px parent
   * header (was 110px) so first-paint position matches what JS sets,
   * eliminating the brief whitespace flash. Admin-bar variant adds 40px. */
  /* v0.9.1: Mobile fallbacks match parent's natural header dims:
   * 150px header + 40px admin-bar margin = 190px bottom. */
  body.header-fixed.nhwa-journal.nhwa-journal header.masthead.masthead,
  body.header-fixed.nhwa-journal header.masthead {
    top: var(--nhwa-site-bottom, 80px) !important;
  }
  body.nhwa-journal main {
    padding-top: var(--nhwa-stack-h, 191px) !important;
  }
  body.admin-bar.nhwa-journal.header-fixed header.masthead {
    top: var(--nhwa-site-bottom, calc(80px + var(--v-menu-top-height, 0px))) !important;
  }
  body.admin-bar.nhwa-journal main {
    padding-top: var(--nhwa-stack-h, calc(191px + var(--v-menu-top-height, 0px))) !important;
  }

  /* v0.9.1: Journal-specific tightening of the parent site header
   * (v0.8.12 / v0.8.13 rules) has been reverted so the journal pages
   * match the rest of the site on mobile: original 150px header, grey
   * .header-top strip visible, original logo padding, 40px admin-bar
   * margin reservation preserved. */
}

/* v0.9.6: Extra top padding on single-article pages only. Listings
 * (home, state archives, edition archives) keep the standard stack-h
 * padding so the green underline sits flush against the section
 * heading; on individual article pages we add 40px so the title and
 * breadcrumb have breathing room. Fallback values are stack-h + 40 to
 * avoid a layout shift before --nhwa-stack-h is set by JS. */
body.single-journal_article main {
  padding-top: calc(var(--nhwa-stack-h, calc(110px + var(--v-menu-top-height, 0px) + 217px)) + 40px) !important;
}
@media (max-width: 820px) {
  body.single-journal_article main {
    padding-top: calc(var(--nhwa-stack-h, 191px) + 40px) !important;
  }
  body.admin-bar.single-journal_article main {
    padding-top: calc(var(--nhwa-stack-h, calc(191px + var(--v-menu-top-height, 0px))) + 40px) !important;
  }
}

/* v0.9.9: Breathing room below the journal CTA before the site footer.
 * Applied globally (not scoped to .nhwa-journal) so it also affects the
 * uplifted .get-journal on non-journal pages. */
.get-journal {
  margin-bottom: 48px !important;
}

/* v0.9.12: Tighten the search input when open on mobile so it doesn't
 * dominate the utility row. */
@media (max-width: 820px) {
  body.nhwa-journal .util-search.open input[type=search] {
    width: 120px !important;
    font-size: 13px !important;
    height: 26px !important;
    line-height: 26px !important;
  }
  body.nhwa-journal .util-search.open {
    padding: 0 8px 0 4px !important;
  }
}

/* v0.9.13: touch-action: manipulation on the utility buttons removes
 * mobile browsers' built-in 300ms tap-delay (double-tap-to-zoom)
 * which can swallow a first tap, especially when the URL bar is
 * simultaneously collapsing on initial interaction. */
.util-hamburger,
.util-search,
.util-search-toggle,
.util-subscribe {
  touch-action: manipulation;
}

/* v0.9.14: iOS Safari quirk — elements with :hover styles require two
 * taps on touch (first to apply hover, second to click). Disable hover
 * effects on touch-only devices via @media (hover: hover) so the first
 * tap fires click directly. */
@media (hover: none) {
  .util-hamburger:hover,
  .util-search-toggle:hover,
  .util-subscribe:hover {
    background: initial;
    transform: none;
  }
}

/* v0.9.19: Larger CTA cover image sitewide, sized to the magazine's
 * native aspect ratio (768:1086 ≈ 0.707) so nothing gets cropped.
 * Hide the redundant "Journal" eyebrow above the title. Vertically
 * centre the cover image in the desktop CTA grid. */
.get-journal .eyebrow,
body.nhwa-journal .get-journal .eyebrow {
  display: none !important;
}
.get-journal .cover-block,
body.nhwa-journal .get-journal .cover-block {
  width: 150px !important;
  height: 212px !important;
  align-self: center !important;
  transform: none !important;
}
.get-journal .cover-image-real,
body.nhwa-journal .get-journal .cover-image-real {
  width: 150px !important;
  height: 212px !important;
  object-fit: cover !important;
  object-position: top center !important;
}
@media (max-width: 820px) {
  .get-journal .cover-block,
  body.nhwa-journal .get-journal .cover-block {
    width: 140px !important;
    height: 198px !important;
  }
  .get-journal .cover-image-real,
  body.nhwa-journal .get-journal .cover-image-real {
    width: 140px !important;
    height: 198px !important;
  }
}

/* v0.9.20: 'Out Now!' is already in the CTA heading; drop the rotated
 * ribbon next to the cover image so it isn't said twice. */
.get-journal .out-now,
body.nhwa-journal .get-journal .out-now {
  display: none !important;
}

/* v0.9.21: More prominent shadow on the CTA cover image, applied
 * sitewide so the uplifted .get-journal on non-journal pages gets
 * it too. Layered shadow for natural depth (close + far). */
.get-journal .cover-image-real,
body.nhwa-journal .get-journal .cover-image-real {
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.32) !important;
}

/* v0.9.22: Rounded cover image sitewide so the uplifted .get-journal
 * on non-journal pages matches the journal page styling. */
.get-journal .cover-image-real,
body.nhwa-journal .get-journal .cover-image-real {
  border-radius: 8px !important;
}

/* v0.9.23: Bump CTA sub-heading from 14px to 16px sitewide. */
.get-journal .copy p,
body.nhwa-journal .get-journal .copy p {
  font-size: 16px !important;
}
