/* SWFL Spotlight — site chrome + home landing page
 *
 * Styles for the theme's templates and template parts: header, footer,
 * home page sections, archive, post cards. Uses .swfl-* class hooks placed
 * on block wrappers in templates/ and parts/.
 *
 * Design tokens from swfl-tokens.css. Site chrome intentionally does
 * NOT use .swfl-article scope — those are article-body-only styles.
 */

/* ======================================================================
   Edge-to-edge section flow
   ----------------------------------------------------------------------
   Two cooperating problems:

   1. Block-gap. WP's is-layout-flow adds a margin between sibling
      blocks (header → main → footer at the body level, and each home
      section inside <main>). That gap renders as a strip of the sand
      page background between sections.

   2. Root padding. With useRootPaddingAwareAlignments + a constrained
      <main>, alignfull blocks are supposed to break out via
      `--wp--style--root--padding-{left,right}` margins. The TT5 parent
      sets those vars (and a body padding); on the home page we want
      sections to span the literal viewport, not be inset by 28px on
      each side.

   The home sections each carry their own full-bleed background and
   their own internal padding, so the safest fix is to force every
   direct child of .swfl-home to span 100vw and bleed past any wrapping
   constraint. Scoped to .swfl-home so article / archive flows are
   untouched.
   ====================================================================== */

/* TT5 parent + WP root-padding-aware-alignments inject padding on the
   body AND on the .wp-site-blocks wrapper. SWFL is built edge-to-edge —
   every section carries its own internal padding — so we want zero
   inset on every ancestor that the cover blocks have to escape from. */
html, body, .wp-site-blocks {
  padding-left: 0 !important;
  padding-right: 0 !important;
  --wp--style--root--padding-left: 0 !important;
  --wp--style--root--padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}
.wp-site-blocks {
  width: 100% !important;
}

.swfl-site-header,
.swfl-home,
.swfl-site-footer {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Belt-and-suspenders: guarantee the sticky header is always visible
   and stacks above the hero cover. Without explicit min-height the
   header can collapse to 0 if its only child (the badge) is fully
   absorbed by negative margin. */
.swfl-site-header {
  min-height: 64px;
}

/* Zero the wrapper so the cover/group children own their full-bleed. */
.swfl-home {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  /* WP applies these vars on every alignfull descendant. Zero them on
     the home subtree so alignfull truly extends to the viewport edge. */
  --wp--style--root--padding-left: 0 !important;
  --wp--style--root--padding-right: 0 !important;
}

/* Force every section + cover to span the full viewport. The 50%/50vw
   trick works regardless of the parent's max-width or padding. */
.swfl-home > *,
.swfl-home > .wp-block-group,
.swfl-home > .wp-block-cover,
.swfl-home > .alignfull {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

/* Same edge-to-edge treatment for the site footer, which is a sibling
   of <main> at the body level. */
.swfl-site-footer.alignfull,
.swfl-site-footer {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

/* ======================================================================
   Utility: eyebrow, section heads, buttons
   ====================================================================== */

.swfl-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--swfl-teal-deep);
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.swfl-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.7;
}
.swfl-eyebrow--onAmber { color: var(--swfl-slate); }
.swfl-eyebrow--onDark  { color: var(--swfl-amber); }

/* Section head — used by latest, radar, series-section */
.swfl-section-head {
  gap: 24px !important;
  margin: 0 auto 32px !important;
  max-width: 1200px;
  width: 100%;
  align-items: flex-end;
}
.swfl-section-head .swfl-eyebrow { margin-bottom: 8px; }
.swfl-section-h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--swfl-slate);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.swfl-section-h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--swfl-teal-deep);
}
.swfl-section-head--onDark .swfl-section-h2 { color: #fff; }
.swfl-section-head--onDark .swfl-section-h2 em { color: var(--swfl-amber); }

.swfl-section-link {
  margin: 0;
  padding-bottom: 6px;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 14px;
}
.swfl-section-link a {
  color: var(--swfl-slate);
  text-decoration: none;
  border-bottom: 2px solid var(--swfl-amber);
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-smooth),
              border-color var(--dur-fast) var(--ease-smooth);
}
.swfl-section-link a:hover {
  color: var(--swfl-amber-deep);
  border-color: var(--swfl-amber-deep);
}
.swfl-section-link--onDark a { color: var(--swfl-amber); border-color: var(--swfl-amber); }
.swfl-section-link--onDark a:hover { color: #fff; border-color: #fff; }

/* Button variants used on the hero + submit sections (outside theme.json button) */
.swfl-btn .wp-block-button__link {
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  transition: transform var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast) var(--ease-smooth),
              color var(--dur-fast) var(--ease-smooth);
}
.swfl-btn--onImage .wp-block-button__link {
  background: #fff;
  color: var(--swfl-slate);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.25);
}
.swfl-btn--onImage .wp-block-button__link:hover {
  background: var(--swfl-amber);
  transform: translateY(-1px);
}
.swfl-btn--linkOnImage .wp-block-button__link {
  background: transparent;
  color: #fff;
  padding: 14px 0;
  text-decoration: underline;
  text-decoration-color: var(--swfl-amber);
  text-underline-offset: 6px;
}
.swfl-btn--linkOnImage .wp-block-button__link:hover {
  text-decoration-color: #fff;
}

/* ======================================================================
   Site header — sticky, masthead badge logo
   ====================================================================== */

.swfl-site-header {
  position: sticky;
  top: 0;
  /* z-index 50 so the hanging badge + the header bar both sit
     above the hero cover (which gets WP's default block stacking). */
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--swfl-line);
  padding: 0;
  /* Critical: the badge protrudes via negative margin, so the header
     wrapper must let it overflow vertically. */
  overflow: visible;
}
.swfl-site-header-in {
  /* Don't rely on WP's is-layout-flex class — set flex explicitly so
     the header-in is guaranteed to be a flex row with logo / nav /
     Subscribe in line, regardless of how the layout class chain
     resolves on the live site. */
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 32px;

  max-width: 1200px;
  margin: 0 auto;
  /* Reserve 156px on the left for the absolute-positioned badge
     (28px viewport edge + 112px badge + 16px gap to nav). */
  padding: 16px 28px 16px 156px;
  width: 100%;
  min-height: 64px;
  position: relative; /* anchor for the absolute badge below */
  overflow: visible;
}

/* Masthead badge — sand-bg circle absolutely positioned at the top-
   left of the header. The top of the circle sits at y=8 inside the
   sticky bar; the bottom protrudes well below the bar (y=120, vs.
   bar bottom around y=64). overflow:visible on the bar lets it show.

   Absolute positioning is deliberate — flex + negative margin behaved
   inconsistently across is-layout-flex / WP layout class permutations,
   so this is explicit and predictable. */
.swfl-site-logo {
  position: absolute !important;
  top: 8px;
  left: 28px;
  width: 112px;
  height: 112px;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--swfl-sand);
  box-shadow: 0 0 0 1px var(--swfl-line), var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
  padding: 0;
  overflow: hidden; /* clip the logo image to the circle */
  z-index: 51;
}
.swfl-site-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--swfl-line-strong), var(--shadow-md);
}
.swfl-site-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.swfl-site-logo img {
  height: 90px;
  width: auto;
  display: block;
}

/* Navigation — slate 14px links, amber underline slides in on hover.
   flex:1 fills the space between the badge (absolute, behind the
   reserved padding-left) and the Subscribe button on the right;
   justify-content:center groups the links in the middle of that span. */
.swfl-site-header .swfl-nav {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  gap: 20px;
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap;
}
.swfl-site-header .swfl-nav .wp-block-navigation-item__content {
  color: var(--swfl-slate);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color var(--dur-fast) var(--ease-smooth);
}
.swfl-site-header .swfl-nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--swfl-amber);
  transition: width 180ms var(--ease-smooth), left 180ms var(--ease-smooth);
}
.swfl-site-header .swfl-nav .wp-block-navigation-item__content:hover,
.swfl-site-header .swfl-nav .current-menu-item > .wp-block-navigation-item__content {
  color: var(--swfl-teal-deep);
}
.swfl-site-header .swfl-nav .wp-block-navigation-item__content:hover::after {
  width: 100%;
  left: 0;
}
.swfl-site-header .swfl-nav .wp-block-navigation-item.has-child {
  display: flex;
  align-items: center;
}
.swfl-site-header .swfl-nav .wp-block-navigation-submenu__toggle {
  color: var(--swfl-slate);
  padding: 4px 0 4px 6px;
  transition: color var(--dur-fast) var(--ease-smooth);
}
.swfl-site-header .swfl-nav .wp-block-navigation-item.has-child:hover > .wp-block-navigation-submenu__toggle {
  color: var(--swfl-teal-deep);
}
.swfl-site-header .swfl-nav .wp-block-navigation__submenu-container {
  border: 1px solid var(--swfl-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.12);
  padding: 10px;
  min-width: 240px;
}
.swfl-site-header .swfl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}
.swfl-site-header .swfl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
  display: none;
}
.swfl-site-header .swfl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.swfl-site-header .swfl-nav .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
  background: var(--swfl-teal-wash);
  color: var(--swfl-teal-deep);
}

/* Subscribe button — amber pill */
.swfl-site-header .swfl-sub-wrap {
  flex-shrink: 0;
  margin: 0;
}
.swfl-site-header .swfl-sub .wp-block-button__link {
  background: var(--swfl-amber);
  color: var(--swfl-slate);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth);
}
.swfl-site-header .swfl-sub .wp-block-button__link:hover {
  background: var(--swfl-amber-deep);
  box-shadow: var(--shadow-sun);
}

/* ======================================================================
   Site footer — 4-column grid
   ====================================================================== */

.swfl-site-footer {
  padding: 80px 28px 32px;
  margin-top: 0;
}
.swfl-footer-in {
  max-width: 1200px;
  margin: 0 auto;
}
.swfl-footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.swfl-footer-col { display: block; }
.swfl-footer-logo {
  margin: 0 0 18px;
}
.swfl-footer-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.swfl-footer-lede {
  font-family: var(--font-body);
  font-size: 15px;
  color: #b8b8b8;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 0 20px;
}
.swfl-footer-stamp {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--swfl-amber);
  text-transform: uppercase;
  margin: 0;
}
.swfl-footer-col-head {
  font-family: var(--font-body) !important;
  font-weight: var(--fw-extra) !important;
  font-size: 11px !important;
  letter-spacing: 0.18em;
  color: var(--swfl-amber) !important;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.swfl-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swfl-footer-links li { margin: 0; }
.swfl-footer-links a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease-smooth);
}
.swfl-footer-links a:hover { color: var(--swfl-teal); }

.swfl-footer-legal {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  gap: 16px;
}
.swfl-footer-copy,
.swfl-footer-tag {
  font-family: var(--font-body);
  font-size: 12px;
  color: #8a8a8a;
  margin: 0;
}
.swfl-footer-tag em {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ======================================================================
   Hero — cinematic full-bleed cover + subscribe card
   ====================================================================== */

.swfl-home-hero.wp-block-cover,
.swfl-home-hero.wp-block-cover.is-position-bottom-left {
  min-height: 720px;
  padding: 0;
  color: #fff;
  isolation: isolate;
}
/* No extra scrim. The Cover's own dim overlay (dimRatio: 60) provides
   the even darkening across the whole image. The foreground content
   sits unambiguously on top — no gradient to wash through it. */
.swfl-home-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 5 !important;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 88px 28px 72px;
}
/* Two-column hero layout. Higher specificity than .swfl-hero-in alone
   to beat WP's `is-layout-grid` defaults (which set columns to
   `repeat(2, minmax(0, 1fr))` from the wp:group columnCount attribute
   and squeezed the left column too narrow for the headline). */
.swfl-home-hero .swfl-hero-in,
.swfl-home-hero .wp-block-cover__inner-container .swfl-hero-in {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr) !important;
  gap: 56px !important;
  align-items: end;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.swfl-hero-left {
  padding-bottom: 8px;
  min-width: 0; /* allow the H1 to wrap rather than blow out the grid */
}

/* Masthead row: amber chip + issue line. Force horizontal flex so the
   two paragraphs sit side-by-side regardless of WP's wp-block-group
   layout class quirks. nowrap so they never stack vertically. */
.swfl-hero-masthead {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 24px !important;
}
.swfl-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--swfl-amber);
  color: var(--swfl-slate);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}
.swfl-hero-issue {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  white-space: nowrap;
}

.swfl-hero-h1 {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
  font-size: clamp(40px, 6.2vw, 84px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.02em !important;
  color: #fff !important;
  margin: 0 0 24px !important;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.swfl-hero-h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--swfl-amber);
}
.swfl-hero-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-width: 42ch;
  margin: 0 0 32px;
}
.swfl-hero-ctas {
  gap: 18px !important;
  align-items: center !important;
}

/* Subscribe card — white, radial amber glow in corner */
.swfl-hero-subcard {
  background: #fff;
  border-radius: var(--r-xl) !important;
  padding: 32px 30px 28px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  color: var(--swfl-slate);
  position: relative;
  overflow: hidden;
}
.swfl-hero-subcard::before {
  content: "";
  position: absolute;
  top: -32px;
  right: -32px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--swfl-amber) 0%, var(--swfl-amber-soft) 60%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}
.swfl-hero-subcard > * { position: relative; }
.swfl-hero-subcard-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-extra);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--swfl-amber-deep);
  margin: 0 0 10px;
}
.swfl-hero-subcard-headline {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
  font-size: 26px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  color: var(--swfl-slate) !important;
  margin: 0 0 12px !important;
  text-wrap: balance;
}
.swfl-hero-subcard-dek {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0 0 22px;
}
.swfl-hero-subcard .swfl-beehiiv-embed {
  margin: 0 auto 14px;
}

/* Inline subscribe form on the hero card. Posts to Beehiiv's hosted
   signup at newsletter.swflspotlight.com so the form works without
   the iframe + publication-ID dance. Once a Beehiiv pub ID is wired
   up the action URL stays the same — Beehiiv handles it natively. */
.swfl-hero-subform {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  margin: 0 0 8px;
}
.swfl-hero-subform-input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--swfl-line-strong);
  border-radius: var(--r-md);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--swfl-slate);
  transition: border-color var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth);
}
.swfl-hero-subform-input::placeholder { color: var(--fg-4); }
.swfl-hero-subform-input:focus {
  border-color: var(--swfl-teal);
  outline: none;
  box-shadow: var(--ring-focus);
}
.swfl-hero-subform-btn {
  flex: 0 0 auto;
  padding: 14px 20px;
  border: none;
  border-radius: var(--r-md);
  background: var(--swfl-amber);
  color: var(--swfl-slate);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth);
}
.swfl-hero-subform-btn:hover {
  background: var(--swfl-amber-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sun);
}

.swfl-hero-subcard-fine {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fg-4);
  margin: 14px 0 0;
}

/* Social-proof row at the bottom of the subscribe card.
   Border-top divider + 4 overlapping circular avatars + reader count. */
.swfl-hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--swfl-line);
  position: relative;
}
.swfl-hero-avatars {
  display: flex;
  flex-shrink: 0;
}
.swfl-hero-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.swfl-hero-avatars span:first-child { margin-left: 0; }
.swfl-hero-social-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--fg-2);
  margin: 0;
  line-height: 1.4;
}
.swfl-hero-social-text strong {
  color: var(--swfl-slate);
  font-weight: var(--fw-extra);
}

/* ======================================================================
   Editor's Note — sand bg, 2-col (portrait + body)
   ====================================================================== */

.swfl-editor-note {
  background: var(--swfl-sand) !important;
  padding: 80px 28px !important;
}
.swfl-editor-note-in {
  max-width: 1200px !important;
  margin: 0 auto !important;
  grid-template-columns: 0.9fr 1.3fr !important;
  gap: 64px !important;
  align-items: center !important;
}
.swfl-editor-note-portrait-wrap {
  position: relative;
}
.swfl-editor-note-portrait {
  margin: 0 !important;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.swfl-editor-note-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.swfl-editor-note-badge {
  position: absolute;
  bottom: -18px;
  left: 24px;
  background: var(--swfl-amber);
  color: var(--swfl-slate);
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sun);
  margin: 0;
  z-index: 2;
}
.swfl-editor-note-body .swfl-eyebrow { color: var(--swfl-amber-deep); }
.swfl-editor-note-headline {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
  font-size: clamp(28px, 3.5vw, 42px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.015em !important;
  color: var(--swfl-slate) !important;
  margin: 14px 0 22px !important;
  text-wrap: balance;
}
.swfl-editor-note-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--swfl-teal-deep);
}
.swfl-editor-note-body > p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0 0 18px;
  max-width: 58ch;
}
.swfl-editor-note-sig {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--swfl-line);
}
.swfl-editor-note-sig-name {
  font-family: var(--font-display) !important;
  font-style: italic;
  font-size: 22px !important;
  color: var(--swfl-slate) !important;
  margin: 0 !important;
}
.swfl-editor-note-sig-role {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  color: var(--fg-3) !important;
  letter-spacing: 0.04em;
  margin: 4px 0 0 !important;
}

/* ======================================================================
   Latest stories — 3-col magazine grid, lead spans 2x2
   ====================================================================== */

.swfl-latest {
  background: var(--bg-raised) !important;
  padding: 96px 28px 80px !important;
  border-top: 1px solid var(--swfl-line);
}
.swfl-latest-in {
  max-width: 1200px;
  margin: 0 auto;
}
.swfl-latest-grid {
  max-width: 1200px;
  margin: 0 auto;
}
.swfl-latest-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: dense;
  gap: 28px !important;
  padding: 0;
  list-style: none;
  margin: 0;
}
/* Lead card: first child spans 2 cols + 2 rows */
.swfl-latest-grid .wp-block-post-template > *:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.swfl-latest-grid .wp-block-post-template > *:first-child .swfl-story-card-img img {
  aspect-ratio: 16/10;
}
.swfl-latest-grid .wp-block-post-template > *:first-child .swfl-story-card-title {
  font-size: clamp(24px, 2.6vw, 34px);
}

.swfl-story-card {
  background: #fff;
  border: 1px solid var(--swfl-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
}
.swfl-story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.swfl-story-card-img {
  margin: 0;
}
.swfl-story-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}
.swfl-story-card-body {
  padding: 20px 22px 24px !important;
  flex: 1;
  display: flex !important;
  flex-direction: column;
}
.swfl-story-card-series {
  margin: 0 0 8px !important;
  font-family: var(--font-body);
  font-weight: var(--fw-extra);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--swfl-teal-deep);
}
.swfl-story-card-series a { color: inherit; text-decoration: none; }
.swfl-story-card-series a:hover { color: var(--swfl-teal); }
.swfl-story-card-title {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
  font-size: 22px !important;
  line-height: 1.18 !important;
  letter-spacing: -0.01em !important;
  color: var(--swfl-slate) !important;
  margin: 4px 0 10px !important;
  text-wrap: balance;
}
.swfl-story-card-title a { color: inherit; text-decoration: none; }
.swfl-story-card-title a:hover { color: var(--swfl-teal-deep); }
.swfl-story-card-dek {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0 0 18px !important;
  flex: 1;
}
.swfl-story-card-meta {
  gap: 10px !important;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin: 0 !important;
}

/* ======================================================================
   Event Radar — dark slate, 3-col cards with amber date tile
   ====================================================================== */

.swfl-radar {
  padding: 96px 28px !important;
  position: relative;
  overflow: hidden;
}
.swfl-radar::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 193, 7, 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.swfl-radar-in {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.swfl-radar-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}
.swfl-event-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: 24px !important;
  gap: 20px !important;
  align-items: flex-start !important;
  transition: background var(--dur-base) var(--ease-smooth),
              border-color var(--dur-base) var(--ease-smooth),
              transform var(--dur-base) var(--ease-smooth);
}
.swfl-event-card:hover {
  background: rgba(254, 193, 7, 0.08);
  border-color: var(--swfl-amber);
  transform: translateY(-2px);
}
.swfl-event-date {
  flex: 0 0 72px !important;
  background: var(--swfl-amber);
  color: var(--swfl-slate);
  border-radius: var(--r-md);
  text-align: center;
  padding: 12px 0 !important;
  font-family: var(--font-display);
  line-height: 1;
}
.swfl-event-mon {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 6px !important;
  opacity: 0.85;
}
.swfl-event-day {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
  font-size: 32px !important;
  letter-spacing: -0.02em;
  margin: 0 !important;
  line-height: 1;
}
.swfl-event-body {
  flex: 1;
  min-width: 0;
}
.swfl-event-title {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
  font-size: 18px !important;
  line-height: 1.22 !important;
  color: #fff !important;
  margin: 2px 0 6px !important;
  letter-spacing: -0.005em;
}
.swfl-event-venue {
  font-family: var(--font-body);
  font-size: 14px;
  color: #c8c8c8;
  margin: 0 0 8px !important;
}
.swfl-event-time {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--swfl-amber);
  text-transform: uppercase;
  margin: 0 !important;
}

/* ======================================================================
   Mid-page subscribe band — amber gradient, decorative sun + wave
   ====================================================================== */

.swfl-sub-band {
  background: linear-gradient(135deg, #fec107 0%, #ffd75a 100%) !important;
  padding: 88px 28px !important;
  position: relative;
  overflow: hidden;
}
.swfl-sub-band::before {
  /* White sun radial top-right */
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.4) 40%, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}
.swfl-sub-band::after {
  /* Teal wavy ribbon along the bottom — SVG as data URL for simplicity */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0 40 C 200 10, 400 70, 600 40 S 1000 10, 1200 40 L 1200 80 L 0 80 Z' fill='%230fc3ce'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
}
.swfl-sub-band-in {
  max-width: 860px !important;
  margin: 0 auto !important;
  text-align: center;
  position: relative;
  z-index: 1;
}
.swfl-sub-band-in .swfl-eyebrow { justify-content: center; }
.swfl-sub-band-h2 {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
  font-size: clamp(32px, 4.2vw, 52px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.015em !important;
  color: var(--swfl-slate) !important;
  margin: 12px 0 14px !important;
  text-wrap: balance;
}
.swfl-sub-band-h2 em {
  font-style: italic;
  font-weight: 400;
}
.swfl-sub-band-dek {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--swfl-slate-2);
  max-width: 52ch;
  margin: 0 auto 28px;
}
.swfl-sub-band .swfl-beehiiv-embed {
  max-width: 520px;
  margin: 0 auto;
}

/* Wrapper around the Beehiiv subscribe-form iframe in the band. Center
   the iframe and give it more vertical room on narrow screens so a
   stacked email-input + subscribe-button layout (configured in the
   Beehiiv form designer) has space to render without clipping. */
.swfl-band-embed {
  display: flex;
  justify-content: center;
  width: 100%;
}
.swfl-band-embed iframe {
  max-width: 100%;
}
@media (max-width: 720px) {
  .swfl-band-embed iframe {
    height: 460px !important;
  }
}

/* Inline subscribe form on the amber gradient band. Same shape as the
   hero form but inverted colors — slate button with amber text since
   the band's background is already amber. Posts to Beehiiv's hosted
   signup at newsletter.swflspotlight.com. */
.swfl-band-subform {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}
.swfl-band-subform-input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--swfl-slate);
  border-radius: var(--r-md);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--swfl-slate);
  transition: border-color var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth);
}
.swfl-band-subform-input::placeholder { color: var(--fg-4); }
.swfl-band-subform-input:focus {
  border-color: var(--swfl-teal);
  outline: none;
  box-shadow: var(--ring-focus);
}
.swfl-band-subform-btn {
  flex: 0 0 auto;
  padding: 14px 22px;
  border: none;
  border-radius: var(--r-md);
  background: var(--swfl-slate);
  color: var(--swfl-amber);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-smooth),
              color var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth);
}
.swfl-band-subform-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.swfl-sub-band-proof {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--swfl-slate-2);
  margin: 22px 0 0;
}

/* ======================================================================
   Submit callout — dark slate, 2-col (pitch + photo collage)
   ====================================================================== */

.swfl-submit {
  background: linear-gradient(180deg, var(--swfl-slate) 0%, #0a0a0a 100%) !important;
  padding: 104px 28px !important;
  position: relative;
  overflow: hidden;
}
.swfl-submit::before {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 195, 206, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.swfl-submit-in {
  max-width: 1200px !important;
  margin: 0 auto !important;
  grid-template-columns: 1.15fr 1fr !important;
  gap: 72px !important;
  align-items: center !important;
  position: relative;
}
.swfl-submit-h2 {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
  font-size: clamp(32px, 4.4vw, 56px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.02em !important;
  color: #fff !important;
  margin: 14px 0 22px !important;
  text-wrap: balance;
}
.swfl-submit-h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--swfl-amber);
}
.swfl-submit-lede {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: #c8c8c8;
  margin: 0 0 28px;
  max-width: 56ch;
}
.swfl-submit-ctas {
  gap: 22px !important;
  align-items: center !important;
  margin-bottom: 36px !important;
}
.swfl-submit-ghost {
  margin: 0;
}
.swfl-submit-ghost a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--swfl-teal);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 14px;
  transition: text-decoration-color var(--dur-fast) var(--ease-smooth);
}
.swfl-submit-ghost a:hover {
  text-decoration-color: var(--swfl-amber);
}
.swfl-submit-kinds {
  grid-template-columns: 1fr 1fr !important;
  gap: 18px 28px !important;
  padding-top: 28px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 480px;
  margin-top: 8px;
}
.swfl-submit-kind {
  gap: 14px !important;
  align-items: flex-start !important;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: #b8b8b8;
}
.swfl-submit-kind-ico {
  flex: 0 0 36px !important;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(254, 193, 7, 0.12);
  color: var(--swfl-amber);
  border-radius: var(--r-sm);
  font-size: 16px;
  margin: 0 !important;
}
.swfl-submit-kind-text {
  margin: 0 !important;
  color: #b8b8b8;
}
.swfl-submit-kind-text strong {
  color: #fff;
  font-weight: var(--fw-extra);
  font-size: 14px;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 2px;
}

/* Photo collage right column */
.swfl-submit-right {
  position: relative;
  min-height: 440px;
}
.swfl-submit-photo {
  position: absolute;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 6px solid #fff;
  margin: 0;
  overflow: hidden;
}
.swfl-submit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.swfl-submit-photo--1 {
  width: 62%;
  aspect-ratio: 4/5;
  top: 0;
  right: 0;
  transform: rotate(3deg);
  z-index: 2;
}
.swfl-submit-photo--2 {
  width: 54%;
  aspect-ratio: 4/3;
  bottom: 20px;
  left: 0;
  transform: rotate(-4deg);
  z-index: 3;
}
.swfl-submit-photo--3 {
  width: 38%;
  aspect-ratio: 1/1;
  top: 40%;
  right: 48%;
  transform: rotate(-1deg);
  z-index: 1;
  opacity: 0.85;
}
.swfl-submit-stamp {
  position: absolute;
  bottom: -10px;
  right: 20px;
  background: var(--swfl-amber) !important;
  color: var(--swfl-slate) !important;
  padding: 14px 20px !important;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sun);
  z-index: 4;
  transform: rotate(2deg);
  text-align: center;
  font-family: var(--font-display);
}
.swfl-submit-stamp-num {
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  font-weight: var(--fw-bold) !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  color: var(--swfl-slate) !important;
  margin: 0 !important;
}
.swfl-submit-stamp-label {
  font-family: var(--font-body) !important;
  font-size: 10px !important;
  font-weight: var(--fw-extra) !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--swfl-slate) !important;
  margin: 4px 0 0 !important;
}

/* ======================================================================
   Browse by Series — 5-tile grid with accent bar
   ====================================================================== */

.swfl-series-section {
  background: var(--bg-page) !important;
  padding: 88px 28px !important;
  border-top: 1px solid var(--swfl-line);
}
.swfl-series-section-in {
  /* 1600px — wider than the 1200px content rail used elsewhere because
     the 5-card row needs the breathing room. */
  max-width: 1600px;
  margin: 0 auto;
}
/* WP's `is-layout-constrained` (which gets applied to section-in by
   the wp:group block layout) clamps every direct child to
   `--wp--style--global--content-size` (680px in this theme.json), so
   the grid below was forced to 680px no matter how wide section-in
   itself was. Override that for our specific children so they fill
   the section-in's full 1600px. */
.swfl-series-section-in > .swfl-section-head,
.swfl-series-section-in > .swfl-series-grid {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.swfl-series-section .swfl-series-grid {
  /* Explicit responsive breakpoints, 5 -> 4 -> 3 -> 2 -> 1. The
     auto-fit + container-type:inline-size combo WP injects from the
     block layout misbehaves at common desktop widths and stuck the
     grid at 2 columns on 1080p. Explicit columns are deterministic. */
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
@media (max-width: 1100px) {
  .swfl-series-section .swfl-series-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  .swfl-series-section .swfl-series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 720px) {
  .swfl-series-section .swfl-series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
  .swfl-series-section .swfl-series-grid { grid-template-columns: 1fr !important; }
}
.swfl-series-tile {
  background: #fff;
  border: 1px solid var(--swfl-line);
  border-radius: var(--r-lg);
  padding: 24px 24px 22px !important;
  display: flex !important;
  flex-direction: column;
  gap: 10px !important;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-smooth);
}
.swfl-series-tile::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--swfl-line-strong);
  transition: background var(--dur-base) var(--ease-smooth),
              height var(--dur-base) var(--ease-smooth);
}
.swfl-series-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--swfl-line-strong);
}
.swfl-series-tile:hover::before {
  height: 8px;
}
.swfl-series-tile--teal::before  { background: var(--swfl-teal); }
.swfl-series-tile--amber::before { background: var(--swfl-amber); }

.swfl-series-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--swfl-teal-wash);
  color: var(--swfl-teal-deep);
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 !important;
}
.swfl-series-tile--amber .swfl-series-tile-icon {
  background: var(--swfl-amber-wash);
  color: var(--swfl-amber-deep);
}
.swfl-series-tile-name {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
  font-size: 20px !important;
  letter-spacing: -0.01em;
  color: var(--swfl-slate) !important;
  margin: 6px 0 0 !important;
}
.swfl-series-tile-dek {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0 0 6px !important;
}
.swfl-series-tile-arrow {
  margin: 4px 0 0 !important;
}
.swfl-series-tile-arrow a {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--swfl-slate);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 180ms var(--ease-smooth);
}
.swfl-series-tile:hover .swfl-series-tile-arrow a {
  gap: 12px;
}

/* ======================================================================
   Post grid + cards (archive page; home uses .swfl-story-card above)
   ====================================================================== */

.swfl-post-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 0;
  list-style: none;
  margin: 0;
}
.swfl-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--swfl-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
  display: flex;
  flex-direction: column;
}
.swfl-post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.swfl-post-card-img { margin: 0; }
.swfl-post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
}
.swfl-post-card-series {
  padding: 16px 20px 0;
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-extra);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--swfl-teal-deep);
}
.swfl-post-card-series a { color: inherit; text-decoration: none; }
.swfl-post-card-series a:hover { color: var(--swfl-teal); }
.swfl-post-card-title {
  padding: 8px 20px 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--swfl-slate);
}
.swfl-post-card-title a { color: inherit; text-decoration: none; }
.swfl-post-card-title a:hover { color: var(--swfl-teal-deep); }
.swfl-post-card-excerpt {
  padding: 12px 20px 20px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-3);
}

/* ======================================================================
   Archive page
   ====================================================================== */

.swfl-archive-head {
  padding: 80px 32px 40px;
  text-align: center;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--swfl-line);
}
.swfl-archive-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--swfl-slate);
  margin: 0 0 12px;
}
.swfl-archive-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-3);
  max-width: 52ch;
  margin: 0 auto;
}
.swfl-archive-list {
  padding: 48px 32px 40px;
}
.swfl-archive-list .swfl-post-grid {
  max-width: 1120px;
  margin: 0 auto;
}
.swfl-pagination {
  margin-top: 48px;
  gap: 8px;
}
.swfl-pagination a,
.swfl-pagination .page-numbers {
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--swfl-slate);
  text-decoration: none;
  border: 1px solid var(--swfl-line);
  border-radius: var(--r-sm);
}
.swfl-pagination .current {
  background: var(--swfl-slate);
  color: #fff;
  border-color: var(--swfl-slate);
}

/* ======================================================================
   Single post template
   ====================================================================== */

.swfl-main { min-height: 40vh; }

body.single .swfl-main,
body.single .swfl-main > .wp-block-post-content,
body.single .swfl-main > .swfl-sub-band,
body.single .swfl-main + .wp-block-template-part,
body.single .swfl-main + .wp-block-template-part .swfl-site-footer {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

body.single .swfl-main > * + * {
  margin-block-start: 0 !important;
}

body.single .swfl-main > .wp-block-post-content {
  padding-block-end: 0 !important;
  line-height: 0;
}

body.single .swfl-main > .wp-block-post-content > .swfl-article,
body.single .swfl-main > .wp-block-post-content > :last-child {
  line-height: normal;
}

body.single .swfl-main > .wp-block-post-content > .swfl-article {
  margin-block-end: -20px !important;
}

/* ======================================================================
   Beehiiv subscribe pattern (.swfl-subscribe)
   ====================================================================== */

.swfl-subscribe {
  max-width: 680px;
  margin: 56px auto;
  padding: 48px 32px;
  border: 1px solid var(--swfl-amber-soft);
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.swfl-subscribe-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-extra);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--swfl-amber-deep);
  margin: 0 0 12px;
}
.swfl-subscribe-headline {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--swfl-slate);
  margin: 0 0 12px;
  text-wrap: balance;
}
.swfl-subscribe-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--fg-3);
  margin: 0 auto 24px;
  max-width: 42ch;
}
.swfl-beehiiv-embed {
  max-width: 480px;
  margin: 0 auto;
}
.swfl-beehiiv-embed iframe {
  width: 100%;
  display: block;
  border: 0;
}
.swfl-subscribe-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fg-4);
  margin: 20px auto 0;
  max-width: 48ch;
}
.swfl-subscribe-note code {
  background: var(--swfl-amber-soft);
  color: var(--swfl-slate);
  padding: 1px 6px;
  border-radius: var(--r-xs);
  font-size: 11px;
}

/* ======================================================================
   Responsive
   ====================================================================== */

@media (max-width: 1024px) {
  /* Same specificity bump as desktop rule above. */
  .swfl-home-hero .swfl-hero-in,
  .swfl-home-hero .wp-block-cover__inner-container .swfl-hero-in {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .swfl-home-hero .wp-block-cover__inner-container {
    padding: 72px 24px 56px;
  }
  .swfl-editor-note-in {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .swfl-editor-note-portrait {
    max-width: 380px;
  }
  .swfl-latest-grid .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .swfl-latest-grid .wp-block-post-template > *:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
  .swfl-radar-grid {
    grid-template-columns: 1fr !important;
  }
  .swfl-submit-in {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  .swfl-submit-right {
    min-height: 360px;
    max-width: 520px;
  }
  .swfl-footer-cols {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
  }
  .swfl-footer-col--brand {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .swfl-post-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }
  .swfl-archive-head {
    padding: 48px 20px 28px;
  }
}

@media (max-width: 720px) {
  .swfl-site-header .swfl-nav { display: none !important; }
  .swfl-site-header-in {
    gap: 12px;
    /* Mobile: smaller badge → less reserved padding-left. 16px edge +
       84px badge + 12px gap = 112px. */
    padding: 12px 16px 12px 112px;
    min-height: 56px;
  }
  .swfl-site-logo {
    top: 6px !important;
    left: 16px !important;
    width: 84px !important;
    height: 84px !important;
    margin: 0 !important;
  }
  .swfl-site-logo img { height: 64px; }

  .swfl-hero-h1 { font-size: clamp(36px, 9vw, 54px) !important; }
  .swfl-hero-subcard { padding: 26px 22px 22px !important; }

  /* Re-enable wrap on the masthead at narrow widths. Keeping nowrap +
     white-space:nowrap on both children would push the combined chip +
     issue line past the viewport edge and clip the issue text. Allow
     them to stack vertically when there's not enough horizontal room. */
  .swfl-hero-masthead {
    flex-wrap: wrap !important;
  }
  .swfl-hero-issue {
    white-space: normal;
  }

  .swfl-latest-grid .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
  .swfl-latest-grid .wp-block-post-template > *:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .swfl-footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .swfl-footer-col--brand {
    grid-column: span 2;
  }
  .swfl-footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .swfl-submit-kinds {
    grid-template-columns: 1fr !important;
  }
  .swfl-submit-photo--1 { width: 66%; }
  .swfl-submit-photo--2 { width: 58%; }
  .swfl-submit-stamp { right: 10px; padding: 10px 14px; }
  .swfl-submit-stamp-num { font-size: 22px !important; }
}

@media (max-width: 680px) {
  .swfl-subscribe {
    padding: 36px 20px;
    margin: 32px auto;
  }
}
