/* =========================================================================
   methodology-page — page styles for /methodology. v0.1 (2026-05-27).
   Sources tokens from webshield-navy.css. Composes shared chrome and the
   compact-hero variant --portal (navigational register, matching /documents
   and /patents).

   /methodology is a long-form READING-PROTOCOL page (prose + one enumerated
   list), NOT a card index. Section scaffolding mirrors documents-page.css
   values (ws-meth- prefix, not shared) so the two pages stay visually
   consistent while remaining decoupled — same rationale as documents-page.css:
   a spacing change on one must not silently move the other.

   Page-specific vocabulary:
     • section scaffolding (.ws-meth-section* + eyebrow / title / intro)
     • body prose (.ws-meth-prose) — the long-form register /documents lacks
     • the sixteen-topic ledger list (.ws-meth-topics) — mono "NN / 16"
       ordinal rail, serif term, sans explanation; rhythm mirrors the
       universal-card rail (--ws-uc-rail-width / --ws-uc-col-gap).

   No cards here → universal-card.css is intentionally NOT loaded by this
   page. The "before you read" callout that links HERE lives on /documents
   and /investors (cross-reference-callout.css .ws-xref--card); this page
   does not carry one. See brief-methodology.md.
   ========================================================================= */

/* ── Section scaffolding · mirrors .ws-doc-section* ──────────────── */
.ws-meth-section {
  background: var(--ws-page);
  padding: 64px 0 56px;
  border-top: 1px solid var(--ws-rule);
}
.ws-meth-section--surface { background: var(--ws-surface-2); }
.ws-meth-section--first { border-top: none; }

.ws-meth-section__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.ws-meth-section__eyebrow {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-label);
  letter-spacing: var(--ws-tracking-label);
  text-transform: uppercase;
  color: var(--ws-accent);
  font-weight: 600;
  margin: 0 0 14px;
}

.ws-meth-section__title {
  font-family: var(--ws-font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: var(--ws-lh-tight);
  letter-spacing: -0.012em;
  color: var(--ws-ink);
  margin: 0 0 18px;
  max-width: 820px;
}

/* Lede · the section's first paragraph — serif, matching .ws-doc-section__intro. */
.ws-meth-section__intro {
  font-family: var(--ws-font-display);
  font-size: var(--ws-fs-lede);
  line-height: var(--ws-lh-lede);
  font-weight: 400;
  color: var(--ws-ink-muted);
  margin: 0 0 22px;
  max-width: 760px;
}

/* ── Body prose · the long-form register /documents has no equivalent for.
   Site body style: sans, 15px, 1.7 leading, ink-muted (as .ws-uc__body). ── */
.ws-meth-prose {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body);
  line-height: var(--ws-lh-body);
  color: var(--ws-ink-muted);
  margin: 0 0 20px;
  max-width: 720px;
}
.ws-meth-prose:last-child { margin-bottom: 0; }

/* Inline links in lede + prose — gold, hairline underline
   (matches .ws-doc-section__intro a). */
.ws-meth-section__intro a,
.ws-meth-prose a,
.ws-meth-reading a {
  color: var(--ws-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--ws-accent);
}
.ws-meth-section__intro a:hover,
.ws-meth-prose a:hover,
.ws-meth-reading a:hover {
  color: var(--ws-accent-hover);
  border-bottom-color: var(--ws-accent-hover);
}

/* ── Reading-order list · Beat 4 ─────────────────────────────────────
   Lighter than the topic ledger: a mono ordinal + the document (linked)
   and its purpose, one per row. Sits on the --surface band, so its row
   dividers use --ws-rule-faint (the softer divider for inset surfaces). */
.ws-meth-reading {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  max-width: 720px;
  counter-reset: read;
}
.ws-meth-reading > li {
  counter-increment: read;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--ws-rule-faint);
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body);
  line-height: var(--ws-lh-body);
  color: var(--ws-ink-muted);
}
.ws-meth-reading > li::before {
  content: counter(read, decimal-leading-zero);
  font-family: var(--ws-font-mono);
  font-size: var(--ws-fs-micro);
  letter-spacing: var(--ws-tracking-mono);
  color: var(--ws-accent);
}

/* ── Sixteen-topic ledger list ───────────────────────────────────────
   Enumerated list styled to the universal-card rail rhythm: a mono
   "NN / 16" ordinal in a 140px rail (--ws-uc-rail-width), the topic in
   serif, the structural argument in sans-muted below it. Hairline rules
   between rows give the ledger feel. */
.ws-meth-topics {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  max-width: 820px;
  counter-reset: topic;
  border-top: 1px solid var(--ws-rule);
}
.ws-meth-topics > li {
  counter-increment: topic;
  display: grid;
  grid-template-columns: var(--ws-uc-rail-width) 1fr;
  column-gap: var(--ws-uc-col-gap);
  row-gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ws-rule);
}
.ws-meth-topics > li::before {
  content: counter(topic, decimal-leading-zero) " / 16";
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--ws-font-mono);
  font-size: var(--ws-fs-micro);
  letter-spacing: var(--ws-tracking-mono);
  color: var(--ws-accent);
  padding-top: 4px;
}
.ws-meth-topic__term {
  grid-column: 2;
  font-family: var(--ws-font-display);
  font-size: var(--ws-fs-lede);
  font-weight: 600;
  line-height: var(--ws-lh-tight);
  color: var(--ws-ink);
}
.ws-meth-topic__why {
  grid-column: 2;
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body);
  line-height: var(--ws-lh-body);
  color: var(--ws-ink-muted);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .ws-meth-section { padding: 44px 0 40px; }
  .ws-meth-section__wrap { padding: 0 24px; }

  /* Topic rows collapse the mono rail to a stacked label above the term,
     mirroring the compact-hero rail collapse at this breakpoint. */
  .ws-meth-topics > li {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
  .ws-meth-topics > li::before {
    grid-row: auto;
    grid-column: 1;
    padding-top: 0;
  }
  .ws-meth-topic__term,
  .ws-meth-topic__why { grid-column: 1; }
}
