:root {
  color-scheme: light;
  --bg: #f2f5ef;
  --surface: #fffdf6;
  --surface-soft: #edf5f1;
  --ink: #052f38;
  --muted: #60706d;
  --line: #c9d8d2;
  --accent: #008f72;
  --accent-strong: #003941;
  --accent-warm: #f0a431;
  --tag: #e4f1ec;
  --warning: #fff4d8;
  --header-bg: #002f38;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent-strong);
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 230px;
  padding: 38px max(32px, calc((100% - 1180px) / 2)) 32px;
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(0, 47, 56, 0.98), rgba(0, 47, 56, 0.84) 52%, rgba(0, 47, 56, 0.62)),
    radial-gradient(circle at 76% 18%, rgba(0, 143, 114, 0.36), transparent 26%),
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.14) 48.2% 48.8%, transparent 49%),
    var(--header-bg);
  color: #fffdf6;
}

.eyebrow {
  margin: 0 0 6px;
  color: #52e0bd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.intro {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 253, 246, 0.82);
  font-size: 1.05rem;
}

.project-link {
  margin: 10px 0 0;
  color: rgba(255, 253, 246, 0.74);
  font-size: 0.94rem;
}

.project-link a {
  color: #52e0bd;
  font-weight: 700;
}

.top-links {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.top-links a,
button {
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 9px 12px;
  text-decoration: none;
}

main {
  padding: 28px 0;
}

.notice {
  background: var(--warning);
  border: 0;
  border-left: 4px solid var(--accent-warm);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 13px 15px;
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.coverage-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 16px;
}

.coverage-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.coverage-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.coverage-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.coverage-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #fffdf6, #f8fbf7);
}

.metric strong {
  display: block;
  color: var(--accent-strong);
  font-size: 1.35rem;
  line-height: 1.1;
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.coverage-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.coverage-year {
  display: flex;
  gap: 7px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 5px 9px;
}

.coverage-year span {
  color: var(--muted);
  font-size: 0.84rem;
}

.watch-panel,
.alerts-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 16px;
}

.watch-heading,
.alerts-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.watch-heading h2,
.alerts-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.watch-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-kicker {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.watch-lines {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.watch-line {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 150px;
  align-content: start;
  border-color: var(--line);
  background: linear-gradient(180deg, #fffdf6, #f5faf7);
  color: var(--ink);
  padding: 12px;
  box-shadow: none;
  text-align: left;
}

.watch-line:hover {
  border-color: var(--accent);
}

.watch-line.is-active {
  border-color: var(--accent);
  background: var(--tag);
  box-shadow: inset 0 3px 0 var(--accent);
}

.watch-line strong {
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
}

.watch-line span {
  color: var(--accent);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
}

.watch-line small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.watch-line:focus {
  outline: none;
}

.watch-line:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.alerts-panel {
  border-top: 3px solid var(--accent-warm);
}

.alerts-heading span {
  color: var(--muted);
  font-size: 0.84rem;
}

.alert-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.alert-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
  padding: 11px;
}

.alert-label {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-self: start;
  width: max-content;
  border-radius: 999px;
  background: var(--tag);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
}

.alert-item h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.25;
}

.alert-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.field {
  display: grid;
  gap: 5px;
}

.field-wide {
  grid-column: span 2;
}

label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
}

textarea {
  resize: vertical;
}

.summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
}

.feed-panel {
  margin: 0 0 14px;
}

.feed-panel h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.feed-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-links a {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 5px 8px;
  text-decoration: none;
}

.results {
  display: grid;
  gap: 12px;
}

.load-more-panel {
  display: flex;
  justify-content: center;
  padding: 16px 0 4px;
}

.detail-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 18px;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.detail-note,
.detail-summary,
.editorial-note {
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 16px 0;
  background: var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
  background: var(--surface);
  padding: 10px;
}

.detail-row dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-row dd {
  margin: 0;
}

.detail-view h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

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

.review-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.review-search,
.review-editor {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.review-list {
  display: grid;
  gap: 8px;
  max-height: 70vh;
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
}

.review-list-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 400;
  text-align: left;
}

.review-list-item strong {
  color: var(--accent-strong);
  font-size: 0.78rem;
}

.review-list-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.review-list-item.is-selected {
  border-color: var(--accent);
  background: var(--tag);
}

.review-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.review-heading h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.3;
}

.review-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.save-status {
  color: var(--muted);
  margin-bottom: 0;
}

.result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(0, 47, 56, 0.04);
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.result h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.32;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.official-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.official-links a {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 9px;
  text-decoration: none;
}

.tag {
  background: var(--tag);
  border: 1px solid #cfe2dc;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  padding: 4px 8px;
}

.status {
  min-width: max-content;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fffdf6;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
}

.empty,
.site-footer {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
}

.content-page {
  max-width: 900px;
}

.content-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 18px;
}

.content-section h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.content-section p {
  margin: 0 0 12px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .site-header,
  .summary-bar,
  .result-header,
  .detail-header {
    flex-direction: column;
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

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

  .watch-heading,
  .alerts-heading {
    flex-direction: column;
  }

  .watch-lines,
  .alert-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .field-wide {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .coverage-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .coverage-metrics {
    grid-template-columns: 1fr;
  }

  .watch-lines,
  .alert-list {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: span 1;
  }
}
