@font-face {
  font-family: "Luckymiya Sans SC";
  src: url("../../assets/fonts/NotoSansSC-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-2: #101b2c;
  --panel: rgba(13, 26, 45, 0.78);
  --panel-strong: #13233a;
  --ink: #f8fafc;
  --muted: #a8b5c7;
  --line: #2d3e59;
  --accent: #22d3ee;
  --accent-2: #84cc16;
  --warning: #facc15;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.10), transparent 28%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 50%, #07101d 100%);
  font-family: "Luckymiya Sans SC", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.75;
}

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

.reader-shell {
  width: min(1040px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 20px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  padding: clamp(56px, 8vw, 96px) 0 44px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.08;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.24;
}

p {
  margin: 0;
}

.lede {
  max-width: 820px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.72;
}

.decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.decision-strip span,
.card,
.notice,
.section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.decision-strip span {
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 18px;
  align-content: center;
}

.decision-strip b {
  color: var(--accent);
  font-size: 13px;
}

.notice {
  margin-top: 26px;
  padding: clamp(22px, 4vw, 34px);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(132, 204, 22, 0.07)),
    var(--panel);
}

.notice p {
  max-width: 850px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 21px;
}

.notice .source-link {
  color: var(--muted);
  font-size: 16px;
}

.notice a {
  color: var(--accent);
  font-weight: 850;
}

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

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

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

.card {
  padding: 24px;
}

.card p {
  margin-top: 12px;
  color: var(--muted);
}

.card.strong {
  border-color: color-mix(in srgb, var(--accent-2) 42%, var(--line));
}

.card.warn {
  border-color: color-mix(in srgb, var(--warning) 48%, var(--line));
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--warning);
  background: rgba(250, 204, 21, 0.12);
  font-size: 13px;
  font-weight: 850;
}

.section {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(8, 17, 31, 0.46);
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  color: var(--accent);
  background: rgba(19, 35, 58, 0.72);
  font-size: 15px;
}

td:first-child {
  width: 120px;
  color: var(--ink);
  font-weight: 850;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(8, 17, 31, 0.36);
}

.timeline b {
  color: var(--accent);
}

.timeline p,
.callout {
  color: var(--muted);
}

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

.flow div {
  position: relative;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  background: var(--panel-strong);
}

.flow div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
  background: var(--bg-2);
}

.flow b,
.risk-list b,
.question-list li::marker {
  color: var(--accent);
}

.flow span,
.risk-list span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.callout {
  margin-top: 18px;
  border-left: 4px solid var(--warning);
  padding: 2px 0 2px 16px;
}

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

.risk-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(8, 17, 31, 0.38);
}

.question-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 28px;
}

.question-list li {
  color: var(--muted);
  padding-left: 4px;
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel-strong);
}

.checklist b {
  color: var(--accent);
}

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

.action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.action p {
  max-width: 790px;
  margin-top: 12px;
  color: var(--muted);
}

.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  padding: 0 16px;
  color: #071019;
  background: var(--accent);
  font-size: 15px;
  font-weight: 900;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
    line-height: 1.72;
  }

  .reader-shell {
    width: min(100vw - 28px, 1040px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .hero {
    padding-top: 42px;
  }

  .decision-strip,
  .grid.three,
  .grid.two,
  .action,
  .checklist div,
  .timeline article,
  .flow,
  .risk-list {
    grid-template-columns: 1fr;
  }

  .flow div {
    min-height: auto;
  }

  .flow div:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -11px;
    transform: translateX(50%) rotate(135deg);
  }

  .decision-strip span {
    min-height: 78px;
  }

  table {
    min-width: 640px;
  }
}
