/* ==============================================================
   VISIT MAPUTALAND — SITEWIDE TYPOGRAPHY / COLLISION FIX
   Applied 21 Aug 2026

   This file deliberately overrides the older display rules rather
   than changing page copy or layouts. It fixes:
   - display type with line-height below the glyph box
   - overly tight negative tracking on long headings
   - headings touching / covering the following body copy
   - long member / operator names overflowing their panels
   - fixed header covering breadcrumbs on inner pages
   - long homepage hero copy colliding with hero metadata
   - mobile horizontal overflow caused by large display type
   ============================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

/* Better shaping and predictable wrapping everywhere. */
h1, h2, h3, h4,
.member-art-inner strong,
.profile-fact strong,
.member-fact strong,
.route-metrics strong,
.node-copy strong,
.spine-branch strong {
  font-kerning: normal;
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

p, li, dd, dt, td, th, a, span, small, strong {
  overflow-wrap: break-word;
  word-break: normal;
}

/* The fixed nav is 82px high. Inner-page breadcrumbs now begin
   below it rather than underneath it. */
.breadcrumbs,
.profile-breadcrumb {
  margin-top: 82px;
}

/* ----------------------------------------------------------------
   GLOBAL DISPLAY RHYTHM
   ---------------------------------------------------------------- */
h1 {
  line-height: 1.00 !important;
  letter-spacing: -0.022em !important;
}

h2 {
  line-height: 1.035 !important;
  letter-spacing: -0.018em !important;
}

h3 {
  line-height: 1.08 !important;
  letter-spacing: -0.010em !important;
}

h4 {
  line-height: 1.12 !important;
}

/* Never let a display heading visually sit on top of the paragraph
   that follows it, even where legacy CSS zeroed the paragraph margin. */
h1 + p,
h2 + p,
h3 + p,
h4 + p {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------
   HOMEPAGE HERO — rewritten copy is substantially longer than the
   original slogan-only hero, so it needs real vertical flow.
   ---------------------------------------------------------------- */
.hero {
  display: flex;
  align-items: flex-end;
  min-height: max(100svh, 900px);
  padding: 132px max(42px, 6vw) 94px;
}

.hero-copy {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 3;
  width: min(980px, 100%);
  max-width: 980px;
  padding-bottom: 42px;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0 0 28px !important;
  font-size: clamp(70px, 8.5vw, 132px) !important;
  line-height: .98 !important;
  letter-spacing: -0.024em !important;
}

.copywriter-hero-paragraph {
  max-width: 800px;
  margin: 0 0 15px;
  font-family: var(--body);
  font-size: clamp(16px, 1.22vw, 19px);
  line-height: 1.58;
  color: rgba(255,255,255,.90);
}

.copywriter-hero-paragraph + .copywriter-hero-paragraph {
  max-width: 720px;
  margin-bottom: 26px;
}

.hero-actions {
  position: relative;
  z-index: 3;
}

.hero-meta {
  z-index: 3;
}

/* ----------------------------------------------------------------
   HIGH-IMPACT PAGE HEROES
   ---------------------------------------------------------------- */
.what-hero h1,
.region-hero h1,
.people-hero h1,
.guide-hero h1,
.story-index-intro h1,
.operator-directory-intro h1,
.operator-mini-main h1,
.stay-regions-intro h1,
.member-panel h1,
.partner-panel h1,
.profile-hero h1,
.gh-hero h1 {
  line-height: 1.00 !important;
  letter-spacing: -0.022em !important;
}

/* Long destination/property names need a slightly calmer scale. */
.member-panel h1,
.partner-panel h1,
.profile-hero h1 {
  font-size: clamp(50px, 5.4vw, 92px) !important;
  margin-bottom: 26px !important;
}

.thonga-profile .partner-panel h1,
.kosi-forest-profile .partner-panel h1,
.gugs-profile .partner-panel h1 {
  font-size: clamp(50px, 5.4vw, 92px) !important;
  letter-spacing: -0.022em !important;
}

.member-art-inner strong {
  line-height: 1.00 !important;
  letter-spacing: -0.018em !important;
}

/* ----------------------------------------------------------------
   SECTION HEADINGS
   ---------------------------------------------------------------- */
.home-intro h2,
.section-heading h2,
.feature-copy h2,
.plan-copy h2,
.region-map-copy h2,
.region-heading h2,
.people-heading h2,
.cornerstone-heading h2,
.profile-section-heading h2,
.member-heading h2,
.static-member-directory-head h2,
.gh-section-head h2,
.more-accommodation-heading h2,
.stay-region-copy h2,
.guide-copy h2,
.plan-panel h2 {
  line-height: 1.04 !important;
  letter-spacing: -0.018em !important;
}

.section-heading,
.region-heading,
.people-heading,
.cornerstone-heading,
.profile-section-heading,
.member-heading,
.static-member-directory-head,
.gh-section-head,
.more-accommodation-heading {
  row-gap: 24px;
}

/* Headings in cards/listings can wrap naturally without clipping. */
.card-copy h3,
.listing-copy h3,
.story-row h3,
.story-index-row h2,
.revision-topic h3,
.static-region h3,
.operator-directory-row h2,
.member-experience-list h3,
.profile-experience-list h3,
.pickup-list h3,
.route-panel h3 {
  line-height: 1.08 !important;
  letter-spacing: -0.010em !important;
}

/* Make overlaid image cards resilient to longer rewritten copy. */
.experience-card {
  min-height: 620px;
}

.card-copy {
  inset: auto 30px 30px;
  max-width: calc(100% - 60px);
}

.card-copy h3 {
  margin-bottom: 12px;
}

.card-copy p {
  margin-bottom: 14px;
  line-height: 1.55;
}

/* ----------------------------------------------------------------
   GETTING HERE
   ---------------------------------------------------------------- */
.gh-page {
  overflow-x: clip;
}

.gh-hero h1 {
  margin-bottom: 30px !important;
  line-height: 1.00 !important;
  letter-spacing: -0.022em !important;
}

.gh-section-head h2 {
  line-height: 1.04 !important;
  letter-spacing: -0.018em !important;
}

.route-panel h3 {
  margin-bottom: 24px !important;
}

.copywriter-route-copy,
.copywriter-spine-intro {
  line-height: 1.62;
}

.node-copy strong,
.spine-branch strong {
  line-height: 1.12 !important;
}

/* ----------------------------------------------------------------
   PROFILE FACTS / SMALL DISPLAY TYPE
   ---------------------------------------------------------------- */
.profile-fact strong,
.member-fact strong,
.route-metrics strong {
  line-height: 1.10 !important;
  letter-spacing: -0.008em !important;
}

.profile-fact,
.member-fact {
  min-height: 150px;
}

/* ----------------------------------------------------------------
   OPERATOR DIRECTORY
   ---------------------------------------------------------------- */
.operator-directory-row {
  padding-top: 22px;
  padding-bottom: 22px;
}

.operator-directory-row h2 {
  line-height: 1.10 !important;
}

.operator-mini-main h1 {
  margin-bottom: 30px !important;
}

/* ----------------------------------------------------------------
   TABLES / LONG LABELS
   ---------------------------------------------------------------- */
.access-matrix th,
.access-matrix td,
.route-facts dt,
.route-facts dd,
.static-stay-links a,
.provider-row,
.detail-list li {
  line-height: 1.48;
}

/* ----------------------------------------------------------------
   TABLET
   ---------------------------------------------------------------- */
@media (max-width: 980px) {
  .breadcrumbs,
  .profile-breadcrumb {
    margin-top: 70px;
  }

  .hero {
    min-height: max(100svh, 980px);
    padding: 118px 24px 92px;
  }

  .hero-copy {
    padding-bottom: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(60px, 11vw, 92px) !important;
    line-height: 1.00 !important;
  }

  .home-intro,
  .intro-grid,
  .section-heading,
  .region-heading,
  .people-heading,
  .cornerstone-heading,
  .profile-section-heading,
  .member-heading,
  .static-member-directory-head,
  .gh-section-head,
  .more-accommodation-heading {
    align-items: start;
  }

  .member-panel h1,
  .partner-panel h1,
  .profile-hero h1,
  .thonga-profile .partner-panel h1,
  .kosi-forest-profile .partner-panel h1,
  .gugs-profile .partner-panel h1 {
    font-size: clamp(48px, 9vw, 78px) !important;
  }
}

/* ----------------------------------------------------------------
   MOBILE
   ---------------------------------------------------------------- */
@media (max-width: 620px) {
  h1 {
    line-height: 1.02 !important;
    letter-spacing: -0.014em !important;
  }

  h2 {
    line-height: 1.06 !important;
    letter-spacing: -0.010em !important;
  }

  h3 {
    line-height: 1.10 !important;
    letter-spacing: -0.004em !important;
  }

  .breadcrumbs,
  .profile-breadcrumb {
    margin-top: 70px;
  }

  .hero {
    min-height: max(100svh, 1080px);
    padding: 112px 24px 88px;
  }

  .hero-copy {
    width: 100%;
    padding-bottom: 56px;
  }

  .hero-copy h1 {
    max-width: 100%;
    margin-bottom: 25px !important;
    font-size: clamp(52px, 15vw, 70px) !important;
    line-height: 1.00 !important;
    letter-spacing: -0.012em !important;
  }

  .copywriter-hero-paragraph {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.56;
  }

  .hero-meta {
    gap: 10px;
    font-size: 8px;
    line-height: 1.4;
  }

  .what-hero h1,
  .region-hero h1,
  .people-hero h1,
  .guide-hero h1,
  .story-index-intro h1,
  .operator-directory-intro h1,
  .operator-mini-main h1,
  .stay-regions-intro h1,
  .gh-hero h1,
  .member-panel h1,
  .partner-panel h1,
  .profile-hero h1,
  .thonga-profile .partner-panel h1,
  .kosi-forest-profile .partner-panel h1,
  .gugs-profile .partner-panel h1 {
    font-size: clamp(44px, 13.5vw, 66px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.012em !important;
  }

  .home-intro h2,
  .section-heading h2,
  .feature-copy h2,
  .plan-copy h2,
  .region-map-copy h2,
  .region-heading h2,
  .people-heading h2,
  .cornerstone-heading h2,
  .profile-section-heading h2,
  .member-heading h2,
  .static-member-directory-head h2,
  .gh-section-head h2,
  .more-accommodation-heading h2,
  .stay-region-copy h2,
  .guide-copy h2,
  .plan-panel h2 {
    font-size: clamp(38px, 11.5vw, 56px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.010em !important;
  }

  .experience-card {
    min-height: 660px;
  }

  .card-copy {
    inset: auto 22px 24px;
    max-width: calc(100% - 44px);
  }

  .card-copy h3 {
    font-size: clamp(34px, 10vw, 48px) !important;
  }

  .profile-fact,
  .member-fact {
    min-height: auto;
  }

  .operator-directory-row {
    min-height: 0;
  }

  /* Avoid fixed-width side content forcing horizontal scroll. */
  .route-panel,
  .node-copy,
  .spine-branch,
  .operator-mini-main,
  .member-panel,
  .partner-panel,
  .profile-section-heading > *,
  .member-heading > * {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .hero {
    min-height: 1160px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-copy h1,
  .what-hero h1,
  .region-hero h1,
  .people-hero h1,
  .guide-hero h1,
  .story-index-intro h1,
  .operator-directory-intro h1,
  .operator-mini-main h1,
  .stay-regions-intro h1,
  .gh-hero h1,
  .member-panel h1,
  .partner-panel h1,
  .profile-hero h1 {
    font-size: clamp(40px, 13vw, 54px) !important;
  }
}
