/* ============================================================
   SPACECRAFT INTEGRATION & TEST — SERIES STYLESHEET
   Shared across all articles in the series.
   ============================================================ */

/* ── RESET & VARIABLES ── */
:root {
  --ink: #1a1814;
  --paper: #f5f0e8;
  --cream: #ede7d5;
  --light: #f0ede6;
  --rust: #b84a2e;
  --gold: #c89a3a;
  --steel: #4a6274;
  --steel-light: #6e8fa3;
  --muted: #6b6459;
  --rule: #c8bfae;
  --white: #ffffff;
  --green: #2e7d52;
  --deep-blue: #1e3a5f;
  --charcoal: #2c2c2c;
  --amber: #b87420;
  --violet: #5a3a7a;
  --near-black: #0e0e0e;
  --cold: #1a3a4e;
  --hot: #5e1a08;
  --red-dark: #8b0000;
  --teal: #1a3a4e;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.78;
}


/* ── MASTHEAD ── */
.masthead {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 32px;
  border-bottom: 3px solid var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 6px;
}
.masthead span { color: var(--gold); }
.masthead-series { color: var(--gold); }
.masthead-right { color: #666; }


/* ── SERIES NAV ── */
.series-nav {
  background: var(--steel);
  padding: 9px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8cdd8;
  flex-wrap: wrap;
}
.series-nav .current { color: #fff; font-weight: 500; }
.series-nav .sep { color: #4a6a7a; }


/* ── HERO ── */
.hero {
  background: var(--near-black);
  padding: 72px 40px 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 38px,
    rgba(200, 154, 58, 0.035) 38px,
    rgba(200, 154, 58, 0.035) 39px
  );
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--steel) 50%, var(--gold) 100%);
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--paper);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: #9a9080;
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.6;
}


/* ── BYLINE ── */
.byline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(200, 154, 58, 0.28);
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.04);
}
.byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.byline-text { text-align: left; }
.byline-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--paper);
  letter-spacing: 0.05em;
}
.byline-title {
  font-size: 11px;
  color: rgba(240, 235, 220, 0.55);
  font-style: italic;
}


/* ── CONTAINER ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}


/* ── ARTICLE BODY ── */
.article-body {
  padding: 60px 0 80px;
}
.article-body > p {
  margin-bottom: 1.55em;
  font-weight: 300;
}
.article-body p {
  margin-bottom: 1.6em;
  font-weight: 300;
}

/* Drop cap for first paragraph (used in some articles) */
.article-body.drop-cap p:first-child::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4.2em;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  margin: 0.06em 0.1em 0 0;
  color: var(--rust);
}

/* Lead paragraph */
.lead {
  font-size: 1.08rem;
  color: var(--muted);
  font-style: italic;
  border-left: 3px solid var(--rule);
  padding-left: 18px;
  margin-bottom: 2em;
}


/* ── HEADINGS ── */
h2.sh,
h2.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin: 3em 0 0.7em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rule);
  position: relative;
  scroll-margin-top: 80px;
}
h2.sh::after,
h2.section-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--rust);
}

h3.ssh {
  font-family: 'Playfair Display', serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--steel);
  margin: 2.2em 0 0.6em;
  scroll-margin-top: 80px;
}

h3.cs-sh {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--steel);
  margin: 2em 0 0.55em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
h3.cs-sh:first-child { margin-top: 0; }


/* ── PULL QUOTES ── */
.pull-quote {
  border-left: 4px solid var(--gold);
  margin: 2.6em 0 2.6em -4px;
  padding: 6px 0 6px 28px;
}
.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--steel);
}


/* ── CALLOUT BOXES ── */
.callout {
  border: 1px solid var(--rule);
  border-top-width: 3px;
  padding: 22px 26px;
  margin: 2.4em 0;
  background: var(--cream);
}
.callout.steel   { border-top-color: var(--steel); }
.callout.gold    { border-top-color: var(--gold); }
.callout.rust    { border-top-color: var(--rust); }
.callout.green   { border-top-color: var(--green); }
.callout.blue    { border-top-color: var(--deep-blue); }
.callout.amber   { border-top-color: var(--amber); }
.callout.violet  { border-top-color: var(--violet); }
.callout.teal    { border-top-color: var(--teal); }

.callout-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.callout.steel  .callout-label { color: var(--steel); }
.callout.gold   .callout-label { color: #a07c28; }
.callout.rust   .callout-label { color: var(--rust); }
.callout.green  .callout-label { color: var(--green); }
.callout.blue   .callout-label { color: var(--deep-blue); }
.callout.amber  .callout-label { color: var(--amber); }
.callout.violet .callout-label { color: var(--violet); }
.callout.teal   .callout-label { color: var(--teal); }

.callout p {
  font-size: 0.93rem;
  color: #444;
  margin-bottom: 0.7em;
  line-height: 1.7;
}
.callout p:last-child { margin-bottom: 0; }


/* ── BODY LISTS ── */
ul.body-list {
  margin: 0.4em 0 1.4em;
  padding-left: 0;
  list-style: none;
}
ul.body-list li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 0.96rem;
  font-weight: 300;
}
ul.body-list li + li {
  border-top: 1px dashed rgba(200, 191, 174, 0.4);
}
ul.body-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--rust);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.55;
}

ul.cs-list {
  margin: 0.4em 0 1.4em;
  padding-left: 0;
  list-style: none;
}
ul.cs-list li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 0.96rem;
  font-weight: 300;
  border-top: 1px dashed rgba(200, 191, 174, 0.4);
}
ul.cs-list li:first-child { border-top: none; }
ul.cs-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--rust);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.55;
}


/* ── KEY TERMS ── */
.kt,
.key-term {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83em;
  color: var(--steel);
  background: rgba(74, 98, 116, 0.08);
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}


/* ── TAGS ── */
.tag {
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  text-transform: uppercase;
}
.tags,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}


/* ── RISK BADGES ── */
.risk-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 600;
}
.risk-badge.high { background: #fdf0ee; color: var(--rust); border: 1px solid var(--rust); }
.risk-badge.med  { background: #fdf7ec; color: var(--amber); border: 1px solid var(--amber); }
.risk-badge.low  { background: #f0f7f2; color: var(--green); border: 1px solid var(--green); }
.risk-badge.risk-high { background: #fdf0ee; color: var(--rust); border: 1px solid var(--rust); }
.risk-badge.risk-med  { background: #fdf7ec; color: var(--amber); border: 1px solid var(--amber); }
.risk-badge.risk-low  { background: #f0f7f2; color: var(--green); border: 1px solid var(--green); }


/* ── TOC ── */
.toc-wrap {
  background: var(--cream);
  border-left: 4px solid var(--steel);
  padding: 24px 28px;
  margin: 2.6em 0;
}
.toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}
.toc-list { list-style: none; }
.toc-list li {
  padding: 3px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.92rem;
}
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  color: var(--steel);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.toc-list a:hover { color: var(--rust); }
.toc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--rust);
  flex-shrink: 0;
}


/* ── TABLES: GLOSSARY ── */
.gloss-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.88rem;
}
.gloss-table thead tr { background: var(--ink); color: #fff; }
.gloss-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.gloss-table tbody tr { border-bottom: 1px solid var(--rule); }
.gloss-table tbody tr:nth-child(even) { background: var(--light); }
.gloss-table td { padding: 10px 14px; vertical-align: top; }
.gloss-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--steel);
  width: 26%;
  font-weight: 500;
}


/* ── TABLES: SERIES TABLE (Intro) ── */
.series-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.4em 0;
  font-size: 0.92rem;
}
.series-table thead tr { background: var(--ink); color: var(--paper); }
.series-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.series-table tbody tr { border-bottom: 1px solid var(--rule); transition: background 0.15s; }
.series-table tbody tr:hover { background: var(--cream); }
.series-table td { padding: 13px 16px; vertical-align: top; }
.series-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--rust);
  white-space: nowrap;
  font-weight: 500;
}
.series-table td:nth-child(2) { font-weight: 600; color: var(--ink); }
.series-table td:nth-child(3) { color: var(--muted); font-size: 0.88rem; font-style: italic; }


/* ── STAT GRID (Intro) ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 2.4em 0;
}
.stat-cell {
  background: var(--paper);
  padding: 22px 20px;
  text-align: center;
}
.stat-cell p {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0 !important;
}
.number-accent {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}


/* ── MISSION GRAPHIC (Intro) ── */
.mission-graphic {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--ink);
  color: var(--paper);
  padding: 28px 32px;
  margin: 2.8em 0;
  position: relative;
  overflow: hidden;
}
.mission-graphic::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(200, 154, 58, 0.15);
}
.mission-graphic::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(200, 154, 58, 0.1);
}
.mission-icon {
  font-size: 3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.mission-content { position: relative; z-index: 1; }
.mission-content p {
  color: #a09880;
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0 !important;
}
.mission-content strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}


/* ── ORNAMENT ── */
.ornament {
  text-align: center;
  color: var(--rule);
  letter-spacing: 0.5em;
  margin: 2.4em 0;
  font-size: 1.1rem;
}


/* ── NEXT ARTICLE ── */
.next-article {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 32px;
  margin-top: 3em;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--gold);
}
.next-article::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 30px,
    rgba(200, 154, 58, 0.04) 30px,
    rgba(200, 154, 58, 0.04) 31px
  );
}
.next-article-content { position: relative; }
.next-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.next-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--paper);
}
.next-desc {
  font-size: 0.88rem;
  color: #888;
  font-style: italic;
  margin-top: 4px;
}


/* ── ARTICLE NAVIGATOR ── */
.art-nav {
  background: var(--ink);
  padding: 24px 32px;
  margin-top: 3em;
  position: relative;
  overflow: hidden;
}
.art-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 28px,
    rgba(200, 154, 58, 0.04) 28px,
    rgba(200, 154, 58, 0.04) 29px
  );
  pointer-events: none;
}
.art-nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.art-nav-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.art-nav-select-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.art-nav-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--gold);
  pointer-events: none;
}
.art-nav select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(200, 154, 58, 0.3);
  padding: 9px 36px 9px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: #d8d0c0;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.art-nav select:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.11);
}
.art-nav select option { background: #1a1814; color: #d8d0c0; }
.art-nav select optgroup { background: #1a1814; color: rgba(200, 154, 58, 0.7); font-style: normal; }
.art-nav-go {
  background: var(--rust);
  color: var(--paper);
  border: none;
  padding: 9px 20px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.15s;
  white-space: nowrap;
}
.art-nav-go:hover { background: var(--gold); color: var(--ink); }
.art-nav-go:disabled { background: rgba(255, 255, 255, 0.1); color: #666; cursor: default; }


/* ── FOOTER ── */
.article-footer {
  background: var(--cream);
  border-top: 2px solid var(--rule);
  padding: 32px 28px;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-col {
  flex: 1;
  min-width: 180px;
}
.footer-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.footer-text {
  font-size: 0.84rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}


/* ── ARTICLE 01 (I&T Plan): INTEGRATION LEVEL CARDS ── */
.level-cards { margin: 2em 0; }
.level-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0;
  margin-bottom: 2px;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.level-badge {
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px 8px; gap: 6px;
  border-right: 3px solid var(--rust);
}
.level-card.l1 .level-badge { border-right-color: #7a5a2a; }
.level-card.l2 .level-badge { border-right-color: var(--steel); }
.level-card.l3 .level-badge { border-right-color: var(--green); }
.level-card.l4 .level-badge { border-right-color: var(--gold); }
.level-card.l5 .level-badge { border-right-color: var(--rust); }
.level-card.l6 .level-badge { background: var(--steel); border-right-color: var(--gold); }
.lvl-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem; font-weight: 700;
  color: var(--paper); letter-spacing: 0.05em;
}
.lvl-icon { font-size: 1.2rem; line-height: 1; }
.level-body { background: var(--white); padding: 14px 18px; }
.level-card:nth-child(even) .level-body { background: var(--light); }
.level-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--ink); margin-bottom: 5px;
}
.level-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.level-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 2px 7px;
}
.level-card.l6 .level-tag { background: var(--steel); }
.level-desc {
  font-size: 0.88rem; color: #333;
  line-height: 1.65; font-weight: 300;
  margin-bottom: 8px;
}
.level-desc:last-of-type { margin-bottom: 10px; }
.level-tests {
  background: var(--cream);
  border-left: 3px solid var(--rule);
  padding: 8px 12px;
  font-size: 0.82rem; color: var(--muted);
  line-height: 1.6;
}
.level-tests strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--steel);
  margin-bottom: 3px; font-weight: 500;
}


/* ── ARTICLE 01 (I&T Plan): PHASE TABLE ── */
.phase-table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0;
  font-size: 0.86rem;
}
.phase-table thead tr { background: var(--ink); color: var(--paper); }
.phase-table thead th {
  padding: 11px 14px; text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
}
.phase-table tbody tr { border-bottom: 1px solid var(--rule); }
.phase-table tbody tr:nth-child(even) { background: var(--light); }
.phase-table tbody tr:hover { background: var(--cream); }
.phase-table td { padding: 11px 14px; vertical-align: top; line-height: 1.6; color: #333; }
.phase-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  color: var(--rust); white-space: nowrap;
}
.phase-table td:nth-child(2) { font-weight: 700; color: var(--ink); font-size: 0.88rem; }
.phase-table td:last-child {
  font-style: italic; color: var(--muted); font-size: 0.84rem;
  border-left: 2px solid var(--rule);
}
.phase-table tbody tr.phase-d { background: rgba(26, 24, 20, 0.04); }
.phase-table tbody tr.phase-d td:first-child { color: var(--ink); }
.phase-table tbody tr.phase-d td:nth-child(2) { color: var(--rust); }


/* ── ARTICLE 01 (I&T Plan): DOC TABLE ── */
.doc-table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0;
  font-size: 0.86rem;
}
.doc-table thead tr { background: var(--steel); color: var(--paper); }
.doc-table thead th {
  padding: 11px 14px; text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
}
.doc-table thead th:first-child { width: 28%; }
.doc-table tbody tr { border-bottom: 1px solid var(--rule); }
.doc-table tbody tr:nth-child(even) { background: var(--light); }
.doc-table tbody tr:hover { background: var(--cream); }
.doc-table td { padding: 11px 14px; vertical-align: top; line-height: 1.65; }
.doc-table td:first-child {
  font-weight: 700; color: var(--ink);
  font-size: 0.88rem; border-right: 3px solid var(--rule);
}
.doc-table td:last-child { color: #444; font-size: 0.86rem; font-weight: 300; }


/* ── ARTICLE 02 (Cleanroom): ISO TABLE ── */
.iso-table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0;
  font-size: 0.84rem;
}
.iso-table thead tr { background: var(--ink); color: var(--paper); }
.iso-table thead th {
  padding: 10px 12px; text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
}
.iso-table tbody tr { border-bottom: 1px solid var(--rule); }
.iso-table tbody tr:nth-child(even) { background: var(--light); }
.iso-table td { padding: 10px 12px; vertical-align: top; line-height: 1.6; }
.iso-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; color: var(--steel);
}


/* ── ARTICLE 02 (Cleanroom): CONTAMINATION & MONITORING TABLES ── */
.cont-table, .mon-table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0;
  font-size: 0.84rem;
}
.cont-table thead tr, .mon-table thead tr { background: var(--ink); color: var(--paper); }
.cont-table thead th, .mon-table thead th {
  padding: 10px 12px; text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
}
.cont-table tbody tr, .mon-table tbody tr { border-bottom: 1px solid var(--rule); }
.cont-table tbody tr:nth-child(even), .mon-table tbody tr:nth-child(even) { background: var(--light); }
.cont-table td, .mon-table td { padding: 10px 12px; vertical-align: top; line-height: 1.6; }
.cont-table td:first-child, .mon-table td:first-child {
  font-weight: 700; color: var(--ink); font-size: 0.86rem;
}


/* ── ARTICLE 02 (Cleanroom): GOWNING STEPS ── */
.gowning-steps { margin: 2em 0; }
.gown-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0;
  margin-bottom: 2px;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.gown-num {
  background: var(--ink);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  border-right: 3px solid var(--gold);
}
.gown-content { background: var(--white); padding: 12px 16px; }
.gown-step:nth-child(even) .gown-content { background: var(--light); }
.gown-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--ink); margin-bottom: 4px;
}
.gown-desc {
  font-size: 0.86rem; color: #444;
  line-height: 1.6; font-weight: 300;
}


/* ── ARTICLE 02 (Cleanroom): PROTOCOL GRID ── */
.protocol-grid { margin: 2em 0; }
.protocol-card {
  border: 1px solid var(--rule);
  margin-bottom: 16px;
  overflow: hidden;
}
.protocol-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
}
.protocol-icon { font-size: 1.6rem; flex-shrink: 0; }
.protocol-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
}
.protocol-subtitle {
  font-size: 0.8rem; color: #888; font-style: italic;
}
.protocol-body { padding: 16px 18px; background: var(--white); }
.protocol-body p {
  font-size: 0.88rem; color: #333;
  line-height: 1.65; margin-bottom: 12px;
}
.protocol-rules {
  list-style: none; padding: 0; margin: 0;
}
.protocol-rules li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 0.84rem; color: #444;
  line-height: 1.55;
  border-top: 1px dashed rgba(200, 191, 174, 0.3);
}
.protocol-rules li:first-child { border-top: none; }
.protocol-rules li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.8rem;
}


/* ── ARTICLE 03 (Functional Testing): TEST TYPE GRID ── */
.test-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin: 1.8em 0;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.test-card {
  border: 1px solid var(--rule);
  margin: -1px 0 0 -1px;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.test-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--paper);
  height: 90px;
}
.test-card-icon { font-size: 1.3rem; flex-shrink: 0; }
.test-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.92rem; font-weight: 700;
}
.test-card-sub {
  font-size: 0.75rem; color: #888; font-style: italic;
}
.test-card-body {
  padding: 14px; background: var(--white);
  flex: 1 1 auto;
}
.test-card-body p {
  font-size: 0.84rem; color: #333;
  line-height: 1.6; margin-bottom: 0;
}


/* ── ARTICLE 03 (Functional Testing): MODE TABLE ── */
.mode-table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0;
  font-size: 0.84rem;
}
.mode-table thead tr { background: var(--ink); color: var(--paper); }
.mode-table thead th {
  padding: 10px 12px; text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
}
.mode-table tbody tr { border-bottom: 1px solid var(--rule); }
.mode-table tbody tr:nth-child(even) { background: var(--light); }
.mode-table td { padding: 10px 12px; vertical-align: top; line-height: 1.6; }
.mode-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; color: var(--rust); white-space: nowrap;
}

/* ── ARTICLE 03 (Functional Testing): CRITERIA FLOW ── */
.crit-flow { margin: 2.2em 0; border: 1px solid var(--rule); overflow: hidden; }
.crit-flow-header {
  background: var(--ink); color: var(--paper); padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.crit-row {
  display: grid; grid-template-columns: 170px 1fr;
  border-bottom: 1px solid var(--rule); background: var(--white);
}
.crit-row:nth-child(even) { background: var(--light); }
.crit-row:last-child { border-bottom: none; }
.crit-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 10px; border-right: 3px solid var(--rule);
  text-align: center; gap: 5px;
}
.crit-icon { font-size: 1.5rem; line-height: 1; }
.crit-name {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.3;
}

/* type-specific accent colors — this is the block most likely missing */
.crit-row.hard .crit-badge  { border-right-color: var(--rust); }
.crit-row.yr .crit-badge    { border-right-color: var(--amber); }
.crit-row.gng .crit-badge   { border-right-color: var(--green); }
.crit-row.base .crit-badge  { border-right-color: var(--steel); }
.crit-row.cont .crit-badge  { border-right-color: var(--violet); }
.crit-row.hard .crit-name  { color: var(--rust); }
.crit-row.yr .crit-name    { color: var(--amber); }
.crit-row.gng .crit-name   { color: var(--green); }
.crit-row.base .crit-name  { color: var(--steel); }
.crit-row.cont .crit-name  { color: var(--violet); }

.crit-body { padding: 13px 18px; }
.crit-block { margin-bottom: 8px; }
.crit-block:last-child { margin-bottom: 0; }
.crit-block-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel);
  margin-bottom: 4px; font-weight: 700;
}
.crit-block p { font-size: 0.86rem; color: #333; line-height: 1.6; }
.crit-risk {
  background: #fdf7ec;
  border-left: 3px solid var(--amber);
  padding: 9px 12px;
  margin-top: 2px;
}
.crit-risk .crit-block-label { color: var(--amber); }
.crit-risk p { color: #5a4526; }

@media (max-width: 680px) {
  .crit-row { grid-template-columns: 1fr; }
  .crit-badge { flex-direction: row; border-right: none; border-bottom: 3px solid var(--rule); padding: 10px 14px; justify-content: flex-start; }
}

/* ── ARTICLE 03 (Functional Testing): PASS/FAIL TABLE ── */
.pf-table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0;
  font-size: 0.84rem;
}
.pf-table thead tr { background: var(--ink); color: var(--paper); }
.pf-table thead th {
  padding: 10px 12px; text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
}
.pf-table tbody tr { border-bottom: 1px solid var(--rule); }
.pf-table tbody tr:nth-child(even) { background: var(--light); }
.pf-table td { padding: 10px 12px; vertical-align: top; line-height: 1.6; }
.pf-table td:first-child {
  font-weight: 700; color: var(--ink); font-size: 0.86rem;
  width: 18%;
}


/* ── ARTICLE 03 (Functional Testing): SEQUENCE FLOW ── */
.seq-flow { margin: 2.2em 0; border: 1px solid var(--rule); overflow: hidden; }
.seq-flow-header {
  background: var(--ink); color: var(--paper); padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.seq-row {
  display: grid; grid-template-columns: 190px 1fr;
  border-bottom: 1px solid var(--rule); background: var(--white);
}
.seq-row:nth-child(even) { background: var(--light); }
.seq-row:last-child { border-bottom: none; }
.seq-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 10px; border-right: 3px solid var(--rule);
  text-align: center; gap: 5px;
}
.seq-icon { font-size: 1.5rem; line-height: 1; }
.seq-name {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  line-height: 1.3;
}
.seq-row.recur .seq-badge { border-right-color: var(--green); }
.seq-row.recur .seq-name  { color: var(--green); }
.seq-row.mile .seq-badge  { border-right-color: var(--steel); }
.seq-row.mile .seq-name   { color: var(--steel); }
.seq-body { padding: 13px 18px; }
.seq-block { margin-bottom: 8px; }
.seq-block:last-child { margin-bottom: 0; }
.seq-block-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel);
  margin-bottom: 4px; font-weight: 700;
}
.seq-block p { font-size: 0.86rem; color: #333; line-height: 1.6; }
.seq-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 20px;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
   color: var(--paper);
}
.seq-group-label:first-of-type { border-top: none; }
.seq-group-label.recur-label { border-bottom: 5px solid var(--green); }
.seq-group-label.mile-label  { border-bottom: 5px solid var(--steel); }

@media (max-width: 680px) {
  .seq-row { grid-template-columns: 1fr; }
  .seq-badge { flex-direction: row; border-right: none; border-bottom: 3px solid var(--rule); padding: 10px 14px; justify-content: flex-start; }
}

/* ── ARTICLE 03 (Functional Testing): TRACEABILITY DIAGRAM ── */
.trace-diagram {
  border: 1px solid var(--rule);
  margin: 2em 0;
  overflow: hidden;
}
.trace-header {
  background: var(--ink);
  color: var(--gold);
  padding: 12px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.trace-flow { padding: 18px; }
.trace-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  margin-bottom: 4px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--rule);
}
.trace-level-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.trace-level-label.l1 { color: var(--rust); }
.trace-level-label.l2 { color: var(--amber); }
.trace-level-label.l3 { color: var(--steel); }
.trace-level-label.l4 { color: var(--green); }
.trace-content p {
  font-size: 0.84rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 0;
}
.trace-arrow {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  padding: 6px 0;
}


/* ── ARTICLE 03 (Functional Testing): DEVIATION BAR ── */
.deviation-bar {
  border: 1px solid var(--rule);
  margin: 2em 0;
  overflow: hidden;
}
.deviation-bar-header {
  background: var(--ink);
  color: var(--gold);
  padding: 12px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.deviation-items { padding: 0; }
.dev-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}
.dev-item:last-child { border-bottom: none; }
.dev-item.low  { border-left: 4px solid var(--green); }
.dev-item.med  { border-left: 4px solid var(--amber); }
.dev-item.high { border-left: 4px solid var(--rust); }
.dev-item.crit { border-left: 4px solid var(--red-dark); }
.dev-severity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3px;
}
.dev-item.low  .dev-severity { color: var(--green); }
.dev-item.med  .dev-severity { color: var(--amber); }
.dev-item.high .dev-severity { color: var(--rust); }
.dev-item.crit .dev-severity { color: var(--red-dark); }
.dev-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.dev-desc {
  font-size: 0.84rem;
  color: #444;
  line-height: 1.6;
}

/* ── ARTICLE 03 (Functional Testing): MODE FLOW ── */
.mode-flow { margin: 2.2em 0; border: 1px solid var(--rule); overflow: hidden; }
.mode-flow-header {
  background: var(--ink); color: var(--paper); padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.mode-row {
  display: grid; grid-template-columns: 170px 1fr;
  border-bottom: 1px solid var(--rule); background: var(--white);
}
.mode-row:nth-child(even) { background: var(--light); }
.mode-row:last-child { border-bottom: none; }
.mode-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 10px; border-right: 3px solid var(--rule);
  text-align: center; gap: 5px;
}
.mode-icon { font-size: 1.5rem; line-height: 1; }
.mode-name {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.3;
}
.mode-row.launch .mode-badge  { border-right-color: var(--muted); }
.mode-row.acq .mode-badge     { border-right-color: var(--amber); }
.mode-row.safe .mode-badge    { border-right-color: var(--steel); }
.mode-row.normal .mode-badge  { border-right-color: var(--green); }
.mode-row.payload .mode-badge { border-right-color: var(--gold); }
.mode-row.maneuver .mode-badge{ border-right-color: var(--violet); }
.mode-row.contingency .mode-badge { border-right-color: var(--rust); }
.mode-row.launch .mode-name   { color: var(--muted); }
.mode-row.acq .mode-name      { color: var(--amber); }
.mode-row.safe .mode-name     { color: var(--steel); }
.mode-row.normal .mode-name   { color: var(--green); }
.mode-row.payload .mode-name  { color: #a07c28; }
.mode-row.maneuver .mode-name { color: var(--violet); }
.mode-row.contingency .mode-name { color: var(--rust); }
.mode-body { padding: 13px 18px; }
.mode-block { margin-bottom: 8px; }
.mode-block:last-child { margin-bottom: 0; }
.mode-block-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 3px; font-weight: 500;
}
.mode-block p { font-size: 0.86rem; color: #333; line-height: 1.6; }
.mode-block-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel);
  margin-bottom: 4px; font-weight: 700;
}

@media (max-width: 680px) {
  .mode-row { grid-template-columns: 1fr; }
  .mode-badge { flex-direction: row; border-right: none; border-bottom: 3px solid var(--rule); padding: 10px 14px; justify-content: flex-start; }
}


/* ── CS CALLOUT (case study style) ── */
.cs-callout {
  border-left: 4px solid var(--steel);
  padding: 12px 18px;
  margin: 1.4em 0;
  background: var(--cream);
}
.cs-callout-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cs-callout.gold { border-left-color: var(--gold); }
.cs-callout.gold .cs-callout-label { color: #a07c28; }


/* ── ARTICLE 05 (Thermal-Vacuum): THERMAL RANGE ── */
.thermal-range { margin: 2.2em 0; border: 1px solid var(--rule); overflow: hidden; }
.thermal-range-header {
  background: var(--ink); color: var(--paper); padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.thermal-zones { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); }
.tz { padding: 16px 12px; text-align: center; border-right: 1px solid var(--rule); }
.tz:last-child { border-right: none; }
.tz.cold-deep { background: #0a1a2a; }
.tz.cold { background: #1a3a5a; }
.tz.nominal { background: #2a4a3a; }
.tz.hot { background: #5a3a1a; }
.tz.hot-deep { background: #5a1a0a; }
.tz-temp {
  font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700;
  color: #fff; display: block; margin-bottom: 4px; line-height: 1.1;
}
.tz-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); font-style: italic; line-height: 1.4; }
.tz-example {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: rgba(255,255,255,0.35); letter-spacing: 0.06em;
  text-transform: uppercase; margin-top: 6px; display: block;
}

/* ── ARTICLE 05 (Thermal-Vacuum): CHAMBER DIAGRAM ── */
.chamber-diagram {
  margin: 2.2em 0; background: var(--ink); color: var(--paper);
  border: 1px solid var(--rule); overflow: hidden;
}
.chamber-header {
  padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.chamber-content { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.chamber-col { padding: 20px 22px; }
.chamber-col + .chamber-col { border-left: 1px solid rgba(255,255,255,0.1); }
.chamber-col-title {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.chamber-feature {
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; gap: 10px; align-items: flex-start;
}
.chamber-feature:last-child { border-bottom: none; }
.cf-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: rgba(200,154,58,0.8); flex-shrink: 0; width: 80px; padding-top: 2px;
}
.cf-desc { font-size: 0.83rem; color: rgba(255,255,255,0.65); line-height: 1.55; font-weight: 300; }

/* ── ARTICLE 05 (Thermal-Vacuum): TV PHASES ── */
.tv-phases { margin: 2.2em 0; border: 1px solid var(--rule); overflow: hidden; }
.tv-phases-header {
  background: var(--steel); color: #fff; padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.tv-phase-row {
  display: grid; grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--rule); background: var(--white);
}
.tv-phase-row:nth-child(even) { background: var(--light); }
.tv-phase-row:last-child { border-bottom: none; }
.tvp-badge {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 12px; border-right: 2px solid var(--rule);
  flex-direction: column; text-align: center; gap: 4px;
}
.tvp-num {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  font-weight: 600; letter-spacing: 0.1em;
}
.tvp-badge.tb .tvp-num { color: var(--steel); }
.tvp-badge.hot .tvp-num { color: #b84a2e; }
.tvp-badge.cold .tvp-num { color: #2a6080; }
.tvp-badge.cyc .tvp-num { color: var(--gold); }
.tvp-badge.vac .tvp-num { color: var(--green); }
.tvp-badge.func .tvp-num { color: var(--muted); }
.tvp-icon { font-size: 1.3rem; }
.tvp-body { padding: 14px 18px; }
.tvp-title { font-weight: 700; font-size: 0.95rem; color: var(--ink); margin-bottom: 4px; }
.tvp-desc { font-size: 0.87rem; color: #444; line-height: 1.65; font-weight: 300; }

/* ── ARTICLE 05 (Thermal-Vacuum): TEMP TABLE ── */
.temp-table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 0.87rem; }
.temp-table thead tr { background: var(--ink); color: #fff; }
.temp-table thead th {
  padding: 11px 14px; text-align: left;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
}
.temp-table tbody tr { border-bottom: 1px solid var(--rule); }
.temp-table tbody tr:nth-child(even) { background: var(--light); }
.temp-table td { padding: 11px 14px; vertical-align: top; }
.temp-table td:first-child { font-weight: 700; color: var(--ink); width: 24%; }
.temp-table td:nth-child(2) { color: #2a6080; font-weight: 600; width: 16%; }
.temp-table td:nth-child(3) { color: #b84a2e; font-weight: 600; width: 16%; }
.temp-table td:nth-child(4) { color: #2a6080; width: 14%; }
.temp-table td:nth-child(5) { color: #b84a2e; width: 14%; }
.temp-table td:last-child { color: var(--muted); font-style: italic; width: 16%; }
.temp-hdr-cold { color: #7ab8d8 !important; }
.temp-hdr-hot { color: #e8907a !important; }

/* ── ARTICLE 05 (Thermal-Vacuum): FAILURE GRID ── */
.failure-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin: 1.8em 0;
}
.failure-card { border: 1px solid var(--rule); overflow: hidden; }
.failure-card-top { padding: 13px 16px; display: flex; align-items: center; gap: 10px; }
.failure-card.cold-fail .failure-card-top { background: var(--cold); }
.failure-card.hot-fail .failure-card-top { background: var(--hot); }
.failure-card.cycle-fail .failure-card-top { background: #2a1a2e; }
.fc-icon { font-size: 1.5rem; }
.fc-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; color: #fff; }
.fc-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-style: italic; }
.failure-card-body { padding: 14px 16px; background: var(--white); }
.failure-card:nth-child(even) .failure-card-body { background: var(--light); }
.failure-card-body p { font-size: 0.88rem; color: #333; line-height: 1.65; font-weight: 300; }

/* ── ARTICLE 05 (Thermal-Vacuum): INST GRID (T-V instrumentation) ── */
.inst-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin: 1.8em 0;
}

.inst-card { border: 1px solid var(--rule); border-top: 3px solid var(--steel); background: var(--white); padding: 16px; }
.inst-card:nth-child(even) { background: var(--light); }
.inst-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.inst-title { font-family: 'Playfair Display', serif; font-size: 0.98rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.inst-desc { font-size: 0.88rem; color: #333; line-height: 1.65; font-weight: 300; }

/* ── ARTICLE 06 (Anomaly Management): DR FLOW ── */
.dr-flow { margin: 2.2em 0; border: 1px solid var(--rule); overflow: hidden; }
.dr-flow-header {
  background: var(--ink); color: var(--paper); padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.dr-steps { display: flex; background: var(--white); }
.dr-step {
  flex: 1; padding: 16px 12px; border-right: 1px solid var(--rule);
  text-align: center; position: relative;
}
.dr-step:last-child { border-right: none; }
.dr-step-num {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust);
  display: block; margin-bottom: 6px;
}
.dr-step-title { font-weight: 700; font-size: 0.88rem; color: var(--ink); margin-bottom: 5px; }
.dr-step-desc { font-size: 0.78rem; color: var(--muted); font-style: italic; line-height: 1.5; }

/* ── ARTICLE 06 (Anomaly Management): SEVERITY MATRIX ── */
.sev-matrix { margin: 2.2em 0; border: 1px solid var(--rule); overflow: hidden; }
.sev-matrix-header {
  background: var(--ink); color: var(--paper); padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.sev-rows { background: var(--white); }
.sev-row {
  display: grid; grid-template-columns: 100px 1fr 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.sev-row:last-child { border-bottom: none; }
.sev-row.header-row { background: var(--light); }
.sev-cell-label {
  padding: 13px 14px; border-right: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
}
.sev-row.cat1 .sev-cell-label { background: #fdf0ee; color: #8b0000; }
.sev-row.cat2 .sev-cell-label { background: #fdf7ec; color: var(--amber); }
.sev-row.cat3 .sev-cell-label { background: #f0f7f2; color: var(--green); }
.sev-row.cat4 .sev-cell-label { background: #f0f4f8; color: var(--steel); }
.sev-col {
  padding: 13px 14px; border-right: 1px solid var(--rule);
  font-size: 0.85rem; vertical-align: top;
}
.sev-col:last-child { border-right: none; }
.sev-col.hdr {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.sev-col p { font-size: 0.85rem; color: #333; line-height: 1.6; }

/* ── ARTICLE 06 (Anomaly Management): ROOT CAUSE GRID ── */
.rc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; margin: 1.8em 0;
}
.rc-card { border: 1px solid var(--rule); overflow: hidden; background: var(--white); }
.rc-card-header { padding: 13px 16px; display: flex; align-items: center; gap: 10px; }
.rc-card:nth-child(1) .rc-card-header { background: #0f2030; }
.rc-card:nth-child(2) .rc-card-header { background: #1a2010; }
.rc-card:nth-child(3) .rc-card-header { background: #2a1000; }
.rc-card:nth-child(4) .rc-card-header { background: #10102a; }
.rc-card:nth-child(5) .rc-card-header { background: #1a1020; }
.rc-icon { font-size: 1.4rem; flex-shrink: 0; }
.rc-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; color: #fff; }
.rc-sub { font-size: 0.75rem; color: rgba(255,255,255,0.45); font-style: italic; }
.rc-body { padding: 14px 16px; }
.rc-body p { font-size: 0.87rem; color: #333; line-height: 1.65; font-weight: 300; }

/* ── ARTICLE 06 (Anomaly Management): NORMALIZATION TABLE ── */
.norm-table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 0.87rem; }
.norm-table thead tr { background: var(--rust); color: #fff; }
.norm-table thead th {
  padding: 11px 14px; text-align: left;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
}
.norm-table tbody tr { border-bottom: 1px solid var(--rule); }
.norm-table tbody tr:nth-child(even) { background: var(--light); }
.norm-table td { padding: 11px 14px; vertical-align: top; }
.norm-table td:first-child { font-weight: 600; color: var(--ink); width: 22%; }
.norm-table td:nth-child(2) { color: #444; width: 40%; }
.norm-table td:last-child { color: var(--muted); font-style: italic; }

/* ── ARTICLE 06 (Anomaly Management): STATUS BOARD ── */
.status-board {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 2.2em 0;
}
.sb-cell { background: var(--white); padding: 18px 14px; text-align: center; }
.sb-num {
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
  line-height: 1.1; display: block; margin-bottom: 4px;
}
.sb-cell.open .sb-num { color: var(--rust); }
.sb-cell.work .sb-num { color: var(--amber); }
.sb-cell.closed .sb-num { color: var(--green); }
.sb-cell.waived .sb-num { color: var(--steel); }
.sb-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 4px; display: block;
}
.sb-cell p { font-size: 0.79rem; color: var(--muted); font-style: italic; line-height: 1.4; }

/* ── ARTICLE 06 (Anomaly Management): HISTORY TIMELINE ── */
.history-timeline { margin: 2.2em 0; }
.ht-item {
  display: grid; grid-template-columns: 120px 1fr;
  border-left: 3px solid var(--rule); margin-bottom: 0; position: relative;
}
.ht-item::before {
  content: ''; position: absolute; left: -7px; top: 20px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--rule); border: 2px solid var(--paper);
}
.ht-item.critical::before { background: var(--rust); }
.ht-item.notable::before { background: var(--gold); }
.ht-item.positive::before { background: var(--green); }
.ht-year {
  padding: 14px 16px 14px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 600; color: var(--rust); white-space: nowrap;
}
.ht-content { padding: 14px 0 14px 8px; border-left: 1px solid var(--rule); }
.ht-mission { font-weight: 700; font-size: 0.92rem; color: var(--ink); margin-bottom: 3px; }
.ht-desc { font-size: 0.86rem; color: #444; line-height: 1.6; font-weight: 300; }

/* ── ARTICLE 07 (Instruments): INSTRUMENT GRID ── */
.instrument-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0; margin: 2em 0; border: 1px solid var(--rule); overflow: hidden;
}
.inst-card-header { padding: 16px 16px 12px; text-align: center; }
.inst-card:nth-child(1) .inst-card-header { background: #0a1a2e; }
.inst-card:nth-child(2) .inst-card-header { background: #1e0a2e; }
.inst-card:nth-child(3) .inst-card-header { background: #0a2010; }
.inst-card:nth-child(4) .inst-card-header { background: #2a1a08; }
.inst-card-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.inst-card-title {
  font-family: 'Playfair Display', serif; font-size: 0.98rem;
  font-weight: 700; color: #fff; margin-bottom: 4px;
}
.inst-card-wave {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.inst-card-body { padding: 16px; flex: 1; background: var(--white); }
.inst-card:nth-child(even) .inst-card-body { background: var(--light); }
.inst-card-body p { font-size: 0.87rem; color: #333; line-height: 1.65; font-weight: 300; }

/* ── ARTICLE 07 (Instruments): CALIBRATION CHAIN ── */
.cal-chain { margin: 2.2em 0; border: 1px solid var(--rule); overflow: hidden; }
.cal-chain-header {
  background: var(--ink); color: var(--paper); padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.cal-chain-rows { background: var(--white); }
.cal-row {
  display: grid; grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--rule);
}
.cal-row:last-child { border-bottom: none; }
.cal-row:nth-child(even) { background: var(--light); }
.cal-badge {
  padding: 14px 12px; border-right: 2px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; gap: 4px;
}
.cal-badge-num {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.cal-badge.l1 .cal-badge-num { color: var(--rust); }
.cal-badge.l2 .cal-badge-num { color: var(--amber); }
.cal-badge.l3 .cal-badge-num { color: var(--steel); }
.cal-badge.l4 .cal-badge-num { color: var(--green); }
.cal-badge.l5 .cal-badge-num { color: var(--violet); }
.cal-badge-icon { font-size: 1.3rem; }
.cal-body { padding: 14px 18px; }
.cal-title { font-weight: 700; font-size: 0.95rem; color: var(--ink); margin-bottom: 4px; }
.cal-desc { font-size: 0.87rem; color: #444; line-height: 1.65; font-weight: 300; }

/* ── ARTICLE 07 (Instruments): INTERFACE TABLE ── */
.iface-table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 0.87rem; }
.iface-table thead tr { background: var(--deep-blue); color: #fff; }
.iface-table thead th {
  padding: 11px 14px; text-align: left;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
}
.iface-table tbody tr { border-bottom: 1px solid var(--rule); }
.iface-table tbody tr:nth-child(even) { background: var(--light); }
.iface-table tbody tr:hover { background: var(--cream); }
.iface-table td { padding: 11px 14px; vertical-align: top; }
.iface-table td:first-child { font-weight: 700; color: var(--ink); width: 20%; }
.iface-table td:nth-child(2) { color: #333; width: 36%; }
.iface-table td:nth-child(3) { color: var(--muted); font-style: italic; width: 26%; }
.iface-table td:last-child { width: 18%; }

/* ── ARTICLE 07 (Instruments): CALIBRATION PRODUCTS TABLE ── */
.cal-prod-table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 0.87rem; }
.cal-prod-table thead tr { background: var(--violet); color: #fff; }
.cal-prod-table thead th {
  padding: 11px 14px; text-align: left;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
}
.cal-prod-table tbody tr { border-bottom: 1px solid var(--rule); }
.cal-prod-table tbody tr:nth-child(even) { background: var(--light); }
.cal-prod-table td { padding: 11px 14px; vertical-align: top; }
.cal-prod-table td:first-child { font-weight: 700; color: var(--ink); width: 24%; }
.cal-prod-table td:nth-child(2) { color: #333; width: 42%; }
.cal-prod-table td:last-child { color: var(--muted); font-style: italic; }

/* ── ARTICLE 07 (Instruments): DELIVERY FLOW ── */
.delivery-flow { margin: 2.2em 0; border: 1px solid var(--rule); overflow: hidden; }
.delivery-flow-header {
  background: var(--steel); color: #fff; padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.delivery-milestones { display: flex; background: var(--white); }
.dm { flex: 1; padding: 16px 12px; border-right: 1px solid var(--rule); text-align: center; }
.dm:last-child { border-right: none; }
.dm-phase {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust);
  display: block; margin-bottom: 5px;
}
.dm-title { font-weight: 700; font-size: 0.85rem; color: var(--ink); margin-bottom: 4px; }
.dm-items { font-size: 0.76rem; color: var(--muted); font-style: italic; line-height: 1.55; }

/* ── ARTICLE 07 (Instruments): CONTAMINATION GRID ── */
.contam-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin: 1.8em 0;
}
.contam-card { border: 1px solid var(--rule); overflow: hidden; }
.contam-card-top { padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.contam-card:nth-child(1) .contam-card-top { background: #1a1a0a; }
.contam-card:nth-child(2) .contam-card-top { background: #0a1a1a; }
.contam-card:nth-child(3) .contam-card-top { background: #1a0a1a; }
.contam-card:nth-child(4) .contam-card-top { background: #1a0a0a; }
.contam-icon { font-size: 1.4rem; flex-shrink: 0; }
.contam-title { font-family: 'Playfair Display', serif; font-size: 0.93rem; font-weight: 700; color: #fff; }
.contam-sub { font-size: 0.74rem; color: rgba(255,255,255,0.45); font-style: italic; }
.contam-body { padding: 13px 16px; background: var(--white); }
.contam-card:nth-child(even) .contam-body { background: var(--light); }
.contam-body p { font-size: 0.87rem; color: #333; line-height: 1.6; font-weight: 300; }


/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .masthead { flex-direction: column; text-align: center; }
  .hero { padding: 48px 24px 44px; }
  .container { padding: 0 18px; }
  h2.sh, h2.section-heading { font-size: 1.4rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .level-card { grid-template-columns: 56px 1fr; }
  .lvl-num { font-size: 0.95rem; }
  .test-type-grid { grid-template-columns: 1fr; }
  .trace-row { grid-template-columns: 1fr; }
  .env-grid { grid-template-columns: 1fr; }
  .env-card + .env-card { border-left: none; border-top: 1px solid var(--rule); }
  .launch-phases { flex-direction: column; }
  .launch-phase { border-right: none; border-bottom: 1px solid var(--rule); }
  .severity-strip { grid-template-columns: repeat(2, 1fr); }
  .thermal-zones { grid-template-columns: 1fr 1fr; }
  .chamber-content { grid-template-columns: 1fr; }
  .chamber-col + .chamber-col { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .tv-phase-row { grid-template-columns: 100px 1fr; }
  .dr-steps { flex-direction: column; }
  .dr-step { border-right: none; border-bottom: 1px solid var(--rule); }
  .sev-row { grid-template-columns: 80px 1fr; }
  .sev-row .sev-col:nth-child(3), .sev-row .sev-col:nth-child(4) { display: none; }
  .ht-item { grid-template-columns: 80px 1fr; }
  .delivery-milestones { flex-direction: column; }
  .dm { border-right: none; border-bottom: 1px solid var(--rule); }
}
/* ============================================================
   SERIES NAVIGATOR STYLES
   Add these rules to your spacecraft_iat.css stylesheet.
   Uses existing design-system variables:
     --ink, --paper, --cream, --rust, --gold, --steel
   ============================================================ */

/* ── TOP BREADCRUMB NAV ─────────────────────────────────────── */

.sn-top-header {
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  color: var(--steel);
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}

.sn-top-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--steel);
}

.sn-top-label {
  font-weight: 600;
  color: var(--steel);
}

.sn-top-sep {
  color: var(--steel);
  opacity: 0.5;
}

.sn-top-link {
  color: var(--rust);
  text-decoration: none;
  padding: 0.1em 0.15em;
  border-radius: 2px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.sn-top-link:hover {
  color: var(--paper);
  background-color: var(--rust);
}

/* ▸ Current article — highlighted in the breadcrumb */
.sn-top-current {
  color: var(--paper);
  background-color: var(--rust);
  font-weight: 700;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* Unpublished articles — dimmed, no link */
.sn-top-unpublished {
  color: var(--steel);
  opacity: 0.4;
}

/* ── NEXT-ARTICLE TEASER ────────────────────────────────────── */

.sn-next-teaser {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--steel);
}

.sn-next-label {
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  color: var(--steel);
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}

.sn-next-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rust);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sn-next-link:hover {
  color: var(--gold);
}

/* ── BOTTOM DROPDOWN NAV ────────────────────────────────────── */

.sn-bottom-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 460px;
}

.sn-bottom-label {
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.sn-bottom-select {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--ink);
  background-color: var(--cream);
  border: 1px solid var(--steel);
  border-radius: 4px;
  padding: 0.5em 0.7em;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sn-bottom-select:focus {
  outline: none;
  border-color: var(--rust);
}

.sn-bottom-btn {
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--paper);
  background-color: var(--rust);
  border: none;
  border-radius: 4px;
  padding: 0.5em 1.2em;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.2s ease;
}

.sn-bottom-btn:hover {
  background-color: var(--gold);
}

.article-body {
  overflow-x: hidden;
}

/* ── FOOTER ──────────────────────────────────────────────────
   The footer uses your EXISTING CSS classes:
     .article-footer, .footer-inner, .footer-col,
     .footer-label, .footer-text, .tags, .tag
   No new footer styles are needed here.
   ──────────────────────────────────────────────────────────── */

/* ── SITE NAV ─────────────────────────────────────────────── */
.site-nav {
  background-color: #E0C1AD;
  border-bottom: 1px solid #c9a48e;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  z-index: 100;
}
.site-nav-logo {
  font-size: 14px;
  font-weight: 500;
  color: #3a2a1e;
  line-height: 1.2;
  text-decoration: none;
}
.site-nav-logo span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #6b4c39;
  letter-spacing: 0.03em;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-links a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a2a1e;
  text-decoration: none;
  font-weight: 400;
  opacity: 0.80;
  transition: opacity 0.15s;
}
.site-nav-links a:hover { opacity: 1; }
@media (max-width: 680px) {
  .site-nav { padding: 0 1rem; height: auto; flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav-links { gap: 0.8rem; flex-wrap: wrap; }
}
/* ─────────────────────────────────────────────────────────── */

/* ─────────────Added when updating file 10 (article 5)────────────────────────────────── */

.case-block {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-gold);
  background: var(--color-bg-subtle, rgba(200,154,58,0.06));
}
.case-header {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
.case-mission {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-rust);
}
.case-program {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}
.case-failure-type {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.case-lesson {
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: rgba(0,0,0,0.04);
  border-radius: 3px;
  font-size: 0.92rem;
  font-style: italic;
}



/* ───────────────────────Added for EGSE verification table in article 10 ──────────────────────── */

.verification-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 1.5rem 0;
}

.vb-entry {
  border-radius: var(--radius-lg, 12px);
  border: 0.5px solid var(--border, rgba(0,0,0,0.12));
  overflow: hidden;
  background: var(--paper);
}

.vb-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vb-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.vb-title {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.vb-sub {
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 1px;
  opacity: 0.85;
}

.vb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid var(--border, rgba(0,0,0,0.1));
}

.vb-field {
  padding: 10px 14px;
  border-right: 0.5px solid var(--border, rgba(0,0,0,0.08));
  border-bottom: 0.5px solid var(--border, rgba(0,0,0,0.08));
}

.vb-field:nth-child(2),
.vb-field:nth-child(4) {
  border-right: none;
}

.vb-action {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
}

.vb-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.vb-val {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

.verification-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 1.5rem 0;
}

.vb-entry {
  border-radius: var(--radius-lg, 12px);
  border: 0.5px solid var(--border, rgba(0,0,0,0.12));
  overflow: hidden;
  background: var(--paper);
}

.vb-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vb-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.vb-title {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.vb-sub {
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 1px;
  opacity: 0.85;
}

.vb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid var(--border, rgba(0,0,0,0.1));
}

.vb-field {
  padding: 10px 14px;
  border-right: 0.5px solid var(--border, rgba(0,0,0,0.08));
  border-bottom: 0.5px solid var(--border, rgba(0,0,0,0.08));
}

.vb-field:nth-child(even) {
  border-right: none;
}

.vb-action {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
}

.vb-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.vb-val {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Per-category color themes */
.vb-power .vb-header  { background: #E6F1FB; }
.vb-power .vb-icon    { background: #B5D4F4; color: #0C447C; }
.vb-power .vb-title   { color: #0C447C; }
.vb-power .vb-sub     { color: #185FA5; }
.vb-power .vb-label   { color: #185FA5; }
.vb-power .vb-action  { background: #f4f9fe; }

.vb-rf .vb-header     { background: #FAEEDA; }
.vb-rf .vb-icon       { background: #FAC775; color: #633806; }
.vb-rf .vb-title      { color: #633806; }
.vb-rf .vb-sub        { color: #854F0B; }
.vb-rf .vb-label      { color: #854F0B; }
.vb-rf .vb-action     { background: #fdf8f0; }

.vb-ct .vb-header     { background: #E1F5EE; }
.vb-ct .vb-icon       { background: #9FE1CB; color: #085041; }
.vb-ct .vb-title      { color: #085041; }
.vb-ct .vb-sub        { color: #0F6E56; }
.vb-ct .vb-label      { color: #0F6E56; }
.vb-ct .vb-action     { background: #f2fbf7; }

.vb-sim .vb-header    { background: #EEEDFE; }
.vb-sim .vb-icon      { background: #CECBF6; color: #3C3489; }
.vb-sim .vb-title     { color: #3C3489; }
.vb-sim .vb-sub       { color: #534AB7; }
.vb-sim .vb-label     { color: #534AB7; }
.vb-sim .vb-action    { background: #f7f6fe; }

.vb-harness .vb-header { background: #FAECE7; }
.vb-harness .vb-icon   { background: #F5C4B3; color: #712B13; }
.vb-harness .vb-title  { color: #712B13; }
.vb-harness .vb-sub    { color: #993C1D; }
.vb-harness .vb-label  { color: #993C1D; }
.vb-harness .vb-action { background: #fdf4f0; }

.vb-stim .vb-header   { background: #EAF3DE; }
.vb-stim .vb-icon     { background: #C0DD97; color: #27500A; }
.vb-stim .vb-title    { color: #27500A; }
.vb-stim .vb-sub      { color: #3B6D11; }
.vb-stim .vb-label    { color: #3B6D11; }
.vb-stim .vb-action   { background: #f4faec; }



/* ─────────────────────────────────────────────── */

/* ───────────────────────Added to articcle 10 EGSE qualification and control requirements ──────────────────────── */

.qual-list {
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.ql-header {
  background: #0C447C;
  color: #E6F1FB;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.ql-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  background: var(--paper);
}

.ql-item:last-child {
  border-bottom: none;
}

.ql-item:nth-child(odd) {
  background: var(--cream, #f8f6f1);
}

.ql-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ql-item:nth-child(2) .ql-icon { background: #E6F1FB; }
.ql-item:nth-child(3) .ql-icon { background: #FAEEDA; }
.ql-item:nth-child(4) .ql-icon { background: #E1F5EE; }
.ql-item:nth-child(5) .ql-icon { background: #EEEDFE; }
.ql-item:nth-child(6) .ql-icon { background: #FAECE7; }
.ql-item:nth-child(7) .ql-icon { background: #EAF3DE; }
.ql-item:nth-child(8) .ql-icon { background: #FBEAF0; }

.ql-content {
  flex: 1;
  min-width: 0;
}

.ql-title {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ink);
  margin-bottom: 5px;
}

.ql-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.8;
}

.ql-desc p {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0 0 0.75rem 0;
}

.ql-desc p:last-child {
  margin-bottom: 0;
}

/* ──────────────────Added to article 10 end of section 9───────────────────────────── */



.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 1.5rem 0;
}

.stat-item {
  background: var(--cream, #f8f6f1);
  border-radius: 12px;
  padding: 16px 18px;
  border-top: 3px solid var(--steel, #0C447C);
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--steel, #0C447C);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.75;
}

.stats-row {
  max-width: 520px;
}

/* ──────────────────Added to article 10 EGSE cases call out───────────────────────────── */
.case-source {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 0.5px solid rgba(0,0,0,0.12);
  font-size: 0.8rem;
  line-height: 1.55;
  font-style: italic;
  opacity: 0.8;
}

/* ──────────────────Added to article 10 principle categories of EGSE section───────────────────────────── */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 1.5rem 0;
}
.cat-card {
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cat-titles { flex: 1; min-width: 0; }
.cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.25;
}
.cat-abbr {
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.03em;
  margin-top: 3px;
  opacity: 0.7;
}
.cat-body {
  padding: 0 16px 14px 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
}

.cat-power .cat-head { background: #E6F1FB; }
.cat-power .cat-icon { background: #B5D4F4; }
.cat-power .cat-title { color: #0C447C; }
.cat-power .cat-abbr { color: #185FA5; }

.cat-ct .cat-head { background: #E1F5EE; }
.cat-ct .cat-icon { background: #9FE1CB; }
.cat-ct .cat-title { color: #085041; }
.cat-ct .cat-abbr { color: #0F6E56; }

.cat-rf .cat-head { background: #FAEEDA; }
.cat-rf .cat-icon { background: #FAC775; }
.cat-rf .cat-title { color: #633806; }
.cat-rf .cat-abbr { color: #854F0B; }

.cat-sim .cat-head { background: #EEEDFE; }
.cat-sim .cat-icon { background: #CECBF6; }
.cat-sim .cat-title { color: #3C3489; }
.cat-sim .cat-abbr { color: #534AB7; }

.cat-harness .cat-head { background: #FAECE7; }
.cat-harness .cat-icon { background: #F5C4B3; }
.cat-harness .cat-title { color: #712B13; }
.cat-harness .cat-abbr { color: #993C1D; }

.cat-stim .cat-head { background: #EAF3DE; }
.cat-stim .cat-icon { background: #C0DD97; }
.cat-stim .cat-title { color: #27500A; }
.cat-stim .cat-abbr { color: #3B6D11; }

/* ──────────────────Added to article 10 EGSE scope list in first section───────────────────────────── */

.scope-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scope-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 400;
}
.scope-list li:nth-child(odd) {
  background: var(--cream, #ede7d5);
}
.scope-marker {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  background: #185FA5;
}
.scope-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
  font-weight: 400;
}
.scope-label {
  font-weight: 700;
  color: var(--ink);
  opacity: 1;
}


/* ──────────────────Added to article 10 test harness difference table───────────────────────────── */


.hc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid rgba(0,0,0,0.12);
}
.hc-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 16px;
  text-align: left;
}
.hc-table thead th.hc-char { background: var(--cream, #ede7d5); width: 18%; color: var(--ink); }
.hc-table thead th.hc-ground { background: #EEEDFE; color: #712B13; width: 41%; }
.hc-table thead th.hc-flight { background: #E6F1FB; color: #0C447C; width: 41%; }
.hc-table tbody td {
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.55;
  vertical-align: top;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  color: var(--ink);
}
.hc-table tbody tr:nth-child(even) td { background: var(--cream, #ede7d5); }
.hc-char-cell { font-weight: 700; }
.hc-ground-cell { opacity: 0.85; border-left: 2px solid #F5C4B3; }
.hc-flight-cell { opacity: 0.85; border-left: 2px solid #B5D4F4; }

/* ──────────────────Added to article 10 EGSE failure mode table───────────────────────────── */

.fm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}
.fm-table thead th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  text-align: left;
  background: #1C2A3A;
  color: #fff;
}
.fm-table th.fm-level { text-align: center; }
.fm-table th.fm-mode   { width: 17%; }
.fm-table th.fm-man    { width: 38%; }
.fm-table th.fm-risk   { width: 36%; }
.fm-table th.fm-level  { width: 9%; }
.fm-table tbody td {
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  vertical-align: top;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  color: var(--ink);
}
.fm-table tbody tr:nth-child(even) td { background: var(--cream, #ede7d5); }
.fm-mode-cell {
  font-weight: 700;
  border-left: 4px solid transparent;
}
.fm-row-high .fm-mode-cell   { border-left-color: #D1453B; }
.fm-row-medium .fm-mode-cell { border-left-color: #E08A1E; }
.fm-row-lower .fm-mode-cell  { border-left-color: #2E9E7B; }
.fm-level-cell { text-align: center; vertical-align: middle; }
.fm-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}
.fm-badge-high   { background: #FBE3E1; color: #A3271E; }
.fm-badge-medium { background: #FBEEDA; color: #8A540C; }
.fm-badge-lower  { background: #DDF2EA; color: #1C6B52; }

/* ──────────────────Added for each article that will have a sources note at the end───────────────────────────── */


.source-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(0,0,0,0.12);
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.75;
}

/* ──────────────────Added to article intro (intro) for the "about these exampples" callout───────────────────────────── */

.mission-graphic.note-sources {
  background: #F4EEE2;            /* warm parchment, distinct from the dark boxes */
  border-left: 4px solid #8A6D3B; /* muted gold accent instead of the dark fill */
}
.mission-graphic.note-sources .mission-content strong,
.mission-graphic.note-sources .mission-content p {
  color: #2a2a2a;                 /* dark text, since the background is now light */
}


/* ──────────────────Added to article 10 for the EGSE mismatch 3 item callout───────────────────────────── */
.ms-wrap {
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.ms-head {
  padding: 11px 16px;
  background: #1C2A3A;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.ms-head .ms-sub { font-weight: 400; opacity: 0.8; font-size: 0.78rem; margin-top: 2px; }
.ms-row {
  display: flex;
  align-items: stretch;
  border-top: 0.5px solid rgba(0,0,0,0.1);
}
.ms-tag {
  flex-shrink: 0;
  width: 130px;
  padding: 13px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.ms-tag .ms-deg { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.ms-body {
  padding: 13px 16px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.9;
  border-left: 0.5px solid rgba(0,0,0,0.1);
}
.ms-row-1 .ms-tag { background: #DDF2EA; color: #1C6B52; }
.ms-row-2 .ms-tag { background: #FBEEDA; color: #8A540C; }
.ms-row-3 .ms-tag { background: #FBE3E1; color: #A3271E; }
.ms-foot {
  padding: 12px 16px;
  font-size: 0.8rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
  background: var(--cream, #ede7d5);
  border-top: 0.5px solid rgba(0,0,0,0.1);
}

/* ── SHARED: MODEL/COMPONENT CARDS ── */
.model-cards{margin:2em 0;}
.model-card{border:1px solid var(--rule);margin-bottom:12px;overflow:hidden;}
.model-card-header{display:flex;align-items:stretch;}
.model-badge{width:72px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:'JetBrains Mono',monospace;font-size:1.1rem;font-weight:700;color:var(--paper);letter-spacing:0.05em;}
.model-badge.stm{background:#4a6274;}
.model-badge.em{background:#2e7d52;}
.model-badge.qm{background:#b87420;}
.model-badge.fm{background:#b84a2e;}
.model-badge.pfm{background:#5a3a7a;}
.model-badge.ut{background:#4a6274;}
.model-badge.sit{background:#2e7d52;}
.model-badge.hil{background:#b87420;}
.model-badge.sys{background:#b84a2e;}
.model-badge.env{background:#5a3a7a;}
.model-badge.ops{background:#1a6b6b;}
.model-badge.lim{background:#4a6274;}
.model-badge.wat{background:#2e7d52;}
.model-badge.hhm{background:#b87420;}
.model-badge.att{background:#b84a2e;}
.model-badge.seq{background:#5a3a7a;}
.model-hdr-text{flex:1;padding:14px 18px;background:var(--ink);}
.model-name{font-family:'Playfair Display',serif;font-size:1.05rem;font-weight:700;color:var(--paper);margin-bottom:3px;}
.model-purpose{font-size:0.85rem;color:#9a9080;font-style:italic;font-weight:300;line-height:1.5;}
.model-body{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0;}
.model-body.two-col{grid-template-columns:1fr 1fr;}
.model-cell{padding:14px 18px;border-right:1px solid var(--rule);background:var(--white);}
.model-cell:last-child{border-right:none;}
.model-cell-label{font-family:'JetBrains Mono',monospace;font-size:8.5px;letter-spacing:0.14em;text-transform:uppercase;color:var(--muted);margin-bottom:6px;}
.model-cell p{font-size:0.84rem;color:#333;line-height:1.6;font-weight:300;margin:0;}
.model-card:nth-child(even) .model-cell{background:var(--light);}
@media(max-width:680px){.model-body{grid-template-columns:1fr;}.model-cell{border-right:none;border-bottom:1px solid var(--rule);}.model-cell:last-child{border-bottom:none;}}


 /* ──────────────────────────────────────────────────────────────
  hardware in the loop testing for flight software article
  ────────────────────────────────────────────────────────────── */

  /* ── SHARED: CONNECTED FLOW DIAGRAM (3-element) ── */
.flow3 { border: 1px solid var(--rule); overflow: hidden; margin: 2em 0; }
.flow3-header {
  background: var(--ink); color: var(--gold); padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.flow3-body { display: flex; align-items: stretch; background: var(--white); }
.flow3-box { flex: 1; padding: 18px 18px; border-top: 3px solid var(--rule); }
.flow3-box.a { border-top-color: var(--rust); }
.flow3-box.b { border-top-color: var(--steel); }
.flow3-box.c { border-top-color: var(--green); }
.flow3-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px;
}
.flow3-box.a .flow3-label { color: var(--rust); }
.flow3-box.b .flow3-label { color: var(--steel); }
.flow3-box.c .flow3-label { color: var(--green); }
.flow3-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1rem; color: var(--ink); margin-bottom: 8px; line-height: 1.25;
}
.flow3-desc { font-size: 0.85rem; color: #444; line-height: 1.6; font-weight: 300; }
.flow3-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 44px; flex-shrink: 0; font-size: 1.3rem; color: var(--gold);
  background: var(--cream); border-top: 3px solid var(--rule);
}
@media (max-width: 680px) {
  .flow3-body { flex-direction: column; }
  .flow3-arrow { width: 100%; height: 32px; transform: rotate(90deg); }
}


 /* ──────────────────────────────────────────────────────────────
  Flight software build, release and control process for flight software article
  ────────────────────────────────────────────────────────────── */
/* ── SHARED: NUMBERED PROCESS FLOW ── */
.num-flow { border: 1px solid var(--rule); overflow: hidden; margin: 2.2em 0; }
.num-flow-header {
  background: var(--ink); color: var(--gold); padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.num-step {
  display: grid; grid-template-columns: 56px 1fr;
  border-bottom: 1px solid var(--rule); background: var(--white);
}
.num-step:nth-child(even) { background: var(--light); }
.num-step:last-child { border-bottom: none; }
.num-badge {
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 1.3rem; font-weight: 700;
}
.num-content { padding: 16px 20px; }
.num-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1rem; color: var(--ink); margin-bottom: 6px;
}
.num-desc { font-size: 0.87rem; color: #444; line-height: 1.65; font-weight: 300; }
@media (max-width: 680px) {
  .num-step { grid-template-columns: 42px 1fr; }
  .num-badge { font-size: 1.05rem; }
}

/* ── ARTICLE 08 (Mass Properties): MASS PROPERTIES HIERARCHY TABLE ── */
.mp-table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0;
  font-size: 0.87rem;
}
.mp-table thead tr { background: var(--ink); color: var(--paper); }
.mp-table thead th {
  padding: 11px 14px; text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
}
.mp-table tbody tr { border-bottom: 1px solid var(--rule); }
.mp-table tbody tr:nth-child(even) { background: var(--light); }
.mp-table tbody tr:hover { background: var(--cream); }
.mp-table td { padding: 12px 14px; vertical-align: top; line-height: 1.6; }
.mp-table td:first-child {
  font-weight: 700; color: var(--rust);
  white-space: nowrap; font-size: 0.88rem;
  width: 12%;
}
.mp-table td:nth-child(2) { color: #333; width: 22%; }
.mp-table td:nth-child(3) { color: var(--muted); font-size: 0.85rem; width: 24%; }
.mp-table td:last-child { color: #333; width: 42%; }

@media (max-width: 680px) {
  .mp-table { font-size: 0.8rem; }
  .mp-table td, .mp-table th { padding: 8px 10px; }
}

/* ── ARTICLE 08 (Mass Properties): LAUNCH LOAD GRID ── */
.load-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin: 1.8em 0;
}
.load-card { border: 1px solid var(--rule); overflow: hidden; background: var(--white); }
.load-header {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
}
.load-icon { font-size: 1.4rem; flex-shrink: 0; }
.load-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem; font-weight: 700; color: #fff;
}
.load-body { padding: 14px 16px; background: var(--white); }
.load-body p { font-size: 0.86rem; color: #333; line-height: 1.65; font-weight: 300; margin: 0; }

.load-card:nth-child(1) .load-header { background: var(--steel); }
.load-card:nth-child(2) .load-header { background: var(--green); }
.load-card:nth-child(3) .load-header { background: var(--gold); }
.load-card:nth-child(3) .load-title { color: var(--near-black); }
.load-card:nth-child(4) .load-header { background: var(--rust); }

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

/* ── ARTICLE 08 (Mass Properties): FEM CORRELATION TABLE ── */
.fem-table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0;
  font-size: 0.86rem;
}
.fem-table thead tr { background: var(--ink); color: var(--paper); }
.fem-table thead th {
  padding: 11px 14px; text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
}
.fem-table tbody tr { border-bottom: 1px solid var(--rule); }
.fem-table tbody tr:nth-child(even) { background: var(--light); }
.fem-table tbody tr:hover { background: var(--cream); }
.fem-table td { padding: 12px 14px; vertical-align: top; line-height: 1.6; }
.fem-table td:first-child {
  font-weight: 700; color: var(--steel);
  white-space: nowrap; width: 18%;
}
.fem-table td:nth-child(2) { color: #333; width: 38%; }
.fem-table td:last-child { color: var(--muted); font-size: 0.84rem; }

@media (max-width: 680px) {
  .fem-table { font-size: 0.78rem; }
  .fem-table td, .fem-table th { padding: 8px 10px; }
}

/* ── ARTICLE 08 (Mass Properties): STRUCTURAL MARGIN STAT STRIP ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 2.4em 0;
}
.stat-strip .stat-cell {
  background: var(--paper);
  padding: 22px 18px;
  text-align: center;
}
.stat-strip .stat-cell p {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0 !important;
  line-height: 1.5;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

/* ──  Styling for the graphics in the article on spacecraft IAT (Mechanical Environments). The image is displayed as a block element, with a maximum width of 100% to ensure it scales appropriately within its container. The height is set to auto to maintain the aspect ratio of the image. A margin of 1.5rem is applied to center the image vertically and horizontally within its container. The image has rounded corners with a border-radius of 6px, and a subtle border of 1px solid var(--steel) is added for visual separation from the background. ── */
.acoustic-chamber-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 6px;
  border: 1px solid var(--steel);
}

.launch-env-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 6px;
  border: 10px solid var(--white);
}

.freq-overlap-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 6px;
  border: 1px solid var(--steel);
}

.sep-test-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 6px;
  border: 1px solid var(--steel);
}