:root {
  --ink: #17251f;
  --ink-soft: #4d5d55;
  --paper: #f7f4eb;
  --paper-deep: #ece7d9;
  --white: #fffdf8;
  --forest: #173f35;
  --forest-light: #2f6b5b;
  --sage: #a9c3b3;
  --sage-soft: #dce8df;
  --orange: #d45f35;
  --orange-soft: #f3d3c5;
  --gold: #c69a42;
  --line: #d4d0c4;
  --shadow: 0 16px 45px rgba(23, 37, 31, 0.1);
  --radius: 18px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--orange);
}

.hero {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 520px;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 7vw, 6rem);
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 90% 5%, rgba(169, 195, 179, 0.24), transparent 32%),
    linear-gradient(135deg, #173f35 0%, #102f28 100%);
  color: var(--white);
  overflow: hidden;
}

.eyebrow,
.chart-kicker {
  margin: 0 0 0.7rem;
  color: var(--orange);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow,
.contribute-section .eyebrow {
  color: #f2a37e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-summary {
  max-width: 700px;
  margin-bottom: 2rem;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions,
.compare-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-height: 44px;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--orange);
  color: var(--white);
}

.button-primary:hover {
  background: #ba4d28;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--forest);
}

.hero-note {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 253, 248, 0.82);
}

.hero-note p {
  margin-bottom: 0;
}

.note-index {
  display: block;
  margin-bottom: 1rem;
  color: #f2a37e;
  font-family: Georgia, serif;
  font-size: 2.2rem;
}

.section {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.section-heading {
  margin-bottom: 2.4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.section-heading > p {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
}

.metric-grid {
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 1.5rem clamp(0.5rem, 2vw, 1.5rem);
  border-right: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  border-right: 0;
}

.metric-value {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chart-panel {
  min-height: 310px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.65);
}

.chart-panel-wide {
  grid-column: 1 / -1;
}

.chart-heading {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.chart-heading h3 {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.chart-note {
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-align: right;
}

.bar-row {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr 2.4rem;
  gap: 0.75rem;
  align-items: center;
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-label {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.bar-track,
.coverage-track {
  height: 12px;
  border-radius: 999px;
  background: var(--paper-deep);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--forest-light);
}

.bar-value {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: right;
}

.distribution {
  height: 18px;
  margin-bottom: 1.5rem;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.distribution-segment {
  min-width: 2px;
}

.distribution-segment.verified,
.coverage-direct {
  background: var(--forest-light);
}

.distribution-segment.partial,
.coverage-partial {
  background: var(--gold);
}

.distribution-segment.private {
  background: var(--orange);
}

.distribution-segment.public {
  background: var(--forest-light);
}

.distribution-segment.gated {
  background: var(--gold);
}

.distribution-segment.unavailable {
  background: var(--orange);
}

.distribution-segment.unclear {
  background: var(--sage);
}

.legend-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend-list li {
  padding: 0.48rem 0;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  border-bottom: 1px solid rgba(212, 208, 196, 0.72);
  font-size: 0.86rem;
}

.legend-list li:last-child {
  border-bottom: 0;
}

.legend-dot,
.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
}

.legend-dot.verified,
.legend-swatch.strong {
  background: var(--forest-light);
}

.legend-dot.partial,
.legend-swatch.partial {
  background: var(--gold);
}

.legend-dot.private {
  background: var(--orange);
}

.legend-dot.public {
  background: var(--forest-light);
}

.legend-dot.gated {
  background: var(--gold);
}

.legend-dot.unavailable {
  background: var(--orange);
}

.inline-legend {
  display: flex;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.inline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.coverage-row {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: minmax(155px, 220px) 1fr 4.5rem;
  gap: 0.8rem;
  align-items: center;
}

.coverage-track {
  display: flex;
}

.coverage-direct,
.coverage-partial {
  height: 100%;
}

.coverage-value {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.timeline-chart {
  min-height: 210px;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1.5rem);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.timeline-column {
  height: 190px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  gap: 0.45rem;
  text-align: center;
}

.timeline-bar-wrap {
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
}

.timeline-bar {
  width: min(64px, 70%);
  min-height: 3px;
  border-radius: 8px 8px 0 0;
  background: var(--orange);
}

.timeline-value {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.timeline-label {
  min-height: 2.6em;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.explorer-section {
  width: 100%;
  padding-left: max(1rem, calc((100% - var(--content)) / 2));
  padding-right: max(1rem, calc((100% - var(--content)) / 2));
  background: var(--white);
}

.filter-panel {
  margin-bottom: 1.5rem;
  padding: 1.1rem;
  display: grid;
  grid-template-columns: minmax(250px, 1.8fr) repeat(5, minmax(130px, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.search-field,
.filter-field {
  min-width: 0;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.text-button {
  padding: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--forest-light);
  cursor: pointer;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reset-button {
  min-height: 44px;
  white-space: nowrap;
}

.results-header {
  margin: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.results-header p {
  margin: 0;
}

#result-count {
  color: var(--ink);
  font-weight: 750;
}

.compare-tray {
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--forest);
  color: var(--white);
}

.compare-tray .chart-kicker {
  color: #f2a37e;
}

.compare-tray h3 {
  margin: 0;
}

.compare-tray .button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.selected-names {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dataset-card {
  min-height: 340px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dataset-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-topline {
  margin-bottom: 1.1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.family-label {
  color: var(--orange);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.year-label {
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.dataset-card h3 {
  margin-bottom: 0.65rem;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.dataset-purpose {
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.card-facts {
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.card-facts div {
  min-width: 0;
}

.card-facts dt {
  margin-bottom: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.card-facts dd {
  margin: 0;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.badge-row {
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 750;
}

.badge.partial,
.badge.gated {
  background: #f3e6c6;
  color: #6a4c12;
}

.badge.private,
.badge.unavailable {
  background: var(--orange-soft);
  color: #793018;
}

.card-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.compare-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  cursor: pointer;
}

.compare-control input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.comparison {
  margin: 0 0 2rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.comparison-heading {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

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

.comparison table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison th,
.comparison td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.comparison th:first-child {
  width: 155px;
  color: var(--ink-soft);
}

.comparison thead th {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.empty-state {
  padding: 4rem 1rem;
  text-align: center;
}

.empty-state p {
  color: var(--ink-soft);
}

.contribute-section {
  width: min(var(--content), calc(100% - 2rem));
  margin: clamp(5rem, 10vw, 8rem) auto;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(2rem, 8vw, 6rem);
  align-items: center;
  background: var(--orange);
  color: var(--white);
}

.github-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.github-intro {
  position: sticky;
  top: 2rem;
}

.github-intro > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.repository-location {
  margin-top: 1rem;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.github-facts {
  border-top: 1px solid var(--line);
}

.github-facts article {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
}

.github-fact-number {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.github-facts h3 {
  margin-bottom: 0.45rem;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.github-facts p {
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.github-facts a {
  color: var(--forest-light);
  font-size: 0.82rem;
  font-weight: 750;
  text-underline-offset: 3px;
}

.contribute-section p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
}

.guide-hero,
.guide-grid,
.guide-principles {
  width: min(var(--content), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.guide-hero {
  padding: clamp(4rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.guide-hero h1 {
  max-width: 900px;
  color: var(--forest);
}

.guide-hero > p:last-child {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.guide-grid {
  padding-bottom: clamp(4rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.guide-grid article {
  padding: 1.7rem;
  border-top: 3px solid var(--orange);
  background: var(--white);
}

.guide-grid article > span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 1.6rem;
}

.guide-grid h2 {
  margin-top: 2.5rem;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: 0;
}

.guide-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.guide-principles {
  margin-bottom: clamp(4rem, 10vw, 8rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--forest);
  color: var(--white);
}

.guide-principles .eyebrow {
  color: #f2a37e;
}

.guide-principles li {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

footer {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.dataset-dialog {
  width: min(780px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.dataset-dialog::backdrop {
  background: rgba(11, 24, 19, 0.72);
}

.dialog-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.dialog-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.5rem;
}

#dialog-content {
  padding: 1.5rem;
}

.detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.detail-grid div {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-grid div:nth-child(odd) {
  padding-right: 1rem;
}

.detail-grid dt {
  margin-bottom: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 0;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.detail-block {
  margin-top: 1.5rem;
}

.detail-block h3 {
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-block p {
  margin-bottom: 0;
}

.dialog-links {
  margin-top: 1.5rem;
}

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

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

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

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 4rem 1.5rem 2rem;
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contribute-section,
  .github-section,
  .guide-principles {
    grid-template-columns: 1fr;
  }

  .github-intro {
    position: static;
  }

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

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .chart-panel-wide {
    grid-column: auto;
  }

  .bar-row,
  .coverage-row {
    grid-template-columns: minmax(115px, 150px) 1fr 2.5rem;
  }

  .coverage-value {
    font-size: 0;
  }

  .coverage-value::after {
    content: attr(data-total);
    font-size: 0.78rem;
  }

  .timeline-chart {
    gap: 0.35rem;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

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

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

  .compare-tray,
  .comparison-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header,
  .hero,
  .section,
  .contribute-section,
  footer {
    width: min(100% - 1rem, var(--content));
  }

  .brand > span:last-child {
    display: none;
  }

  .hero {
    border-radius: 20px;
  }

  .hero-actions .button,
  .compare-actions .button {
    width: 100%;
  }

  .metric {
    padding: 1rem 0.6rem;
  }

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

  .search-field {
    grid-column: auto;
  }

  .result-help {
    display: none;
  }

  .chart-heading {
    flex-direction: column;
  }

  .bar-row,
  .coverage-row {
    grid-template-columns: 1fr 2.2rem;
  }

  .bar-track,
  .coverage-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bar-value,
  .coverage-value {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-label {
    font-size: 0.62rem;
  }

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

  .detail-grid div:nth-child(odd) {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
