
:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #eef4f2;
  --ink: #18211f;
  --muted: #5d6a65;
  --accent: #0b6b5f;
  --accent-strong: #064d45;
  --warning: #a45d00;
  --danger: #a1413d;
  --border: #d9e1dd;
  --border-strong: #b9c7c1;
  --shadow: 0 16px 40px rgba(26, 32, 29, 0.08);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0, var(--bg) 44%, #f3f0e9 100%);
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-strong); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(11, 107, 95, 0.24);
  outline-offset: 2px;
}
.site-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 22px 60px;
}
.site-shell-narrow { max-width: 820px; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--accent-strong);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: end;
  border-bottom: 1px solid var(--border);
  padding: 28px 0 30px;
}
.eyebrow {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 2.55rem;
  line-height: 1.05;
  margin-bottom: 14px;
}
h2 {
  font-size: 1.12rem;
  line-height: 1.3;
}
.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0;
}
.hero-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  padding: 18px;
}
.hero-note span {
  color: var(--muted);
  line-height: 1.5;
}
.summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0;
}
.summary-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.summary-stat span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.summary-stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}
.browser-toolbar {
  align-items: end;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 230px;
  margin: 0 0 18px;
  padding: 16px;
}
label {
  color: var(--ink);
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 8px;
}
input[type="search"],
select {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}
.record-list {
  display: grid;
  gap: 12px;
}
.record-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.record-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.record-card-top,
.record-facts {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.record-card h2 {
  font-size: 1.18rem;
  margin-bottom: 0;
}
.record-card h2 a {
  color: var(--ink);
  text-decoration-color: rgba(11, 107, 95, 0.35);
}
.record-summary {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}
.record-year {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}
.status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  padding: 7px 9px;
}
.status-retracted {
  background: #f7e7e5;
  color: var(--danger);
}
.status-editorial-notice {
  background: #fff1d6;
  color: var(--warning);
}
.status-unknown {
  background: var(--surface-soft);
  color: var(--muted);
}
.record-meta,
.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.record-meta {
  grid-template-columns: minmax(0, 1fr) 180px;
}
.record-meta div,
.detail-list div {
  min-width: 0;
}
dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 3px;
  text-transform: uppercase;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: var(--surface-soft);
  border: 1px solid #cfddd7;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 9px;
}
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  color: var(--muted);
  margin: 14px 0 0;
  padding: 18px;
  text-align: center;
}
.back-link {
  margin: 0 0 18px;
}
.record-header,
.page-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  padding-bottom: 24px;
}
.record-header h1,
.page-header h1 {
  font-size: 2.05rem;
}
.record-header .status {
  margin-bottom: 14px;
}
.record-facts {
  margin-top: 16px;
}
.record-facts span {
  background: var(--surface-soft);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 10px;
}
.record-header .tags {
  margin-top: 16px;
}
.panel {
  margin-top: 16px;
  padding: 20px;
}
.panel h2 + p {
  color: var(--muted);
  line-height: 1.6;
}
.detail-list {
  grid-template-columns: 1fr;
}
.detail-list div {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.detail-list div:first-child {
  border-top: 0;
  padding-top: 0;
}
.detail-list.compact {
  margin-top: 18px;
}
.disclaimer {
  background: #f6f0e6;
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  color: #58483a;
  line-height: 1.55;
  padding: 14px 16px;
}
.source-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.source-item {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.source-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.source-item a {
  font-weight: 800;
}
.source-item p {
  color: var(--muted);
  line-height: 1.55;
  margin: 6px 0 0;
}
ul {
  line-height: 1.7;
}
@media (max-width: 820px) {
  .site-shell {
    padding: 18px 14px 42px;
  }
  .site-nav,
  .hero {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .site-nav {
    flex-direction: column;
  }
  .brand {
    align-self: flex-start;
  }
  .nav-links {
    width: 100%;
  }
  .nav-links a {
    flex: 1 1 auto;
    text-align: center;
  }
  h1 {
    font-size: 2.05rem;
  }
  .summary-grid,
  .browser-toolbar,
  .record-meta {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 460px) {
  h1,
  .record-header h1,
  .page-header h1 {
    font-size: 1.72rem;
  }
  .hero-note,
  .summary-stat,
  .browser-toolbar,
  .record-card,
  .panel {
    padding: 14px;
  }
}
