/*
 * Home page enrichment styles
 * These styles power the additional sections on the home page such as
 * statistics, team and testimonials. Inspired by the clean and modular
 * layouts found on enterprise portals like Confluence and Jira. Each
 * section uses flexible containers so they adapt gracefully across
 * viewport sizes. Cards use the existing panel colors and shadows to
 * maintain a consistent visual language.
 */

/* Stats section: three cards showing counts of series, articles and categories */
.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
  margin-top: 20px;
}

/* Advantages section: highlight key benefits of the platform. Structured similar to team cards but without personal details. */
.home-advantages {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
  margin-top: 20px;
}
.adv-card {
  flex: 1 1 22%;
  background: var(--panel);
  border-radius: var(--rad-md);
  padding: clamp(20px, 3vw, 32px);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--tr-fast);
}
.adv-card:hover {
  transform: translateY(-4px);
}
.adv-card .ic {
  width: clamp(56px, 8vw, 72px);
  height: clamp(56px, 8vw, 72px);
  border-radius: 50%;
  margin: 0 auto clamp(12px, 2vw, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--glass-bd);
}
.adv-card h3 {
  margin: 0;
  font-size: clamp(18px, 3.8vw, 24px);
  font-weight: 700;
  color: var(--txt);
}
.adv-card p {
  margin-top: 8px;
  font-size: clamp(13px, 3vw, 15px);
  color: var(--muted);
  line-height: 1.45;
}
.stat-card {
  flex: 1 1 28%;
  background: var(--panel);
  border-radius: var(--rad-md);
  padding: clamp(20px, 3vw, 32px);
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card h3 {
  margin: 0;
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 700;
  color: var(--brand-1);
  line-height: 1.2;
}
.stat-card p {
  margin-top: 6px;
  font-size: clamp(14px, 3vw, 18px);
  color: var(--muted);
  font-weight: 500;
}

/* Team section: display team member cards */
.home-team {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
  margin-top: 20px;
}
.team-card {
  flex: 1 1 28%;
  background: var(--panel);
  border-radius: var(--rad-md);
  padding: clamp(20px, 3vw, 32px);
  text-align: center;
  box-shadow: var(--shadow);
}
.team-card .avatar {
  width: clamp(64px, 9vw, 80px);
  height: clamp(64px, 9vw, 80px);
  border-radius: 50%;
  margin: 0 auto clamp(12px, 2vw, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--glass-bd);
}
.team-card h3 {
  margin: 0;
  font-size: clamp(18px, 3.8vw, 24px);
  font-weight: 700;
  color: var(--txt);
}
.team-card .role {
  margin-top: 4px;
  font-size: clamp(14px, 3.2vw, 16px);
  color: var(--brand-1);
  font-weight: 600;
}
.team-card p {
  margin-top: 8px;
  font-size: clamp(13px, 3vw, 15px);
  color: var(--muted);
  line-height: 1.45;
}

/* Testimonials section */
.home-testimonials {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
  margin-top: 20px;
}
.testimonial-card {
  position: relative;
  background: var(--panel);
  border-radius: var(--rad-md);
  padding: clamp(24px, 3vw, 36px);
}

/* Home footer policy and layout anchor. */
/* Footer is hidden by default in markup; only visible on the home route. */
body:not([data-route-home="1"]) footer#footer,
footer#footer.hide {
  display: none !important;
}

body[data-route-home="1"] footer#footer {
  display: block !important;
}

/* Home footer: compact left dock, visually anchored to the same page gutter. */
footer#footer {
  justify-content: flex-start !important;
  text-align: left !important;
  align-items: flex-start !important;
}

footer#footer .container.foot {
  max-width: none !important;
  width: min(100% - clamp(28px, 6vw, 72px), 420px) !important;
  margin-left: clamp(20px, 4vw, 48px) !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

footer#footer .foot-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: start !important;
  justify-items: start !important;
  align-items: start !important;
  text-align: left !important;
  gap: 16px !important;
}

footer#footer .foot-grid > div {
  width: 100% !important;
  justify-self: start !important;
  text-align: left !important;
}

footer#footer .footer-mark,
footer#footer .logo-badge {
  display: inline-grid !important;
  margin: 0 0 12px 0 !important;
}

footer#footer .foot a,
footer#footer .foot h4,
footer#footer .foot div {
  text-align: left !important;
}

/* ===== Premium visual polish: page composition ===== */
.hero-premium {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr);
  gap: clamp(22px, 3vw, 32px);
  align-items: stretch;
  padding: clamp(30px, 4vw, 42px);
  overflow: hidden;
}

.hero-premium::after {
  content: "";
  position: absolute;
  inset: auto -12% -26% auto;
  width: clamp(240px, 36vw, 480px);
  height: clamp(240px, 36vw, 480px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 144, 246, .18), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-aside {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.hero-stat-list {
  display: grid;
  gap: 14px;
  margin: 10px 0 18px;
}

.hero-stat-list div {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-stat-list strong {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.05;
}

.hero-stat-list span,
.hero-note {
  color: var(--text-soft);
}

.portal-overview,
.featured-shell {
  display: grid;
  gap: 24px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
}

.portal-card {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-1) 96%, rgba(255,255,255,.04) 4%), color-mix(in oklab, var(--surface-3) 100%, transparent));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft), var(--shadow-line);
  transition: transform var(--tr-fast), border-color var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
}

.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift), var(--shadow-line);
}

.portal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 92%, #fff 8%), color-mix(in oklab, var(--surface-3) 100%, transparent));
}

.portal-icon svg {
  width: 22px;
  height: 22px;
}

.portal-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.portal-card span:last-child {
  color: var(--text-soft);
  line-height: 1.65;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
  gap: clamp(14px, 2.2vw, 22px);
}

.featured-primary,
.featured-secondary,
.featured-tertiary {
  padding: clamp(22px, 2.7vw, 30px);
  border-radius: 24px;
}

.featured-primary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.featured-primary h3,
.featured-secondary h3 {
  margin: 14px 0 10px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--text-quieter);
  font-size: 14px;
}

.featured-side {
  display: grid;
  gap: 14px;
}

.featured-secondary h3 {
  font-size: clamp(20px, 2.6vw, 28px);
}

.featured-tertiary {
  display: grid;
  gap: 10px;
}

.featured-tertiary h4 {
  font-size: 18px;
  line-height: 1.32;
}

#series-grid,
.kb-grid {
  gap: clamp(16px, 2.4vw, 24px);
}

.controls.series-controls,
.controls.kb-controls {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: color-mix(in oklab, var(--surface-2) 82%, transparent);
  border: 1px solid var(--line-soft);
}

.series-detail {
  gap: 28px;
}

.series-detail .video-embed,
.infra-topology-panel,
.term-help-panel {
  border-radius: 22px;
}

.settings-group {
  padding: 24px;
  border-radius: 22px;
}

.term-help-panel,
.infra-topology-panel,
.settings-group {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-1) 96%, rgba(255,255,255,.04) 4%), color-mix(in oklab, var(--surface-3) 100%, transparent));
  box-shadow: var(--shadow-soft), var(--shadow-line);
}

@media (max-width: 1100px) {
  .hero-premium,
  .featured-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .hero-premium {
    padding: 22px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .featured-primary h3,
  .featured-secondary h3 {
    font-size: clamp(22px, 6vw, 28px);
  }
}


/* ===== Production polish pass: home and listing composition ===== */
.hero-premium {
  padding: clamp(28px, 4vw, 38px);
  gap: clamp(18px, 2.8vw, 28px);
}

.hero-premium .title-xxl {
  font-size: clamp(30px, 4.8vw, 60px);
  max-width: 13ch;
  margin-bottom: 14px;
}

.hero-premium .lead {
  font-size: clamp(15px, 1.7vw, 18px);
  max-width: 64ch;
}

.hero-cta {
  margin-top: 22px;
}

.hero-aside {
  padding: clamp(20px, 2.4vw, 28px);
}

.hero-stat-list {
  gap: 14px;
}

.portal-grid {
  gap: clamp(12px, 1.8vw, 18px);
}

.portal-card {
  min-height: 214px;
  padding: clamp(20px, 2.4vw, 26px);
}

.featured-primary,
.featured-secondary,
.featured-tertiary {
  min-height: 100%;
}

.featured-side {
  gap: 14px;
}

.series-shell .section-copy,
.discover-shell .section-copy {
  margin-bottom: 22px;
}

.series-shell-title,
.discover-title {
  font-size: clamp(28px, 4.2vw, 52px);
}

.page + .page {
  border-top: 1px solid rgba(255,255,255,.03);
}

@media (max-width: 900px) {
  .hero-premium {
    padding: 24px;
  }

  .portal-card {
    min-height: 0;
  }
}

/* ===== Home pass 8: restrained editorial composition ===== */
.home-shell {
  width: min(100%, 1220px);
  margin-inline: auto;
}

.home-hero-pass8 {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 3.2vw, 36px);
  align-items: start;
  padding-block: clamp(20px, 2vw, 28px);
}

.home-hero-copy,
.home-hero-panel,
.home-direction-card,
.home-start-card,
.home-preview-block {
  position: relative;
}

.home-hero-title {
  margin: 0 0 18px;
  max-width: 10ch;
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.home-hero-lead {
  max-width: 62ch;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.home-hero-actions {
  gap: 12px;
  padding-top: 8px;
}

.home-hero-actions .btn {
  flex: 0 0 auto;
  min-width: 190px;
}

.home-hero-panel {
  min-height: 100%;
  padding: clamp(24px, 2.8vw, 30px);
}

.home-metric-list {
  display: grid;
  gap: 16px;
  margin: 8px 0 22px;
}

.home-metric-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.home-metric-list strong {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.home-metric-list span,
.home-panel-note {
  color: var(--text-soft);
}

.home-panel-note {
  margin: 0;
  line-height: 1.65;
}

.home-section-copy {
  max-width: 72ch;
  margin-bottom: 18px;
}

.home-section-title {
  max-width: 14ch;
}

.home-direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-direction-card {
  display: grid;
  gap: 10px;
  padding: 20px 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 92%, transparent), color-mix(in oklab, var(--surface-3) 100%, transparent));
  box-shadow: var(--shadow-line);
  transition: border-color var(--tr-fast), background var(--tr-fast), box-shadow var(--tr-fast);
}

.home-direction-card strong {
  color: var(--txt);
  font-size: 20px;
  line-height: 1.2;
}

.home-direction-card span {
  color: var(--text-soft);
  line-height: 1.55;
}

.home-direction-card:hover,
.home-direction-card:focus-visible {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-1) 92%, transparent), color-mix(in oklab, var(--surface-3) 100%, transparent));
  transform: none;
  box-shadow: var(--shadow-soft), var(--shadow-line);
}

.home-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
}

.home-start-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 30px);
  min-height: 310px;
}

.home-start-card h3 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.home-start-card .muted {
  display: block;
  -webkit-line-clamp: unset;
  max-width: 54ch;
  line-height: 1.6;
}

.home-start-actions {
  margin-top: auto;
  gap: 12px;
}

.home-start-actions > :only-child {
  max-width: none;
  flex: 0 0 auto;
  min-width: 220px;
}

.home-start-card-primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 92%, transparent), color-mix(in oklab, var(--surface-3) 100%, transparent));
}

.home-preview-pass8 {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
}

.home-preview-block .grid {
  margin-top: 8px;
}

.home-preview-block .card {
  min-height: 100%;
}

.home-preview-block .card h3 {
  min-height: calc(1.25em * 2);
}

.home-preview-block .tags {
  min-height: 28px;
}

.home-preview-block .section-gap-top {
  padding-top: 16px;
}

@media (max-width: 1100px) {
  .home-direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-start-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .home-hero-pass8 {
    grid-template-columns: 1fr;
  }

  .home-hero-title {
    max-width: 11ch;
    font-size: clamp(38px, 10vw, 58px);
  }

  .home-hero-actions .btn {
    min-width: 0;
    flex: 1 1 220px;
  }
}

@media (max-width: 700px) {
  .home-direction-grid {
    grid-template-columns: 1fr;
  }

  .home-start-card {
    min-height: auto;
  }

  .home-start-card h3 {
    font-size: clamp(24px, 7vw, 34px);
    max-width: 14ch;
  }
}

/* ===== Pass 9: calmer home composition ===== */
.home-shell {
  width: min(100%, 1180px);
}

.home-hero-pass9 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.78fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
  padding-block: clamp(18px, 2vw, 26px);
}

.home-hero-title {
  margin: 0 0 16px;
  max-width: 8.5ch;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.home-hero-lead {
  max-width: 60ch;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.68;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.home-hero-actions .btn {
  min-width: 0;
}

.home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.home-hero-meta span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface-2) 86%, transparent);
  border: 1px solid var(--line-soft);
  color: var(--text-soft);
}

.home-hero-meta strong {
  color: var(--txt);
  font-size: 15px;
}

.home-portal-map {
  padding: 24px;
}

.home-map-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.home-map-list a {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  text-decoration: none;
  background: color-mix(in oklab, var(--surface-2) 84%, transparent);
}

.home-map-list a strong {
  color: var(--txt);
  font-size: 16px;
  line-height: 1.2;
}

.home-map-list a span {
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 14px;
}

.home-map-list a:hover,
.home-map-list a:focus-visible {
  border-color: var(--line-strong);
  background: color-mix(in oklab, var(--surface-1) 88%, transparent);
}

.home-directions-pass9,
.home-start-pass9,
.home-preview-pass9 {
  display: grid;
  gap: 18px;
}

.home-direction-grid-pass9 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-direction-card {
  gap: 12px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 90%, transparent), color-mix(in oklab, var(--surface-3) 98%, transparent));
}

.home-direction-card strong {
  font-size: 19px;
}

.home-start-grid-pass9 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-start-card {
  min-height: 0;
  gap: 18px;
  padding: 24px;
}

.home-start-top {
  display: grid;
  gap: 12px;
}

.home-start-card h3 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.12;
}

.home-start-card .muted {
  max-width: 50ch;
  line-height: 1.62;
}

.home-start-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-start-actions .btn,
.home-list-actions .btn {
  min-width: 0;
}

.home-preview-pass9 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-preview-block {
  padding: 24px;
}

.home-list-stack {
  display: grid;
  gap: 12px;
}

.home-list-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: color-mix(in oklab, var(--surface-2) 84%, transparent);
}

.home-list-copy {
  display: grid;
  gap: 6px;
}

.home-list-copy h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.home-list-copy .muted {
  display: block;
  line-height: 1.56;
}

.home-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-preview-block .section-gap-top {
  padding-top: 18px;
}

@media (max-width: 980px) {
  .home-hero-pass9,
  .home-preview-pass9,
  .home-start-grid-pass9 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home-direction-grid-pass9 {
    grid-template-columns: 1fr;
  }

  .home-hero-title {
    max-width: 10ch;
    font-size: clamp(30px, 9vw, 44px);
  }
}

/* ===== Pass 11: home page editorial rebuild ===== */
.home-shell {
  width: min(100%, 1160px);
}

.home-shell.page {
  padding-block: clamp(34px, 5vw, 64px);
}

.home-shell.page + .home-shell.page {
  border-top: 1px solid color-mix(in oklab, var(--line-soft) 72%, transparent);
}

.home-flow-stack {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}

.home-section-copy {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 30px);
}

.home-section-copy-wide {
  max-width: 76ch;
}

.home-section-copy.compact,
.home-section-copy-compact-pass11 {
  gap: 10px;
  margin-bottom: 18px;
}

.home-section-title,
.home-section-title-wide {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.home-section-intro,
.home-section-copy .section-intro {
  margin: 0;
  max-width: 66ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.78;
}

.home-card-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--line-soft) 82%, transparent);
  background: color-mix(in oklab, var(--surface-2) 76%, transparent);
  color: color-mix(in oklab, var(--txt) 70%, var(--muted) 30%);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hero-pass11 {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(300px, .78fr);
  gap: clamp(28px, 4vw, 46px);
  align-items: start;
}

.home-hero-copy {
  padding-top: 6px;
}

.home-hero-title {
  margin: 0;
  max-width: 10.2ch;
  font-size: clamp(42px, 5.9vw, 72px);
  line-height: .98;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.home-hero-lead {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.8;
  color: color-mix(in oklab, var(--txt) 80%, var(--muted) 20%);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.home-hero-actions .btn {
  min-height: 46px;
  min-width: 180px;
}

.home-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 2px 0 0;
}

.home-hero-metrics div {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--line-soft) 78%, transparent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 72%, transparent), color-mix(in oklab, var(--surface-3) 94%, transparent));
}

.home-hero-metrics dt {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-hero-metrics dd {
  margin: 0;
  color: var(--txt);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  font-weight: 700;
}

.home-hero-panel {
  padding: clamp(24px, 2.7vw, 30px);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 82%, transparent), color-mix(in oklab, var(--surface-3) 98%, transparent));
  box-shadow: var(--shadow-line);
}

.home-panel-heading {
  display: grid;
  gap: 10px;
}

.home-panel-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.home-map-list {
  display: grid;
  gap: 12px;
}

.home-map-list a {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--line-soft) 78%, transparent);
  text-decoration: none;
  background: color-mix(in oklab, var(--surface-2) 78%, transparent);
  transition: border-color var(--tr-fast), background var(--tr-fast), box-shadow var(--tr-fast);
}

.home-map-list a strong,
.home-direction-card strong,
.home-list-copy h3,
.home-start-card h3 {
  display: block;
  overflow: visible;
  min-height: 0;
}

.home-map-list a strong {
  color: var(--txt);
  font-size: 17px;
  line-height: 1.28;
}

.home-map-list a span {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.home-map-list a:hover,
.home-map-list a:focus-visible {
  border-color: var(--line-strong);
  background: color-mix(in oklab, var(--surface-1) 88%, transparent);
  box-shadow: var(--shadow-line);
  transform: none;
}

.home-panel-note {
  margin: 0;
  max-width: 34ch;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.home-directions-pass11,
.home-start-pass11,
.home-preview-pass11 {
  display: grid;
  gap: 0;
}

.home-direction-grid-pass11 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-direction-card-pass11 {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid color-mix(in oklab, var(--line-soft) 80%, transparent);
  border-radius: 22px;
  text-decoration: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 80%, transparent), color-mix(in oklab, var(--surface-3) 96%, transparent));
  box-shadow: var(--shadow-line);
}

.home-direction-card-pass11 strong {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.home-direction-card-pass11 > span:last-child {
  display: block;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
  font-size: 15px;
}

.home-direction-card-pass11:hover,
.home-direction-card-pass11:focus-visible {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-1) 84%, transparent), color-mix(in oklab, var(--surface-3) 96%, transparent));
  box-shadow: var(--shadow-soft), var(--shadow-line);
  transform: none;
}

.home-start-grid-pass11 {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 18px;
}

.home-start-card-pass11 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  min-height: 0;
  border-radius: 24px;
}

.home-start-card-pass11.home-start-card-primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 84%, transparent), color-mix(in oklab, var(--surface-3) 98%, transparent));
}

.home-start-top {
  display: grid;
  gap: 14px;
}

.home-start-card-pass11 h3 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.home-start-card-pass11 .muted,
.home-list-copy .muted {
  display: block;
  margin: 0;
  overflow: visible;
  -webkit-line-clamp: unset;
  max-width: none;
  color: var(--text-soft);
  line-height: 1.72;
  font-size: 15px;
}

.home-start-actions,
.home-list-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 0;
}

.home-start-actions .btn,
.home-list-actions .btn {
  min-width: 0;
  flex: 0 0 auto;
}

.home-preview-pass11 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-preview-block-pass11 {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 74%, transparent), color-mix(in oklab, var(--surface-3) 96%, transparent));
}

.home-list-stack {
  display: grid;
  gap: 12px;
}

.home-list-card-pass11 {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--line-soft) 74%, transparent);
  background: color-mix(in oklab, var(--surface-2) 68%, transparent);
}

.home-list-copy {
  display: grid;
  gap: 10px;
}

.home-list-copy h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.28;
  letter-spacing: -.02em;
}

.home-preview-block .section-gap-top {
  padding-top: 18px;
}

@media (max-width: 1040px) {
  .home-hero-pass11,
  .home-start-grid-pass11,
  .home-preview-pass11 {
    grid-template-columns: 1fr;
  }

  .home-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-shell.page {
    padding-block: 30px;
  }

  .home-hero-title {
    max-width: 11ch;
    font-size: clamp(34px, 10vw, 52px);
  }

  .home-hero-lead,
  .home-section-intro,
  .home-section-copy .section-intro {
    font-size: 16px;
    line-height: 1.7;
  }

  .home-direction-grid-pass11,
  .home-hero-metrics {
    grid-template-columns: 1fr;
  }

  .home-hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .home-direction-card-pass11,
  .home-start-card-pass11,
  .home-preview-block-pass11,
  .home-hero-panel {
    padding: 22px;
  }
}


/* ===== Pass 12: home page aligned to reference archive ===== */
body[data-route-home="1"] .home-shell {
  width: min(100%, 1120px);
}

body[data-route-home="1"] .home-shell.page {
  padding-block: clamp(42px, 6vw, 78px);
}

body[data-route-home="1"] .home-shell.page + .home-shell.page {
  border-top: 0;
}

body[data-route-home="1"] .home-reference-section {
  display: grid;
  gap: clamp(24px, 3vw, 32px);
}

body[data-route-home="1"] .home-reference-copy {
  display: grid;
  gap: 12px;
  max-width: 72ch;
}

body[data-route-home="1"] .home-reference-copy-compact {
  gap: 10px;
}

body[data-route-home="1"] .home-reference-title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.038em;
  text-wrap: balance;
}

body[data-route-home="1"] .home-reference-title-compact {
  max-width: 18ch;
  font-size: clamp(28px, 3.4vw, 40px);
}

body[data-route-home="1"] .home-reference-intro {
  margin: 0;
  max-width: 66ch;
  color: var(--text-soft);
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.8;
}

body[data-route-home="1"] .home-hero-reference {
  padding: clamp(30px, 4vw, 46px);
  gap: 0;
}

body[data-route-home="1"] .home-hero-reference-inner {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  max-width: 76ch;
}

body[data-route-home="1"] .home-hero-reference-title {
  max-width: 11.2ch;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.05em;
  text-wrap: balance;
}

body[data-route-home="1"] .home-hero-reference-lead {
  margin: 0;
  max-width: 60ch;
  color: color-mix(in oklab, var(--txt) 82%, var(--muted) 18%);
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.82;
}

body[data-route-home="1"] .home-hero-reference-actions {
  margin-top: 4px;
  gap: 12px;
}

body[data-route-home="1"] .home-hero-reference-actions .btn {
  min-height: 46px;
  min-width: 0;
}

body[data-route-home="1"] .home-hero-reference-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

body[data-route-home="1"] .home-metric-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--line-soft) 80%, transparent);
  background: color-mix(in oklab, var(--surface-2) 74%, transparent);
}

body[data-route-home="1"] .home-metric-card span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-route-home="1"] .home-metric-card strong {
  color: var(--txt);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1;
  font-weight: 800;
}

body[data-route-home="1"] .home-reference-grid {
  display: grid;
  gap: 18px;
}

body[data-route-home="1"] .home-reference-grid-2,
body[data-route-home="1"] .home-start-grid-reference {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-route-home="1"] .home-reference-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 24px;
  border-radius: 22px;
}

body[data-route-home="1"] .home-reference-card h3,
body[data-route-home="1"] .home-preview-grid-reference .card h3 {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  min-height: 0;
  margin: 0;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.18;
  letter-spacing: -.028em;
  text-wrap: balance;
}

body[data-route-home="1"] .home-reference-card .muted,
body[data-route-home="1"] .home-preview-grid-reference .card p,
body[data-route-home="1"] .home-preview-grid-reference .card .muted {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  max-width: none;
  min-height: 0;
  margin: 0;
  line-height: 1.72;
  font-size: 15px;
}

body[data-route-home="1"] .home-direction-card-reference {
  text-decoration: none;
}

body[data-route-home="1"] .home-card-kicker {
  align-self: flex-start;
}

body[data-route-home="1"] .home-start-card-reference {
  gap: 18px;
}

body[data-route-home="1"] .home-start-card-reference-primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 84%, transparent), color-mix(in oklab, var(--surface-3) 98%, transparent));
}

body[data-route-home="1"] .home-start-actions-reference,
body[data-route-home="1"] .home-preview-grid-reference .actions {
  margin-top: auto;
  padding-top: 6px;
  gap: 10px;
}

body[data-route-home="1"] .home-start-actions-reference .btn,
body[data-route-home="1"] .home-preview-grid-reference .actions .btn,
body[data-route-home="1"] .home-preview-grid-reference .actions a.btn {
  flex: 0 0 auto;
  min-width: 0;
}

body[data-route-home="1"] .home-preview-grid-reference {
  align-items: stretch;
}

body[data-route-home="1"] .home-preview-grid-reference .card,
body[data-route-home="1"] .home-preview-grid-reference article.card {
  height: 100%;
  padding: 24px;
  border-radius: 22px;
}

body[data-route-home="1"] .home-preview-grid-reference .tags {
  gap: 8px;
}

body[data-route-home="1"] .home-preview-grid-reference .tag {
  min-height: 28px;
}

body[data-route-home="1"] .home-reference-tail-action {
  padding-top: 2px;
}

body[data-route-home="1"] .home-reference-tail-action .btn {
  min-height: 46px;
}

@media (max-width: 1024px) {
  body[data-route-home="1"] .home-reference-grid-2,
  body[data-route-home="1"] .home-start-grid-reference,
  body[data-route-home="1"] .home-hero-reference-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-route-home="1"] .home-shell.page {
    padding-block: 32px;
  }

  body[data-route-home="1"] .home-hero-reference {
    padding: 24px;
  }

  body[data-route-home="1"] .home-hero-reference-title {
    max-width: 12ch;
    font-size: clamp(34px, 10vw, 54px);
  }

  body[data-route-home="1"] .home-hero-reference-lead,
  body[data-route-home="1"] .home-reference-intro {
    font-size: 16px;
    line-height: 1.72;
  }

  body[data-route-home="1"] .home-hero-reference-actions .btn,
  body[data-route-home="1"] .home-reference-tail-action .btn {
    width: 100%;
  }

  body[data-route-home="1"] .home-reference-card,
  body[data-route-home="1"] .home-preview-grid-reference .card,
  body[data-route-home="1"] .home-preview-grid-reference article.card {
    padding: 22px;
  }
}


/* ===== Pass 13: stricter home-only spacing, typography, footer, and card cleanup ===== */
body[data-route-home="1"] #root {
  display: grid;
  gap: 0;
}

body[data-route-home="1"] .home-shell {
  width: min(100%, 1180px);
}

body[data-route-home="1"] #root .page:first-child {
  padding-top: clamp(28px, 4vw, 44px);
}

body[data-route-home="1"] .home-shell.page {
  padding-block: clamp(52px, 7vw, 84px);
}

body[data-route-home="1"] .home-shell.page + .home-shell.page {
  margin-top: 0;
}

body[data-route-home="1"] .home-pass13-section {
  gap: clamp(26px, 3vw, 38px);
}

body[data-route-home="1"] .home-pass13-copy {
  gap: 14px;
}

body[data-route-home="1"] .home-reference-title {
  max-width: 19ch;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -.034em;
}

body[data-route-home="1"] .home-reference-intro {
  max-width: 68ch;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.82;
}

body[data-route-home="1"] .home-pass13-hero {
  padding: clamp(34px, 4.4vw, 54px);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(42, 69, 114, .92), rgba(83, 44, 98, .9)),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  box-shadow: 0 18px 60px rgba(5, 10, 18, .24), inset 0 1px 0 rgba(255,255,255,.06);
}

body[data-route-home="1"] .home-pass13-hero-inner {
  gap: clamp(18px, 2.3vw, 28px);
  max-width: 72ch;
}

body[data-route-home="1"] .home-hero-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #d9c0ff;
  background: linear-gradient(180deg, rgba(15, 21, 36, .92), rgba(8, 12, 21, .94));
  border: 1px solid rgba(214, 179, 255, .24);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
}

body[data-route-home="1"] .home-hero-badge svg {
  width: 24px;
  height: 24px;
}

body[data-route-home="1"] .home-hero-reference-title {
  max-width: 12.4ch;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -.048em;
  margin: 0;
}

body[data-route-home="1"] .home-hero-reference-lead {
  max-width: 58ch;
  font-size: clamp(18px, 1.55vw, 20px);
  line-height: 1.78;
}

body[data-route-home="1"] .home-pass13-hero-actions {
  gap: 16px;
  margin-top: 2px;
}

body[data-route-home="1"] .home-pass13-hero-actions .btn {
  min-height: 52px;
  padding-inline: 22px;
  border-radius: 16px;
}

body[data-route-home="1"] .home-pass13-metrics {
  gap: 16px;
  margin-top: 8px;
}

body[data-route-home="1"] .home-pass13-metrics .home-metric-card {
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(16, 22, 37, .26);
  border-color: rgba(255,255,255,.08);
}

body[data-route-home="1"] .home-pass13-metrics .home-metric-card strong {
  font-size: clamp(22px, 2.4vw, 30px);
}

body[data-route-home="1"] .home-pass13-direction-grid,
body[data-route-home="1"] .home-pass13-start-grid {
  gap: 22px;
}

body[data-route-home="1"] .home-pass13-direction-card,
body[data-route-home="1"] .home-pass13-start-card {
  text-decoration: none !important;
  color: inherit !important;
  gap: 16px;
  padding: 28px 28px 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(44, 67, 109, .9), rgba(74, 48, 97, .88));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 46px rgba(5, 10, 18, .16), inset 0 1px 0 rgba(255,255,255,.04);
}

body[data-route-home="1"] .home-pass13-direction-card:hover,
body[data-route-home="1"] .home-pass13-direction-card:focus-visible,
body[data-route-home="1"] .home-pass13-start-card:hover,
body[data-route-home="1"] .home-pass13-start-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(5, 10, 18, .22), inset 0 1px 0 rgba(255,255,255,.05);
}

body[data-route-home="1"] .home-pass13-direction-card *,
body[data-route-home="1"] .home-pass13-start-card * {
  text-decoration: none !important;
}

body[data-route-home="1"] .home-card-art {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #f3e7ff;
  background: linear-gradient(180deg, rgba(17, 25, 41, .94), rgba(10, 16, 28, .96));
  border: 1px solid rgba(214, 179, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

body[data-route-home="1"] .home-card-art svg {
  width: 24px;
  height: 24px;
}

body[data-route-home="1"] .home-card-art-subtle {
  width: 48px;
  height: 48px;
}

body[data-route-home="1"] .home-card-kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: .08em;
}

body[data-route-home="1"] .home-pass13-direction-card h3,
body[data-route-home="1"] .home-pass13-start-card h3,
body[data-route-home="1"] .home-preview-grid-reference .card h3 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(24px, 1.95vw, 32px);
  line-height: 1.14;
  letter-spacing: -.03em;
}

body[data-route-home="1"] .home-pass13-direction-card .muted,
body[data-route-home="1"] .home-pass13-start-card .muted,
body[data-route-home="1"] .home-preview-grid-reference .card p,
body[data-route-home="1"] .home-preview-grid-reference .card .muted {
  margin: 0;
  font-size: 16px;
  line-height: 1.76;
  color: color-mix(in oklab, var(--txt) 82%, var(--muted) 18%);
}

body[data-route-home="1"] .home-pass13-start-card {
  gap: 18px;
}

body[data-route-home="1"] .home-start-actions-reference,
body[data-route-home="1"] .home-preview-grid-reference .actions {
  gap: 12px;
  padding-top: 10px;
}

body[data-route-home="1"] .home-start-actions-reference .btn,
body[data-route-home="1"] .home-preview-grid-reference .actions .btn,
body[data-route-home="1"] .home-preview-grid-reference .actions a.btn {
  min-height: 50px;
  border-radius: 16px;
}

body[data-route-home="1"] .home-preview-grid-reference {
  gap: 20px;
}

body[data-route-home="1"] .home-preview-grid-reference .card,
body[data-route-home="1"] .home-preview-grid-reference article.card {
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(42, 63, 101, .84), rgba(64, 44, 87, .82));
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 12px 40px rgba(5, 10, 18, .14), inset 0 1px 0 rgba(255,255,255,.04);
}

body[data-route-home="1"] .home-preview-grid-reference .card .ic {
  margin-bottom: 2px;
}

body[data-route-home="1"] .home-reference-tail-action {
  padding-top: 8px;
}

body[data-route-home="1"] .home-reference-tail-action .btn {
  min-height: 50px;
  border-radius: 16px;
}

body[data-route-home="1"] footer#footer {
  justify-content: center !important;
  text-align: initial !important;
  align-items: stretch !important;
  margin-top: clamp(40px, 5vw, 64px);
}

body[data-route-home="1"] footer#footer .container.foot {
  width: min(100% - clamp(28px, 6vw, 72px), 1180px) !important;
  margin-inline: auto !important;
}

body[data-route-home="1"] footer#footer .foot-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 320px) !important;
  gap: clamp(18px, 3vw, 32px) !important;
  align-items: start !important;
}

body[data-route-home="1"] footer#footer .foot-grid > div:first-child {
  justify-self: center !important;
  text-align: center !important;
  width: auto !important;
}

body[data-route-home="1"] footer#footer .foot-grid > div:first-child .logo-badge {
  margin-inline: auto !important;
}

body[data-route-home="1"] footer#footer .foot-grid > div:last-child {
  justify-self: start !important;
  text-align: left !important;
  width: 100% !important;
}

body[data-route-home="1"] footer#footer .foot-grid > div:last-child a {
  display: block !important;
  margin: 0 0 8px !important;
}

body[data-route-home="1"] footer#footer .foot-grid > div:last-child h4 {
  margin-bottom: 14px !important;
}

@media (max-width: 1024px) {
  body[data-route-home="1"] .home-pass13-direction-grid,
  body[data-route-home="1"] .home-pass13-start-grid,
  body[data-route-home="1"] .home-preview-grid-reference {
    grid-template-columns: 1fr !important;
  }

  body[data-route-home="1"] .home-hero-reference-title {
    max-width: 13ch;
    font-size: clamp(34px, 4.8vw, 50px);
  }

  body[data-route-home="1"] .home-pass13-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-route-home="1"] .home-shell.page {
    padding-block: 36px;
  }

  body[data-route-home="1"] .home-pass13-hero {
    padding: 24px;
    border-radius: 24px;
  }

  body[data-route-home="1"] .home-pass13-hero-actions .btn,
  body[data-route-home="1"] .home-start-actions-reference .btn,
  body[data-route-home="1"] .home-reference-tail-action .btn,
  body[data-route-home="1"] .home-preview-grid-reference .actions .btn,
  body[data-route-home="1"] .home-preview-grid-reference .actions a.btn {
    width: 100%;
  }

  body[data-route-home="1"] .home-pass13-metrics {
    grid-template-columns: 1fr;
  }

  body[data-route-home="1"] footer#footer .foot-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-route-home="1"] footer#footer .foot-grid > div:first-child,
  body[data-route-home="1"] footer#footer .foot-grid > div:last-child {
    justify-self: start !important;
    text-align: left !important;
  }

  body[data-route-home="1"] footer#footer .foot-grid > div:first-child .logo-badge {
    margin-inline: 0 !important;
  }
}
