:root {
  --paper: #f2efe7;
  --paper-soft: #fbfaf6;
  --ink: #14202a;
  --ink-soft: #4b5862;
  --cobalt: #2455e6;
  --cobalt-soft: #e4ebff;
  --signal: #d94a3c;
  --signal-soft: #fff0ed;
  --evidence: #087a53;
  --evidence-soft: #e7f5ee;
  --line: #b6c0c8;
  --line-dark: #77838c;
  --white: #ffffff;
  --sans: "IBM Plex Sans", "Noto Sans TC", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

img,
svg,
video {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--cobalt);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: 76px 1fr;
}

.topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-soft);
}

.masthead {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-right: 1px solid var(--ink);
}

.masthead a {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.masthead span {
  display: block;
  margin-top: 1px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topnav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 34px;
}

.topnav-links,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.topnav a:hover {
  color: var(--cobalt);
}

.language-switcher .locale-switch {
  border-bottom: 2px solid var(--cobalt);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.rail {
  position: sticky;
  top: 0;
  min-width: 0;
  height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  align-self: start;
  overflow-y: auto;
  border-right: 1px solid var(--ink);
  background: var(--paper-soft);
}

.rail-block {
  padding: 19px 27px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rail-value {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.rail-note {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.source-tally {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 11px;
  align-items: center;
}

.source-tally strong {
  color: var(--evidence);
  font-family: var(--mono);
  font-size: 32px;
  line-height: 1;
}

.source-tally span {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.inventory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.inventory-link {
  min-height: 74px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "count action"
    "label label";
  gap: 4px 8px;
  align-content: center;
  padding: 9px;
  background: var(--paper-soft);
  color: var(--ink);
  text-decoration: none;
}

.inventory-link:hover {
  background: var(--cobalt-soft);
  box-shadow: inset 0 -3px 0 var(--cobalt);
}

.inventory-link:focus-visible {
  position: relative;
  z-index: 1;
  background: var(--cobalt-soft);
}

.inventory-count {
  grid-area: count;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.inventory-count strong {
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
}

.inventory-unit {
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.inventory-label {
  grid-area: label;
  min-width: 0;
  overflow-wrap: break-word;
  align-self: center;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.inventory-action {
  grid-area: action;
  justify-self: end;
  white-space: nowrap;
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.code-block {
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 0;
  background: var(--cobalt-soft);
}

section.invite-code {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.invite-code__description {
  display: grid;
  gap: 3px;
}

.invite-code__description strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.invite-code__description span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.invite-code__copy-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.invite-code__copy-row code {
  min-width: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.invite-code__benefit {
  margin: 0;
  color: var(--cobalt);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
}

.invite-code__terms {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

section.invite-code button,
.tool-shell button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper-soft);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

section.invite-code button:hover,
.tool-shell button:hover {
  background: var(--ink);
  color: var(--white);
}

section.invite-code [data-copy-status] {
  min-height: 18px;
  grid-column: 1 / -1;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 12px;
}

section.invite-code [data-copy-status]:empty {
  display: none;
}

.hero {
  min-width: 0;
  padding: 26px 34px 48px;
  overflow: hidden;
}

.hero-kicker,
.article-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-kicker strong,
.article-kicker strong {
  color: var(--cobalt);
}

.hero-overview {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
  gap: 32px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
  padding-top: 6px;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(42px, 3.3vw, 52px);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.home-title-main,
.home-title-accent {
  display: block;
  text-wrap: balance;
}

.home-title-main {
  color: var(--ink);
}

.home-title-accent {
  color: var(--cobalt);
}

.hero-lede {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.home-start {
  min-width: 0;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
}

.home-start > header {
  padding: 16px 18px 15px;
  border-bottom: 1px solid var(--line);
}

.home-start > header .eyebrow {
  margin-bottom: 5px;
  color: var(--cobalt);
}

.home-start h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.home-start > header p {
  max-width: 660px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.home-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.home-task-link {
  position: relative;
  min-width: 0;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  padding: 17px 42px 16px 17px;
  background: var(--paper-soft);
  color: var(--ink);
  text-decoration: none;
}

.home-task-link:hover,
.home-task-link:focus-visible {
  background: var(--cobalt-soft);
}

.home-task-index {
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.home-task-link h3 {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.25;
}

.home-task-link p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.home-task-action {
  position: absolute;
  right: 15px;
  bottom: 12px;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 18px;
}

.decision-strip {
  margin-top: 30px;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
}

.decision-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.runbook-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.runbook-step {
  min-width: 0;
  min-height: 164px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  border-right: 1px solid var(--line);
}

.runbook-step:last-child {
  border-right: 0;
}

.step-number {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
}

.step-number strong {
  font-size: 21px;
  line-height: 1;
}

.step-number span {
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.step-content {
  padding: 13px 14px;
}

.step-content h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.step-content p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.independent-note {
  margin: 22px 0 0;
  padding: 11px 12px 11px 15px;
  border-left: 4px solid var(--signal);
  background: var(--signal-soft);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.evidence-stage {
  position: relative;
  min-width: 0;
  margin-top: 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 6px 6px 0 rgb(20 32 42 / 10%);
}

.evidence-stage-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.evidence-stage-header strong {
  color: #8fcbb4;
  font-size: 13px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
}

.evidence-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: var(--paper-soft);
}

.evidence-card--primary {
  min-height: 0;
  grid-column: auto;
  display: flex;
  grid-template-columns: 1fr;
}

.evidence-image {
  height: 182px;
  min-height: 0;
  flex: 0 0 auto;
  overflow: hidden;
  background: #17191e;
}

.evidence-card--primary .evidence-image {
  height: 182px;
  min-height: 0;
}

.evidence-card--small .evidence-image {
  height: 182px;
}

.evidence-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.evidence-card:hover img {
  transform: scale(1.015);
}

.evidence-card--primary img {
  object-position: 46% 48%;
}

.evidence-card[data-source-id="pvara-status"] img {
  object-position: center 44%;
}

.evidence-card[data-source-id="bot-guide"] img {
  object-position: 39% 46%;
}

.evidence-caption {
  min-height: 220px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
}

.evidence-card--small .evidence-caption {
  min-height: 220px;
  padding: 14px 15px;
}

.evidence-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.evidence-index strong {
  color: var(--evidence);
}

.evidence-caption h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.evidence-card--small .evidence-caption h2 {
  font-size: 17px;
}

.evidence-caption p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.source-meta {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}

.evidence-warning {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-top: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.evidence-warning p {
  min-height: 76px;
  margin: 0;
  padding: 10px 13px;
  background: var(--paper-soft);
  color: var(--ink-soft);
  font-size: 12px;
}

.evidence-warning strong {
  display: block;
  color: var(--evidence);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.evidence-warning .stop strong {
  color: var(--signal);
}

.topic-index {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.topic-index > h2 {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--ink);
  background: var(--line-dark);
}

.topic-group {
  min-width: 0;
  scroll-margin-top: 92px;
  background: var(--paper-soft);
}

.topic-group:target {
  outline: 3px solid var(--cobalt);
  outline-offset: -3px;
}

.topic-group:target header {
  background: var(--cobalt-soft);
}

.topic-group header {
  min-height: 58px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.topic-group header span {
  padding-left: 12px;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 14px;
}

.topic-group h3 {
  margin: 0;
  padding: 0 12px;
  border-left: 1px solid var(--line);
  font-size: 17px;
}

.topic-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-group li + li {
  border-top: 1px solid #dde2e5;
}

.topic-group a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 9px 13px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.topic-group a::after {
  margin-left: auto;
  padding-left: 8px;
  color: var(--cobalt);
  content: "→";
}

.topic-group a:hover {
  background: var(--cobalt-soft);
}

.article-main {
  min-width: 0;
  padding: 26px 34px 40px;
}

.article-page {
  max-width: 1040px;
}

.article-header {
  max-width: 900px;
  padding: 13px 0 32px;
  border-bottom: 1px solid var(--ink);
}

.review-status {
  max-width: 780px;
  margin: 0 0 20px;
  padding: 10px 13px;
  border-left: 4px solid var(--evidence);
  background: var(--evidence-soft);
  color: var(--ink-soft);
  font-size: 14px;
}

.editorial-byline {
  max-width: 820px;
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--evidence);
  background: var(--paper-soft);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.editorial-byline p {
  margin: 0;
}

.editorial-byline p > span {
  display: inline-block;
  min-width: 92px;
  margin-right: 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.editorial-byline a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--cobalt);
  font-weight: 700;
}

.publication-note--pending-depth,
.publication-note--pending-contact {
  padding: 9px 11px;
  border-left: 4px solid var(--signal);
  background: var(--signal-soft);
  color: var(--ink);
}

.hero-overview > .editorial-byline {
  grid-column: 1 / -1;
  margin-top: 0;
}

.article-header h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.article-deck {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.6;
}

.review-date {
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-body {
  padding-top: 28px;
}

.article-body [data-reading-path],
.article-body [data-trust-page] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-summary {
  grid-column: 1 / -1;
  max-width: 820px;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.article-body section,
.privacy-note,
.screenshot-status,
.safety-check {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.article-body section h2,
.privacy-note h2,
.screenshot-status h2,
.safety-check h2,
.source-note h2 {
  margin: 0 0 12px;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.article-body section p,
.privacy-note p {
  margin: 0;
  color: var(--ink-soft);
}

.article-body ul,
.safety-check ul,
.source-note ul {
  margin: 0;
  padding-left: 20px;
}

.article-body li + li,
.safety-check li + li,
.source-note li + li {
  margin-top: 8px;
}

.step-list,
.safety-check,
.privacy-note,
.screenshot-status {
  grid-column: 1 / -1;
}

.step-list ol {
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
  list-style: none;
}

.step-list__item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 132px;
  background: var(--paper-soft);
}

.step-list__item + .step-list__item {
  border-top: 1px solid var(--line);
}

.step-list__number {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
  border-right: 1px solid var(--line);
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
}

.step-list__item > div {
  padding: 20px 22px;
}

.step-list__item h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.step-list__item p {
  margin: 5px 0 0;
}

.step-list__verification,
.step-list__failure,
.step-list__recovery {
  padding: 8px 10px;
  border-left: 3px solid var(--evidence);
  background: var(--evidence-soft);
  color: var(--ink-soft);
  font-size: 13px;
}

.step-list__failure {
  border-color: var(--signal);
  background: var(--signal-soft);
}

.step-list__recovery {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
}

.safety-check {
  border-left-width: 6px;
}

.safety-check--check {
  border-left-color: var(--evidence);
  background: var(--evidence-soft);
}

.safety-check--stop {
  border-left-color: var(--signal);
  background: var(--signal-soft);
}

.safety-check--warning,
.screenshot-status {
  border-left-color: var(--cobalt);
  background: var(--cobalt-soft);
}

.safety-check h2 strong {
  display: inline-block;
  margin-right: 10px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.tool-shell,
.conversion-panel,
.source-note {
  max-width: 1040px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
}

.tool-shell form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-field,
.tool-check {
  min-width: 0;
  display: grid;
  gap: 7px;
  font-weight: 650;
}

.tool-field input,
.tool-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}

.tool-check {
  grid-template-columns: 24px 1fr;
  align-items: center;
  min-height: 44px;
}

.tool-check input {
  width: 22px;
  height: 22px;
  accent-color: var(--cobalt);
}

.tool-shell button {
  justify-self: start;
  background: var(--cobalt);
  color: var(--white);
}

.tool-privacy,
.tool-shell output {
  display: block;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.tool-shell output {
  padding: 14px;
  border-left: 4px solid var(--cobalt);
  background: var(--cobalt-soft);
  color: var(--ink);
}

.conversion-panel {
  border-left: 6px solid var(--cobalt);
}

.source-note {
  border-color: var(--line-dark);
  background: var(--ink);
  color: var(--white);
}

.source-note h2 {
  color: #8fcbb4;
}

.source-note p,
.source-note time {
  color: #d8e1e8;
}

.source-note a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #a9c0ff;
}

.site-footer {
  max-width: 1040px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}
.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--cobalt);
  font-size: 15px;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.home-shell .site-footer {
  margin-bottom: 36px;
}


.mobile-taskbar {
  display: none;
}

@media (max-width: 1180px) {
  .site-shell,
  .topbar {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .inventory {
    grid-template-columns: 1fr;
  }

  .hero-overview {
    grid-template-columns: 1fr;
  }

  .runbook-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .runbook-step {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .runbook-step:nth-child(2n) {
    border-right: 0;
  }

  .runbook-step:nth-child(n + 3) {
    border-bottom: 0;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-copy {
    display: block;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .evidence-card--primary {
    grid-template-columns: 1fr;
  }

  .evidence-card--primary .evidence-image {
    height: 220px;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .topnav-links {
    display: none;
  }

  .home-start-grid,
  .runbook-steps {
    grid-template-columns: 1fr;
  }

  .runbook-step,
  .runbook-step:nth-child(2n),
  .runbook-step:nth-child(n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .runbook-step:last-child {
    border-bottom: 0;
  }

  .evidence-image,
  .evidence-card--primary .evidence-image,
  .evidence-card--small .evidence-image {
    height: 210px;
  }

  .article-body [data-reading-path],
  .article-body [data-trust-page] {
    grid-template-columns: 1fr;
  }

  .article-summary,
  .step-list,
  .safety-check,
  .privacy-note,
  .screenshot-status {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 64px;
  }

  .site-shell {
    display: block;
  }

  .topbar {
    height: 66px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
  }

  .masthead {
    max-width: 205px;
    padding: 0 16px;
  }

  .masthead a {
    font-size: 15px;
  }

  .masthead span {
    display: none;
  }

  .topnav {
    padding: 0 9px;
  }

  .language-switcher .locale-switch {
    padding: 0 6px;
    font-size: 12px;
  }

  .rail {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .rail-block {
    min-height: 92px;
    padding: 13px 15px;
    border-right: 1px solid var(--line);
  }

  #category-navigation {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .inventory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-shell .rail-block:nth-child(2),
  .article-rail .rail-block:nth-child(2) {
    border-right: 0;
  }

  .article-rail .rail-block:nth-child(3) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .code-block {
    grid-column: 1 / -1;
    margin-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .article-rail .rail-note {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .source-tally strong {
    font-size: 26px;
  }

  section.invite-code code {
    font-size: 19px;
  }

  section.invite-code button {
    padding: 0 10px;
    font-size: 12px;
  }

  .hero,
  .article-main {
    padding: 21px 17px 34px;
    overflow: visible;
  }

  .hero-kicker,
  .article-kicker {
    align-items: flex-start;
    margin-bottom: 17px;
    font-size: 12px;
  }

  .hero-kicker span:last-child,
  .article-kicker span:last-child {
    max-width: 132px;
    text-align: right;
  }

  .hero-copy h1 {
    font-size: 38px;
    line-height: 1;
  }

  .hero-lede {
    margin-top: 17px;
    font-size: 15px;
  }

  .home-start h2 {
    font-size: 22px;
  }

  .home-task-link {
    min-height: 148px;
  }

  .decision-strip {
    margin-top: 26px;
  }

  .independent-note {
    margin-top: 18px;
  }

  .evidence-stage {
    box-shadow: 5px 5px 0 rgb(20 32 42 / 12%);
  }

  .evidence-stage-header {
    padding: 0 10px;
    font-size: 12px;
  }

  .evidence-stage-header span {
    max-width: 128px;
    text-align: right;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .evidence-image,
  .evidence-card--primary .evidence-image,
  .evidence-card--small .evidence-image {
    height: 190px;
  }

  .evidence-caption {
    min-height: 0;
    padding: 14px;
  }

  .evidence-card--small .evidence-caption {
    min-height: 0;
    padding: 14px;
  }

  .evidence-warning,
  .topic-grid,
  .tool-shell form {
    grid-template-columns: 1fr;
  }

  .topic-index {
    margin-top: 42px;
  }

  .article-header {
    padding-top: 5px;
  }

  .article-header h1 {
    font-size: 43px;
  }

  .article-deck {
    font-size: 16px;
  }

  .article-summary {
    font-size: 18px;
  }

  .article-body section,
  .privacy-note,
  .screenshot-status,
  .safety-check,
  .tool-shell,
  .conversion-panel,
  .source-note {
    padding: 16px;
  }

  .step-list__item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .step-list__number {
    padding-top: 20px;
    font-size: 18px;
  }

  .step-list__item > div {
    padding: 17px 15px;
  }

  .mobile-taskbar {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ink);
    background: var(--paper-soft);
  }

  .mobile-taskbar a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
  }

  .mobile-taskbar a:last-child {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.direct-answer,
.pakistan-scenario {
  max-width: 78ch;
}

.direct-answer p,
.pakistan-scenario p {
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-toc,
.article-section,
.article-faq {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.direct-answer {
  border-left: 5px solid var(--accent);
  background: #eef4ff;
}

.pakistan-scenario {
  border: 1px solid var(--line);
  background: #fff9e8;
}

.article-toc {
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.article-toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.article-toc li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.article-toc a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

.article-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.article-section p {
  max-width: 72ch;
  font-size: 1.125rem;
  line-height: 1.75;
}

.article-section p + p {
  margin-top: 1.1em;
}

.article-checklist {
  border-left: 3px solid var(--accent);
  padding-left: 28px;
}

.article-faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.article-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.article-faq summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
}

.article-faq details p {
  max-width: 72ch;
  margin: 12px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

@media (max-width: 680px) {
  .article-toc ol {
    columns: 1;
  }
}
