: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;
  overflow-x: hidden;
  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: grid;
  grid-template-columns: auto minmax(180px, 420px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.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;
  justify-self: end;
  gap: 6px;
}

.nav-link,
.language-link {
  min-height: 44px;
  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;
}

.global-search {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-3);
}

.global-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 109, 102, 0.12);
}

.global-search svg {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.global-search input {
  min-height: 42px;
  border: 0;
  background: transparent;
  padding-left: 39px;
  box-shadow: none;
}

.global-search input:focus {
  outline: 0;
}

.nav-search-mobile {
  display: none;
}

.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: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 56px;
}

.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 h1 {
  font-size: clamp(40px, 5vw, 68px);
}

.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-card-stage {
  position: relative;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 28px 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(43, 109, 102, 0.08) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(rgba(43, 109, 102, 0.08) 1px, transparent 1px) 0 0 / 30px 30px,
    var(--teal-soft);
}

.hero-card-viewport {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hero-card-viewport::-webkit-scrollbar {
  display: none;
}

.hero-card-track {
  display: flex;
  align-items: stretch;
  padding: 14px 6% 18px;
}

.hero-decision-card {
  position: relative;
  z-index: 1;
  width: min(88%, 440px);
  flex: 0 0 auto;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 16px 34px rgba(23, 32, 31, 0.12);
  opacity: 0.62;
  scroll-snap-align: center;
  transform: scale(0.94) rotate(-1deg);
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease;
}

.hero-decision-card + .hero-decision-card {
  margin-left: 14px;
}

.hero-decision-card.is-active {
  z-index: 2;
  opacity: 1;
  box-shadow:
    0 24px 50px rgba(23, 32, 31, 0.18),
    12px 12px 0 rgba(23, 32, 31, 0.08);
  transform: scale(1) rotate(-1deg);
}

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

.hero-card-top,
.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-card-top {
  margin-bottom: 18px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.hero-card-badges .review-badge,
.hero-card-badges .evidence {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 11px;
}

.hero-decision-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.hero-decision-card > p {
  margin: 13px 0 20px;
  color: var(--ink-3);
  font-size: 15px;
}

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

.hero-card-field {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.hero-card-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card-field strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.hero-card-cost {
  border-left: 4px solid var(--orange);
}

.hero-card-benefit {
  border-left: 4px solid var(--teal);
}

.hero-card-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-card-evidence {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.hero-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.hero-card-link svg {
  width: 16px;
  height: 16px;
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-inline: 24px;
}

.hero-carousel-arrow {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  cursor: pointer;
}

.hero-carousel-arrow:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.hero-carousel-arrow:disabled {
  opacity: 0.36;
  cursor: default;
}

.hero-carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.hero-carousel-arrow [data-lucide="chevron-left"]:empty::before {
  content: "←";
  font-size: 22px;
  line-height: 1;
}

.hero-carousel-arrow [data-lucide="chevron-right"]:empty::before {
  content: "→";
  font-size: 22px;
  line-height: 1;
}

.hero-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 32, 31, 0.24);
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.hero-carousel-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--orange);
}

.entry-mode-band {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.entry-mode-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.entry-mode-inner > p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
}

.entry-switch {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.entry-switch-item {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.entry-switch-item:hover,
.entry-switch-item.is-active {
  background: var(--ink);
  color: #fff;
}

.entry-switch-item svg {
  width: 17px;
  height: 17px;
}

.task-home {
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(43, 109, 102, 0.055) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(43, 109, 102, 0.055) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--paper);
}

.task-home-inner {
  max-width: 980px;
}

.task-home-heading {
  max-width: 720px;
}

.task-home-heading h1 {
  margin: 4px 0 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
}

.task-home-heading > p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 16px;
}

.task-home-search {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.task-home-search > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.task-search-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.task-search-form > svg {
  width: 21px;
  height: 21px;
  color: var(--ink-3);
}

.task-search-form input {
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  border: 0;
  padding: 0;
  font-size: 16px;
  outline: 0;
}

.task-search-form .button {
  width: auto;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  min-height: 48px;
  white-space: nowrap;
}

.task-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.task-section-title h2 {
  margin: 0;
  font-size: 18px;
}

.task-section-title span {
  color: var(--ink-3);
  font-size: 13px;
}

.trending-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.trending-scroll::-webkit-scrollbar {
  display: none;
}

.trending-chip {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.trending-chip:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

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

.task-track {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.task-track:hover,
.task-track:focus-visible {
  border-color: var(--orange);
}

.task-track-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.task-track-icon svg {
  width: 18px;
  height: 18px;
}

.task-track strong {
  font-size: 16px;
}

.task-track > span:last-child {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.task-entry-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-result-band {
  padding: 8px 0 40px;
}

.home-result {
  margin-top: 0;
  scroll-margin-top: 96px;
}

.home-result.result-flash {
  animation: result-flash 900ms ease-out;
}

@keyframes result-flash {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-result.result-flash {
    animation: none;
  }
}

.intent-alignment {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.intent-alignment h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 4vw, 36px);
}

.intent-alignment > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-3);
}

.intent-alignment form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.intent-choice {
  min-height: 52px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.intent-choice input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

.intent-choice:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.intent-none {
  border-style: dashed;
}

.selected-intent {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
}

.home-answer-card {
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow-md);
}

.home-answer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.certainty-label {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 800;
}

.home-answer-card h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.25;
}

.reasoning-summary {
  margin: 12px 0 20px;
  color: var(--ink-3);
  font-size: 16px;
}

.home-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.home-answer-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.home-answer-grid span,
.home-answer-section h3,
.home-answer-next strong {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 900;
}

.home-answer-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
}

.home-answer-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.home-answer-section.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.home-answer-section h3 {
  margin: 0 0 8px;
}

.home-answer-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-3);
  font-size: 14px;
}

.home-source-list {
  padding-left: 0 !important;
  list-style: none;
}

.home-source-list li {
  display: grid;
  gap: 2px;
}

.home-source-list a {
  width: fit-content;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-source-list span {
  color: var(--ink-3);
}

.home-answer-next {
  margin-top: 22px;
  padding: 16px;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
}

.home-answer-next p {
  margin: 6px 0 0;
}

.home-answer-next span {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 13px;
}

.home-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.task-evidence-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.task-evidence-note article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 14px;
}

.task-evidence-note strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
}

.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(23, 32, 31, 0.42);
}

.bottom-sheet {
  width: min(100%, 720px);
  max-height: min(82vh, 680px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(23, 32, 31, 0.28);
}

.bottom-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.bottom-sheet-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.bottom-sheet > p {
  color: var(--ink-3);
}

.bottom-sheet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.bottom-sheet-note {
  margin-bottom: 0;
  font-size: 13px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.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;
  min-height: 44px;
  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: 370px;
  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-urgent {
  border-top: 5px solid var(--red);
  background: linear-gradient(180deg, var(--red-soft), var(--surface) 92px);
}

.episode-card.is-urgent h3 a {
  color: #8f3027;
}

.episode-card.is-high-risk {
  border-top: 4px solid var(--amber);
  background: linear-gradient(180deg, var(--amber-soft), var(--surface) 92px);
}

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

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

.episode-meta span:nth-child(2) {
  flex: 1 1 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-status,
.risk-badge,
.review-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.card-status {
  background: var(--blue-soft);
  color: var(--blue);
}

.risk-badge {
  background: var(--surface-2);
  color: var(--ink-3);
}

.review-pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.review-reviewed {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.review-rejected {
  background: var(--red-soft);
  color: var(--red);
}

.risk-low {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.risk-medium {
  background: var(--amber-soft);
  color: var(--amber);
}

.risk-high {
  background: var(--red-soft);
  color: var(--red);
}

.urgent-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.high-risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--amber);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  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-signals {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
}

.signal-tag {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-3);
  font-size: 12px;
}

.signal-tag strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.signal-tag-cost {
  border-left: 3px solid var(--orange);
}

.signal-tag-benefit {
  border-left: 3px solid var(--teal);
}

.episode-footer {
  display: flex;
  flex-wrap: wrap;
  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);
}

.evidence-unregistered {
  background: var(--line);
  color: var(--ink-3);
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #b7d4ca;
  border-radius: var(--radius);
  background: #e9f4f0;
  color: #245c4f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.episode-card.is-experience {
  border-top: 4px solid #8bb6a9;
}

.experience-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #b7d4ca;
  border-radius: var(--radius);
  background: #eef7f4;
}

.experience-panel p,
.experience-source-note p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.7;
}

.experience-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 4px solid #8bb6a9;
  background: #eef7f4;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.7;
}

.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, 1.2fr) repeat(5, minmax(120px, 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);
}

.library-track-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.library-track-tabs::-webkit-scrollbar {
  display: none;
}

.library-track-tab {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.library-track-tab:hover,
.library-track-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.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.is-urgent {
  padding-top: 22px;
  border-top: 6px solid var(--red);
}

.article-body.is-high-risk {
  padding-top: 20px;
  border-top: 5px solid var(--amber);
}

.answer-lead {
  padding: 20px 22px;
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  background: var(--orange-soft);
}

.answer-lead .answer-direction {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.7;
}

.answer-lead .answer-reasoning {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

.answer-kind-note {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(183, 116, 38, 0.28);
  border-radius: var(--radius);
  background: #fff8ec;
}

.answer-kind-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: var(--radius);
  background: var(--amber);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.answer-kind-note > p,
.worked-example p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.worked-example {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(183, 116, 38, 0.2);
}

.worked-example strong {
  color: var(--orange-dark);
  font-size: 13px;
}

.answer-kind-inline {
  margin: 10px 0 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;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.action-buttons .button {
  margin-top: 0;
}

.action-checklist {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: action-step;
}

.action-checklist li {
  position: relative;
  min-height: 48px;
  padding: 11px 12px 11px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-3);
  counter-increment: action-step;
}

.action-checklist li::before {
  content: counter(action-step);
  position: absolute;
  top: 11px;
  left: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.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 > span svg {
  width: 22px;
  height: 22px;
}

.evidence-panel > span b {
  font-size: 16px;
}

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

.pending-review-notice {
  padding: 16px 18px;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: var(--amber-soft);
}

.pending-review-notice strong {
  display: block;
  color: var(--amber);
  font-size: 15px;
}

.pending-review-notice p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

.citation-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.citation-list li {
  color: var(--ink-2);
}

.citation-list a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.citation-list small {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 13px;
}

.source-empty {
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.source-empty strong {
  display: block;
}

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

.decision-boundary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.decision-boundary-list > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.decision-boundary-list dt {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 900;
}

.decision-boundary-list dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.limitations-list {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.limitations-list strong {
  display: block;
}

.limitations-list ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink-3);
}

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

.decision-disclaimer {
  margin-top: 36px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 14px;
}

.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 strong + .review-badge {
  margin-top: 8px;
}

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

.calculator-shell {
  display: grid;
  gap: 20px;
}

.calculator-tabs {
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.calculator-tab {
  min-width: max-content;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.calculator-tab svg {
  width: 17px;
  height: 17px;
}

.calculator-tab small {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 10px;
}

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

.calculator-tab.is-active small,
.calculator-tab:hover small {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.calculator-source-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
}

.calculator-models {
  min-width: 0;
}

.calculator-model[hidden],
.coming-soon-panel[hidden] {
  display: none !important;
}

.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;
}

.checklist-form {
  align-content: start;
}

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

.checklist-item {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.checklist-item input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--teal);
}

.coming-soon-panel {
  min-height: 360px;
  padding: 34px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.coming-soon-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.coming-soon-panel p:last-child {
  max-width: 680px;
  color: var(--ink-3);
  font-size: 17px;
}

.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-verdict {
  margin: 18px 0 0;
  padding: 13px 14px;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  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-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.tier-heading .tier-letter {
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  font-size: 28px;
}

.tier-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.tier-icon svg {
  width: 24px;
  height: 24px;
}

.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;
}

.source-register {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.source-register-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 60px;
}

.source-register ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-register li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.source-register li span {
  color: var(--ink-3);
}

.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;
}

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

.free-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.46fr);
  align-items: start;
  gap: 28px;
}

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

.free-wechat-note {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(233, 130, 34, 0.28);
  background: var(--orange-soft);
  color: var(--ink);
  font-size: 15px;
}

.free-wechat-note strong {
  font-weight: 800;
}

.free-progress {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.free-progress .eyebrow {
  margin: 0 0 2px;
}

.free-progress strong {
  display: block;
  font-size: 20px;
}

.free-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 32, 31, 0.1);
}

.free-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 180ms ease;
}

.free-checklist-group {
  margin: 0;
  padding: 0 20px 18px;
  border: 0;
}

.free-checklist-group + .free-checklist-group {
  border-top: 1px solid var(--line);
}

.free-checklist-group legend {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.free-checklist-group legend span {
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 13px;
}

.free-checklist-items {
  display: grid;
}

.free-check-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 22px 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 8px;
  border-top: 1px solid rgba(217, 224, 219, 0.72);
  color: var(--ink-2);
  cursor: pointer;
}

.free-check-item:first-child {
  border-top: 0;
}

.free-check-item:hover {
  background: rgba(43, 109, 102, 0.045);
}

.free-check-item input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

.free-check-number {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.free-check-item input:checked ~ span:last-child {
  color: var(--ink-3);
}

.free-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

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

.free-sidebar-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 34%;
}

.free-sidebar-card .eyebrow,
.free-sidebar-card h2,
.free-sidebar-card > p:last-child {
  margin-left: 20px;
  margin-right: 20px;
}

.free-sidebar-card .eyebrow {
  margin-top: 20px;
}

.free-sidebar-card h2 {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 24px;
}

.free-sidebar-card > p:last-child {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--ink-3);
  font-size: 14px;
}

.free-actions {
  display: grid;
  gap: 10px;
}

.free-wechat-cta {
  padding: 18px;
  border: 1px solid rgba(233, 130, 34, 0.32);
  border-radius: var(--radius);
  background: var(--orange-soft);
}

.free-wechat-cta .eyebrow {
  margin: 0 0 5px;
}

.free-wechat-cta strong {
  display: block;
  font-size: 16px;
  line-height: 1.6;
}

.free-actions .button {
  width: 100%;
  justify-content: center;
}

.free-local-note {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

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

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

.guide-shell {
  min-width: 0;
}

.guide-statusbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 700;
}

.guide-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guide-panel.is-report {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.guide-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  text-align: center;
}

.guide-start-form,
.guide-step-form {
  display: grid;
  gap: 20px;
}

.guide-start-form label,
.guide-text-field {
  display: grid;
  gap: 8px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 800;
}

.guide-start-form textarea,
.guide-text-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.guide-start-form textarea {
  min-height: 116px;
  resize: vertical;
}

.guide-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 18px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 800;
}

.guide-step-form h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.3;
}

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

.guide-choice {
  min-height: 50px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.guide-choice input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

.guide-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.guide-error {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.guide-no-match {
  display: grid;
  gap: 14px;
}

.guide-no-match > strong {
  font-size: 24px;
}

.guide-no-match > p {
  margin: 0;
  color: var(--ink-3);
  font-size: 16px;
}

.guide-report {
  display: grid;
  gap: 18px;
}

.guide-report-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 44px);
}

.guide-decision-card {
  padding: 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow-md);
}

.guide-decision-card > h3 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
}

.guide-decision-card > p {
  margin: 12px 0 20px;
  color: var(--ink-3);
  font-size: 16px;
}

.guide-context-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.guide-context-list > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.guide-context-list span {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 900;
}

.guide-context-list strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.guide-source-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.guide-source-block .eyebrow {
  margin-bottom: 10px;
}

.guide-json {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-json summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 900;
}

.guide-json pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #17201f;
  color: #f4f6f3;
  font-size: 13px;
  line-height: 1.55;
}

.guide-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.guide-aside-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-aside-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-3);
  font-size: 14px;
}

.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) {
  .global-search {
    display: none;
  }

  .nav-search-mobile {
    display: inline-flex;
  }

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

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

  .filter-group {
    grid-column: 1 / -1;
    width: min(100%, 240px);
  }

  .hero-grid,
  .featured-grid,
  .method-grid,
  .page-hero-inner,
  .article-layout,
  .calculator-layout,
  .evidence-process,
  .about-grid,
  .free-layout,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .hero-card-stage {
    width: min(100%, 620px);
    min-height: 460px;
    justify-self: start;
  }

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

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

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

  .source-register-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;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .global-search {
    display: none;
  }

  .menu-toggle {
    justify-self: end;
  }

  .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;
  }

  .nav-search-mobile {
    display: inline-flex;
  }

  .hero {
    padding: 54px 0;
  }

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

  .hero-grid {
    gap: 42px;
  }

  .hero-card-stage {
    width: 100%;
    min-height: 400px;
    padding: 20px 0 18px;
  }

  .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,
  .entry-mode-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,
  .decision-boundary-list,
  .checklist-grid,
  .guide-choice-grid,
  .guide-context-list,
  .home-answer-grid,
  .home-answer-section.two-column,
  .bottom-sheet-actions,
  .task-evidence-note,
  .intent-choice-grid {
    grid-template-columns: 1fr;
  }

  .task-home {
    padding-top: 24px;
  }

  .task-search-form {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    padding: 8px 10px;
  }

  .task-search-form input {
    flex: 1 1 auto;
    width: auto;
  }

  .task-search-form .button {
    flex: 1 0 100%;
    width: auto;
  }

  .task-track-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-track {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .task-entry-links {
    align-items: stretch;
    flex-direction: column;
  }

  .bottom-sheet-backdrop {
    padding: 10px;
  }

  .bottom-sheet {
    padding: 20px;
  }

  .entry-switch {
    width: 100%;
  }

  .entry-switch-item {
    flex: 1 1 0;
    justify-content: center;
  }

  .hero-decision-card {
    width: min(90%, 420px);
    padding: 20px;
  }

  .hero-card-track {
    padding-inline: 5%;
  }

  .hero-card-viewport {
    scroll-padding-inline: 5%;
  }

  .hero-carousel-controls {
    padding-inline: 12px;
  }

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

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

  .episode-card > p,
  .signal-grid p,
  .method-list p,
  .article-aside p,
  .content-note,
  .result-note,
  .footer-note,
  .footer-meta,
  .source-register li span {
    font-size: 16px;
    line-height: 1.7;
  }

  .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;
  }

  .free-progress {
    grid-template-columns: 1fr;
  }

  .free-progress .text-button {
    justify-self: start;
  }

  .free-checklist-group {
    padding-inline: 14px;
  }

  .free-check-item {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .free-check-number {
    display: none;
  }

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

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

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

@media print {
  .site-header,
  .site-footer,
  .free-sidebar,
  .free-progress .text-button,
  .closing-band {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page-hero,
  .free-checklist,
  .free-checklist-group,
  .free-check-item {
    break-inside: avoid;
  }

  .page-hero,
  .free-section {
    padding: 18px 0;
  }

  .free-layout {
    display: block;
  }

  .free-checklist {
    border-color: #999;
    box-shadow: none;
  }
}

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