/* ============================================================
   Stage 2 - Site overhaul CSS
   Covers: skip link, floating glass header, footer, headings,
           TOC, page header, related content, story cards
   ============================================================ */

/* ----------------------------------------------------------
   1. Skip link
   ---------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--accent, #22d3ee);
  color: #070b18;
  padding: 0.6em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  opacity: 0;
  transition: top 0.2s ease, opacity 0.2s ease;
  font-family: var(--font, 'Outfit', sans-serif);
}
.skip-link:focus {
  top: 1rem;
  opacity: 1;
  outline: 2px solid var(--accent, #22d3ee);
  outline-offset: 2px;
}

/* ----------------------------------------------------------
   2. Floating Glass Header
   ---------------------------------------------------------- */

/* Hide old header elements completely */
header.site:not(.glass-header) {
  display: none !important;
}
.cat-nav { display: none !important; }
#mobile-nav { display: none !important; }

/* Glass header bar */
.glass-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  height: 48px;
  z-index: 100;
  border-radius: 24px;
  background: rgba(7, 11, 24, 0.65);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
  will-change: height, top;
}

/* Scroll-compressed state */
.glass-header.is-compact {
  height: 42px;
  top: 6px;
  background: rgba(7, 11, 24, 0.82);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

/* Inner layout */
.glass-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  gap: 12px;
}

/* Brand / logo */
.glass-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.glass-header__brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px rgba(34, 211, 238, 0.25);
  transition: box-shadow 0.2s;
}
.glass-header__brand:hover img {
  box-shadow: 0 0 0 1.5px rgba(34, 211, 238, 0.5);
}
.glass-header__wordmark {
  font-family: 'Space Grotesk', var(--font, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink, #e2e8f0);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Centre nav */
.glass-header__nav {
  display: none;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
@media (min-width: 1024px) {
  .glass-header__nav {
    display: flex;
  }
}
.glass-header__links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  align-items: center;
}
.glass-header__link {
  color: var(--ink-soft, #94a3b8);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35em 0.6em;
  border-radius: 12px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  font-family: var(--font, 'Outfit', sans-serif);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}
.glass-header__link:hover,
.glass-header__link:focus-visible {
  color: var(--ink, #e2e8f0);
  background: rgba(255, 255, 255, 0.07);
}

/* More dropdown */
.glass-header__more {
  position: relative;
}
.glass-header__chevron {
  display: inline-block;
  transition: transform 0.2s;
  vertical-align: middle;
  margin-left: 1px;
}
.glass-header__more[data-open="true"] .glass-header__chevron {
  transform: rotate(180deg);
}
.glass-header__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 20, 40, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 6px;
  min-width: 160px;
  list-style: none;
  z-index: 110;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.glass-header__dropdown .glass-header__link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45em 0.75em;
  border-radius: 10px;
}
.glass-header__dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 8px;
}
.glass-header__more[data-open="true"] .glass-header__dropdown {
  display: block;
}

/* Actions group (search, CTA, hamburger) */
.glass-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Search */
.glass-header__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.glass-header__search-btn {
  background: none;
  border: none;
  color: var(--ink-soft, #94a3b8);
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
}
.glass-header__search-btn:hover,
.glass-header__search-btn:focus-visible {
  color: var(--ink, #e2e8f0);
  background: rgba(255, 255, 255, 0.07);
}
.glass-header__search-bar {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(15, 20, 40, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  align-items: center;
  gap: 8px;
  z-index: 120;
}
.glass-header__search-bar.is-open {
  display: flex;
}
.glass-header__search-icon {
  color: var(--ink-mute, #64748b);
  flex-shrink: 0;
}
.glass-header__search-input {
  background: none;
  border: none;
  color: var(--ink, #e2e8f0);
  font-size: 0.875rem;
  font-family: var(--font, 'Outfit', sans-serif);
  outline: none;
  width: 100%;
}
.glass-header__search-input::placeholder {
  color: var(--ink-mute, #64748b);
}

/* CTA button */
.glass-header__cta {
  display: none;
  padding: 0.35em 1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #070b18;
  background: var(--accent, #22d3ee);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
  font-family: var(--font, 'Outfit', sans-serif);
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.glass-header__cta:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
@media (min-width: 768px) {
  .glass-header__cta {
    display: inline-flex;
  }
}

/* Hamburger */
.glass-header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 120;
  border-radius: 10px;
  transition: background 0.15s;
}
.glass-header__hamburger:hover,
.glass-header__hamburger:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}
@media (min-width: 1024px) {
  .glass-header__hamburger { display: none; }
}
.glass-header__hamburger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-soft, #94a3b8);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.15s;
}
.glass-header__hamburger:hover .glass-header__hamburger-line {
  background: var(--ink, #e2e8f0);
}
/* Animate to X when open */
.glass-header__hamburger[aria-expanded="true"] .glass-header__hamburger-line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.glass-header__hamburger[aria-expanded="true"] .glass-header__hamburger-line:nth-child(2) {
  opacity: 0;
}
.glass-header__hamburger[aria-expanded="true"] .glass-header__hamburger-line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}
/* Hamburger span fallback (bare <span> in template) */
.glass-header__hamburger > span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-soft, #94a3b8);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.15s;
}
.glass-header__hamburger:hover > span {
  background: var(--ink, #e2e8f0);
}
.glass-header__hamburger[aria-expanded="true"] > span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.glass-header__hamburger[aria-expanded="true"] > span:nth-child(2) {
  opacity: 0;
}
.glass-header__hamburger[aria-expanded="true"] > span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}


/* Body padding to clear the floating header */
body {
  padding-top: 72px;
}

/* ----------------------------------------------------------
   3. Mobile fullscreen overlay
   ---------------------------------------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(7, 11, 24, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

/* Body scroll lock */
body.nav-open {
  overflow: hidden;
}
/* Mobile overlay panel and backdrop (Stage 6 redesign) */
.mobile-overlay__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.mobile-overlay__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 env(safe-area-inset-bottom, 0);
}
.mobile-overlay__section {
  padding: 0 20px;
  margin-bottom: 8px;
}
.mobile-overlay__label {
  display: block;
  font-family: "Space Grotesk", var(--font, "Outfit", sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute, #64748b);
  margin-bottom: 10px;
}
.mobile-overlay__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mobile-overlay__topic-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: "Space Grotesk", var(--font, "Outfit", sans-serif);
  color: var(--ink, #e2e8f0);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.mobile-overlay__topic-chip:hover,
.mobile-overlay__topic-chip:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--accent, #22d3ee);
}
.mobile-overlay__footer {
  padding: 16px 20px 24px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mobile-overlay__link--home {
  margin: 0 20px 4px;
}


/* Overlay header */
.mobile-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-shrink: 0;
}
.mobile-overlay__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink, #e2e8f0);
  font-family: 'Space Grotesk', var(--font, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.9375rem;
}
.mobile-overlay__brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.mobile-overlay__close {
  background: none;
  border: none;
  color: var(--ink-soft, #94a3b8);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: color 0.15s, background 0.15s;
}
.mobile-overlay__close:hover,
.mobile-overlay__close:focus-visible {
  color: var(--ink, #e2e8f0);
  background: rgba(255, 255, 255, 0.06);
}

/* Overlay body */
.mobile-overlay__body {
  padding: 8px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* Mobile search */
.mobile-overlay__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: var(--ink-mute, #64748b);
}
.mobile-overlay__search-input {
  background: none;
  border: none;
  color: var(--ink, #e2e8f0);
  font-size: 1rem;
  font-family: var(--font, 'Outfit', sans-serif);
  outline: none;
  width: 100%;
}
.mobile-overlay__search-input::placeholder {
  color: var(--ink-mute, #64748b);
}

/* Mobile nav links */
.mobile-overlay .mobile-overlay__nav {
  align-items: flex-start !important;
  display: flex !important;
  flex-direction: column;
  gap: 2px;
}
.mobile-overlay .mobile-overlay__pages {
  align-items: flex-start !important;
  display: flex !important;
  flex-direction: column;
  gap: 2px;
}
.mobile-overlay .mobile-overlay__link {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 8px;
  color: var(--ink, #e2e8f0);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  font-family: 'Space Grotesk', var(--font, 'Outfit', sans-serif);
  border-radius: 12px;
  transition: color 0.15s, background 0.15s;
}
.mobile-overlay__link:hover,
.mobile-overlay__link:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent, #22d3ee);
}
.mobile-overlay__link--subtle {
  color: var(--ink-soft, #94a3b8);
  font-size: 1rem;
  font-family: var(--font, 'Outfit', sans-serif);
  font-weight: 400;
}

/* Divider */
.mobile-overlay__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile CTA */
.mobile-overlay__cta {
  display: block;
  text-align: center;
  font-size: 1rem;
  padding: 0.85em 1.5em;
}

/* Mobile social */
.mobile-overlay__social {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-top: 8px;
}
.mobile-overlay__social a {
  color: var(--ink-mute, #64748b);
  transition: color 0.2s;
  display: flex;
}
.mobile-overlay__social a:hover,
.mobile-overlay__social a:focus-visible {
  color: var(--accent, #22d3ee);
}
.mobile-overlay__social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}


/* Mobile overlay section links */
.mobile-overlay__section .mobile-overlay__link {
  display: block;
  padding: 10px 0;
  color: var(--ink, #e2e8f0);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  font-family: "Space Grotesk", var(--font, "Outfit", sans-serif);
  transition: color 0.15s;
}
.mobile-overlay__section .mobile-overlay__link:hover,
.mobile-overlay__section .mobile-overlay__link:focus-visible {
  color: var(--accent, #22d3ee);
}
.mobile-overlay__footer .mobile-overlay__cta {
  display: block;
  width: 100%;
  max-width: 280px;
  text-align: center;
  background: var(--accent, #22d3ee);
  color: #070b18;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  transition: opacity 0.15s;
}
.mobile-overlay__footer .mobile-overlay__cta:hover {
  opacity: 0.9;
}
.mobile-overlay__footer .mobile-overlay__social {
  display: flex;
  gap: 16px;
}
.mobile-overlay__footer .mobile-overlay__social a {
  color: var(--ink-mute, #64748b);
  transition: color 0.2s;
  display: flex;
}
.mobile-overlay__footer .mobile-overlay__social a:hover {
  color: var(--accent, #22d3ee);
}
.mobile-overlay__footer .mobile-overlay__social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
/* Mobile overlay title in header */
.mobile-overlay__title {
  font-family: "Space Grotesk", var(--font, "Outfit", sans-serif);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink, #e2e8f0);
}
/* Hide old mobile panel and backdrop */
.mobile-panel { display: none !important; }
.mobile-backdrop { display: none !important; }

/* ----------------------------------------------------------
   OLD SECTIONS PRESERVED: Desktop nav overrides (hide old)
   ---------------------------------------------------------- */
.nav-list { display: none !important; }
.nav-cta { display: none !important; }
.search-wrap:not(.glass-header__search-wrap) { display: none !important; }
.hamburger:not(.glass-header__hamburger) { display: none !important; }

/* ----------------------------------------------------------
   5. Footer fixes
   ---------------------------------------------------------- */
/* Full width - remove any inset/margin that causes black bars */
.site-footer {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg, #070b18);
  border-top: 1px solid var(--hairline, rgba(255,255,255,0.08));
}
footer.site-footer {
  padding-bottom: 0;
}
/* Override old ft-footer if it exists */
.ft-footer { margin: 0 !important; padding: 0 !important; width: 100% !important; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
@media (min-width: 680px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
}
.footer-section h4 {
  font-family: 'Space Grotesk', var(--font, 'Outfit', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink, #e2e8f0);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-section p {
  color: var(--ink-mute, #64748b);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.footer-section a {
  display: block;
  color: var(--ink-soft, #94a3b8);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25em 0;
  transition: color 0.15s;
}
.footer-section a:hover,
.footer-section a:focus-visible {
  color: var(--accent, #22d3ee);
}
/* Footer social icons */
.footer-social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.footer-social-row a {
  display: flex;
  padding: 0;
  color: var(--ink-mute, #64748b);
  transition: color 0.2s;
}
.footer-social-row a:hover,
.footer-social-row a:focus-visible {
  color: var(--accent, #22d3ee);
}
.footer-social-row svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
/* Footer newsletter CTA button - high contrast */
.footer-nl-btn {
  display: inline-block !important;
  background: var(--accent, #22d3ee) !important;
  color: #070b18 !important;
  padding: 0.65em 1.5em !important;
  border-radius: var(--radius-md, 8px) !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  text-align: center;
  transition: opacity 0.15s;
  font-family: var(--font, 'Outfit', sans-serif);
}
.footer-nl-btn:hover {
  opacity: 0.9;
}
/* Footer bottom - copyright */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--hairline, rgba(255,255,255,0.08));
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  margin: 0;
  color: var(--ink-mute, #64748b);
  font-size: 0.8125rem;
  white-space: normal;
  overflow-wrap: break-word;
}
.footer-cookie-link {
  color: var(--ink-mute, #64748b);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.15s;
}
.footer-cookie-link:hover {
  color: var(--ink-soft, #94a3b8);
}
/* Hide the old duplicate footer newsletter */
.ft-footer-nl { display: none !important; }

/* ----------------------------------------------------------
   6. Heading anchors - copy-link icon, no '#' glyph
   ---------------------------------------------------------- */
/* scroll-margin for floating header */
h2[id], h3[id], h4[id] {
  scroll-margin-top: 6rem;
}
/* Hide old '#' anchor text from reader-experience.js */
.heading-anchor-text {
  display: none !important;
}
/* Copy-link button for headings */
.heading-copy-link {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 0.4em;
  background: none;
  border: none;
  color: var(--ink-faint, #475569);
  cursor: pointer;
  border-radius: var(--radius-md, 8px);
  transition: color 0.15s, background 0.15s;
  vertical-align: middle;
  padding: 0;
  flex-shrink: 0;
}
.heading-copy-link svg {
  width: 16px;
  height: 16px;
}
.heading-copy-link:hover,
.heading-copy-link:focus-visible {
  color: var(--accent, #22d3ee);
  background: rgba(255,255,255,0.06);
}
/* Show on hover/focus on desktop only */
@media (min-width: 1024px) {
  h2:hover .heading-copy-link,
  h3:hover .heading-copy-link,
  h2:focus-within .heading-copy-link,
  h3:focus-within .heading-copy-link {
    display: inline-flex;
  }
}
/* Tooltip for "Copied!" */
.heading-copy-link[data-copied="true"]::after {
  content: 'Copied!';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent, #22d3ee);
  color: #070b18;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25em 0.6em;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}
.heading-copy-link {
  position: relative;
}

/* ----------------------------------------------------------
   7. Table of contents fixes
   ---------------------------------------------------------- */
.ft-toc__label {
  font-size: 0.6875rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ft-toc[data-collapsed="true"] {
  cursor: pointer;
}
.ft-toc[data-collapsed="true"] .ft-toc__toggle {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md, 8px);
  padding: 0.6em 1em;
}

/* ----------------------------------------------------------
   8. Page header component
   ---------------------------------------------------------- */
.page-header {
  padding: 3rem 0 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.page-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent, #22d3ee);
  margin: 0 0 0.75rem;
  font-family: var(--font, 'Outfit', sans-serif);
}
.page-header__title {
  font-family: 'Space Grotesk', var(--font, 'Outfit', sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink, #e2e8f0);
  margin: 0;
  line-height: 1.15;
}

/* ----------------------------------------------------------
   9. Related content cleanup
   ---------------------------------------------------------- */
.related-card {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md, 8px);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline, rgba(255,255,255,0.06));
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
}
.related-card:hover {
  border-color: var(--accent, #22d3ee);
  background: rgba(255,255,255,0.04);
}
.related-card__link {
  color: var(--ink, #e2e8f0);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  font-family: 'Space Grotesk', var(--font, 'Outfit', sans-serif);
}
.related-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.related-card__link:hover {
  color: var(--accent, #22d3ee);
}
.related-card__chip {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #22d3ee);
  margin-bottom: 0.25rem;
}
.related-card__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md, 8px);
  object-fit: cover;
  flex-shrink: 0;
}
/* Newsletter CTA for non-article pages */
.related-nl-cta {
  max-width: 720px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--hairline, rgba(255,255,255,0.08));
  border-radius: var(--radius-lg, 16px);
  background: rgba(255,255,255,0.02);
}
.related-nl-cta h3 {
  font-family: 'Space Grotesk', var(--font, 'Outfit', sans-serif);
  color: var(--ink, #e2e8f0);
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.related-nl-cta p {
  color: var(--ink-mute, #64748b);
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}

/* ----------------------------------------------------------
   10. Story cards - unified card with accent bar
   ---------------------------------------------------------- */
.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline, rgba(255,255,255,0.06));
  transition: border-color 0.2s, transform 0.15s;
}
.story-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.story-card__accent {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
}
.story-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.story-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.story-card__chip {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-family: var(--font, 'Outfit', sans-serif);
}
.story-card__title {
  font-family: 'Space Grotesk', var(--font, 'Outfit', sans-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink, #e2e8f0);
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
.story-card__title a {
  color: inherit;
  text-decoration: none;
}
.story-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.story-card__meta {
  font-size: 0.8125rem;
  color: var(--ink-mute, #64748b);
  margin-top: auto;
}
/* Story card grid */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .story-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ----------------------------------------------------------
   11. Restyle existing category-page cards (.card / #story-cards)
   ---------------------------------------------------------- */
#story-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
}
@media (min-width: 640px) {
  #story-cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  #story-cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.cards .card,
#story-cards .card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline, rgba(255,255,255,0.06));
  transition: border-color 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
}
.cards .card:hover,
#story-cards .card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}
.cards .card .card__media:empty,
#story-cards .card .card__media:empty {
  height: 3px;
  width: 100%;
  background: var(--cat-accent, var(--accent, #22d3ee));
}
.cards .card .card__body,
#story-cards .card .card__body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cards .card .card__title,
#story-cards .card .card__title {
  font-family: 'Space Grotesk', var(--font, 'Outfit', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink, #e2e8f0);
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
.cards .card .card__desc:empty,
#story-cards .card .card__desc:empty {
  display: none;
}
.cards .card .card__meta,
#story-cards .card .card__meta {
  font-size: 0.8125rem;
  color: var(--ink-mute, #64748b);
  margin-top: auto;
}
/* Category accent colours for accent bars */
[data-cat-accent="ai"]        { --cat-accent: #22d3ee; }
[data-cat-accent="security"]  { --cat-accent: #f87171; }
[data-cat-accent="computing"] { --cat-accent: #a78bfa; }
[data-cat-accent="gadgets"]   { --cat-accent: #fbbf24; }
[data-cat-accent="space"]     { --cat-accent: #60a5fa; }
[data-cat-accent="evs"]       { --cat-accent: #34d399; }
[data-cat-accent="startups"]  { --cat-accent: #fb923c; }
[data-cat-accent="gaming"]    { --cat-accent: #e879f9; }
[data-cat-accent="apps"]      { --cat-accent: #2dd4bf; }
[data-cat-accent="science"]   { --cat-accent: #818cf8; }
[data-cat-accent="mobile"]    { --cat-accent: #38bdf8; }
[data-cat-accent="social-media"] { --cat-accent: #f472b6; }
[data-cat-accent="streaming"] { --cat-accent: #c084fc; }
[data-cat-accent="crypto"]    { --cat-accent: #facc15; }

/* ----------------------------------------------------------
   12. Spacing tightness and dead-space fixes
   ---------------------------------------------------------- */
.site-footer { margin-bottom: 0; padding-bottom: 0; }
.footer-bottom { padding-bottom: 1rem; }
.page-header { padding: 2rem 0 1.25rem; }
.related-nl-cta { margin: 1.5rem auto; }
.eng-wrapper { margin-top: 1.5rem; }
.eng-read-next { padding-top: 0; }
.pillar-hero { padding-bottom: 1.5rem; }
.pillar-articles { padding-top: 0; }
html, body { margin-bottom: 0; padding-bottom: 0; }
body > *:last-child { margin-bottom: 0; padding-bottom: 0; }
article { margin-bottom: 0; }
article + .eng-wrapper { margin-top: 2rem; }
.ft-newsletter { padding: 2rem 0; }
.eng-card-grid { gap: 0.75rem; }
@media (min-width: 640px) {
  .eng-card-grid { gap: 1rem; }
}
.eng-card {
  border-radius: var(--radius-md, 8px);
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline, rgba(255,255,255,0.06));
  transition: border-color 0.2s;
}
.eng-card:hover {
  border-color: rgba(255,255,255,0.14);
}


/* ═══════════════════════════════════════════════
   STAGE 3: Broken Pages Fixes
   ═══════════════════════════════════════════════ */

/* --- Contact form --- */
.s3-contact-form { max-width: 560px; }
.s3-form-group { margin-bottom: 20px; }
.s3-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #e8ecf6);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
form .s3-input, .s3-nl-form .s3-input {
  display: block;
  width: 100%;
  background: #0a0f1f;
  border: 1px solid var(--line, #1e2a4a);
  color: var(--text, #e8ecf6);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  transition: border-color .15s, box-shadow .15s;
  min-height: 48px;
  box-sizing: border-box;
}
.s3-input:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.s3-input--invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,.1);
}
.s3-input--valid {
  border-color: #22d3ee;
}
.s3-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2393a0bd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.s3-textarea {
  resize: vertical;
  min-height: 160px;
}
.s3-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22d3ee;
  color: #070b18;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: background .15s, transform .1s;
  min-height: 48px;
}
.s3-submit:hover { background: #06b6d4; }
.s3-submit:active { transform: scale(0.98); }
.s3-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.s3-form-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  margin: 20px 0;
  max-width: 560px;
}
.s3-form-status svg { flex-shrink: 0; margin-top: 2px; }
.s3-form-status--success {
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.25);
  color: var(--text, #e8ecf6);
}
.s3-form-status--error {
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.25);
  color: var(--text, #e8ecf6);
}

/* --- Newsletter signup --- */
.s3-nl-signup {
  max-width: 560px;
  margin: 32px 0;
}
.s3-nl-heading {
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.s3-nl-sub {
  color: var(--muted, #93a0bd);
  font-size: 15px;
  margin: 4px 0 24px;
}
.s3-nl-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.s3-nl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0a0f1f;
  border: 1px solid var(--line, #1e2a4a);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  min-height: 48px;
}
.s3-nl-card:hover {
  border-color: rgba(34,211,238,.3);
  background: rgba(34,211,238,.03);
}
.s3-nl-card--selected {
  border-color: rgba(34,211,238,.4);
  background: rgba(34,211,238,.05);
}
.s3-nl-card .s3-nl-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.s3-nl-card__check { flex-shrink: 0; }
.s3-nl-card__body { flex: 1; min-width: 0; }
.s3-nl-card__name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text, #e8ecf6);
  margin-bottom: 2px;
}
.s3-nl-card__desc {
  display: block;
  font-size: 13.5px;
  color: var(--muted, #93a0bd);
  line-height: 1.4;
}
.s3-nl-pill {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #22d3ee;
  background: rgba(34,211,238,.1);
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.s3-nl-form { margin: 0; }
.s3-nl-field-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.s3-nl-email { flex: 1; min-width: 200px; }
.s3-nl-btn { white-space: nowrap; }
.s3-nl-trust {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted, #93a0bd);
  margin: 14px 0 0;
}
.s3-nl-magnet {
  max-width: 560px;
  background: rgba(34,211,238,.06);
  border: 1px solid rgba(34,211,238,.18);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  text-align: center;
}
.s3-nl-magnet__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #22d3ee;
  margin: 0 0 8px;
}
.s3-nl-magnet__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #e8ecf6);
  margin: 0 0 6px;
}
.s3-nl-magnet__desc {
  font-size: 14px;
  color: var(--muted, #93a0bd);
  margin: 0;
}

/* --- Cookie policy table --- */
.s3-cookie-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
}
.s3-cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #c5c5d2;
}
.s3-cookie-table th {
  text-align: left;
  padding: 12px 14px;
  color: #e8ecf6;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  border-bottom: 2px solid #22d3ee;
  white-space: nowrap;
}
.s3-cookie-table td {
  padding: 14px;
  border-bottom: 1px solid #1e2a4a;
  vertical-align: top;
  line-height: 1.5;
}
.s3-cookie-table td strong {
  color: var(--text, #e8ecf6);
  display: block;
  margin-bottom: 2px;
}
@media (max-width: 640px) {
  .s3-cookie-table-wrap { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .s3-cookie-table { min-width: 480px; }
  .s3-cookie-table td { word-break: normal; overflow-wrap: normal; }
}

/* --- Homepage hero fixes --- */
.ft-featured__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em;
  line-height: 1.5;
}
.ft-featured__bg {
  position: relative;
}
.ft-featured__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,11,24,.95) 0%, rgba(7,11,24,.7) 40%, rgba(7,11,24,.2) 100%);
  pointer-events: none;
  z-index: 1;
}
.ft-featured__inner {
  position: relative;
  z-index: 2;
}
.ft-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stage 3 specificity overrides */
.s3-contact-form .s3-input,
.s3-contact-form .s3-select,
.s3-contact-form .s3-textarea,
.s3-nl-form .s3-input,
.s3-nl-signup .s3-input {
  background: #0a0f1f !important;
  color: #e8ecf6 !important;
  border: 1px solid #1e2a4a !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-family: 'Outfit', sans-serif !important;
  padding: 14px 16px !important;
  min-height: 48px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}
.s3-contact-form .s3-input:focus,
.s3-nl-form .s3-input:focus {
  border-color: #22d3ee !important;
  box-shadow: 0 0 0 3px rgba(34,211,238,.15) !important;
  outline: none !important;
}
.s3-contact-form .s3-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2393a0bd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  cursor: pointer !important;
}
.s3-contact-form .s3-textarea {
  resize: vertical !important;
  min-height: 160px !important;
}
.s3-contact-form .s3-submit,
.s3-nl-form .s3-submit {
  background: #22d3ee !important;
  color: #070b18 !important;
  border: none !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  padding: 14px 32px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  min-height: 48px !important;
}
.s3-contact-form .s3-label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #e8ecf6 !important;
  margin-bottom: 6px !important;
}
.s3-contact-form .s3-form-group {
  margin-bottom: 20px !important;
}

/* --- Stage 3: Subscribe-to-all toggle --- */
.s3-nl-select-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: rgba(34,211,238,.04);
  border: 1px solid rgba(34,211,238,.15);
  border-radius: 10px;
}
.s3-nl-select-all__btn {
  background: transparent;
  border: 1px solid rgba(34,211,238,.3);
  color: #22d3ee;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-family: 'Space Grotesk', sans-serif;
}
.s3-nl-select-all__btn:hover {
  background: rgba(34,211,238,.08);
  border-color: rgba(34,211,238,.5);
}
.s3-nl-select-all__btn--active {
  background: rgba(34,211,238,.1);
  border-color: rgba(34,211,238,.4);
}
.s3-nl-select-all__badge {
  font-size: 12.5px;
  color: var(--muted, #93a0bd);
  font-weight: 500;
  white-space: nowrap;
}
/* ─── Newsletter card grid fix ─── */

/* Widen the newsletter signup container on desktop */
.s3-nl-signup {
  max-width: 720px;
}

/* Card grid: single column on mobile, 2-col + centred last on desktop */
.s3-nl-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .s3-nl-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Centre the 5th (last) card when it's alone in its row */
  .s3-nl-cards .s3-nl-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
}

/* Make every card the same height and use internal flex for alignment */
.s3-nl-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #0a0f1f;
  border: 1px solid var(--line, #1e2a4a);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  min-height: 88px;
  box-sizing: border-box;
  /* equal height via grid stretch (default) */
}

/* Internal layout: checkbox left, body centre, pill right */
.s3-nl-card__check {
  flex-shrink: 0;
  margin-top: 2px;
}

.s3-nl-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s3-nl-card__name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text, #e8ecf6);
  margin-bottom: 2px;
  line-height: 1.3;
}

.s3-nl-card__desc {
  display: block;
  font-size: 13.5px;
  color: var(--muted, #93a0bd);
  line-height: 1.4;
}

.s3-nl-pill {
  flex-shrink: 0;
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: #22d3ee;
  background: rgba(34,211,238,.1);
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

/* Subscribe-to-all bar: match the wider container */
.s3-nl-select-all {
  max-width: 100%;
}

/* Form field row: match wider container */
.s3-nl-field-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Lead magnet box: match wider container */
.s3-nl-magnet {
  max-width: 720px;
}

/* Mobile: keep single column, full-width cards */
@media (max-width: 639px) {
  .s3-nl-signup {
    max-width: 100%;
  }
  .s3-nl-cards {
    grid-template-columns: 1fr;
  }
  .s3-nl-card {
    min-height: auto;
  }
  .s3-nl-magnet {
    max-width: 100%;
  }
}

/* Share row - Stage 4 */
.share-row{margin-top:22px;padding-top:16px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.share-row .share-btn-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.share-row .share-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:transparent!important;color:var(--muted);font-size:13px;font-family:inherit;cursor:pointer;text-decoration:none;transition:color .15s,border-color .15s,background .15s;line-height:1}
.share-row .share-btn:hover{color:var(--fg);border-color:var(--fg);background:rgba(255,255,255,.04)!important}
.share-row .share-btn svg{flex-shrink:0}
.share-row .share-btn--native{display:none}
.share-row .share-btn--copy .share-btn__label{min-width:58px;text-align:left}
@media(max-width:600px){.share-row .share-btn-group{display:none}.share-row .share-btn--native{display:inline-flex!important}}

/* === Nav fix: hero text larger and more impactful === */
.ft-featured__inner {
  padding: 32px 24px 32px;
}
.ft-featured__title {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ft-featured__desc {
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  max-width: 38em;
}
@media (min-width: 480px) {
  .ft-featured__inner { padding: 36px 32px; }
  .ft-featured__title { font-size: 34px; }
  .ft-featured__desc { font-size: 16px; }
}
@media (min-width: 680px) {
  .ft-featured__inner { padding: 40px 44px; }
  .ft-featured__title { font-size: 40px; }
  .ft-featured__desc { font-size: 16.5px; }
}
@media (min-width: 1100px) {
  .ft-featured__inner { padding: 48px 56px; }
  .ft-featured__title { font-size: 48px; }
  .ft-featured__desc { font-size: 17px; }
}
@media (min-width: 1600px) {
  .ft-featured__title { font-size: 54px; }
}

/* === Compact footer === */
.site-footer {
  padding: 28px 20px 16px;
}
.footer-grid {
  gap: 20px;
}
.footer-section h4 {
  margin-bottom: 8px;
  font-size: 11px;
}
.footer-section a {
  padding: 2px 0;
  font-size: 13px;
  line-height: 1.6;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 10px;
}
.footer-nl-btn {
  padding: 8px 18px;
  font-size: 13px;
}
.footer-bottom {
  margin-top: 16px;
  padding-top: 12px;
  font-size: 12px;
}
@media (max-width: 679px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .footer-section--brand {
    grid-column: 1 / -1;
  }
  .footer-section a {
    font-size: 12.5px;
    line-height: 1.5;
    padding: 1px 0;
  }
  .site-footer {
    padding: 20px 16px 12px;
  }
}

/* === Tighter newsletter CTA === */
.ft-newsletter {
  margin: 0 0 20px;
  padding: 20px 20px;
}
.ft-newsletter__title {
  font-size: 17px;
}
.ft-newsletter__desc {
  margin: 4px 0 12px;
  font-size: 13px;
}
@media (min-width: 680px) {
  .ft-newsletter {
    padding: 24px 28px;
    margin: 0 0 24px;
  }
}

/* === Tighter section spacing on mobile === */
@media (max-width: 679px) {
  .ft-secondary { margin: 0 0 16px; }
  .ft-trending { margin: 0 0 16px; }
  .ft-latest { margin: 0; }
  .home > * + * { margin-top: 0; }
}

/* === Inline newsletter CTA in footer area - tighter === */
.s3-nl-signup,
.newsletter-inline-cta {
  padding: 16px !important;
  margin: 12px 0 !important;
}
