﻿/**
 * Editorial primitives shared by pages outside the Stories reader.
 * Colors live here rather than in Tailwind utilities because site-light-theme.js
 * rewrites utility class strings at build time (border-white/10 -> border-gray-200),
 * which silently breaks utility-styled dark sections.
 */

.ed-page {
  --ed-navy: var(--sb-navy, #0a0a0a);
  --ed-teal: var(--sb-teal, #111111);
  --ed-teal-hover: var(--sb-teal-hover, #333333);
  --ed-ink: var(--sb-ink, #0F172A);
  --ed-muted: var(--sb-muted, #64748B);
  --ed-line: var(--sb-line, #E2E8F0);
  --ed-surface: var(--sb-surface, #F8FAFC);
}

.ed-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top padding clears the fixed site nav. */
.ed-main {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.ed-main > header,
.ed-main > section:first-of-type,
.ed-main > .ed-band:first-child,
main > .home-mast {
  animation: sb-rise var(--sb-duration-slow, 420ms) var(--sb-ease, ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .ed-main > header,
  .ed-main > section:first-of-type,
  .ed-main > .ed-band:first-child,
  main > .home-mast {
    animation: none;
  }
}

.ed-fineprint {
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ed-muted);
}

/* Full-bleed dark band. Needs a .ed-wrap child to keep content aligned. */
.ed-band {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 3.5rem;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(0, 0, 0, 0.35), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(0, 0, 0, 0.55), transparent 50%),
    linear-gradient(145deg, #0a0a0a 0%, #111111 100%);
  color: #fff;
}

/* Clears the fixed site nav when the band is the first thing on the page. */
.ed-band--top { padding-top: 7rem; }

.home-mast.ed-band {
  background:
    radial-gradient(800px 280px at 90% -20%, rgba(0, 0, 0, 0.35), transparent 55%),
    var(--ed-navy);
  padding-bottom: 1.35rem;
}

.home-mast .ed-h1 {
  color: #fff;
  max-width: 28ch;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.home-mast .ed-eyebrow { color: #5eead4; }

.home-mast .ed-dek {
  color: rgba(255, 255, 255, 0.78);
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  max-width: 36rem;
}

.home-mast .ed-ctas { display: none; }

.home-mast .ed-btn {
  border-radius: var(--sb-radius-pill, 999px);
}

.home-mast .ed-btn-primary {
  background: var(--ed-teal);
  color: #fff;
}

.home-mast .ed-btn-primary:hover { background: var(--ed-teal-hover); }

.home-after-mast,
.home-desk {
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}
@media (max-width: 767px) {
  .home-after-mast,
  .home-desk {
    padding-top: 4.25rem;
  }
}

.ed-band-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .ed-band-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.ed-band-aside {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1.75rem;
}

@media (max-width: 800px) {
  .ed-band-aside {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0;
    padding-top: 1.5rem;
  }
}

.ed-eyebrow {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ed-teal);
  margin: 0 0 0.85rem;
}

.ed-band .ed-eyebrow { color: rgba(255, 255, 255, 0.6); }

.ed-h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 24ch;
}

.ed-h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ed-navy);
  margin: 0 0 0.5rem;
}

.ed-band .ed-h2 { color: #fff; }

.ed-h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ed-navy);
  margin: 0 0 0.45rem;
}

.ed-dek {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ed-muted);
  max-width: 38rem;
}

.ed-band .ed-dek { color: rgba(255, 255, 255, 0.82); }

.ed-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ed-muted);
}

.ed-body--lead {
  font-size: 1rem;
  color: var(--ed-ink);
  margin-bottom: 1rem;
}

.ed-body + .ed-body { margin-top: 1rem; }

.ed-band-quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* Asymmetric two-column block: body copy beside a supporting panel. */
.ed-split {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .ed-split { grid-template-columns: 1fr; gap: 1.75rem; }
}

.ed-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ed-contact-list li + li {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--ed-line);
}

/* Sections */
.ed-section {
  padding: 3.25rem 0;
  border-top: 1px solid var(--ed-line);
  scroll-margin-top: 6rem;
}

.ed-section--flush { border-top: none; }

/* Flat panels */
.ed-card {
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
}

.ed-card--plain { background: #fff; }

.ed-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--sb-duration, 0.18s) var(--sb-ease, ease),
    background var(--sb-duration, 0.18s) ease,
    box-shadow var(--sb-duration, 0.18s) ease,
    transform var(--sb-duration, 0.18s) var(--sb-ease, ease);
}

.ed-card--link:hover {
  border-color: var(--ed-teal);
  background: #fff;
  box-shadow: var(--sb-shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.06));
  transform: translateY(-1px);
}

.ed-grid { display: grid; gap: 1.25rem; }
.ed-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ed-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ed-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .ed-grid--3, .ed-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .ed-grid--2, .ed-grid--3, .ed-grid--4 { grid-template-columns: 1fr; }
}

/* Numbered steps */
.ed-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ed-step;
}

.ed-step {
  counter-increment: ed-step;
  position: relative;
  padding-left: 3rem;
  padding-bottom: 1.5rem;
}

.ed-step:last-child { padding-bottom: 0; }

.ed-step::before {
  content: counter(ed-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ed-teal);
  letter-spacing: 0.04em;
}

/* Buttons */
.ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--sb-radius-sm, 6px);
  cursor: pointer;
  transition: background var(--sb-duration, 0.18s) ease,
    border-color var(--sb-duration, 0.18s) ease,
    color var(--sb-duration, 0.18s) ease,
    transform var(--sb-duration-fast, 0.15s) var(--sb-ease, ease);
}

.ed-btn:active { transform: scale(0.98); }

.ed-btn-primary {
  background: var(--ed-navy);
  color: #fff;
}

.ed-btn-primary:hover { background: var(--ed-teal); }

.ed-btn-secondary {
  background: #fff;
  border-color: var(--ed-line);
  color: var(--ed-ink);
}

.ed-btn-secondary:hover { border-color: var(--ed-teal); color: var(--ed-teal); }

/* Inverted on dark surfaces: a navy button on a navy panel reads as plain text. */
.ed-band .ed-btn-primary,
.ed-product-featured .ed-btn-primary {
  background: #fff;
  color: var(--ed-navy);
}

.ed-band .ed-btn-primary:hover,
.ed-product-featured .ed-btn-primary:hover { background: var(--ed-surface); }

.ed-band .ed-btn-secondary,
.ed-product-featured .ed-btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.ed-band .ed-btn-secondary:hover,
.ed-product-featured .ed-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.ed-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.ed-link {
  color: var(--ed-teal);
  font-weight: 600;
  text-decoration: none;
}

.ed-link:hover { text-decoration: underline; }

/* Form controls â€” square corners, teal focus, shared by contact and future forms. */
.ed-field { margin-bottom: 1.15rem; }

.ed-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-muted);
}

.ed-input,
.ed-textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ed-line);
  border-radius: 0;
  background: #fff;
  color: var(--ed-ink);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ed-textarea {
  min-height: 9rem;
  resize: vertical;
}

.ed-input::placeholder,
.ed-textarea::placeholder { color: #94A3B8; }

.ed-input:focus,
.ed-textarea:focus {
  outline: none;
  border-color: var(--ed-teal);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}

.ed-form-status {
  margin: 0.85rem 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ed-muted);
}

.ed-form-status.is-ok { color: var(--ed-teal); }
.ed-form-status.is-err { color: #B91C1C; }

.ed-band .ed-contact-list li + li { border-top-color: rgba(255, 255, 255, 0.2); }
.ed-band .ed-link { color: #fff; }
.ed-band .ed-link:hover { color: rgba(255, 255, 255, 0.85); }
.ed-band .ed-fineprint { color: rgba(255, 255, 255, 0.6); }

/* Closing call to action */
.ed-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
}

.ed-cta-band .ed-h3 { margin-bottom: 0.3rem; }
.ed-cta-band--spaced { margin-top: 2.5rem; }

.ed-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .ed-tier-grid { grid-template-columns: 1fr; }
}

.ed-tier {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid var(--ed-line);
  border-radius: var(--sb-radius-lg, 14px);
}

.ed-tier .ed-eyebrow { margin-bottom: 0.4rem; }

.ed-tier .membership-price {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ed-navy);
  margin: 0 0 1rem;
}

.ed-tier .membership-price span {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ed-muted);
}

.ed-tier ul {
  margin: 0 0 1.35rem;
  padding-left: 1.1rem;
  color: var(--ed-ink);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.ed-tier--member {
  background: var(--ed-navy);
  border-color: var(--ed-navy);
  color: #fff;
}

.ed-tier--member .ed-eyebrow { color: #5eead4; }

.ed-tier--member .membership-price { color: #fff; }

.ed-tier--member .membership-price span { color: rgba(203, 213, 225, 0.95); }

.ed-tier--member ul { color: #cbd5e1; }

.ed-tier--member .ed-btn-primary {
  background: var(--ed-teal);
  color: #fff;
}

.ed-tier--member .ed-btn-primary:hover { background: var(--ed-teal-hover); }

.ed-tier .ed-btn { border-radius: var(--sb-radius-pill, 999px); align-self: flex-start; }

/* ---------- Product listings ---------- */

/* Featured treatment, used when the catalogue is small enough that a grid
   would leave dead columns. */
.ed-product-featured {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--ed-navy);
  color: #fff;
  min-height: 340px;
}

@media (max-width: 760px) {
  .ed-product-featured { grid-template-columns: 1fr; min-height: 0; }
}

.ed-product-featured-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(160deg, #0a0a0a 0%, #111111 100%);
}

/* contain, not cover: book covers are portrait and cropping destroys the artwork. */
.ed-product-featured-media img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.ed-product-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem 2rem;
}

.ed-product-featured-body .ed-eyebrow { color: rgba(255, 255, 255, 0.6); }

.ed-product-featured-body h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.ed-product-featured-body p {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.ed-product-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.ed-product-price {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ed-navy);
}

.ed-product-featured-body .ed-product-price { color: #fff; }

.ed-product-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Grid cards, used once there are enough products to fill the rows. */
.ed-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ed-line);
  background: #fff;
}

.ed-product-thumb {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(160deg, #0a0a0a 0%, #111111 100%);
  overflow: hidden;
}

.ed-product-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.ed-product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.4rem;
}

.ed-product-card-body .ed-body { flex: 1; margin-bottom: 1.25rem; }

.ed-product-card-body .ed-product-buy { justify-content: space-between; }

/* Loading and empty states */
.ed-skeleton {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 340px;
  border: 1px solid var(--ed-line);
  background: #fff;
}

@media (max-width: 760px) {
  .ed-skeleton { grid-template-columns: 1fr; }
}

.ed-skeleton-media { background: var(--ed-surface); }

.ed-skeleton-body { padding: 2.25rem 2rem; }

.ed-skeleton-line {
  height: 0.85rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(90deg, #EEF2F7 0%, #E2E8F0 50%, #EEF2F7 100%);
  background-size: 200% 100%;
  animation: ed-shimmer 1.4s linear infinite;
}

.ed-skeleton-line--title { height: 1.6rem; width: 65%; margin-bottom: 1.35rem; }
.ed-skeleton-line--short { width: 40%; }

@keyframes ed-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-skeleton-line { animation: none; }
}

.ed-notice {
  padding: 2.5rem 2rem;
  border: 1px solid var(--ed-line);
  background: var(--ed-surface);
  text-align: center;
}

.ed-notice .ed-body { margin-bottom: 1.25rem; }

/* ------------------------------------------------------------------ */
/* No-hero pro pages: who-are-we, contact, membership                  */
/* ------------------------------------------------------------------ */

.ed-page-pro {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 10rem);
  overflow-x: clip;
  overflow-y: visible;
  background:
    radial-gradient(900px 480px at 92% -8%, rgba(0, 0, 0, 0.14), transparent 58%),
    radial-gradient(700px 520px at -8% 55%, rgba(0, 0, 0, 0.08), transparent 52%),
    linear-gradient(180deg, #F8FAFC 0%, #EEF4F8 100%);
}

.ed-page-pro::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ed-teal) 0%, var(--ed-navy) 100%);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

.ed-page-pro > .ed-wrap {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  width: 100%;
  box-sizing: border-box;
  padding-top: 0.75rem;
  padding-bottom: 4rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

.ed-page-pro > .ed-wrap.ed-pro-block:has(+ .ed-offer) {
  padding-bottom: 1.25rem;
}

.ed-page-pro > .ed-wrap.ed-offer {
  max-width: 1080px;
  padding-top: 0;
}

.ed-offer .stories-card-thumb.who-path-thumb {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.9rem 1rem 1rem;
  overflow: hidden;
  aspect-ratio: auto;
  min-height: 12.75rem;
  background: #0a0a0a;
}

.who-path-num {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(13, 148, 136, 0.55);
  width: max-content;
  flex-shrink: 0;
}

.who-path-line {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.who-path-points {
  margin: 0;
  padding: 0 0 0 1.05rem;
  flex: 1;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.82);
}

.who-path-points li + li {
  margin-top: 0.28rem;
}

.ed-offer .stories-card h3 {
  margin-bottom: 1rem;
}

.ed-offer .ed-fineprint {
  margin-top: 1.25rem;
  max-width: 42rem;
}

.ed-page-pro .ed-pro-block {
  opacity: 0;
  transform: translateY(0.75rem);
  animation: ed-pro-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ed-page-pro .ed-kicker {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-teal);
}

.ed-page-pro .ed-h1 {
  max-width: 16ch;
  color: var(--ed-navy);
  margin-bottom: 0.4rem;
  font-size: clamp(1.85rem, 7.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.ed-title-rule {
  display: block;
  width: 3.25rem;
  height: 3px;
  margin: 0 0 1.4rem;
  background: var(--ed-teal);
  transform: scaleX(0);
  transform-origin: left center;
  animation: ed-pro-rule 0.55s ease 0.18s forwards;
}

.ed-lede {
  margin: 0 0 1.15rem;
  font-size: 1.08rem;
  line-height: 1.62;
  color: var(--ed-ink);
  max-width: 38rem;
}

.ed-lede-muted {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ed-muted);
  max-width: 36rem;
}

.ed-channel-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 2rem;
  border-left: 2px solid rgba(0, 0, 0, 0.35);
}

.ed-channel-rail a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 0.7rem 0 0.7rem 1rem;
  text-decoration: none;
  color: var(--ed-navy);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--ed-line);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.ed-channel-rail a:last-child { border-bottom: none; }

.ed-channel-rail a:hover {
  color: var(--ed-teal);
  padding-left: 1.25rem;
}

.ed-channel-rail .ed-channel-hint {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ed-muted);
}

.ed-price-mark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
}

.ed-price-mark .ed-price {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2.75rem, 7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ed-navy);
}

.ed-price-mark .ed-price-unit {
  font-size: 0.95rem;
  color: var(--ed-muted);
  font-weight: 500;
}

.ed-rule-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.ed-rule-list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ed-line);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ed-ink);
  transition: background 0.18s ease;
}

.ed-rule-list li:last-child {
  border-bottom: 1px solid var(--ed-line);
}

.ed-rule-list li:hover {
  background: rgba(0, 0, 0, 0.025);
}

.ed-rule-list .ed-rule-label {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  color: var(--ed-navy);
}

@media (max-width: 480px) {
  .ed-rule-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.ed-page-pro .ed-ctas {
  margin-top: 0.15rem;
  margin-bottom: 0.25rem;
}

.ed-page-pro .ed-form-block {
  margin-top: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ed-line);
}

.ed-page-pro .ed-form-block .ed-h2 {
  margin-bottom: 0.35rem;
}

.ed-form-hint {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  color: var(--ed-muted);
}

.ed-stagger > *:nth-child(1) { animation-delay: 0.02s; }
.ed-stagger > *:nth-child(2) { animation-delay: 0.08s; }
.ed-stagger > *:nth-child(3) { animation-delay: 0.14s; }
.ed-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.ed-stagger > *:nth-child(5) { animation-delay: 0.26s; }

.ed-stagger > * {
  opacity: 0;
  transform: translateY(0.55rem);
  animation: ed-pro-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ed-pro-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ed-pro-rule {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ed-page-pro .ed-pro-block,
  .ed-stagger > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .ed-title-rule {
    transform: scaleX(1);
    animation: none;
  }
}

/* Reader app pages â€” account sidebar */
.ed-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 11rem;
}

.ed-side-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  color: var(--ed-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}

.ed-side-nav a:hover {
  background: var(--ed-surface);
  color: var(--ed-ink);
}

.ed-side-nav a.is-active {
  background: rgba(0, 0, 0, 0.1);
  color: var(--ed-teal);
  font-weight: 600;
}

/* Home hero story rotator inside ed-band */
.ed-hero-rotator {
  position: relative;
  min-height: 4.5rem;
}

.ed-hero-rotator a {
  position: absolute;
  inset: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 650;
  line-height: 1.35;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.ed-hero-rotator a.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ed-hero-rotator.is-static a {
  position: relative;
  display: block;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  margin-bottom: 0.65rem;
}

.ed-hero-rotator.is-static a:last-child { margin-bottom: 0; }

.ed-hero-rotator-empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .ed-hero-rotator a { transition: none; }
}
/* News-desk layout (home + stories archive) */
/* Top padding clears the fixed site nav. */
.desk-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 7rem 1.25rem 3rem;
}

/* The nav collapses to a single row below 768px, so it needs less clearance. */
@media (max-width: 767px) {
  .ed-main,
  .desk-wrap { padding-top: 5rem; }
}

.desk-featured {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ed-line, #E2E8F0);
}
@media (min-width: 900px) {
  .desk-featured {
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}
.desk-featured-main a { display: block; text-decoration: none; color: inherit; }
.desk-featured-main .desk-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 0.75rem;
}
.desk-featured-main .desk-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.desk-featured-main h2 {
  font-family: var(--sb-font-display, 'Source Serif 4', Georgia, serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.5rem;
  color: var(--ed-ink, #0F172A);
}
.desk-featured-main .desk-excerpt {
  color: var(--ed-muted, #64748B);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
@media (min-width: 900px) {
  .desk-featured-side {
    border-left: 1px solid var(--ed-line, #E2E8F0);
    padding-left: 1.25rem;
  }
}
.desk-side-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ed-line, #E2E8F0);
}
.desk-side-item:last-child { border-bottom: 0; }
.desk-side-item a { text-decoration: none; color: inherit; display: block; }
.desk-side-item h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0.25rem 0 0;
  font-weight: 650;
  color: var(--ed-ink, #0F172A);
}
.desk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ed-muted, #64748B);
}
.desk-row { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .desk-row {
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: 2.25rem;
    align-items: start;
  }
}
.desk-feed-kicker,
.desk-most-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-teal, #111111);
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ed-navy, #0a0a0a);
}
.desk-most ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: most;
}
.desk-most li {
  counter-increment: most;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.55rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ed-line, #E2E8F0);
}
.desk-most li::before {
  content: counter(most);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ed-teal, #111111);
  line-height: 1.35;
}
.desk-most a {
  text-decoration: none;
  color: var(--ed-ink, #0F172A);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}
.desk-most a:hover { color: var(--ed-teal, #111111); }
.desk-most .desk-meta { margin-top: 0.2rem; }
