/* SPDX-License-Identifier: MIT OR Apache-2.0 */
/* Copyright (c) 2026 RISCON Co., Ltd. and Vericull Contributors */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/red-hat-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/red-hat-mono-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Vericull Korean";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/pretendard-ko-10de70955c.woff2") format("woff2");
}

/* Same file, limited to Hangul. English pages list this face, so an arrow or a ≥ that
   Public Sans lacks falls through to the system font instead of fetching the Korean subset. */
@font-face {
  font-family: "Vericull Hangul";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/pretendard-ko-10de70955c.woff2") format("woff2");
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF;
}

:root {
  --parchment: #f7f7f4;
  --bone: #f2f1ed;
  --linen: #e6e5e0;
  --stone: #cdcdc9;
  /* Text greys: 4.5:1 or better on Parchment, Bone and Linen (WCAG AA body text). */
  --mist: #666665;
  --driftwood: #62625b;
  --ash: #5e5d59;
  --ink: #26251e;

  /* Decoration only: rules, borders, fills. Never the colour of text. */
  --ember: #f54e00;
  --amber: #c08532;
  --forest: #34785c;
  --verdant: #1f8a65;
  --crimson: #cf2d56;
  --selection: #8bc4f8;

  /* Text-grade versions of the same hues: 4.5:1 or better on Parchment, Bone and Linen. */
  --ember-text: #b33f0a;
  --amber-text: #865d23;
  --verdant-text: #1a7254;
  --crimson-text: #bd294f;

  --border-soft: rgba(38, 37, 30, 0.07);
  --border-hairline: rgba(38, 37, 30, 0.11);
  --border-strong: rgba(38, 37, 30, 0.18);
  --shadow-window: 0 28px 70px rgba(38, 37, 30, 0.14), 0 14px 32px rgba(38, 37, 30, 0.1), 0 0 0 1px rgba(38, 37, 30, 0.08);

  --radius: 4px;
  --font-sans: "Public Sans", "Vericull Hangul", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "EB Garamond", "Vericull Hangul", Georgia, serif;
  --font-mono: "Red Hat Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-system-ko: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
  --focus-ring: 2px solid var(--ink);
}

html[lang="ko"] {
  --font-sans: "Vericull Korean", "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "EB Garamond", "Vericull Korean", Georgia, serif;
}

/* Korean text breaks between words, not inside them; a token too long for its line may still break. */
html[lang="ko"] body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ko-keep {
  white-space: nowrap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

html {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  overflow-x: hidden;
}

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

/* One focus ring for every control. Components only move its offset. */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

li, dd, blockquote {
  text-wrap: pretty;
}

pre, code, .mono, .terminal-bar, .release-meta, .digest-dl dd, .sarif-result-card {
  text-wrap: wrap;
}

a {
  color: var(--ember-text);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

/* A link inside running text is underlined, so it does not depend on colour alone. */
p a, li a, dd a, td a {
  text-decoration: underline;
}

code, pre, .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

p code, li code, h2 code, h3 code {
  overflow-wrap: anywhere;
}

h1 code, h2 code, h3 code {
  font-size: 0.86em;
}

/* Announcements for assistive technology that have no visible box. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Hangul on an English page (a registered company name, a link to the Korean mirror)
   uses the reader's system font, so the page does not fetch the Korean webfont for it. */
.sys-hangul {
  font-family: var(--font-system-ko);
}

.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--parchment);
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 100;
}

.skip-link:focus {
  left: 24px;
}

/* 1. Refero 52px Transparent Header (no sticky shadow, no heavy chrome) */
.site-nav {
  height: 52px;
  background: transparent;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-aperture {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.brand-aperture::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ember);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.nav-links a,
.ghost-link {
  color: rgba(38, 37, 30, 0.68);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.ghost-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.nav-ntsb {
  color: var(--ink);
}

.nav-ntsb:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* 2. Typography Scale (Weight 400 whisper-headlines + progressive tight tracking) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.63;
  color: var(--ash);
  margin-bottom: 12px;
}

.ember-inline {
  color: var(--ember-text);
}

.display {
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 17.5ch;
}

html[lang="ko"] .display {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 21ch;
  word-break: keep-all;
  text-wrap: balance;
}

.heading-lg {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}

html[lang="ko"] .heading-lg {
  line-height: 1.28;
  word-break: keep-all;
}

.heading {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 400;
}

.heading-sm {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-weight: 400;
}

.serif-lead {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.48;
  color: var(--ink);
  max-width: 64ch;
  margin-top: 18px;
  text-wrap: pretty;
}

html[lang="ko"] .serif-lead {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 40em;
  color: rgba(38, 37, 30, 0.86);
  word-break: keep-all;
}

.serif-prose {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--driftwood);
  margin-top: 14px;
  max-width: 62ch;
  text-wrap: pretty;
}

html[lang="ko"] .serif-prose {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 39em;
  word-break: keep-all;
}

.body-sm {
  font-size: 14px;
  line-height: 1.52;
  letter-spacing: 0.01em;
  color: var(--driftwood);
}

html[lang="ko"] .body-sm {
  line-height: 1.66;
  word-break: keep-all;
}

.subpage-hero .body-sm {
  max-width: 72ch;
}

html[lang="ko"] .subpage-hero .body-sm {
  max-width: 46em;
}

/* 3. Buttons — Strict max 2 button styles per action group, 4px radius */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 0.78em 1.35em 0.8em;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-primary {
  background: var(--ink);
  color: var(--parchment);
}

.btn-primary:hover {
  background: rgba(38, 37, 30, 0.86);
  color: var(--parchment);
}

.btn-secondary {
  background: var(--linen);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--stone);
  color: var(--ink);
}

.btn-forest {
  background: var(--forest);
  color: var(--parchment);
}

.btn-forest:hover {
  background: color-mix(in oklab, var(--forest) 82%, var(--ink));
}

.btn-amber {
  background: var(--amber);
  color: var(--parchment);
}

.btn-amber:hover {
  background: rgba(192, 133, 50, 0.88);
}

.btn-compact {
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* 4. Hero Layout — Left-descending copy + Full-Width 3-Pane Triage IDE Window */
.hero {
  padding: 56px 0 32px;
}

.hero-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
}

.hero-telemetry-aside {
  justify-self: end;
  max-width: 400px;
  border-left: 1px solid var(--stone);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-ratio-num {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* 5. Shared macOS Window Mockup Frame (used for Hero IDE + all 3 Feature Sections!) */
.mockup-stage {
  background: var(--bone);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-window);
  padding: 16px;
}

.hero-ide-stage {
  margin-top: 36px;
}

.macos-window {
  background: var(--parchment);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
}

.macos-titlebar {
  height: 36px;
  background: var(--bone);
  border-bottom: 1px solid var(--stone);
  padding: 0 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.macos-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.macos-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stone);
}

.macos-title {
  font-family: -apple-system, BlinkMacSystemFont, "Public Sans", sans-serif;
  font-size: 12.5px;
  color: var(--ash);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.macos-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--verdant-text);
  white-space: nowrap;
}

.macos-status.is-tampered {
  color: var(--crimson-text);
}

/* 6. Hero 3-Pane AppSec Triage IDE (Sidebar Queue + Code Span Editor + 4-Stage Debugger) */
.ide-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1.18fr) minmax(0, 0.92fr);
  min-height: 500px;
}

.ide-sidebar {
  background: var(--bone);
  border-right: 1px solid var(--stone);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.ide-sidebar-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.queue-list {
  display: flex;
  flex-direction: column;
}

.queue-item {
  appearance: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  border-left: 2px solid transparent;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-sans);
  color: var(--ink);
}

.queue-item:hover {
  background: rgba(38, 37, 30, 0.03);
}

.queue-item[aria-selected="true"] {
  background: var(--parchment);
  border-left-color: var(--ink);
}

.queue-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.queue-item-file {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-meta {
  font-size: 12px;
  color: var(--ash);
}

.q-badge-reject { color: var(--crimson-text); }
.q-badge-hold { color: var(--amber-text); }
.q-badge-pass { color: var(--verdant-text); }
.q-badge-sarif { color: var(--ember-text); }

.ide-sidebar-foot {
  padding: 12px;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  line-height: 1.5;
}

/* Center Editor Pane */
.ide-center {
  border-right: 1px solid var(--stone);
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--parchment);
}

.ide-tabbar {
  min-height: 34px;
  background: var(--bone);
  border-bottom: 1px solid var(--stone);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
}

.ide-tabbar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ide-tab-active {
  color: var(--ink);
}

.ide-case-brief {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-soft);
}

.ide-case-title {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-weight: 400;
}

.ide-case-summary {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.52;
  color: var(--driftwood);
}

.ide-editor-wrap {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.editor-caption-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
}

.code-textarea {
  width: 100%;
  min-height: 126px;
  resize: vertical;
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 11px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.56;
}

.code-textarea:focus,
.needle-input:focus {
  outline: var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--ink);
}

.claims-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.claim-chip {
  background: var(--bone);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.claim-chip.is-failed {
  border-color: rgba(207, 45, 86, 0.5);
}

.claim-chip-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.claim-ok { color: var(--verdant-text); }
.claim-fail { color: var(--crimson-text); }

.needle-input {
  width: 100%;
  background: var(--parchment);
  color: var(--ink);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.claim-note {
  font-size: 12px;
  color: var(--driftwood);
}

/* Strict 2-Button Action Bar inside IDE */
.ide-actionbar {
  margin-top: auto;
  padding: 10px 16px;
  background: var(--bone);
  border-top: 1px solid var(--stone);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ide-btn-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Right Pipeline Debugger Pane */
.ide-right {
  background: var(--bone);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.verdict-header-box {
  background: var(--parchment);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 12px;
}

.verdict-state-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.v-reject { color: var(--crimson-text); }
.v-hold { color: var(--amber-text); }
.v-confirm { color: var(--verdant-text); }

.verdict-explain {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--driftwood);
}

.stage-trace {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-node {
  background: var(--parchment);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stage-node-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
}

.stage-node-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.ladder-mini {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 3px;
}

.ladder-rung {
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 4px 2px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  background: var(--bone);
}

.ladder-rung.is-reached {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}

.ladder-rung.is-demoted {
  border-style: dashed;
  border-color: var(--crimson);
  color: var(--crimson-text);
}

.receipt-banner {
  margin-top: auto;
  padding: 9px 11px;
  background: var(--parchment);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  line-height: 1.48;
}

.receipt-banner strong {
  color: var(--verdant-text);
  font-weight: 500;
}

.receipt-banner.is-broken {
  color: var(--crimson-text);
  border-color: rgba(207, 45, 86, 0.5);
}

.receipt-banner.is-broken strong {
  color: var(--crimson-text);
}

/* SARIF 2.1.0 Live Gate View inside IDE */
.sarif-workspace {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-width: 0;
}

.sarif-left {
  padding: 14px 16px;
  border-right: 1px solid var(--stone);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.sarif-textarea {
  width: 100%;
  flex: 1;
  min-height: 290px;
  resize: vertical;
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 11px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.sarif-right {
  padding: 14px 16px;
  background: var(--bone);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.sarif-result-card {
  background: var(--parchment);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 9px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  word-break: break-all;
}

/* 7. Refero 8-Tile Single-Row Standards Strip (Linen tiles, Ash monochrome labels) */
.standards-row-section {
  padding: 24px 0 20px;
}

.standards-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  margin-bottom: 10px;
}

.standards-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.standard-tile {
  background: var(--linen);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  overflow: hidden;
}

/* 8. Alternating 50/50 Feature Sections — NO horizontal divider lines, pure Parchment breathing room! */
.feature-band {
  padding: 84px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.feature-grid.is-reversed {
  grid-template-columns: 1.08fr 0.92fr;
}

.feature-grid.is-reversed .feature-copy {
  order: 2;
}

.feature-grid.is-reversed .feature-window {
  order: 1;
}

.feature-copy,
.feature-window {
  min-width: 0;
}

.editorial-points {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.editorial-point {
  font-size: 14px;
  line-height: 1.56;
  color: var(--driftwood);
}

.editorial-point strong {
  color: var(--ink);
  font-weight: 500;
}

/* Window Mockup Interiors for Feature 01, 02, 03 */
.window-code-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.62;
  color: var(--ink);
  overflow-x: auto;
}

.code-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 2px 8px;
  border-radius: 2px;
}

.code-offset {
  color: var(--mist);
  user-select: none;
}

.code-line.span-pos {
  background: rgba(52, 120, 92, 0.1);
}

.code-line.span-neg {
  background: rgba(192, 133, 50, 0.12);
}

.code-line.span-kill {
  background: rgba(207, 45, 86, 0.1);
}

.window-subbar {
  padding: 9px 14px;
  background: var(--bone);
  border-top: 1px solid var(--stone);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
}

/* Router Band Matrix inside Window 02 */
.router-window-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.band-row {
  display: grid;
  grid-template-columns: 126px 138px 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  background: var(--bone);
  border-radius: var(--radius);
  font-size: 12px;
}

/* 10-Boot KASAN Grid & Seal Ledger inside Window 03 */
.boot-window-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.boot-cell {
  padding: 8px 4px;
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--stone);
  background: var(--bone);
  color: var(--ash);
}

.boot-cell.boot-hit {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--parchment);
}

.boot-cell.boot-miss {
  background: var(--parchment);
  color: var(--crimson-text);
  border-color: rgba(207, 45, 86, 0.4);
}

.ledger-scroll {
  width: 100%;
  overflow-x: auto;
}

.seal-ledger {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}

.seal-ledger th,
.seal-ledger td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--border-hairline);
  text-align: left;
}

.seal-ledger th {
  color: var(--ash);
  font-weight: 400;
}

/* 9. Two-Column Editorial Rate Sheet & Enclave Scope (Distinct from 3-card SaaS template!) */
.rates-section {
  padding: 84px 0 64px;
}

.rates-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

.rate-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rate-row {
  background: var(--bone);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.rate-price {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rate-price-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
}

.rate-deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: var(--driftwood);
}

/* 10. CLI & Cryptographic Colophon Band (Compact developer verification strip, no Testied <details> clone) */
.colophon-section {
  padding: 36px 0 80px;
}

.colophon-panel {
  background: var(--bone);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.terminal-bar {
  margin-top: 12px;
  background: var(--parchment);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.terminal-prompt {
  color: var(--ash);
  user-select: none;
}

.digest-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.digest-dl dt {
  color: var(--ash);
}

.digest-dl dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.legal-micro {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ash);
}

/* 11. Site map on Parchment Canvas */
.site-footer {
  padding: 48px 0 44px;
  border-top: 1px solid var(--border-hairline);
}

.site-footer .body-sm,
.footer-bottom {
  color: color-mix(in srgb, var(--ink) 68%, var(--parchment));
}

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

.footer-about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  display: inline-block;
  min-block-size: 24px;
  padding-block: 2px;
  font-size: 13px;
  color: color-mix(in srgb, var(--ink) 74%, var(--parchment));
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-suite-links {
  margin-block-start: 6px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--border-hairline);
}

.footer-bottom {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
}

/* Utility classes (CSP style-src 'self' safe) */
.text-ash { color: var(--ash); }
.text-verdant { color: var(--verdant-text); }
.text-crimson { color: var(--crimson-text); }
.text-amber { color: var(--amber-text); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.wrap-anywhere { overflow-wrap: anywhere; word-break: break-all; }

/* 12. Multi-Page Product Architecture: Subpage Hero, Docs, Integrations, Releases & Pilot */
.subpage-hero {
  padding: 52px 0 36px;
}

.subpage-title {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.026em;
  font-weight: 400;
  max-width: 22ch;
}

html[lang="ko"] .subpage-title {
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  word-break: keep-all;
}

.docs-band {
  padding: 20px 0 84px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 24px;
  background: var(--bone);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-toc a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  text-decoration: none;
  line-height: 1.45;
}

.docs-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.docs-main {
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
}

.docs-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.pre-code {
  margin: 0;
  padding: 16px;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.58;
  overflow-x: auto;
  white-space: pre;
}

.copy-btn {
  appearance: none;
  background: var(--linen);
  color: var(--ink);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--stone);
}

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

.spec-box {
  background: var(--bone);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* Downloads / Release Hub */
.releases-band {
  padding: 16px 0 84px;
}

.release-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.release-row {
  background: var(--bone);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 24px;
  align-items: center;
}

.release-meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.release-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Pilot & Self-Serve API Key Provisioning */
.rtl-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.suite-band {
  padding: 56px 0;
  border-top: 1px solid var(--border-soft);
}

.suite-cards-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.suite-card {
  background: var(--bone);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

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

.pilot-band {
  padding: 16px 0 84px;
}

.pilot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.form-window-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
}

.input-control,
.select-control,
.textarea-control {
  width: 100%;
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 9px 11px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.4;
}

.input-control.mono-input {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.textarea-control {
  min-height: 84px;
  resize: vertical;
}

.input-control:focus,
.select-control:focus,
.textarea-control:focus {
  outline: var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--ink);
}

.live-output-box {
  background: var(--bone);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pre-wrap-code {
  margin: 0;
  padding: 10px 12px;
  background: var(--parchment);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.52;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* Responsive Priorities */
@media (max-width: 1200px) {
  .site-nav {
    height: auto;
    padding: 10px 0;
  }
  .nav-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }
}

@media (max-width: 1080px) {
  .hero-top {
    grid-template-columns: 1fr;
  }
  .hero-telemetry-aside {
    justify-self: start;
    max-width: none;
  }
  .ide-shell {
    grid-template-columns: 1fr;
  }
  .ide-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--stone);
  }
  .queue-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ide-center {
    border-right: none;
    border-bottom: 1px solid var(--stone);
  }
  .sarif-workspace {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .sarif-left {
    border-right: none;
    border-bottom: 1px solid var(--stone);
  }
  .standards-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .suite-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-grid,
  .feature-grid.is-reversed,
  .rates-layout,
  .colophon-panel,
  .docs-layout,
  .pilot-grid {
    /* minmax(0, …) lets the single column shrink to the screen; a bare 1fr grows to the widest content. */
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .docs-toc {
    position: static;
  }
  .feature-grid.is-reversed .feature-copy,
  .feature-grid.is-reversed .feature-window {
    order: initial;
  }
  .band-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .nav-right {
    gap: 8px;
  }
  .nav-ntsb-prefix {
    display: none;
  }
  .queue-list {
    grid-template-columns: 1fr;
  }
  .standards-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mockup-stage {
    padding: 8px;
  }
  .macos-dots {
    display: none;
  }
  .macos-titlebar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .macos-title {
    text-align: left;
  }
  .boot-slots {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .band-row,
  .rate-row,
  .spec-grid-two,
  .release-row,
  .form-row-two,
  .suite-cards-grid,
  .suite-kpi-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .release-actions {
    align-items: flex-start;
  }
  .digest-dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .nav-release {
    display: none;
  }
}

/* Placeholder text keeps 4.5:1 on Bone. */
::placeholder {
  color: var(--mist);
  opacity: 1;
}

/* Every pointer size: controls are at least 24 by 24 CSS px (WCAG 2.5.8). Small screens raise this to 44 below. */
.brand,
.nav-links a,
.ghost-link,
.footer-links a,
.footer-bottom a,
.docs-toc a,
.copy-btn {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  min-width: 24px;
  box-sizing: border-box;
}

.footer-bottom a {
  justify-content: center;
}

.docs-toc a {
  display: flex;
  padding-block: 4px;
}

/* Small screens: 44px touch targets, wrapped navigation, readable inputs. */
@media (max-width: 1023px) {
  .nav-links {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .nav-links a,
  .ghost-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .btn,
  .btn-compact,
  .copy-btn,
  .needle-input {
    min-height: 44px;
  }
  .docs-toc a {
    display: block;
    padding-block: 12px;
  }
  .footer-bottom a {
    display: inline-block;
    padding: 14px 6px;
  }
  .heading {
    font-size: 22px;
  }
}

/* Touch devices: 16px inputs so the browser does not zoom on focus. */
@media (max-width: 1023px) and (pointer: coarse) {
  .code-textarea,
  .needle-input,
  .sarif-textarea,
  .input-control,
  .mono-input,
  .select-control,
  .textarea-control {
    font-size: 16px;
  }
}

/* Long identifiers in headings wrap instead of overflowing at 320px. */
h1, h2, h3, .heading-lg, .heading, .heading-sm {
  overflow-wrap: anywhere;
}

/* Downloads: keep running text near 72 characters per line. */
.release-row .body-sm,
.release-meta {
  max-width: 72ch;
}

/* Result and error text for the action buttons sits on its own line right under them. */
.ide-actionbar [role="status"] {
  flex: 1 1 100%;
  order: 3;
  min-height: 1.4em;
  color: var(--driftwood);
}

/* Touch targets and wrapped titles, second pass (re-measured in a browser). */
@media (max-width: 1023px) {
  .brand {
    min-height: 44px;
  }
  .nav-links a,
  .ghost-link {
    min-width: 44px;
    justify-content: center;
    padding-inline: 6px;
  }
  .footer-links {
    gap: 0;
  }
  .footer-links a,
  .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    padding-block: 0;
  }
  .footer-bottom a {
    justify-content: center;
  }
  .docs-toc a {
    min-height: 44px;
    box-sizing: border-box;
  }
  .copy-btn {
    min-width: 44px;
  }
  .input-control,
  .select-control,
  .textarea-control {
    min-height: 44px;
    box-sizing: border-box;
  }
}

@media (max-width: 1023px) and (pointer: coarse) {
  .input-control.mono-input {
    font-size: 16px;
  }
}

@media (max-width: 1200px) {
  .macos-titlebar {
    height: auto;
    min-height: 36px;
    padding-block: 6px;
  }
  .macos-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 680px) {
  .macos-titlebar {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .ide-tabbar span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
  .macos-status {
    white-space: normal;
    text-align: right;
    overflow-wrap: anywhere;
  }
}

/* Large touch screens (tablets in landscape) keep the 44px targets and 16px inputs as well. */
@media (min-width: 1024px) and (pointer: coarse) {
  .brand,
  .btn,
  .btn-compact,
  .copy-btn,
  .needle-input,
  .input-control,
  .select-control,
  .textarea-control {
    min-height: 44px;
  }
  .nav-links a,
  .ghost-link,
  .footer-links a,
  .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }
  .docs-toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .code-textarea,
  .needle-input,
  .sarif-textarea,
  .input-control,
  .input-control.mono-input,
  .mono-input,
  .select-control,
  .textarea-control {
    font-size: 16px;
  }
}

/* The copy button keeps one width while its label changes to the confirmation. */
.copy-btn {
  min-width: 66px;
}

/* Vericull Domain (/domainre/): a file is read in the browser and the engine's report is laid out. */
.dom-band {
  padding: 16px 0 84px;
}

.dom-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dom-main,
.dom-side {
  min-width: 0;
}

.dom-drop {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bone);
}

.dom-drop.is-over {
  border-color: var(--ink);
  background: var(--linen);
}

.dom-drop input:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.dom-drop input:disabled + label {
  cursor: not-allowed;
}

.dom-statusrow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
}

.dom-result h3,
.dom-gap {
  margin-top: 32px;
}

.dom-kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.52;
}

.dom-kv dt {
  color: var(--ash);
}

.dom-kv dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.dom-kv-stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.dom-kv-stack dd {
  margin-bottom: 10px;
}

.dom-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.52;
}

.dom-table th,
.dom-table td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border-hairline);
  text-align: left;
  vertical-align: top;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.dom-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ash);
}

.dom-table td.num {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.dom-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.52;
  color: var(--driftwood);
  overflow-wrap: anywhere;
}

.dom-side {
  padding: 24px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  background: var(--bone);
}

.dom-files {
  margin-top: 4px;
  font-size: 14px;
  color: var(--driftwood);
}

.dom-files summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  color: var(--ink);
}

.dom-files summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.dom-files .dom-list {
  font-family: var(--font-mono);
  font-size: 12px;
}

.dom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .dom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .dom-drop,
  .dom-side {
    padding: 20px;
  }
  .dom-kv {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .dom-kv dd {
    margin-bottom: 10px;
  }
  .dom-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .dom-table tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-hairline);
  }
  .dom-table td {
    display: block;
    padding: 2px 0;
    border-bottom: 0;
    white-space: normal;
  }
  .dom-table td.num {
    white-space: normal;
  }
  .dom-table td::before {
    content: attr(data-label) ": ";
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ash);
  }
}

/* The brand and the right-hand group never give up width: squeezed, their words spilled over the
   neighbouring link. Primary links stay on one line each. With the Domain link the right-hand group
   is wider, so the release badge (the Downloads link says the same) is left out and the links move
   to their own row sooner. */
.brand,
.nav-right {
  flex-shrink: 0;
}

.nav-links a {
  white-space: nowrap;
}

.nav-right.has-domain .nav-release {
  display: none;
}

@media (max-width: 1320px) {
  .site-nav.has-domain {
    height: auto;
    padding: 10px 0;
  }
  .site-nav.has-domain .nav-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .site-nav.has-domain .nav-links {
    order: 3;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

/* Menu panel: every page of the site with what it is, opened from the bar. */
.site-nav {
  position: relative;
  z-index: 20;
}

/* With the panel open, the page behind it steps back: a window-sized veil blurs and fades it.
   (Blurring the page itself was slow to appear on long pages.) The :has() rule covers a reader
   without script; menu.js sets the class for browsers without :has(). */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: none;
  background: rgba(247, 247, 244, 0.62);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  animation: menu-scrim-in 160ms ease;
}

.menu-open .menu-scrim {
  display: block;
}

@supports selector(:has(*)) {
  body:has(.site-menu[open]) .menu-scrim {
    display: block;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menu-scrim {
    background: rgba(247, 247, 244, 0.86);
  }
}

@keyframes menu-scrim-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-scrim {
    animation: none;
  }
}

.site-menu > summary {
  list-style: none;
  cursor: pointer;
}

.site-menu > summary::-webkit-details-marker {
  display: none;
}

.site-menu-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.site-menu[open] > .site-menu-toggle,
.site-menu-toggle:hover {
  background: var(--linen);
}

.site-menu-toggle:focus-visible,
.site-menu-list a:focus-visible,
.dom-tabs a:focus-visible,
.case-card a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.site-menu-panel {
  scrollbar-width: thin;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 100px);   /* the bar is up to 90px tall when its links take a second row */
  overflow-y: auto;
  background: var(--parchment);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 28px 48px rgba(38, 37, 30, 0.14);
  white-space: normal;
}

.site-menu-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 36px;
}

.site-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px 32px;
}

.site-menu-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.site-menu-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ash);
}

.site-menu-title .site-menu-kicker {
  display: block;
  margin-bottom: 4px;
}

.site-menu-list {
  display: grid;
  gap: 2px;
  margin: 10px 0 0 -10px;
  padding: 0;
  list-style: none;
}

.site-menu-list a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.site-menu-list a:hover,
.site-menu-list a[aria-current="page"] {
  background: var(--linen);
}

.site-menu-list strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.site-menu-list span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--driftwood);
}

.site-menu-side {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-left: 24px;
  border-left: 1px solid var(--border-hairline);
}

.site-menu-side .site-menu-kicker {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .site-menu-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-menu-side {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border-hairline);
  }
}

/* Below desktop width the bar is several rows tall, so the panel is not held to the window's
   height: it runs on down the page and the page scrolls. */
@media (max-width: 1023px) {
  .site-menu-panel {
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 680px) {
  .nav-right .nav-cta {
    display: none;
  }
}

/* Security by business: one card per business. */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  align-items: start;
}

.case-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  background: var(--bone);
}

.case-card .heading a {
  color: var(--ink);
}

.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.case-chip,
.case-field,
.case-state {
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ash);
}

.case-field {
  border-color: var(--ink);
  color: var(--ink);
}

.case-state {
  margin-left: auto;
}

.case-state-published {
  border-color: var(--verdant-text);
  color: var(--verdant-text);
}

.case-state-suite {
  border-color: var(--amber-text);
  color: var(--amber-text);
}

.case-facts {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.52;
}

.case-facts dt {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
}

.case-facts dd {
  margin: 0;
  color: var(--ink);
}

.case-facts .dom-list {
  margin-top: 4px;
  color: var(--ink);
}

/* Vericull Domain: tabs between its pages, and the reading width of the explanatory ones. */
.dom-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.dom-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.dom-tabs a:hover,
.dom-tabs a[aria-current="page"] {
  background: var(--linen);
}

.dom-tabs + .serif-lead {
  margin-top: 20px;
}

.dom-doc {
  max-width: 920px;
}

.dom-doc .dom-list {
  color: var(--ink);
}

/* Glass pill bar (.site-nav--glass, switched by NAV_GLASS in tools/render_pages.py). The bar stays
   at the top while the page scrolls. It is one row at every width: below 1321px the five links
   leave the bar, because the Menu panel lists every page. Everything here is scoped to the class,
   so the plain bar comes back when the class is not rendered. */
html:has(.site-nav--glass) {
  scroll-padding-top: 88px;
}

.site-nav.site-nav--glass {
  position: sticky;
  top: 10px;
  z-index: 30;
  height: auto;
  margin-top: 10px;
  padding: 0;
}

.site-nav.site-nav--glass .nav-inner {
  width: calc(100% - 24px);
  max-width: 1276px;
  height: auto;
  min-height: 56px;
  padding: 6px 8px 6px 20px;
  flex-wrap: nowrap;
  row-gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(247, 247, 244, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  /* One edge leads (the hairline and its inner highlight); the shadow only lifts it off the page. */
  box-shadow: 0 6px 20px rgba(38, 37, 30, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-nav.site-nav--glass .nav-inner {
    background: rgba(247, 247, 244, 0.97);
  }
}

.site-nav.site-nav--glass .nav-links {
  order: 0;
  width: auto;
  flex-wrap: nowrap;
  overflow: visible;
  padding-bottom: 0;
}

/* Controls in the bar share one height and the bar's own curve, so nested corners stay concentric. */
.site-nav.site-nav--glass .site-menu-toggle,
.site-nav.site-nav--glass .nav-right .btn {
  min-height: 38px;
  border-radius: 999px;
}

.site-nav.site-nav--glass .site-menu-toggle {
  background: rgba(255, 255, 255, 0.5);
}

.site-nav.site-nav--glass .site-menu[open] > .site-menu-toggle,
.site-nav.site-nav--glass .site-menu-toggle:hover {
  background: var(--linen);
}

.site-nav.site-nav--glass .site-menu-panel {
  top: calc(100% + 10px);
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: rgba(247, 247, 244, 0.97);
}

@media (max-width: 1320px) {
  .site-nav.site-nav--glass .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-nav.site-nav--glass .nav-inner {
    padding-left: 14px;
  }
  .site-nav.site-nav--glass .site-menu-panel {
    border-radius: 18px;
  }
}

@media (max-width: 359px) {
  .site-nav.site-nav--glass .nav-ntsb {
    display: none;
  }
}

.site-nav.site-nav--glass .lang-toggle,
.site-nav.site-nav--glass .lang-toggle a {
  border-radius: 999px;
}
/* end glass pill bar */

/* Language switch inside the Menu panel: both languages shown, the current one filled in. */
.lang-toggle {
  display: inline-flex;
  justify-self: start;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bone);
}

.lang-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ash);
  text-decoration: none;
}

.lang-toggle a:hover {
  color: var(--ink);
}

.lang-toggle a[aria-current="true"] {
  background: var(--ink);
  color: var(--parchment);
}

.lang-toggle a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* NTSB and DOMAIN in the bar: the two sister products, set in the mono face so they read apart
   from the page links beside them. */
.nav-right .nav-product {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
}

/* On the narrowest phones the two product links leave the bar; the Menu panel lists them. */
@media (max-width: 349px) {
  .nav-right .nav-ntsb {
    display: none;
  }
}

/* === RISCON ARTIFACT VIEWER START === */
html.rav-scroll-lock {
  overflow: hidden;
}

.rav-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rav-dialog {
  position: fixed;
  inset: 0;
  margin: clamp(3rem, 6vh, 5rem) auto auto;
  width: calc(100% - 3rem);
  max-width: 1120px;
  height: min(84dvh, 860px);
  max-height: calc(100dvh - 6rem);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--parchment);
  color: var(--ink);
  box-shadow: var(--shadow-window);
  font-family: var(--font-sans);
  
}

.rav-dialog::backdrop {
  background: rgba(38, 37, 30, 0.32);
  
}

@media (forced-colors: active) {
  .rav-dialog {
    border: 1px solid CanvasText;
  }
}

.rav-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.rav-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bone);
  color: var(--ink);
  border-bottom: 1px solid var(--border-hairline);
}

.rav-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.rav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex: none;
}

.rav-title-copy {
  min-width: 0;
}

.rav-title-copy h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  word-break: break-all;
}

.rav-path {
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--driftwood);
  max-width: none;
  word-break: break-all;
}

.rav-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.rav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.rav-btn:visited {
  color: var(--ink);
}

@media (hover: hover) {
  .rav-btn:hover {
    background: var(--linen);
    border-color: var(--ink);
    color: var(--ink);
    text-decoration: none;
  }
}

.rav-btn[data-done] {
  color: var(--verdant-text);
  border-color: var(--verdant-text);
}

.rav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex: none;
}

.rav-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

@media (hover: hover) {
  .rav-close:hover {
    background: var(--linen);
  }
}

.rav-subbar {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--bone);
  border-bottom: 1px solid var(--border-hairline);
}

.rav-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--driftwood);
  max-width: none;
  overflow-wrap: anywhere;
}

.rav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  background: var(--parchment);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.3;
}

.rav-chip-k {
  color: var(--driftwood);
}

.rav-chip-v {
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.rav-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.rav-search {
  flex: 1 1 220px;
  min-height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.rav-matches {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--driftwood);
}

.rav-mode {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

@media (hover: hover) {
  .rav-mode:hover {
    background: var(--linen);
  }
}

.rav-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--parchment);
  padding: 1rem 1.25rem 1.5rem;
}

.rav-pre {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow: visible;
  white-space: pre;
}

.rav-pre code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: transparent;
  padding: 0;
  border: 0;
}

.rav-line {
  display: flex;
  gap: 1rem;
}

.rav-ln {
  flex: 0 0 44px;
  text-align: right;
  color: var(--driftwood);
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.rav-code {
  flex: 1 1 auto;
  min-width: 0;
}

.rav-tok-key {
  color: var(--ink);
}

.rav-tok-str {
  color: var(--verdant-text);
}

.rav-tok-num {
  color: var(--ember-text);
}

.rav-tok-lit {
  color: var(--amber-text);
}

.rav-mark {
  background: var(--linen);
  color: var(--ink);
  border-radius: 2px;
  padding: 0 0.25rem;
}

.rav-table-wrap {
  overflow-x: auto;
}

.rav-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.rav-table th,
.rav-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-hairline);
  text-align: left;
  white-space: nowrap;
  background: transparent;
}

.rav-table th {
  color: var(--driftwood);
  font-weight: 500;
}

.rav-cell-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.rav-empty {
  margin: 1.25rem 0;
  color: var(--driftwood);
  font-size: 0.875rem;
}

.rav-more-wrap {
  margin-top: 1rem;
}

.rav-more-wrap .rav-btn {
  color: var(--ink);
  border-color: var(--border-strong);
}

.rav-more-wrap .rav-btn:hover {
  background: var(--linen);
}




@media (max-width: 760px) {
  .rav-dialog {
    width: calc(100% - 1.5rem);
    margin-top: 1.5rem;
    height: calc(100dvh - 3rem);
    max-height: none;
  }
  .rav-head,
  .rav-subbar,
  .rav-scroll {
    padding-inline: 1rem;
  }
  .rav-ln {
    flex-basis: 32px;
  }
}

@media print {
  .rav-dialog {
    display: none;
  }
}
/* === RISCON ARTIFACT VIEWER END === */
