/* =========================================================================
   patents-page.css — page-specific overrides for /patents.
   Most styling comes from the v1.3/v1.4 component CSS files; this file
   only adds layout chrome the components don't carry.
   No new tokens, no literal hex.
   ========================================================================= */

/* ── Page hero (Beat 1) ──────────────────────────────────────────────
   Migrated to the shared compact-hero component (variant
   .ws-chero--portal). See compact-hero.css. The legacy .ws-hero rules
   previously here are superseded by the component's two-variant system. */

/* ── Generic section wrapper ─────────────────────────────────────── */
.ws-sec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px;
}
.ws-sec--tight { padding: 48px 48px; }
.ws-sec--bone { background: var(--ws-page); }
.ws-sec--surface { background: var(--ws-surface); }

.ws-sec__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-ink-faint);
  font-weight: 500;
  margin-bottom: 14px;
}
.ws-sec__title {
  font-family: var(--ws-font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ws-ink);
  margin: 0 0 24px;
  max-width: 720px;
}

/* ── Beat 3 thesis prose ─────────────────────────────────────────── */
.ws-thesis {
  max-width: 760px;
  font-family: var(--ws-font-body);
}
.ws-thesis p {
  font-size: var(--ws-fs-body);
  line-height: var(--ws-lh-body);
  color: var(--ws-ink);
  margin: 0 0 18px;
}
.ws-thesis p:last-child { margin-bottom: 0; }
.ws-thesis strong {
  color: var(--ws-ink);
  font-weight: 600;
}

/* ── Beat 4 lineage two-column ───────────────────────────────────── */
.ws-beat4 {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 48px;
  align-items: start;
}
/* Allow grid tracks to shrink below their min-content size on narrow
   viewports; without this the lineage diagram's min-content (~382px)
   forces horizontal overflow under ~400px wide. */
.ws-beat4 > * { min-width: 0; }
.ws-beat4__prose {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body);
  line-height: var(--ws-lh-body);
  color: var(--ws-ink);
  max-width: 460px;
}
.ws-beat4__prose p { margin: 0 0 14px; }
.ws-beat4__prose p:last-child { margin: 0; }

@media (max-width: 1000px) {
  .ws-beat4 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ws-beat4__prose { max-width: 720px; }
}

/* ── Beat 5 roster ───────────────────────────────────────────────── */
.ws-roster {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ws-roster__group-label {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body-sm);
  font-style: italic;
  color: var(--ws-ink-faint);
  margin: 22px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ws-rule-faint);
  line-height: 1.5;
}
.ws-roster__footnote {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body-sm);
  font-style: italic;
  color: var(--ws-ink-muted);
  line-height: 1.6;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ws-rule-faint);
  max-width: 880px;
}
.ws-roster__inventors {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body-sm);
  font-style: italic;
  color: var(--ws-ink-faint);
  line-height: 1.5;
  margin: 14px 0 0;
}

/* ── Beat 6 mechanism grid ───────────────────────────────────────── */
.ws-mech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 800px) {
  .ws-mech-grid { grid-template-columns: 1fr; }
}

/* ── Beat 7 QPIIN gateway ────────────────────────────────────────── */
.ws-qpiin {
  background: var(--ws-surface);
  border: 1px solid var(--ws-rule);
  border-top: 2px solid var(--ws-accent);
  padding: 40px 44px 36px;
  max-width: 880px;
}
.ws-qpiin__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-bottom: 14px;
}
.ws-qpiin__title {
  font-family: var(--ws-font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ws-ink);
  margin: 0 0 18px;
}
.ws-qpiin__prose p {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body);
  line-height: var(--ws-lh-body);
  color: var(--ws-ink);
  margin: 0 0 14px;
}
.ws-qpiin__prose strong { font-weight: 600; }
.ws-qpiin__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ws-rule-faint);
}
.ws-qpiin__cta {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body-sm);
  font-weight: 600;
  color: var(--ws-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--ws-accent);
  padding-bottom: 2px;
}
.ws-qpiin__cta:hover {
  color: var(--ws-accent-hover);
  border-bottom-color: var(--ws-accent-hover);
}
.ws-qpiin__cta--muted {
  color: var(--ws-ink);
  border-bottom-color: var(--ws-ink);
}
.ws-qpiin__cta--muted:hover {
  color: var(--ws-ink-muted);
  border-bottom-color: var(--ws-ink-muted);
}

/* ── Beat 8 · Our Ecosystem (mirrored from webshield-home.css) ───── */
/* The .ws-eco markup is copied verbatim from /index.html (shared block
   per webshield-site-design.md §7.2). Styles are mirrored here so the
   patents page does not pull in webshield-home.css (which carries other
   page-local home rules — reframe, universals stack, evidence). */
.ws-eco {
  background: var(--ws-page);
  border-top: 1px solid var(--ws-rule);
}
.ws-eco__wrap { max-width: 1200px; margin: 0 auto; padding: 72px 48px 96px; }
.ws-eco__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-ink-faint); font-weight: 500;
  margin-bottom: 14px;
}
.ws-eco__title {
  font-family: var(--ws-font-display);
  font-size: 28px; font-weight: 500;
  line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ws-ink);
  margin: 0 0 32px;
}
.ws-eco__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.ws-eco__card {
  background: var(--ws-surface);
  border: 1px solid var(--ws-rule);
  padding: 22px 22px 20px;
  font-family: var(--ws-font-body);
  height: 100%;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.ws-eco__card--here { border-left: 3px solid var(--ws-accent); }
.ws-eco__card--disabled { opacity: 0.78; }
.ws-eco__card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; min-height: 18px;
}
.ws-eco__card-ord {
  font-family: var(--ws-font-mono);
  font-size: 10.5px;
  letter-spacing: var(--ws-tracking-mono);
  color: var(--ws-ink-faint);
}
.ws-eco__card-here-tag {
  font-family: var(--ws-font-mono);
  font-size: 10px;
  letter-spacing: var(--ws-tracking-mono);
  text-transform: uppercase;
  color: var(--ws-accent);
  background: var(--ws-surface-2);
  padding: 3px 8px;
  border: 1px solid var(--ws-accent);
}
.ws-eco__card-name {
  font-family: var(--ws-font-display);
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.005em; line-height: 1.2;
  color: var(--ws-ink);
  margin-bottom: 6px;
}
.ws-eco__card-domain {
  font-family: var(--ws-font-mono);
  font-size: 11px;
  letter-spacing: var(--ws-tracking-mono);
  color: var(--ws-ink-muted);
  margin-bottom: 12px;
}
.ws-eco__card--disabled .ws-eco__card-domain {
  color: var(--ws-ink-faint); font-style: italic;
}
.ws-eco__card-desc {
  font-size: 13px; line-height: 1.55;
  color: var(--ws-ink-muted);
}
@media (max-width: 1100px) { .ws-eco__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .ws-eco__grid { grid-template-columns: 1fr; } }

/* ── Section responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .ws-sec { padding: 48px 28px; }
}

/* =========================================================================
   ws-wherein — Beat 4b on /patents. Patent strategy primitive: the Wherein
   clause inheritance mechanism per QPN Context Primer v2.0.3 §22.7. Lifts
   allowance probability from 60-95% to 96-98% via 2016 priority inheritance
   from US 12,316,610 B1's five granted independent claims.

   Composition: a lede paragraph; a 3-column grid of effects (priority
   inheritance, §103 defense, §112 enablement automatic); an impact block
   contrasting allowance bands with/without the clause; a closing strategy
   paragraph.
   ========================================================================= */
.ws-wherein {
  max-width: 1040px;
  margin: 0 auto;
}

.ws-wherein__lede {
  font-family: var(--ws-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ws-ink);
  margin: 0 0 36px;
}

.ws-wherein__lede em {
  font-style: italic;
  color: var(--ws-ink-muted);
}

.ws-wherein__lede strong {
  font-weight: 600;
}

.ws-wherein__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin-bottom: 40px;
}

.ws-wherein__effect {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  border-top: 1px solid var(--ws-rule);
}

.ws-wherein__effect-ord {
  font-family: var(--ws-font-mono);
  font-size: var(--ws-fs-micro);
  color: var(--ws-accent);
  letter-spacing: var(--ws-tracking-mono);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 6px;
}

.ws-wherein__effect-title {
  font-family: var(--ws-font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ws-ink);
  margin-bottom: 10px;
}

.ws-wherein__effect p {
  font-family: var(--ws-font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ws-ink-muted);
  margin: 0;
}

/* Impact block — labeled rows contrasting allowance probability bands */
.ws-wherein__impact {
  border-top: 2px solid var(--ws-accent);
  margin-bottom: 32px;
}

.ws-wherein__impact-row {
  display: grid;
  grid-template-columns: 200px 200px 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ws-rule);
}

.ws-wherein__impact-label {
  font-family: var(--ws-font-mono);
  font-size: var(--ws-fs-micro);
  letter-spacing: var(--ws-tracking-mono);
  text-transform: uppercase;
  color: var(--ws-ink-muted);
  font-weight: 500;
}

.ws-wherein__impact-value {
  font-family: var(--ws-font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ws-ink);
}

.ws-wherein__impact-row--strong .ws-wherein__impact-value {
  color: var(--ws-accent);
}

.ws-wherein__impact-note {
  font-family: var(--ws-font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ws-ink-muted);
}

.ws-wherein__strategy {
  font-family: var(--ws-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ws-ink-muted);
  margin: 0;
}

.ws-wherein__strategy strong {
  color: var(--ws-ink);
  font-weight: 600;
}

.ws-wherein__strategy em {
  font-style: italic;
}

/* Responsive */
@media (max-width: 960px) {
  .ws-wherein__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ws-wherein__impact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
