@import url('assets/css/lrl-tokens.css');
/* =========================================================
   Learning Rewired Lab
   Shared Global Header + Footer
   Floating Header V11
   File: /global.css
   ========================================================= */

/* =========================================================
   Universal horizontal-overflow guard
   Mobile-only overflow-x:hidden left a gap on tablet
   (761–1024px) where a stray wide element on any page-specific
   layout could still force horizontal scroll. This applies the
   same guard at every width, site-wide, with no visual change
   on pages that were already within bounds.
   ========================================================= */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* =========================================================
   Learning Rewired Lab Origin Marker
   ========================================================= */

.lrl-origin-marker {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* =========================================================
   Header V11
   ========================================================= */

#site-header {
  position: relative;
  z-index: 5000;
  overflow: visible;
}

.lrl-site-header-v4,
.lrl-site-header-v3,
.lrl-site-header-v10,
.lrl-site-header-v11 {
  position: sticky;
  top: 14px;
  z-index: 5001;
  width: 100%;
  padding: 0 24px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lrl-site-header-v4 *,
.lrl-site-header-v4 *::before,
.lrl-site-header-v4 *::after,
.lrl-site-header-v3 *,
.lrl-site-header-v3 *::before,
.lrl-site-header-v3 *::after,
.lrl-site-header-v10 *,
.lrl-site-header-v10 *::before,
.lrl-site-header-v10 *::after,
.lrl-site-header-v11 *,
.lrl-site-header-v11 *::before,
.lrl-site-header-v11 *::after,
.lrl-mobile-menu-panel,
.lrl-mobile-menu-panel *,
.lrl-mobile-bottom-nav,
.lrl-mobile-bottom-nav * {
  box-sizing: border-box;
}

.lrl-nav-v4,
.lrl-nav-v3,
.lrl-nav-v10,
.lrl-nav-v11 {
  position: relative;
  width: min(1240px, 100%);
  min-height: 74px;
  margin: 0 auto;
  padding: 10px 18px 10px 24px;
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto;
  align-items: center;
  gap: 22px;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Brand */

.lrl-brand-v4,
.lrl-brand-v3 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #07111f;
  text-decoration: none;
  min-width: max-content;
}

.lrl-brand-icon-v4,
.lrl-brand-icon-v3 {
  display: block;
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  flex: 0 0 34px;
  object-fit: contain;
}

.lrl-brand-text-v4,
.lrl-brand-text-v3 {
  display: grid;
  color: #07111f;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lrl-brand-text-v4 span,
.lrl-brand-text-v3 span {
  display: block;
}

/* Primary nav */

.lrl-primary-nav-v4,
.lrl-primary-nav-v3,
.lrl-primary-nav-v10 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.lrl-primary-nav-v4 > a,
.lrl-primary-nav-v3 > a,
.lrl-primary-nav-v10 > a,
.lrl-nav-dropdown-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(15, 23, 42, 0.68);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.lrl-nav-dropdown-button {
  gap: 6px;
}

.lrl-primary-nav-v4 > a:hover,
.lrl-primary-nav-v3 > a:hover,
.lrl-primary-nav-v10 > a:hover,
.lrl-primary-nav-v4 > a.is-active,
.lrl-primary-nav-v3 > a.is-active,
.lrl-primary-nav-v10 > a.is-active,
.lrl-nav-dropdown.is-open .lrl-nav-dropdown-button,
.lrl-nav-dropdown-button:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #07111f;
}

/* Dropdowns */

.lrl-nav-dropdown {
  position: relative;
}

.lrl-nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 6000;
  width: min(640px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.lrl-nav-dropdown.is-open .lrl-nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.lrl-dropdown-feature {
  min-height: 238px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(135deg, #07111f, #10243d);
  color: #ffffff;
}

.lrl-dropdown-kicker {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lrl-dropdown-feature h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.055em;
}

.lrl-dropdown-feature p {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.48;
}

.lrl-dropdown-feature a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #07111f;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.lrl-dropdown-links {
  display: grid;
  gap: 8px;
}

.lrl-dropdown-links a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  border-radius: 18px;
  color: #07111f;
  text-decoration: none;
}

.lrl-dropdown-links a:hover,
.lrl-dropdown-links a.is-active {
  background: #f8fafc;
}

.lrl-dropdown-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-weight: 900;
}

.lrl-dropdown-links strong {
  display: block;
  color: #07111f;
  font-size: 0.9rem;
  line-height: 1.15;
}

.lrl-dropdown-links small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.3;
}

/* Actions */

.lrl-actions-v4,
.lrl-actions-v3 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.lrl-header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 220px;
  height: 48px;
  min-height: 48px;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.lrl-header-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lrl-header-search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 34px 0 0;
  border: 0;
  background: transparent;
  color: #07111f;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.lrl-header-search-input::placeholder {
  color: rgba(15, 23, 42, 0.48);
}

.lrl-header-search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(15, 23, 42, 0.72);
  font-size: 1rem;
  cursor: pointer;
}

.lrl-site-header-v4 .lrl-log-in-v4,
.lrl-site-header-v4 .lrl-log-in-v4:link,
.lrl-site-header-v4 .lrl-log-in-v4:visited,
.lrl-site-header-v3 .lrl-log-in-v3,
.lrl-site-header-v3 .lrl-log-in-v3:link,
.lrl-site-header-v3 .lrl-log-in-v3:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #07111f;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.lrl-join-v4,
.lrl-join-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #07111f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(7, 17, 31, 0.18);
}

/* Mobile button/search */

.lrl-mobile-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #07111f;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
}

.lrl-mobile-search-row {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto 0;
  padding: 0 0 12px;
}

.lrl-mobile-search {
  position: relative;
  width: 100%;
}

.lrl-mobile-search-input {
  width: 100%;
  height: 44px;
  padding: 0 46px 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--lrl-ink, #07111f);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.lrl-mobile-search-button {
  position: absolute;
  right: 6px;
  top: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #07111f;
  color: #ffffff;
  cursor: pointer;
}

/* Mobile menu */

.lrl-mobile-menu-overlay[hidden] {
  display: none !important;
}

.lrl-mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(15, 23, 42, 0.36);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.lrl-mobile-menu-overlay.is-open {
  opacity: 1;
}

.lrl-mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 8100;
  width: min(390px, 88vw);
  height: 100dvh;
  padding: 22px;
  background: #ffffff;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
  transform: translateX(105%);
  transition: transform 0.22s ease;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-overflow-scrolling: touch;
}

.lrl-mobile-menu-panel-v11 {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
    #ffffff;
}

.lrl-mobile-menu-panel.is-open {
  transform: translateX(0);
}

/* ---------------------------------------------------------
   Hero band — fixed 16:9 above the fold.
   Phones fall back to a taller band so display type is not
   clipped; flip --lrl-hero-ratio-sm to 16/9 to force it.
   --------------------------------------------------------- */
[data-lrl-hero] {
  position: relative;
  display: grid;
  align-content: center;
  aspect-ratio: var(--lrl-hero-ratio, 16 / 9);
  min-height: var(--lrl-hero-min, 420px);
  overflow: hidden;
}

@media (max-width: 900px) {
  [data-lrl-hero] {
    aspect-ratio: var(--lrl-hero-ratio-sm, 4 / 5);
    min-height: var(--lrl-hero-min-sm, 0);
  }
}

body.lrl-mobile-menu-is-open {
  overflow: hidden;
}

.lrl-mobile-menu-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.lrl-mobile-menu-kicker {
  margin: 0 0 5px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lrl-mobile-menu-header h2 {
  margin: 0;
  color: var(--lrl-ink, #07111f);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.lrl-mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--lrl-ink, #07111f);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lrl-mobile-menu-nav {
  display: grid;
  gap: 10px;
}

.lrl-mobile-menu-nav-v11 {
  gap: 18px;
}

.lrl-mobile-menu-nav a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 20px;
  color: var(--lrl-ink, #07111f);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.lrl-mobile-menu-nav a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.lrl-mobile-menu-nav a.is-active {
  background: var(--lrl-ink, #07111f);
  color: #ffffff;
}

.lrl-mobile-menu-nav a.is-active span {
  color: #ffffff;
}

/* Mobile funnel featured card */

.lrl-mobile-featured-link {
  display: grid !important;
  grid-template-columns: 46px 1fr !important;
  gap: 14px;
  align-items: center;
  min-height: 92px !important;
  padding: 18px !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(22, 184, 217, 0.28), transparent 42%),
    linear-gradient(135deg, #07111f, #10243d) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(7, 17, 31, 0.18);
}

.lrl-mobile-featured-link.is-active {
  background:
    radial-gradient(circle at 20% 0%, rgba(22, 184, 217, 0.32), transparent 42%),
    linear-gradient(135deg, #07111f, #10243d) !important;
}

.lrl-mobile-featured-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-size: 1.25rem;
}

.lrl-mobile-featured-copy {
  display: grid !important;
  gap: 5px;
  min-width: 0;
  justify-content: stretch !important;
  justify-items: start !important;
  text-align: left !important;
  color: #ffffff !important;
}

.lrl-mobile-featured-copy strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lrl-mobile-featured-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Mobile funnel sections */

.lrl-mobile-nav-section {
  display: grid;
  gap: 8px;
}

.lrl-mobile-nav-section h3 {
  margin: 0 0 2px;
  padding: 0 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lrl-mobile-nav-section a {
  min-height: 52px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.lrl-mobile-nav-section a:hover {
  background: var(--lrl-mist, #f8fafc);
}

.lrl-mobile-nav-section a.is-active {
  background: var(--lrl-ink, #07111f);
  border-color: var(--lrl-ink, #07111f);
  color: #ffffff;
}

.lrl-mobile-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  padding-bottom: 48px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.lrl-mobile-join,
.lrl-mobile-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.lrl-mobile-join {
  background: #2563eb;
  color: #ffffff;
}

.lrl-mobile-login {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--lrl-ink, #07111f);
}

/* Mobile bottom nav */

.lrl-mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 4500;
  min-height: 64px;
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lrl-mobile-bottom-nav a,
.lrl-mobile-bottom-nav button {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.lrl-mobile-bottom-nav span {
  font-size: 1rem;
}

.lrl-mobile-bottom-nav a.is-active {
  background: var(--lrl-ink, #07111f);
  color: #ffffff;
}

.lrl-mobile-bottom-nav-v11 a[href="/challenge/"] {
  color: #07111f;
}

.lrl-mobile-bottom-nav-v11 a[href="/challenge/"].is-active {
  background: var(--lrl-ink, #07111f);
  color: #ffffff;
}

/* Tablet */

@media (max-width: 1180px) {
  .lrl-header-search {
    display: none;
  }

  .lrl-nav-v4,
  .lrl-nav-v3,
  .lrl-nav-v10,
  .lrl-nav-v11 {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 1180px) {
  .lrl-nav-v4,
  .lrl-nav-v3,
  .lrl-nav-v10,
  .lrl-nav-v11 {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 62px;
    padding: 0 16px;
  }

  .lrl-primary-nav-v4,
  .lrl-primary-nav-v3,
  .lrl-primary-nav-v10,
  .lrl-log-in-v4,
  .lrl-log-in-v3,
  .lrl-join-v4,
  .lrl-join-v3 {
    display: none !important;
  }

  .lrl-mobile-menu-button {
    display: inline-flex;
  }
}

/* Mobile */

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 88px;
  }

  .lrl-site-header-v4,
  .lrl-site-header-v3,
  .lrl-site-header-v10,
  .lrl-site-header-v11 {
    top: 10px;
    padding: 0 12px;
  }

  .lrl-nav-v4,
  .lrl-nav-v3,
  .lrl-nav-v10,
  .lrl-nav-v11 {
    width: 100%;
    min-height: 60px;
    border-radius: 24px;
  }

  .lrl-brand-text-v4,
  .lrl-brand-text-v3 {
    font-size: 14px;
  }

  .lrl-mobile-search-row {
    display: block;
  }

  .lrl-mobile-bottom-nav {
    display: flex;
  }

  body.lrl-mobile-menu-is-open .lrl-mobile-bottom-nav {
    display: none !important;
  }

  .lrl-mobile-menu-overlay {
    z-index: 99998;
  }

  .lrl-mobile-menu-panel {
    z-index: 99999;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
    height: auto;
    max-height: 92dvh;
    padding: 0;
    border: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 60px rgba(7, 17, 31, 0.28);
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1), max-height 0.26s ease;
  }

  /* Dragged (or tapped) up to full height */
  .lrl-mobile-menu-panel.is-expanded {
    max-height: 100dvh;
    border-radius: 0;
  }

  .lrl-mobile-menu-panel-v11 {
    padding-top: 0;
  }

  .lrl-mobile-menu-panel.is-open {
    pointer-events: auto;
    transform: translateY(0);
  }

  .lrl-mobile-menu-header {
    position: static;
    z-index: 2;
    width: 100%;
    background: #ffffff;
  }

  .lrl-mobile-menu-nav-v11 {
    padding-bottom: 8px;
  }

  .lrl-mobile-featured-link {
    min-height: 96px !important;
  }

  .lrl-mobile-menu-actions {
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .lrl-brand-text-v4,
  .lrl-brand-text-v3 {
    font-size: 14px;
  }

  .lrl-mobile-bottom-nav {
    left: 8px;
    right: 8px;
  }
}

/* =========================================================
   Desktop Header V11 Spacing Fix
   Keeps mobile funnel nav without breaking desktop
   ========================================================= */

.lrl-nav-v11 {
  grid-template-columns: auto minmax(520px, 1fr) auto;
  gap: 14px;
  padding: 10px 16px 10px 22px;
}

.lrl-primary-nav-v10,
.lrl-primary-nav-v4 {
  justify-content: flex-start;
  gap: 4px;
}

.lrl-primary-nav-v10 > a,
.lrl-primary-nav-v4 > a,
.lrl-nav-dropdown-button {
  padding: 0 12px;
  font-size: 14px;
}

.lrl-header-search {
  width: 190px;
}

.lrl-actions-v4 {
  gap: 7px;
}

.lrl-site-header-v4 .lrl-log-in-v4,
.lrl-site-header-v4 .lrl-log-in-v4:link,
.lrl-site-header-v4 .lrl-log-in-v4:visited {
  padding: 0 18px;
}

.lrl-join-v4 {
  padding: 0 22px;
}

@media (max-width: 1260px) {
  .lrl-nav-v11 {
    grid-template-columns: auto minmax(460px, 1fr) auto;
  }

  .lrl-header-search {
    width: 170px;
  }

  .lrl-primary-nav-v10 > a,
  .lrl-primary-nav-v4 > a,
  .lrl-nav-dropdown-button {
    padding: 0 10px;
    font-size: 14px;
  }
}

@media (max-width: 1180px) {
  .lrl-header-search {
    display: none;
  }
}

/* =========================================================
   Footer V6
   ========================================================= */

.lrl-site-footer-v6,
.lrl-site-footer-v5 {
  width: 100%;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: var(--lrl-ink, #07111f);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lrl-site-footer-v6 *,
.lrl-site-footer-v6 *::before,
.lrl-site-footer-v6 *::after,
.lrl-site-footer-v5 *,
.lrl-site-footer-v5 *::before,
.lrl-site-footer-v5 *::after {
  box-sizing: border-box;
}

.lrl-footer-v6-inner,
.lrl-footer-v5-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 24px;
}

.lrl-footer-v6-main,
.lrl-footer-v5-main {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(44px, 6vw, 92px);
  align-items: start;
}

.lrl-footer-v6-brand-block,
.lrl-footer-v5-brand-block {
  max-width: 320px;
}

.lrl-site-footer-v6 .lrl-footer-v3-logo,
.lrl-site-footer-v5 .lrl-footer-v3-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--lrl-ink, #07111f);
  text-decoration: none;
}

.lrl-site-footer-v6 .lrl-footer-v3-icon,
.lrl-site-footer-v5 .lrl-footer-v3-icon {
  display: block;
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px;
  object-fit: contain;
}

.lrl-site-footer-v6 .lrl-footer-v3-wordmark,
.lrl-site-footer-v5 .lrl-footer-v3-wordmark {
  display: grid;
  color: var(--lrl-ink, #07111f);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lrl-site-footer-v6 .lrl-footer-v3-wordmark span,
.lrl-site-footer-v5 .lrl-footer-v3-wordmark span {
  display: block;
}

.lrl-footer-v5-statement {
  max-width: 300px;
  margin: 14px 0 16px;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
}

.lrl-site-footer-v6 .lrl-footer-v3-socials,
.lrl-site-footer-v5 .lrl-footer-v3-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.lrl-site-footer-v6 .lrl-footer-v3-socials a,
.lrl-site-footer-v5 .lrl-footer-v3-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--lrl-ink, #07111f);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.lrl-footer-v5-prod-note {
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.45;
}

.lrl-footer-v6-nav,
.lrl-footer-v5-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.lrl-footer-v5-group p {
  margin: 0 0 12px;
  color: var(--lrl-ink, #07111f);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.lrl-footer-v5-group a {
  display: block;
  width: fit-content;
  margin: 0 0 9px;
  color: #475569;
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
}

.lrl-footer-v6-utility,
.lrl-footer-v5-utility {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.lrl-footer-v6-utility a,
.lrl-footer-v5-utility a {
  color: #64748b;
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
}

.lrl-footer-v6-bottom,
.lrl-footer-v5-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 18px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.4;
}

.lrl-footer-v6-bottom p,
.lrl-footer-v5-bottom p {
  margin: 0;
}

.lrl-footer-v5-bottom-note {
  max-width: 360px;
  text-align: right;
}

.lrl-site-footer-v6 .lrl-footer-v3-legal,
.lrl-site-footer-v5 .lrl-footer-v3-legal {
  display: none !important;
}

@media (max-width: 900px) {
  .lrl-footer-v6-main,
  .lrl-footer-v5-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lrl-footer-v6-nav,
  .lrl-footer-v5-nav {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  .lrl-footer-v6-inner,
  .lrl-footer-v5-inner {
    width: min(100% - 32px, 1180px);
    padding: 32px 0 110px;
  }

  .lrl-footer-v6-main,
  .lrl-footer-v5-main {
    gap: 28px;
  }

  .lrl-footer-v6-nav,
  .lrl-footer-v5-nav {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .lrl-footer-v6-bottom,
  .lrl-footer-v5-bottom {
    display: block;
  }

  .lrl-footer-v5-bottom-note {
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }
}
/* =========================================================
   Header V12 — search removed + challenge CTA
   ========================================================= */

.lrl-site-header-v12 .lrl-actions-v4 {
  gap: 8px;
}

.lrl-header-challenge-v12 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(22, 184, 217, 0.48);
  border-radius: 999px;
  background: rgba(22, 184, 217, 0.07);
  color: #07111f;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.lrl-header-challenge-v12:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 184, 217, 0.72);
  background: rgba(22, 184, 217, 0.12);
  color: #07111f;
}

@media (max-width: 980px) {
  .lrl-header-challenge-v12,
  .lrl-site-header-v12 .lrl-log-in-v4 {
    display: none;
  }
}
/* =========================================================
   Header V12 — CTA color logic + hover accents
   Mirrors homepage CTA outline system
   ========================================================= */

.lrl-site-header-v12 .lrl-primary-nav-v4 > a,
.lrl-site-header-v12 .lrl-nav-dropdown-button {
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.lrl-site-header-v12 .lrl-primary-nav-v4 > a:hover,
.lrl-site-header-v12 .lrl-nav-dropdown-button:hover,
.lrl-site-header-v12 .lrl-nav-dropdown.is-open .lrl-nav-dropdown-button {
  border-color: rgba(22, 184, 217, 0.42);
  background: rgba(22, 184, 217, 0.075);
  color: #07111f;
}

.lrl-site-header-v12 .lrl-primary-nav-v4 > a.is-active,
.lrl-site-header-v12 .lrl-nav-dropdown-button[aria-expanded="true"] {
  border-color: rgba(22, 184, 217, 0.54);
  background: rgba(22, 184, 217, 0.095);
  color: #07111f;
}

/* Dropdown panel link hover accents */

.lrl-site-header-v12 .lrl-dropdown-links a {
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.lrl-site-header-v12 .lrl-dropdown-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 184, 217, 0.36);
  background: rgba(22, 184, 217, 0.07);
}

.lrl-site-header-v12 .lrl-dropdown-links a:nth-child(2):hover {
  border-color: rgba(110, 231, 216, 0.48);
  background: rgba(110, 231, 216, 0.095);
}

.lrl-site-header-v12 .lrl-dropdown-links a:nth-child(3):hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: rgba(37, 99, 235, 0.055);
}

/* Dropdown featured CTA */

.lrl-site-header-v12 .lrl-dropdown-feature a {
  border: 1px solid rgba(22, 184, 217, 0.48);
  background: rgba(22, 184, 217, 0.07);
  color: #07111f;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.lrl-site-header-v12 .lrl-dropdown-feature a:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 184, 217, 0.72);
  background: rgba(22, 184, 217, 0.12);
  color: #07111f;
}

/* Header CTAs */

.lrl-site-header-v12 .lrl-header-challenge-v12 {
  border-color: rgba(22, 184, 217, 0.52);
  background: rgba(22, 184, 217, 0.075);
  color: #07111f;
}

.lrl-site-header-v12 .lrl-header-challenge-v12:hover {
  border-color: #16b8d9;
  background: #16b8d9;
  color: #ffffff;
}

.lrl-site-header-v12 .lrl-join-v4 {
  border-color: #16b8d9;
  background: #16b8d9;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 184, 217, 0.22);
}

.lrl-site-header-v12 .lrl-join-v4:hover {
  border-color: #0ea5c2;
  background: #0ea5c2;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(22, 184, 217, 0.28);
}

.lrl-site-header-v12 .lrl-log-in-v4:hover {
  border-color: rgba(110, 231, 216, 0.52);
  background: rgba(110, 231, 216, 0.095);
  color: #07111f;
}
/* =========================================================
   Header V12 — dropdown color refinement
   Fixes dark-card CTA text + adds varied accent blocks
   ========================================================= */

/* Featured dark card CTA inside dropdown */

.lrl-site-header-v12 .lrl-dropdown-feature a {
  color: #ffffff;
  border-color: rgba(22, 184, 217, 0.72);
  background: rgba(22, 184, 217, 0.16);
}

.lrl-site-header-v12 .lrl-dropdown-feature a:hover {
  color: #ffffff;
  border-color: #16b8d9;
  background: #16b8d9;
}

/* Keep featured card text readable */

.lrl-site-header-v12 .lrl-dropdown-feature h3 {
  color: #ffffff;
}

.lrl-site-header-v12 .lrl-dropdown-feature p {
  color: rgba(255, 255, 255, 0.76);
}

.lrl-site-header-v12 .lrl-dropdown-feature .lrl-dropdown-kicker {
  color: rgba(255, 255, 255, 0.72);
}

/* Dropdown link icon blocks — homepage CTA palette */

.lrl-site-header-v12 .lrl-dropdown-links a > span {
  border: 1px solid transparent;
  color: #07111f;
}

/* First dropdown item: cyan */

.lrl-site-header-v12 .lrl-dropdown-links a:nth-child(1) > span {
  border-color: rgba(22, 184, 217, 0.42);
  background: rgba(22, 184, 217, 0.12);
  color: var(--lrl-cyan, #16b8d9);
}

/* Second dropdown item: mint */

.lrl-site-header-v12 .lrl-dropdown-links a:nth-child(2) > span {
  border-color: rgba(110, 231, 216, 0.58);
  background: rgba(110, 231, 216, 0.16);
  color: var(--lrl-teal-700, #0f766e);
}

/* Third dropdown item: soft blue */

.lrl-site-header-v12 .lrl-dropdown-links a:nth-child(3) > span {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

/* Optional fourth item support: gold */

.lrl-site-header-v12 .lrl-dropdown-links a:nth-child(4) > span {
  border-color: rgba(244, 201, 93, 0.58);
  background: rgba(244, 201, 93, 0.15);
  color: #9a6a04;
}

/* Dropdown link hover should tint the whole row without overpowering it */

.lrl-site-header-v12 .lrl-dropdown-links a:nth-child(1):hover {
  border-color: rgba(22, 184, 217, 0.48);
  background: rgba(22, 184, 217, 0.075);
}

.lrl-site-header-v12 .lrl-dropdown-links a:nth-child(2):hover {
  border-color: rgba(110, 231, 216, 0.58);
  background: rgba(110, 231, 216, 0.105);
}

.lrl-site-header-v12 .lrl-dropdown-links a:nth-child(3):hover {
  border-color: rgba(37, 99, 235, 0.36);
  background: rgba(37, 99, 235, 0.06);
}

.lrl-site-header-v12 .lrl-dropdown-links a:nth-child(4):hover {
  border-color: rgba(244, 201, 93, 0.6);
  background: rgba(244, 201, 93, 0.11);
}

/* Stronger text clarity inside dropdown rows */

.lrl-site-header-v12 .lrl-dropdown-links strong {
  color: #07111f;
}

.lrl-site-header-v12 .lrl-dropdown-links small {
  color: var(--lrl-slate, #475569);
}
/* =========================================================
   Header V12 — normalize action button sizing
   ========================================================= */

.lrl-site-header-v12 .lrl-actions-v4 {
  align-items: center;
}

.lrl-site-header-v12 .lrl-header-challenge-v12,
.lrl-site-header-v12 .lrl-log-in-v4,
.lrl-site-header-v12 .lrl-join-v4 {
  min-height: 44px;
  height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.9rem;
  font-weight: 850;
  border-radius: 999px;
  white-space: nowrap;
}

.lrl-site-header-v12 .lrl-header-challenge-v12 {
  padding-inline: 24px;
}
/* =========================================================
   Header V12 — Dropdown Theme Governance
   Each major landing area gets a distinct visual signal.
   Keep contrast high and avoid red/green-only meaning.
   ========================================================= */

.lrl-site-header-v12 {
  --lrl-theme-design: #16b8d9;
  --lrl-theme-design-soft: rgba(22, 184, 217, 0.14);
  --lrl-theme-design-line: rgba(22, 184, 217, 0.34);

  --lrl-theme-guides: #14b8a6;
  --lrl-theme-guides-soft: rgba(20, 184, 166, 0.14);
  --lrl-theme-guides-line: rgba(20, 184, 166, 0.34);

  --lrl-theme-innovation: #f4c95d;
  --lrl-theme-innovation-soft: rgba(244, 201, 93, 0.16);
  --lrl-theme-innovation-line: rgba(244, 201, 93, 0.36);

  --lrl-theme-studio: #2563eb;
  --lrl-theme-studio-soft: rgba(37, 99, 235, 0.13);
  --lrl-theme-studio-line: rgba(37, 99, 235, 0.32);
}

/* ---------------------------------------------------------
   Base dropdown polish
   --------------------------------------------------------- */

.lrl-site-header-v12 .lrl-nav-dropdown-panel {
  overflow: hidden;
}

.lrl-site-header-v12 .lrl-dropdown-feature {
  position: relative;
  isolation: isolate;
}

.lrl-site-header-v12 .lrl-dropdown-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

.lrl-site-header-v12 .lrl-dropdown-feature a {
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.lrl-site-header-v12 .lrl-dropdown-feature a:hover {
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Design Lab theme: cyan / build surface
   --------------------------------------------------------- */

.lrl-site-header-v12 .lrl-nav-dropdown-design .lrl-dropdown-feature {
  background:
    radial-gradient(circle at 18% 0%, rgba(22, 184, 217, 0.22), transparent 38%),
    radial-gradient(circle at 90% 18%, rgba(110, 231, 216, 0.12), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #10243d 100%);
}

.lrl-site-header-v12 .lrl-nav-dropdown-design .lrl-dropdown-kicker {
  color: var(--lrl-mint, #6ee7d8);
}

.lrl-site-header-v12 .lrl-nav-dropdown-design .lrl-dropdown-feature a {
  border-color: rgba(22, 184, 217, 0.58);
  background: rgba(22, 184, 217, 0.12);
  color: #ffffff;
}

.lrl-site-header-v12 .lrl-nav-dropdown-design .lrl-dropdown-feature a:hover {
  border-color: rgba(22, 184, 217, 0.88);
  background: rgba(22, 184, 217, 0.2);
}

.lrl-site-header-v12 .lrl-nav-dropdown-design .lrl-dropdown-links > a span {
  border-color: var(--lrl-theme-design-line);
  background: var(--lrl-theme-design-soft);
  color: #0789a2;
}

.lrl-site-header-v12 .lrl-nav-dropdown-design .lrl-dropdown-links > a:hover {
  background:
    linear-gradient(90deg, rgba(22, 184, 217, 0.11), transparent 72%);
}

/* ---------------------------------------------------------
   Field Guides theme: teal / method surface
   --------------------------------------------------------- */

.lrl-site-header-v12 .lrl-nav-dropdown-guides .lrl-dropdown-feature {
  background:
    radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.23), transparent 38%),
    radial-gradient(circle at 88% 20%, rgba(244, 201, 93, 0.12), transparent 34%),
    linear-gradient(135deg, #07111f 0%, var(--lrl-ink-800, #10243d) 100%);
}

.lrl-site-header-v12 .lrl-nav-dropdown-guides .lrl-dropdown-kicker {
  color: var(--lrl-mint, #6ee7d8);
}

.lrl-site-header-v12 .lrl-nav-dropdown-guides .lrl-dropdown-feature a {
  border-color: rgba(20, 184, 166, 0.58);
  background: rgba(20, 184, 166, 0.12);
  color: #ffffff;
}

.lrl-site-header-v12 .lrl-nav-dropdown-guides .lrl-dropdown-feature a:hover {
  border-color: rgba(20, 184, 166, 0.88);
  background: rgba(20, 184, 166, 0.2);
}

.lrl-site-header-v12 .lrl-nav-dropdown-guides .lrl-dropdown-links > a span {
  border-color: var(--lrl-theme-guides-line);
  background: var(--lrl-theme-guides-soft);
  color: #0f766e;
}

.lrl-site-header-v12 .lrl-nav-dropdown-guides .lrl-dropdown-links > a:hover {
  background:
    linear-gradient(90deg, rgba(20, 184, 166, 0.11), transparent 72%);
}

/* ---------------------------------------------------------
   Active dropdown button color cues
   --------------------------------------------------------- */

.lrl-site-header-v12 .lrl-nav-dropdown-design .lrl-nav-dropdown-button.is-active,
.lrl-site-header-v12 .lrl-nav-dropdown-design.is-open .lrl-nav-dropdown-button {
  border-color: var(--lrl-theme-design-line);
  background: var(--lrl-theme-design-soft);
}

.lrl-site-header-v12 .lrl-nav-dropdown-guides .lrl-nav-dropdown-button.is-active,
.lrl-site-header-v12 .lrl-nav-dropdown-guides.is-open .lrl-nav-dropdown-button {
  border-color: var(--lrl-theme-guides-line);
  background: var(--lrl-theme-guides-soft);
}

/* ---------------------------------------------------------
   Governance notes:
   - Design Lab = cyan / build tools
   - Field Guides = teal / practical method
   - Innovation Lab = gold / experiments
   - Studio = blue / product workspace
   --------------------------------------------------------- */

/* Compact Footer Refinement — V19: five columns (Platform, Services, Resources, Community, Account + Support) */

.lrl-footer-compact-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  align-items: start;
}

@media (max-width: 1100px) {
  .lrl-footer-compact-nav {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: clamp(24px, 3vw, 40px);
  }
}

.lrl-footer-v4-group,
.lrl-footer-v5-group {
  gap: 8px;
}

.lrl-footer-v4-group p,
.lrl-footer-v5-group p {
  margin-bottom: 10px;
}

.lrl-footer-v3-main,
.lrl-footer-v4-main,
.lrl-footer-v5-main,
.lrl-footer-v6-main {
  align-items: start;
}

.lrl-footer-v3-bottom,
.lrl-footer-v4-bottom,
.lrl-footer-v5-bottom,
.lrl-footer-v6-bottom {
  margin-top: 32px;
  padding-top: 18px;
}

@media (max-width: 900px) {
  .lrl-footer-compact-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .lrl-footer-compact-nav {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
.tm-mark {
  font-size: 0.55em;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.05em;
}
/* =========================================================
   Header V12 — The Lab Navigation Integration
   Add to bottom of /global.css
   ========================================================= */

.lrl-site-header-v12 {
  position: sticky;
  top: 14px;
  z-index: 5001;
  width: 100%;
  padding: 0 24px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lrl-site-header-v12 *,
.lrl-site-header-v12 *::before,
.lrl-site-header-v12 *::after {
  box-sizing: border-box;
}

.lrl-site-header-v12 .lrl-nav-v12,
.lrl-site-header-v12 .lrl-nav-v11 {
  position: relative;
  width: min(1240px, 100%);
  min-height: 74px;
  margin: 0 auto;
  padding: 10px 16px 10px 22px;
  display: grid;
  grid-template-columns: auto minmax(520px, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lrl-site-header-v12 .lrl-primary-nav-v12,
.lrl-site-header-v12 .lrl-primary-nav-v4,
.lrl-site-header-v12 .lrl-primary-nav-v10 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
}

.lrl-site-header-v12 .lrl-primary-nav-v12 > a,
.lrl-site-header-v12 .lrl-primary-nav-v4 > a,
.lrl-site-header-v12 .lrl-primary-nav-v10 > a,
.lrl-site-header-v12 .lrl-nav-dropdown-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(15, 23, 42, 0.68);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.lrl-site-header-v12 .lrl-primary-nav-v12 > a:hover,
.lrl-site-header-v12 .lrl-primary-nav-v12 > a.is-active,
.lrl-site-header-v12 .lrl-primary-nav-v4 > a:hover,
.lrl-site-header-v12 .lrl-primary-nav-v4 > a.is-active,
.lrl-site-header-v12 .lrl-nav-dropdown-button:hover,
.lrl-site-header-v12 .lrl-nav-dropdown.is-open .lrl-nav-dropdown-button {
  border-color: rgba(22, 184, 217, 0.42);
  background: rgba(22, 184, 217, 0.075);
  color: #07111f;
}

/* The Lab top-level link */

.lrl-site-header-v12 a[href="/the-lab/"] {
  border-color: rgba(20, 184, 166, 0.28);
  background: rgba(20, 184, 166, 0.075);
}

.lrl-site-header-v12 a[href="/the-lab/"]:hover,
.lrl-site-header-v12 a[href="/the-lab/"].is-active {
  border-color: rgba(20, 184, 166, 0.52);
  background: rgba(20, 184, 166, 0.13);
  color: #07111f;
}

/* The Lab dropdown theme */

.lrl-site-header-v12 .lrl-nav-dropdown-lab .lrl-dropdown-feature {
  background:
    radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.25), transparent 38%),
    radial-gradient(circle at 88% 20%, rgba(22, 184, 217, 0.16), transparent 34%),
    linear-gradient(135deg, #07111f 0%, var(--lrl-ink-800, #10243d) 100%);
}

.lrl-site-header-v12 .lrl-nav-dropdown-lab .lrl-dropdown-kicker {
  color: var(--lrl-mint, #6ee7d8);
}

.lrl-site-header-v12 .lrl-nav-dropdown-lab .lrl-dropdown-feature a {
  border-color: rgba(20, 184, 166, 0.58);
  background: rgba(20, 184, 166, 0.14);
  color: #ffffff;
}

.lrl-site-header-v12 .lrl-nav-dropdown-lab .lrl-dropdown-feature a:hover {
  border-color: rgba(20, 184, 166, 0.88);
  background: rgba(20, 184, 166, 0.22);
  color: #ffffff;
}

.lrl-site-header-v12 .lrl-nav-dropdown-lab .lrl-dropdown-links > a span {
  border-color: rgba(20, 184, 166, 0.34);
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
}

.lrl-site-header-v12 .lrl-nav-dropdown-lab .lrl-dropdown-links > a:hover {
  border-color: rgba(20, 184, 166, 0.44);
  background:
    linear-gradient(90deg, rgba(20, 184, 166, 0.11), transparent 72%);
}

.lrl-site-header-v12 .lrl-nav-dropdown-lab.is-open .lrl-nav-dropdown-button {
  border-color: rgba(20, 184, 166, 0.42);
  background: rgba(20, 184, 166, 0.12);
}

/* Mobile Lab featured card */

.lrl-mobile-menu-nav a[href="/the-lab/"],
.lrl-mobile-bottom-nav a[href="/the-lab/"] {
  color: #07111f;
}

.lrl-mobile-menu-nav a[href="/the-lab/"].is-active,
.lrl-mobile-bottom-nav a[href="/the-lab/"].is-active {
  background: var(--lrl-ink, #07111f);
  color: #ffffff;
}

.lrl-mobile-menu-nav a[href="/the-lab/"] span,
.lrl-mobile-bottom-nav a[href="/the-lab/"] span {
  color: #0f766e;
}

.lrl-mobile-menu-nav a[href="/the-lab/"].is-active span,
.lrl-mobile-bottom-nav a[href="/the-lab/"].is-active span {
  color: #ffffff;
}

@media (max-width: 1260px) {
  .lrl-site-header-v12 .lrl-nav-v12,
  .lrl-site-header-v12 .lrl-nav-v11 {
    grid-template-columns: auto minmax(460px, 1fr) auto;
  }

  .lrl-site-header-v12 .lrl-primary-nav-v12 > a,
  .lrl-site-header-v12 .lrl-primary-nav-v4 > a,
  .lrl-site-header-v12 .lrl-primary-nav-v10 > a,
  .lrl-site-header-v12 .lrl-nav-dropdown-button {
    padding: 0 9px;
    font-size: 14px;
  }
}

@media (max-width: 1180px) {
  .lrl-site-header-v12 .lrl-nav-v12,
  .lrl-site-header-v12 .lrl-nav-v11 {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 62px;
    padding: 0 16px;
  }

  .lrl-site-header-v12 .lrl-primary-nav-v12,
  .lrl-site-header-v12 .lrl-primary-nav-v4,
  .lrl-site-header-v12 .lrl-primary-nav-v10,
  .lrl-site-header-v12 .lrl-log-in-v4,
  .lrl-site-header-v12 .lrl-join-v4 {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .lrl-site-header-v12 {
    top: 10px;
    padding: 0 12px;
  }

  .lrl-site-header-v12 .lrl-nav-v12,
  .lrl-site-header-v12 .lrl-nav-v11 {
    width: 100%;
    min-height: 60px;
    border-radius: 24px;
  }
}
/* =========================================================
   Learning Rewired Lab
   Mobile Bottom Nav Spacing Fix
   ========================================================= */

@media (max-width: 760px) {
  .lrl-mobile-bottom-nav {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    max-width: none;
    padding: 8px;
    gap: 4px;
    border-radius: 26px;
  }

  .lrl-mobile-bottom-nav a,
  .lrl-mobile-bottom-nav button {
    min-width: 0;
    padding: 10px 7px;
    gap: 4px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  .lrl-mobile-bottom-nav a span:first-child,
  .lrl-mobile-bottom-nav button span:first-child {
    font-size: 15px;
    line-height: 1;
  }

  .lrl-mobile-bottom-nav a span:last-child,
  .lrl-mobile-bottom-nav button span:last-child {
    font-size: 14px;
    letter-spacing: -0.03em;
  }

  .lrl-mobile-bottom-nav a.is-active {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 390px) {
  .lrl-mobile-bottom-nav {
    left: 10px;
    right: 10px;
    padding: 7px;
  }

  .lrl-mobile-bottom-nav a,
  .lrl-mobile-bottom-nav button {
    padding: 9px 5px;
  }

  .lrl-mobile-bottom-nav a span:last-child,
  .lrl-mobile-bottom-nav button span:last-child {
    font-size: 14px;
  }
}


/* =========================================================
   Hero keyword sheen — shared utility
   One slow sweep across ONE hero keyword, per the brand's
   controlled-sparkle rule. Inherits whatever accent color the
   page already gives the element (currentColor), so it needs
   no per-page palette configuration.

   Usage:  <span class="lrl-sheen">keyword.</span>
   Override the highlight with --lrl-sheen-lift if needed.
   ========================================================= */
.lrl-sheen {
  --lrl-sheen-lift: #6ee7d8;
  background-image: linear-gradient(100deg,
    currentColor 18%,
    var(--lrl-sheen-lift) 48%,
    currentColor 78%);
  background-size: 280% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lrl-sheen 8.5s ease-in-out 1.2s infinite;
}
/* Auto-derive the highlight from the page's own accent where supported. */
@supports (color: color-mix(in oklab, red 50%, white)) {
  .lrl-sheen { --lrl-sheen-lift: color-mix(in oklab, currentColor 40%, #ffffff); }
}
@keyframes lrl-sheen {
  0%, 58% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .lrl-sheen {
    animation: none;
    background-image: none;
    -webkit-text-fill-color: currentColor;
  }
}


/* ---------------------------------------------------------
   Body reset — pages that do not carry a page-level class
   (e.g. /the-lab/) were inheriting the browser default 8px
   margin, which pushed every section 8px right and produced
   a horizontal scrollbar on phones.
   --------------------------------------------------------- */
body {
  margin: 0;
}

/* ---------------------------------------------------------
   Feed grid — three cards on desktop, one per row on phones.
   minmax(0, …) is required: plain fr tracks refuse to shrink
   below min-content, which is what pushed the third card
   74px past the viewport on a 375px screen.
   --------------------------------------------------------- */
.lrl-feed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.925fr) minmax(0, 0.925fr);
}

@media (max-width: 900px) {
  .lrl-feed-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ---------------------------------------------------------
   Multi-column content blocks that had no mobile breakpoint.
   minmax(0, 1fr) keeps tracks shrinkable so cards never push
   past the viewport.
   --------------------------------------------------------- */
.lrl-pair-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.lrl-trio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .lrl-pair-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lrl-trio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lrl-trio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
