:root {
  color-scheme: light;
  --ink: #17201f;
  --ink-2: #263330;
  --ink-3: #4f5d59;
  --paper: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #edf1ee;
  --line: #d9e0db;
  --line-strong: #bdc9c1;
  --orange: #e98222;
  --orange-dark: #ad5710;
  --orange-soft: #fff0dc;
  --teal: #2b6d66;
  --teal-dark: #174a45;
  --teal-soft: #e3f1ee;
  --blue: #486b8a;
  --blue-soft: #e8eff5;
  --red: #a94336;
  --red-soft: #f6e6e3;
  --amber: #a66b14;
  --amber-soft: #fbf0d9;
  --shadow-sm: 0 8px 24px rgba(23, 32, 31, 0.07);
  --shadow-md: 0 18px 42px rgba(23, 32, 31, 0.11);
  --radius: 8px;
  --container: 1180px;
  --font-sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(233, 130, 34, 0.45);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 224, 219, 0.9);
  background: rgba(244, 246, 243, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 7px 7px 14px 14px;
  background: var(--orange);
  box-shadow: inset 0 -7px 0 rgba(23, 32, 31, 0.13);
  transform: translateY(-1px);
}

.brand-mark span {
  width: 13px;
  height: 3px;
  background: var(--ink);
  transform: rotate(-27deg);
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.language-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover,
.language-link:hover,
.nav-link.is-active {
  background: var(--surface);
  color: var(--ink);
}

.nav-link.is-active {
  box-shadow: inset 0 -3px 0 var(--orange);
}

.language-link {
  margin-left: 8px;
  border: 1px solid var(--line);
  background: transparent;
}

.language-link svg,
.menu-toggle svg,
.button svg,
.text-link svg,
.signal-icon svg,
.search-field svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 70px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(43, 109, 102, 0.06) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(43, 109, 102, 0.06) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -110px -80px;
  width: 320px;
  height: 320px;
  border: 42px solid rgba(233, 130, 34, 0.12);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: normal;
}

.hero h1,
.page-hero h1,
.article-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: normal;
}

.hero-lede {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--ink-3);
  font-size: 19px;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

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

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 0 rgba(23, 32, 31, 0.12);
}

.button-primary:hover {
  background: #0d1413;
}

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

.button-secondary:hover {
  border-color: var(--ink);
}

.button-inverse {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 650px;
  margin: 40px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--line-strong);
}

.hero-facts div {
  min-width: 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-facts dt {
  color: var(--ink-3);
  font-size: 13px;
}

.hero-facts dd {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  width: min(100%, 390px);
  justify-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 18px 18px 0 rgba(23, 32, 31, 0.1);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 13.5;
  object-fit: cover;
  object-position: top center;
}

.hero-visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(23, 32, 31, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(8px);
}

.signal-band {
  background: var(--ink);
  color: #fff;
}

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

.signal-grid article {
  min-height: 210px;
  padding: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-grid article:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
}

.signal-grid h2 {
  margin: 0;
  font-size: 19px;
}

.signal-grid p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.section {
  padding: 88px 0;
}

.section-muted {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(43, 109, 102, 0.045) 25%, transparent 25%) 0 0 / 22px 22px,
    var(--surface-2);
}

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

.section h2,
.page-hero h1,
.article-hero h1 {
  letter-spacing: normal;
}

.section h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 900;
}

.section-heading > p:not(.eyebrow),
.page-hero-inner > p {
  color: var(--ink-3);
  font-size: 18px;
}

.section-heading .button {
  margin-top: 18px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.text-link:hover {
  color: var(--orange-dark);
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  align-items: center;
  gap: 70px;
}

.cost-board {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 12px 12px 0 rgba(23, 32, 31, 0.08);
}

.cost-board > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.cost-board span {
  color: var(--ink-3);
  font-size: 14px;
}

.cost-board strong {
  font-size: 16px;
}

.cost-board .cost-result {
  border-color: var(--orange);
  background: var(--orange-soft);
}

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

.episode-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.episode-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.episode-card.is-compact {
  min-height: 280px;
}

.episode-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.episode-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.episode-card h3 a:hover {
  color: var(--orange-dark);
}

.episode-card > p {
  margin: 13px 0 22px;
  color: var(--ink-3);
  font-size: 14px;
}

.episode-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.evidence {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.evidence-a {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.evidence-b {
  background: var(--amber-soft);
  color: var(--amber);
}

.evidence-c {
  background: var(--red-soft);
  color: var(--red);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 70px;
}

.method-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.method-list > li > span {
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-weight: 900;
}

.method-list h3 {
  margin: 0;
  font-size: 18px;
}

.method-list p {
  margin: 5px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}

.closing-band {
  padding: 74px 0;
  background: var(--teal-dark);
  color: #fff;
}

.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.closing-band .eyebrow {
  color: #f7c78f;
}

.closing-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.page-hero {
  padding: 68px 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(43, 109, 102, 0.06) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--surface);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 60px;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero-inner > p {
  margin: 0;
}

.compact-hero {
  padding-bottom: 42px;
}

.library-section {
  padding-top: 42px;
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(200px, 0.34fr) auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.search-field,
.select-field,
.calculator-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 800;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  left: 13px;
  bottom: 14px;
  color: var(--ink-3);
}

.search-field input {
  padding-left: 42px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 9px 12px;
}

input:hover,
select:hover {
  border-color: var(--ink-3);
}

.filter-group {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  gap: 6px;
}

.filter-button {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-3);
  font-weight: 900;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.library-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}

.library-status p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  margin: 26px 0 0;
  padding: 40px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-3);
  text-align: center;
}

.article-hero {
  padding: 58px 0 52px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(233, 130, 34, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    var(--surface);
}

.article-hero-inner {
  max-width: 960px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--ink-3);
  font-size: 13px;
}

.breadcrumb a {
  font-weight: 800;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 800;
}

.article-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.article-hero-inner > p {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--ink-3);
  font-size: 19px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 70px;
}

.article-body {
  min-width: 0;
}

.article-body > section + section {
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.article-body h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
}

.article-body p {
  color: var(--ink-3);
}

.article-body .button {
  margin-top: 16px;
}

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

.decision-matrix > div {
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.matrix-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-matrix p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.evidence-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.evidence-panel > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  font-weight: 900;
}

.evidence-panel p {
  margin: 0;
  color: var(--ink);
}

.content-note {
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  color: var(--ink-2) !important;
  font-size: 14px;
}

.article-aside {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-aside img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.article-aside > div {
  padding: 20px;
}

.article-aside strong {
  font-size: 18px;
}

.article-aside p:last-child {
  margin-bottom: 0;
  color: var(--ink-3);
  font-size: 14px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
  gap: 24px;
}

.calculator-form,
.calculator-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.calculator-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

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

.form-action {
  display: flex;
  align-items: end;
}

.form-action .button {
  width: 100%;
}

.calculator-result {
  position: sticky;
  top: 94px;
  padding: 26px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.calculator-result .eyebrow {
  color: #f7c78f;
}

.result-primary {
  padding: 22px 0 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.result-primary span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.result-primary strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
}

.result-breakdown {
  display: grid;
  gap: 1px;
  margin: 20px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
}

.result-breakdown div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
}

.result-breakdown dt {
  color: rgba(255, 255, 255, 0.7);
}

.result-breakdown dd {
  margin: 0;
  font-weight: 800;
}

.result-note {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

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

.tier-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tier-letter {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius);
  font-size: 28px;
  font-weight: 900;
}

.tier-card h2 {
  font-size: 24px;
}

.tier-card p,
.tier-card li {
  color: var(--ink-3);
}

.tier-card ul {
  margin: 20px 0 0;
  padding-left: 18px;
}

.tier-card li + li {
  margin-top: 8px;
}

.evidence-process {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 70px;
}

.evidence-process ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-process li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.evidence-process li > span {
  grid-row: span 2;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-weight: 900;
}

.evidence-process li p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: 70px;
}

.about-copy p {
  color: var(--ink-3);
  font-size: 17px;
}

.about-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.about-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-panel dl {
  margin: 0;
}

.about-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.about-panel dt {
  color: var(--ink-3);
}

.about-panel dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.about-panel a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-copy {
  max-width: 860px;
}

.legal-copy h2 {
  margin-top: 38px;
  font-size: 26px;
}

.legal-copy p {
  color: var(--ink-3);
}

.legal-copy a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 48px 0;
  background: var(--ink);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 24px 60px;
  align-items: start;
}

.footer-brand .brand-mark {
  border-color: #fff;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.65);
}

.footer-grid > div:first-child p {
  margin: 14px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.footer-links a:hover {
  color: #fff;
}

.footer-note,
.footer-meta {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 13px;
}

.footer-meta {
  padding-top: 0;
  border-top: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .hero-grid,
  .featured-grid,
  .method-grid,
  .page-hero-inner,
  .article-layout,
  .calculator-layout,
  .evidence-process,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(100%, 480px);
    justify-self: start;
  }

  .article-aside,
  .calculator-result {
    position: static;
  }

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 71px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: grid;
  }

  .nav-link,
  .language-link {
    min-height: 46px;
  }

  .language-link {
    margin-left: 0;
  }

  .hero {
    padding: 54px 0;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 62px);
  }

  .hero-grid {
    gap: 42px;
  }

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

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

  .signal-grid article,
  .signal-grid article:last-child {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .section {
    padding: 62px 0;
  }

  .section-header,
  .closing-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-toolbar {
    grid-template-columns: 1fr;
  }

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

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

  .brand-name {
    max-width: 190px;
  }

  .hero-actions,
  .form-row,
  .decision-matrix {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .episode-card,
  .episode-card.is-compact {
    min-height: 0;
  }

  .calculator-form {
    padding: 18px;
  }

  .calculator-result {
    padding: 22px;
  }

  .result-primary strong {
    font-size: 42px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
