:root {
  --mesh-cobalt: #3156d3;
  --mesh-violet: #7450d4;
  --mesh-amber: #b86b05;
  --mesh-danger: #c8372d;
  --mesh-held: var(--trust);
  --mesh-reading: 760px;
  --mesh-wide: 1320px;
}

:root[data-effective-theme="dark"] {
  --mesh-cobalt: #8da4ff;
  --mesh-violet: #b7a0ff;
  --mesh-amber: #f3b85b;
  --mesh-danger: #ff897f;
}

.mesh-skip {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--page);
}

.mesh-skip:focus { transform: translateY(0); }

.mesh-report {
  overflow: clip;
  padding-bottom: clamp(72px, 10vw, 140px);
}

.mesh-report :where(a, button):focus-visible {
  outline: 3px solid var(--mesh-cobalt);
  outline-offset: 4px;
}

.mesh-report :where(p, li, dd, a, code) {
  overflow-wrap: anywhere;
}

.mesh-report :where(h1, h2, h3, h4) {
  overflow-wrap: anywhere;
}

.mesh-eyebrow {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 840;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.mesh-eyebrow::before {
  width: 25px;
  height: 2px;
  background: currentColor;
  content: "";
}

.mesh-hero {
  position: relative;
  width: min(calc(100% - 32px), var(--mesh-wide));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: clamp(58px, 8vw, 112px) 0 clamp(52px, 7vw, 88px);
}

.mesh-hero__copy { position: relative; z-index: 2; }

.mesh-hero h1 {
  max-width: 12ch;
  margin: 20px 0 24px;
  font-size: clamp(3rem, 6.2vw, 6.7rem);
  font-weight: 840;
  letter-spacing: -0.068em;
  line-height: 0.9;
  text-wrap: balance;
}

.mesh-hero__subtitle {
  max-width: 760px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px) 0;
}

.mesh-hero__dek {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.55;
}

.mesh-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 23px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mesh-hero__meta strong { color: var(--ink); }

.mesh-hero__evidence {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.mesh-hero__evidence figcaption {
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.mesh-hero__evidence figcaption span,
.mesh-hero__evidence li small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mesh-hero__evidence figcaption strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.3;
}

.mesh-hero__evidence ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mesh-hero__evidence li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr;
  gap: 4px 16px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 16px 20px;
}

.mesh-hero__evidence li:first-child { border-top: 0; }

.mesh-hero__evidence li::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--mesh-cobalt);
  content: "";
}

.mesh-hero__evidence li[data-hero-state="contradiction"]::before { background: var(--mesh-amber); }
.mesh-hero__evidence li[data-hero-state="escape"]::before { background: var(--mesh-danger); }
.mesh-hero__evidence li[data-hero-state="recovery"]::before { background: var(--mesh-held); }

.mesh-hero__evidence li strong {
  grid-column: 1;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.mesh-hero__evidence li span {
  grid-column: 2;
  font-size: 0.9rem;
  font-weight: 780;
}

.mesh-hero__evidence li small {
  grid-column: 2;
  letter-spacing: 0.04em;
  text-transform: none;
}

.mesh-structure {
  width: min(calc(100% - 32px), var(--mesh-wide));
  margin: clamp(70px, 9vw, 128px) auto;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 4vw, 52px) 0;
}

.mesh-structure__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.45fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 58px);
}

.mesh-structure__head h2,
.mesh-structure__head h3 {
  max-width: 900px;
  margin: 10px 0 0;
  font-size: clamp(2rem, 4.5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.mesh-structure__head > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.mesh-structure__head > * { min-width: 0; }

.mesh-pressure {
  margin-top: 0;
  border-top-color: var(--accent);
}

.mesh-pressure__field {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 1.3fr;
  grid-template-areas:
    "runs repos meter"
    "runs receipts escape";
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.mesh-pressure__metric {
  min-width: 0;
  display: grid;
  gap: clamp(22px, 4vw, 50px);
  align-content: space-between;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(18px, 3vw, 34px);
  background: var(--surface);
}

.mesh-pressure__field > div:nth-child(1) { grid-area: runs; background: var(--ink); color: var(--page); }
.mesh-pressure__field > div:nth-child(2) { grid-area: repos; }
.mesh-pressure__field > div:nth-child(3) { grid-area: meter; }
.mesh-pressure__field > div:nth-child(4) { grid-area: receipts; }
.mesh-pressure__field > div:nth-child(5) { grid-area: escape; }

.mesh-pressure__value-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  align-items: baseline;
}

.mesh-pressure__value-row strong {
  min-width: 0;
  font-size: clamp(2.7rem, 6vw, 6.5rem);
  letter-spacing: -0.075em;
  line-height: 1;
  overflow-wrap: normal;
}

.mesh-pressure__copy {
  display: grid;
  gap: 9px;
}

.mesh-pressure__copy span {
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  font-weight: 790;
  line-height: 1.12;
}

.mesh-pressure__copy small {
  color: var(--muted);
  line-height: 1.35;
}

.mesh-pressure__field > div:nth-child(1) small { color: color-mix(in srgb, var(--page), transparent 35%); }
.mesh-pressure__alert strong { color: var(--mesh-danger); }

.mesh-pressure__denominator {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 760;
  letter-spacing: -0.03em;
}

.mesh-pressure__progress-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.mesh-pressure__meter progress {
  width: 100%;
  height: 9px;
  margin: 0;
  accent-color: var(--mesh-amber);
}

.mesh-pressure__percentage {
  color: var(--mesh-amber);
  font-size: 0.82rem;
  font-weight: 820;
}

.mesh-intro,
.mesh-chapter {
  width: min(calc(100% - 32px), var(--mesh-reading));
  margin-right: auto;
  margin-left: auto;
}

.mesh-intro {
  padding: clamp(30px, 5vw, 72px) 0 clamp(52px, 8vw, 100px);
}

.mesh-intro p:first-child {
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 710;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.mesh-intro p,
.mesh-chapter > p {
  margin: 0 0 1.35em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.16rem, 1.7vw, 1.34rem);
  line-height: 1.8;
}

.mesh-filter {
  position: sticky;
  z-index: 8;
  top: 76px;
  width: min(calc(100% - 32px), 980px);
  margin: 0 auto 70px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
  background: color-mix(in srgb, var(--surface), transparent 4%);
  box-shadow: 0 10px 36px color-mix(in srgb, var(--ink), transparent 91%);
  backdrop-filter: blur(16px);
}

.mesh-filter > span {
  margin: 0 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.mesh-filter button {
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 12px 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
}

.mesh-filter button[aria-pressed="true"] {
  border-bottom-color: var(--ink);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 780;
}

.mesh-chapter {
  scroll-margin-top: 148px;
  padding: clamp(62px, 9vw, 118px) 0;
  border-top: 1px solid var(--line);
}

.mesh-chapter > header {
  position: relative;
  margin-bottom: clamp(32px, 5vw, 62px);
}

.mesh-chapter > header span {
  position: absolute;
  top: 0.7em;
  right: calc(100% + 32px);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.mesh-chapter > header h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5.3vw, 5.2rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.mesh-chapter > ul {
  margin: 28px 0 34px;
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 27px;
  list-style: none;
}

.mesh-chapter > ul li {
  position: relative;
  margin: 10px 0;
  font-size: 1rem;
  font-weight: 690;
}

.mesh-chapter > ul li::before {
  position: absolute;
  top: 0.72em;
  left: -30px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.mesh-cite {
  white-space: nowrap;
  color: var(--mesh-cobalt);
  font-family: Inter, sans-serif;
  font-size: 0.68em;
  font-weight: 820;
  text-decoration: none;
  vertical-align: super;
}

.mesh-chapter .mesh-structure {
  width: min(calc(100vw - 32px), var(--mesh-wide));
  margin-left: 50%;
  transform: translateX(-50%);
}

.mesh-stops ol,
.mesh-lineage ol,
.mesh-escape ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mesh-stops ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mesh-stops li {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 30px 24px 30px 0;
}

.mesh-stops li + li {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.mesh-stop__number {
  color: var(--mesh-held);
  font-size: 0.72rem;
  font-weight: 850;
}

.mesh-stops header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}

.mesh-stops header strong {
  max-width: 250px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.mesh-stops header a {
  color: var(--mesh-cobalt);
  font-size: 0.75rem;
  font-weight: 850;
}

.mesh-stops dl { margin: 0; }
.mesh-stops dl div { border-top: 1px solid var(--line); padding: 10px 0; }
.mesh-stops dt { color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.mesh-stops dd { margin: 3px 0 0; font-size: 0.86rem; line-height: 1.45; }

.mesh-lineage { border-top-color: var(--mesh-violet); }

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

.mesh-lineage li {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-left: 5px solid var(--mesh-cobalt);
  background: var(--surface);
}

.mesh-lineage li[data-authority-state="contradictory"] { border-left-color: var(--mesh-amber); }
.mesh-lineage li[data-authority-state="withdrawn"],
.mesh-lineage li[data-authority-state="invalidated"] { border-left-color: var(--mesh-danger); }
.mesh-lineage li[data-authority-state="isolated"] { border-left-style: double; border-left-color: var(--mesh-violet); }
.mesh-lineage li[data-authority-state="current-terminal"] {
  grid-column: 1 / -1;
  border: 2px solid var(--mesh-held);
  border-left-width: 9px;
  background: color-mix(in srgb, var(--mesh-held), transparent 92%);
}

.mesh-lineage li header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  background: var(--surface-2);
}

.mesh-lineage__relation,
.mesh-lineage__role,
.mesh-lineage__consequence > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 830;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.mesh-lineage__marker {
  flex: 0 0 auto;
  border: 1px solid currentColor;
  padding: 3px 6px;
  color: var(--mesh-cobalt);
  font-size: 0.64rem;
  font-weight: 850;
}

.mesh-lineage li[data-authority-state="contradictory"] .mesh-lineage__marker { color: var(--mesh-amber); }
.mesh-lineage li[data-authority-state="withdrawn"] .mesh-lineage__marker,
.mesh-lineage li[data-authority-state="invalidated"] .mesh-lineage__marker { color: var(--mesh-danger); text-decoration: line-through; }
.mesh-lineage li[data-authority-state="isolated"] .mesh-lineage__marker { border-style: double; color: var(--mesh-violet); }
.mesh-lineage li[data-authority-state="current-terminal"] .mesh-lineage__marker { border-width: 2px; color: var(--mesh-held); }

.mesh-lineage__body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(18px, 3vw, 28px);
}

.mesh-lineage li strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.mesh-lineage li p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.mesh-lineage li a { color: var(--mesh-cobalt); font-size: 0.68rem; }

.mesh-lineage__consequence {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr) minmax(240px, 0.65fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
  margin-top: 16px;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.mesh-lineage__consequence strong { line-height: 1.3; }
.mesh-lineage__consequence p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

.mesh-escape { border-top-color: var(--mesh-danger); }

.mesh-mutation-count {
  justify-self: end;
  display: grid;
  text-align: right;
}

.mesh-mutation-count strong {
  color: var(--mesh-danger);
  font-size: clamp(4rem, 8vw, 8rem);
  letter-spacing: -0.08em;
  line-height: 0.7;
}

.mesh-mutation-count span {
  margin-top: 18px;
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mesh-escape ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mesh-escape li {
  min-width: 0;
  display: grid;
  gap: clamp(32px, 5vw, 68px);
  align-content: space-between;
  padding: 26px;
}

.mesh-escape li + li { border-left: 1px solid var(--line); }
.mesh-escape li[data-stage="escape"] { background: color-mix(in srgb, var(--mesh-danger), transparent 91%); }
.mesh-escape li[data-stage="exact-rollback"] { background: color-mix(in srgb, var(--mesh-held), transparent 91%); }

.mesh-escape li > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 840;
  letter-spacing: 0.12em;
}

.mesh-escape li div {
  margin-top: 0;
}

.mesh-escape li small {
  color: var(--mesh-danger);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mesh-escape li p { margin: 11px 0 0; font-size: 0.92rem; line-height: 1.55; }

.mesh-regression {
  max-width: 830px;
  margin: 34px 0 0 auto;
  border-left: 4px solid var(--mesh-held);
  padding: 5px 0 5px 25px;
}

.mesh-regression strong {
  color: var(--mesh-held);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mesh-regression p { margin: 7px 0 0; font-size: 1rem; }

.mesh-balance { border-top-color: var(--mesh-held); }

.mesh-balance__planes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.mesh-balance__planes section {
  min-width: 0;
  padding: clamp(26px, 5vw, 60px);
  background: var(--surface);
}

.mesh-balance__planes section > * { min-width: 0; max-width: 100%; }

.mesh-balance__planes section + section {
  border-left: 1px solid var(--line);
  background: var(--ink);
  color: var(--page);
}

.mesh-balance__planes small {
  color: var(--mesh-held);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mesh-balance__planes section + section small { color: var(--mesh-danger); }

.mesh-balance__planes h4 {
  max-width: 460px;
  margin: 15px 0 35px;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.mesh-balance__planes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mesh-balance__planes li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 0.9rem;
}

.mesh-balance__planes section + section li {
  border-color: color-mix(in srgb, var(--page), transparent 78%);
}

.mesh-balance__planes a {
  display: inline-block;
  margin-top: 30px;
  color: var(--mesh-danger);
  font-weight: 760;
}

.mesh-sources,
.mesh-doctrine,
.mesh-downloads,
.mesh-related {
  width: min(calc(100% - 32px), var(--mesh-wide));
  margin: clamp(80px, 12vw, 170px) auto 0;
}

.mesh-doctrine {
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 7vw, 90px) 0;
}

.mesh-doctrine blockquote {
  max-width: 1100px;
  margin: 28px 0 0;
  font-size: clamp(2rem, 4.6vw, 5rem);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 1;
}

.mesh-doctrine blockquote + blockquote {
  max-width: 900px;
  margin: 48px 0 0 auto;
  color: var(--muted);
  font-size: clamp(1.45rem, 3vw, 3rem);
}

.mesh-sources {
  border-top: 4px solid var(--ink);
  padding-top: clamp(28px, 5vw, 58px);
}

.mesh-sources ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.mesh-sources li {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 24px 24px 24px 0;
}

.mesh-sources li:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 24px;
}

.mesh-sources li > a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--mesh-cobalt);
  text-decoration: none;
}

.mesh-sources li > a span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
}

.mesh-sources li p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.mesh-sources li code {
  color: var(--muted);
  font-size: 0.67rem;
}

.mesh-downloads {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: clamp(30px, 8vw, 120px);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
  padding: clamp(34px, 6vw, 74px) 0;
}

.mesh-downloads h2 {
  margin: 10px 0 17px;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.mesh-downloads p { max-width: 680px; color: var(--muted); }

.mesh-downloads > div:last-child {
  display: grid;
  align-content: center;
}

.mesh-downloads a {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-weight: 760;
  text-decoration: none;
}

.mesh-related {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 28px;
  align-items: baseline;
}

.mesh-related .mesh-eyebrow { width: 100%; }
.mesh-related a { font-size: 1.05rem; font-weight: 720; }

@media (max-width: 1100px) {
  .sp-topbar { overflow-x: clip; }
  .sp-topbar__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-top: 8px; }
  .sp-brand { min-width: 0; }
  .sp-nav {
    grid-column: 1 / -1;
    order: 3;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
    padding-bottom: 11px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sp-nav::-webkit-scrollbar { display: none; }
}

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

  .mesh-hero__evidence { max-width: 720px; }

  .mesh-pressure__field {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "runs runs"
      "repos meter"
      "receipts escape";
  }

  .mesh-stops ol { grid-template-columns: 1fr; }
  .mesh-stops li + li { border-left: 0; padding-left: 0; }
  .mesh-lineage__sequence { grid-template-columns: 1fr; }
  .mesh-lineage li[data-authority-state="current-terminal"] { grid-column: auto; }
  .mesh-escape ol { grid-template-columns: 1fr 1fr; }
  .mesh-escape li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .mesh-escape li:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .mesh-hero,
  .mesh-structure,
  .mesh-intro,
  .mesh-chapter,
  .mesh-filter,
  .mesh-sources,
  .mesh-doctrine,
  .mesh-downloads,
  .mesh-related {
    width: min(calc(100% - 24px), var(--mesh-wide));
  }

  .mesh-hero h1 { max-width: 11ch; font-size: clamp(2.65rem, 13vw, 4.65rem); line-height: 0.94; }
  .mesh-hero__evidence li { grid-template-columns: minmax(62px, auto) 1fr; }
  .mesh-structure__head { grid-template-columns: 1fr; }
  .mesh-pressure__field { grid-template-columns: 1fr; grid-template-areas: "runs" "repos" "meter" "receipts" "escape"; }
  .mesh-filter { position: relative; top: auto; }
  .mesh-filter > span { width: 100%; margin: 11px 12px 5px; }
  .mesh-filter button { flex: 1 1 auto; }
  .mesh-chapter > header span { position: static; display: block; margin-bottom: 12px; }
  .mesh-chapter .mesh-structure { width: calc(100vw - 24px); }
  .mesh-escape ol { grid-template-columns: 1fr; }
  .mesh-escape li,
  .mesh-escape li:nth-child(3),
  .mesh-escape li:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .mesh-lineage__consequence { grid-template-columns: 1fr; }
  .mesh-balance__planes { grid-template-columns: 1fr; }
  .mesh-balance__planes h4 { font-size: clamp(1.8rem, 10vw, 2.6rem); }
  .mesh-balance__planes section + section { border-top: 1px solid var(--line); border-left: 0; }
  .mesh-sources ol { grid-template-columns: 1fr; }
  .mesh-sources li:nth-child(even) { border-left: 0; padding-left: 0; }
  .mesh-downloads { grid-template-columns: 1fr; }
  .sp-brand__attribution { display: none; }
  .sp-status { max-width: 100%; flex-wrap: wrap; border-radius: 0; overflow-wrap: anywhere; }
}

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

@media print {
  .sp-topbar,
  .sp-proofbar,
  .mesh-filter,
  .mesh-skip { display: none !important; }

  :root {
    --page: #fff;
    --surface: #fff;
    --surface-2: #f3f3f3;
    --ink: #000;
    --muted: #333;
    --line: #bbb;
  }

  .mesh-report { overflow: visible; }
  .mesh-hero { grid-template-columns: 1fr; padding: 30pt 0; }
  .mesh-hero__evidence { max-width: none; }
  .mesh-structure,
  .mesh-chapter { break-inside: auto; }
  .mesh-stops li,
  .mesh-lineage li,
  .mesh-escape li,
  .mesh-balance__planes section,
  .mesh-sources li { break-inside: avoid; }
  .mesh-chapter .mesh-structure { width: 100%; margin-left: 0; transform: none; }
  .mesh-pressure__field,
  .mesh-stops ol,
  .mesh-lineage__sequence,
  .mesh-escape ol,
  .mesh-balance__planes,
  .mesh-sources ol,
  .mesh-downloads { grid-template-columns: 1fr 1fr; }
  a { color: #000; }
}
