/* ==========================================================================
   137 CORE SPC — Technical Architecture Whitepaper (sub-page)
   Owner-supplied styling. Palette: #000000 bg · #ffffff text · #a0a0a0 / #888888
   gray · #E5A93C gold · #141414 / #1a1a1a hairlines · #050505 / #0d0d0d panels.
   One 4px gold stripe at the top of the page.

   NOTE ON SELECTOR SCOPE: the supplied document used a bare `header` selector.
   Scoped here to `.wp-header`. css/style.css documents the hazard — index.html
   uses three <header class="section-head"> elements as section headings, so a
   bare `header` rule turns those into sticky black bars at z-index 1000.
   ========================================================================== */

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

body {
  background-color: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.top-stripe {
  height: 4px;
  background: linear-gradient(90deg, #E5A93C, #F3D078, #E5A93C);
  width: 100%;
}

.wp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid #141414;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  white-space: nowrap;
}
.logo span { color: #E5A93C; }

.back-link {
  color: #888888;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.back-link:hover { color: #E5A93C; }

.paper-moat {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 4rem;
}

.page-title { margin-bottom: 4rem; border-bottom: 1px solid #141414; padding-bottom: 2rem; }
.page-title p {
  color: #E5A93C;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.page-title h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-top: 0.5rem;
  line-height: 1.15;
}

/* WHITEPAPER ABSTRACT CAGE */
.abstract-box {
  background-color: #050505;
  border-left: 3px solid #E5A93C;
  padding: 2.5rem;
  margin-bottom: 4rem;
}
.abstract-box h2 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #888888;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.abstract-box p { font-size: 1.1rem; color: #ffffff; line-height: 1.6; font-weight: 500; }

/* TECHNICAL SPECIFICATION SECTIONS */
.spec-section { margin-bottom: 4rem; }
.spec-section h2 {
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed #1a1a1a;
  padding-bottom: 0.5rem;
  line-height: 1.3;
}
.spec-section h2 span { color: #E5A93C; }
.spec-section p {
  color: #a0a0a0;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* DATA LAYOUT PARAMETERS TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.data-table th {
  background-color: #0d0d0d;
  color: #E5A93C;
  text-align: left;
  padding: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #1a1a1a;
}
.data-table td {
  padding: 1rem;
  border: 1px solid #1a1a1a;
  color: #ffffff;
}
.data-table tr:nth-child(even) { background-color: #050505; }

/* field keys are code literals; monospace keeps the underscores legible */
.data-table code {
  font-family: monospace;
  font-size: 0.85rem;
  color: #E5A93C;
}

/* The table caption describes the table for screen readers without adding a
   visible heading above an already-titled section. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Responsive — the supplied CSS had no breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .wp-header { padding: 1.25rem 2.5rem; }
  .paper-moat { padding: 0 2.5rem; margin: 3rem auto; }
  .page-title { margin-bottom: 3rem; }
  .page-title h1 { font-size: 2.25rem; }
  .abstract-box { padding: 2rem; margin-bottom: 3rem; }
  .spec-section { margin-bottom: 3rem; }
}

@media (max-width: 640px) {
  .wp-header { padding: 1rem 1.25rem; flex-wrap: wrap; gap: 1rem; }
  .logo { font-size: 1.15rem; letter-spacing: 1.5px; }
  .back-link { font-size: 0.78rem; letter-spacing: 0.8px; }
  .paper-moat { padding: 0 1.25rem; margin: 2.5rem auto; }
  .page-title { margin-bottom: 2.25rem; padding-bottom: 1.5rem; }
  .page-title h1 { font-size: 1.75rem; letter-spacing: -0.5px; }
  .page-title p { font-size: 0.8rem; letter-spacing: 1.5px; }
  .abstract-box { padding: 1.5rem; margin-bottom: 2.5rem; }
  .abstract-box p { font-size: 1rem; }
  .spec-section { margin-bottom: 2.5rem; }
  .spec-section h2 { font-size: 1.1rem; }
  .spec-section p { font-size: 0.9rem; }

  /* The table is 3 columns of technical strings. A horizontal scroll container
     was tried first, but it pushed the entire third column ("Statutory Target
     Map") off-screen behind a scroll affordance that is easy to miss on a phone
     — the mobile render showed only two columns, silently hiding a third of the
     document's data. Instead the rows become labelled blocks: each cell stacks
     vertically and carries its own column name via ::before, so nothing is
     hidden and no sideways scrolling is needed. */
  .data-table-scroll { overflow: visible; margin: 1.5rem 0; }

  .data-table { display: block; min-width: 0; font-size: 0.9rem; }
  .data-table thead { display: none; }
  .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }

  .data-table tr {
    border: 1px solid #1a1a1a;
    margin-bottom: 1rem;
    background-color: #050505;
  }
  .data-table tr:nth-child(even) { background-color: #050505; }

  .data-table td {
    border: 0;
    border-bottom: 1px dashed #1a1a1a;
    padding: 0.75rem 1rem;
  }
  .data-table td:last-child { border-bottom: 0; }

  /* Column names are read from each cell's data-label attribute rather than
     hard-coded here, so the CSS stays generic. Note the strings do duplicate the
     <thead> text — if a column is ever renamed, update the thead and the
     data-label attributes together. */
  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #E5A93C;
    margin-bottom: 0.25rem;
  }
}

/* ==========================================================================
   CURRENT SCOPE AND ROADMAP — two-column status table
   Deliberately a separate class from .data-table rather than an extension of
   it: .data-table's cells carry code literals and a "Statutory Target Map"
   column, and the roadmap table must be free to change without touching the
   specification table above. Same palette, same hairlines, same 640px
   block-stacking pattern (header row hidden, column name supplied per cell via
   ::before) so neither column is hidden behind a sideways scroll on a phone.
   ========================================================================== */
.scope-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.scope-table th {
  background-color: #0d0d0d;
  color: #E5A93C;
  text-align: left;
  padding: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #1a1a1a;
}

.scope-table td {
  padding: 1rem;
  border: 1px solid #1a1a1a;
  color: #ffffff;
  vertical-align: top;
}

.scope-table tr:nth-child(even) { background-color: #050505; }

/* Status values are machine state, not prose — monospace matches how the rest
   of the site renders telemetry values. Colour stays #ffffff so gold remains
   reserved for headings, labels and the header row. */
.scope-table td:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* `p.scope-note` is element-qualified on purpose: .spec-section p is (0,1,1)
   and would otherwise win the colour on this one paragraph. */
p.scope-note {
  color: #888888;
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .scope-table { display: block; font-size: 0.85rem; }
  .scope-table thead { display: none; }
  .scope-table tbody,
  .scope-table tr,
  .scope-table td { display: block; width: 100%; }

  .scope-table tr {
    border: 1px solid #1a1a1a;
    margin-bottom: 0.75rem;
    background-color: #050505;
  }
  .scope-table tr:nth-child(even) { background-color: #050505; }

  .scope-table td {
    border: 0;
    border-bottom: 1px dashed #1a1a1a;
    padding: 0.7rem 1rem;
  }
  .scope-table td:last-child { border-bottom: 0; }

  .scope-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #E5A93C;
    margin-bottom: 0.2rem;
  }

  p.scope-note { font-size: 0.76rem; }
}
