/* ============================================================
   WOMEN [IN]… — the cover system, v77. Loaded after site.css.

   Read off the 2027 cover art, not invented. Two things happen here.

   1. THE PALETTE IS CORRECTED. The site had drifted: it was running
      #2A0A52 violet, #FFD84D yellow, #F7F2EC chalk and a #7B2FBE grape
      that is in no brand document. The cover samples to the documented
      four — Show Purple #2D0B5D, Lilac Mist #EFE8F5, Cream #F7F3EE,
      Signal Yellow #FBD24E — so the variables now point at those, and
      grape is retired to Lift Purple #3B1478.

   2. THE PAGE IS INVERTED. Light Lilac Mist field, Show Purple reduced
      to bands — the nav, the footer and the one yellow CTA band. Where
      a purple band meets the light field it is separated by a yellow
      rule at 1.33% of the band's height and tilted 2 degrees, both
      measured off the cover.

   Nothing in the markup changed. Every page picks this up from the one
   extra stylesheet link.
   ============================================================ */

:root{
  --violet:  #2D0B5D;      /* Show Purple   — bands, the footer, the nav   */
  --violet-2:#200741;      /* Ink Purple    — depth, headlines on light    */
  --grape:   #3B1478;      /* Lift Purple   — hover, secondary dark fill   */
  --yellow:  #FBD24E;      /* Signal Yellow — the one accent               */
  --yellow-2:#E9BC2B;      /* Deep Yellow   — small type on a light field  */
  --chalk:   #F7F3EE;      /* Cream         — reversed type                */
  --lilac:   #EFE8F5;      /* Lilac Mist    — the field                    */
  --ink:     #1B0742;      /* headlines on the light field                 */
  --grey:    #4A3D63;      /* Soft Ink      — body copy on the light field */
  --mute:    #A79FB6;      /* Lavender Gray — sub-labels on purple         */
  --tint:    #EFE8F5;
  --line:    rgba(247,243,238,.15);
  --hairline:rgba(45,11,93,.09);
  --rule:    2px;
}

body{ background:var(--lilac); color:var(--grey); }

/* ---------- the diagonal rule, as a reusable edge ---------- */
.cs-rule{
  position:absolute; left:0; right:0; height:14px; background:var(--yellow);
  transform:skewY(-2deg); transform-origin:left center; z-index:2;
}

/* ---------- Hero: light field, motifs, purple foot ---------- */
section.hero{
  position:relative; overflow:hidden;
  background:var(--lilac);
  padding-bottom:132px;
}
section.hero::before{
  content:''; position:absolute; inset:0;
  background:url('/assets/motifs.svg') no-repeat right -20px top 8px;
  background-size:min(860px, 62%) auto;
  opacity:.92; pointer-events:none;
}
/* the purple foot the wordmark sits on, with its tilted yellow rule */
section.hero::after{
  content:''; position:absolute; left:-4%; right:-4%; bottom:-40px; height:150px;
  /* a solid fill with a top border, not a gradient stop: a hard colour stop
     inside a rotated gradient banded visibly along the diagonal */
  background:var(--violet); border-top:14px solid var(--yellow);
  transform:rotate(-1.6deg); transform-origin:left bottom; pointer-events:none;
}
section.hero > *{ position:relative; z-index:3 }

section.hero h1, section.hero .hero-copy h1{ color:var(--ink) }
section.hero p, section.hero .hero-copy p{ color:var(--grey) }
section.hero .hero-mark, section.hero .hero-mark *{ color:var(--ink) }
section.hero .hero-mark .brk,
section.hero .hero-mark .dots,
section.hero .hero-mark .dot{ color:var(--yellow) }
section.hero .hero-mark small,
section.hero .hero-mark .hero-host{ color:var(--grey) }
.hero-badge{
  background:rgba(45,11,93,.07); color:var(--violet-2);
  border:1px solid var(--hairline);
}

/* ---------- Sections ---------- */
section.tint{ background:#fff }
section.dark{
  position:relative; background:var(--violet); color:var(--chalk);
}
section.dark::before{
  content:''; position:absolute; left:-4%; right:-4%; top:-2px; height:15px;
  background:var(--yellow); transform:rotate(-1.4deg); transform-origin:left top;
}
section.dark h2, section.dark h3{ color:var(--chalk) }
section.dark p{ color:#D9D1E4 }

.sec-head h2{ color:var(--ink) }
section.dark .sec-head h2{ color:var(--chalk) }
.sec-head .eyebrow, .art-kicker, .ep-tag{
  color:var(--yellow-2); letter-spacing:.2em; text-transform:uppercase;
}
section.dark .sec-head .eyebrow, section.dark .ep-tag{ color:var(--yellow) }

/* ---------- Cards and episode rows ---------- */
.ep, .ep-latest, .host-grid, .takeaways, .faq-item{
  background:#fff; border:1px solid var(--hairline);
}
.ep:hover{ box-shadow:0 10px 30px rgba(45,11,93,.08) }

/* the arch, lifted straight off the cover's portrait treatment */
.ep-photo img, .host-photo img, .arch{
  border-radius:50% 50% 0 0 / 34% 34% 0 0;
}

/* ---------- Buttons ---------- */
.nav-cta, .btn-primary{
  background:var(--yellow); color:var(--violet)!important; border-radius:999px;
}
.nav-cta:hover, .btn-primary:hover{ background:#fff }
.btn-ghost{
  border:1.5px solid var(--hairline); color:var(--ink); border-radius:999px;
}
section.dark .btn-ghost{ border-color:rgba(247,243,238,.35); color:var(--chalk) }

/* ---------- Nav and footer keep the purple ---------- */
header.nav{ background:rgba(45,11,93,.96) }
.nav-mark{ color:var(--chalk) }
.nav-mark .brk{ color:var(--yellow) }

footer.foot{
  position:relative; background:var(--violet-2); color:var(--mute);
  margin-top:0;
}
footer.foot::before{
  content:''; position:absolute; left:-4%; right:-4%; top:-6px; height:16px;
  background:var(--yellow); transform:rotate(-1.4deg); transform-origin:left top;
}
footer.foot a{ color:#D9D1E4 }
footer.foot a:hover{ color:var(--yellow) }

/* ---------- Articles ---------- */
section.art{ background:var(--lilac) }
.art-wrap{
  background:#fff; border:1px solid var(--hairline); border-radius:18px;
  padding-top:8px;
}
section.art h1{ color:var(--ink) }
section.art h2{ color:var(--ink) }
.standfirst{ color:var(--grey) }
section.art blockquote{
  border-left:5px solid var(--yellow); background:var(--lilac);
  color:var(--ink); border-radius:0 12px 12px 0;
}
.takeaways{ border-left:5px solid var(--yellow); border-radius:0 14px 14px 0 }
.takeaways h3{ color:var(--ink) }
.art-listen{ background:var(--violet); color:var(--chalk); border-radius:18px }
.art-listen h3{ color:var(--chalk) }
.art-listen p{ color:#D9D1E4 }
.art-listen .row a{
  background:var(--yellow); color:var(--violet); border-radius:999px;
}
.faq-q{ color:var(--ink) }
.faq-a{ color:var(--grey) }

/* ---------- Motion and small screens ---------- */
@media (max-width:860px){
  section.hero{ padding-bottom:96px }
  section.hero::before{ background-size:168% auto; opacity:.55 }
  section.hero::after{ height:112px; bottom:-34px }
  .art-wrap{ border-radius:0; border-left:0; border-right:0 }
}
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1!important; transform:none!important }
}

/* ============================================================
   FIXES, 2 November 2026 — found by looking at the live pages.

   The `section.art h1/h2` rules above recolour article headings to Ink for
   the light field. Three components legitimately keep a purple slab or had
   their slab turned white by this theme, and in each case the type was left
   behind. All three were invisible or near-invisible in the browser and
   none of them is detectable by reading the CSS alone.
   ============================================================ */

/* 1. The latest-episode feature keeps its purple. Its heading is an h2, so
      `section.art h2{color:var(--ink)}` outranked article.css's own white
      and put Ink Purple type on a Show Purple slab. */
.hub-feature{ background:var(--violet); color:var(--chalk) }
section.art .hub-feature h2, .hub-feature h2{ color:var(--chalk) }
.hub-feature .hub-no{ color:var(--yellow) }
.hub-feature .hub-role{ color:#D9D1E4 }
.hub-feature .feat-blurb{ color:#E4DCEC }
.hub-feature .feat-flag,
.hub-feature .hub-date{ background:var(--yellow); color:var(--violet) }

/* 2. The listen slab, same cause — and it is an h2, not the h3 this theme
      originally targeted. */
.art-listen h2,
section.art .art-listen h2{ color:var(--chalk) }

/* 3. Takeaways became a light card under this theme, but article.css styles
      its contents for a purple slab: cream body, #E4DCEC list items, Signal
      Yellow bold, all of which vanish on white. */
.takeaways{ color:var(--grey) }
.takeaways h2, .takeaways h3{ color:var(--ink) }
.takeaways li, .takeaways p{ color:var(--grey) }
.takeaways b{ color:var(--yellow-2) }
.takeaways a{ color:var(--violet); text-decoration-color:var(--yellow) }
.takeaways a:hover{ color:var(--grape) }

/* Episode card photos: keep a fixed 4:5 portrait at the top of the column.
   The photo used to stretch to the full card height, so on long write-ups a
   270px-wide column became a 750-880px-tall strip and faces were cropped into
   a sliver. Now the photo keeps its shape and the purple column runs on below. */
@media (min-width:761px){
  .ep-photo{ min-height:0 }
  .ep-photo img{ position:relative; inset:auto; display:block; width:100%; height:auto; aspect-ratio:4/5 }
}

/* The diagonal yellow section bands run 4% past each edge so the slant never
   shows a gap. Clip them at the page edge so desktop doesn't get a ~57px
   sideways scroll. `clip` (not `hidden`) keeps the sticky nav working. */
html, body{ overflow-x:clip }

/* Topic lists (episodes page) and "More episodes like this one" (episode pages):
   site.css still had cream link colour from when these boxes were purple, and its
   #id selectors outranked the .takeaways rule above, so the guest names were
   cream on a white box. */
#related a, #topics .takeaways a{ color:var(--violet); text-decoration-color:var(--yellow) }
#related a:hover, #topics .takeaways a:hover{ color:var(--grape) }

/* Trademark on the Women [In]™ wordmark: small, Signal Yellow, superscript. */
.nav-mark .tm, .foot-mark .tm{ color:var(--yellow); font-size:.42em; font-weight:600; vertical-align:super; margin-left:2px; letter-spacing:0; line-height:0 }

/* Guest links: "Where to find her" pills on episode pages, "Find her" line on home cards */
.guest-links{ display:flex; flex-wrap:wrap; gap:8px 10px; margin:14px 0 6px }
.guest-links a{ display:inline-block; padding:7px 14px; border-radius:999px; border:1.5px solid var(--violet);
  color:var(--violet); font-size:14px; font-weight:600; text-decoration:none; line-height:1.2 }
.guest-links a:hover{ background:var(--violet); color:var(--chalk) }
.ep-links{ margin-top:12px; font-size:14px }
