:root {
  color-scheme: light;
  --ink: #142130;
  --muted: #68717c;
  --paper: #fbfaf6;
  --paper-warm: #f7f3ea;
  --canvas: #e9e6df;
  --line: #c9c5bc;
  --line-strong: #8f938f;
  --accent: #a4472d;
  --accent-soft: #efe0d9;
  --navy: #183a55;
  --navy-soft: #dce5ea;
  --success: #2f6d53;
  --warning: #9a6425;
  --queued: #848b91;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 1280px;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.38)),
    repeating-linear-gradient(90deg, rgba(20, 33, 48, 0.018) 0 1px, transparent 1px 6px),
    var(--canvas);
  font-family: var(--sans);
  font-size: 15px;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr);
  width: 100%;
  height: 100vh;
}

.topbar {
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) auto minmax(220px, 0.62fr);
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  color: #f8f6f0;
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
}

.brand-block {
  display: flex;
  align-items: baseline;
  gap: 17px;
  min-width: 0;
}

.brand-block h1,
.brand-block p {
  margin: 0;
}

.brand-block h1 {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.045em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eyebrow,
.section-kicker,
.column-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: #c9d0d5;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-self: stretch;
}

.nav-button {
  position: relative;
  min-width: 94px;
  padding: 0 18px;
  color: #cbd2d7;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-button::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  background: #e1a086;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
  content: "";
}

.nav-button:hover,
.nav-button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.nav-button.is-active {
  color: #fff;
}

.nav-button.is-active::after {
  transform: scaleX(1);
}

.release-block {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  color: #d7dce0;
  font-family: var(--mono);
  font-size: 11px;
}

.release-block span:last-child::before {
  margin-right: 9px;
  color: #6f7c85;
  content: "/";
}

.release-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72b295;
  box-shadow: 0 0 0 4px rgba(114, 178, 149, 0.13);
}

.view-stack {
  position: relative;
  min-height: 0;
}

.app-view {
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(5px);
}

.app-view.is-active {
  display: block;
  animation: view-enter 220ms ease forwards;
}

@keyframes view-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overview-scroll,
.audit-scroll {
  height: 100%;
  overflow-y: auto;
  scrollbar-color: #aaa79f transparent;
  scrollbar-width: thin;
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(720px, 1.4fr) minmax(390px, 0.6fr);
  min-height: 390px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}

.hero-copy {
  display: grid;
  align-content: center;
  padding: 52px clamp(60px, 6vw, 112px) 52px 7vw;
  border-right: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 13px;
  color: var(--accent);
}

.hero-copy h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 3.45vw, 62px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
}

.hero-summary {
  max-width: 780px;
  margin: 25px 0 0;
  color: #4f5a64;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}

.primary-action,
.text-action {
  border: 0;
  cursor: pointer;
}

.primary-action {
  min-height: 42px;
  padding: 0 20px;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  transition: background-color 160ms ease, transform 160ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #24516f;
  outline: 2px solid #5a7890;
  outline-offset: 2px;
}

.primary-action:active {
  transform: translateY(1px);
}

.text-action {
  padding: 8px 0;
  color: var(--navy);
  font-weight: 700;
  background: transparent;
  border-bottom: 1px solid currentColor;
}

.text-action:hover,
.text-action:focus-visible {
  color: var(--accent);
  outline: none;
}

.stage-mark {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: center;
  padding: 46px 58px;
  overflow: hidden;
  background: #e7e3da;
}

.stage-mark::after {
  position: absolute;
  right: -40px;
  bottom: -58px;
  color: rgba(20, 33, 48, 0.035);
  font-family: var(--serif);
  font-size: 245px;
  font-weight: 800;
  line-height: 1;
  content: "04";
}

.stage-mark-number {
  z-index: 1;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 110px;
  font-weight: 700;
  line-height: 0.86;
}

.stage-mark-line {
  z-index: 1;
  width: 100%;
  height: 1px;
  margin: 28px 0 24px;
  background: var(--ink);
}

.stage-mark div {
  z-index: 1;
}

.stage-mark p,
.stage-mark strong {
  margin: 0;
}

.stage-mark p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.stage-mark strong {
  font-family: var(--serif);
  font-size: 24px;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--ink);
  color: #f8f6f0;
}

.metric-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 18px 34px;
  border-right: 1px solid #44505a;
}

.metric-item:last-child {
  border-right: 0;
}

.metric-value {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
}

.metric-copy strong,
.metric-copy span {
  display: block;
}

.metric-copy strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.metric-copy span {
  color: #aeb8bf;
  font-size: 11px;
}

.phase-section,
.audit-workspace {
  padding: 56px 6vw 62px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(360px, 0.7fr);
  align-items: end;
  gap: 50px;
  margin-bottom: 34px;
}

.section-heading h2,
.section-heading p {
  margin-top: 0;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 31px;
}

.section-heading > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.phase-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.phase-button {
  position: relative;
  min-height: 122px;
  padding: 19px 18px 18px;
  text-align: left;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.phase-button:last-child {
  border-right: 0;
}

.phase-button:hover,
.phase-button:focus-visible {
  background: #f0eee7;
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}

.phase-button.is-selected {
  color: #fff;
  background: var(--navy);
}

.phase-button::before {
  position: absolute;
  top: -5px;
  left: 18px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.phase-button[data-status="complete"]::before {
  border-color: var(--success);
  background: var(--success);
}

.phase-button[data-status="active"]::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.phase-button.is-selected::before {
  border-color: #fff;
  background: #fff;
  box-shadow: none;
}

.phase-number,
.phase-status {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
}

.phase-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.phase-button.is-selected .phase-number {
  color: #e9b7a3;
}

.phase-title {
  display: block;
  margin-top: 17px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.phase-status {
  margin-top: 8px;
  color: var(--muted);
}

.phase-button.is-selected .phase-status {
  color: #c8d5dd;
}

.phase-detail {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  min-height: 165px;
  padding: 28px 20px 0;
}

.phase-detail h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
}

.phase-detail p {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.phase-outputs {
  display: grid;
  align-content: start;
}

.phase-output {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.phase-output span:first-child {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.overview-lower {
  display: grid;
  grid-template-columns: 1.55fr 0.65fr;
  min-height: 380px;
  background: #efede6;
}

.latest-work {
  padding: 50px 6vw;
  border-right: 1px solid var(--line-strong);
}

.compact-heading {
  display: block;
  margin-bottom: 20px;
}

.update-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-item {
  display: grid;
  grid-template-columns: 110px minmax(240px, 0.8fr) 1.2fr;
  gap: 24px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.update-date {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.update-item strong {
  font-family: var(--serif);
  font-size: 16px;
}

.update-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.next-focus {
  display: grid;
  align-content: center;
  padding: 50px 4vw;
  color: #f8f6f0;
  background: var(--navy);
}

.next-focus .section-kicker {
  color: #e6aa91;
}

.next-number {
  color: rgba(255, 255, 255, 0.14);
  font-family: var(--serif);
  font-size: 82px;
  font-weight: 700;
  line-height: 1;
}

.next-focus h2 {
  margin: 4px 0 12px;
  font-family: var(--serif);
  font-size: 28px;
}

.next-focus > p:not(.section-kicker) {
  margin: 0 0 24px;
  color: #c9d6de;
  line-height: 1.8;
}

.light-action {
  justify-self: start;
  color: #fff;
}

/* Stage artifacts */

.artifact-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  height: 100%;
  background: var(--paper);
}

.artifact-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  padding: 34px 0 0;
  background: #eeebe4;
  border-right: 1px solid var(--line-strong);
}

.artifact-sidebar > header {
  padding: 0 30px 25px;
}

.artifact-sidebar h2,
.artifact-sidebar p {
  margin-top: 0;
}

.artifact-sidebar h2 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 30px;
}

.artifact-sidebar > header > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.artifact-filters {
  display: flex;
  gap: 5px;
  padding: 0 30px 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.filter-button {
  padding: 6px 9px;
  color: #59636b;
  font-size: 11px;
  border: 1px solid #bbb9b2;
  background: transparent;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
  outline: none;
}

.artifact-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: #aaa79f transparent;
  scrollbar-width: thin;
}

.artifact-item {
  position: relative;
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 18px 30px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background-color 150ms ease, padding-left 150ms ease;
}

.artifact-item:hover,
.artifact-item:focus-visible {
  padding-left: 34px;
  background: #e5e2db;
  outline: none;
}

.artifact-item.is-active {
  color: #fff;
  background: var(--navy);
}

.artifact-item strong {
  font-family: var(--serif);
  font-size: 16px;
}

.artifact-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.artifact-item.is-active span {
  color: #cbd7df;
}

.artifact-reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: var(--paper);
}

.artifact-reader-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  min-height: 118px;
  padding: 25px 4vw 22px;
  border-bottom: 1px solid var(--line-strong);
}

.artifact-reader-header h2,
.artifact-reader-header p {
  margin: 0;
}

.artifact-reader-header h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 29px;
}

.artifact-path {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.artifact-reader-meta {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.artifact-reader-meta span + span::before {
  margin-right: 9px;
  content: "/";
}

.markdown-body {
  min-height: 0;
  padding: 38px clamp(48px, 7vw, 110px) 100px;
  overflow-y: auto;
  scrollbar-color: #aaa79f transparent;
  scrollbar-width: thin;
}

.markdown-body > * {
  max-width: 1040px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  font-family: var(--serif);
  line-height: 1.35;
}

.markdown-body h1 {
  margin: 0 0 30px;
  padding-bottom: 18px;
  font-size: 32px;
  border-bottom: 2px solid var(--ink);
}

.markdown-body h2 {
  margin: 38px 0 16px;
  font-size: 24px;
}

.markdown-body h3 {
  margin: 30px 0 13px;
  font-size: 19px;
}

.markdown-body p,
.markdown-body li {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.82;
}

.markdown-body p {
  margin: 0 0 17px;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 22px;
  padding-left: 25px;
}

.markdown-body blockquote {
  margin: 26px 0;
  padding: 14px 22px;
  color: #3e4c57;
  border-left: 5px solid var(--accent);
  background: var(--accent-soft);
}

.markdown-body code {
  padding: 0.08em 0.28em;
  color: #5f2f24;
  font-family: var(--mono);
  font-size: 0.86em;
  background: #eee8df;
}

.markdown-body pre {
  padding: 18px;
  overflow-x: auto;
  color: #f4f3ef;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  background: #263541;
}

.markdown-body table {
  width: 100%;
  margin: 24px 0 34px;
  font-size: 13px;
  border-collapse: collapse;
}

.markdown-body th,
.markdown-body td {
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
  line-height: 1.6;
  border-bottom: 1px solid var(--line);
}

.markdown-body th {
  color: #fff;
  font-weight: 600;
  background: var(--navy);
}

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

/* Audit */

.audit-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 285px;
  padding: 48px 7vw 42px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}

.audit-hero h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 3.2vw, 56px);
  line-height: 1.27;
}

.audit-counter {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding-left: 60px;
  border-left: 1px solid var(--line-strong);
}

.audit-counter strong {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 88px;
  line-height: 0.86;
}

.audit-counter span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.audit-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  color: #f8f6f0;
  background: var(--ink);
}

.audit-stat {
  min-height: 96px;
  padding: 19px 18px;
  border-right: 1px solid #46515a;
}

.audit-stat:last-child {
  border-right: 0;
}

.audit-stat strong,
.audit-stat span {
  display: block;
}

.audit-stat strong {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 26px;
}

.audit-stat span {
  color: #b7c0c6;
  font-size: 10px;
  line-height: 1.4;
}

.fact-list {
  border-top: 1px solid var(--line-strong);
}

.fact-item {
  display: grid;
  grid-template-columns: 90px 140px minmax(240px, 0.7fr) 1.3fr;
  align-items: start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.fact-state,
.fact-id {
  font-family: var(--mono);
  font-size: 10px;
}

.fact-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.fact-state::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--queued);
  content: "";
}

.fact-item[data-state="done"] .fact-state {
  color: var(--success);
}

.fact-item[data-state="done"] .fact-state::before {
  background: var(--success);
}

.fact-item[data-state="active"] .fact-state {
  color: var(--accent);
}

.fact-item[data-state="active"] .fact-state::before {
  background: var(--accent);
}

.fact-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.fact-detail {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.audit-rule {
  padding: 58px 10vw 70px;
  color: #f8f6f0;
  background: var(--navy);
}

.audit-rule .section-kicker {
  color: #e5a88e;
}

.audit-rule blockquote {
  max-width: 1050px;
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.75;
}

/* Comparison function */

.compare-view {
  overflow: hidden;
}

.compare-shell {
  display: grid;
  grid-template-rows: 70px 62px minmax(0, 1fr) 32px;
  height: 100%;
}

.compare-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 8px 18px 8px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}

.compare-toolbar h2,
.compare-toolbar p {
  margin: 0;
}

.compare-toolbar h2 {
  font-family: var(--serif);
  font-size: 25px;
}

.compare-toolbar .section-kicker {
  margin-bottom: 3px;
}

.compare-scope {
  color: var(--muted);
  font-size: 12px;
}

.reading-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-button,
.sync-control {
  min-height: 34px;
  border: 1px solid #b9b7b0;
  background: #f0eee8;
}

.tool-button {
  padding: 0 12px;
  cursor: pointer;
}

.tool-button:hover,
.tool-button:focus-visible {
  border-color: var(--navy);
  outline: 1px solid var(--navy);
}

.sync-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
}

.sync-control input {
  accent-color: var(--accent);
}

.sample-strip {
  overflow: hidden;
  background: #efede7;
  border-bottom: 1px solid var(--line-strong);
}

.sample-strip-track {
  display: grid;
  grid-template-columns: repeat(10, minmax(122px, 1fr));
  height: 100%;
}

.sample-button {
  position: relative;
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 7px 11px;
  text-align: left;
  border: 0;
  border-right: 1px solid #d3d0c9;
  background: transparent;
  cursor: pointer;
}

.sample-button:hover,
.sample-button:focus-visible {
  background: #e4e1d9;
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}

.sample-button.is-active {
  color: #fff;
  background: var(--navy);
}

.sample-button.is-active::after {
  position: absolute;
  right: 11px;
  bottom: 0;
  left: 11px;
  height: 3px;
  background: #d98a68;
  content: "";
}

.sample-part {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sample-page {
  color: #777f86;
  font-family: var(--mono);
  font-size: 9px;
}

.sample-button.is-active .sample-page {
  color: #c8d6df;
}

.compare-workspace {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  min-height: 0;
  padding: 9px;
}

.reading-column {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--paper-warm);
  border: 1px solid var(--line-strong);
  box-shadow: 0 7px 20px rgba(30, 39, 46, 0.07);
}

.generic-column {
  background: #fbfaf6;
}

.targeted-column {
  background: #f7f8f5;
}

.column-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 11px 17px 10px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
}

.column-header h3,
.column-header p {
  margin: 0;
}

.column-header h3 {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 21px;
}

.column-kicker {
  color: var(--accent);
}

.column-meta {
  display: grid;
  gap: 3px;
  justify-items: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.targeted-header {
  display: grid;
  align-items: stretch;
  gap: 8px;
  min-height: 109px;
}

.targeted-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.variant-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.variant-tab {
  min-width: 0;
  height: 27px;
  padding: 0 6px;
  overflow: hidden;
  color: #5f6871;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid #c3c7c5;
  background: #f0f1ee;
  cursor: pointer;
}

.variant-tab:hover,
.variant-tab:focus-visible {
  color: var(--ink);
  border-color: #89928e;
  outline: none;
}

.variant-tab.is-active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.variant-tab.is-missing::after {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 5px;
  vertical-align: 1px;
  border-radius: 50%;
  background: var(--warning);
  content: "";
}

.scroll-meter {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.reader {
  min-height: 0;
  padding: 22px 28px 70px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #a7a59e transparent;
  scrollbar-width: thin;
  transition: opacity 140ms ease, transform 140ms ease;
}

.reader.is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.reader:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: -4px;
}

.reader h3 {
  margin: 0 0 20px;
  padding-bottom: 13px;
  font-family: var(--serif);
  font-size: clamp(21px, 1.35vw, 27px);
  line-height: 1.42;
  border-bottom: 2px solid var(--ink);
}

.reader p {
  margin: 0 0 1.14em;
  font-family: var(--serif);
  font-size: clamp(15px, 0.88vw, 17px);
  line-height: 1.84;
  text-align: justify;
  text-justify: inter-ideograph;
}

.reader p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  color: var(--accent);
  font-size: 2.3em;
  font-weight: 700;
  line-height: 0.86;
}

.source-notes {
  margin-top: 27px;
  padding-top: 15px;
  color: #555e66;
  border-top: 1px solid var(--line);
}

.source-notes h4 {
  margin: 0 0 9px;
  font-size: 11px;
}

.source-notes p,
.source-notes li {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
}

.quality-warning {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
  padding: 12px 14px;
  color: #6f2d1f;
  font-size: 12px;
  line-height: 1.6;
  border: 2px solid #b85a3c;
  border-left-width: 7px;
  background: #f8e7df;
}

.missing-state {
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: 42px;
  text-align: center;
}

.missing-state h3 {
  border: 0;
}

.missing-state p {
  color: var(--muted);
  font-family: var(--sans);
  text-align: center;
}

.compare-statusbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 13px;
  color: #d7dce0;
  background: #24313d;
  font-size: 10px;
}

.compare-statusbar p {
  margin: 0;
}

.compare-statusbar p:nth-child(2) {
  text-align: center;
}

kbd {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  margin: 0 2px;
  place-items: center;
  font-family: var(--mono);
  font-size: 9px;
  border: 1px solid #68737c;
  background: #34434f;
}

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