﻿:root {
  --ink: #0d1b3d;
  --text: #344156;
  --muted: #8a98ad;
  --line: #d4dae3;
  --soft: #eef3f9;
  --soft-2: #f7f9fc;
  --blue: #1f5595;
  --blue-deep: #0d1b3d;
  --orange: #ec7a35;
  --orange-soft: #fff2e9;
  --content-x: 20mm;
  --space-2xs: 0.8mm;
  --space-xs: 1.6mm;
  --space-sm: 3mm;
  --space-md: 5mm;
  --space-lg: 7mm;
  --space-xl: 10mm;
  --para-gap: 2.4mm;
  --heading-gap: 3mm;
  --section-gap: 4mm;
  --block-before: 5mm;
  --block-after: 6mm;
  --media-caption-gap: var(--space-xs);
  --table-caption-gap: var(--space-2xs);
  --media-glow: 0 0 0 1px rgba(96, 165, 250, 0.16), 0 8px 22px rgba(13, 27, 61, 0.11), 0 0 18px rgba(96, 165, 250, 0.09);
  --critical: #ab2c2c;
  --high: #fa4747;
  --medium: #d66b1f;
  --low: #b7791f;
  --unknown: #405aa8;
}

@page {
  size: A4;
  margin: 26mm 0 16mm;
  @top-left {
    content: "SORCA";
    margin: 0;
    padding-left: 24mm;
    width: 210mm;
    height: 26mm;
    border-bottom: 0;
    background:
      linear-gradient(#d4dae3, #d4dae3) 0 10mm / 210mm 1px no-repeat,
      linear-gradient(90deg, transparent 0 20mm, #ec7a35 20mm 21mm, transparent 21mm) 0 0 / 210mm 10mm no-repeat;
    box-sizing: border-box;
    color: #0d1b3d;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12pt;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 10mm;
    vertical-align: top;
  }
}

@page cover {
  margin: 0;
  @top-left {
    content: none;
  }
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

html {
  background: #ffffff;
  color: var(--text);
}

body {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 9.7pt;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

body > p,
body > ul,
body > ol:not(.chapter-block),
body > table,
body > .table-wrap,
body > figure,
body > img,
body > .command-card,
body > .callout {
  margin-left: 15mm;
  margin-right: 15mm;
}

p {
  margin: 0 0 8px;
}

a {
  color: var(--blue-deep);
  text-decoration: none;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

.cover {
  position: relative;
  page: cover;
  min-height: 297mm;
  margin: 0 0 18mm;
  padding: 27mm 21mm 18mm;
  box-sizing: border-box;
  overflow: hidden;
  background: #ffffff;
  page-break-after: always;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 92mm;
  background: linear-gradient(115deg, #0b1734 0%, #102b59 53%, #235b9d 100%);
}

.cover::after {
  content: "";
  position: absolute;
  left: 21mm;
  right: 21mm;
  bottom: 18mm;
  height: 1px;
  background: var(--line);
}

.cover-brand {
  position: relative;
  z-index: 1;
  display: block;
  color: #ffffff;
}

.cover-logo {
  display: block;
  width: 95mm;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 1)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 7px rgba(255, 255, 255, 0.62)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.cover table {
  position: relative;
  z-index: 1;
  width: 128mm;
  margin-top: 64mm;
  border: 0;
  border-collapse: collapse;
}

.cover thead,
.cover tbody tr:empty,
.cover tbody tr:nth-child(1),
.cover tbody tr:nth-child(3),
.cover tbody tr:nth-child(5),
.cover tbody tr:nth-child(7),
.cover tbody tr:nth-child(9) {
  display: none;
}

.cover th,
.cover td {
  padding: 0;
  border: 0;
  background: transparent !important;
  text-align: left !important;
}

.cover tbody tr:nth-child(2) td {
  padding-top: 10mm;
  border-top: 1.5mm solid var(--orange);
  color: var(--ink);
  font-size: 23pt;
  line-height: 1.18;
  font-weight: 800;
}

.cover tbody tr:nth-child(2) strong {
  color: var(--ink);
}

.cover tbody tr:nth-child(4) td {
  padding-top: 10mm;
  color: #536177;
  font-size: 12.5pt;
  line-height: 1.35;
  font-weight: 600;
}

.cover tbody tr:nth-child(6) td {
  display: inline-block;
  margin-top: 8mm;
  padding: 3px 17px 5px;
  border-radius: 999px;
  color: var(--orange);
  background: var(--orange-soft) !important;
  font-weight: 700;
}

.cover tbody tr:nth-child(8) td {
  padding-top: 6mm;
  color: var(--muted);
}

.cover-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8mm;
  margin-top: 32mm;
}

.cover-card-grid span {
  min-height: 19mm;
  padding: 7mm 5mm 5mm;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: var(--soft);
  color: #526176;
  text-align: center;
  font-size: 8.5pt;
}

.cover-card-grid b {
  display: block;
  margin-bottom: 3mm;
  color: var(--ink);
  font-size: 13pt;
}

.severity-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4mm;
  margin-top: 10mm;
}

.severity-strip span {
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 7.5pt;
  font-weight: 700;
  text-align: center;
}

.severity-critical { color: var(--critical); background: #f1bcbc; }
.severity-high { color: var(--high); background: #f4dada; }
.severity-medium { color: var(--medium); background: #fbdbc5; }
.severity-low { color: var(--low); background: #fdedcd; }
.severity-unknown { color: var(--unknown); background: #e7ecfc; }

.toc {
  min-height: 263mm;
  margin: 17mm 15mm 0;
  page-break-after: always;
}

.toc::before {
  content: "SORCA";
  display: block;
  width: 100%;
  margin-bottom: 10mm;
  padding: 0 0 5mm 4mm;
  border-bottom: 1px solid var(--line);
  border-left: 1mm solid var(--orange);
  color: var(--ink);
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 1px;
  box-sizing: border-box;
}

.toc-title {
  margin: 0 0 10mm;
  color: var(--ink);
  font-size: 24pt;
  line-height: 1.05;
  font-weight: 800;
}

.toc-title::after {
  content: "";
  display: block;
  width: 24mm;
  height: 1mm;
  margin-top: 5mm;
  border-radius: 999px;
  background: var(--orange);
}

.toc p:not(.toc-title) {
  display: grid;
  grid-template-columns: auto 18mm;
  gap: 8mm;
  margin: 0 0 6mm;
  color: #536177;
}

.toc p:not(.toc-title) a {
  display: contents;
  color: inherit;
}

.toc p:not(.toc-title) span {
  justify-self: end;
  color: #61708a;
}

.toc p:nth-of-type(2),
.toc p:nth-of-type(6),
.toc p:nth-of-type(7),
.toc p:nth-of-type(18) {
  color: var(--ink);
  font-weight: 800;
}

body > ol.chapter-block {
  margin: 17mm 15mm 12mm;
  padding: 0;
  list-style: none;
}

body > ol.chapter-block > li {
  margin: 0 0 12mm;
  page-break-before: always;
}

body > ol.chapter-block:first-of-type > li {
  page-break-before: auto;
}

body > ol.chapter-block > li > p:first-child {
  display: flex;
  align-items: center;
  gap: 4mm;
  margin: 0 0 8mm;
  padding-bottom: 4mm;
  border-bottom: 1px solid #e7ebf1;
  color: var(--ink);
  font-size: 21pt;
  line-height: 1.15;
  font-weight: 800;
  break-after: avoid;
}

body > ol.chapter-block > li > p:first-child::before {
  content: attr(data-number);
  display: inline-grid;
  place-items: center;
  flex: 0 0 11mm;
  width: 11mm;
  height: 11mm;
  border-radius: 4px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12pt;
  line-height: 1;
}

body > ol.chapter-block > li > p:first-child::after {
  content: "";
  position: absolute;
  left: 15mm;
  right: 15mm;
  height: 1mm;
  margin-top: 16mm;
  background: linear-gradient(90deg, var(--orange), transparent 62%);
}

body > ol.section-block {
  margin: 9mm 15mm 6mm;
  padding: 0;
  list-style: none;
  break-after: avoid;
}

body > ol.section-block > li {
  display: grid;
  grid-template-columns: 12mm 1fr;
  column-gap: 5mm;
  margin: 0;
}

body > ol.section-block > li > p:first-child {
  grid-column: 2;
  margin: 0;
  color: var(--ink);
  font-size: 14.5pt;
  line-height: 1.25;
  font-weight: 800;
}

body > ol.section-block > li::before {
  content: attr(data-number);
  grid-column: 1;
  grid-row: 1;
  color: var(--ink);
  font-size: 12pt;
  font-weight: 800;
}

body > ol.section-block > li > p:first-child::after {
  content: "";
  grid-column: 2;
  display: block;
  height: 0.8mm;
  width: 58mm;
  margin-top: 2mm;
  background: linear-gradient(90deg, var(--orange), transparent);
}

body > ol.chapter-block > li > ol.section-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

ol.section-list {
  margin: 9mm 0 6mm;
  padding: 0;
  list-style: none;
  break-after: avoid;
}

body > ol.chapter-block > li > ol.section-list > li,
ol.section-list > li.section {
  display: grid;
  grid-template-columns: 11mm 1fr;
  column-gap: 6mm;
  margin: 0 0 8mm;
}

body > ol.chapter-block > li > ol.section-list > li > p:first-child,
ol.section-list > li.section > p:first-child {
  grid-column: 2;
  margin: 0;
  color: var(--ink);
  font-size: 13.5pt;
  line-height: 1.25;
  font-weight: 800;
}

body > ol.chapter-block > li > ol.section-list > li::before,
ol.section-list > li.section::before {
  content: attr(data-number);
  grid-column: 1;
  grid-row: 1;
  color: var(--ink);
  font-size: 12pt;
  font-weight: 800;
}

body > ol.chapter-block > li > ol.section-list > li > p:first-child span,
ol.section-list > li.section > p:first-child span,
.anchor {
  display: none;
}

body > ol.chapter-block > li > ol.section-list > li > p:first-child + *,
ol.section-list > li.section > p:first-child + * {
  grid-column: 1 / -1;
  margin-top: 4mm;
}

body > ol.chapter-block > li > ol.section-list > li > *:not(:first-child),
ol.section-list > li.section > *:not(:first-child) {
  grid-column: 1 / -1;
}

ol.steps-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5mm;
  margin-top: 7mm;
  margin-bottom: 9mm;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

ol.steps-list > li {
  position: relative;
  margin: 0;
  padding: 5mm 5mm 5mm 15mm;
  border: 1px solid #d1d8e2;
  border-radius: 8px;
  background: var(--soft-2);
  counter-increment: step;
  break-inside: avoid;
}

ol.steps-list > li::before {
  content: counter(step);
  position: absolute;
  left: 5mm;
  top: 5mm;
  display: grid;
  place-items: center;
  width: 7mm;
  height: 7mm;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-size: 8pt;
  font-weight: 800;
}

ol.steps-list > li p {
  margin: 0;
}

ol.plain-list {
  margin-top: 4mm;
  margin-bottom: 5mm;
  padding-left: 8mm;
}

ol.plain-list > li {
  break-inside: avoid;
}

ol.plain-list > li::marker {
  color: var(--orange);
  font-weight: 700;
}

ol,
ul {
  padding-left: 18px;
}

ol.steps-list {
  padding-left: 0;
}

li {
  margin-bottom: 5px;
}

ul li::marker {
  color: var(--orange);
}

.table-wrap {
  width: 170mm;
  margin: 5mm auto 7mm;
  text-align: center;
}

table:not(.cover table) {
  display: inline-table;
  width: 100%;
  min-width: 0;
  max-width: 170mm;
  margin: 0 auto;
  border: 1px solid #bfc8d4;
  border-radius: 7px;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
  background: #ffffff;
  table-layout: fixed;
  box-sizing: border-box;
  break-inside: avoid;
  page-break-inside: avoid;
  text-align: left;
}

table.data-table th {
  min-height: 8mm;
  color: #ffffff !important;
}

table.data-table th strong {
  color: #ffffff !important;
}

table.data-table th:empty::after {
  content: "Атрибуты";
  color: #ffffff;
}

table.data-table col {
  width: auto !important;
}

table.data-table th,
table.data-table td {
  width: auto !important;
}

caption {
  caption-side: top;
  padding: 0 0 var(--table-caption-gap);
  color: #536177;
  font-size: 9pt;
  text-align: center;
}

caption p {
  margin: 0;
}

th,
td {
  padding: 8px 10px;
  border-right: 0;
  border-bottom: 1px solid #cfd6df;
  vertical-align: top;
  overflow-wrap: anywhere;
  text-align: left;
}

td p,
th p {
  text-align: left;
}

tr:last-child > th,
tr:last-child > td {
  border-bottom: 0;
}

th {
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
}

tbody tr:nth-child(even) td {
  background: var(--soft-2);
}

img {
  display: block;
  max-width: 100%;
  height: auto !important;
  margin: 7mm auto 8mm;
  border: 1px solid #c8d0da;
  border-radius: 7px;
  background: #ffffff;
}

li img {
  display: inline-block;
  max-height: 17px;
  width: auto;
  margin: 0 3px;
  vertical-align: middle;
  border-radius: 3px;
}

code,
pre {
  font-family: Consolas, "Cascadia Mono", monospace;
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--soft);
  color: #174d8b;
}

pre {
  margin: 0;
  padding: 4mm 5mm;
  border: 0;
  border-radius: 0 0 8px 8px;
  background: #f3f7fb;
  color: #174d8b;
  overflow: auto;
  white-space: pre-wrap;
}

.command-card {
  margin-top: 7mm;
  margin-bottom: 8mm;
  border: 1px solid #c6d0dc;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
}

.command-card-title {
  padding: 4mm 5mm 3mm;
  border-bottom: 1px solid #d8e0ea;
  color: var(--ink);
  background: linear-gradient(90deg, #eef4fb, #f8fafc);
  font-weight: 800;
}

.command-card-title::before {
  content: ">";
  display: inline-grid;
  place-items: center;
  width: 6mm;
  height: 6mm;
  margin-right: 3mm;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-family: Consolas, monospace;
  font-weight: 800;
}

.callout {
  margin-top: 6mm;
  margin-bottom: 7mm;
  padding: 4mm 5mm 4mm 13mm;
  border: 1px solid #f2b268;
  border-radius: 8px;
  background: #fff7d6;
  color: #8a4b0f;
  break-inside: avoid;
  page-break-inside: avoid;
}

.callout::before {
  content: "!";
  position: absolute;
  display: inline-grid;
  place-items: center;
  width: 6mm;
  height: 6mm;
  margin-left: -9mm;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  font-weight: 800;
}

blockquote {
  margin: 8mm 0;
  padding: 5mm 6mm;
  border: 1px solid #f2b268;
  border-radius: 8px;
  background: #fff7d6;
  color: #8a4b0f;
}

/* Final print layout overrides */
.page-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  z-index: 10;
  height: 10mm;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}

.page-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0;
  padding-left: 4mm;
  border-left: 1mm solid var(--orange);
  color: var(--ink);
  font-size: 12pt;
  font-weight: 900;
  letter-spacing: 1px;
}

.screen-nav {
  display: none;
}

body > p,
body > ul,
body > ol:not(.chapter-block),
body > table,
body > .table-wrap,
body > figure,
body > img,
body > .command-card,
body > .callout,
body > .figure-block {
  margin-left: 20mm;
  margin-right: 20mm;
}

p {
  text-align: justify;
}

.toc p,
.cover p,
caption p,
figcaption p,
.command-card p,
.callout,
body > ol.chapter-block > li > p:first-child,
body > ol.section-block > li > p:first-child,
ol.section-list > li.section > p:first-child {
  text-align: left;
}

.cover {
  margin: 0;
  z-index: 20;
  page-break-after: always;
}


body > ol.section-block > li > *:not(:first-child) {
  grid-column: 1 / -1;
}

.cover::after,
.cover-card-grid,
.severity-strip {
  display: none;
}

.toc {
  min-height: auto;
  margin: 0 20mm;
}

.toc::before {
  display: none;
}

.toc-major {
  color: var(--ink) !important;
  font-weight: 900;
}

.toc-minor {
  font-weight: 500;
}

body > ol.chapter-block {
  margin: 0 20mm 12mm;
}

body > ol.chapter-block:first-of-type {
  margin-top: 0;
}

body > ol.chapter-block > li {
  margin-bottom: 10mm;
}

body > ol.chapter-block > li > p:first-child::after {
  left: 20mm;
  right: 20mm;
}

body > ol.section-block {
  margin: 4mm 20mm 6mm;
}

body > ol.section-block > li,
body > ol.chapter-block > li > ol.section-list > li,
ol.section-list > li.section {
  grid-template-columns: 13mm minmax(0, 1fr);
  column-gap: 5mm;
  break-inside: avoid;
}

body > ol.section-block > li > p:first-child,
body > ol.chapter-block > li > ol.section-list > li > p:first-child,
ol.section-list > li.section > p:first-child {
  overflow-wrap: normal;
  word-break: normal;
}

body > ol.chapter-block > li > ol.section-list > li > p:first-child::after,
ol.section-list > li.section > p:first-child::after {
  content: "";
  display: block;
  width: 58mm;
  height: 0.8mm;
  margin-top: 2mm;
  background: linear-gradient(90deg, var(--orange), transparent);
}

p.subsection-heading {
  display: grid;
  grid-template-columns: 18mm minmax(0, 1fr);
  column-gap: 4mm;
  align-items: baseline;
  margin: 7mm 20mm 5mm;
  color: var(--ink);
  font-size: 12pt;
  line-height: 1.25;
  font-weight: 800;
  text-align: left;
}

p.subsection-heading::before {
  content: attr(data-number);
  color: var(--ink);
  font-weight: 800;
}

p.subsection-heading::after {
  content: "";
  display: block;
  grid-column: 2;
  width: 48mm;
  height: 0.7mm;
  margin-top: 1.8mm;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3mm;
  margin-top: 0;
  padding-left: 0;
  list-style: none;
}

.feature-list > li {
  position: relative;
  margin: 0;
  padding: 3.5mm 4mm 3.5mm 9mm;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
  background: var(--soft-2);
  break-inside: avoid;
}

.feature-list > li::before {
  content: "";
  position: absolute;
  left: 4mm;
  top: 5.2mm;
  width: 2mm;
  height: 2mm;
  border-radius: 50%;
  background: var(--orange);
}

.feature-list p {
  margin: 0;
  text-align: left;
}
.feature-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: auto;
  box-sizing: border-box;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.feature-group {
  padding: 0 0 0 5mm;
  border-left: 0.8mm solid rgba(244, 119, 59, 0.72);
  break-inside: avoid;
}

.feature-group-title {
  margin: 0 0 var(--space-xs);
  color: var(--ink);
  font-size: 10.5pt;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

.compact-feature-list {
  columns: 2;
  column-gap: 9mm;
  margin: 0 0 var(--space-md);
  padding-left: 4.5mm;
  list-style: disc;
}

.compact-feature-list > li {
  margin: 0 0 var(--space-xs);
  padding-left: 1mm;
  break-inside: avoid;
  page-break-inside: avoid;
}

.compact-feature-list > li::marker {
  color: var(--orange);
  font-size: 0.9em;
}

.compact-feature-list p {
  margin: 0;
  text-align: left;
}

.detail-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4mm;
  margin: 5mm 0 7mm;
  padding: 0;
  list-style: none;
}

.detail-card-list > li {
  position: relative;
  margin: 0;
  padding: 4mm 5mm 4mm 9mm;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
  background: #f8fafc;
  break-inside: avoid;
}

.detail-card-list > li::before {
  content: "";
  position: absolute;
  left: 4mm;
  top: 5mm;
  width: 2mm;
  height: 2mm;
  border-radius: 50%;
  background: var(--orange);
}

.detail-card-list p,
.scope-card-list p {
  margin: 0;
  text-align: left;
}

.detail-card-list > li > p:first-child {
  color: var(--text);
  font-weight: 600;
}

.detail-card-list ul {
  margin-top: 3mm;
}

.scope-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5mm;
  margin: 3mm 0 0;
  padding: 0;
  list-style: none;
}

.scope-card-list > li {
  margin: 0;
  padding: 3mm 4mm;
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: #ffffff;
}

.filter-list {
  margin: 4mm 0 7mm;
  padding: 0;
  list-style: none;
}

.filter-list > li {
  position: relative;
  margin: 0 0 3mm;
  padding: 3.5mm 4mm 3.5mm 9mm;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
  background: #f8fafc;
  break-inside: auto;
}

.filter-list > li::before {
  content: "";
  position: absolute;
  left: 4mm;
  top: 5mm;
  width: 2mm;
  height: 2mm;
  border-radius: 50%;
  background: var(--orange);
}

.filter-list p {
  margin: 0;
  text-align: left;
}

.feature-list .feature-breakout {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list .feature-breakout,
.feature-list .feature-breakout > li {
  display: block;
  border: 0;
  background: transparent;
}

.feature-list .feature-breakout > li {
  padding: 0;
}

.feature-list .feature-breakout p:first-child {
  display: grid;
  grid-template-columns: 13mm 1fr;
  column-gap: 5mm;
  margin: 2mm 0 5mm;
  color: var(--ink);
  font-size: 13.5pt;
  font-weight: 800;
  line-height: 1.25;
}

.feature-list .feature-breakout p:first-child::before {
  content: attr(data-number);
  grid-column: 1;
  color: var(--ink);
  font-size: 12pt;
}

  .table-wrap {
    width: auto;
    margin: 5mm 20mm 7mm;
    padding-top: 1mm;
    text-align: center;
  }

  table:not(.cover table) {
    display: table;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    table-layout: fixed;
  break-inside: auto;
  page-break-inside: auto;
}

thead {
  display: table-header-group;
}

caption {
  padding-bottom: var(--table-caption-gap);
  color: #536177;
  font-size: 9pt;
  text-align: center;
}

.figure-block {
  margin-top: 5mm;
  margin-bottom: 6mm;
  padding-top: 2mm;
  break-inside: avoid;
  page-break-inside: avoid;
}

.figure-block img {
  display: block;
  max-width: 100%;
  height: auto !important;
  margin: 0 auto var(--media-caption-gap);
  border: 1px solid #c8d0da;
  border-radius: 7px;
}

figcaption {
  break-before: avoid;
  page-break-before: avoid;
  color: #536177;
  font-size: 9pt;
}

p > img {
  display: inline-block;
  max-height: 16px;
  width: auto !important;
  margin: 0 3px;
  border: 0;
  border-radius: 0;
  vertical-align: -3px;
  background: transparent;
}

/* Document rhythm scale: common vertical spacing for text, headings, media, tables, and modules. */
body > p,
body > ul,
body > ol:not(.chapter-block),
body > table,
body > .table-wrap,
body > figure,
body > img,
body > .command-card,
body > .callout,
body > .figure-block,
body > .feature-groups {
  margin-left: var(--content-x);
  margin-right: var(--content-x);
}

p {
  margin-top: 0;
  margin-bottom: var(--para-gap);
}

body > ol.chapter-block {
  margin-left: var(--content-x);
  margin-right: var(--content-x);
  margin-bottom: var(--space-xl);
}

body > ol.chapter-block > li {
  margin-bottom: var(--space-xl);
}

body > ol.chapter-block > li > p:first-child {
  margin-bottom: var(--heading-gap);
  padding-bottom: var(--space-sm);
}

body > ol.section-block,
ol.section-list {
  margin-top: var(--section-gap);
  margin-bottom: var(--block-before);
}

body > ol.section-block > li,
body > ol.chapter-block > li > ol.section-list > li,
ol.section-list > li.section {
  margin-bottom: var(--heading-gap);
}

body > ol.section-block > li > p:first-child + *,
body > ol.chapter-block > li > ol.section-list > li > p:first-child + *,
ol.section-list > li.section > p:first-child + * {
  margin-top: var(--heading-gap);
}

p.subsection-heading {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

ol.plain-list,
ul {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.table-wrap {
  margin-top: var(--block-before);
  margin-bottom: var(--block-after);
}

caption {
  padding-bottom: var(--table-caption-gap);
}

.figure-block {
  margin-top: var(--block-before);
  margin-bottom: var(--block-after);
  padding-top: var(--space-xs);
}

.figure-block img {
  margin-bottom: var(--media-caption-gap);
}

.command-card,
.callout {
  margin-top: var(--block-before);
  margin-bottom: var(--block-after);
}

pre {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.command-card-title {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.feature-list,
.detail-card-list,
.scope-card-list,
.filter-list,
ol.steps-list {
  margin-top: var(--block-before);
  margin-bottom: var(--block-after);
}
@media screen {
  html {
    --screen-nav-width: 328px;
    --screen-nav-gap: 34px;
    --screen-doc-left: calc(50vw - 105mm);
    --screen-nav-fit-width: min(var(--screen-nav-width), max(0px, calc(var(--screen-doc-left) - var(--screen-nav-gap) - 18px)));
    min-height: 100%;
    background: #303030;
    scroll-behavior: smooth;
  }

  body {
    width: 210mm;
    min-height: 100vh;
    margin: 28px auto;
    overflow: visible;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  }

  body::after {
    content: "";
    display: block;
    height: 28mm;
  }

  .screen-nav {
    display: block;
    position: fixed;
    top: 28px;
    left: max(18px, calc(var(--screen-doc-left) - var(--screen-nav-fit-width) - var(--screen-nav-gap)));
    width: var(--screen-nav-fit-width);
    max-height: calc(100vh - 56px);
    padding: 18px 16px;
    overflow: auto;
    overflow-x: hidden;
    border: 1px solid rgba(212, 218, 227, 0.7);
    border-radius: 8px;
    background: rgba(15, 27, 47, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
  }

  .screen-nav-title {
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--orange);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .screen-nav ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .screen-nav li {
    margin: 0;
  }

  .screen-nav a {
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    color: #b9cbe7;
    font-size: 12px;
    line-height: 1.25;
  }

  .screen-nav a:hover,
  .screen-nav a.is-active {
    background: rgba(59, 130, 246, 0.22);
    color: #ffffff;
  }

  .screen-nav-level-1 a {
    margin-top: 8px;
    color: #ffffff;
    font-weight: 800;
  }

  .screen-nav-level-2 a {
    padding-left: 16px;
  }

  .screen-nav-level-3 a {
    padding-left: 26px;
    color: #9cadbf;
    font-size: 11px;
  }

  .screen-nav-level-4 a {
    padding-left: 36px;
    color: #8fa2bc;
    font-size: 11px;
  }

  .cover {
    min-height: 720px;
    margin: 0;
    padding-bottom: 70px;
    border-bottom: 0;
    page-break-after: auto;
  }

  .page-header {
    display: none;
  }

  .page-header-inner {
    width: 100%;
    margin: 0 20mm;
    padding-left: 4mm;
    border-left: 1mm solid var(--orange);
  }

  .toc,
  body > ol.chapter-block {
    margin-left: 20mm;
    margin-right: 20mm;
    padding-top: 12mm;
  }

  .toc {
    min-height: auto;
    padding-bottom: 12mm;
    border-bottom: 1px solid #e7ebf1;
    page-break-after: auto;
  }

  body > ol.chapter-block {
    margin-bottom: 5mm;
    padding-bottom: 0;
    page-break-before: auto;
  }

  body > ol.chapter-block > li {
    margin-bottom: 4mm;
    page-break-before: auto;
  }

  body > ol.chapter-block > li > p:first-child {
    display: grid;
    grid-template-columns: 13mm minmax(0, 1fr);
    column-gap: 5mm;
    row-gap: 2mm;
    align-items: center;
    position: relative;
    margin-bottom: 3mm;
  }

  body > ol.chapter-block > li > p:first-child::after {
    position: static;
    display: block;
    grid-column: 2;
    width: 100%;
    margin-top: 0;
  }

  body > ol.chapter-block > li > p:first-child::before {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body > ol.section-block,
  ol.section-list {
    margin-top: 3mm;
    margin-bottom: 3mm;
  }

  body > ol.section-block > li,
  body > ol.chapter-block > li > ol.section-list > li,
  ol.section-list > li.section {
    margin-bottom: 3mm;
  }

  body > ol.section-block > li > p:first-child + *,
  body > ol.chapter-block > li > ol.section-list > li > p:first-child + *,
  ol.section-list > li.section > p:first-child + * {
    margin-top: 2mm;
  }

  p.subsection-heading {
    margin-top: 4mm;
    margin-bottom: 3mm;
  }

  [id^="_Toc"],
  [id^="_Ref"] {
    scroll-margin-top: 18px;
  }

  ol.plain-list.subheading-list {
    display: block;
    margin: 1mm 0 5mm;
    padding-left: 0 !important;
    list-style: none !important;
  }

  ol.plain-list.subheading-list > li {
    display: flex !important;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    break-inside: auto;
    color: var(--ink);
    font-weight: 800;
  }

  ol.plain-list.subheading-list > li::before {
    content: attr(data-number);
    flex: 0 0 auto;
    color: var(--orange);
    font-weight: 700;
  }

  ol.plain-list.subheading-list > li > p {
    display: inline !important;
    margin: 0 !important;
    text-align: left;
  }

  ol.plain-list.subheading-list > li::marker {
    content: "" !important;
  }


  body > p,
  body > ul,
  body > ol:not(.chapter-block),
  body > table,
  body > .table-wrap,
  body > figure,
  body > img,
  body > .command-card,
  body > .callout,
  body > .figure-block {
    margin-left: 20mm;
    margin-right: 20mm;
  }

  .figure-block {
    margin-top: 5mm;
    margin-bottom: 6mm;
    padding-top: 1mm;
  }

  .figure-block img {
    max-width: 100%;
  }

  .figure-block img,
  .command-card,
  .callout,
  .feature-list > li,
  table.data-table {
    box-shadow: 0 8px 18px rgba(13, 27, 61, 0.06);
  }

  a:hover {
    color: var(--orange);
  }
}
@media screen {
  .screen-nav-toggle,
  .screen-nav-backdrop {
    display: none;
  }

  .screen-nav {
    left: calc(50vw - 105mm - var(--screen-nav-width) - var(--screen-nav-gap));
    width: var(--screen-nav-width);
    z-index: 30;
  }
}

@media screen and (max-width: 1320px) {
  body {
    margin: 18px auto;
  }

  .screen-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1001;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(212, 218, 227, 0.72);
    border-radius: 8px;
    background: rgba(15, 27, 47, 0.96);
    color: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
    cursor: pointer;
  }

  .screen-nav-toggle::before {
    content: "";
    width: 3px;
    height: 20px;
    margin-right: 10px;
    background: var(--orange);
  }

  .screen-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .screen-nav {
    top: 66px;
    left: 18px;
    z-index: 1000;
    width: min(360px, calc(100vw - 36px));
    max-height: calc(100vh - 84px);
    transform: translateX(calc(-100% - 36px));
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body.is-nav-open .screen-nav {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.is-nav-open .screen-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media screen and (max-width: 900px) {
  body {
    width: min(100%, 210mm);
    margin: 0 auto;
    box-shadow: none;
  }

  .cover {
    min-height: 620px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .cover table {
    width: min(128mm, 100%);
  }

  .cover-card-grid,
  .severity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body > p,
  body > ul,
  body > ol:not(.chapter-block),
  body > table,
  body > .table-wrap,
  body > figure,
  body > img,
  body > .command-card,
  body > .callout,
  body > .figure-block,
  .toc,
  body > ol.chapter-block {
    margin-left: 24px;
    margin-right: 24px;
  }

  body > ol.chapter-block > li > p:first-child,
  body > ol.section-block > li,
  body > ol.chapter-block > li > ol.section-list > li,
  ol.section-list > li.section {
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  table.data-table {
    min-width: 620px;
  }
}

@media screen and (max-width: 560px) {
  body {
    font-size: 10pt;
  }

  .cover {
    min-height: 560px;
  }

  .cover-logo {
    width: min(95mm, 82vw);
  }

  .cover tbody tr:nth-child(2) td {
    font-size: 20pt;
  }

  .cover-card-grid,
  .severity-strip {
    grid-template-columns: 1fr;
  }

  body > ol.chapter-block > li > p:first-child {
    font-size: 20pt;
  }

  body > ol.section-block > li > p:first-child,
  body > ol.chapter-block > li > ol.section-list > li > p:first-child,
  ol.section-list > li.section > p:first-child {
    font-size: 13pt;
  }
}

/* Heading hierarchy scale */
body > ol.chapter-block > li > p:first-child {
  display: grid !important;
  grid-template-columns: 13mm minmax(0, 1fr);
  column-gap: 5mm;
  row-gap: 2mm;
  align-items: center;
  font-size: 21pt !important;
  line-height: 1.15;
}

body > ol.chapter-block > li > p:first-child::before {
  grid-column: 1;
  grid-row: 1 / span 2;
}

body > ol.chapter-block > li > p:first-child::after {
  position: static !important;
  display: block;
  grid-column: 2;
  width: 72mm !important;
  height: 1mm !important;
  margin-top: 2mm;
  background: linear-gradient(90deg, var(--orange), transparent);
}

body > ol.section-block > li > p:first-child {
  font-size: 16pt !important;
  line-height: 1.18;
}

body > ol.section-block > li::before {
  font-size: 12pt !important;
}

body > ol.section-block > li > p:first-child::after {
  width: 56mm !important;
  height: 0.85mm !important;
  margin-top: 1.8mm;
}

body > ol.chapter-block > li > ol.section-list > li > p:first-child,
ol.section-list > li.section > p:first-child {
  font-size: 14pt !important;
  line-height: 1.22;
}

body > ol.chapter-block > li > ol.section-list > li::before,
ol.section-list > li.section::before {
  font-size: 11.5pt !important;
}

body > ol.chapter-block > li > ol.section-list > li > p:first-child::after,
ol.section-list > li.section > p:first-child::after {
  width: 44mm !important;
  height: 0.7mm !important;
  margin-top: 1.6mm;
}

p.subsection-heading {
  font-size: 12pt !important;
  line-height: 1.25;
}

p.subsection-heading::before {
  font-size: 11pt !important;
}

p.subsection-heading::after {
  width: 34mm !important;
  height: 0.55mm !important;
  margin-top: 1.4mm;
}


/* Heading level class corrections */
body > ol.section-block > li.heading-level-3 > p:first-child {
  font-size: 14pt !important;
  line-height: 1.22;
}

body > ol.section-block > li.heading-level-3::before {
  font-size: 11.5pt !important;
}

body > ol.section-block > li.heading-level-3 > p:first-child::after {
  width: 44mm !important;
  height: 0.7mm !important;
  margin-top: 1.6mm;
}

body > ol.section-block > li.heading-level-4 > p:first-child,
p.subsection-heading.heading-level-4 {
  font-size: 12pt !important;
  line-height: 1.25;
}

body > ol.section-block > li.heading-level-4::before,
p.subsection-heading.heading-level-4::before {
  font-size: 11pt !important;
}

body > ol.section-block > li.heading-level-4 > p:first-child::after,
p.subsection-heading.heading-level-4::after {
  width: 34mm !important;
  height: 0.55mm !important;
  margin-top: 1.4mm;
}


/* Consistent heading underline grid gap */
body > ol.chapter-block > li > p:first-child,
body > ol.section-block > li > p:first-child,
body > ol.chapter-block > li > ol.section-list > li > p:first-child,
ol.section-list > li.section > p:first-child,
p.subsection-heading {
  row-gap: 0 !important;
}
/* Consistent heading underline offset */
body > ol.chapter-block > li > p:first-child::after,
body > ol.section-block > li > p:first-child::after,
body > ol.chapter-block > li > ol.section-list > li > p:first-child::after,
ol.section-list > li.section > p:first-child::after,
p.subsection-heading::after {
  margin-top: 1.5mm !important;
}
/* Stable screen underline thickness */
body > ol.chapter-block > li > p:first-child::after,
body > ol.section-block > li > p:first-child::after,
body > ol.chapter-block > li > ol.section-list > li > p:first-child::after,
ol.section-list > li.section > p:first-child::after,
p.subsection-heading::after {
  min-height: 3px;
  border-radius: 999px;
}

/* Rounded accent strokes */
.feature-group,
.screen-nav-title,
.page-header-inner {
  border-radius: 999px;
}

.feature-group {
  border-left-style: solid;
}

/* Rounded vertical accent strokes */
.feature-group,
.screen-nav-title,
.page-header-inner {
  position: relative;
  border-left: 0 !important;
}

.feature-group {
  padding-left: 5.8mm;
}

.feature-group::before,
.screen-nav-title::before,
.page-header-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.8mm;
  border-radius: 999px;
  background: var(--orange);
}

.screen-nav-title::before {
  width: 3px;
}

.page-header-inner::before {
  width: 1mm;
}


/* Deep nested list rhythm */
ul ul,
ul ol,
ol ul,
ol ol {
  margin-top: 1.4mm;
  margin-bottom: 1.8mm;
  padding-left: 18px;
}

ul ul > li,
ul ol > li,
ol ul > li,
ol ol > li {
  margin-bottom: 1.2mm;
}

ul ul > li::marker,
ol ul > li::marker {
  color: var(--orange);
  font-size: 0.78em;
}

ul ul ul,
ol ul ul,
ul ol ul,
ol ol ul {
  padding-left: 16px;
}

ul ul ul > li::marker,
ol ul ul > li::marker,
ul ol ul > li::marker,
ol ol ul > li::marker {
  color: #ec7a35;
  font-size: 0.68em;
}

ul ul ul ul,
ol ul ul ul,
ul ol ul ul,
ol ol ul ul {
  padding-left: 14px;
}

ul ul ul ul > li,
ol ul ul ul > li,
ul ol ul ul > li,
ol ol ul ul > li {
  margin-bottom: 0.9mm;
}

ul ul ul ul > li::marker,
ol ul ul ul > li::marker,
ul ol ul ul > li::marker,
ol ol ul ul > li::marker {
  color: #d97706;
  font-size: 0.6em;
}
/* Navigation parent trail, inline terms, and export mode */
@media screen {
  .screen-nav a.is-active-parent {
    background: rgba(96, 165, 250, 0.10);
    color: #d5e4f7;
    box-shadow: inset 3px 0 0 rgba(236, 122, 53, 0.72);
  }

  .screen-nav a.is-active {
    box-shadow: inset 3px 0 0 var(--orange);
  }
}

.term-badge {
  display: inline-block;
  margin: 0 0.08em;
  padding: 0.05em 0.42em 0.08em;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.075);
  color: #1e40af;
  font-size: 0.86em;
  font-weight: 750;
  line-height: 1.25;
  vertical-align: 0.04em;
  white-space: nowrap;
}

.term-security {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(220, 38, 38, 0.075);
  color: #991b1b;
}

.term-infra {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.075);
  color: #1d4ed8;
}

.term-format {
  border-color: rgba(71, 85, 105, 0.22);
  background: rgba(100, 116, 139, 0.075);
  color: #334155;
}

.term-tool {
  border-color: rgba(5, 150, 105, 0.24);
  background: rgba(5, 150, 105, 0.075);
  color: #047857;
}

.term-config {
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(217, 119, 6, 0.09);
  color: #b45309;
}
@media print {
  html,
  body {
    width: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .screen-nav,
  .screen-nav-toggle,
  .screen-nav-backdrop {
    display: none !important;
  }

  body::after {
    content: "";
    display: block;
    height: 18mm;
  }

  .term-badge {
    border-color: rgba(30, 64, 175, 0.28);
    background: rgba(59, 130, 246, 0.055);
    color: #0f172a;
    box-shadow: none;
  }

  .figure-block img,
  table.data-table,
  .command-card,
  .callout {
    box-shadow: none !important;
  }

  .feature-group,
  .command-card,
  .callout,
  .table-wrap,
  .figure-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
/* Main figure glow */
.figure-block img {
  box-shadow: var(--media-glow);
}

@media screen {
  .figure-block img {
    box-shadow: var(--media-glow) !important;
  }
}



@media screen and (max-width: 900px) {
  .compact-feature-list {
    columns: 1;
  }
}















/* Native Pandoc heading adapter */
body > h1,
body > h2,
body > h3,
body > h4 {
  position: relative;
  box-sizing: border-box;
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.16 !important;
  break-after: avoid;
  page-break-after: avoid;
  text-align: left !important;
}

body > h1 {
  display: grid !important;
  grid-template-columns: 13mm minmax(0, 1fr);
  column-gap: 5mm;
  align-items: center;
  margin: var(--space-xl) var(--content-x) var(--space-lg) !important;
  padding: 0 0 var(--space-sm) !important;
  border-bottom: 1px solid var(--line);
  font-size: 24pt !important;
}

body > h1::before {
  content: attr(data-number);
  display: inline-grid;
  place-items: center;
  width: 11mm;
  height: 11mm;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 13pt;
  font-weight: 850;
}

body > h1::after,
body > h2::after,
body > h3::after,
body > h4::after {
  content: "";
  display: block;
  height: 0.85mm;
  margin-top: 1.5mm;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), rgba(239, 117, 55, 0));
}

body > h1::after {
  grid-column: 2;
  width: 58mm;
}

body > h2,
body > h3,
body > h4 {
  display: grid !important;
  grid-template-columns: 13mm minmax(0, 1fr);
  column-gap: 5mm;
  align-items: start;
  margin-left: var(--content-x) !important;
  margin-right: var(--content-x) !important;
  padding: 0 !important;
}

body > h2 {
  margin-top: var(--space-lg) !important;
  margin-bottom: var(--space-sm) !important;
  font-size: 16pt !important;
}

body > h3 {
  margin-top: var(--space-md) !important;
  margin-bottom: var(--space-xs) !important;
  font-size: 14pt !important;
}

body > h4 {
  margin-top: var(--space-sm) !important;
  margin-bottom: var(--space-xs) !important;
  font-size: 12pt !important;
}

body > h2::before,
body > h3::before,
body > h4::before {
  content: attr(data-number);
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 850;
  line-height: 1.16;
}

body > h2::before { font-size: 12pt; }
body > h3::before { font-size: 11.5pt; }
body > h4::before { font-size: 11pt; }

body > h2::after,
body > h3::after,
body > h4::after {
  grid-column: 2;
}

body > h2::after {
  width: 56mm;
  height: 0.85mm;
}

body > h3::after {
  width: 44mm;
  height: 0.7mm;
}

body > h4::after {
  width: 34mm;
  height: 0.55mm;
}

body > h1 + *,
body > h2 + *,
body > h3 + *,
body > h4 + * {
  margin-top: var(--heading-gap) !important;
}

@media screen and (max-width: 760px) {
  body > h1,
  body > h2,
  body > h3,
  body > h4 {
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
  }

  body > h1 {
    font-size: 20pt !important;
  }

  body > h2 {
    font-size: 13pt !important;
  }
}

/* Native heading number labels */
body > h1,
body > h2,
body > h3,
body > h4 {
  grid-auto-flow: row !important;
}

body > h1 .heading-number,
body > h2 .heading-number,
body > h3 .heading-number,
body > h4 .heading-number {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 850;
  line-height: 1.16;
}

body > h1 .heading-number {
  display: inline-grid;
  place-items: center;
  width: 11mm;
  height: 11mm;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 13pt;
}

body > h2 .heading-number { font-size: 12pt; }
body > h3 .heading-number { font-size: 11.5pt; }
body > h4 .heading-number { font-size: 11pt; }

body > h1::before,
body > h2::before,
body > h3::before,
body > h4::before {
  content: none !important;
  display: none !important;
}

body > h2,
body > h3,
body > h4 {
  grid-template-columns: 22mm minmax(0, 1fr) !important;
}

body > h1 > :not(.heading-number),
body > h2 > :not(.heading-number),
body > h3 > :not(.heading-number),
body > h4 > :not(.heading-number) {
  grid-column: 2;
}

body > h1 {
  grid-template-columns: 13mm minmax(0, 1fr) !important;
}

body > h1::after,
body > h2::after,
body > h3::after,
body > h4::after {
  grid-column: 2 !important;
}

/* Draft heading style mapped to native h1-h4 */
body > h1,
body > h2,
body > h3,
body > h4 {
  position: relative !important;
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  break-after: avoid;
  page-break-after: avoid;
}

body > h1 {
  display: grid !important;
  grid-template-columns: 13mm minmax(0, 1fr) !important;
  column-gap: 5mm !important;
  row-gap: 2mm !important;
  align-items: center !important;
  margin: 0 var(--content-x) 10mm !important;
  padding: 12mm 0 4mm !important;
  border-bottom: 1px solid #e7ebf1 !important;
  font-size: 21pt !important;
  line-height: 1.18 !important;
}

body > h1 .heading-number {
  display: inline-grid !important;
  place-items: center !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 11mm !important;
  height: 11mm !important;
  min-width: 11mm !important;
  border-radius: 4px !important;
  background: var(--ink) !important;
  color: #fff !important;
  font-size: 13pt !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body > h1::after {
  content: "" !important;
  display: block !important;
  grid-column: 2 !important;
  position: static !important;
  width: 100% !important;
  height: 1mm !important;
  margin-top: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--orange), transparent 62%) !important;
}

body > h2,
body > h3 {
  display: grid !important;
  grid-template-columns: 13mm minmax(0, 1fr) !important;
  column-gap: 5mm !important;
  row-gap: 0 !important;
  align-items: baseline !important;
  margin-left: var(--content-x) !important;
  margin-right: var(--content-x) !important;
  padding: 0 !important;
  line-height: 1.22 !important;
}

body > h2 {
  margin-top: 4mm !important;
  margin-bottom: 6mm !important;
  font-size: 14.5pt !important;
}

body > h3 {
  margin-top: 4mm !important;
  margin-bottom: 5mm !important;
  font-size: 13.5pt !important;
}

body > h4 {
  display: grid !important;
  grid-template-columns: 18mm minmax(0, 1fr) !important;
  column-gap: 4mm !important;
  row-gap: 0 !important;
  align-items: baseline !important;
  margin: 4mm var(--content-x) 5mm !important;
  padding: 0 !important;
  font-size: 12pt !important;
  line-height: 1.25 !important;
}

body > h2 .heading-number,
body > h3 .heading-number,
body > h4 .heading-number {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 850 !important;
  line-height: inherit !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

body > h2 .heading-number,
body > h3 .heading-number {
  font-size: 12pt !important;
}

body > h4 .heading-number {
  font-size: 11pt !important;
}

body > h1 > :not(.heading-number),
body > h2 > :not(.heading-number),
body > h3 > :not(.heading-number),
body > h4 > :not(.heading-number) {
  grid-column: 2 !important;
}

body > h2::after,
body > h3::after,
body > h4::after {
  content: "" !important;
  display: block !important;
  grid-column: 2 !important;
  height: 0.8mm !important;
  margin-top: 1.5mm !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--orange), transparent) !important;
}

body > h2::after { width: 58mm !important; }
body > h3::after { width: 48mm !important; height: 0.7mm !important; }
body > h4::after { width: 48mm !important; height: 0.7mm !important; }

body > h1::before,
body > h2::before,
body > h3::before,
body > h4::before {
  content: none !important;
  display: none !important;
}

body > h1 + *,
body > h2 + *,
body > h3 + *,
body > h4 + * {
  margin-top: 4mm !important;
}

/* Term palette refinements */
.term-brand {
  border-color: rgba(59, 130, 246, 0.34);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.14), rgba(30, 64, 175, 0.08));
  color: #1e40af;
}

.term-regulatory {
  border-color: rgba(217, 119, 6, 0.30);
  background: rgba(217, 119, 6, 0.095);
  color: #b45309;
}

caption,
figcaption,
caption p,
figcaption p {
  font-weight: 650 !important;
}

/* Fixed heading underline widths by level */
body > h1::after,
body > h2::after,
body > h3::after,
body > h4::after {
  flex: none !important;
  justify-self: start !important;
  min-width: 0 !important;
  max-width: none !important;
}

body > h1::after {
  width: 64mm !important;
  height: 1mm !important;
}

body > h2::after {
  width: 56mm !important;
  height: 0.85mm !important;
}

body > h3::after {
  width: 48mm !important;
  height: 0.7mm !important;
}

body > h4::after {
  width: 38mm !important;
  height: 0.6mm !important;
}

/* H1 underline visual length correction */
body > h1::after {
  width: 82mm !important;
  height: 1mm !important;
  background: linear-gradient(90deg, var(--orange), rgba(239, 117, 55, 0.42) 48%, transparent 100%) !important;
}

/* Test typography experiment */
body {
  font-size: 10.8pt;
  text-wrap: pretty;
}

body > p,
body li,
td,
th {
  line-height: 1.62;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
}

figcaption,
figcaption p {
  text-align: center !important;
  font-weight: 700 !important;
}

caption,
caption p {
  font-weight: 700 !important;
}

.company-footer {
  margin: 18mm var(--content-x) 0;
  padding: 5mm 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8.8pt;
  font-weight: 650;
  text-align: center;
  letter-spacing: 0;
}

@media print {
  .company-footer {
    margin-top: 10mm;
    padding-bottom: 8mm;
  }
}

/* Test table caption offset */
caption,
caption p {
  text-align: left !important;
}

caption {
  padding-left: 4mm !important;
  box-sizing: border-box;
}

/* Test body font size bump */
body {
  font-size: 11.2pt !important;
}

body > p,
body li,
td,
th {
  font-size: 1em;
}

/* Test body font size bump to 13pt */
body {
  font-size: 13pt !important;
}

body > p,
body li,
td,
th {
  font-size: 1em;
}

/* Test heading size bump */
body > h2 {
  font-size: 16pt !important;
}

body > h3 {
  font-size: 15pt !important;
}

body > h4 {
  font-size: 14pt !important;
}

body > h2 .heading-number { font-size: 12.5pt !important; }
body > h3 .heading-number { font-size: 12pt !important; }
body > h4 .heading-number { font-size: 11.5pt !important; }

/* Test heading number size and baseline alignment */
body > h2,
body > h3,
body > h4 {
  align-items: baseline !important;
}

body > h2 .heading-number,
body > h3 .heading-number,
body > h4 .heading-number {
  align-self: baseline !important;
  line-height: inherit !important;
}

body > h2 .heading-number { font-size: 16pt !important; }
body > h3 .heading-number { font-size: 15pt !important; }
body > h4 .heading-number { font-size: 14pt !important; }

/* Test two-side footer */
.company-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12mm;
  text-align: left !important;
}

.company-footer-right {
  margin-left: auto;
  text-align: right;
}

/* Test two-sided company footer */
.company-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8mm;
  text-align: left !important;
}

.company-footer-left,
.company-footer-right {
  white-space: nowrap;
}

.company-footer-right {
  text-align: right;
}

/* Test footer emphasis */
.company-footer {
  margin-top: 28mm !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  color: var(--orange) !important;
  font-size: 11.5pt !important;
  font-weight: 800 !important;
}

.company-footer-left,
.company-footer-right {
  color: var(--orange) !important;
}

@media print {
  .company-footer {
    margin-top: 22mm !important;
    padding-bottom: 0 !important;
  }
}

/* Test footer content-width alignment */
.company-footer {
  margin-left: var(--content-x) !important;
  margin-right: var(--content-x) !important;
  width: auto !important;
  max-width: none !important;
}

/* Test mobile alignment fix */
@media screen and (max-width: 760px) {
  body > h1,
  body > h2,
  body > h3,
  body > h4 {
    margin-left: var(--content-x) !important;
    margin-right: var(--content-x) !important;
    text-align: left !important;
    justify-items: start !important;
    justify-content: stretch !important;
  }

  body > h1 {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }

  body > h2,
  body > h3,
  body > h4 {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  body > h1 > :not(.heading-number),
  body > h2 > :not(.heading-number),
  body > h3 > :not(.heading-number),
  body > h4 > :not(.heading-number) {
    text-align: left !important;
    justify-self: start !important;
  }

  body > h1::after,
  body > h2::after,
  body > h3::after,
  body > h4::after {
    justify-self: start !important;
  }

  .company-footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: calc(100% - (var(--content-x) * 2)) !important;
    margin-left: var(--content-x) !important;
    margin-right: var(--content-x) !important;
    text-align: left !important;
  }

  .company-footer-left {
    text-align: left !important;
  }

  .company-footer-right {
    margin-left: auto !important;
    text-align: right !important;
  }
}

/* Test tablet/mobile forced edge alignment */
@media screen and (max-width: 1400px) {
  body > h1,
  body > h2,
  body > h3,
  body > h4 {
    margin-left: 12mm !important;
    margin-right: 12mm !important;
    text-align: left !important;
    justify-items: start !important;
    justify-content: stretch !important;
    place-content: initial !important;
  }

  body > h1 {
    grid-template-columns: 14mm minmax(0, 1fr) !important;
  }

  body > h2,
  body > h3,
  body > h4 {
    grid-template-columns: 18mm minmax(0, 1fr) !important;
  }

  body > h1 .heading-number,
  body > h2 .heading-number,
  body > h3 .heading-number,
  body > h4 .heading-number {
    justify-self: start !important;
    text-align: left !important;
  }

  body > h1 > :not(.heading-number),
  body > h2 > :not(.heading-number),
  body > h3 > :not(.heading-number),
  body > h4 > :not(.heading-number) {
    justify-self: start !important;
    text-align: left !important;
    max-width: 100% !important;
  }

  body > h1::after,
  body > h2::after,
  body > h3::after,
  body > h4::after {
    justify-self: start !important;
    margin-left: 0 !important;
  }

  .company-footer {
    margin-left: 12mm !important;
    margin-right: 12mm !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    justify-content: space-between !important;
    text-align: left !important;
  }

  .company-footer-left {
    margin-right: auto !important;
    text-align: left !important;
  }

  .company-footer-right {
    margin-left: auto !important;
    text-align: right !important;
  }
}

/* Test unified responsive content line */
@media screen {
  :root {
    --content-x: clamp(18px, 7vw, 20mm);
  }

  body > h1,
  body > h2,
  body > h3,
  body > h4,
  .company-footer {
    margin-left: var(--content-x) !important;
    margin-right: var(--content-x) !important;
    box-sizing: border-box !important;
  }

  .company-footer {
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: clamp(12px, 4vw, 8mm) !important;
    overflow: hidden !important;
  }

  .company-footer-left,
  .company-footer-right {
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .company-footer-left {
    text-align: left !important;
  }

  .company-footer-right {
    margin-left: auto !important;
    text-align: right !important;
  }
}

@media screen and (max-width: 900px) {
  body {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body > h1 {
    grid-template-columns: clamp(48px, 13vw, 62px) minmax(0, 1fr) !important;
    column-gap: clamp(14px, 4vw, 22px) !important;
    font-size: clamp(25px, 7vw, 38px) !important;
    text-align: left !important;
    justify-items: start !important;
  }

  body > h2,
  body > h3,
  body > h4 {
    grid-template-columns: clamp(54px, 14vw, 72px) minmax(0, 1fr) !important;
    column-gap: clamp(12px, 4vw, 20px) !important;
    text-align: left !important;
    justify-items: start !important;
  }

  body > h2 { font-size: clamp(22px, 5.8vw, 31px) !important; }
  body > h3 { font-size: clamp(20px, 5.2vw, 28px) !important; }
  body > h4 { font-size: clamp(18px, 4.8vw, 25px) !important; }

  body > h1 .heading-number,
  body > h2 .heading-number,
  body > h3 .heading-number,
  body > h4 .heading-number,
  body > h1 > :not(.heading-number),
  body > h2 > :not(.heading-number),
  body > h3 > :not(.heading-number),
  body > h4 > :not(.heading-number),
  body > h1::after,
  body > h2::after,
  body > h3::after,
  body > h4::after {
    justify-self: start !important;
    text-align: left !important;
  }

  .company-footer {
    font-size: clamp(13px, 3.8vw, 20px) !important;
  }
}

@media screen and (max-width: 520px) {
  :root {
    --content-x: clamp(14px, 5vw, 22px);
  }

  .company-footer {
    gap: 10px !important;
    font-size: clamp(12px, 3.5vw, 16px) !important;
  }
}

/* Test final consistent content rail */
@media screen {
  :root {
    --content-x: clamp(24px, 6vw, 20mm);
  }

  body > h1,
  body > h2,
  body > h3,
  body > h4,
  body > p,
  body > ul,
  body > ol,
  body > pre,
  body > blockquote,
  body > figure,
  body > table,
  body > .table-wrap,
  body > .command-card,
  body > .warning-card,
  body > .note-card,
  body > .company-footer {
    margin-left: var(--content-x) !important;
    margin-right: var(--content-x) !important;
    max-width: calc(100% - (var(--content-x) * 2)) !important;
    box-sizing: border-box !important;
  }

  body > h1,
  body > h2,
  body > h3,
  body > h4 {
    width: auto !important;
    text-align: left !important;
    justify-content: stretch !important;
    justify-items: start !important;
    place-content: initial !important;
  }

  body > h1 {
    grid-template-columns: clamp(42px, 8vw, 13mm) minmax(0, 1fr) !important;
    column-gap: clamp(14px, 3vw, 5mm) !important;
  }

  body > h2,
  body > h3,
  body > h4 {
    grid-template-columns: clamp(48px, 9vw, 22mm) minmax(0, 1fr) !important;
    column-gap: clamp(12px, 3vw, 5mm) !important;
  }

  body > h1 .heading-number,
  body > h2 .heading-number,
  body > h3 .heading-number,
  body > h4 .heading-number,
  body > h1 > :not(.heading-number),
  body > h2 > :not(.heading-number),
  body > h3 > :not(.heading-number),
  body > h4 > :not(.heading-number),
  body > h1::after,
  body > h2::after,
  body > h3::after,
  body > h4::after {
    justify-self: start !important;
    text-align: left !important;
  }

  .company-footer {
    width: auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .company-footer-left,
  .company-footer-right {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .company-footer-left {
    text-align: left !important;
  }

  .company-footer-right {
    margin-left: auto !important;
    text-align: right !important;
  }
}

@media screen and (max-width: 520px) {
  :root {
    --content-x: 18px;
  }

  .company-footer {
    font-size: 12.5px !important;
    gap: 8px !important;
  }
}

/* Test heading number rail by heading depth */
@media screen {
  body > h2 {
    grid-template-columns: clamp(38px, 7vw, 14mm) minmax(0, 1fr) !important;
    column-gap: clamp(10px, 2.5vw, 4mm) !important;
  }

  body > h3 {
    grid-template-columns: clamp(46px, 8vw, 18mm) minmax(0, 1fr) !important;
    column-gap: clamp(10px, 2.5vw, 4mm) !important;
  }

  body > h4 {
    grid-template-columns: clamp(54px, 9vw, 22mm) minmax(0, 1fr) !important;
    column-gap: clamp(10px, 2.5vw, 4mm) !important;
  }
}

/* Release responsive polish: stable headings, figure refs, mobile tables */
@media screen {
  :root {
    --content-x: clamp(24px, 6vw, 20mm);
  }

  body {
    overflow-x: hidden !important;
  }

  body > p,
  body > li,
  body li,
  body > ul,
  body > ol {
    text-align: left !important;
    word-spacing: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .term-badge {
    white-space: nowrap !important;
  }

  body > h1,
  body > h2,
  body > h3,
  body > h4,
  body > p,
  body > ul,
  body > ol,
  body > pre,
  body > blockquote,
  body > figure,
  body > .table-wrap,
  body > .command-card,
  body > .callout,
  body > .company-footer {
    margin-left: var(--content-x) !important;
    margin-right: var(--content-x) !important;
    max-width: calc(100% - (var(--content-x) * 2)) !important;
    box-sizing: border-box !important;
  }

  body > h1,
  body > h2,
  body > h3,
  body > h4 {
    width: auto !important;
    justify-content: stretch !important;
    justify-items: start !important;
    place-content: initial !important;
    text-align: left !important;
  }

  body > h1 {
    grid-template-columns: clamp(42px, 8vw, 13mm) minmax(0, 1fr) !important;
    column-gap: clamp(14px, 3vw, 5mm) !important;
  }

  body > h2 {
    grid-template-columns: clamp(38px, 7vw, 14mm) minmax(0, 1fr) !important;
    column-gap: clamp(10px, 2.5vw, 4mm) !important;
  }

  body > h3 {
    grid-template-columns: clamp(46px, 8vw, 18mm) minmax(0, 1fr) !important;
    column-gap: clamp(10px, 2.5vw, 4mm) !important;
  }

  body > h4 {
    grid-template-columns: clamp(54px, 9vw, 22mm) minmax(0, 1fr) !important;
    column-gap: clamp(10px, 2.5vw, 4mm) !important;
  }

  body > h2 .heading-number { font-size: 16pt !important; }
  body > h3 .heading-number { font-size: 15pt !important; }
  body > h4 .heading-number { font-size: 14pt !important; }

  body > h1 .heading-number,
  body > h2 .heading-number,
  body > h3 .heading-number,
  body > h4 .heading-number,
  body > h1 > :not(.heading-number),
  body > h2 > :not(.heading-number),
  body > h3 > :not(.heading-number),
  body > h4 > :not(.heading-number),
  body > h1::after,
  body > h2::after,
  body > h3::after,
  body > h4::after {
    justify-self: start !important;
    text-align: left !important;
  }

  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table {
    min-width: 640px;
  }
}

@media screen and (max-width: 900px) {
  :root {
    --content-x: clamp(16px, 5vw, 28px);
  }

  .screen-nav {
    position: static !important;
    width: auto !important;
    max-width: calc(100% - (var(--content-x) * 2)) !important;
    margin: 12px var(--content-x) 18px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .screen-nav nav,
  .screen-nav .screen-nav-panel {
    max-height: 42vh !important;
    overflow: auto !important;
  }

  body > h1 { font-size: clamp(25px, 7vw, 38px) !important; }
  body > h2 { font-size: clamp(22px, 5.8vw, 31px) !important; }
  body > h3 { font-size: clamp(20px, 5.2vw, 28px) !important; }
  body > h4 { font-size: clamp(18px, 4.8vw, 25px) !important; }

  body > h2 .heading-number { font-size: clamp(22px, 5.8vw, 31px) !important; }
  body > h3 .heading-number { font-size: clamp(20px, 5.2vw, 28px) !important; }
  body > h4 .heading-number { font-size: clamp(18px, 4.8vw, 25px) !important; }
}

@media screen and (max-width: 520px) {
  :root {
    --content-x: 16px;
  }

  .table-wrap {
    margin-left: var(--content-x) !important;
    margin-right: var(--content-x) !important;
    max-width: calc(100vw - (var(--content-x) * 2)) !important;
  }

  .company-footer {
    font-size: 12.5px !important;
    gap: 8px !important;
  }
}

/* Release restore semantic feature groups and readable justification */
@media screen {
  body > p,
  body > section:not(.cover) > p {
    text-align: justify !important;
    text-justify: inter-word;
    word-spacing: normal !important;
  }

  .feature-groups,
  .feature-groups p,
  .feature-group,
  .feature-group-title,
  .compact-feature-list,
  .compact-feature-list p,
  .steps-list,
  .steps-list p,
  .command-card,
  .command-card p,
  .callout,
  caption,
  figcaption,
  .toc,
  .cover,
  .screen-nav,
  table,
  th,
  td {
    text-align: left !important;
  }

  .feature-groups {
    margin-left: var(--content-x) !important;
    margin-right: var(--content-x) !important;
    max-width: calc(100% - (var(--content-x) * 2)) !important;
  }
}

@media screen and (max-width: 900px) {
  body > p,
  body > section:not(.cover) > p {
    text-align: left !important;
  }

  .compact-feature-list {
    columns: 1 !important;
  }
}

/* Release scroll safety for browser zoom */
@media screen {
  html {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
  }

  body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
  }

  .table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  .screen-nav {
    overscroll-behavior: contain;
  }
}

@media screen and (max-width: 900px) {
  html {
    overflow-y: auto !important;
    overflow-x: auto !important;
  }

  body {
    overflow-y: visible !important;
    overflow-x: visible !important;
  }
}

/* Release hard scroll fix for zoomed viewports */
@media screen {
  html,
  body {
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-y: auto !important;
  }

  body {
    position: relative !important;
    display: block !important;
  }
}

@media screen and (max-width: 1320px) {
  .screen-nav {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: calc(100% - (var(--content-x) * 2)) !important;
    max-height: none !important;
    margin: 12px var(--content-x) 18px !important;
    overflow: visible !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .screen-nav-list {
    max-height: none !important;
    overflow: visible !important;
  }

  .screen-nav-toggle,
  .screen-nav-backdrop {
    display: none !important;
    pointer-events: none !important;
  }

  body.is-nav-open .screen-nav-backdrop {
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

/* Release final scroll fix: keep document scrolling at every zoom level */
@media screen {
  html,
  body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
  }

  body {
    position: relative !important;
    overflow-x: visible !important;
  }

  .screen-nav-backdrop {
    pointer-events: none !important;
  }

  body.is-nav-open .screen-nav-backdrop {
    pointer-events: auto !important;
  }
}

@media screen and (max-width: 1320px) {
  .screen-nav {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
  }
}

@media screen and (max-width: 900px) {
  html,
  body {
    overflow-y: auto !important;
  }

  .screen-nav-toggle {
    position: sticky !important;
    top: 10px !important;
    left: auto !important;
    margin: 10px var(--content-x) !important;
    z-index: 20 !important;
  }

  .screen-nav {
    display: none !important;
    position: static !important;
    width: auto !important;
    max-width: calc(100% - (var(--content-x) * 2)) !important;
    margin: 0 var(--content-x) 16px !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.is-nav-open .screen-nav {
    display: block !important;
  }

  .screen-nav-backdrop {
    display: none !important;
  }
}

/* Release scroll fix v2: avoid putting the whole nav into document flow on browser zoom */
@media screen and (min-width: 901px) and (max-width: 1320px) {
  .screen-nav {
    display: block !important;
    position: fixed !important;
    top: 18px !important;
    left: 18px !important;
    width: min(300px, calc(100vw - 36px)) !important;
    max-height: calc(100vh - 36px) !important;
    margin: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overscroll-behavior: contain !important;
  }

  .screen-nav-toggle,
  .screen-nav-backdrop {
    display: none !important;
    pointer-events: none !important;
  }
}

@media screen and (max-width: 900px) {
  body {
    overflow-x: hidden !important;
  }

  .screen-nav-toggle {
    display: inline-flex !important;
  }

  body:not(.is-nav-open) .screen-nav {
    display: none !important;
  }

  body.is-nav-open .screen-nav {
    display: block !important;
  }
}

/* Release scroll fix v3: collapsible nav on zoomed and mobile layouts */
@media screen and (max-width: 1320px) {
  .screen-nav-toggle {
    display: inline-flex !important;
    position: fixed !important;
    top: 18px !important;
    left: 18px !important;
    z-index: 1100 !important;
  }

  .screen-nav {
    display: block !important;
    position: fixed !important;
    top: 68px !important;
    left: 18px !important;
    width: min(360px, calc(100vw - 36px)) !important;
    max-height: calc(100vh - 92px) !important;
    margin: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateX(-115%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overscroll-behavior: contain !important;
  }

  body.is-nav-open .screen-nav {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .screen-nav-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 999 !important;
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.is-nav-open .screen-nav-backdrop {
    pointer-events: auto !important;
  }
}

@media screen and (max-width: 900px) {
  .screen-nav-toggle {
    top: 10px !important;
    left: var(--content-x) !important;
    margin: 0 !important;
  }

  .screen-nav {
    top: 58px !important;
    left: var(--content-x) !important;
    width: calc(100vw - (var(--content-x) * 2)) !important;
    max-width: 360px !important;
    max-height: calc(100vh - 76px) !important;
  }
}

/* Release nav failsafe open state */
@media screen and (max-width: 1320px) {
  .screen-nav.is-open {
    display: block !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Release nav click fix: the toggle must stay clickable after zoom/mobile overrides */
@media screen and (max-width: 1320px) {
  .screen-nav-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  .screen-nav-toggle * {
    pointer-events: none !important;
  }
}

/* Release icon alignment fix for command cards and callouts */
.command-card-title {
  display: flex !important;
  align-items: center !important;
}

.command-card-title::before {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 6mm !important;
  width: 6mm !important;
  height: 6mm !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  transform: translateY(-0.15mm) !important;
}

.callout {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 12mm !important;
}

.callout::before {
  position: absolute !important;
  left: 5mm !important;
  top: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 6mm !important;
  height: 6mm !important;
  margin-left: 0 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}

/* Release callout and responsive nav correction */
.callout {
  display: block !important;
  position: relative !important;
  min-height: 0 !important;
  padding: 4mm 5mm 4mm 13mm !important;
}

.callout::before {
  position: absolute !important;
  left: 5mm !important;
  top: 4mm !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 6mm !important;
  height: 6mm !important;
  margin-left: 0 !important;
  line-height: 1 !important;
  transform: none !important;
}

@media screen and (max-width: 1600px) {
  .screen-nav-toggle {
    display: inline-flex !important;
    position: fixed !important;
    top: 18px !important;
    left: 18px !important;
    z-index: 1100 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  .screen-nav {
    display: block !important;
    position: fixed !important;
    top: 68px !important;
    left: 18px !important;
    width: min(360px, calc(100vw - 36px)) !important;
    max-height: calc(100vh - 92px) !important;
    margin: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateX(-115%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overscroll-behavior: contain !important;
  }

  body.is-nav-open .screen-nav,
  .screen-nav.is-open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .screen-nav-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 999 !important;
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.is-nav-open .screen-nav-backdrop {
    pointer-events: auto !important;
  }
}

@media screen and (min-width: 1601px) {
  .screen-nav-toggle,
  .screen-nav-backdrop {
    display: none !important;
    pointer-events: none !important;
  }

  .screen-nav {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Release stable nav toggle appearance at every zoom level */
@media screen {
  .screen-nav-toggle {
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(212, 218, 227, 0.72) !important;
    border-radius: 8px !important;
    background: rgba(15, 27, 47, 0.96) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
    font-family: var(--font-display) !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  .screen-nav-toggle::before {
    content: "" !important;
    display: block !important;
    flex: 0 0 3px !important;
    width: 3px !important;
    height: 20px !important;
    border-radius: 999px !important;
    background: var(--orange) !important;
  }
}

/* Release nav link click fix */
@media screen and (max-width: 1600px) {
  .screen-nav {
    z-index: 1090 !important;
  }

  .screen-nav a,
  .screen-nav-list,
  .screen-nav li {
    pointer-events: auto !important;
  }

  .screen-nav-backdrop {
    z-index: 1080 !important;
  }

  .screen-nav-toggle {
    z-index: 1100 !important;
  }
}

/* Release table caption alignment */
.table-wrap caption,
.table-wrap caption p {
  text-align: left !important;
}

.table-wrap caption {
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Release table caption safe inset */
.table-wrap {
  --table-edge-inset: 3mm;
}

.table-wrap caption {
  padding-left: var(--table-edge-inset) !important;
  padding-right: var(--table-edge-inset) !important;
}

.table-wrap table.data-table {
  border-left: var(--table-edge-inset) solid transparent !important;
  background-clip: padding-box !important;
}

.table-wrap table.data-table th:first-child,
.table-wrap table.data-table td:first-child {
  padding-left: calc(3.5mm + var(--table-edge-inset)) !important;
}
