/* =========================================================================
   patent-card — v1.4 (2026-04-25). Extends v1.3 with a `private` variant.
   Sources all color, type, spacing, rule weights from webshield-navy.css.
   No new tokens, no literal hex values.

   Three variants:
     • .ws-pc              standard — for non-featured published cards
     • .ws-pc--featured    featured — for the granted patent (#1)
     • .ws-pc--private     NEW v1.4 — for QPIIN-gated cards (#2 CIP, #3 PNX)

   Status chip palette:
     granted     → FILLED gold
     pending     → OUTLINED navy
     provisional → OUTLINED muted
     private     → OUTLINED-DASHED muted (NEW v1.4)

   Private variant visual treatment:
     • surface-2 background (the inset surface — same as featured but
       without the gold top rule).
     • 1px DASHED rule border (vs 1px solid on standard) — telegraphs
       "this exists but is not fully published" without language.
     • Title color softens to --ws-ink-muted (vs --ws-ink on standard);
       weight stays 500.
     • Suppressed at the JSX layer: identifiers row, dates row, download
       slot, externalLink slot, reading-note slot.
     • New action slot (.ws-pc__actions--qpiin) for the single QPIIN CTA.
   ========================================================================= */

/* ── Base / standard card ─────────────────────────────────────────── */
.ws-pc {
  background: var(--ws-surface);
  border: 1px solid var(--ws-rule);
  padding: 24px 26px 22px;
  font-family: var(--ws-font-body);
  color: var(--ws-ink);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ws-pc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.ws-pc__ord {
  font-family: var(--ws-font-mono);
  font-size: var(--ws-fs-micro);
  color: var(--ws-ink-faint);
  letter-spacing: var(--ws-tracking-mono);
  font-weight: 500;
}

.ws-pc__title {
  font-family: var(--ws-font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ws-ink);
  margin: 0 0 12px;
}

.ws-pc__ids {
  font-family: var(--ws-font-mono);
  font-size: 11.5px;
  color: var(--ws-ink);
  letter-spacing: var(--ws-tracking-mono);
  line-height: 1.5;
  margin-bottom: 6px;
}
.ws-pc__ids-sep {
  color: var(--ws-rule);
  margin: 0 8px;
}
.ws-pc__ids-label {
  color: var(--ws-ink-faint);
  font-weight: 500;
}

.ws-pc__dates {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body-sm);
  color: var(--ws-ink-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.ws-pc__dates-sep {
  color: var(--ws-rule);
  margin: 0 8px;
}

.ws-pc__scope {
  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 14px;
}

/* Reading-note — italic, body-sm, ink-faint */
.ws-pc__reading-note {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body-sm);
  font-style: italic;
  line-height: 1.55;
  color: var(--ws-ink-faint);
  margin: 0 0 14px;
}
.ws-pc__reading-note--above {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ws-rule-faint);
}

.ws-pc__supports {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ws-rule-faint);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.ws-pc__supports-label {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-label);
  font-weight: 500;
  color: var(--ws-ink-faint);
  text-transform: uppercase;
  letter-spacing: var(--ws-tracking-label);
}

.ws-pc__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ws-rule-faint);
}

.ws-pc__link {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body-sm);
  font-weight: 500;
  color: var(--ws-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--ws-accent);
  padding-bottom: 2px;
}
.ws-pc__link:hover {
  color: var(--ws-accent-hover);
  border-bottom-color: var(--ws-accent-hover);
}

.ws-pc__link--muted {
  color: var(--ws-ink);
  border-bottom-color: var(--ws-ink);
}
.ws-pc__link--muted:hover {
  color: var(--ws-ink-muted);
  border-bottom-color: var(--ws-ink-muted);
}

/* ── Featured variant ─────────────────────────────────────────────── */
.ws-pc--featured {
  background: var(--ws-surface-2);
  border: 1px solid var(--ws-rule);
  border-top: 2px solid var(--ws-accent);
  padding: 32px 36px 28px;
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 36px;
  align-items: start;
}

.ws-pc--featured .ws-pc__head {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
}

.ws-pc--featured .ws-pc__ord {
  font-size: var(--ws-fs-label);
  text-transform: uppercase;
  color: var(--ws-accent);
  letter-spacing: var(--ws-tracking-label);
  font-family: var(--ws-font-body);
  font-weight: 600;
}

.ws-pc--featured .ws-pc__title,
.ws-pc--featured .ws-pc__ids,
.ws-pc--featured .ws-pc__dates,
.ws-pc--featured .ws-pc__scope,
.ws-pc--featured .ws-pc__reading-note,
.ws-pc--featured .ws-pc__supports,
.ws-pc--featured .ws-pc__actions {
  grid-column: 2 / 3;
}

.ws-pc--featured .ws-pc__title {
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.ws-pc--featured .ws-pc__ids {
  font-size: 12.5px;
  margin-bottom: 8px;
}

.ws-pc--featured .ws-pc__dates {
  font-size: var(--ws-fs-body);
  margin-bottom: 20px;
}

.ws-pc--featured .ws-pc__scope {
  font-family: var(--ws-font-display);
  font-size: var(--ws-fs-lede);
  line-height: var(--ws-lh-lede);
  font-weight: 500;
  color: var(--ws-ink);
  letter-spacing: -0.005em;
  margin-bottom: 18px;
}

.ws-pc--featured .ws-pc__supports {
  padding-top: 18px;
  border-top: var(--ws-rule-anchor) solid var(--ws-accent);
  margin-bottom: 18px;
}

.ws-pc--featured .ws-pc__actions {
  padding-top: 16px;
  border-top: 1px solid var(--ws-rule-faint);
  gap: 22px;
}

/* ── Private variant (NEW v1.4) ───────────────────────────────────── */
.ws-pc--private {
  background: var(--ws-surface-2);
  border: 1px dashed var(--ws-rule);
  padding: 24px 26px 22px;
}

.ws-pc--private .ws-pc__title {
  color: var(--ws-ink-muted);
}

.ws-pc--private .ws-pc__scope {
  color: var(--ws-ink-muted);
  margin-bottom: 16px;
}

.ws-pc--private .ws-pc__supports {
  border-top: 1px solid var(--ws-rule);
}

.ws-pc__actions--qpiin {
  border-top: 1px solid var(--ws-rule);
  padding-top: 14px;
}

.ws-pc__link--qpiin {
  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;
  letter-spacing: 0.005em;
}
.ws-pc__link--qpiin:hover {
  color: var(--ws-accent-hover);
  border-bottom-color: var(--ws-accent-hover);
}

/* ── Status chip — fixed palette ──────────────────────────────────── */
.ws-pc-status {
  display: inline-flex;
  align-items: center;
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ws-tracking-label);
  padding: 4px 10px;
  border-radius: 2px;
  line-height: 1.4;
  white-space: nowrap;
}

.ws-pc-status--granted {
  background: var(--ws-accent);
  color: var(--ws-page);
  border: 1px solid var(--ws-accent);
}

.ws-pc-status--pending {
  background: var(--ws-surface);
  color: var(--ws-ink);
  border: 1px solid var(--ws-ink);
}

.ws-pc-status--provisional {
  background: var(--ws-surface);
  color: var(--ws-ink-muted);
  border: 1px solid var(--ws-ink-muted);
}

/* Private — outlined dashed muted (NEW v1.4) */
.ws-pc-status--private {
  background: transparent;
  color: var(--ws-ink-muted);
  border: 1px dashed var(--ws-ink-muted);
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .ws-pc--featured {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
  .ws-pc--featured .ws-pc__head {
    flex-direction: row;
    align-items: center;
  }
  .ws-pc--featured .ws-pc__title,
  .ws-pc--featured .ws-pc__ids,
  .ws-pc--featured .ws-pc__dates,
  .ws-pc--featured .ws-pc__scope,
  .ws-pc--featured .ws-pc__reading-note,
  .ws-pc--featured .ws-pc__supports,
  .ws-pc--featured .ws-pc__actions {
    grid-column: 1 / 2;
  }
}
