/* =========================================================
   FORGE Report Site — Shared Stylesheet
   Design: Dark-only, Inter + JetBrains Mono, max 1200px
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* =========================================================
   CSS Custom Properties
   ========================================================= */
:root {
  /* Core palette */
  --color-bg:           #0D0D0D;
  --color-bg-card:      #161616;
  --color-bg-code:      #1A1A2E;
  --color-bg-elevated:  #1C1C1C;
  --color-text:         #F5F0EB;
  --color-text-secondary: #94A3B8;
  --color-text-muted:   #64748B;
  --color-accent:       #E8631A;
  --color-accent-end:   #F59E0B;
  --color-success:      #10B981;
  --color-danger:       #EF4444;
  --color-warning:      #F59E0B;
  --color-border:       #2A2A2A;
  --color-border-light: #333333;
  --color-link:         #F59E0B;
  --color-link-hover:   #E8631A;

  /* Gradients */
  --gradient-accent:    linear-gradient(135deg, #E8631A, #F59E0B);
  --gradient-accent-subtle: linear-gradient(135deg, rgba(232, 99, 26, 0.12), rgba(245, 158, 11, 0.12));
  --gradient-glow:      linear-gradient(135deg, rgba(232, 99, 26, 0.08), rgba(245, 158, 11, 0.04));

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(232, 99, 26, 0.15);

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Fira Mono', monospace;

  /* Layout */
  --max-width:   1200px;
  --content-width: 860px;
  --nav-height:  64px;
}

/* =========================================================
   Reset & Base
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(232, 99, 26, 0.3);
  color: #fff;
}

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
}

h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-bg-code);
  color: #E2D9F3;
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--color-bg-code);
  color: #E2D9F3;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  line-height: 1.65;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  padding-left: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
  color: var(--color-text-secondary);
}

li strong {
  color: var(--color-text);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* =========================================================
   Layout
   ========================================================= */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--content-width);
}

.content-area {
  flex: 1;
  padding: 3.5rem 0 5rem;
}

/* =========================================================
   Navigation
   ========================================================= */
.site-nav {
  background-color: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.625rem;
}

.nav-logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--color-text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-text .forge-f {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(232, 99, 26, 0.1);
  border: 1px solid rgba(232, 99, 26, 0.25);
  padding: 0.15em 0.55em;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
  background: linear-gradient(180deg, var(--color-bg) 0%, #111111 100%);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 99, 26, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-text);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 700px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0;
  line-height: 1.7;
}

.hero-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* =========================================================
   Cards
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  display: block;
  color: inherit;
  position: relative;
}

.card:hover {
  border-color: rgba(232, 99, 26, 0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  text-decoration: none;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-accent-subtle);
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 99, 26, 0.15);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.card-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================
   Panels / Callouts
   ========================================================= */
.panel {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 3px solid;
}

.panel-info {
  background: rgba(232, 99, 26, 0.06);
  border-left-color: var(--color-accent);
}

.panel-note {
  background: rgba(148, 163, 184, 0.06);
  border-left-color: var(--color-border-light);
}

.panel-warning {
  background: rgba(245, 158, 11, 0.06);
  border-left-color: var(--color-warning);
}

.panel-success {
  background: rgba(16, 185, 129, 0.06);
  border-left-color: var(--color-success);
}

.panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.panel-info .panel-title { color: var(--color-accent); }
.panel-note .panel-title { color: var(--color-text-muted); }
.panel-warning .panel-title { color: var(--color-warning); }
.panel-success .panel-title { color: var(--color-success); }

.panel p {
  margin: 0;
  font-size: 0.9rem;
}

.panel p + p {
  margin-top: 0.5rem;
}

/* =========================================================
   Field Table
   ========================================================= */
.field-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.field-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--color-border);
}

.field-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text-secondary);
}

.field-table tr:last-child td {
  border-bottom: none;
}

.field-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.field-table .field-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text);
  white-space: nowrap;
  font-weight: 500;
}

.field-table .field-type {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* =========================================================
   Section Divider
   ========================================================= */
.section-divider {
  height: 1px;
  background: var(--color-border);
  margin: 3rem 0;
}

/* =========================================================
   Table of Contents
   ========================================================= */
.toc {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.35rem;
}

.toc a {
  font-size: 0.875rem;
  color: var(--color-link);
  font-weight: 500;
}

.toc a:hover {
  color: var(--color-link-hover);
}

/* =========================================================
   Opt-out Box
   ========================================================= */
.optout-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.optout-box h3 {
  color: var(--color-text);
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.optout-box h3:not(:first-child) {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.optout-box p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.optout-box pre {
  background: var(--color-bg-code);
  border: 1px solid var(--color-border);
  margin: 0.75rem 0;
}

.optout-box code {
  color: #F59E0B;
}

/* =========================================================
   Page Header (inner pages)
   ========================================================= */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  display: block;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.page-header .meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* =========================================================
   Not-collected List
   ========================================================= */
.not-collected-list {
  list-style: none;
  padding: 0;
}

.not-collected-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.not-collected-list li:last-child {
  border-bottom: none;
}

.not-collected-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--color-danger);
  font-weight: 700;
  font-size: 0.75rem;
  top: 0.6rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
}

/* =========================================================
   Data Flow Diagram
   ========================================================= */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 2rem 0;
  overflow-x: auto;
  padding: 2rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 120px;
}

.flow-node-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  transition: border-color 0.3s;
}

.flow-node:first-child .flow-node-icon {
  border-color: var(--color-accent);
}

.flow-node:last-child .flow-node-icon {
  border-color: var(--color-success);
}

.flow-node-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  line-height: 1.3;
}

.flow-node-sub {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 130px;
}

.flow-arrow {
  flex-shrink: 0;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
}

.flow-arrow-line {
  width: 32px;
  height: 2px;
  background: var(--gradient-accent);
  position: relative;
}

.flow-arrow-line::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  border-left: 6px solid var(--color-accent-end);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* =========================================================
   Stats Row
   ========================================================= */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-value.accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   Status Banner
   ========================================================= */
.status-banner {
  background: linear-gradient(180deg, var(--color-bg) 0%, #111111 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.status-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 99, 26, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.status-banner .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-success);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1); }
}

.status-banner h1 {
  color: var(--color-text);
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
}

.status-banner p {
  color: var(--color-text-secondary);
  max-width: 600px;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.7;
}

/* =========================================================
   Enhanced Flow Diagram
   ========================================================= */
.flow-diagram-enhanced {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  overflow-x: auto;
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 650px;
}

.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.flow-step-number {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.flow-step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.flow-step:first-child .flow-step-icon {
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(232, 99, 26, 0.15);
}

.flow-step:last-child .flow-step-icon {
  border-color: var(--color-success);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.flow-step-content {
  text-align: center;
}

.flow-step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.flow-step-detail {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  max-width: 140px;
  margin: 0 auto;
}

.flow-connector {
  display: flex;
  align-items: center;
  padding-top: 1.75rem;
  flex-shrink: 0;
  width: 48px;
}

.flow-connector-line {
  height: 2px;
  background: var(--gradient-accent);
  flex: 1;
  position: relative;
  opacity: 0.5;
}

.flow-connector-arrow {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.9rem;
  margin-left: -2px;
}

/* =========================================================
   Example Report Block
   ========================================================= */
.example-report {
  background: var(--color-bg-code);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
}

.example-report-header {
  background: rgba(232, 99, 26, 0.06);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.example-report-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.example-report-badge {
  font-size: 0.6rem;
  font-weight: 600;
  background: rgba(232, 99, 26, 0.1);
  border: 1px solid rgba(232, 99, 26, 0.25);
  color: var(--color-accent);
  padding: 0.15em 0.55em;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.example-report pre {
  margin: 0;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 0.8rem;
  line-height: 1.7;
  border-radius: 0;
}

.example-report pre .key { color: #93C5FD; }
.example-report pre .string { color: #86EFAC; }
.example-report pre .number { color: #F59E0B; }
.example-report pre .bool { color: #FB923C; }
.example-report pre .comment { color: #64748B; font-style: italic; }

/* =========================================================
   Code Block (for FailureRecord schema)
   ========================================================= */
.code-block {
  background: var(--color-bg-code);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}

.code-block-header {
  background: rgba(148, 163, 184, 0.06);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-block-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.5;
}

.code-block-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.code-block pre {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 0.82rem;
}

.code-block .field { color: #93C5FD; }
.code-block .type { color: #94A3B8; }
.code-block .comment { color: #525B6B; font-style: italic; }
.code-block .string { color: #86EFAC; }
.code-block .kw { color: #C084FC; }

/* =========================================================
   Timeline
   ========================================================= */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  color: var(--color-text-muted);
}

.timeline-dot.done {
  background: var(--color-bg-card);
  border-color: var(--color-success);
  color: var(--color-success);
}

.timeline-dot.pending {
  background: var(--color-bg-card);
  border-style: dashed;
  border-color: var(--color-text-muted);
}

.timeline-content {
  padding-top: 0.5rem;
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--color-text);
}

.timeline-content p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--color-text-secondary);
}

/* =========================================================
   Badges
   ========================================================= */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15em 0.6em;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-accent {
  background: rgba(232, 99, 26, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(232, 99, 26, 0.25);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-muted {
  background: rgba(148, 163, 184, 0.08);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* =========================================================
   Collected-check List (for "what IS collected")
   ========================================================= */
.collected-list {
  list-style: none;
  padding: 0;
}

.collected-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.collected-list li:last-child {
  border-bottom: none;
}

.collected-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
  font-size: 0.75rem;
  top: 0.6rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
}

/* =========================================================
   Utility Classes
   ========================================================= */
.text-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }

.gradient-line {
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  margin: 2rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  font-size: 0.8rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .forge-f {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.8rem;
}

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

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.footer-attribution a {
  color: var(--color-text-muted);
  font-size: 0.7rem;
  transition: color 0.2s;
}

.footer-attribution a:hover {
  color: var(--color-text-secondary);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-inner {
    padding: 0 1.25rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }

  .hero { padding: 3.5rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }

  .content-area { padding: 2.5rem 0 3.5rem; }

  .card-grid { grid-template-columns: 1fr; }

  .flow-diagram { flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
  .flow-arrow { transform: rotate(90deg); }

  .stat-row { grid-template-columns: repeat(2, 1fr); }

  .status-banner { padding: 3rem 0 2rem; }
  .status-banner h1 { font-size: 1.75rem; }

  .flow-steps { min-width: 500px; }
}

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

  .nav-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem;
    gap: 0.25rem;
  }

  .stat-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-value { font-size: 1.5rem; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .field-table { font-size: 0.8rem; }
  .field-table th, .field-table td { padding: 0.5rem 0.6rem; }
}
