/* ============================================================
   Polarhub custom overrides — mobile adaptation + i18n chrome
   Loaded via mu-plugins/polarhub-enhance.php (theme-update-safe)
   ============================================================ */

@media (max-width: 767px) {

  /* ---- 1. Mobile navigation --------------------------------
     theme.css hides .h-hide-sm under 767px, which wrongly hides the
     whole header menu column (hamburger included). Un-hide it. */
  .style-local-40-h6-outer.h-hide-sm,
  .style-local-40-h6.h-hide-sm {
    display: flex !important;
  }

  /* Hamburger: 44x44 touch target + always-visible frosted chip
     (icon alone was #03A9F4, invisible over dark glacier photos) */
  .h-hamburger-button {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(11, 37, 69, 0.18);
  }
  .h-hamburger-button .h-hamburger-icon {
    width: 26px;
    height: 26px;
    color: #0b2545;
  }

  /* header column: keep menu content right-aligned */
  .style-local-40-h6 .h-column__content {
    align-items: center;
  }

  /* ---- 2. Stats strip: 2x2 grid instead of full-width stack --- */
  .style-local-67-c3 .h-row > .h-column {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  .style-local-67-c3 .h-row {
    row-gap: 18px;
  }

  /* ---- 3. Hero type tightening ------------------------------ */
  h1 {
    letter-spacing: 0.04em;
  }
}

/* ---- 4. Footer: long URLs / emails must wrap (all viewports) - */
.h-text p,
.h-text a,
footer p,
footer a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---- 5. Language switch buttons ----------------------------- */
.h-menu li.ph-lang-item {
  list-style: none;
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}
.ph-lang-switch {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  min-height: 32px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  flex: 0 0 auto;
}
.ph-lang-switch:hover,
.ph-lang-switch:focus-visible {
  opacity: 1;
}

/* inside the dark offcanvas drawer */
#offcanvas-wrapper-40-h8 .ph-lang-switch {
  color: #fff;
  display: block;
  width: max-content;
  margin: 18px auto 26px;
}

/* ---- 6. EN mode: latin nav labels run longer ---------------- */
html[lang="en"] .h-menu-horizontal a {
  font-size: 13px;
  letter-spacing: 0;
}

/* ---- 7. 2026-09-12 round 2: hero contrast + CTA -------------- */

/* Readability veil over the bright snowfield hero. Weight is distributed
   where the text actually sits: a deep top band behind the nav (nav sits at
   y=20..82 over this layer), a wash over the headline band, a soft overall
   tint. Inset shadows paint above the layer's own background but stay
   behind the content — no z-index games. */
.h-hero .colibri-video-background {
  box-shadow:
    inset 0 -170px 150px -70px rgba(11, 37, 69, 0.65),
    inset 0 100px 260px -70px rgba(11, 37, 69, 0.45),
    inset 0 0 0 9999px rgba(11, 37, 69, 0.16);
}
.h-hero h1 {
  text-shadow: 0 1px 8px rgba(11, 37, 69, 0.5), 0 3px 28px rgba(11, 37, 69, 0.6);
}
/* desktop nav is white small text over the brightest sky area */
.h-menu-horizontal a {
  text-shadow: 0 1px 10px rgba(11, 37, 69, 0.55);
}

/* CTA pair injected by polarhub-ui.js under the hero heading */
.ph-hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.ph-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.ph-cta-primary {
  background: #0b2545;
  color: #ffffff !important;
  box-shadow: 0 10px 26px rgba(11, 37, 69, 0.35);
}
.ph-cta-primary:hover,
.ph-cta-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(11, 37, 69, 0.45);
}
.ph-cta-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}
.ph-cta-ghost:hover,
.ph-cta-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
  .ph-hero-cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 22px;
    gap: 12px;
  }
}

/* ---- 8. Bottom CTA band (气候行动): gradient veil, left-dark → right-light ----
   The section carries its own bright glacier photo (DJI_0072) with white
   text on the left. A negative z-index ::before paints a horizontal gradient
   above the section's own background photo but below its static content:
   dark under the text column, transparent over the glacier on the right.
   Body copy capped at 640px so every line stays inside the dark zone.
   The button shadow needs !important — colibri overrides box-shadow on
   .h-button with equal-or-higher specificity. */
.style-local-67-c70 {
  position: relative; /* anchor the ::before; theme already sets relative — defensive */
  z-index: 0;         /* stacking context so ::before(-1) paints above the photo */
}
.style-local-67-c70::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(11, 37, 69, 0.60) 0%,
    rgba(11, 37, 69, 0.34) 55%,
    rgba(11, 37, 69, 0.16) 100%);
}
.style-local-67-c70 h1,
.style-local-67-c70 h2 {
  text-shadow: 0 1px 8px rgba(11, 37, 69, 0.55), 0 3px 24px rgba(11, 37, 69, 0.5);
}
.style-local-67-c70 p {
  max-width: 640px;
  text-shadow: 0 1px 5px rgba(11, 37, 69, 0.55), 0 2px 16px rgba(11, 37, 69, 0.45);
}
.style-local-67-c70 .h-button {
  box-shadow: 0 8px 22px rgba(11, 37, 69, 0.45) !important;
}
.style-local-67-c70 .h-button:hover,
.style-local-67-c70 .h-button:focus-visible {
  filter: brightness(1.08);
}
