:root {
  --ink: #e6edf3;
  --muted: #8b949e;
  --paper: #0d1117;
  --line: #30363d;
  --accent: #58a6ff;
  --soft: #161b22;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.7 system-ui,
    sans-serif;
}
a {
  color: #58a6ff;
  text-underline-offset: 4px;
}
a:hover {
  color: #a5d6ff;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #58a6ff;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 16px;
  background: #161b22;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}
.sidebar {
  width: 254px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #010409;
  color: #c9d1d9;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: auto;
}
.brand {
  color: white;
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  font-weight: 750;
  font-size: 28px;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.brand:hover {
  color: white;
}
.brand small {
  display: block;
  font: 9px/1.6 var(--mono);
  letter-spacing: 1.9px;
  color: #8b949e;
}
.nav-label {
  font: 9px var(--mono);
  letter-spacing: 2px;
  color: #8b949e;
  margin: 50px 0 16px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  margin: 2px 0;
  border-radius: 6px;
  font-size: 12px;
  color: #c9d1d9;
  text-decoration: none;
}
nav a span {
  font: 9px var(--mono);
  color: #8b949e;
}
nav a:hover,
nav a[aria-current='page'] {
  color: white;
  background: #21262d;
}
nav a[aria-current='page'] {
  box-shadow: inset 3px 0 #58a6ff;
}
.sidebar-foot {
  font-size: 10px;
  margin-top: auto;
  padding-top: 24px;
  color: #8b949e;
}
.sidebar-foot p {
  font: 11px/1.8 var(--mono);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3fb950;
  margin-right: 6px;
}
.workspace {
  margin-left: 254px;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 16px 46px;
  border-bottom: 1px solid var(--line);
}
.topbar p {
  font-size: 12px;
  margin: 0;
  flex: 1;
  color: var(--muted);
}
.topbar p span {
  margin: 0 10px;
  color: #8b949e;
}
.topbar strong {
  color: var(--ink);
  font-weight: 550;
}
.topbar button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  padding: 8px;
}
#menu {
  display: none;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 42px 46px;
}
.page {
  margin-bottom: 54px;
  min-width: 0;
}
.page-intro {
  max-width: 850px;
  margin-bottom: 36px;
}
.eyebrow {
  color: var(--accent);
  font: 10px/1.8 var(--mono);
  letter-spacing: 1.6px;
}
h1 {
  font-size: clamp(35px, 4vw, 58px);
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 16px 0 24px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
h2 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin: 38px 0 16px;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 24px 0 12px;
}
p {
  margin: 12px 0 20px;
}
.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 740px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  margin: 26px 0 36px;
}
.hero-copy h2 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.2;
  margin-top: 22px;
}
.hero-copy p {
  color: var(--muted);
}
.hero-panel {
  background: #21262d;
  padding: 28px;
  border-radius: 12px;
}
.hero-panel ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: role;
}
.hero-panel li {
  display: grid;
  grid-template-columns: 1fr;
  padding: 14px 0;
  border-top: 1px solid #30363d;
}
.hero-panel li span {
  font-size: 13px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  gap: 25px;
  background: #010409;
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}
.button:hover {
  color: white;
  background: #30363d;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  font: 9px/1.5 var(--mono);
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.implemented {
  color: #7ee787;
  background: #12311f;
}
.risk {
  color: #ffa198;
  background: #391b20;
}
.proposed {
  color: #a5d6ff;
  background: #152a43;
}
.example {
  color: #e3b341;
  background: #382b13;
}
.callout {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
}
.callout strong {
  color: #a5d6ff;
}
.callout p:last-child {
  margin-bottom: 0;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 12px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > span {
  font: 9px var(--mono);
  color: var(--muted);
  text-align: right;
}
.cards {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cards article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161b22;
  min-width: 0;
}
.cards h3 {
  font-size: 17px;
  margin: 16px 0 10px;
}
.cards p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  background: #161b22;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 13px;
}
caption {
  text-align: left;
  padding: 13px 18px;
  color: var(--muted);
  font-size: 12px;
  background: #21262d;
  border-bottom: 1px solid var(--line);
}
th {
  text-align: left;
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.6px;
  background: #21262d;
  padding: 14px 18px;
}
td {
  vertical-align: top;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}
code {
  font: 12px/1.65 var(--mono);
  background: #21262d;
  padding: 2px 5px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.diagram {
  padding: 12px;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  background: #0d1117;
}
.diagram img {
  display: block;
  width: 100%;
  height: auto;
  min-width: 800px;
}
figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.tabs button {
  border: 1px solid #8b949e;
  background: #161b22;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--ink);
}
.tabs button[aria-pressed='true'] {
  color: white;
  background: #010409;
  border-color: #30363d;
}
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 28px;
  background: #161b22;
}
.detail-panel h3 {
  margin-top: 0;
}
.steps {
  padding-left: 24px;
}
.steps li {
  padding: 6px 0 12px 8px;
}
.flow {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 24px 0;
}
.flow div {
  flex: 1 0 150px;
  padding: 15px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}
.flow span {
  color: var(--accent);
}
.risk-item,
.evidence {
  margin: 11px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px 20px;
  background: #161b22;
  font-size: 14px;
}
.risk-item summary,
.evidence summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.risk-item p,
.evidence p {
  margin: 14px 0 5px;
}
.risk-item code {
  background: #30363d;
}
.evidence {
  margin-top: 30px;
  font-size: 12px;
  background: #161b22;
}
blockquote {
  margin: 20px 0;
  padding: 8px 24px;
  border-left: 3px solid var(--accent);
  background: #21262d;
}
footer {
  padding: 24px 46px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: 9px/1.7 var(--mono);
  letter-spacing: 0.8px;
  color: var(--muted);
}
@media (max-width: 1150px) {
  .cards.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 32px 28px;
  }
  .topbar {
    padding: 16px 28px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s;
    box-shadow: 12px 0 35px #0002;
  }
  .menu-open .sidebar {
    transform: none;
  }
  .workspace {
    margin-left: 0;
  }
  #menu {
    display: block;
  }
  .topbar {
    padding: 12px 16px;
    min-height: 64px;
  }
  .topbar p {
    font-size: 10px;
  }
  .topbar p span {
    margin: 0 4px;
  }
  .topbar button {
    font-size: 11px;
  }
  main {
    padding: 30px 20px;
  }
  h1 {
    font-size: 39px;
    letter-spacing: -1.5px;
  }
  h2 {
    font-size: 23px;
  }
  .section-heading > span {
    display: none;
  }
  .lede {
    font-size: 16px;
  }
  .callout {
    padding: 18px;
  }
  footer {
    padding: 20px;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .cards.four,
  .cards.two {
    grid-template-columns: 1fr;
  }
  .topbar p {
    max-width: 160px;
  }
  h1 {
    font-size: 34px;
  }
  .detail-panel {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  body {
    color: #111;
    background: white;
    font-size: 10pt;
  }
  .sidebar,
  .topbar,
  .skip,
  .tabs {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .page[hidden],
  .page {
    display: block !important;
    break-before: page;
  }
  .page:first-child {
    break-before: auto;
  }
  .page-intro {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 28pt;
  }
  h2 {
    font-size: 17pt;
  }
  h3 {
    font-size: 13pt;
  }
  .cards.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .diagram img {
    min-width: 0;
  }
  .diagram,
  .table-wrap,
  .flow {
    overflow: visible;
  }
  .flow {
    flex-wrap: wrap;
  }
  table {
    min-width: 0;
    font-size: 9pt;
  }
  td,
  th {
    padding: 8px;
  }
  .risk-item,
  .evidence,
  tr {
    break-inside: avoid;
  }
  code {
    font-size: 8pt;
  }
  footer {
    font-size: 7pt;
  }
}
