/* Shared visual vocabulary with fernandofuentes.cl; application-specific layout. */
:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #18232a;
  --muted: #56636a;
  --line: #d9dddf;
  --accent: #31586b;
  --chart-secondary: #6b7266;
  --surface: #fff;
  --soft: #eef1f1;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p {
  margin: 0;
}
html {
  scroll-padding-top: 100px;
}
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 var(--sans);
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  background: none;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 12px 20px;
}
.skip-link:focus {
  transform: none;
}
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 86px;
  padding: 16px max(32px, calc((100vw - 1392px) / 2));
  display: flex;
  align-items: center;
  gap: 36px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.app-monogram {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  letter-spacing: -0.04em;
}
.header__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.header__subtitle {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.header__nav {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.nav-btn::after {
  content: "";
  position: absolute;
  bottom: 2px;
  height: 2px;
  left: 0;
  right: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms var(--ease);
}
.nav-btn:is(:hover, .active) {
  color: var(--ink);
}
.nav-btn:is(:hover, .active)::after {
  transform: scaleX(1);
}
.nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  pointer-events: none;
  opacity: 0;
}
.has-indicator .nav-indicator {
  opacity: 1;
}
.has-indicator .nav-btn::after {
  display: none;
}
.hub-link {
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 12px;
}
.hub-link span {
  margin-left: 10px;
}
.nav-toggle {
  display: none;
}
.main {
  width: min(1392px, calc(100% - 96px));
  margin: 0 auto;
  min-height: 80vh;
}
.masthead {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 72px;
  align-items: end;
  padding: 66px 0 54px;
}
.eyebrow,
.section-label,
.section-label-sm,
.oh-pillar__eje {
  font: 11px/1.6 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.masthead h1 {
  font-size: clamp(38px, 4.1vw, 64px);
  line-height: 1.09;
  letter-spacing: -0.065em;
  font-weight: 500;
  margin-top: 22px;
}
.masthead h1 span {
  display: block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.71em;
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -0.055em;
}
.masthead__context {
  padding-bottom: 5px;
  max-width: 390px;
}
.masthead__context > p:first-child {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.masthead__context > p + p {
  font-size: 14px;
  color: var(--muted);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  min-height: 44px;
  margin-top: 16px;
  font-size: 13px;
  text-decoration: none;
}
.text-link span {
  transition: transform 250ms var(--ease);
}
.text-link:hover span {
  transform: translate(3px, -3px);
}
.territory-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.toolbar-label {
  display: grid;
  gap: 3px;
  margin-right: 12px;
}
.toolbar-label > span:last-child {
  font-size: 14px;
}
.header__controls {
  display: flex;
  gap: 10px;
  min-width: 0;
}
.region-select {
  padding: 10px 30px 10px 12px;
  border: 1px solid #b7c2c7;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  max-width: 230px;
  min-height: 44px;
}
.status-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--muted);
}
.status-dot.online {
  background: #326258;
}
.status-dot.partial {
  background: #83551d;
}
.status-dot.error {
  background: #953e31;
}
.status-time {
  font-size: 11px;
  max-width: 245px;
  line-height: 1.5;
  color: var(--muted);
}
.refresh-button {
  border: 0;
  padding: 10px 0 10px 12px;
  min-height: 44px;
  font-size: 12px;
}
.refresh-button span {
  display: inline-block;
  margin-left: 10px;
  transition: transform 500ms var(--ease);
}
.refresh-button:hover span {
  transform: rotate(90deg);
}
.refresh-button:disabled {
  cursor: wait;
  color: var(--muted);
}
.scope-note {
  font-size: 12px;
  color: var(--muted);
  max-width: 1000px;
  padding: 14px 0 24px;
}
.oh-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.oh-pillar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  padding: 25px 28px;
  text-decoration: none;
  transition: background 300ms var(--ease);
}
.oh-pillar + .oh-pillar {
  border-left: 1px solid var(--line);
}
.oh-pillar:first-child {
  padding-left: 0;
}
.oh-pillar:last-child {
  padding-right: 0;
}
.oh-pillar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms var(--ease);
}
.oh-pillar:hover {
  background: #f0f1ee;
}
.oh-pillar:hover::after {
  transform: scaleX(1);
}
.oh-pillar__eje {
  grid-column: 1;
  grid-row: 1;
}
.oh-pillar__info {
  grid-column: 1/-1;
  grid-row: 2;
  min-width: 0;
}
.oh-pillar__label {
  display: block;
  font-size: 21px;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.oh-pillar__summary {
  display: block;
  font-size: 12px;
  color: var(--muted);
  min-height: 40px;
}
.oh-pillar__status {
  grid-column: 2;
  grid-row: 1;
  color: var(--accent);
  font: 10px/1.6 var(--mono);
  text-transform: uppercase;
}
.intro-panel {
  margin: 0 0 46px;
  border-bottom: 1px solid var(--line);
}
summary {
  padding: 15px 0;
  min-height: 44px;
  font-size: 13px;
}
.intro-panel summary span {
  margin-left: 20px;
  font-size: 12px;
  color: var(--muted);
}
.intro-panel__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 20px 0 28px;
  font-size: 13px;
  color: var(--muted);
}
.intro-panel__badge {
  color: var(--accent);
  margin-bottom: 12px;
}
.intro-panel__how strong {
  display: block;
  color: var(--ink);
  margin-bottom: 12px;
}
.intro-panel__axes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 15px;
  font-size: 11px;
}
.view-stage {
  position: relative;
  display: flow-root;
}
.js .view-stage {
  min-height: calc(100vh - 120px);
  min-height: calc(100svh - 120px);
}
.view {
  margin-bottom: 60px;
}
.js .view:not(.active):not(.is-outgoing) {
  display: none;
}
.view.is-outgoing {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
}
.view-stage[data-transitioning] {
  overflow: clip;
}
.view-stage[data-transitioning] > .active {
  position: relative;
  background: var(--paper);
}
.view__header {
  margin-bottom: 28px;
}
.section-title {
  font-size: clamp(23px, 2.3vw, 34px);
  line-height: 1.23;
  font-weight: 500;
  letter-spacing: -0.045em;
  margin-top: 10px;
}
.section-title span {
  color: var(--accent);
}
.section-label-sm {
  margin-bottom: 18px;
  font-weight: 400;
}
.kpi-grid-oh,
.kpi-grid-4,
.kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin: 26px 0 36px;
}
.kpi-grid-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kpi-card {
  position: relative;
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.kpi-card:not(:nth-child(4n + 1)) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.kpi-grid-6 .kpi-card {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.kpi-grid-6 .kpi-card:nth-child(3n + 1) {
  padding-left: 0;
  border-left: 0;
}
.kpi-card__eje {
  display: none;
}
.kpi-card__label {
  font-size: 12px;
  color: var(--muted);
  padding-right: 45px;
  min-height: 40px;
  line-height: 1.5;
}
.source-kind {
  position: absolute;
  top: 23px;
  right: 16px;
  color: var(--accent);
  font: 10px/1.7 var(--mono);
  letter-spacing: 0.04em;
}
.kpi-card__val {
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin: 9px 0 12px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.kpi-card__unit {
  font-size: 11px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}
.kpi-card__badge {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 35px;
}
.charts-row-2,
.charts-row-3,
.bottom-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}
.charts-row-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.charts-row-3 > :first-child {
  grid-column: 1 / -1;
}
.chart-block {
  background: transparent;
  border-top: 1px solid var(--ink);
  padding: 24px 0 8px;
  min-width: 0;
}
.chart-block__header {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 12px;
  min-height: 62px;
}
.chart-label {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.3;
  flex: 1 1 60%;
}
.chart-sublabel {
  font-size: 12px;
  color: var(--muted);
  order: 3;
  flex: 1 1 100%;
}
.src-tag {
  font: 10px/1.7 var(--mono);
  color: var(--accent);
}
.chart-frame {
  position: relative;
  height: 270px;
}
.chart-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.chart-message {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-block: 1px dashed var(--line);
}
.chart-legend {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  min-height: 42px;
  font-size: 12px;
  line-height: 1.5;
}
.chart-legend li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.chart-legend__axis {
  color: var(--muted);
  font-size: 11px;
}
.chart-swatch {
  width: 22px;
  flex: 0 0 22px;
  border-top: 2px solid var(--series-color);
  transform: translateY(-3px);
}
.chart-swatch--dashed {
  border-top-style: dashed;
}
.chart-swatch--bar {
  border-top-width: 8px;
  transform: none;
}
.chart-caption {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 36px;
  margin-top: 14px;
  max-width: 70ch;
}
.chart-block .data-table {
  margin-top: 10px;
}
.chart-block .data-table summary {
  min-height: 44px;
  padding-block: 12px;
}
.chart-block .table-scroll {
  font-variant-numeric: tabular-nums;
}
.chart-block .src-tag {
  padding-top: 3px;
}
.data-table {
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.data-table summary {
  font-size: 12px;
  color: var(--accent);
}
.table-scroll {
  max-height: 360px;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
caption {
  text-align: left;
  padding: 8px 0;
  color: var(--muted);
}
th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 500;
}
tbody th {
  font-weight: 400;
}
.forecast-block,
.alerts-block {
  padding: 22px 0;
  min-width: 0;
}
.forecast-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}
.forecast-note {
  max-width: 58ch;
  margin: 8px 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.forecast-day {
  padding: 5px 9px;
  border-left: 1px solid var(--line);
  text-align: center;
  min-width: 0;
}
.forecast-day:first-child {
  border-left: 0;
  padding-left: 0;
}
.forecast-day__name {
  font: 10px/1.7 var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}
.forecast-day__desc {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  min-height: 48px;
  margin: 12px 0 7px;
  overflow-wrap: anywhere;
}
.forecast-day__max {
  display: block;
  font-size: 17px;
  font-weight: 500;
}
.forecast-day__min {
  font-size: 12px;
  color: var(--muted);
}
.alerts-list {
  display: grid;
  gap: 9px;
}
.source-state {
  display: grid;
  grid-template-columns: minmax(115px, 0.8fr) 1.5fr;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.source-state span:last-child {
  color: var(--muted);
}
.data-key {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.empty-state {
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0;
  grid-column: 1/-1;
}
.daylight-card {
  padding: 24px 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.daylight-label {
  font: 11px/1.6 var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}
.daylight-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 20px 0 12px;
}
.daylight-item {
  font-size: 12px;
}
.daylight-item strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.daylight-bar {
  position: relative;
  height: 3px;
  background: var(--line);
  flex: 1;
}
.daylight-bar__fill {
  height: 100%;
  background: var(--accent);
}
.daylight-bar__now {
  position: absolute;
  width: 9px;
  height: 9px;
  top: -3px;
  background: var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}
.daylight-hours {
  font-size: 12px;
  color: var(--muted);
}
.seismic-section,
.species-section,
.sensors-section,
.wb-section {
  margin: 36px 0;
}
.seismic-item {
  display: grid;
  grid-template-columns: 65px 1fr 85px 180px;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.seismic-mag {
  color: var(--accent);
  font-weight: 500;
}
.seismic-depth,
.seismic-time {
  color: var(--muted);
  font-size: 12px;
}
.species-grid,
.sensors-grid,
.wb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 30px;
}
.species-card,
.sensor-card {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
}
.species-kingdom,
.species-meta,
.sensor-location,
.sensor-reading time {
  font-size: 11px;
  color: var(--muted);
}
.species-name {
  font-size: 17px;
  font-style: italic;
  margin: 5px 0 8px;
}
.species-vernacular {
  font-size: 12px;
  margin-bottom: 4px;
}
.sensor-name {
  font-size: 17px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.sensor-readings {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.sensor-reading {
  font-size: 12px;
}
.sensor-reading time {
  display: block;
}
.health-context {
  color: var(--muted);
  font-size: 13px;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: var(--soft);
}
.method-panel {
  padding: 30px 34px;
  border-top: 1px solid var(--line);
}
.method-panel h3 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.045em;
  margin: 18px 0;
}
.method-panel p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0;
}
.method-panel a {
  display: inline-block;
  padding: 12px 0;
  font-size: 13px;
}
.wb-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.wb-card {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.wb-indicator {
  font-size: 12px;
  min-height: 40px;
  color: var(--muted);
}
.wb-value {
  font-size: 27px;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.wb-unit {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
  display: block;
}
.wb-year {
  font-size: 12px;
  margin-top: 10px;
}
.wb-source {
  display: inline-block;
  font-size: 11px;
  padding-top: 8px;
}
.map-layers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.layer-btn {
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-size: 12px;
  min-height: 44px;
  transition:
    background 250ms var(--ease),
    color 250ms var(--ease);
}
.layer-btn.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
#map {
  height: 480px;
  min-height: 280px;
  background: #e9eeeb;
  z-index: 0;
  border: 1px solid var(--line);
}
.map-legend,
#map-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0;
}
.map-value {
  width: 44px;
  height: 36px;
  display: grid;
  place-items: center;
  background: white;
  border: 2px solid var(--accent);
  color: var(--ink);
  border-radius: 3px;
  font: 12px var(--sans);
}
.map-point {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font: 10px var(--mono);
}
.map-popup {
  font: 13px/1.7 var(--sans);
  color: var(--ink);
}
.map-popup strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.leaflet-container {
  font-family: var(--sans);
}
.leaflet-container a {
  color: var(--accent);
}
.leaflet-control-zoom a {
  min-width: 36px;
  min-height: 36px;
  line-height: 36px;
}
.about-banner {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-banner h3 {
  max-width: 760px;
  font-size: clamp(25px, 3vw, 40px);
  letter-spacing: -0.045em;
  line-height: 1.2;
  font-weight: 400;
}
.about-banner p {
  max-width: 790px;
  color: var(--muted);
  margin-top: 22px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 38px;
  margin: 32px 0 60px;
}
.about-card {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.about-card__icon {
  font: 11px var(--mono);
  color: var(--muted);
}
.about-card__title {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 14px 0;
}
.about-card__body,
.about-card__list {
  font-size: 13px;
  color: var(--muted);
}
.about-card__list {
  padding-left: 17px;
  margin: 0;
}
.about-card__list li + li {
  margin-top: 8px;
}
.source-directory {
  margin: 60px 0;
}
.source-directory h3,
.about-team__title {
  font-size: 30px;
  letter-spacing: -0.045em;
  font-weight: 400;
  margin: 10px 0 24px;
}
.source-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.source-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.source-list a span:first-child {
  font-size: 14px;
  min-width: 110px;
}
.source-list a span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.source-list a:hover {
  border-color: var(--accent);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}
.team-card {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.team-card__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.team-card__role {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 12px;
}
.team-card__orcid {
  display: inline-block;
  font-size: 11px;
  padding: 8px 0;
}
.about-dev {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  margin: 46px 0 26px;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
}
.about-dev__name {
  font-size: 20px;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}
.about-dev__role,
.about-disclaimer {
  font-size: 12px;
  color: var(--muted);
}
.about-dev__contact {
  display: block;
  width: fit-content;
  padding-top: 10px;
  font-size: 13px;
}
.about-dev__badge {
  font: 11px/1.6 var(--mono);
  color: var(--accent);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: min(1392px, calc(100% - 96px));
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .masthead {
    padding-block: 84px 64px;
  }
}
@media (max-width: 1200px) {
  .header {
    gap: 24px;
    padding-inline: 32px;
  }
  .header__nav {
    gap: 16px;
  }
  .hub-link {
    display: none;
  }
  .main,
  .footer {
    width: calc(100% - 64px);
  }
  .masthead {
    gap: 40px;
  }
  .status-block {
    margin-left: 0;
  }
  .refresh-button {
    margin-left: auto;
  }
  .wb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .header {
    min-height: 74px;
    padding: 14px 24px;
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
    padding: 8px 12px;
    min-height: 44px;
    font-size: 13px;
    border: 1px solid var(--line);
  }
  .header__nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 4px 24px;
    margin: 0;
  }
  .js .header__nav {
    display: none;
  }
  .js .header__nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 16px;
    padding: 10px 24px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-btn {
    padding-block: 10px;
  }
  .nav-indicator {
    display: none;
  }
  .has-indicator .nav-btn::after {
    display: block;
  }
  .main,
  .footer {
    width: calc(100% - 48px);
  }
  .masthead {
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    padding: 46px 0 40px;
  }
  .masthead h1 {
    font-size: 38px;
  }
  .masthead__context > p:first-child {
    font-size: 17px;
  }
  .masthead__context > p + p {
    font-size: 12px;
  }
  .toolbar-label {
    flex: 1 1 100%;
  }
  .toolbar-label > span:last-child {
    display: none;
  }
  .header__controls {
    flex: 1 1 100%;
  }
  .region-select {
    flex: 1;
    max-width: none;
    min-width: 0;
  }
  .oh-pillar {
    padding: 20px 16px;
  }
  .oh-pillar__status {
    display: none;
  }
  .oh-pillar__label {
    font-size: 18px;
  }
  .oh-pillar__summary {
    font-size: 11px;
  }
  .kpi-grid-oh,
  .kpi-grid-4,
  .kpi-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-card,
  .kpi-card:not(:nth-child(4n + 1)),
  .kpi-grid-6 .kpi-card {
    border-left: 0;
    padding: 20px 20px 20px 0;
  }
  .kpi-card:nth-child(even),
  .kpi-grid-6 .kpi-card:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 20px;
  }
  .charts-row-2,
  .charts-row-3,
  .bottom-row {
    grid-template-columns: 1fr;
  }
  .chart-frame {
    height: 275px;
  }
  .forecast-block,
  .alerts-block {
    padding-block: 12px;
  }
  .forecast-day__desc {
    min-height: 30px;
  }
  .species-grid,
  .sensors-grid,
  .about-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .seismic-item {
    grid-template-columns: 50px 1fr 75px;
    gap: 8px 12px;
  }
  .seismic-time {
    grid-column: 2/-1;
  }
  .source-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .header {
    padding-inline: 20px;
  }
  .main,
  .footer {
    width: calc(100% - 40px);
  }
  .masthead {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 0 30px;
  }
  .masthead h1 {
    font-size: clamp(33px, 9vw, 43px);
    margin-top: 16px;
  }
  .masthead__context {
    max-width: 370px;
  }
  .masthead__context > p:first-child {
    font-size: 17px;
    margin-bottom: 8px;
  }
  .masthead__context > p + p {
    font-size: 13px;
  }
  .text-link {
    margin-top: 8px;
  }
  .territory-toolbar {
    gap: 10px 14px;
    padding-block: 16px;
  }
  .status-block {
    flex: 1;
  }
  .status-time {
    font-size: 10px;
  }
  .refresh-button {
    font-size: 11px;
    padding-left: 0;
  }
  .scope-note {
    font-size: 11px;
    padding-bottom: 20px;
  }
  .oh-pillars {
    grid-template-columns: 1fr;
  }
  .oh-pillar,
  .oh-pillar:first-child,
  .oh-pillar:last-child {
    padding: 16px 0;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: baseline;
  }
  .oh-pillar + .oh-pillar {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .oh-pillar__eje {
    font-size: 9px;
  }
  .oh-pillar__info {
    grid-column: 2;
    grid-row: 1;
  }
  .oh-pillar__label {
    font-size: 18px;
    margin-bottom: 3px;
  }
  .oh-pillar__summary {
    min-height: 0;
    font-size: 11px;
  }
  .intro-panel {
    margin-bottom: 32px;
  }
  .intro-panel summary span {
    display: block;
    margin-left: 17px;
    margin-top: 3px;
  }
  .intro-panel__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-title {
    font-size: 25px;
  }
  .kpi-card__label {
    font-size: 11px;
    padding-right: 0;
    margin-top: 21px;
    min-height: 34px;
  }
  .source-kind {
    top: 16px;
    right: auto;
    left: 0;
    font-size: 9px;
  }
  .kpi-card:nth-child(even) .source-kind {
    left: 20px;
  }
  .kpi-card__val {
    font-size: 31px;
  }
  .kpi-card__badge {
    font-size: 10px;
    min-height: 48px;
  }
  .kpi-card__unit {
    font-size: 10px;
  }
  .charts-row-3 {
    grid-template-columns: 1fr;
  }
  .chart-block {
    padding: 20px 0 4px;
  }
  .chart-frame {
    height: 240px;
  }
  .forecast-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 22px;
  }
  .forecast-day:nth-child(5) {
    border-left: 0;
  }
  .forecast-day__desc {
    min-height: 44px;
  }
  .source-state {
    grid-template-columns: 100px 1fr;
    gap: 12px;
    font-size: 11px;
  }
  .daylight-inner {
    gap: 16px;
  }
  .daylight-label {
    font-size: 10px;
  }
  .species-grid,
  .sensors-grid,
  .about-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .wb-grid {
    gap: 18px;
  }
  .wb-value {
    font-size: 23px;
  }
  .method-panel {
    padding: 26px 0;
  }
  #map {
    height: 380px;
  }
  .map-layers {
    gap: 6px;
  }
  .layer-btn {
    flex: 1 1 auto;
    padding-inline: 12px;
    font-size: 11px;
  }
  .source-list a {
    flex-direction: column;
    gap: 4px;
  }
  .about-dev {
    flex-direction: column;
  }
  .about-dev__name {
    font-size: 19px;
  }
  .about-disclaimer {
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .header__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .region-select {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.observation-panel {
  border-top: 2px solid var(--ink, #18232a);
  border-bottom: 1px solid var(--line, #d9dddf);
  padding: 24px 0;
  margin: 0 0 32px;
}
.observation-panel__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.observation-panel h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  margin: 8px 0 12px;
}
.observation-panel__station,
#dmc-state,
.observation-panel__note {
  color: #56636a;
  font-size: 0.82rem;
  line-height: 1.65;
}
.observation-panel__station {
  margin: 12px 0 20px;
  overflow-wrap: anywhere;
}
.observation-panel__readings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.observation-panel__readings > div {
  border-top: 1px solid #d9dddf;
  padding: 18px 0 8px;
  min-width: 0;
}
.observation-panel__readings h4 {
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
}
.observation-panel__readings p:not(.observation-value) {
  font-size: 0.75rem;
  color: #56636a;
  line-height: 1.65;
  margin: 0;
}
.observation-value {
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: -0.05em;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.observation-value small {
  font-size: 0.9rem;
  letter-spacing: 0;
  color: #56636a;
}
.observation-panel__note {
  margin: 18px 0 0;
  max-width: 90ch;
}
@media (max-width: 600px) {
  .observation-panel__heading {
    display: block;
  }
  .observation-panel__heading > a {
    display: inline-block;
    margin-bottom: 16px;
  }
  .observation-panel__readings {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
@media print {
  .header,
  .territory-toolbar,
  .oh-pillars,
  .intro-panel,
  .map-layers {
    display: none;
  }
  .main,
  .footer {
    width: 100%;
  }
  .js .view {
    display: block !important;
    break-before: page;
  }
  .chart-block,
  .kpi-card {
    break-inside: avoid;
  }
}
