/*
 * IMCC Situation Room — design system
 * Edit colors, typography and spacing centrally in section 01.
 */

/* 01. Tokens -------------------------------------------------------- */
:root {
  --sr-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sr-mono: "DM Mono", ui-monospace, monospace;
  --sr-navy: #0c2037;
  --sr-navy-dark: #08192b;
  --sr-paper: #f6f8fb;
  --sr-white: #ffffff;
  --sr-surface: #f0f5f9;
  --sr-ink: #1b344c;
  --sr-muted: #64798d;
  --sr-light: #aebfcf;
  --sr-line: #e1e9f0;
  --sr-line-dark: rgba(212, 234, 250, .15);
  --sr-blue: #1479b8;
  --sr-blue-hover: #0c629a;
  --sr-blue-light: #e7f4fc;
  --sr-on-dark: #f5faff;
  --sr-on-dark-muted: #b3c8d9;
  --sr-alert-bg: #fff8ec;
  --sr-alert-text: #8c632a;
  --sr-alert-line: #f0dfbd;
  --sr-shadow: 0 16px 38px rgba(11, 37, 61, .07);
  --sr-radius: 12px;
  --sr-radius-lg: 18px;
  --sr-width: 1280px;
}

/* 02. Base / accessibility ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
.sr-body {
  margin: 0; background: var(--sr-paper); color: var(--sr-ink);
  font: 14px/1.6 var(--sr-font); -webkit-font-smoothing: antialiased;
}
.sr-body a { color: inherit; text-decoration: none; }
.sr-body button, .sr-body input, .sr-body select { font: inherit; }
.sr-body button { cursor: pointer; }
.sr-body a:focus-visible, .sr-body button:focus-visible,
.sr-body input:focus-visible, .sr-body select:focus-visible {
  outline: 3px solid #75bee9; outline-offset: 2px;
}
.sr-body h1, .sr-body h2, .sr-body h3, .sr-body p { margin-top: 0; }
.sr-shell { width: min(calc(100% - 72px), var(--sr-width)); margin-inline: auto; }
.sr-skip { position: fixed; top: -100px; left: 10px; z-index: 1000; padding: 9px 16px; background: white; }
.sr-skip:focus { top: 8px; }

/* 03. Navigation ---------------------------------------------------- */
.sr-header {
  background: var(--sr-navy-dark); color: var(--sr-on-dark);
  border-bottom: 1px solid var(--sr-line-dark);
  position: relative; z-index: 50;
}
.sr-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sr-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.sr-brand img { object-fit: contain; }
.sr-brand-name { font-size: 23px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.sr-brand-caption {
  max-width: 156px; border-left: 1px solid var(--sr-line-dark); padding-left: 14px;
  font-size: 10px; line-height: 1.4; color: var(--sr-on-dark-muted);
}
.sr-nav { display: flex; align-items: center; gap: 30px; }
.sr-nav a { font-size: 12px; font-weight: 600; color: var(--sr-on-dark-muted); transition: color .15s; }
.sr-nav a:hover, .sr-nav a.is-current { color: var(--sr-on-dark); }
.sr-nav a.is-current { position: relative; }
.sr-nav a.is-current::after { content: ""; background: #79c4f1; position: absolute; left: 0; right: 0; height: 2px; bottom: -28px; }
.sr-menu-button { display: none; }

/* 04. Dark intro / breadcrumb -------------------------------------- */
.sr-hero {
  color: var(--sr-on-dark);
  background: radial-gradient(ellipse at 86% -10%, #1d5073, var(--sr-navy) 42%, var(--sr-navy-dark) 95%);
  padding: 33px 0 58px;
}
.sr-breadcrumb { display: flex; align-items: center; gap: 11px; font-size: 11px; color: var(--sr-on-dark-muted); margin-bottom: 46px; }
.sr-breadcrumb a:hover { color: var(--sr-on-dark); }
.sr-breadcrumb i { font-size: 9px; color: #7b9aaf; }
.sr-hero-row, .sr-detail-hero-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.sr-hero-row > div, .sr-detail-hero-row > div { max-width: 875px; }
.sr-eyebrow { display: flex; align-items: center; gap: 10px; font: 10px var(--sr-mono); letter-spacing: .1em; color: #93d0f2; margin-bottom: 15px; }
.sr-eyebrow-line { width: 22px; height: 1px; background: #93d0f2; }
.sr-hero h1 { font-size: clamp(33px, 4.2vw, 54px); line-height: 1.13; letter-spacing: -.043em; font-weight: 750; margin: 0 0 12px; }
.sr-hero-lead { font-size: 14px; color: var(--sr-on-dark-muted); line-height: 1.7; max-width: 690px; margin: 0; }
.sr-hero-action { flex: none; display: inline-flex; align-items: center; gap: 12px; color: var(--sr-on-dark); font-size: 12px; font-weight: 650; border: 1px solid rgba(197, 224, 244, .25); border-radius: 8px; padding: 11px 14px; }
.sr-hero-action:hover { background: rgba(255, 255, 255, .06); }
.sr-hero-note { display: flex; gap: 9px; margin: 34px 0 0; color: #8faabe; font-size: 11px; max-width: 900px; }
.sr-hero-note i { flex: none; }

/* 05. Registry filters ---------------------------------------------- */
.sr-section { padding: 42px 0 88px; }
.sr-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.7fr) minmax(130px, 1fr) minmax(140px, 1fr) minmax(120px, .8fr);
  gap: 14px 16px; padding: 22px; background: var(--sr-white);
  border: 1px solid var(--sr-line); border-radius: var(--sr-radius-lg);
  box-shadow: var(--sr-shadow);
}
.sr-filter { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.sr-filter label { font-size: 10px; color: var(--sr-muted); font-weight: 700; letter-spacing: .015em; }
.sr-filter input, .sr-filter select {
  width: 100%; min-height: 41px; border: 1px solid var(--sr-line);
  border-radius: 8px; background: var(--sr-paper); color: var(--sr-ink);
  padding: 0 12px; font-size: 12px; outline: none;
}
.sr-filter input::placeholder { color: #93a4b3; }
.sr-filter input:focus, .sr-filter select:focus { border-color: #88c8e9; background: var(--sr-white); }
.sr-filter-actions { display: flex; gap: 8px; align-items: end; grid-column: span 2; }
.sr-button { min-height: 41px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; display: inline-flex; justify-content: center; align-items: center; padding: 0 16px; gap: 10px; white-space: nowrap; }
.sr-button-blue { background: var(--sr-blue); color: var(--sr-white); }
.sr-button-blue:hover { background: var(--sr-blue-hover); }
.sr-button-reset { background: var(--sr-surface); color: var(--sr-muted); }
.sr-button-reset:hover { background: var(--sr-line); }

/* 06. Event registry ----------------------------------------------- */
.sr-list-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 50px 0 22px; }
.sr-kicker, .sr-card-index, .sr-side-label { font: 10px var(--sr-mono); letter-spacing: .09em; color: var(--sr-blue); }
.sr-kicker { margin-bottom: 9px; }
.sr-list-head h2 { font-size: 27px; font-weight: 750; letter-spacing: -.037em; margin: 0; }
.sr-list-total { font-size: 11px; color: var(--sr-muted); padding-bottom: 4px; }
.sr-list-total span { margin: 0 4px; }
.sr-event-list { display: grid; gap: 9px; }
.sr-event-row {
  display: grid; grid-template-columns: 188px minmax(0, 1fr) 96px 22px;
  align-items: center; gap: 24px;
  min-height: 112px; background: var(--sr-white); padding: 21px 25px;
  border: 1px solid var(--sr-line); border-radius: 10px;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.sr-event-row:hover { border-color: #b9d3e4; box-shadow: var(--sr-shadow); transform: translateY(-1px); }
.sr-event-kind { display: flex; gap: 10px; align-items: center; font-size: 11px; font-weight: 600; line-height: 1.35; color: var(--sr-blue); }
.sr-event-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--sr-blue-light); font-size: 16px; }
.sr-event-primary { min-width: 0; }
.sr-event-primary h3 { font-size: 14px; font-weight: 700; line-height: 1.42; margin: 0 0 10px; letter-spacing: -.012em; }
.sr-event-primary p { margin: 0; font-size: 11px; color: var(--sr-muted); }
.sr-event-primary p span { margin: 0 8px; }
.sr-severity { justify-self: end; max-width: 100%; text-align: center; color: var(--sr-muted); background: var(--sr-surface); padding: 5px 10px; border-radius: 999px; text-transform: capitalize; font-size: 10px; }
.sr-event-link { font-size: 16px; color: var(--sr-blue); }
.sr-empty { padding: 60px 20px; text-align: center; border: 1px solid var(--sr-line); border-radius: var(--sr-radius); background: var(--sr-white); color: var(--sr-muted); }
.sr-empty > i { font-size: 26px; color: var(--sr-blue); }
.sr-empty h3 { font-size: 19px; margin: 10px 0 6px; color: var(--sr-ink); }
.sr-empty p { font-size: 12px; margin: 0; }
.sr-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 0; }
.sr-pagination a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid var(--sr-line); background: white; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--sr-blue); }
.sr-pagination > span { font-size: 12px; color: var(--sr-muted); }
.sr-disclaimer { font-size: 11px; color: var(--sr-muted); margin: 26px 0 0; display: flex; align-items: flex-start; gap: 10px; }
.sr-disclaimer i { color: var(--sr-blue); }
.sr-alert { border-radius: var(--sr-radius); padding: 14px 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-size: 12px; }
.sr-alert-warning { background: var(--sr-alert-bg); color: var(--sr-alert-text); border: 1px solid var(--sr-alert-line); }

/* 07. Incident view ------------------------------------------------- */
.sr-detail-hero { padding-bottom: 48px; }
.sr-detail-hero .sr-breadcrumb { margin-bottom: 38px; }
.sr-detail-hero h1 { font-size: clamp(28px, 3.7vw, 46px); max-width: 870px; line-height: 1.23; margin: 0 0 15px; }
.sr-detail-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 19px; }
.sr-detail-tags span { font-size: 10px; border: 1px solid rgba(208, 228, 244, .19); padding: 5px 10px; border-radius: 999px; color: #b8d3e6; }
.sr-detail-tags i { margin-right: 5px; color: #8fd5f5; }
.sr-detail-subtitle { color: var(--sr-on-dark-muted); font-size: 13px; margin: 0; }
.sr-detail-subtitle i { margin-right: 5px; }
.sr-detail-section { padding-top: 36px; }
.sr-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 22px; align-items: start; }
.sr-detail-main, .sr-detail-side { display: grid; gap: 18px; min-width: 0; }
.sr-card, .sr-side-card { background: var(--sr-white); border: 1px solid var(--sr-line); border-radius: var(--sr-radius-lg); }
.sr-card { padding: 28px; }
.sr-side-card { padding: 24px; }
.sr-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; padding-bottom: 15px; border-bottom: 1px solid var(--sr-line); }
.sr-card-heading h2 { font-weight: 750; letter-spacing: -.025em; font-size: 18px; margin: 0; }
.sr-card-index { font-size: 10px; }
.sr-article { white-space: normal; color: #405a70; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.sr-article p { margin: 0 0 13px; }
.sr-article p:last-child { margin-bottom: 0; }
.sr-muted { color: var(--sr-muted); font-size: 13px; margin: 0; }
.sr-caption { color: var(--sr-muted); font-size: 11px; line-height: 1.65; margin: 10px 0 0; }
.sr-map-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 13px; }
.sr-map-toolbar div { display: flex; flex-direction: column; }
.sr-map-toolbar div span { font-size: 10px; color: var(--sr-muted); }
.sr-map-toolbar div strong { font: 500 12px/1.7 var(--sr-mono); color: var(--sr-ink); }
.sr-inline-link { display: inline-flex; align-items: center; gap: 8px; color: var(--sr-blue) !important; font-size: 12px; font-weight: 700; }
.sr-inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sr-event-map { width: 100%; height: 360px; overflow: hidden; background: var(--sr-surface); border-radius: 10px; }
.sr-map-note { font-size: 11px; color: var(--sr-muted); margin: 12px 0 0; }
.sr-info-state { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border-radius: 9px; background: var(--sr-surface); color: var(--sr-muted); font-size: 12px; }
.sr-info-state i { color: var(--sr-blue); font-size: 17px; }
.sr-timeline { list-style: none; padding: 0 0 0 16px; margin: 19px 0 0; border-left: 1px solid #c9dfed; }
.sr-timeline li { position: relative; display: flex; gap: 12px; padding: 0 0 22px 10px; }
.sr-timeline li:last-child { padding-bottom: 0; }
.sr-timeline-dot { position: absolute; left: -21px; top: 4px; width: 9px; height: 9px; background: var(--sr-blue); border: 2px solid var(--sr-white); outline: 1px solid #b4d5e7; border-radius: 50%; }
.sr-timeline strong { display: block; font-size: 12px; }
.sr-timeline p { margin: 2px 0 0; font-size: 11px; color: var(--sr-muted); }
.sr-side-label { color: var(--sr-muted); margin: 0 0 18px; }
.sr-facts { margin: 0; }
.sr-facts > div { padding: 12px 0; border-top: 1px solid var(--sr-line); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.sr-facts > div:first-child { border-top: none; padding-top: 0; }
.sr-facts > div:last-child { padding-bottom: 0; }
.sr-facts dt { color: var(--sr-muted); font-size: 11px; flex: 0 0 45%; }
.sr-facts dd { margin: 0; font-size: 11px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.sr-impact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.sr-impact-grid div { display: flex; flex-direction: column; padding: 12px; background: var(--sr-surface); border-radius: 8px; }
.sr-impact-grid strong { font-size: 19px; letter-spacing: -.03em; color: var(--sr-ink); }
.sr-impact-grid span { font-size: 10px; color: var(--sr-muted); }
.sr-source-name { display: block; font-size: 13px; overflow-wrap: anywhere; margin: 0 0 10px; }
.sr-bottom-action { padding-top: 28px; }
.sr-bottom-action a { font-size: 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--sr-blue); font-weight: 700; }

/* 08. Footer -------------------------------------------------------- */
.sr-footer { background: var(--sr-navy); color: var(--sr-on-dark); padding: 43px 0 18px; }
.sr-footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 31px; }
.sr-footer strong { font-size: 20px; letter-spacing: -.04em; }
.sr-footer strong span { color: #8bcdef; font-size: 13px; }
.sr-footer p { margin: 10px 0 0; color: var(--sr-on-dark-muted); font-size: 11px; max-width: 380px; }
.sr-footer-links { display: flex; flex-direction: column; gap: 5px; color: var(--sr-on-dark-muted); font-size: 12px; }
.sr-footer-links a { color: var(--sr-on-dark); font-weight: 650; }
.sr-footer-bottom { border-top: 1px solid var(--sr-line-dark); padding-top: 15px; display: flex; justify-content: space-between; gap: 12px; color: #8ba7bd; font-size: 10px; }

/* 09. Responsive ---------------------------------------------------- */
@media (max-width: 1100px) {
  .sr-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sr-filter-actions { grid-column: span 3; }
  .sr-nav { gap: 16px; }
  .sr-detail-layout { grid-template-columns: minmax(0, 1fr) 285px; }
  .sr-event-row { grid-template-columns: 142px minmax(0, 1fr) 85px 16px; gap: 16px; }
}
@media (max-width: 800px) {
  .sr-shell { width: min(calc(100% - 36px), var(--sr-width)); }
  .sr-header-inner { min-height: 70px; }
  .sr-brand-caption { font-size: 9px; }
  .sr-menu-button { display: grid; place-items: center; margin-left: auto; width: 38px; height: 38px; border: 1px solid var(--sr-line-dark); color: var(--sr-on-dark); background: transparent; border-radius: 8px; font-size: 20px; }
  .sr-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; padding: 14px 22px 21px; background: var(--sr-navy-dark); border-top: 1px solid var(--sr-line-dark); box-shadow: 0 18px 30px rgba(4,18,30,.22); flex-direction: column; align-items: stretch; gap: 0; }
  .sr-nav.is-open { display: flex; }
  .sr-nav a { padding: 10px 0; font-size: 13px; }
  .sr-nav a.is-current::after { display: none; }
  .sr-hero { padding: 26px 0 46px; }
  .sr-breadcrumb { margin-bottom: 30px; }
  .sr-hero-row, .sr-detail-hero-row { align-items: start; flex-direction: column; gap: 23px; }
  .sr-detail-layout { grid-template-columns: 1fr; }
  .sr-detail-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sr-detail-side > :last-child { grid-column: 1 / -1; }
  .sr-event-row { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .sr-event-kind { grid-column: 1; }
  .sr-event-primary { grid-column: 1; }
  .sr-severity { grid-row: 1; grid-column: 2; }
  .sr-event-link { grid-row: 2; grid-column: 2; align-self: end; }
}
@media (max-width: 600px) {
  .sr-shell { width: min(calc(100% - 28px), var(--sr-width)); }
  .sr-brand img { width: 32px; height: 32px; }
  .sr-brand-name { font-size: 20px; }
  .sr-brand-caption { max-width: 127px; }
  .sr-hero h1 { font-size: 34px; }
  .sr-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 12px; }
  .sr-filter-search, .sr-filter:nth-child(2) { grid-column: span 2; }
  .sr-filter-actions { grid-column: span 2; }
  .sr-list-head { align-items: start; flex-direction: column; gap: 12px; }
  .sr-list-head h2 { font-size: 25px; }
  .sr-section { padding-bottom: 60px; }
  .sr-event-row { padding: 18px; }
  .sr-event-primary h3 { font-size: 13px; }
  .sr-detail-side { grid-template-columns: 1fr; }
  .sr-detail-side > :last-child { grid-column: auto; }
  .sr-card { padding: 19px; }
  .sr-event-map { height: 285px; }
  .sr-footer-inner, .sr-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sr-event-row { transition: none; }
  .sr-event-row:hover { transform: none; }
}

/* Unified Situation secondary navigation: the only hazard section menu. */
.sr-section-nav {background:#f9fbfd;border-bottom:1px solid var(--sr-line);}
.sr-section-nav-inner{display:flex;align-items:center;gap:4px;min-height:48px;overflow-x:auto;scrollbar-width:thin}
.sr-section-nav a{display:inline-flex;align-items:center;min-height:40px;white-space:nowrap;padding:8px 14px;font-size:12px;font-weight:650;color:#64798d;border-bottom:2px solid transparent}
.sr-section-nav a:hover{color:#146eaa;background:#eef6fb}
.sr-section-nav a.is-active{color:#176fa5;border-bottom-color:#176fa5}
@media(max-width:780px){.sr-section-nav-inner{width:calc(100% - 28px)}.sr-section-nav a{padding:8px 11px;font-size:11px}}
