@font-face {
  font-family: Inter;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/fonts/mono-latin.woff2) format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Graphite, cool and quiet, so the verdict colours carry the meaning. */
  --ink: #07090c;
  --raise: #0a0d11;
  --panel: #0e1217;
  --panel-2: #131820;
  --panel-3: #1a212b;
  --line: rgb(198 214 238 / 0.08);
  --line-2: rgb(198 214 238 / 0.15);
  --line-3: rgb(198 214 238 / 0.28);
  --text: #ecf0f5;
  --soft: #c6ced9;
  --muted: #9aa5b4;
  --faint: #808b9a;
  /* The guard: safety orange, warming to amber. */
  --brand: #ff8a3d;
  --brand-2: #ffc069;
  --brand-ink: #1c0d02;
  /* What dcg decided. Always paired with a word and an icon. */
  --deny: #ff6b6b;
  --deny-soft: #ffd5d5;
  --allow: #3ddc97;
  --warn: #f6c344;
  --ask: #6cb4ff;
  --unknown: #b69cff;
  --critical: #ff6b6b;
  --high: #ff9a4d;
  --medium: #f6c344;
  --low: #9aa5b4;
  --chapter: var(--brand);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --wide: 82rem;
  --radius: 1.15rem;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --head: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  scroll-padding-top: calc(var(--head) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: rgb(140 160 185 / 0.35) transparent;
}
@media (min-width: 1921px) {
  html {
    font-size: min(0.8334vw, 1.35rem);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--text);
  font: 400 1rem/1.65 var(--sans);
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss03", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
pre,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
pre {
  position: relative;
}
code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.92em;
  font-variant-ligatures: none;
}
:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: rgb(255 138 61 / 0.35);
  color: #fff;
}
.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 {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
}
.skip:focus {
  top: 1rem;
}
.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.i {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

/* ---------- Type ---------- */
.d1 {
  font-size: clamp(2.75rem, 6.6vw, 5.9rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.052em;
  text-wrap: balance;
}
.d2 {
  font-size: clamp(2.15rem, 4.4vw, 3.85rem);
  line-height: 1.02;
  font-weight: 780;
  letter-spacing: -0.044em;
  text-wrap: balance;
}
.d3 {
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  line-height: 1.1;
  font-weight: 740;
  letter-spacing: -0.034em;
  text-wrap: balance;
}
.d4 {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lede {
  font-size: clamp(1.06rem, 1.3vw, 1.24rem);
  line-height: 1.62;
  color: var(--soft);
  max-width: 44rem;
  text-wrap: pretty;
}
.lede code,
.kicker code,
p > code,
li > code,
td > code,
th > code {
  padding: 0.08em 0.36em;
  border-radius: 0.38em;
  background: rgb(198 214 238 / 0.08);
  border: 1px solid var(--line);
  color: #e8edf4;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Commands in running prose are short; keep each one on a line. */
.lede code,
.kicker code {
  white-space: nowrap;
}
em.g {
  font-style: normal;
  background: linear-gradient(100deg, var(--chapter) 0%, color-mix(in oklab, var(--chapter) 55%, #fff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}
@media (forced-colors: active) {
  em.g {
    background: none;
    color: CanvasText;
  }
}
.kick {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 650 0.76rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.kick.small {
  margin-bottom: 0.85rem;
}
.kick-n {
  color: var(--chapter);
}
.micro {
  font: 650 0.72rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.lamp-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  flex: none;
  background: color-mix(in oklab, var(--chapter) 45%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--chapter) 70%, transparent);
}
.lamp-dot.on {
  background: var(--chapter);
  box-shadow: 0 0 10px color-mix(in oklab, var(--chapter) 60%, transparent);
}
a.txt {
  color: var(--brand-2);
  text-decoration: underline;
  text-decoration-color: rgb(255 192 105 / 0.4);
  text-underline-offset: 0.2em;
}
a.txt:hover {
  text-decoration-color: currentColor;
}
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(7 9 12 / 0.74);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.scrolled .top {
  border-bottom-color: var(--line);
}
.bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  height: var(--head);
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 750 1.22rem/1 var(--mono);
  letter-spacing: -0.04em;
}
.mark {
  width: 2.35rem;
  height: auto;
  overflow: visible;
}
.mark .post {
  fill: #3a4452;
}
.mark .lamp {
  fill: var(--brand);
  transition: fill 0.2s, filter 0.2s;
}
.mark .boom-base {
  stroke: #e9edf2;
  stroke-width: 5.2;
  stroke-linecap: round;
}
.mark .boom-stripe {
  stroke: var(--brand);
  stroke-width: 5.2;
  stroke-dasharray: 4.5 4.5;
  stroke-dashoffset: -6;
}
.mark .pivot {
  fill: #3a4452;
  stroke: var(--ink);
  stroke-width: 1.6;
}
.brand.blocking .lamp {
  fill: var(--deny);
  filter: drop-shadow(0 0 4px var(--deny));
}
.chapters {
  display: none;
  justify-content: center;
  gap: 0.15rem;
}
.chapters a,
.menu nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--soft);
  transition: background 0.2s, color 0.2s;
}
.chapters a:hover {
  color: var(--text);
  background: rgb(198 214 238 / 0.06);
}
.chapters a[aria-current] {
  color: var(--text);
  background: rgb(198 214 238 / 0.09);
}
.chapters a[aria-current] .lamp-dot {
  background: var(--chapter);
  box-shadow: 0 0 9px color-mix(in oklab, var(--chapter) 60%, transparent);
}
.tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}
.menu {
  position: relative;
}
.menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  cursor: pointer;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary .i {
  width: 1.3rem;
  height: 1.3rem;
}
.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  display: grid;
  min-width: 15rem;
  padding: 0.5rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55);
}
.menu nav a {
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
}
.menu nav a:hover {
  background: rgb(198 214 238 / 0.07);
}
.menu nav hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.35rem 0.4rem;
}
.menu nav .i {
  margin-left: auto;
  color: var(--faint);
}
@media (min-width: 1180px) {
  .chapters {
    display: flex;
  }
  .menu {
    display: none;
  }
}
@media (max-width: 559px) {
  .hide-sm {
    display: none !important;
  }
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--deny), var(--brand), var(--brand-2));
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--text);
  font-weight: 620;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover {
  background: var(--panel-2);
  border-color: var(--line-3);
}
.btn:active {
  transform: translateY(1px);
}
.btn.go {
  background: var(--brand);
  border-color: transparent;
  color: var(--brand-ink);
  box-shadow: 0 8px 30px rgb(255 138 61 / 0.22);
}
.btn.go:hover {
  background: #ff9b57;
}
.btn.ghost {
  background: transparent;
}
.btn.sm {
  min-height: 2.5rem;
  padding: 0 0.9rem;
  font-size: 0.9rem;
  border-radius: 10px;
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 620;
  color: var(--brand-2);
}
.more:hover .i {
  transform: translateX(3px);
}
.more .i {
  transition: transform 0.2s var(--ease);
}

/* ---------- Verdicts, rules, severities ---------- */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem 0.32rem 0.55rem;
  border-radius: 999px;
  font: 700 0.8rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.verdict.deny {
  color: var(--deny);
  background: rgb(255 107 107 / 0.11);
  box-shadow: inset 0 0 0 1px rgb(255 107 107 / 0.35);
}
.verdict.allow {
  color: var(--allow);
  background: rgb(61 220 151 / 0.09);
  box-shadow: inset 0 0 0 1px rgb(61 220 151 / 0.3);
}
.verdict.sm {
  padding: 0.22rem 0.55rem 0.22rem 0.42rem;
  font-size: 0.7rem;
}
.verdict .i {
  width: 1.15em;
  height: 1.15em;
}
code.rule {
  font-size: 0.8rem;
  color: var(--soft);
  background: none;
  border: 0;
  padding: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.sev {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
  font: 650 0.68rem/1.35 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--low);
  background: rgb(154 165 180 / 0.1);
}
.sev.critical {
  color: var(--critical);
  background: rgb(255 107 107 / 0.1);
}
.sev.high {
  color: var(--high);
  background: rgb(255 154 77 / 0.1);
}
.sev.medium {
  color: var(--medium);
  background: rgb(246 195 68 / 0.1);
}
mark {
  background: rgb(255 107 107 / 0.2);
  color: var(--deny-soft);
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 var(--deny);
  padding: 0 0.06em;
}
mark.soft {
  background: rgb(255 192 105 / 0.14);
  color: #ffe3bd;
  box-shadow: inset 0 -2px 0 var(--brand-2);
}

/* ---------- Code ---------- */
.code {
  position: relative;
  border-radius: 14px;
  background: #05070a;
  border: 1px solid var(--line);
  overflow: hidden;
}
.code + .code {
  margin-top: 0.85rem;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.55rem 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
  font: 550 0.78rem/1 var(--mono);
  color: var(--faint);
}
.code-pre {
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #dbe3ee;
  tab-size: 4;
}
.code-pre.prompt code::before {
  content: "$ ";
  color: var(--faint);
}
.code:has(.copy.float) .code-pre {
  padding-right: 6.5rem;
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  font: 600 0.78rem/1 var(--sans);
  color: var(--soft);
  transition: background 0.2s, color 0.2s;
}
.copy:hover {
  background: var(--panel-3);
  color: var(--text);
}
.copy.float {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
}
.copy.done {
  color: var(--allow);
  border-color: rgb(61 220 151 / 0.4);
}
.copy .i {
  width: 0.95rem;
  height: 0.95rem;
}

/* ---------- Tables ---------- */
.table-wrap {
  /* Positioned, so absolutely placed descendants such as screen-reader labels scroll and clip with the table. */
  position: relative;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--raise);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
thead th {
  font: 650 0.72rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--panel);
}
tbody tr:last-child > * {
  border-bottom: 0;
}
tbody th {
  font-weight: 600;
  color: var(--text);
}

/* On phones a .stack-sm table becomes one card per row: the row's heading, then each cell under its column name. */
@media (max-width: 699px) {
  .table-wrap:has(> .stack-sm) {
    overflow: visible;
    border: 0;
    background: none;
  }
  .stack-sm thead {
    display: none;
  }
  .stack-sm,
  .stack-sm tbody {
    display: grid;
    gap: 0.6rem;
  }
  .stack-sm tr {
    display: grid;
    gap: 0.55rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--raise);
  }
  .stack-sm th,
  .stack-sm td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0 !important;
    white-space: normal !important;
    background: none;
  }
  .stack-sm tbody th {
    font-size: 1rem;
    color: var(--text);
  }
  .stack-sm td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    font: 650 0.64rem/1.3 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
  }
}

/* ---------- Segmented control ---------- */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.seg button {
  min-height: 2.4rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 580;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.seg button:hover {
  color: var(--text);
}
.seg button[aria-pressed="true"] {
  background: var(--panel-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ---------- Lists of verdicts ---------- */
.mini-verdicts {
  display: grid;
  gap: 0.5rem;
}
.mini-verdicts li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  align-items: center;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: var(--raise);
  border: 1px solid var(--line);
}
.mini-verdicts li > code {
  font-size: 0.85rem;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mini-verdicts li > span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: end;
}
.mini-verdicts small {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 0.82rem;
}
@media (max-width: 639px) {
  .mini-verdicts li {
    grid-template-columns: 1fr;
  }
  .mini-verdicts li > span {
    justify-self: start;
    flex-wrap: wrap;
  }
}

/* ---------- Shared pack bits ---------- */
.pk-default {
  display: inline-flex;
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
  font: 650 0.66rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--allow);
  background: rgb(61 220 151 / 0.1);
  white-space: nowrap;
}
.pk-filter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.9rem;
  min-height: 2.9rem;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--faint);
}
.pk-filter:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(255 138 61 / 0.18);
}
.pk-filter input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  min-height: 2.8rem;
}
.pk-filter input::placeholder {
  color: var(--faint);
}
.pk-count {
  margin: 0.6rem 0.2rem 0;
  font-size: 0.85rem;
  color: var(--faint);
  min-height: 1.3em;
}

/* ---------- Footer ---------- */
.end {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--raise);
  padding: 3.5rem 0 calc(2rem + env(safe-area-inset-bottom));
}
.end-grid {
  display: grid;
  gap: 2.5rem;
}
.end-brand p {
  margin-top: 1rem;
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.end-release {
  font-size: 0.85rem !important;
  color: var(--faint) !important;
}
.end-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 2rem;
}
.end-links h2 {
  font: 650 0.72rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.8rem;
}
.end-links a {
  display: block;
  padding: 0.3rem 0;
  color: var(--soft);
  font-size: 0.95rem;
}
.end-links a:hover {
  color: var(--text);
}
.end-credit {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.88rem;
}
.end-credit a {
  color: var(--soft);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 0.2em;
}
@media (min-width: 900px) {
  .end-grid {
    grid-template-columns: 1fr 1.4fr;
  }
}

/* ---------- Entrances ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .js .reveal.seen {
    opacity: 1;
    transform: none;
  }
}
