:root {
  color-scheme: light;
  --paper: #FAFAF7;
  --rail: #F1F1EC;
  --ink-key: #141414;
  --ink-muted: #4D4D4A;
  --rule: #D4D3CA;
  --cobalt: #1B45D7;
  --coral: #E8432E;
  --coral-ink: #C6321F;
  --overprint: #4A1942;
  --ink-blend: multiply;
  --cobalt-tint: rgba(27, 69, 215, 0.08);
  --coral-tint: rgba(232, 67, 46, 0.08);
  --overprint-tint: rgba(74, 25, 66, 0.1);
  --font-display: "Syne", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --measure: 66ch;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #13151B;
  --rail: #1A1D25;
  --ink-key: #F0EFE9;
  --ink-muted: #A7AAB5;
  --rule: #2D313D;
  --cobalt: #4F7DFF;
  --coral: #FF6550;
  --coral-ink: #FF7A68;
  --overprint: #E6A9E0;
  --ink-blend: screen;
  --cobalt-tint: rgba(79, 125, 255, 0.14);
  --coral-tint: rgba(255, 101, 80, 0.14);
  --overprint-tint: rgba(230, 169, 224, 0.14);
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink-key);
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

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

button {
  font-family: var(--font-body);
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

code {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96em;
  color: var(--ink-key);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 40;
  padding: 0.55rem 0.9rem;
  background-color: var(--cobalt);
  color: #FAFAF7;
  text-decoration: none;
  font-weight: 600;
}

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

.sheet {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.1rem, 3.5vw, 2.5rem) clamp(3.5rem, 6vw, 5.5rem);
}

/* Masthead */

.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--ink-key);
}

.masthead-identity {
  max-width: 40rem;
}

.site-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.site-subtitle {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.5;
  max-width: 58ch;
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.4rem;
}

.masthead-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  font-weight: 500;
}

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-btn {
  padding: 0.44rem 0.78rem;
  background-color: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  min-height: 36px;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.tool-btn:hover {
  border-color: var(--ink-key);
  background-color: var(--rail);
}

/* Signature Hero: Two-Ink Risograph Proof Press Stage */

.proof-stage {
  padding-top: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.proof-stage-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.45rem 1.5rem;
  margin-bottom: 0.95rem;
}

.stage-map-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration-color: var(--cobalt);
  white-space: nowrap;
}

.stage-map-link:hover {
  color: var(--coral-ink);
  text-decoration-color: var(--coral-ink);
}

.ink-key-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.35rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

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

.ink-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  position: relative;
  top: 0.04em;
  flex-shrink: 0;
}

.ink-dot-cobalt {
  background-color: var(--cobalt);
}

.ink-dot-coral {
  background-color: var(--coral);
}

.proof-press-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 1.5rem 2rem;
  align-items: start;
}

.proof-frame-column {
  min-width: 0;
}

.proof-frame {
  position: relative;
  padding: 16px;
  background-color: var(--rail);
  border: 1px solid var(--rule);
}

.crop-mark {
  position: absolute;
  color: var(--ink-muted);
  opacity: 0.6;
  pointer-events: none;
}

.crop-tl {
  top: 2px;
  left: 2px;
}

.crop-tr {
  top: 2px;
  right: 2px;
}

.crop-bl {
  bottom: 2px;
  left: 2px;
}

.crop-br {
  bottom: 2px;
  right: 2px;
}

.proof-canvas {
  isolation: isolate;
  background-color: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
}

#riso-proof-svg {
  display: block;
  width: 100%;
  height: auto;
  isolation: isolate;
}

/* SVG Two-Ink Plate Classes */

.svg-cobalt-fill {
  fill: var(--cobalt);
}

.svg-cobalt-stroke {
  stroke: var(--cobalt);
}

.svg-coral-fill {
  fill: var(--coral);
}

.svg-coral-stroke {
  stroke: var(--coral);
}

.svg-rule-stroke {
  stroke: var(--rule);
}

.svg-paper-fill {
  fill: var(--paper);
}

.svg-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.svg-label-strong {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.svg-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 735;
  letter-spacing: -0.015em;
}

.plate-cobalt {
  mix-blend-mode: var(--ink-blend);
  transition: opacity 220ms ease;
}

.plate-coral {
  mix-blend-mode: var(--ink-blend);
  transform-origin: 320px 190px;
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ink-Drum Separation Bar */

.ink-drum-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.6rem 0.7rem;
  background-color: var(--rail);
  border: 1px solid var(--rule);
}

.ink-drum-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ink-btn {
  padding: 0.45rem 0.78rem;
  min-height: 36px;
  background-color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.ink-btn:hover {
  border-color: var(--ink-key);
}

.ink-btn.is-active {
  background-color: var(--ink-key);
  border-color: var(--ink-key);
  color: var(--paper);
}

.ink-btn-cobalt.is-active {
  background-color: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--paper);
}

.ink-btn-coral.is-active {
  background-color: var(--coral-ink);
  border-color: var(--coral-ink);
  color: var(--paper);
}

/* 6-System Index Rail */

.proof-index-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.index-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  width: 100%;
  padding: 0.82rem 0.75rem 0.82rem 0.9rem;
  text-align: left;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid transparent;
  transition: background-color 140ms ease, border-left-color 140ms ease;
}

.index-item:hover {
  background-color: var(--rail);
}

.index-item.is-active {
  background-color: var(--rail);
  border-left-color: var(--cobalt);
}

.index-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-key);
}

.index-item-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  width: 100%;
  font-size: 0.83rem;
  line-height: 1.3;
}

.index-item-stage {
  color: var(--cobalt);
  font-weight: 500;
}

.index-item-metric {
  color: var(--coral-ink);
  font-weight: 600;
}

/* Live Proof Readout Strip */

.proof-readout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1.35fr) minmax(240px, 0.95fr);
  gap: 1.5rem 2.25rem;
  margin-top: 1.65rem;
  padding-top: 1.45rem;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.readout-stage {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cobalt);
}

.readout-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.readout-jump {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration-color: var(--cobalt);
}

.readout-jump:hover {
  color: var(--coral);
  text-decoration-color: var(--coral);
}

.readout-notes {
  border-left: 2px solid var(--cobalt);
  padding-left: 1rem;
  max-width: var(--measure);
}

.readout-line {
  margin: 0 0 0.55rem;
  font-size: 0.94rem;
  line-height: 1.52;
  color: var(--ink-muted);
}

.readout-line:last-child {
  margin-bottom: 0;
}

.readout-line strong {
  color: var(--ink-key);
  font-weight: 600;
}

.readout-metrics {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--coral);
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.readout-metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.readout-metric-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.18;
  color: var(--coral-ink);
}

.readout-metric-detail {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* Proof Stage Verified Credentials Footer Strip */

.stage-creds {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 1.25rem;
  margin-top: 1.55rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
}

.stage-creds-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.stage-creds-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stage-creds-list a {
  font-weight: 500;
  color: var(--ink-key);
}

.stage-creds-list a:hover {
  color: var(--cobalt);
}

/* Asymmetric Editorial Zine Spreads */

.zine-body {
  display: block;
}

.spread {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.75rem clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.75rem, 5.5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  scroll-margin-top: 1.5rem;
  transition: background-color 350ms ease;
}

.spread.is-highlighted {
  background-color: var(--cobalt-tint);
}

.spread-folio {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.spread-stage {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cobalt);
  line-height: 1.3;
}

.spread-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.38rem, 2.2vw, 1.82rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.folio-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 28ch;
}

.folio-metrics {
  margin: 0.35rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.folio-metric {
  margin: 0;
}

.folio-metric-val {
  font-family: var(--font-display);
  font-weight: 735;
  font-size: 1.24rem;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--coral-ink);
}

.folio-metric-label {
  margin: 0.18rem 0 0;
  font-size: 0.86rem;
  line-height: 1.38;
  color: var(--ink-muted);
}

.folio-links {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.88rem;
}

.folio-actions {
  margin-top: 0.25rem;
}

.folio-inspect-btn {
  padding: 0.36rem 0.68rem;
  background-color: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-muted);
  min-height: 34px;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.folio-inspect-btn:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  background-color: var(--cobalt-tint);
}

.spread-editorial {
  max-width: var(--measure);
}

.spread-intro {
  margin: 0 0 1.6rem;
  font-size: clamp(1.04rem, 1.35vw, 1.14rem);
  line-height: 1.56;
  color: var(--ink-key);
}

.plate-block {
  padding-left: 1.25rem;
  margin-bottom: 1.65rem;
  transition: opacity 200ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.plate-block:last-child {
  margin-bottom: 0;
}

.plate-block-cobalt {
  border-left: 2px solid var(--cobalt);
}

.plate-block-coral {
  border-left: 2px solid var(--coral);
}

.plate-block-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
}

.plate-block-cobalt .plate-block-heading {
  color: var(--cobalt);
}

.plate-block-coral .plate-block-heading {
  color: var(--coral-ink);
}

.plate-block p {
  margin: 0 0 0.85rem;
  color: var(--ink-key);
}

.plate-block p:last-child {
  margin-bottom: 0;
}

.editorial-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.editorial-list li::marker {
  color: var(--coral);
}

/* Collapsible Waydroid Upstream PR Ledger */

.pr-ledger {
  margin-top: 1.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.pr-ledger-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-key);
  padding: 0.3rem 0;
  list-style-position: outside;
}

.pr-ledger-summary:hover {
  color: var(--coral);
}

.pr-ledger-body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.pr-group-title {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cobalt);
}

.pr-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.pr-list a {
  color: var(--ink-key);
  font-weight: 500;
}

/* Secondary Spreads: Transit Route, Credentials, Background, Scope */

.spread-transit {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.transit-callout-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.transit-callout-copy {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.56;
  color: var(--ink-muted);
}

.transit-callout-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.58rem 1rem;
  min-height: 40px;
  border: 1.5px solid var(--cobalt);
  border-radius: 2px;
  background-color: var(--cobalt-tint);
  color: var(--cobalt);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.transit-callout-btn:hover {
  background-color: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--paper);
  text-decoration: none;
}

.credential-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.credential-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.credential-list a {
  font-weight: 600;
  font-size: 1.02rem;
}

.credential-issuer {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.detail-rows {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.detail-row {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.detail-row dt {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-key);
}

.detail-row dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Footer Colophon */

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  padding-top: 2rem;
}

.colophon-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.colophon-note {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.colophon-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  font-weight: 500;
}

.link-btn:hover {
  color: var(--cobalt);
  text-decoration-color: var(--cobalt);
}

/* Whole-Page Ink-Drum Separation Modes */

[data-plate="cobalt"],
[data-plate="coral"] {
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-ink-mode="cobalt"] .plate-coral {
  opacity: 0.1;
}

html[data-ink-mode="cobalt"] [data-plate="coral"] {
  opacity: 0.14;
}

html[data-ink-mode="cobalt"] [data-plate="coral"]:hover,
html[data-ink-mode="cobalt"] [data-plate="coral"]:focus-within {
  opacity: 0.7;
}

html[data-ink-mode="coral"] .plate-cobalt {
  opacity: 0.1;
}

html[data-ink-mode="coral"] [data-plate="cobalt"] {
  opacity: 0.14;
}

html[data-ink-mode="coral"] [data-plate="cobalt"]:hover,
html[data-ink-mode="coral"] [data-plate="cobalt"]:focus-within {
  opacity: 0.7;
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive Breakpoints */

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

  .ink-btn {
    padding: 0.42rem 0.62rem;
    font-size: 0.81rem;
  }

  .proof-index-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
  }

  .index-item {
    border-right: 1px solid var(--rule);
  }

  .proof-readout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .readout-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .folio-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem 1.25rem;
  }

  .proof-readout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
}

@media (max-width: 580px) {
  .proof-index-list {
    grid-template-columns: minmax(0, 1fr);
    border-left: 0;
  }

  .index-item {
    border-right: 0;
  }

  .proof-frame {
    padding: 10px;
  }

  .masthead-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Print Stylesheet */

@media print {
  :root,
  :root[data-theme="dark"],
  :root[data-theme="light"] {
    --paper: #FFFFFF;
    --rail: #F6F6F3;
    --ink-key: #141414;
    --ink-muted: #4D4D4A;
    --rule: #CFCFC8;
    --cobalt: #1B45D7;
    --coral: #E8432E;
    --coral-ink: #C6321F;
    --ink-blend: multiply;
  }

  @page {
    margin: 14mm 14mm 16mm;
  }

  html,
  body {
    background: #FFFFFF !important;
    color: #141414 !important;
    font-size: 10.5pt;
    line-height: 1.48;
  }

  .skip-link,
  .masthead-tools,
  .stage-map-link,
  .ink-drum-bar,
  .proof-index,
  .readout-jump,
  .folio-actions,
  .spread-transit,
  .colophon-links button,
  .colophon-links a[href="/transit/"],
  .colophon-links a[href="#top"] {
    display: none !important;
  }

  .sheet {
    max-width: none;
    padding: 0;
  }

  .proof-stage {
    padding-bottom: 1.25rem;
  }

  .proof-press-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof-frame {
    max-width: 540px;
    padding: 8px;
  }

  .proof-readout {
    display: none;
  }

  .spread {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.35rem 0;
    break-inside: avoid-page;
  }

  #system-waydroid-nvidia {
    break-inside: auto;
  }

  .pr-group {
    break-inside: avoid-page;
  }

  [data-plate="cobalt"],
  [data-plate="coral"],
  .plate-cobalt,
  .plate-coral {
    opacity: 1 !important;
    transform: none !important;
  }

  a {
    text-decoration: underline;
    color: #141414;
  }
}
