/* Shared homepage design system. Mobile layout lives in mobile-home.css. */
body.page-home {
  --ink: #183b5b;
  --ink-deep: #183b5b;
  --blue: #3478b9;
  --blue-deep: #286398;
  --blue-soft: #eaf3fc;
  --text: #68788a;
  --paper: #fcfcfa;
  --tint: #f2f6fb;
  --line: #dfe7ef;
  --line-strong: #d4e3f0;
  --gold: #b59b70;
  --label: #8c7652;
  --radius-card: 16px;
  --radius-feature: 18px;
  --radius-icon: 12px;
  --icon-size: 44px;
  --icon-stroke: 1.6;
  --shadow-card: 0 4px 18px rgb(24 59 91 / 4%);
  --shadow-lift: 0 8px 26px rgb(24 59 91 / 7%);
  --mobile-shadow: var(--shadow-card);
  --feedback-time: 220ms;
  color: #26384a;
  background: var(--paper);
}

.page-home .wrap {
  max-width: 1200px;
}

.page-home .header {
  background: rgb(252 252 250 / 96%);
  border-bottom-color: var(--line);
}

.page-home .header-inner {
  min-height: 76px;
}

.page-home .brand {
  padding: 0;
}

.page-home .brand img {
  width: 156px;
}

.page-home .login-link {
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #f7fafd;
  color: var(--ink);
}

.page-home .login-link span {
  display: inline-flex;
  margin: 0;
}

.page-home .login-link svg {
  width: 14px;
  height: 14px;
}

.page-home .hero {
  padding: 70px 0 76px;
  background: var(--paper);
}

.page-home .hero::before,
.page-home .hero::after,
.page-home .hero-art::before,
.page-home .hero-icon-wrap::after {
  content: none;
}

.page-home .hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}

.page-home .hero-copy {
  max-width: 560px;
}

.page-home .eyebrow {
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 1.4px;
}

.page-home .eyebrow > span {
  width: 5px;
  height: 5px;
  background: var(--gold);
  box-shadow: none;
}

.page-home h1 {
  margin: 22px 0 24px;
  color: var(--ink);
  font-size: clamp(44px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -1px;
}

.page-home h1 em,
.page-home .about-column h2 em {
  background: none;
  color: var(--blue);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

.page-home .hero-intro {
  max-width: 500px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
}

.page-home .hero-art {
  min-height: 0;
  margin: 0;
  padding: 0;
}

.page-home .hero-icon-wrap {
  display: flex;
  width: 100%;
  max-width: 500px;
  flex-direction: column;
  align-items: center;
  aspect-ratio: auto;
  border-radius: 0;
  background: none;
  animation: none;
}

.page-home .hero-community-icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1036 / 864;
  object-fit: contain;
  filter: none;
  mix-blend-mode: multiply;
}

.page-home .hero-icon-wrap picture {
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 94%, transparent),
    linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent);
  mask-composite: intersect;
}

.page-home .hero-icon-caption {
  position: static;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  transform: none;
  backdrop-filter: none;
}

.page-home .hero-icon-caption i {
  width: 4px;
  height: 4px;
  box-shadow: none;
}

.page-home .hero-actions {
  margin-top: 28px;
}

.page-home .button {
  min-height: 48px;
  box-shadow: none;
  font-weight: 500;
  transition: background var(--feedback-time), color var(--feedback-time), border-color var(--feedback-time);
}

.page-home .button.primary {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: none;
}

.page-home .button.ghost {
  border-color: var(--line-strong);
  background: transparent;
  box-shadow: none;
}

.page-home .button span,
.page-home .heading-link > span {
  display: inline-flex;
  align-items: center;
}

.page-home .button svg,
.page-home .heading-link svg {
  width: 16px;
  height: 16px;
}

.page-home .section {
  padding-block: 80px;
}

.page-home .section-heading {
  margin-bottom: 32px;
}

.page-home .section-heading h2 {
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.5px;
}

.page-home .section-heading > p,
.page-home .heading-link {
  color: var(--text);
  border: 0;
  padding-right: 0;
}

.page-home .cohorts {
  background: #f8fafc;
}

.page-home .cohort-grid {
  gap: 24px;
}

.page-home .cohort-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-feature);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.page-home .cohort-visual,
.page-home .cohort-season .cohort-visual {
  aspect-ratio: 16 / 9;
  background: var(--blue-soft);
}

.page-home .cohort-season .cohort-visual::before,
.page-home .cohort-season .cohort-visual::after,
.page-home .cohort-number,
.page-home .cohort-badge {
  display: none;
}

.page-home .cohort-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .cohort-copy {
  padding: 26px 28px 20px;
}

.page-home .cohort-label {
  color: var(--label);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 1.4px;
}

.page-home .cohort-copy h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

.page-home .cohort-copy > p:not(.cohort-label) {
  margin-top: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
}

.page-home .cohort-tags span {
  background: var(--blue-soft);
  color: var(--text);
}

.page-home .cohort-tags {
  margin-bottom: 16px;
}

.page-home .cohort-link {
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding-top: 12px;
  border-top: 1px solid #edf1f5;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
}

.page-home .cohort-link > span,
.page-home .learning-column .learning-grid .go {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
}

.page-home .cohort-link svg,
.page-home .learning-grid .go svg {
  width: 14px;
  height: 14px;
}

.page-home .about-learning {
  background: var(--tint);
}

.page-home .about-learning::before {
  content: none;
}

.page-home .learning-hub-intro {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
}

.page-home .about-column h2 {
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

.page-home .about-learning .about-lead {
  margin-top: 20px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.95;
}

.page-home .about-points {
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  border: 0;
}

.page-home .about-points > div {
  padding: 18px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.page-home .about-points svg,
.page-home .learning-card-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  border: 0;
  border-radius: var(--radius-icon);
  background: var(--blue-soft);
  box-shadow: none;
  color: var(--blue);
}

.page-home .about-points svg {
  flex-shrink: 0;
  padding: 10px;
  stroke-width: var(--icon-stroke);
}

.page-home .about-points strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.page-home .about-points small {
  color: var(--text);
  font-size: 12px;
  line-height: 1.7;
}

.page-home .learning-hub-visual {
  min-height: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-card);
}

.page-home .learning-hub-visual img {
  min-height: 0;
  object-position: center;
}

.page-home .learning-hub-visual::before {
  background: linear-gradient(180deg, transparent 45%, rgb(17 41 62 / 78%));
}

.page-home .hub-orbit {
  display: none;
}

.page-home .learning-hub-courses {
  margin-top: 64px;
}

.page-home .learning-merged-head {
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom-color: var(--line);
}

.page-home .learning-merged-head h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

.page-home .learning-hub-note {
  color: var(--text);
  line-height: 1.9;
}

.page-home .learning-column .learning-grid {
  gap: 16px;
  grid-auto-rows: 1fr;
}

.page-home .learning-column .learning-card {
  min-height: 204px;
  gap: 16px;
  padding: 22px 22px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.page-home .learning-card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: var(--icon-stroke);
}

.page-home .learning-card-index {
  top: 22px;
  right: 20px;
  color: #c7d6e4;
  font-family: inherit;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -1px;
}

.page-home .learning-column .learning-grid strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

.page-home .learning-column .learning-grid small {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0;
}

.page-home .learning-topic {
  white-space: nowrap;
}

.page-home .learning-column .learning-grid .go {
  right: 18px;
  bottom: 16px;
}

/* Compact brand signature and a separate, quiet legal line. */
.page-home footer {
  padding: 28px 0 18px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  background: var(--ink);
}

.page-home .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 18px 28px;
  text-align: left;
}

.page-home .f-brand {
  flex-direction: row;
  gap: 20px;
}

.page-home .f-logo.f-logo-light img {
  width: 132px;
}

.page-home .f-brand-copy {
  padding-left: 20px;
  border-left: 1px solid rgb(255 255 255 / 18%);
}

.page-home .f-name {
  display: none;
}

.page-home .f-brand p {
  margin: 0;
  color: #d2dce5;
  font-size: 12px;
  line-height: 1.8;
}

.page-home .f-brand p span {
  color: #a9bdcf;
  font-size: 10px;
  letter-spacing: 0.4px;
}

.page-home .f-links {
  display: flex;
  justify-content: flex-end;
  gap: 0 24px;
  margin: 0;
  font-size: 12px;
}

.page-home .f-links a {
  justify-content: center;
  min-height: 44px;
  padding: 0;
  color: #d2dce5;
}

.page-home .back-top {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  color: #d2dce5;
  transition: border-color var(--feedback-time), background var(--feedback-time);
}

.page-home .back-top svg {
  width: 18px;
  height: 18px;
  stroke-width: var(--icon-stroke);
}

.page-home .f-meta {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 24px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  color: #afc1d1;
  font-size: 11px;
  line-height: 1.7;
  text-align: left;
}

.page-home .f-meta::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.page-home .f-copyright {
  max-width: none;
  font-size: inherit;
  line-height: inherit;
}

.page-home .f-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0 16px;
  width: auto;
  font-size: inherit;
  line-height: inherit;
}

.page-home .f-meta-row a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: inherit;
}

.page-home .police-record {
  flex-wrap: nowrap;
  gap: 4px;
}

.page-home .police-record img {
  width: 13px;
  height: 15px;
}

.page-home footer a:focus-visible {
  outline: 2px solid #d3b888;
  outline-offset: 4px;
}

.page-home .f-links a:hover,
.page-home .f-meta a:hover,
.page-home .back-top:hover {
  color: #fff;
}

.page-home .back-top:hover,
.page-home .back-top:active {
  border-color: #afc1d1;
  background: rgb(255 255 255 / 7%);
}

@media (max-width: 1020px) {
  .page-home .f-brand-copy {
    display: none;
  }
}

/* No continuous animation; touch devices get press feedback instead of sticky hover. */
.page-home .cohort-card,
.page-home .learning-card {
  transition: border-color var(--feedback-time), box-shadow var(--feedback-time), transform var(--feedback-time);
}

.page-home .button:hover,
.page-home .cohort-card:hover,
.page-home .learning-card:hover,
.page-home .brand:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.page-home .button:hover,
.page-home .brand:hover {
  box-shadow: none;
}

.page-home .cohort-card:hover .cohort-visual img,
.page-home .cohort-link:hover > span,
.page-home .learning-card:hover .go {
  transform: none;
}

.page-home .learning-card:hover .go {
  background: #fff;
  color: var(--blue);
}

html.js .page-home [data-reveal] {
  translate: 0 8px;
  transition: opacity 260ms ease, translate 260ms ease;
  transition-delay: 0s;
  will-change: auto;
}

html.js .page-home [data-reveal].in-view,
html.js .page-home .hero [data-reveal] {
  opacity: 1;
  translate: none;
}

html.js .page-home .hero [data-reveal] {
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .page-home .button.primary:hover {
    border-color: var(--blue-deep);
    background: var(--blue-deep);
  }

  .page-home .cohort-card:hover,
  .page-home .learning-card:hover {
    border-color: #b8d1e5;
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
  }

  .page-home .learning-card:hover .go {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
  }
}

@media (min-width: 769px) and (max-width: 1020px) {
  .page-home .hero {
    padding-block: 56px;
  }

  .page-home .hero-grid {
    gap: 28px;
  }

  .page-home h1 {
    font-size: 40px;
  }

  .page-home .hero-intro {
    font-size: 14px;
  }

  .page-home .hero-icon-caption {
    font-size: 9px;
    letter-spacing: 0;
  }

  .page-home .learning-hub-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-home .learning-hub-visual {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .page-home [data-reveal] {
    opacity: 1;
    translate: none;
    transition: none;
  }
}
