@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../old-jobs/fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  --bg: #f6f4ee;
  --surface: #fdfcf9;
  --surface-alt: #efece3;
  --ink: #151821;
  --ink-soft: #4b5263;
  --ink-muted: #6c7385;
  --line: #dad5c8;
  --line-strong: #151821;
  --code-bg: #171a22;
  --code-bg-bar: #202430;
  --code-ink: #ebeff7;
  --code-muted: #939db4;
  --accent: #c23b22;
  --accent-navy: #193b68;

  /* Paradigm signature tokens */
  --c-lamdera: #1b6e53;
  --c-electric: #b56812;
  --c-phoenix: #c23b22;
  --c-prolog: #3b4699;
  --c-postgrest: #1a5d8a;
  --c-gleam: #8b2c68;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius: 8px;
  --radius-sm: 4px;
  --shadow-soft: 0 1px 2px rgba(21, 24, 33, 0.05), 0 8px 24px rgba(21, 24, 33, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(21, 24, 33, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font: 1.03rem/1.68 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-navy);
  color: #fff;
}

a {
  color: var(--accent-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

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

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-alt);
  padding: 0.12em 0.36em;
  border-radius: 4px;
  border: 1px solid rgba(21, 24, 33, 0.08);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.84rem;
}

/* Layout container */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Masthead */
.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding: 1.35rem 0 1rem;
  border-bottom: 1.5px solid var(--ink);
}

.masthead .brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.masthead .brand .dot-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9rem;
}

.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0;
}

.masthead nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Sticky section subnav */
.toc-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.65rem 0;
  background: rgba(246, 244, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.45rem;
  scrollbar-width: none;
}

.toc-bar::-webkit-scrollbar {
  display: none;
}

.toc-bar a {
  white-space: nowrap;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.toc-bar a:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.toc-bar a.active {
  background: var(--ink);
  color: #fff;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.75rem;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  max-width: 19ch;
}

.hero .lead {
  margin: 1.4rem 0 0;
  max-width: 64ch;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.2vw, 1.42rem);
  line-height: 1.48;
  color: var(--ink-soft);
}

.hero-meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-meta span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
}

.hero-ledger {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ledger-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-soft);
}

.ledger-card.winner {
  border-top-color: var(--c-phoenix);
}

.ledger-num {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.ledger-card.winner .ledger-num {
  color: var(--c-phoenix);
}

.ledger-label {
  margin-top: 0.3rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

@media (max-width: 820px) {
  .hero-ledger {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-ledger {
    grid-template-columns: 1fr;
  }
}

/* Section bands */
section.band {
  margin-top: 4.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.section-kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

section.band > h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

section.band > .sub {
  margin: 0.75rem 0 0;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Didactic callout box */
.didactic-box {
  margin: 1.75rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-navy);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-soft);
}

.didactic-box.warm {
  border-left-color: var(--accent);
}

.didactic-box .box-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-navy);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.didactic-box.warm .box-title {
  color: var(--accent);
}

.didactic-box p:last-child {
  margin-bottom: 0;
}

/* Architecture Seam Diagram */
.diagram-frame {
  margin: 1.75rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.diagram-caption {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

/* Six-seam selector strip */
.seam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .seam-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .seam-grid {
    grid-template-columns: 1fr;
  }
}

.seam-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--p-color, var(--ink));
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.seam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 24, 33, 0.08);
  color: var(--ink);
}

.seam-card .seam-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--p-color, var(--ink));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.seam-card h3 {
  font-size: 1.22rem;
  margin-top: 0.2rem;
}

.seam-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
  line-height: 1.45;
}

/* Challenge pills */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.challenge-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
}

.challenge-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  padding: 0.15rem 0.48rem;
  border-radius: 3px;
  margin-bottom: 0.45rem;
}

.challenge-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.3rem;
}

.challenge-card p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}

.challenge-card .why {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--line);
  font-size: 0.81rem;
  color: var(--ink-muted);
}

/* Interactive Chart Controls */
.panel {
  margin-top: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.panel-header h3 {
  font-size: 1.35rem;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  background: var(--surface-alt);
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.segmented button {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font: 600 0.82rem var(--sans);
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* Bar chart */
.bar-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 185px 1fr 120px;
  align-items: center;
  gap: 0.9rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.bar-row:hover {
  background: var(--surface-alt);
}

@media (max-width: 680px) {
  .bar-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

.bar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}

.bar-track {
  height: 26px;
  background: var(--surface-alt);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  position: relative;
  border: 1px solid rgba(21, 24, 33, 0.06);
}

.bar-seg-base {
  height: 100%;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.95;
}

.bar-seg-evo {
  height: 100%;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.52;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2) 5px,
    transparent 5px,
    transparent 10px
  );
}

.bar-value {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  color: var(--ink);
}

@media (max-width: 680px) {
  .bar-value {
    text-align: left;
  }
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-swatch-solid {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: var(--ink);
}

.legend-swatch-stripe {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(21, 24, 33, 0.55),
    rgba(21, 24, 33, 0.55) 3px,
    rgba(21, 24, 33, 0.22) 3px,
    rgba(21, 24, 33, 0.22) 6px
  );
}

/* Evolution Heatmap Matrix */
.heatmap-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

table.heatmap {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  min-width: 680px;
}

table.heatmap th {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0.45rem 0.4rem;
  text-align: center;
}

table.heatmap th.row-head {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink);
  min-width: 155px;
  padding-right: 0.75rem;
}

table.heatmap td {
  padding: 0;
}

.heat-cell {
  width: 100%;
  border: 1px solid rgba(21, 24, 33, 0.12);
  border-radius: 5px;
  padding: 0.5rem 0.35rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  font-family: var(--mono);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.heat-cell:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  box-shadow: 0 3px 10px rgba(21, 24, 33, 0.1);
}

.heat-cell[aria-selected="true"] {
  outline: 2.5px solid var(--ink);
  outline-offset: 1px;
}

.heat-cell .mins {
  font-size: 0.84rem;
  font-weight: 700;
}

.heat-cell .loops {
  font-size: 0.7rem;
  opacity: 0.82;
}

.heat-fast { background: #e2f2ea; color: #114b36; }
.heat-mid  { background: #f8eed4; color: #6e4406; }
.heat-slow { background: #f6dcd4; color: #7a1f10; }

.inspector-drawer {
  margin-top: 1.15rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.25rem;
}

.inspector-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.45rem;
}

.inspector-header h4 {
  font-size: 1.18rem;
}

.inspector-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Paradigm Walkthrough Dossiers */
.paradigm-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.paradigm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}

.paradigm-pill:hover {
  border-color: var(--ink);
  background: var(--surface-alt);
  color: var(--ink);
}

.dossier {
  margin-bottom: 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--p-color, var(--ink));
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 4.25rem;
}

@media (max-width: 640px) {
  .dossier {
    padding: 1.25rem 1.1rem;
  }
}

.dossier-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.dossier-tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--p-color, var(--ink));
}

.dossier-head h3 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-top: 0.2rem;
  line-height: 1.15;
}

.dossier-tagline {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink-soft);
  font-style: italic;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stat-chip {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  min-width: 96px;
}

.stat-chip .k {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.stat-chip .v {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.1rem;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.65rem;
  margin-top: 1.35rem;
  align-items: start;
}

.dossier-grid > *,
.compare-cols > *,
.laws-grid > *,
.seam-grid > *,
.challenge-grid > * {
  min-width: 0;
}

.diagram-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 880px) {
  .dossier-grid {
    grid-template-columns: 1fr;
  }
}

.dossier-prose h4 {
  font-size: 1.15rem;
  margin: 1.15rem 0 0.4rem;
  color: var(--ink);
}

.dossier-prose h4:first-child {
  margin-top: 0;
}

.dossier-prose ul {
  margin: 0.4rem 0 0.9rem;
  padding-left: 1.2rem;
}

.dossier-prose li {
  margin-bottom: 0.42rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.dossier-prose li strong {
  color: var(--ink);
}

/* Flow diagram SVG container inside dossier */
.mini-arch {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  margin: 0.85rem 0 1rem;
}

.mini-arch svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Dark etched code plate */
.code-plate {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #2b3040;
  box-shadow: 0 8px 20px rgba(21, 24, 33, 0.14);
}

.code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.95rem;
  background: var(--code-bg-bar);
  border-bottom: 1px solid #2e3446;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--code-muted);
}

.code-bar .file-tag {
  color: #dce3f5;
  font-weight: 600;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e6ebf5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 0.22rem 0.55rem;
  font: 600 0.72rem var(--mono);
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.code-plate pre {
  margin: 0;
  padding: 1rem 1.05rem;
  overflow-x: auto;
  line-height: 1.54;
  font-family: var(--mono);
  font-size: 0.81rem;
  tab-size: 2;
}

.code-note {
  padding: 0.75rem 1.05rem;
  background: #1d212c;
  border-top: 1px solid #2c3142;
  font-size: 0.84rem;
  color: #c5cde0;
  line-height: 1.48;
}

.code-note strong {
  color: #fff;
}

.code-note code {
  background: rgba(255, 255, 255, 0.12);
  color: #f3f6ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Token highlight classes */
.tok-kw  { color: #ff9c8a; font-weight: 600; }
.tok-ty  { color: #8ad2ff; }
.tok-fn  { color: #c7a9ff; }
.tok-str { color: #9fe2a8; }
.tok-cm  { color: #8793ad; font-style: italic; }
.tok-num { color: #ffd485; }

/* Takeaway footer strip inside dossier */
.steal-bar {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--p-color, var(--ink));
  font-size: 0.91rem;
}

.steal-bar strong {
  color: var(--ink);
}

/* Live App Screenshot Frame inside Dossier */
.app-shot {
  margin: 1.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(21, 24, 33, 0.08);
}

.app-shot-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.shot-dots {
  display: inline-flex;
  gap: 5px;
  flex-shrink: 0;
}

.shot-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cfc9bc;
  display: block;
}

.shot-url {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.14rem 0.55rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-zoom-hint {
  margin-left: auto;
  font-weight: 600;
  color: var(--accent-navy);
  white-space: nowrap;
}

.shot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: #fff;
  cursor: zoom-in;
  position: relative;
}

.shot-trigger img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.22s ease;
}

.shot-trigger:hover img {
  transform: scale(1.008);
}

.app-shot figcaption {
  padding: 0.65rem 0.95rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Lightbox Dialog */
dialog.shot-lightbox {
  max-width: min(94vw, 1320px);
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #14171f;
  color: #edf1f8;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

dialog.shot-lightbox::backdrop {
  background: rgba(12, 14, 20, 0.8);
  backdrop-filter: blur(4px);
}

.lightbox-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  background: #1c202c;
  border-bottom: 1px solid #2d3345;
}

.lightbox-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
}

.lightbox-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
  font: 600 0.8rem var(--mono);
  cursor: pointer;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-body {
  padding: 0.75rem;
  background: #0e1017;
  max-height: 78vh;
  overflow: auto;
}

.lightbox-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.lightbox-caption {
  padding: 0.75rem 1.1rem;
  background: #1c202c;
  border-top: 1px solid #2d3345;
  font-size: 0.88rem;
  color: #c5cde0;
}

/* Side-by-side Comparator */
.compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.compare-select-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.compare-select-group select {
  font: 600 0.86rem var(--sans);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .compare-cols {
    grid-template-columns: 1fr;
  }
}

.compare-pane {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--p-color, var(--ink));
  border-radius: var(--radius-sm);
  padding: 1.05rem;
}

.compare-pane-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.compare-pane-head h4 {
  font-size: 1.15rem;
}

.compare-pane-head .metric-pill {
  font-family: var(--mono);
  font-size: 0.76rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  color: var(--ink-soft);
}

.compare-pane p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

/* Mainstream comparison table */
.table-scroll {
  overflow-x: auto;
  margin-top: 1.35rem;
}

table.editorial-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

table.editorial-table th,
table.editorial-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

table.editorial-table thead th {
  background: var(--surface-alt);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--ink);
}

table.editorial-table tr.highlight-row td {
  background: rgba(194, 59, 34, 0.055);
}

/* Four Laws grid */
.laws-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-top: 1.5rem;
}

@media (max-width: 720px) {
  .laws-grid {
    grid-template-columns: 1fr;
  }
}

.law-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-soft);
}

.law-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.law-card h3 {
  font-size: 1.28rem;
  margin: 0.25rem 0 0.5rem;
}

.law-card p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Methodology / Honesty box */
.caveats {
  margin-top: 2rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.45rem;
}

.caveats h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.caveats ul {
  margin: 0;
  padding-left: 1.2rem;
}

.caveats li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

/* Footer */
footer.site-footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
