.intent-hero {
  padding: clamp(56px, 8vw, 92px) 0 clamp(44px, 7vw, 74px);
}

.intent-hero .hero-grid {
  align-items: center;
}

.intent-hero .hero-heading,
.intent-hero .hero-body {
  min-width: 0;
}

.intent-hero .hero-copy {
  display: grid;
  gap: 18px;
}

.intent-hero .hero-media {
  width: min(100%, 340px);
  justify-self: center;
}

.intent-hero .hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.intent-hero h1,
.page-hero h1 {
  max-width: 820px;
}

.intent-lede {
  max-width: 720px;
  color: var(--cp-muted);
  font-size: clamp(1rem, 2.1vw, 1.18rem);
}

.intent-terms,
.term-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.intent-terms li,
.term-tags span {
  padding: 7px 11px;
  border: 1px solid var(--cp-border);
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #dbeafe;
  font-size: .8rem;
  font-weight: 800;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 213, 74, .35);
  border-radius: 999px;
  background: rgba(255, 213, 74, .09);
  color: var(--cp-gold);
  font-weight: 900;
}

.header-cta {
  display: none;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cp-blue), var(--cp-cyan));
  color: #00101a !important;
  font-size: .82rem;
  font-weight: 900;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--cp-border);
  border-radius: 18px;
  background: rgba(15, 23, 42, .78);
}

.fact-card dt {
  color: var(--cp-muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fact-card dd {
  margin: 6px 0 0;
  color: var(--cp-text);
  font-size: 1.02rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.definition-grid,
.category-grid,
.evidence-grid,
.route-grid {
  display: grid;
  gap: 16px;
}

.definition-card,
.category-card,
.route-card,
.evidence-card {
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  background: rgba(15, 23, 42, .78);
  box-shadow: var(--cp-shadow);
}

.definition-card,
.category-card,
.route-card {
  padding: clamp(20px, 3vw, 30px);
}

.definition-card h3,
.category-card h2,
.category-card h3,
.route-card h3 {
  margin: 0 0 10px;
}

.definition-card p,
.category-card p,
.route-card p {
  color: var(--cp-muted);
}

.category-kicker,
.evidence-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cp-cyan);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.observed-list,
.check-list,
.link-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.observed-list li,
.check-list li,
.link-list li {
  position: relative;
  padding-left: 24px;
  color: var(--cp-muted);
}

.observed-list li::before,
.check-list li::before,
.link-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--cp-cyan);
  content: "✓";
  font-weight: 900;
}

.evidence-card {
  overflow: hidden;
}

.evidence-card figure {
  margin: 0;
}

.evidence-card img {
  width: 100%;
  max-height: 660px;
  object-fit: contain;
  background: #070d1a;
}

.evidence-card figcaption,
.evidence-copy {
  padding: 16px 18px;
  color: var(--cp-muted);
  font-size: .86rem;
}

.evidence-copy h3 {
  margin: 0 0 8px;
  color: var(--cp-text);
}

.evidence-copy p:last-child {
  margin-bottom: 0;
}

.cta-band {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(0, 242, 254, .28);
  border-radius: var(--cp-radius);
  background: linear-gradient(135deg, rgba(79, 172, 254, .15), rgba(0, 242, 254, .06));
  box-shadow: var(--cp-shadow);
}

.cta-band h2 {
  margin: 0 0 8px;
}

.cta-band p {
  margin: 0;
  color: var(--cp-muted);
}

.source-note {
  padding: 16px 18px;
  border-left: 3px solid var(--cp-gold);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 213, 74, .08);
  color: #fef3c7;
}

.source-note strong {
  color: var(--cp-gold);
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.section-divider {
  border-top: 1px solid rgba(0, 242, 254, .12);
}

.page-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 26px auto 0;
}

.page-jump-links a {
  padding: 9px 13px;
  border: 1px solid var(--cp-border);
  border-radius: 999px;
  color: var(--cp-muted);
  font-size: .84rem;
  font-weight: 800;
}

.page-jump-links a:hover,
.page-jump-links a:focus-visible {
  color: var(--cp-cyan);
}

.boundary-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}

.boundary-table th,
.boundary-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--cp-border);
  text-align: left;
  vertical-align: top;
}

.boundary-table th {
  color: var(--cp-cyan);
  font-size: .82rem;
}

.boundary-table td {
  color: var(--cp-muted);
}

.boundary-table tr:last-child td {
  border-bottom: 0;
}

@media (min-width: 720px) {
  .fact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .definition-grid,
  .category-grid,
  .route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-cta {
    display: inline-flex;
  }
}

@media (max-width: 819px) {
  .intent-hero .hero-copy {
    display: contents;
  }

  .intent-hero .hero-heading {
    order: 1;
  }

  .intent-hero .hero-media {
    order: 2;
  }

  .intent-hero .hero-body {
    order: 3;
  }
}

@media (max-width: 719px) {
  html {
    scroll-padding-top: calc(80px + env(safe-area-inset-top));
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    padding-top: env(safe-area-inset-top);
  }

  .localized-page main {
    padding-top: calc(68px + env(safe-area-inset-top));
  }

  .mobile-menu[data-open="true"] {
    max-height: calc(100dvh - 68px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .intent-hero {
    padding: 14px 0 34px;
  }

  .intent-hero .hero-grid {
    gap: 20px;
  }

  .intent-hero .hero-media {
    width: min(100%, 280px);
    padding: 12px;
    border-radius: 24px;
  }

  .intent-hero .hero-media img {
    border-radius: 16px;
  }

  .intent-hero .hero-media figcaption {
    padding: 10px 5px 2px;
    font-size: .75rem;
    line-height: 1.5;
  }

  .intent-hero h1 {
    margin-bottom: 0;
    font-size: clamp(1.85rem, 8.2vw, 2.3rem);
    line-height: 1.14;
  }

  .intent-hero .version-badge {
    margin-bottom: 12px;
    padding: 7px 10px;
    font-size: .82rem;
  }

  .intent-hero .intent-lede {
    font-size: .96rem;
    line-height: 1.58;
  }

  .intent-hero .hero-actions {
    margin-top: 18px;
  }

  .intent-hero .intent-terms {
    gap: 7px;
    margin-top: 14px;
  }

  .boundary-table,
  .boundary-table tbody,
  .boundary-table tr,
  .boundary-table th,
  .boundary-table td {
    display: block;
  }

  .boundary-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .boundary-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--cp-border);
  }

  .boundary-table td {
    padding: 5px 12px;
    border: 0;
  }

  .boundary-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--cp-cyan);
    content: attr(data-label);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
  }
}
