/* Shared accessibility enhancements. Keep the existing visual language. */
.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 14px 20px;
  background: #f4f1e8;
  color: #102a30;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid #087bce;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px #fff;
}
section[id] {
  scroll-margin-top: 100px;
}
.contact-meta a {
  display: inline-block;
  min-height: 28px;
  line-height: 28px;
}
.contact-meta nav a {
  display: block;
}
/* Slight palette adjustments retain the red / amber / green meaning. */
.sticky-next > small {
  color: #152b25;
}
.impact-strip > div > span,
.incident-detail > .ui-kicker,
.incident-metrics > div > span,
.tab-detail > span,
.mobile-reading > small,
.mobile-rag > span,
.mobile-guidance > span {
  color: #59655f;
}
.impact-strip > .is-red > strong,
.severity-high,
.mobile-reading > span {
  color: #b63730;
}
.impact-strip > .is-amber > strong {
  color: #935d04;
}
.impact-strip > .is-green > strong,
.learn-visual > p > strong {
  color: #237747;
}
.rag-legend > .is-red {
  color: #ff9389;
}
.agent-recommendation > span {
  color: #ee8d6f;
}
.operator-impacts > div > span,
.operator-actions li p small {
  color: #a2b0a8;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.sticky-next > small {
  color: #10231e;
}
.mobile-reading.is-red > span {
  color: #b63730;
}
.not-found {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: system-ui, sans-serif;
  text-align: center;
  background: #fff;
  color: #111;
}
.not-found a {
  display: inline-block;
  padding: 12px;
  color: inherit;
}
/* Reflow at narrow widths and when readers increase text spacing. */
@media (max-width: 575px) {
  .hero-copy,
  .hero h1,
  .deployment-heading > *,
  .experience-intro > *,
  .banjir-signal-diagram > *,
  .banjir-signal-inputs > * {
    min-width: 0;
  }
  .hero h1 {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    font-size: 13.5vw;
  }
  .hero-line {
    white-space: normal;
  }
  .deployment-heading,
  .experience-intro,
  .banjir-signal-diagram {
    grid-template-columns: minmax(0, 1fr);
  }
  .deployment-heading h2,
  .experience-intro h2 {
    overflow-wrap: anywhere;
  }
  .banjir-signal-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banjir-signal-inputs > div {
    overflow-wrap: anywhere;
  }
  .closing-card {
    padding-inline: 20px;
  }
  .closing-cta {
    max-width: 100%;
    white-space: normal;
  }
  .closing-card h2,
  .closing-card p {
    max-width: 100%;
  }
}
@media (max-width: 575px) {
  .project-page :where(h1, h2, h3, p) {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .project-statement,
  .response-intro {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Contain decorative transforms without creating a new scroll container. */
.makmal-home,
.project-page {
  overflow-x: clip;
}
