/* Approved LEV Forward lockup: leaf at left; name and both taglines at right.
   Load last so every page uses the same identity, including News and archives. */
body .brand-identity.brand-identity {
  --brand-mark-size: 72px;
  --brand-name-size: 28px;
  --brand-tagline-size: 14px;
  --brand-column-gap: 12px;
  display: inline-grid;
  grid-template-columns: var(--brand-mark-size) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  justify-content: start;
  column-gap: var(--brand-column-gap);
  row-gap: 3px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  color: #000;
  text-align: left;
  text-decoration: none;
  letter-spacing: 0;
}

body .brand-identity.brand-identity .brand {
  display: contents;
}

body .brand-identity.brand-identity .compass-mark {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  margin: 0;
  background: transparent url(lev-forward-bubble-leaf.webp) center / contain no-repeat;
}

body .brand-identity.brand-identity .brand-name {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #000;
  font: 750 var(--brand-name-size) / 1.15 Arial, Helvetica, sans-serif;
  letter-spacing: -.6px;
  white-space: nowrap;
}

body .brand-identity.brand-identity .brand-tagline {
  grid-column: 2;
  grid-row: 2;
  display: block;
  margin: 0;
  color: #000;
  font: 700 var(--brand-tagline-size) / 1.35 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-align: left;
}

body .brand-identity.brand-identity .brand-tagline > span {
  display: block;
  margin: 0;
  white-space: nowrap;
}

body .site-footer-compact .brand-identity {
  --brand-mark-size: 66px;
  --brand-name-size: 26px;
  --brand-column-gap: 10px;
}

body .plan-logo.brand-identity {
  --brand-mark-size: 62px;
  --brand-name-size: 25px;
  --brand-column-gap: 9px;
}

/* Give the complete lockup room before adding another subscription column. */
body .plans {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}

body .plans article {
  min-width: 0;
}

/* Keep the homepage heading semantic while using the same three-line lockup. */
body #home .hero-copy {
  --hero-mark-size: clamp(48px, 6.2vw, 100px);
  display: grid;
  grid-template-columns: var(--hero-mark-size) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: clamp(8px, 1vw, 16px);
  row-gap: 4px;
}

body #home .hero-logo {
  display: contents;
}

body #home .hero-logo .compass-mark {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: var(--hero-mark-size);
  height: var(--hero-mark-size);
  margin: 0;
}

body #home .hero-logo .brand-name {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #000;
  font: 750 clamp(24px, 3.2vw, 48px) / 1.15 Arial, Helvetica, sans-serif;
  letter-spacing: -.6px;
  white-space: nowrap;
}

body #home h1.hero-tagline {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #000;
  font: 700 clamp(14px, 1.55vw, 23px) / 1.35 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body #home h1.hero-tagline > span {
  display: block;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

@media (max-width: 760px) {
  body .header-brand.brand-identity {
    --brand-mark-size: 64px;
    --brand-name-size: 27px;
    --brand-column-gap: 10px;
    flex: 0 1 auto;
  }
}

@media (max-width: 700px) {
  body #home .hero-copy {
    --hero-mark-size: 70px;
    column-gap: 10px;
  }

  body #home .hero-logo .brand-name {
    font-size: clamp(28px, 7.5vw, 38px);
  }

  body #home h1.hero-tagline {
    font-size: clamp(14px, 3.8vw, 18px);
  }
}

@media (max-width: 480px) {
  .site-header-grouped .site-header-brand-row {
    flex-wrap: wrap;
  }

  .site-header-grouped .site-menu-toggle {
    flex-basis: 100%;
    width: 100%;
  }
}

@media (max-width: 380px) {
  body .plans article {
    padding: 14px;
  }

  body .plan-logo.brand-identity {
    --brand-mark-size: 46px;
    --brand-name-size: 24px;
    --brand-column-gap: 8px;
  }
}
