/* No header "space": the header lives in a 96px .theme_on-color wrapper that sits
   IN FLOW above the hero and pushes it down. Float that wrapper out of flow so the
   hero image fills the entire top of the viewport; the nav then overlays the hero. */
.theme_on-color:has(> .header) {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000 !important;
}
/* Translucent scrim fades to 0 by the header base (no band/seam); light nav stays
   readable over the dark hero behind it. */
.header {
  background: linear-gradient(180deg, rgba(9, 20, 26, 0.55) 0%, rgba(9, 20, 26, 0.22) 60%, rgba(9, 20, 26, 0) 100%) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Keep the nav light + readable over ANY section. The dark top-scrim above
   guarantees contrast, so the scroll-driven theme flip (theme_on-light) can
   never leave the nav dark-on-dark over the dark hero (the faded-nav bug). */
.header .t7,
.header .nav-item,
.header .nav-item .t7,
.header a,
.header .link_label > div,
.header .logo,
.header .logo svg {
  color: #FFF8ED !important;
}

.header .container {
  padding-right: clamp(48px, 6.5vw, 128px);
  padding-left: clamp(48px, 6.5vw, 128px);
}

.header .header_c {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header .header_nav,
.header .header_cta {
  flex: 1 1 0;
  min-width: 0;
}

.header .header_cta,
.header .header_cta .nav-item-list {
  justify-content: flex-end;
}

.header .header_logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
  min-width: clamp(320px, 22vw, 460px);
}

.header .link-logo.w--current {
  width: clamp(320px, 22vw, 460px);
  height: auto;
}

.header .logo {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 36;
}

.header .logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.header .nav-item {
  height: 32px;
  padding-right: 6px;
  padding-left: 6px;
}

.header .nav-item-list {
  display: flex;
  column-gap: 4px;
}

.header .t7 {
  font-size: clamp(11px, 0.68vw, 13px);
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.header .header_logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
  min-width: clamp(220px, 16vw, 360px);
}

.header .link-logo.w--current {
  width: clamp(220px, 16vw, 360px);
  height: auto;
}
  height: 32px;
  padding-right: 10px;
  padding-left: 10px;
}

.header .t7 {
  font-size: clamp(14px, 0.86vw, 16px);
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
  .header .container {
    padding-right: 24px;
    padding-left: 24px;
  }

  .header .header_logo {
    min-width: clamp(188px, 54vw, 240px);
  }

  .header .link-logo.w--current {
    width: clamp(188px, 54vw, 240px);
  }
}

@media (min-width: 1600px) {
  .header .nav-item-list {
    column-gap: 28px;
  }
}

.pop-up_overlay {
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  max-width: 100vw;
}

.btn-submit {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

/* Hero text was running into / clipping at both viewport edges (the hero is
   full-bleed with no side padding, so the big split titles + bottom copy touched
   the margins — "distinction" was cut on the right). Inset the TEXT layers only
   (not the window background), aligned to the header/nav inset. */
.hero-s_bot {
  box-sizing: border-box;
  padding-left: clamp(24px, 6.5vw, 128px) !important;
  padding-right: clamp(24px, 6.5vw, 128px) !important;
}
.hero-s_title-l {
  margin-left: clamp(24px, 6.5vw, 128px) !important;
}
.hero-s_title-r {
  margin-right: clamp(24px, 6.5vw, 128px) !important;
}

.btn-submit:focus-visible,
.btn-cta:focus-visible,
.btn-menu:focus-visible,
.btn-cta-close:focus-visible,
.link:focus-visible,
.nav-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}


/* === Brand purity 2026-07-20: no third-party logos / agency credits === */
.globe-bot-s_right_credits,
.globe-bot-s_right_credits.b-mobile,
.tftl-lottie,
.credits a[href*="thefirstthelast"],
.cert-grid img,
.safety-logo img {
  display: none !important;
}
.globe-bot-s_right_credits_title {
  display: none !important;
}

/* Text-only safety standards */
.safety-grid--text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.safety-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.55);
  color: #c9a96e;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.cert-chip {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid rgba(201, 169, 110, 0.45);
  border-radius: 999px;
  color: #f5efe3;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.04);
}

/* Unstick globe footer overlay so next sections (live sky) are not covered */
.globe-bot-w {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  pointer-events: auto !important;
  width: 100% !important;
}
.globe-bot-s {
  height: auto !important;
  min-height: 0 !important;
}

/* Globe factoid card — Doug Cohen photo (was solid gray .card_bg) */
.globe-factoid-s_card {
  overflow: hidden;
  border-radius: 12px;
}
.globe-factoid-s_card > .card_bg {
  background-color: #1a1410 !important;
  background-image: url("/assets/doug-cohen.jpg?v=factoid") !important;
  background-size: cover !important;
  background-position: center 18% !important;
  background-repeat: no-repeat !important;
}
.globe-factoid-s_card > .card_bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0.35) 0%,
    rgba(8, 8, 10, 0.25) 35%,
    rgba(8, 8, 10, 0.72) 70%,
    rgba(8, 8, 10, 0.88) 100%
  );
  pointer-events: none;
}
.globe-factoid-s_card .card_c {
  position: relative;
  z-index: 1;
}
.globe-factoid-s_card .h2,
.globe-factoid-s_card .l1,
.globe-factoid-s_card .p7 {
  color: #fff8ed !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.globe-factoid-s_card .diagram-logo {
  color: #c9a96e !important;
}

/* PJ monogram in Webflow homepage header (dark hero / light mark) */
.header .logo .pj1-home-logo,
.header .pj1-home-logo {
  display: block;
  width: auto;
  height: clamp(40px, 4.5vw, 54px);
  max-width: min(220px, 48vw);
  object-fit: contain;
}
.header .logo {
  aspect-ratio: auto !important;
  height: auto !important;
}
.header .link-logo.w--current {
  width: auto !important;
  min-width: 0 !important;
}
.header .header_logo {
  min-width: clamp(120px, 14vw, 220px) !important;
}


/* Popular guides — homepage internal SEO cluster */
.pj1-popular-guides {
  background: #0b0a0a;
  color: #fff8ed;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid rgba(255, 248, 237, 0.08);
}
.pj1-popular-guides__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.pj1-popular-guides__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a96e;
}
.pj1-popular-guides__title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 500;
  color: #fff8ed;
  line-height: 1.15;
}
.pj1-popular-guides__lead {
  margin: 0 0 24px;
  max-width: 42rem;
  color: rgba(255, 248, 237, 0.72);
  font-size: 1rem;
  line-height: 1.5;
}
.pj1-popular-guides__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 20px;
}
.pj1-popular-guides__list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255, 248, 237, 0.12);
  border-radius: 8px;
  color: #fff8ed;
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pj1-popular-guides__list a:hover {
  border-color: rgba(201, 169, 110, 0.55);
  background: rgba(201, 169, 110, 0.08);
  color: #fff8ed;
}
