@import url("https://fonts.googleapis.com/css2?family=Mozilla+Text:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f9ff;
  --panel: #ffffff;
  --line: #c6d8ec;
  --line-strong: #9ebce0;
  --ink: #0d2940;
  --muted: #4e6f8d;
  --blue: #0b4f94;
  --blue-2: #1b75d0;
  --blue-3: #083763;
  --yellow: #f4c430;
  --yellow-2: #ffd84d;
  --soft-blue: #edf6ff;
  --soft-yellow: #fff5c4;
  --shadow: 0 12px 28px rgba(8, 55, 99, 0.08);
  --shadow-strong: 0 14px 36px rgba(8, 55, 99, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Mozilla Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f9fcff 0%, #f2f8ff 100%);
}

a {
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

.app {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0 16px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(244, 249, 255, 0.82));
  backdrop-filter: blur(8px);
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--blue-3);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(8, 55, 99, 0.05);
}

.section-nav a:hover {
  border-color: var(--blue-2);
  color: var(--blue);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-bottom: 18px;
}

.topbar-copy,
.hero-panel,
.summary-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar-copy {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(11, 79, 148, 0.05), transparent 55%),
    linear-gradient(180deg, #ffffff, #fafdff);
}

.hero-panel {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(244, 196, 48, 0.22), rgba(11, 79, 148, 0.02) 52%),
    linear-gradient(180deg, #ffffff, #fafdff);
  box-shadow: var(--shadow-strong);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-2);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 800;
}

h2 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h3 {
  font-size: 1rem;
  font-weight: 800;
}

.intro {
  max-width: 72ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.risk-chip,
.panel-pill,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.risk-chip {
  padding: 9px 14px;
  color: #092743;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
  border: 1px solid #e0b419;
}

.hero-panel strong {
  display: block;
  margin: 18px 0 10px;
  font-size: 1.35rem;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 18px;
  border-color: var(--line-strong);
}

.card-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  color: var(--blue-3);
}

.summary-card span {
  color: var(--muted);
  line-height: 1.5;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 340px;
  gap: 18px;
}

.content,
.rail {
  display: grid;
  gap: 18px;
  align-content: start;
}

.panel {
  padding: 22px;
  border-color: var(--line-strong);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.panel-pill {
  padding: 8px 12px;
  color: var(--blue-3);
  background: var(--soft-blue);
  border: 1px solid var(--line);
}

.brief-grid,
.double-grid {
  display: grid;
  gap: 16px;
}

.opening-grid {
  margin-bottom: 18px;
}

.brief-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

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

.brief-copy p,
.detail-hero p,
.impact,
.action-card p,
.tracker-card p,
.detail-card p {
  line-height: 1.65;
}

.clean-list {
  margin: 0;
  padding-left: 20px;
}

.clean-list.compact li + li,
.clean-list li + li {
  margin-top: 10px;
}

.action-stream,
.tracker-list,
.detail-cards,
.rail-list,
.archive-list {
  display: grid;
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

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

.summary-table th {
  color: var(--blue-3);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f7fbff;
}

.table-chip,
.legend-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
}

.table-chip.hot,
.legend-chip.hot {
  color: #7d1d18;
  background: #fde7e5;
  border-color: #f2beb8;
}

.table-chip.elevated,
.legend-chip.elevated {
  color: #8a4d08;
  background: #fff0d2;
  border-color: #f2d28e;
}

.table-chip.guarded,
.legend-chip.guarded {
  color: #876800;
  background: #fff7d6;
  border-color: #edd766;
}

.legend-chip.critical {
  color: #5f2b83;
  background: #f2e7ff;
  border-color: #d2b7f2;
}

.legend-chip.low {
  color: #21613a;
  background: #e3f5e8;
  border-color: #9ed2ac;
}

.legend-grid {
  display: grid;
  gap: 18px;
}

.legend-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-card,
.tracker-card,
.detail-card,
.rail-row,
.archive-item {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(8, 55, 99, 0.05);
}

.action-card,
.tracker-card,
.detail-card {
  padding: 16px;
}

.action-meta,
.tracker-meta,
.rail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tag {
  padding: 6px 10px;
  color: var(--blue-3);
  background: var(--soft-yellow);
  border: 1px solid #efd661;
}

.impact {
  color: var(--muted);
}

.action-links,
.tracker-links,
.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.inline-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
}

.detail-body {
  display: grid;
  gap: 18px;
}

.detail-hero {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 111, 178, 0.05), rgba(244, 196, 48, 0.12));
}

.archive-item {
  width: 100%;
  padding: 14px;
  text-align: left;
}

.archive-item.active {
  border-color: var(--blue-2);
  background: linear-gradient(180deg, #ffffff, #eef7ff);
  box-shadow: inset 0 0 0 1px rgba(27, 117, 208, 0.16);
}

.archive-date {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

#reportSearch {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
}

.rail-row {
  padding: 14px 16px;
}

.rail-row strong {
  color: var(--blue);
}

@media (max-width: 1260px) {
  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layout,
  .topbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .double-grid,
  .brief-grid {
    grid-template-columns: 1fr;
  }

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

  .app {
    width: min(100%, calc(100% - 24px));
    padding-top: 12px;
  }

  .section-nav {
    top: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
  }
}

@media (max-width: 560px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}
