:root {
  color-scheme: dark;
  --background: #0e0e25;
  --background-deep: #09091b;
  --surface: #1a1835;
  --surface-raised: #211d3f;
  --surface-soft: #17152f;
  --foreground: #f8ebf9;
  --muted: #b1a2c3;
  --muted-strong: #d1c4da;
  --primary: #ff8fda;
  --primary-hover: #ffa2e1;
  --primary-ink: #24112b;
  --primary-soft: rgba(255, 143, 218, 0.1);
  --violet: #a879ff;
  --border: #42395f;
  --border-soft: rgba(66, 57, 95, 0.68);
  --focus-ring: #ff8fda;
  --success: #7ed8bd;
  --warning: #f2c572;
  --danger: #ff7c9f;
  --archive-paper: #e8ddce;
  --shadow-panel: 0 24px 80px rgba(3, 3, 17, 0.48);
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 83% 3%, rgba(168, 121, 255, 0.08), transparent 28rem),
    var(--background);
  color: var(--foreground);
  font-family: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body[data-language="zh"],
html[data-language="zh"] body {
  font-family: "Noto Sans SC", "Outfit", system-ui, sans-serif;
}

::selection {
  background: rgba(255, 143, 218, 0.28);
  color: var(--foreground);
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button,
input {
  color: inherit;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(14, 14, 37, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  min-width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--foreground);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface);
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 0.94rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.brand small {
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.archive-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.archive-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 120ms ease-out, background-color 120ms ease-out;
}

.archive-nav a:hover {
  background: var(--surface);
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface-soft);
}

.language-switcher button {
  min-width: 38px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--primary);
}

.language-switcher span {
  color: var(--border);
}

.quick-exit {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--foreground);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}

.quick-exit:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  min-height: 680px;
  padding-block: 112px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  align-items: end;
  gap: 72px;
}

.eyebrow-row {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.eyebrow,
.verification-date,
.section-kicker,
.section-number,
.index-topline,
.case-meta,
.source-meta,
.timeline time,
.attribution,
.footer-meta span {
  font-family: "JetBrains Mono", monospace;
}

.eyebrow {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(255, 143, 218, 0.36);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.verification-date {
  color: var(--muted);
  font-size: 0.7rem;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--foreground);
  font-size: clamp(3.25rem, 7.4vw, 6.6rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero h1 em {
  display: inline-block;
  color: var(--primary);
  font-style: normal;
}

.hero-deck {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 120ms ease-out, background-color 120ms ease-out, border-color 120ms ease-out;
}

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

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

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--foreground);
}

.button-secondary:hover {
  border-color: var(--primary);
  background: var(--surface-raised);
}

.hero-note {
  max-width: 650px;
  margin: 24px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-index {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(26, 24, 53, 0.78);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(12px);
}

.index-topline,
.index-status {
  min-height: 48px;
  padding-inline: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
}

.index-topline {
  border-bottom: 1px solid var(--border-soft);
}

.index-stats {
  margin: 0;
  padding: 0;
}

.index-stats div {
  min-height: 112px;
  padding: 20px 18px;
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.index-stats dt {
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
}

.index-stats dd {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.index-status {
  justify-content: flex-start;
  font-size: 0.7rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(126, 216, 189, 0.66);
}

.content-note {
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-soft);
}

.note-inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.note-marker {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 197, 114, 0.5);
  border-radius: 50%;
  color: var(--warning);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.note-inner h2 {
  margin: 0 0 2px;
  font-size: 0.9rem;
}

.note-inner p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.note-inner > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.case-section,
.timeline-section,
.source-section,
.method-section,
.support-section {
  padding-block: 112px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
  align-items: end;
  gap: 56px;
}

.section-number {
  margin-right: 10px;
  color: var(--primary);
  font-size: 0.7rem;
}

.section-kicker {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2,
.network-heading h2,
.gap-panel h2,
.support-heading h2 {
  margin: 12px 0 0;
  color: var(--foreground);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading > p,
.split-heading > p,
.method-heading > p,
.support-heading > p {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
}

.split-heading > p {
  margin: 0;
}

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

.case-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.case-card:hover {
  border-color: rgba(255, 143, 218, 0.52);
}

.case-top {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.case-id {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
}

.case-status,
.source-type {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.case-status.final {
  border-color: rgba(126, 216, 189, 0.42);
  background: rgba(126, 216, 189, 0.08);
  color: var(--success);
}

.case-status.appeal,
.case-status.first-instance {
  border-color: rgba(242, 197, 114, 0.42);
  background: rgba(242, 197, 114, 0.08);
  color: var(--warning);
}

.case-body {
  padding: 26px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-meta {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.case-card h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.case-sentence {
  margin: 8px 0 0;
  color: var(--archive-paper);
  font-size: 1rem;
  font-weight: 700;
}

.case-summary {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-card details {
  margin-top: auto;
  padding-top: 20px;
}

.case-card summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
  color: var(--primary);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
}

.case-card summary::-webkit-details-marker {
  display: none;
}

.case-card summary::after {
  content: "+";
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
}

.case-card details[open] summary::after {
  content: "−";
}

.case-details {
  padding-top: 14px;
  color: var(--muted-strong);
  font-size: 0.84rem;
}

.case-details p {
  margin: 0 0 12px;
}

.case-details a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  text-underline-offset: 4px;
}

.network-section {
  padding-block: 104px;
  border-block: 1px solid var(--border-soft);
  background: var(--background-deep);
}

.network-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 80px;
}

.network-heading h2 {
  max-width: 430px;
}

.network-lead {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.08rem;
  line-height: 1.8;
}

.network-facts {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--border-soft);
}

.network-facts article {
  padding: 22px 18px;
  border-right: 1px solid var(--border-soft);
}

.network-facts article:first-child {
  padding-left: 0;
}

.network-facts article:last-child {
  border-right: 0;
}

.network-facts span {
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.network-facts h3 {
  margin: 20px 0 6px;
  font-size: 1rem;
}

.network-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.attribution {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

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

.timeline-item {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: 140px 26px minmax(0, 1fr);
  gap: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -18px;
  left: 152px;
  width: 1px;
  background: var(--border);
}

.timeline-item:last-child::before {
  bottom: calc(100% - 19px);
}

.timeline time {
  padding-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 9px;
  margin-left: 3px;
  border: 3px solid var(--background);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.timeline-content {
  padding: 0 0 38px 10px;
}

.timeline-content h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.18rem;
}

.timeline-content p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.timeline-content a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.source-section {
  border-top: 1px solid var(--border-soft);
  background: var(--surface-soft);
}

.source-tools {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 24px;
}

.search-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-control {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}

.search-control:focus-within {
  border-color: var(--primary);
}

.search-control input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 0.9rem;
}

.search-control input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.clear-search {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
}

.clear-search:hover {
  background: var(--surface-raised);
  color: var(--foreground);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-group button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
}

.filter-group button:hover,
.filter-group button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.results-meta {
  margin-top: 24px;
  padding-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.72rem;
}

.results-meta p {
  margin: 0;
}

.source-list {
  border-top: 1px solid var(--border);
}

.source-card {
  padding: 24px 4px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) minmax(190px, 0.46fr) minmax(132px, auto);
  align-items: start;
  gap: 26px;
  border-bottom: 1px solid var(--border);
}

.source-card:hover {
  background: rgba(255, 143, 218, 0.025);
}

.source-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.66rem;
}

.source-type {
  width: fit-content;
  color: var(--muted-strong);
}

.source-type.court {
  color: var(--success);
}

.source-type.media {
  color: var(--primary);
}

.source-type.wechat {
  color: var(--warning);
}

.source-main h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.02rem;
  line-height: 1.42;
}

.source-title-translation {
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.45;
}

.source-main p,
.source-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.source-note {
  margin: 0;
  line-height: 1.6;
}

.source-open,
.source-static {
  width: fit-content;
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--primary);
  text-decoration: none;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}

.source-open:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.source-static {
  color: var(--muted);
  font-size: 0.74rem;
}

.empty-state {
  padding: 64px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.empty-state span {
  color: var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 3.5rem;
  font-weight: 700;
}

.empty-state h3 {
  margin: 8px 0 0;
  font-size: 1.2rem;
}

.empty-state p {
  margin: 6px 0 20px;
  color: var(--muted);
}

.gap-section {
  padding-block: 72px;
  border-bottom: 1px solid var(--border-soft);
}

.gap-panel {
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  border: 1px solid rgba(255, 143, 218, 0.4);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(255, 143, 218, 0.06), transparent 48%),
    var(--surface);
}

.gap-panel h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.gap-panel p {
  margin: 0 0 22px;
  color: var(--muted-strong);
}

.method-section {
  background: var(--background-deep);
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 80px;
}

.method-heading {
  position: sticky;
  top: calc(var(--header-height) + 36px);
  align-self: start;
}

@media (min-width: 641px) {
  html[data-language="zh"] .method-heading h2,
  html[data-language="zh"] .support-heading h2 {
    white-space: nowrap;
  }
}

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

.method-list li {
  padding: 26px 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
}

.method-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.method-list > li > span {
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}

.method-list h3 {
  margin: 0;
  font-size: 1.05rem;
}

.method-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.support-section {
  border-top: 1px solid var(--border-soft);
}

.support-heading {
  max-width: 720px;
}

.support-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--border);
}

.support-grid a {
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  text-decoration: none;
  transition: background-color 120ms ease-out;
}

.support-grid a:last-child {
  border-right: 0;
}

.support-grid a:hover {
  background: var(--surface);
}

.support-grid span {
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.support-grid strong {
  margin-top: auto;
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.75rem;
}

.support-grid small {
  color: var(--muted);
}

.support-disclaimer {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.archive-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--background-deep);
}

.footer-main {
  padding-block: 58px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  width: fit-content;
}

.footer-main > div > p {
  margin: 18px 0 0;
  color: var(--muted);
}

.footer-meta {
  min-width: 320px;
}

.footer-meta p {
  margin: 0;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.74rem;
}

.footer-meta span {
  color: var(--muted);
}

.footer-meta strong {
  color: var(--muted-strong);
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
}

.footer-bottom {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 0.74rem;
}

.footer-bottom div {
  display: flex;
  gap: 22px;
}

.footer-bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted-strong);
  text-underline-offset: 4px;
}

@media (max-width: 1080px) {
  .archive-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
    gap: 40px;
  }

  .source-card {
    grid-template-columns: 108px minmax(0, 1fr) minmax(132px, auto);
  }

  .source-note {
    grid-column: 2;
    margin-top: -16px;
  }

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

  .support-grid a:nth-child(2) {
    border-right: 0;
  }

  .support-grid a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 820px) {
  .hero-inner {
    min-height: auto;
    padding-block: 88px 64px;
    grid-template-columns: 1fr;
  }

  .hero-index {
    max-width: 560px;
  }

  .split-heading,
  .network-layout,
  .method-layout,
  .gap-panel {
    grid-template-columns: 1fr;
  }

  .split-heading,
  .network-layout,
  .method-layout {
    gap: 30px;
  }

  .split-heading > p {
    margin-top: 0;
  }

  .method-heading {
    position: static;
  }

  .source-tools {
    grid-template-columns: 1fr;
  }

  .gap-panel {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .section-shell {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    width: min(100% - 24px, 1240px);
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .language-switcher {
    gap: 0;
  }

  .language-switcher button {
    min-width: 34px;
  }

  .language-switcher span {
    display: none;
  }

  .quick-exit {
    padding-inline: 10px;
    font-size: 0.72rem;
  }

  .hero-inner {
    padding-block: 70px 52px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
    line-height: 1;
  }

  .hero-deck {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .index-stats div {
    min-height: 90px;
  }

  .note-inner {
    padding-block: 20px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .note-inner > a {
    grid-column: 2;
  }

  .case-section,
  .timeline-section,
  .source-section,
  .method-section,
  .support-section {
    padding-block: 76px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

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

  .case-card {
    min-height: 0;
  }

  .network-section {
    padding-block: 76px;
  }

  .network-facts {
    grid-template-columns: 1fr;
  }

  .network-facts article,
  .network-facts article:first-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .network-facts article:last-child {
    border-bottom: 0;
  }

  .network-facts h3 {
    margin-top: 8px;
  }

  .timeline-item {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 14px;
  }

  .timeline-item::before {
    left: 7px;
  }

  .timeline time {
    grid-column: 2;
    padding-top: 0;
    text-align: left;
  }

  .timeline-marker {
    grid-row: 1 / 3;
    grid-column: 1;
    margin: 4px 0 0;
  }

  .timeline-content {
    grid-column: 2;
    padding: 0 0 34px;
  }

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

  .filter-group button:first-child {
    grid-column: 1 / -1;
  }

  .results-meta {
    display: block;
  }

  .results-meta p + p {
    margin-top: 4px;
  }

  .source-card {
    padding-block: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
    gap: 14px;
  }

  .source-meta {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .source-main {
    grid-column: 1;
  }

  .source-note {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .source-open,
  .source-static {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .gap-section {
    padding-block: 48px;
  }

  .gap-panel {
    width: min(100% - 24px, 1120px);
    padding: 28px 20px;
  }

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

  .support-grid a,
  .support-grid a:nth-child(2) {
    min-height: 144px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .support-grid a:last-child {
    border-bottom: 0;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-main {
    gap: 30px;
  }

  .footer-meta {
    width: 100%;
    min-width: 0;
  }

  .footer-bottom {
    padding-block: 18px;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
