*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-foreground);
  background-color: var(--color-background);
  background-image:
    radial-gradient(ellipse 90% 50% at 10% -10%, rgb(126 200 227 / 0.35), transparent 55%),
    radial-gradient(ellipse 70% 40% at 90% 0%, rgb(42 143 184 / 0.12), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160' viewBox='0 0 240 160'%3E%3Cpath d='M0 40 Q60 18 120 40 T240 40' fill='none' stroke='%23003366' stroke-opacity='.06' stroke-width='1'/%3E%3Cpath d='M0 80 Q60 58 120 80 T240 80' fill='none' stroke='%23003366' stroke-opacity='.045' stroke-width='1'/%3E%3Cpath d='M0 120 Q60 102 120 120 T240 120' fill='none' stroke='%23003366' stroke-opacity='.035' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #e2f1f6 0%, #eef6f8 42%, #f5f9fa 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-800);
  text-underline-offset: 0.18em;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--orange-800);
}

:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  background: var(--white);
  color: var(--navy-800);
  padding: var(--space-2) var(--space-4);
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: var(--space-2);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--sea-50) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.page-home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.page-home:not(.is-scrolled) .site-header {
  background: linear-gradient(180deg, rgb(0 12 24 / 0.58), transparent);
  border-bottom-color: transparent;
  color: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-home:not(.is-scrolled) .site-header a,
.page-home:not(.is-scrolled) .brand-lockup,
.page-home:not(.is-scrolled) .nav-toggle {
  color: var(--white);
}

.header-inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy-800);
  flex-shrink: 0;
  transition: opacity var(--duration) var(--ease);
}

.brand-lockup:hover {
  opacity: 0.88;
  color: inherit;
}

.brand-lockup strong {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.brand-lockup span {
  display: none;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
  font-weight: 400;
}

@media (min-width: 1100px) {
  .brand-lockup span {
    display: inline;
    margin-left: 0.35rem;
    padding-left: 0.55rem;
    border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  }
}

.nav-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease);
}

.nav-toggle:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  display: none;
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem 1.15rem;
  }
}

@media (max-width: 959px) {
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: var(--space-4) var(--gutter) var(--space-5);
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    color: var(--navy-800);
    z-index: 45;
    animation: panel-in var(--duration-slow) var(--ease-out);
  }

  .page-home:not(.is-scrolled) .site-nav.is-open,
  .page-home:not(.is-scrolled) .site-nav.is-open a {
    color: var(--navy-800);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: inherit;
  padding: 0.35rem 0;
  cursor: pointer;
  transition: opacity var(--duration) var(--ease);
}

.site-nav a:hover {
  opacity: 0.75;
  color: inherit;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 currentColor;
}

.site-nav .btn {
  margin-left: 0.75rem;
  min-height: 2.25rem;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  box-shadow: none;
}

.site-nav .btn[aria-current="page"] {
  box-shadow: none;
  outline: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  outline-offset: 2px;
}

.site-nav .btn:hover {
  opacity: 1;
  transform: none;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--button-bg);
  color: var(--button-fg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--button-bg-hover);
  color: var(--button-fg);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--button-accent-bg);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--button-accent-hover);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-md);
}

.btn-nav {
  background: var(--sea-600);
  color: var(--white);
}

.btn-nav:hover {
  background: var(--navy-800);
  color: var(--white);
}

.page-home:not(.is-scrolled) .site-nav .btn-nav {
  background: var(--white);
  color: var(--navy-800);
}

.page-home:not(.is-scrolled) .site-nav .btn-nav:hover {
  background: var(--sea-100);
  color: var(--navy-800);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: color-mix(in srgb, currentColor 55%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: inherit;
}

.btn-soft {
  background: var(--color-surface);
  color: var(--navy-800);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-soft:hover {
  background: var(--sea-100);
  color: var(--navy-800);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #001a33;
}

.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.88;
}

.hero-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #001122;
}

.hero-map .leaflet-control-container {
  display: none;
}

.hero-mosaic {
  position: absolute;
  z-index: 1;
  top: clamp(4.5rem, 12vh, 7rem);
  right: var(--gutter);
  display: grid;
  gap: 0.55rem;
  width: min(22rem, 38vw);
  pointer-events: none;
}

.hero-map-card {
  margin: 0;
  padding: 0.45rem;
  background: rgb(0 18 36 / 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: hero-panel-in 0.8s var(--ease-out) both;
}

.hero-map-card:nth-child(2) { animation-delay: 0.12s; }
.hero-map-card:nth-child(3) { animation-delay: 0.24s; }

@keyframes hero-panel-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-map-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #0a2840;
}

.hero-map-card.is-fallback img {
  opacity: 0.35;
}

.hero-map-card figcaption {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.72);
}

.hero-charts {
  position: absolute;
  z-index: 1;
  bottom: clamp(6rem, 18vh, 9rem);
  right: var(--gutter);
  display: grid;
  gap: 0.55rem;
  width: min(18rem, 34vw);
  pointer-events: none;
}

.hero-chart-panel {
  padding: 0.65rem 0.75rem;
  background: rgb(0 18 36 / 0.62);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.hero-chart-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.72);
}

.hero-chart-panel canvas {
  display: block;
  width: 100%;
  height: auto;
}

.hero-alert-scale {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.hero-alert-scale li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgb(255 255 255 / 0.85);
}

.hero-attrib {
  position: absolute;
  z-index: 1;
  bottom: 0.65rem;
  right: var(--gutter);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgb(255 255 255 / 0.45);
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgb(0 16 32 / 0.72) 0%, rgb(0 16 32 / 0.35) 42%, rgb(0 16 32 / 0.08) 68%),
    linear-gradient(180deg, rgb(0 16 32 / 0.35) 0%, rgb(0 16 32 / 0.08) 38%, rgb(0 12 24 / 0.88) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 8vh, 5.5rem);
}

@media (max-width: 900px) {
  .hero-mosaic {
    top: auto;
    bottom: clamp(7rem, 22vh, 10rem);
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-map-card figcaption {
    display: none;
  }

  .hero-charts {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .hero-map-card:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-map-card {
    animation: none;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-hero);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0 0 0.15em;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.25);
}

.hero-fullname {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.2vw, 2.75rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.75em;
  color: rgb(255 255 255 / 0.92);
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.3);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 0 0.55em;
}

.hero .lede {
  max-width: 38rem;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: rgb(255 255 255 / 0.88);
}

@media (prefers-reduced-motion: reduce) {
  .hero-map-card {
    animation: none;
  }
}

/* —— Sections —— */
.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.section-tight {
  padding-top: 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: var(--space-7);
}

.section-head-wide {
  max-width: none;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: -0.02em;
  color: var(--navy-800);
  background: color-mix(in srgb, var(--white) 88%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pipeline li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--orange-700);
  z-index: 1;
}

.pipeline li:not(:last-child) {
  margin-right: 0.85rem;
}

@media (max-width: 640px) {
  .pipeline {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline li:not(:last-child) {
    margin-right: 0;
    margin-bottom: 0.85rem;
  }

  .pipeline li:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.05rem;
    transform: translateX(-50%) rotate(90deg);
  }
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin: 0 0 0.7rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.55em;
}

.section-head p,
.prose p {
  margin: 0;
  color: var(--color-muted-foreground);
}

.section-invert {
  background:
    linear-gradient(135deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
  color: var(--white);
}

.section-invert .kicker,
.section-invert .section-head p,
.section-invert .prose p {
  color: rgb(255 255 255 / 0.72);
}

.section-photo {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.section-photo .bg {
  position: absolute;
  inset: 0;
}

.section-photo .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-photo .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgb(0 26 51 / 0.82), rgb(0 26 51 / 0.55));
}

.section-photo .kicker {
  color: var(--sea-300);
}

.section-photo .wrap {
  position: relative;
  z-index: 1;
}

/* —— Data sources strip —— */
.sources {
  display: grid;
  gap: var(--space-6);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-7);
}

@media (min-width: 800px) {
  .sources {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-7);
  }
}

.source {
  min-width: 0;
  transition: transform var(--duration) var(--ease);
}

@media (hover: hover) {
  .source:hover {
    transform: translateY(-2px);
  }
}

.source + .source {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
}

@media (min-width: 800px) {
  .source + .source {
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid var(--color-border);
    padding-left: var(--space-7);
  }
}

.source .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange-700);
  margin-bottom: 0.4rem;
}

.source h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.source ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.source li {
  position: relative;
  padding-left: 1rem;
  margin: 0.3rem 0;
  color: var(--ink-700);
}

.source li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 1px;
  background: var(--navy-800);
}

/* —— Workflow —— */
.workflow {
  display: grid;
  gap: 0;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.workflow li {
  list-style: none;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  counter-increment: step;
}

.workflow li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange-700);
  padding-top: 0.2rem;
}

.workflow h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.workflow p {
  margin: 0;
  color: var(--ink-700);
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.doc-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  counter-increment: step;
}

.doc-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange-700);
  padding-top: 0.2rem;
}

.doc-list h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.doc-list p {
  margin: 0;
  color: var(--ink-700);
}

/* —— Capability infographic workflow —— */
.cap-infographic {
  position: relative;
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: var(--space-2) 0 0;
}

.cap-infographic::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 0.25rem;
  bottom: 1.25rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--sea-300),
    var(--navy-800) 45%,
    var(--orange-700)
  );
  border-radius: 2px;
  opacity: 0.55;
}

.cap-phase {
  position: relative;
  z-index: 1;
  padding: 0.2rem 0 0 4.35rem;
}

.cap-phase-label {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: var(--sea-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.cap-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cap-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--navy-800);
  background: linear-gradient(160deg, var(--sea-100), var(--white));
  border: 2px solid var(--navy-800);
  border-radius: var(--radius);
  box-shadow: 0 0 0 4px var(--color-background);
  flex-shrink: 0;
}

.cap-icon svg {
  width: 1.85rem;
  height: 1.85rem;
}

.cap-copy {
  min-width: 0;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--white) 88%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

@media (hover: hover) {
  .cap-step:hover .cap-copy {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--sea-400);
  }
}

.cap-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--orange-700);
  margin-bottom: 0.25rem;
}

.cap-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}

.cap-step p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.95rem;
  max-width: 42rem;
}

@media (min-width: 900px) {
  .cap-infographic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-5);
    row-gap: var(--space-5);
  }

  .cap-infographic::before {
    display: none;
  }

  .cap-phase {
    grid-column: 1 / -1;
    padding-left: 0;
    margin-top: var(--space-2);
  }

  .cap-phase:first-child {
    margin-top: 0;
  }

  .cap-step {
    min-height: 100%;
    padding: var(--space-4);
    background: color-mix(in srgb, var(--white) 88%, transparent);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    transition:
      transform var(--duration) var(--ease),
      box-shadow var(--duration) var(--ease),
      border-color var(--duration) var(--ease);
  }

  @media (hover: hover) {
    .cap-step:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
      border-color: var(--sea-400);
    }

    .cap-step:hover .cap-copy {
      transform: none;
      box-shadow: none;
      border-color: transparent;
    }
  }

  .cap-icon {
    border-width: 1px;
    box-shadow: none;
  }

  .cap-copy {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
}


@media (min-width: 1100px) {
  .workflow {
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border-top: 1px solid var(--color-border);
  }

  .workflow li {
    display: block;
    padding: var(--space-5) var(--space-4) 0 0;
    border-top: 0;
    border-right: 1px solid var(--color-border);
  }

  .workflow li:last-child {
    border-right: 0;
  }

  .workflow li::before {
    display: block;
    margin-bottom: 0.85rem;
  }
}

/* —— Risk formula —— */
.formula {
  font-family: var(--font-display);
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

.formula .term {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--white) 70%, transparent);
  backdrop-filter: blur(8px);
}

.formula .op {
  font-family: var(--font-mono);
  color: var(--orange-700);
  font-size: 1.1rem;
  align-self: center;
  text-align: center;
}

.formula h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.formula p {
  margin: 0;
  color: var(--ink-700);
}

.formula .result {
  border-color: var(--navy-800);
  background: linear-gradient(160deg, var(--sea-100), var(--white));
}

.formula .result h3 {
  font-size: var(--text-xl);
  color: var(--navy-800);
}

@media (min-width: 900px) {
  .formula {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1.15fr;
    gap: var(--space-4);
    align-items: stretch;
  }

  .formula .op {
    padding: 0;
  }
}

/* —— Alert scale —— */
.scale {
  display: grid;
  gap: 2px;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (min-width: 720px) {
  .scale {
    grid-template-columns: repeat(5, 1fr);
  }
}

.scale-item {
  padding: 1.25rem 1.1rem 1.4rem;
  min-height: 10.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  transition: transform var(--duration) var(--ease);
}

@media (hover: hover) {
  .scale-item:hover {
    transform: scale(1.02);
    z-index: 1;
  }
}

.scale-item .lvl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scale-item strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.scale-item p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.scale-item .pattern {
  height: 8px;
  margin-top: 0.75rem;
  border-radius: 2px;
}

.lvl-1 { background: var(--watch); color: var(--navy-950); }
.lvl-1 .pattern { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px); }
.lvl-2 { background: var(--warning); }
.lvl-2 .pattern { background: repeating-linear-gradient(45deg, rgb(255 255 255 / 0.35) 0 6px, transparent 6px 12px); }
.lvl-3 { background: var(--alert); }
.lvl-3 .pattern { background: repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.35) 0 6px, transparent 6px 12px); }
.lvl-4 { background: var(--critical); }
.lvl-4 .pattern { background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.4) 0 3px, transparent 3px 9px); }
.lvl-5 { background: var(--extreme); }
.lvl-5 .pattern { background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.35) 0 3px, transparent 3px 8px); }

/* —— Close CTA —— */
.close-cta {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.close-cta p {
  max-width: 36rem;
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-7) 0 var(--space-5);
  background: color-mix(in srgb, var(--white) 55%, transparent);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.3rem 0;
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
}

.footer-partners li {
  margin: 0;
}

.footer-partners a {
  display: block;
  line-height: 0;
  transition: opacity var(--duration) var(--ease);
}

.footer-partners a:hover {
  opacity: 0.82;
}

.footer-partners img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 4.5rem;
  object-fit: contain;
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-700);
}

.site-footer a:hover {
  color: var(--navy-800);
}

.legal {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--ink-700);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

/* —— Page hero (inner pages) —— */
.page-hero {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0 2.5rem;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgb(42 143 184 / 0.14), transparent 60%);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 18ch;
  margin: 0 0 0.5em;
}

.page-hero .lede {
  max-width: 40rem;
  margin: 0;
  color: var(--ink-700);
}

/* —— Architecture leaflet —— */
.leaflet-full {
  margin: 0 auto var(--space-6);
  padding: 0 var(--gutter);
  width: min(100%, var(--wide));
  max-width: none;
  background: transparent;
  border: 0;
}

.leaflet-full img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* —— Architecture flow —— */
.flow {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 880px) {
  .flow {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
  }
}

.flow-node {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--white) 75%, transparent);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.flow-node:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sea-400);
}

.flow-node h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.flow-node p,
.flow-node ul {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.flow-node ul {
  padding-left: 1.1rem;
}

.flow-arrow {
  font-family: var(--font-mono);
  color: var(--orange-700);
  align-self: center;
  text-align: center;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* —— ERD groups —— */
.erd {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .erd {
    grid-template-columns: repeat(3, 1fr);
  }
}

.erd > div {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--white) 80%, transparent);
}

.erd h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--navy-800);
}

.erd ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.erd li {
  padding: 0.28rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

/* —— Channels / roles —— */
.split {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.role-list,
.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.role-list li,
.channel-list li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  transition: background var(--duration) var(--ease);
}

.role-list li:hover,
.channel-list li:hover {
  background: color-mix(in srgb, var(--sea-100) 50%, transparent);
  margin-inline: calc(-1 * var(--space-3));
  padding-inline: var(--space-3);
  border-radius: var(--radius);
}

.role-list svg,
.channel-list svg {
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  color: var(--sea-600);
}

.role-list h3,
.channel-list h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.role-list p,
.channel-list p {
  margin: 0;
  color: var(--ink-700);
}

/* —— Form —— */
.form-layout {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 960px) {
  .form-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.7fr);
    align-items: start;
  }
}

.form-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.form-aside {
  font-size: 0.95rem;
  color: var(--ink-700);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, var(--sea-100), var(--white));
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.form-aside ol {
  padding-left: 1.15rem;
}

.field-group {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.field-group:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.field-group h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}

.field {
  margin-bottom: var(--space-4);
}

.field label,
.legend {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hint {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-700);
  font-weight: 400;
  margin-top: 0.2rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--sea-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea-300) 55%, transparent);
  outline: none;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.field-row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.checks {
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 520px) {
  .checks {
    grid-template-columns: 1fr 1fr;
  }
}

.checks label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.25rem 0.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.checks label:hover {
  background: var(--sea-50);
  border-color: var(--color-border);
}

fieldset {
  border: 0;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.error-summary {
  display: none;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 2px solid var(--critical);
  border-radius: var(--radius);
  background: #fff5f5;
}

.error-summary.is-visible {
  display: block;
}

.error-summary h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.error-summary a {
  color: var(--critical);
}

.field-error {
  color: var(--critical);
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--critical);
}

.form-success {
  display: none;
  padding: var(--space-6) 0;
}

.form-success.is-visible {
  display: block;
}

.form-success h2 {
  margin-bottom: 0.5rem;
}

.preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.preview-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.geo-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

@media (min-width: 700px) {
  .geo-row {
    grid-template-columns: 1fr 1fr auto;
    align-items: start;
  }

  .geo-row .geo-action {
    padding-top: calc(1em * 1.55 + 0.35rem);
  }
}

.geo-row .field {
  margin-bottom: 0;
}

.geo-row + .hint {
  margin: 0 0 var(--space-3);
}

.picker-map {
  height: min(280px, 45vh);
  margin-top: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #cfe4ec;
}

.picker-map .leaflet-container {
  width: 100%;
  height: 100%;
}

/* —— Dashboard app —— */
.page-app {
  background: #dceaf0;
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgb(126 200 227 / 0.25), transparent 55%);
}

.page-app .site-header {
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  box-shadow: var(--shadow-sm);
}

.app-shell {
  display: grid;
  min-height: calc(100svh - var(--nav-h));
  position: relative;
}

@media (min-width: 1080px) {
  .app-shell.has-report-rail {
    grid-template-columns: minmax(0, 1fr) var(--rail-w);
  }
}

.map-stage {
  position: relative;
  min-height: 58vh;
  isolation: isolate;
}

@media (min-width: 1080px) {
  .map-stage {
    min-height: calc(100svh - var(--nav-h));
  }
}

#bleaching-map {
  position: absolute;
  inset: 0;
  background: #cfe4ec;
  z-index: 0;
}

.map-toolbar {
  position: absolute;
  z-index: 500;
  top: var(--map-panel-gap);
  left: var(--map-panel-gap);
  right: var(--map-panel-gap);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
  pointer-events: none;
}

.map-toolbar > * {
  pointer-events: auto;
}

.map-status {
  position: absolute;
  z-index: 500;
  left: calc(var(--map-panel-gap) + 3rem);
  bottom: var(--map-panel-gap);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  pointer-events: none;
  max-width: calc(100% - 2 * var(--map-panel-gap) - 3rem);
}

.map-status > * {
  pointer-events: auto;
}

.map-panel {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.75rem;
  box-shadow: var(--shadow-md);
}

.layer-switch,
.basemap-switch {
  display: flex;
  gap: 0.2rem;
  padding: 0.35rem;
}

.date-switch {
  display: grid;
  grid-template-columns: 4.5rem minmax(6.5rem, auto) 4.5rem;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
}

.date-filter-field {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.date-switch span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-700);
}

.date-switch select {
  width: 100%;
  min-height: 26px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--navy-800);
  cursor: pointer;
}

.layer-switch button,
.basemap-switch button {
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink-700);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.layer-switch button:hover,
.basemap-switch button:hover {
  background: color-mix(in srgb, var(--sea-100) 80%, transparent);
  color: var(--navy-800);
}

.layer-switch button[aria-pressed="true"],
.basemap-switch button[aria-pressed="true"] {
  background: var(--navy-800);
  color: var(--white);
}

.legend-box {
  font-size: 0.75rem;
  margin-left: auto;
  max-width: 100%;
}

.legend-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.legend-box ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: 0.25rem 0 0;
  padding: 0;
}

.legend-box li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.swatch {
  width: 12px;
  height: 12px;
  border: 1px solid rgb(0 0 0 / 0.2);
  border-radius: 2px;
  flex-shrink: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-700);
}

.status-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
}

.rail-toggle {
  display: none;
  position: absolute;
  z-index: 520;
  right: var(--map-panel-gap);
  bottom: var(--map-panel-gap);
  min-height: 48px;
  padding-inline: 1rem;
  box-shadow: var(--shadow-lg);
}

.rail-toggle[hidden],
.report-rail[hidden] {
  display: none !important;
}

@media (max-width: 1079px) {
  .rail-toggle {
    display: inline-flex;
  }
}

.report-rail {
  background: color-mix(in srgb, var(--white) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: 1rem 1rem 1.5rem;
  overflow: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (max-width: 1079px) {
  .report-rail {
    position: fixed;
    z-index: 600;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(72vh, 560px);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(110%);
    transition: transform var(--duration-slow) var(--ease-out);
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .report-rail.is-open {
    transform: translateY(0);
  }

  .rail-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 550;
    background: rgb(0 18 36 / 0.35);
    backdrop-filter: blur(2px);
  }

  .rail-scrim.is-visible {
    display: block;
  }
}

@media (min-width: 1080px) {
  .report-rail {
    border-top: 0;
    border-left: 1px solid var(--color-border);
    max-height: calc(100svh - var(--nav-h));
  }

  .rail-scrim {
    display: none !important;
  }
}

.rail-handle {
  display: none;
  width: 2.5rem;
  height: 4px;
  margin: 0.15rem auto 0.75rem;
  border-radius: 999px;
  background: var(--color-border);
}

@media (max-width: 1079px) {
  .rail-handle {
    display: block;
  }
}

.kpi-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.kpi {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-raised);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.kpi:hover {
  border-color: var(--sea-400);
  box-shadow: var(--shadow-sm);
}

.kpi dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.kpi dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.report-rail h2 {
  font-size: 1rem;
  margin: 0.35rem 0 0.65rem;
}

.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.report-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.7rem;
  padding: 0.65rem;
  margin: 0 -0.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.report-list li:hover,
.report-list li:focus-within {
  background: var(--sea-50);
  border-color: var(--color-border);
}

.report-list button {
  all: unset;
  cursor: pointer;
  display: contents;
}

.report-list img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.report-list h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
}

.report-list p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-700);
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.chart-block {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
}

.chart-block h2 {
  margin-top: 0;
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  margin-top: 0.5rem;
}

.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 28rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.data-table tbody tr:hover,
.data-table tbody tr.is-active {
  background: var(--sea-100);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  position: sticky;
  top: 0;
  background: var(--color-surface-raised);
}

.leaflet-container {
  font-family: var(--font-body);
  background: #cfe4ec;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.leaflet-popup-content {
  margin: 0.75rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.leaflet-popup-content strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.leaflet-control-zoom a {
  border-radius: var(--radius-sm) !important;
  color: var(--navy-800) !important;
}

.site-divicon {
  background: none !important;
  border: none !important;
}

.site-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--navy-800);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 2px 8px rgb(0 26 51 / 0.28);
  transition: transform 160ms var(--ease);
}

.site-marker.is-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sea-400) 45%, transparent), 0 4px 12px rgb(0 26 51 / 0.3);
}


details summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.4rem 0;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  font-family: var(--font-mono);
  color: var(--orange-700);
}

details[open] summary::before {
  content: "−";
}

details[open] summary {
  margin-bottom: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 520px) {
  .legend-box {
    width: 100%;
    margin-left: 0;
  }

  .map-toolbar {
    gap: 0.4rem;
  }

  .hero-brand {
    font-size: clamp(2.75rem, 18vw, 4.5rem);
  }
}

