/* Hallmark redesign · v2.0.0 · depth: polish + structure (9 sections, hero one screen) · homepage only (body.homepage-v3) · layout and look kept
   critique: fixes only what the audit named: tracked-caps labels, glued arrows, focus ring, tiny text, label contrast on photos, section head scale, overflow
   waive 71: the category label sits tight on its card title by design; they read as one unit
   dropped #work-with-me intro link and the hero "Work with me" button · 58, three ways to the same page; nav button and the section remain
   dropped the Start here and Destinations card sections · 59 and 58; every link kept in the country row and the guides heading link
   dropped the "2,000 people" line in Free resources · 69, the figure stays in the About section
   Loaded last so it wins over the earlier theme layers without touching them. */

:root {
  --hp-focus-inner: #fbfaf7;
  --hp-focus-outer: #0f2340;
  --hp-pill-ground: rgba(15, 23, 42, 0.78);
  --hp-pill-ink: #fbfaf7;
  --hp-section-head: clamp(2.25rem, 2.4vw + 1.2rem, 3.25rem);
}

/* Floor 34: no sideways scroll on small phones (this file loads on the homepage only) */
html,
body { overflow-x: clip; }

/* Floor 6: a visible focus ring; navy on light surfaces, white on photos and navy bands */
html body.homepage-v3 a:focus-visible,
html body.homepage-v3 button:focus-visible {
  outline: 3px solid var(--hp-focus-outer) !important;
  outline-offset: 3px !important;
  transition: none !important;
}
html body.homepage-v3 .home-hero-overlay a:focus-visible,
html body.homepage-v3 #header a:focus-visible,
html body.homepage-v3 #header button:focus-visible,
html body.homepage-v3 .home-club a:focus-visible,
html body.homepage-v3 .home-checklist a:focus-visible,
html body.homepage-v3 .publication-footer a:focus-visible,
html body.homepage-v3 .site-social-links a:focus-visible { outline-color: var(--hp-focus-inner) !important; }

/* Gate 26b: a pressed state on buttons */
html body.homepage-v3 .home-button:active,
html body.homepage-v3 .home-solid-button:active,
html body.homepage-v3 .club-btn:active,
html body.homepage-v3 .wwm-kit:active,
html body.homepage-v3 .publication-partnership:active { transform: scale(0.98); }

/* Floor 9 / gate 67: labels in sentence case, untracked, a step smaller than body */
html body.publication-page.homepage-v3 .home-card-label,
html body.publication-page.homepage-v3 .publication-nav a,
html body.publication-page.homepage-v3 .publication-menu-toggle,
html body.publication-page.homepage-v3 .publication-partnership,
html body.publication-page.homepage-v3 .home-country-links a,
html body.publication-page.homepage-v3 .home-heading-link,
html body.publication-page.homepage-v3 .home-text-link,
html body.publication-page.homepage-v3 .site-social-links a,
html body.publication-page.homepage-v3 .publication-footer a {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html body.publication-page.homepage-v3 .home-card-label { font-size: 0.875rem !important; }
html body.publication-page.homepage-v3 .publication-nav a { font-size: 0.95rem !important; }

/* Floor 10: no arrows glued to link text */
html body.homepage-v3 .rx-tile strong::after,
html body.homepage-v3 .impact-shortcuts a::after { content: none !important; }

/* Gate 75: nothing under 12px */
html body.publication-page.homepage-v3 #header .publication-brand small { font-size: 0.75rem !important; }
html body.publication-page.homepage-v3 .publication-partnership { font-size: 0.875rem !important; }
html body.publication-page.homepage-v3 .rx-tile em { font-size: 0.75rem !important; }
html body.publication-page.homepage-v3 .publication-footer-brand span,
html body.publication-page.homepage-v3 .publication-footer-brand small { font-size: 0.75rem !important; }
html body.publication-page.homepage-v3 .site-social-links a { font-size: 0.8125rem !important; }

/* Gate 40: the tags on the photo tiles get their own ground */
html body.publication-page.homepage-v3 .rx-tile em {
  background: var(--hp-pill-ground) !important;
  color: var(--hp-pill-ink) !important;
  backdrop-filter: none !important;
}

/* Gate 38iii: the heading is one colour */
html body.publication-page.homepage-v3 .rx-home-head h2 span { color: inherit !important; }

/* Gate 78: section heads at section size under the hero */
html body.publication-page.homepage-v3 .home-section:not(.home-about) h2,
html body.publication-page.homepage-v3 .rx-home-head h2,
html body.publication-page.homepage-v3 .home-club h2,
html body.publication-page.homepage-v3 .home-checklist h2,
html body.publication-page.homepage-v3 .wwm-head h2 {
  font-size: var(--hp-section-head) !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  html body.homepage-v3 .home-button:active,
  html body.homepage-v3 .home-solid-button:active,
  html body.homepage-v3 .club-btn:active,
  html body.homepage-v3 .wwm-kit:active,
  html body.homepage-v3 .publication-partnership:active { transform: none; }
}

/* Gate 44: the hero is exactly one screen at every width */
@media (min-width: 621px) {
  html body.publication-page.homepage-v3 .home-hero-photo {
    height: clamp(560px, 100svh, 1000px) !important;
  }
}
/* On phones the whole photo shows uncropped, as before */

/* Gate 59: room between sections */
html body.publication-page.homepage-v3 .rx-home { padding-top: clamp(4.5rem, 8vw, 7.5rem) !important; }

/* The heading rows now hold the heading directly */
html body.publication-page.homepage-v3 .home-heading-row { align-items: baseline; gap: 1.5rem; }
html body.publication-page.homepage-v3 .home-heading-row h2 { margin: 0 !important; }

/* The country row under the stories */
html body.publication-page.homepage-v3 .home-featured .home-country-links { margin-top: 2.5rem; }

/* Gates 58 and 59: the About section gets a full screen of its own */
html body.publication-page.homepage-v3 .home-about { padding-block: clamp(5rem, 10vw, 9rem) !important; }
