:root {
  --ink: #071426;
  --panel: #0C2036;
  --line: #1B3A55;
  --line-soft: rgba(27, 58, 85, 0.55);
  --cyan: #35E0D0;
  --amber: #E8A33D;
  --mint: #9FE3C4;
  --paper: #EDE6D6;
  --text: #E9EEF5;
  --muted: #9AAFC4;
  --coral: #E05B4A;
  --shadow: #020913;
  --font-display: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line) var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 78% -10%, rgba(53, 224, 208, 0.10), transparent 34rem),
    radial-gradient(circle at 0 32%, rgba(232, 163, 61, 0.05), transparent 28rem),
    linear-gradient(rgba(27, 58, 85, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 58, 85, 0.14) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  transform: translateY(-180%);
  background: var(--cyan);
  color: var(--ink);
  padding: 10px 16px;
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(7, 20, 38, 0.98), rgba(7, 20, 38, 0.92)),
    rgba(7, 20, 38, 0.96);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 10px 0 rgba(2, 9, 19, 0.42);
  backdrop-filter: blur(12px);
}

.header-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px 12px;
  border-bottom: 1px solid var(--line);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cyan);
  border-radius: 3px;
  background: rgba(53, 224, 208, 0.06);
  color: var(--cyan);
  box-shadow: 4px 4px 0 rgba(53, 224, 208, 0.16);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-tagline {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-positioning {
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  max-width: 22em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.return-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 2px solid var(--amber);
  border-radius: 2px;
  background: rgba(232, 163, 61, 0.08);
  color: var(--paper);
  box-shadow: 3px 3px 0 rgba(232, 163, 61, 0.12);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.return-channel::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.return-channel:hover {
  transform: translateY(-1px);
  background: var(--amber);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(232, 163, 61, 0.22);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}

.header-nav-wrap {
  position: relative;
  z-index: 2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
}

.nav-meta {
  flex: 0 0 auto;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.9;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  gap: 2px;
}

.nav-list li {
  display: flex;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(53, 224, 208, 0.06);
  border-bottom-color: var(--line);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: linear-gradient(180deg, transparent, rgba(53, 224, 208, 0.08));
}

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.nav-utility {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: rgba(12, 32, 54, 0.8);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.search-trigger:hover,
.search-trigger[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}

.search-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 120;
  background: #08192b;
  border-bottom: 2px solid var(--cyan);
  box-shadow: 0 20px 0 rgba(2, 9, 19, 0.36);
}

.search-panel-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 22px 0 26px;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

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

.search-input:focus {
  border-color: var(--cyan);
  outline: none;
}

.search-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: min(320px, 50vh);
  overflow: auto;
  margin-top: 12px;
  padding-right: 4px;
}

.search-result-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.search-result-link::after {
  content: "↗";
  color: var(--cyan);
  font-family: var(--font-mono);
}

.search-result-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.search-empty {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px dashed var(--coral);
  color: var(--coral);
  font-size: 14px;
}

.search-close {
  margin-top: 14px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.search-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.reading-progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}

.section {
  padding-block: clamp(56px, 8vw, 112px);
}

.section--tight {
  padding-block: clamp(36px, 5vw, 60px);
}

.section--inverse {
  background: var(--paper);
  color: #0A1A2C;
  border-block: 2px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(7, 20, 38, 0.08);
}

.section--inverse .eyebrow {
  color: #0A6E6A;
}

.section--inverse .lede {
  color: #43566b;
}

.section--inverse a {
  color: #0a5c5a;
  text-decoration-color: var(--cyan);
}

.section--inverse .section-head {
  border-bottom-color: rgba(7, 20, 38, 0.28);
}

.section--inverse .card {
  background: rgba(255, 255, 255, 0.45);
  border-color: #0A1A2C;
  box-shadow: 6px 6px 0 rgba(7, 20, 38, 0.2);
  color: #0A1A2C;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 4vw, 44px);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.label-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
  text-transform: uppercase;
}

.label-en {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.label-cn {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.display-title {
  max-width: 13em;
  font-size: clamp(32px, 5vw, 68px);
  text-wrap: balance;
}

.lede {
  max-width: 38em;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 3px 3px 0 rgba(2, 9, 19, 0.36);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(2, 9, 19, 0.55);
}

.btn--primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(53, 224, 208, 0.18);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn--amber {
  border-color: var(--amber);
  background: rgba(232, 163, 61, 0.08);
  color: var(--paper);
}

.breadcrumbs {
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--line);
}

.breadcrumbs a {
  border-bottom: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  border-bottom-color: var(--cyan);
  color: var(--cyan);
}

.layout-asymmetric {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.index-rail {
  grid-column: span 3;
  align-self: start;
  position: sticky;
  top: 112px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.content-stream {
  grid-column: span 8;
  min-width: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.card {
  padding: clamp(18px, 2.5vw, 28px);
  border: 2px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(12, 32, 54, 0.96), rgba(8, 23, 41, 0.96));
  box-shadow: 6px 6px 0 var(--shadow);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 140ms ease, box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--cyan);
  box-shadow: 8px 8px 0 rgba(2, 9, 19, 0.88);
}

.card-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-title {
  margin-bottom: 10px;
  font-size: clamp(19px, 2.1vw, 26px);
}

.card-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--mint);
  border-radius: 2px;
  background: rgba(159, 227, 196, 0.06);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tag:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--cyan);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.status--archived {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(159, 227, 196, 0.06);
}

.status--synced {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 224, 208, 0.06);
}

.status--pending {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(232, 163, 61, 0.06);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 32, 54, 0.72);
}

.filter-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.filter-button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}

.filter-status {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 2px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--shadow);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px;
  background-color: #0a1c30;
  background-image:
    linear-gradient(rgba(53, 224, 208, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 224, 208, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, rgba(232, 163, 61, 0.16), transparent 34%);
  background-size: 28px 28px, 28px 28px, auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.media-placeholder::before {
  content: "FIG. / DATA";
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
}

.prose {
  max-width: 38em;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
}

.prose h2,
.prose h3 {
  margin: 1.6em 0 0.6em;
}

.prose h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.prose h3 {
  font-size: clamp(19px, 2vw, 24px);
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  list-style: square;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--amber);
  background: rgba(232, 163, 61, 0.08);
  color: var(--text);
}

.callout--cyan {
  border-left-color: var(--cyan);
  background: rgba(53, 224, 208, 0.07);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stat {
  padding: 18px;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 4px 4px 0 rgba(2, 9, 19, 0.5);
}

.stat-value {
  display: block;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.collapse {
  margin: 14px 0;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
}

.collapse summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

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

.collapse summary::after {
  content: "+";
  color: var(--cyan);
  font-family: var(--font-mono);
}

.collapse[open] summary {
  border-bottom: 1px solid var(--line);
}

.collapse[open] summary::after {
  content: "−";
}

.collapse-body {
  padding: 16px 18px;
}

.no-results {
  padding: 16px;
  border: 1px dashed var(--coral);
  color: var(--coral);
  font-size: 14px;
}

[data-filter-item].is-filtering {
  animation: cardEnter 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes cardEnter {
  from {
    opacity: 0.01;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 140px);
  border-top: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 32, 54, 0.92), #050f1d 80%);
  color: var(--text);
}

.footer-inner {
  padding-block: 56px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 1.35fr;
  gap: 0;
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.footer-grid > * {
  min-width: 0;
}

.footer-grid > * + * {
  padding-left: clamp(22px, 3vw, 40px);
  border-left: 1px solid var(--line);
}

.footer-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-brand-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(26px, 3.2vw, 42px);
}

.footer-description {
  max-width: 24em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-title {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
}

.footer-link-list a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-link-list a:hover {
  color: var(--cyan);
}

.footer-contact-list {
  display: grid;
  gap: 0;
}

.contact-line {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(155, 175, 196, 0.18);
  font-size: 13px;
  line-height: 1.65;
}

.contact-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-label {
  padding-top: 3px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.contact-value {
  color: var(--text);
  word-break: break-word;
}

.contact-note {
  grid-template-columns: 5.5em minmax(0, 1fr);
}

.contact-note .contact-value {
  color: var(--muted);
}

.copy-button {
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.copy-button:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.copy-button[data-copied="true"] {
  border-color: var(--mint);
  color: var(--mint);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer-meta span {
  display: inline-flex;
  align-items: center;
}

.to-top {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.to-top:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

@media (max-width: 980px) {
  .header-positioning {
    display: none;
  }

  .header-utility {
    padding-block: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: calc(100vh - 90px);
    overflow: auto;
    padding: 14px clamp(18px, 4vw, 28px) 20px;
    border-bottom: 2px solid var(--cyan);
    background: #08192b;
    box-shadow: 0 18px 0 rgba(2, 9, 19, 0.32);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .nav-meta {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    min-height: 48px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--cyan);
    background: rgba(53, 224, 208, 0.08);
  }

  .nav-link[aria-current="page"]::before {
    left: auto;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-utility {
    margin-left: 0;
  }

  .search-trigger {
    width: 100%;
    min-height: 44px;
  }

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

  .index-rail {
    position: static;
    grid-column: 1 / -1;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content-stream {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid > * + * {
    margin-top: 24px;
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-status {
    margin-left: 0;
  }

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

@media (max-width: 600px) {
  .container {
    width: min(1180px, calc(100% - 28px));
  }

  .header-utility {
    gap: 10px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .brand-name {
    font-size: 16px;
    white-space: nowrap;
  }

  .brand-tagline {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .return-channel {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .nav-toggle {
    min-height: 40px;
    padding: 0 10px;
    font-size: 11px;
  }

  .search-panel-inner {
    width: min(1180px, calc(100% - 28px));
    padding-block: 18px 22px;
  }

  .footer-inner {
    padding-block: 40px 20px;
  }

  .footer-link-list {
    grid-template-columns: 1fr;
  }

  .contact-line,
  .contact-note {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .copy-button {
    justify-self: start;
    margin-top: 4px;
  }

  .footer-meta {
    gap: 8px 14px;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .btn:hover,
  .tag:hover,
  .return-channel:hover {
    transform: none;
  }

  .reading-progress-bar {
    transition: none;
  }
}
