/* JPL — "Test Report" design system (Direction A, chosen 2026-08-03)
   Paper / ink / international orange. Archivo + IBM Plex Mono. */

:root {
  --paper: #f2efe6;
  --ink: #16150f;
  --orange: #ff4f00;
  --faded: #6f6a5c;
  --hairline: #cdc8b8;
  --dash: #b9b3a0;
}

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

html, body { overflow-x: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.55;
}

.wrap { max-width: 1060px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

/* Doc bar + nav */
.docbar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 18px 0 12px; border-bottom: 3px solid var(--ink);
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .06em;
}
.docbar .no { color: var(--orange); font-weight: 600; white-space: nowrap; }
.docbar .org { text-transform: uppercase; }
.docbar .coords { white-space: nowrap; }

nav.doc {
  display: flex; gap: 28px; padding: 12px 0; border-bottom: 1px solid var(--ink);
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
nav.doc a { text-decoration: none; }
nav.doc a .n { color: var(--orange); font-weight: 600; margin-right: 6px; }
nav.doc .home { margin-right: auto; font-weight: 600; display: flex; align-items: center; gap: 9px; }
nav.doc .home img { height: 22px; display: block; }

/* Masthead */
header.masthead {
  padding: 64px 0 40px; border-bottom: 1px solid var(--ink);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.masthead .mkimg { height: 168px; flex: none; margin-bottom: 4px; }
.masthead h1 {
  font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: .98;
  letter-spacing: -.015em; text-transform: uppercase;
}
.masthead h1 .mark { color: var(--orange); }
.masthead .sub {
  margin-top: 22px; font-family: 'IBM Plex Mono', monospace; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase;
}

/* Labeled blocks (abstract etc.) */
.block { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--ink); }
.label {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--faded); padding-top: 6px;
}
.block p { font-size: 20px; line-height: 1.55; max-width: 62ch; }
.block p + p { margin-top: 18px; }
.block b, .block strong { font-weight: 600; }

/* Figures — photography at full bleed */
figure.plate { padding: 0; }
figure.plate .bleed {
  width: 100vw; margin-left: calc(50% - 50vw);
}
figure.plate img {
  width: 100%; display: block; filter: saturate(.92) contrast(1.03);
  max-height: 520px; object-fit: cover; object-position: center 58%;
}
figure.plate figcaption {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .05em;
  padding: 10px 2px 40px; border-bottom: 1px solid var(--ink);
  display: flex; justify-content: space-between; gap: 16px;
}
figcaption .fig { color: var(--orange); font-weight: 600; }

figure.inset img { width: 100%; display: block; filter: saturate(.92) contrast(1.03); }
figure.inset figcaption {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .05em; padding-top: 10px;
}

/* Spec strip */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
.spec { padding: 26px 24px; border-right: 1px solid var(--hairline); }
.spec:first-child { padding-left: 0; }
.spec:last-child { border-right: none; padding-right: 0; }
.spec .k { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faded); }
.spec .v { font-size: 26px; font-weight: 700; margin-top: 10px; display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.spec .v small { font-size: 13px; font-weight: 500; color: var(--faded); letter-spacing: .04em; }

/* Numbered sections */
section.num { padding: 56px 0; border-bottom: 1px solid var(--ink); }
section.num > .wrap > h2, h2.sec {
  display: grid; grid-template-columns: max-content 1fr; align-items: baseline; gap: 18px;
  font-size: 32px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  margin-bottom: 28px;
}
h2.sec .n, section.num h2 .n {
  font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 600; color: var(--orange);
}
section.num h3 {
  font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 10px;
}
section.num h3 .n { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--orange); margin-right: 8px; }
section.num p { max-width: 70ch; }
section.num p + p { margin-top: 16px; }

.grid { display: grid; gap: 40px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid .cell p { font-size: 15.5px; color: #3d3a30; }

/* Mono spec lists (data sheet) */
ul.speclist { list-style: none; font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; }
ul.speclist li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px dashed var(--dash);
}
ul.speclist li span:first-child { color: var(--faded); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; padding-top: 2px; }
ul.speclist li span:last-child { text-align: right; font-weight: 500; }

ul.plain { padding-left: 20px; }
ul.plain li { margin: 8px 0; }

/* TOC rows (home index) */
.toc-row {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 0;
  border-bottom: 1px dashed var(--dash); font-size: 24px; font-weight: 700; text-transform: uppercase;
}
.toc-row:last-child { border-bottom: none; }
.toc-row .num { font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 600; color: var(--orange); min-width: 52px; }
.toc-row .desc { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 400; color: var(--faded); text-transform: none; letter-spacing: .03em; text-align: right; }
a.toc-row { text-decoration: none; }
a.toc-row:hover { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-block; margin-top: 22px; padding: 12px 20px;
  border: 2px solid var(--ink); font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
}
.btn:hover { border-color: var(--orange); color: var(--orange); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Stamp + footer */
.stamp {
  border: 2.5px solid var(--orange); color: var(--orange); display: inline-block;
  padding: 10px 16px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; transform: rotate(-2deg); line-height: 1.7;
}
footer.doc { padding: 44px 0 64px; }
footer.doc .row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
footer.doc .fine {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--faded);
  text-align: right; line-height: 1.9; letter-spacing: .04em; text-transform: uppercase;
}
footer.doc .fine a { text-decoration: none; }

@media (max-width: 800px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .masthead h1 { font-size: clamp(30px, 8.6vw, 64px); }
  .block { grid-template-columns: 1fr; gap: 10px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .spec { padding: 20px 14px; }
  .spec:nth-child(odd) { padding-left: 0; }
  .spec:nth-child(even) { border-right: none; padding-right: 0; }
  .spec .v { white-space: normal; flex-wrap: wrap; font-size: 22px; }
  .docbar { flex-wrap: wrap; gap: 4px 16px; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .docbar .coords { display: none; }
  nav.doc {
    flex-wrap: nowrap; overflow-x: auto; gap: 24px; padding: 14px 0;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  nav.doc::-webkit-scrollbar { display: none; }
  nav.doc a { white-space: nowrap; padding: 4px 0; }
  header.masthead { align-items: flex-start; padding-top: 44px; }
  .masthead .mkimg { height: 78px; margin: 6px 0 0; }
  figure.plate figcaption { flex-direction: column; gap: 3px; }
  section.num > .wrap > h2, h2.sec { font-size: 26px; gap: 12px; }
  footer.doc .row { flex-direction: column; align-items: flex-start; }
  footer.doc .fine { text-align: left; }
}
