/* Guide-first Afrolu homepage. Kept separate from route-specific editorial CSS. */
.home-editorial {
  --home-ink: #152038;
  --home-ink-soft: #445069;
  --home-paper: #fbfaf7;
  --home-warm: #f3eee7;
  --home-red: #bd2940;
  --home-red-dark: #971e32;
  --home-blue: #155fcb;
  --home-line: #d9dee7;
  --home-dark: #111a2d;
  overflow: hidden;
  color: var(--home-ink);
  background: var(--home-paper);
}

.home-editorial a {
  text-underline-offset: .2em;
}

.home-editorial-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 7vw, 7rem) 0 clamp(4rem, 8vw, 7.5rem);
  border-bottom: 1px solid var(--home-line);
  background:
    radial-gradient(circle at 9% 8%, rgba(189, 41, 64, .09), transparent 24rem),
    radial-gradient(circle at 91% 82%, rgba(21, 95, 203, .08), transparent 28rem),
    #fbfaf7;
}

.home-editorial-hero::before {
  position: absolute;
  z-index: -1;
  top: 2.5rem;
  right: -7rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(21, 32, 56, .1);
  border-radius: 50%;
  content: "";
}

.home-editorial-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(26rem, .84fr);
  grid-template-areas:
    "copy feature"
    "proof feature";
  align-items: center;
  column-gap: clamp(2.5rem, 6vw, 6.5rem);
  row-gap: 2.25rem;
}

.home-editorial-hero-copy {
  grid-area: copy;
  max-width: 44rem;
}

.home-kicker {
  margin: 0 0 .85rem;
  color: var(--home-red-dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-editorial-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  letter-spacing: -.048em;
  line-height: .98;
}

.home-editorial-hero h1 em {
  display: block;
  margin-top: .12em;
  color: var(--home-red);
  font-style: normal;
}

.home-editorial-deck {
  max-width: 41rem;
  margin: 1.65rem 0 0;
  color: var(--home-ink-soft);
  font-size: clamp(1.06rem, 1.45vw, 1.22rem);
  line-height: 1.72;
}

.home-editorial-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

.home-editorial-actions .btn,
.home-library-cta .btn {
  justify-content: center;
  min-height: 3.2rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(189, 41, 64, .16);
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--home-ink);
  font-size: .94rem;
  font-weight: 750;
}

.home-text-link span,
.home-featured-guide strong span,
.home-guide-card strong span,
.home-topic-card strong span,
.home-path-card strong span,
.home-tool-card strong span {
  transition: transform 160ms ease;
}

.home-text-link:hover span,
.home-featured-guide:hover strong span,
.home-guide-card:hover strong span,
.home-topic-card:hover strong span,
.home-path-card:hover strong span,
.home-tool-card:hover strong span {
  transform: translateX(.2rem);
}

.home-editorial-proof {
  display: grid;
  grid-area: proof;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 39rem;
  margin: 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--home-line);
}

.home-editorial-proof div {
  padding: 0 1.1rem;
  border-right: 1px solid var(--home-line);
}

.home-editorial-proof div:first-child {
  padding-left: 0;
}

.home-editorial-proof div:last-child {
  border-right: 0;
}

.home-editorial-proof dt {
  color: var(--home-ink);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.home-editorial-proof dd {
  margin-top: .45rem;
  color: var(--home-ink-soft);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.home-featured-guide {
  display: block;
  grid-area: feature;
  overflow: hidden;
  border: 1px solid rgba(21, 32, 56, .14);
  border-radius: 1.65rem;
  color: #fff;
  background: var(--home-dark);
  box-shadow: 0 2.2rem 5rem rgba(21, 32, 56, .2);
  text-decoration: none;
  transform: rotate(1deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-featured-guide:hover {
  box-shadow: 0 2.6rem 5.5rem rgba(21, 32, 56, .26);
  transform: rotate(0) translateY(-.25rem);
}

.home-featured-guide picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  background: #e9edf3;
}

.home-featured-guide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.home-featured-guide:hover img {
  transform: scale(1.025);
}

.home-featured-guide-body {
  padding: 1.5rem clamp(1.35rem, 3vw, 2rem) 1.75rem;
}

.home-featured-guide-meta,
.home-guide-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.home-featured-guide-meta span {
  color: #ff9cac;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-featured-guide-meta small {
  color: #c5cddd;
  font-size: .76rem;
}

.home-featured-guide h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  letter-spacing: -.025em;
  line-height: 1.16;
}

.home-featured-guide p {
  margin: .75rem 0 1rem;
  color: #cbd2df;
  font-size: .92rem;
  line-height: 1.58;
}

.home-featured-guide strong {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #fff;
  font-size: .84rem;
}

.home-featured-guide--empty {
  background: #fff;
}

.home-topic-section,
.home-guide-section,
.home-path-section,
.home-standard-section,
.home-tools-section,
.home-limits-section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.home-topic-section {
  background: #fff;
}

.home-section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.home-section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: none;
}

.home-section-heading h2,
.home-library-cta h2,
.home-standard-copy h2,
.home-limits-heading h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(2.15rem, 4vw, 3.6rem);
  letter-spacing: -.037em;
  line-height: 1.05;
}

.home-section-heading > p:not(.home-kicker),
.home-section-heading--split > p {
  max-width: 34rem;
  margin: .9rem 0 0;
  color: var(--home-ink-soft);
  line-height: 1.65;
}

.home-section-heading--split > p,
.home-section-heading--split > .home-text-link {
  flex: 0 0 min(25rem, 34%);
  margin: 0 0 .28rem;
}

.home-section-heading--split > .home-text-link {
  justify-content: flex-end;
}

.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}

.home-topic-card {
  position: relative;
  min-height: 14.5rem;
  padding: 1.5rem;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  color: var(--home-ink);
  background: #fff;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.home-topic-card::after {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  height: .2rem;
  background: var(--home-red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.home-topic-card:hover {
  color: var(--home-ink);
  background: #fcf7f5;
}

.home-topic-card:hover::after {
  transform: scaleX(1);
}

.home-topic-count {
  display: inline-flex;
  padding: .35rem .62rem;
  border-radius: 999px;
  color: var(--home-red-dark);
  background: #fbe8ec;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-topic-card h3 {
  margin: 1.2rem 0 .55rem;
  color: var(--home-ink);
  font-size: 1.35rem;
  line-height: 1.2;
}

.home-topic-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 1.15rem;
  color: var(--home-ink-soft);
  font-size: .86rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-topic-card strong {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--home-ink);
  font-size: .78rem;
}

.home-guide-section {
  background: var(--home-warm);
}

.home-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-guide-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(21, 32, 56, .14);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 .8rem 2.4rem rgba(21, 32, 56, .07);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.home-guide-card:hover {
  box-shadow: 0 1.2rem 3rem rgba(21, 32, 56, .12);
  transform: translateY(-.25rem);
}

.home-guide-card > a {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: var(--home-ink);
  text-decoration: none;
}

.home-guide-card picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  background: #e8ebf0;
}

.home-guide-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.home-guide-card:hover img {
  transform: scale(1.025);
}

.home-guide-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem 1.35rem 1.45rem;
}

.home-guide-card-meta span {
  overflow: hidden;
  color: var(--home-red-dark);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-guide-card-meta small {
  flex: 0 0 auto;
  color: #737d90;
  font-size: .72rem;
}

.home-guide-card h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: 1.32rem;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.home-guide-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: .7rem 0 1.05rem;
  color: var(--home-ink-soft);
  font-size: .86rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-guide-card strong {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  color: var(--home-ink);
  font-size: .78rem;
}

.home-guide-card--lead {
  grid-column: span 2;
}

.home-guide-card--lead > a {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(15rem, .75fr);
}

.home-guide-card--lead picture {
  height: 100%;
  min-height: 21rem;
  aspect-ratio: auto;
}

.home-guide-card--lead .home-guide-card-body {
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.3rem);
}

.home-guide-card--lead h3 {
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
}

.home-library-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.25rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 1.15rem;
  color: #fff;
  background: var(--home-dark);
}

.home-library-cta .home-kicker {
  color: #ff9cac;
}

.home-library-cta h2 {
  max-width: 20ch;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.home-library-cta .btn {
  flex: 0 0 auto;
}

.home-path-section {
  background: #fff;
}

.home-path-grid,
.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-path-card {
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid var(--home-line);
  border-radius: 1rem;
  color: var(--home-ink);
  background: #fff;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.home-path-card:hover {
  border-color: rgba(189, 41, 64, .6);
  color: var(--home-ink);
  transform: translateY(-.2rem);
}

.home-path-card > span {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  color: var(--home-red-dark);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
}

.home-path-card h3 {
  margin: 2.6rem 0 .8rem;
  color: var(--home-ink);
  font-size: 1.65rem;
  line-height: 1.15;
}

.home-path-card p {
  margin: 0 0 1.3rem;
  color: var(--home-ink-soft);
  font-size: .9rem;
  line-height: 1.62;
}

.home-path-card strong {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  color: var(--home-ink);
  font-size: .82rem;
}

.home-standard-section {
  color: #fff;
  background: var(--home-dark);
}

.home-standard-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6.5rem);
}

.home-standard-visual {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.35rem;
  background: #fff;
}

.home-standard-visual picture,
.home-standard-visual img {
  display: block;
  width: 100%;
}

.home-standard-visual img {
  height: auto;
}

.home-standard-visual figcaption {
  padding: 1rem 1.2rem;
  color: #5b6578;
  background: #fff;
  font-size: .75rem;
  line-height: 1.5;
}

.home-standard-copy .home-kicker {
  color: #ff9cac;
}

.home-standard-copy h2 {
  color: #fff;
}

.home-standard-intro {
  margin: 1rem 0 1.6rem;
  color: #c9d0de;
  font-size: 1.02rem;
  line-height: 1.7;
}

.home-standard-list {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.home-standard-list li {
  display: grid;
  grid-template-columns: minmax(9rem, .7fr) minmax(0, 1.3fr);
  gap: 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.home-standard-list strong {
  color: #fff;
  font-size: .86rem;
}

.home-standard-list span {
  color: #b8c1d1;
  font-size: .84rem;
  line-height: 1.55;
}

.home-standard-copy .home-text-link {
  color: #fff;
}

.home-tools-section {
  background: #fff;
}

.home-tool-card {
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  padding: 1.7rem;
  border: 1px solid var(--home-line);
  border-radius: 1rem;
  color: var(--home-ink);
  background: var(--home-paper);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.home-tool-card:hover {
  color: var(--home-ink);
  background: #f7ecee;
  transform: translateY(-.2rem);
}

.home-tool-card > span {
  color: var(--home-red-dark);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-tool-card h3 {
  margin: 1.6rem 0 .65rem;
  color: var(--home-ink);
  font-size: 1.45rem;
}

.home-tool-card p {
  margin: 0 0 1.2rem;
  color: var(--home-ink-soft);
  font-size: .86rem;
  line-height: 1.6;
}

.home-tool-card strong {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  color: var(--home-ink);
  font-size: .8rem;
}

.home-limits-section {
  padding-top: 0;
  background: #fff;
}

.home-limits-section .container {
  padding-top: clamp(2.2rem, 4vw, 3.3rem);
  padding-bottom: clamp(2.2rem, 4vw, 3.3rem);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.home-limits-heading {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 2rem;
  align-items: start;
}

.home-limits-heading h2 {
  max-width: 26ch;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.home-limits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2.2rem;
}

.home-limits-grid div {
  padding-left: 1rem;
  border-left: .22rem solid var(--home-red);
}

.home-limits-grid strong {
  color: var(--home-ink);
  font-size: .86rem;
}

.home-limits-grid p {
  margin: .35rem 0 0;
  color: var(--home-ink-soft);
  font-size: .8rem;
  line-height: 1.55;
}

.home-editorial a:focus-visible {
  outline: 3px solid rgba(21, 95, 203, .55);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .home-editorial-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, .8fr);
    column-gap: 3rem;
    row-gap: 2.25rem;
  }

  .home-editorial-hero h1 {
    font-size: clamp(3rem, 5.8vw, 4.35rem);
  }

  .home-guide-card--lead > a {
    grid-template-columns: 1fr;
  }

  .home-guide-card--lead picture {
    min-height: 0;
    aspect-ratio: 1200 / 630;
  }
}

@media (max-width: 860px) {
  .home-editorial-hero-grid,
  .home-standard-grid {
    grid-template-columns: 1fr;
  }

  .home-editorial-hero-grid {
    grid-template-areas:
      "copy"
      "feature"
      "proof";
  }

  .home-editorial-hero-copy {
    max-width: 49rem;
  }

  .home-editorial-hero h1 {
    max-width: 11ch;
    font-size: clamp(3.2rem, 9.5vw, 5rem);
  }

  .home-featured-guide {
    width: min(100%, 43rem);
    transform: none;
  }

  .home-editorial-proof {
    width: min(100%, 39rem);
    margin-top: 0;
  }

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

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

  .home-guide-card--lead {
    grid-column: 1 / -1;
  }

  .home-path-grid,
  .home-tool-grid {
    grid-template-columns: 1fr;
  }

  .home-path-card,
  .home-tool-card {
    min-height: 0;
  }

  .home-path-card h3 {
    margin-top: 1.8rem;
  }

  .home-standard-visual {
    max-width: 43rem;
  }
}

@media (max-width: 680px) {
  .home-editorial-hero,
  .home-topic-section,
  .home-guide-section,
  .home-path-section,
  .home-standard-section,
  .home-tools-section,
  .home-limits-section {
    padding-top: 3.8rem;
    padding-bottom: 3.8rem;
  }

  .home-editorial-hero {
    padding-top: 3.25rem;
  }

  .home-editorial-hero-grid {
    gap: 2rem;
  }

  .home-editorial-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .home-editorial-deck {
    font-size: 1rem;
  }

  .home-editorial-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-editorial-actions .home-text-link {
    justify-content: center;
    min-height: 2.5rem;
  }

  .home-editorial-proof {
    gap: .8rem;
  }

  .home-editorial-proof div {
    padding: 0 .7rem;
  }

  .home-editorial-proof dt {
    font-size: 1.4rem;
  }

  .home-editorial-proof dd {
    font-size: .61rem;
  }

  .home-featured-guide {
    border-radius: 1rem;
  }

  .home-section-heading--split,
  .home-library-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-section-heading--split > p,
  .home-section-heading--split > .home-text-link {
    flex-basis: auto;
    justify-content: flex-start;
  }

  .home-topic-grid,
  .home-guide-grid {
    grid-template-columns: 1fr;
  }

  .home-guide-card--lead {
    grid-column: auto;
  }

  .home-guide-card--lead h3 {
    font-size: 1.55rem;
  }

  .home-library-cta .btn {
    width: 100%;
  }

  .home-standard-list li,
  .home-limits-heading,
  .home-limits-grid {
    grid-template-columns: 1fr;
  }

  .home-standard-list li {
    gap: .35rem;
  }

  .home-limits-grid {
    gap: 1.35rem;
  }

  .home-limits-section {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-editorial *,
  .home-editorial *::before,
  .home-editorial *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
