body[data-page="phase2-index"] {
  --phase2-glow: 0 0 0 1px rgba(156, 45, 18, 0.22), 0 0 28px rgba(156, 45, 18, 0.2);
}

body[data-page="phase2-index"] .progress-bar {
  background: linear-gradient(
    90deg,
    rgba(156, 45, 18, 0.94),
    rgba(156, 45, 18, 0.78) 58%,
    rgba(201, 162, 39, 0.9)
  );
}

body[data-page="phase2-index"] .phase2-hero {
  border-color: rgba(156, 45, 18, 0.28);
  background:
    linear-gradient(180deg, rgba(156, 45, 18, 0.13), rgba(255, 255, 255, 0.03)),
    var(--paper-tint),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

body[data-page="phase2-index"] .phase2-kicker {
  border-color: rgba(156, 45, 18, 0.46);
  background: rgba(156, 45, 18, 0.14);
  color: #f0d7cf;
}

body[data-page="phase2-index"] .phase2-kicker .kicker-dot {
  color: #ffffff;
}

body[data-page="phase2-index"] .phase2-hero .hero-grid > div:first-child {
  min-width: 0;
}

body[data-page="phase2-index"] .phase2-hero h1 {
  max-width: 11ch;
}

body[data-page="phase2-index"] .phase2-hero h1 > span:first-child {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 0.94;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

body[data-page="phase2-index"] .phase2-hero h1 > span:last-child {
  display: block;
  max-width: 100%;
  font-size: clamp(1.16rem, 2.05vw, 1.76rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body[data-page="phase2-index"] .phase2-hero .hero-copy {
  max-width: 70ch;
}

body[data-page="phase2-index"] .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body[data-page="phase2-index"] .hero-phase2-pill {
  background: rgba(156, 45, 18, 0.18);
  border-color: rgba(156, 45, 18, 0.58);
  color: #f0d7cf;
}

body[data-page="phase2-index"] .hero-phase2-pill:hover {
  border-color: rgba(156, 45, 18, 0.8);
  box-shadow: var(--phase2-glow);
}

body[data-page="phase2-index"] .hero-phase2-pill .hero-pill-word,
body[data-page="phase2-index"] .hero-phase2-pill .hero-pill-dot {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

body[data-page="phase2-index"] .hero-phase2-pill .hero-pill-word {
  color: #f0d7cf;
  letter-spacing: 0.14em;
}

body[data-page="phase2-index"] .hero-phase2-pill .hero-pill-dot {
  color: #ffffff;
  margin: 0 0.16em;
}

body[data-page="phase2-index"] .cta-pill:not(.is-primary),
body[data-page="phase2-index"] .mini-pill,
body[data-page="phase2-index"] .section-jump,
body[data-page="phase2-index"] .entry-link {
  border-color: rgba(156, 45, 18, 0.64);
}

body[data-page="phase2-index"] .cta-pill:not(.is-primary):hover,
body[data-page="phase2-index"] .mini-pill:hover,
body[data-page="phase2-index"] .section-jump:hover,
body[data-page="phase2-index"] .entry-link:hover {
  box-shadow: var(--phase2-glow);
}

body[data-page="phase2-index"] .section-card,
body[data-page="phase2-index"] .footer-card {
  scroll-margin-top: 108px;
}

body[data-page="phase2-index"] .section-head {
  margin-bottom: 20px;
}

body[data-page="phase2-index"] .hero-panel,
body[data-page="phase2-index"] .phase2-grid-3,
body[data-page="phase2-index"] .phase2-logic-grid,
body[data-page="phase2-index"] .phase2-route-grid {
  align-items: stretch;
}

body[data-page="phase2-index"] .hero-panel .index-card,
body[data-page="phase2-index"] .hero-panel .quote-card,
body[data-page="phase2-index"] .phase2-grid-3 .index-card,
body[data-page="phase2-index"] .phase2-logic-card,
body[data-page="phase2-index"] .phase2-route-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

body[data-page="phase2-index"] .hero-panel .index-card,
body[data-page="phase2-index"] .hero-panel .quote-card {
  overflow: hidden;
}

body[data-page="phase2-index"] .phase2-note-card,
body[data-page="phase2-index"] .phase2-path-card {
  border-color: rgba(156, 45, 18, 0.22);
}

body[data-page="phase2-index"] .hero-panel .index-card .index-label,
body[data-page="phase2-index"] .hero-panel .quote-card .quote-label {
  margin-bottom: 10px;
  font-size: 0.7rem !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: none !important;
  color: var(--soft) !important;
}

body[data-page="phase2-index"] .hero-panel .mini-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-top: 2px;
  padding: 0;
  align-items: stretch;
  justify-items: stretch;
  box-sizing: border-box;
}

body[data-page="phase2-index"] .hero-panel .mini-pills .mini-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 0 14px;
  text-align: center;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  box-sizing: border-box;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.11em;
}

body[data-page="phase2-index"] .entry-note-lines {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

body[data-page="phase2-index"] .entry-note-text {
  margin: 0;
  font-family: inherit;
  font-size: clamp(0.9rem, 1.35vw, 1rem);
  line-height: 1.38;
  font-weight: 400;
  letter-spacing: 0;
  color: inherit;
}

body[data-page="phase2-index"] .medallion--phase2 {
  color: #f0d7cf;
  border-color: rgba(156, 45, 18, 0.42);
  background: rgba(156, 45, 18, 0.16);
  box-shadow: inset 0 0 0 1px rgba(156, 45, 18, 0.18);
}

body[data-page="phase2-index"] .phase2-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="phase2-index"] .phase2-state-card,
body[data-page="phase2-index"] .phase2-track-card,
body[data-page="phase2-index"] .phase2-logic-card,
body[data-page="phase2-index"] .phase2-route-card {
  position: relative;
  overflow: hidden;
}

body[data-page="phase2-index"] .phase2-state-card::before,
body[data-page="phase2-index"] .phase2-track-card::before,
body[data-page="phase2-index"] .phase2-logic-card::before,
body[data-page="phase2-index"] .phase2-route-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, rgba(156, 45, 18, 0.16), rgba(156, 45, 18, 0.98), rgba(156, 45, 18, 0.16));
}

body[data-page="phase2-index"] .phase2-state-card,
body[data-page="phase2-index"] .phase2-track-card {
  padding-top: 20px;
}

body[data-page="phase2-index"] .phase2-logic-grid,
body[data-page="phase2-index"] .phase2-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="phase2-index"] .phase2-logic-card,
body[data-page="phase2-index"] .phase2-route-card {
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

body[data-page="phase2-index"] .phase2-route-card--muted {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

body[data-page="phase2-index"] .phase2-route-card--muted::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(201, 162, 39, 0.82), rgba(255, 255, 255, 0.08));
}

body[data-page="phase2-index"] .phase2-logic-label,
body[data-page="phase2-index"] .phase2-route-label {
  margin: 0 0 10px;
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

body[data-page="phase2-index"] .phase2-logic-card h3,
body[data-page="phase2-index"] .phase2-route-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.04rem, 1.8vw, 1.24rem);
  line-height: 1.22;
}

body[data-page="phase2-index"] .phase2-logic-card p:last-child,
body[data-page="phase2-index"] .phase2-route-card p:last-child {
  margin-bottom: 0;
}

body[data-page="phase2-index"] .footer-card .spine-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

body[data-page="phase2-index"] .footer-card .spine-nav .phase-chip {
  gap: 0;
  letter-spacing: 0;
  font-size: 0;
  list-style: none;
  white-space: nowrap;
}

body[data-page="phase2-index"] .footer-card .spine-nav .phase-chip::before,
body[data-page="phase2-index"] .footer-card .spine-nav .phase-chip::after,
body[data-page="phase2-index"] .footer-card .spine-nav .phase-chip::marker {
  content: none !important;
  display: none !important;
}

body[data-page="phase2-index"] .footer-card .spine-nav .phase-chip .chip-bullet {
  display: inline-block;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.95;
  margin-right: 0.5rem;
  flex: 0 0 auto;
}

body[data-page="phase2-index"] .footer-card .spine-nav .phase-chip .chip-word,
body[data-page="phase2-index"] .footer-card .spine-nav .phase-chip .chip-dot {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

body[data-page="phase2-index"] .footer-card .spine-nav .phase-chip .chip-word {
  letter-spacing: 0.14em;
  color: currentColor;
}

body[data-page="phase2-index"] .footer-card .spine-nav .phase-chip .chip-dot {
  color: #ffffff;
  letter-spacing: 0;
  margin: 0 0.18em;
  padding: 0;
}

body[data-page="phase2-index"] .footer-card .phase-chip.phase-2 {
  color: #f0d7cf;
  border-color: rgba(156, 45, 18, 0.68);
}

body[data-page="phase2-index"] .footer-card .phase-chip.phase-2:hover {
  box-shadow: var(--phase2-glow);
}

@media (max-width: 1120px) {
  body[data-page="phase2-index"] .phase2-grid-3,
  body[data-page="phase2-index"] .phase2-logic-grid,
  body[data-page="phase2-index"] .phase2-route-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="phase2-index"] .phase2-hero h1 > span:last-child {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  body[data-page="phase2-index"] .hero-actions {
    gap: 10px;
  }

  body[data-page="phase2-index"] .hero-panel .mini-pills {
    grid-template-columns: 1fr;
  }

  body[data-page="phase2-index"] .footer-card .spine-nav {
    justify-content: flex-start;
  }
}