/* ui/statement.css — owned by W12. EVERY selector prefixed `st-` (SHELL_CONTRACT §3.2).
   An unprefixed rule here silently restyles someone else's surface. */

.st-wrap { --st-indigo:#4330F5; --st-depth:#271257; --st-deep:#1A0B3D;
  --st-demo:#B45309; --st-demo-bg:#FFF7ED; --st-demo-bd:#FDBA74;
  --st-ink:#1F2937; --st-mut:#6B7280; --st-line:#E5E7EB; --st-ok:#047857;
  font-family:'Poppins',system-ui,sans-serif; color:var(--st-ink); padding-bottom:48px; }

.st-title { font-family:var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size:26px; font-weight:650;
  color:var(--st-deep); margin:0 0 4px; letter-spacing:-.01em; }
.st-sub { margin:0; font-size:13px; color:var(--st-mut); }
.st-sub a { color:var(--st-indigo); }

.st-head { display:flex; justify-content:space-between; align-items:flex-start; gap:24px;
  padding-bottom:16px; border-bottom:1px solid var(--st-line); margin-bottom:20px; }
.st-actions { display:flex; gap:8px; align-items:center; flex-shrink:0; }

/* ---- DEMO. Unmistakable. This is the single most important visual rule in the file. ----
   A mocked figure that can be mistaken for a real one is the one thing that turns a good
   demo into a liability — this form is destined for an audited filing with the Commonwealth. */
.st-demo-banner { background:var(--st-demo-bg); border:1px solid var(--st-demo-bd);
  border-left:4px solid var(--st-demo); color:#7C2D12; padding:12px 16px; border-radius:8px;
  font-size:13px; line-height:1.5; margin-bottom:20px; }

.st-chip { display:inline-block; font-size:10px; font-weight:600; letter-spacing:.04em;
  text-transform:uppercase; padding:2px 7px; border-radius:99px; white-space:nowrap; }
.st-chip--demo { background:var(--st-demo-bg); color:var(--st-demo); border:1px solid var(--st-demo-bd); }
.st-chip--observed { background:#ECFDF5; color:var(--st-ok); border:1px solid #6EE7B7; }
.st-chip--overridden { background:#EEF2FF; color:var(--st-indigo); border:1px solid #C7D2FE; }
.st-chip--unavailable { background:#F3F4F6; color:var(--st-mut); border:1px solid var(--st-line); }
.st-chip--human { background:#FEF3C7; color:#92400E; border:1px solid #FCD34D; }

/* ---- THE CENSUS. "30 of 33 filled. 3 only you can answer." ------------------------- */
.st-census { background:#FAFAFF; border:1px solid #E7E5FF; border-radius:10px; padding:14px 16px;
  margin-bottom:16px; }
.st-census-lead { font-size:15px; color:var(--st-deep); margin-bottom:8px; }
.st-census-list { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px 20px; }
.st-census-row { font-size:12.5px; color:var(--st-mut); padding-left:14px; position:relative; }
.st-census-row::before { content:""; position:absolute; left:0; top:6px; width:7px; height:7px;
  border-radius:50%; }
.st-census-row b { color:var(--st-ink); font-weight:650; }
.st-census-row--observed::before { background:var(--st-ok); }
.st-census-row--demo::before { background:var(--st-demo); }
.st-census-row--overridden::before { background:var(--st-indigo); }
.st-census-row--unavailable::before { background:#9CA3AF; }
.st-census-row--human::before { background:#F59E0B; }

.st-audit { display:flex; align-items:flex-start; gap:12px; background:#fff;
  border:1px solid var(--st-line); border-left:4px solid var(--st-indigo); padding:14px 16px;
  border-radius:8px; margin-bottom:16px; }
.st-audit-badge { background:var(--st-indigo); color:#fff; font-size:10px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; padding:3px 8px; border-radius:4px;
  flex-shrink:0; margin-top:1px; }
.st-audit strong { display:block; font-size:12.5px; color:var(--st-deep); line-height:1.55;
  font-weight:600; }
.st-audit p { font-size:12px; color:var(--st-mut); line-height:1.6; margin:6px 0 0; max-width:88ch; }

.st-home { font-family:var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size:19px; font-weight:600; color:var(--st-deep);
  margin:20px 0 12px; }
.st-home-beds { font-size:12px; font-weight:500; color:var(--st-mut); }

/* ---- Sections ---------------------------------------------------------------------- */
.st-sec { border:1px solid var(--st-line); border-radius:12px; padding:18px 20px; margin-bottom:16px;
  background:#fff; }
.st-sec-h { font-family:var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size:16px; font-weight:600; color:var(--st-deep);
  margin:0 0 14px; display:flex; align-items:center; gap:10px; }
.st-sec--calc { background:#FCFCFF; }
.st-calc-badge { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.05em;
  background:#EEF2FF; color:var(--st-indigo); padding:2px 8px; border-radius:99px; }
.st-grp { margin-bottom:22px; }
.st-grp-h { font-size:13.5px; font-weight:600; color:var(--st-ink); margin:0 0 10px;
  padding-bottom:6px; border-bottom:1px solid var(--st-line); }
.st-qs { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.st-q-h { font-size:11.5px; font-weight:600; color:var(--st-mut); text-transform:uppercase;
  letter-spacing:.04em; margin-bottom:8px; }
.st-months { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }

/* ---- The cell. Value + provenance + derivation + override. -------------------------- */
.st-cell { border:1px solid var(--st-line); border-radius:8px; padding:10px 12px; margin-bottom:8px;
  background:#fff; }
.st-cell--demo { background:var(--st-demo-bg); border-color:var(--st-demo-bd); }
.st-cell--unavailable { background:#FAFAFA; border-style:dashed; }
.st-cell--overridden { background:#F5F3FF; border-color:#C7D2FE; }
.st-cell-label { font-size:11.5px; color:var(--st-mut); line-height:1.35; margin-bottom:6px; }
.st-cell-body { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.st-cell-value { font-family:var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size:17px; font-weight:600;
  color:var(--st-deep); flex:1; min-width:0; }

/* ABSENCE IS NEVER ZERO. It reads as a sentence, and it never looks like a number. */
.st-nodata { font-family:'Poppins',sans-serif; font-size:12px; font-weight:500; font-style:italic;
  color:var(--st-mut); }

.st-edit { background:none; border:1px solid var(--st-line); border-radius:5px; font-size:10.5px;
  color:var(--st-mut); padding:2px 7px; cursor:pointer; font-family:inherit; }
.st-edit:hover { border-color:var(--st-indigo); color:var(--st-indigo); }
.st-deriv { margin-top:7px; }
.st-deriv summary { font-size:11px; color:var(--st-mut); cursor:pointer; }
.st-deriv p { font-size:11.5px; color:var(--st-ink); line-height:1.5; margin:6px 0 0;
  padding:8px 10px; background:#F9FAFB; border-radius:6px; border-left:2px solid var(--st-indigo); }
.st-ovr { margin-top:6px; font-size:11px; color:var(--st-indigo); }

.st-note { font-size:12.5px; color:var(--st-ink); line-height:1.6; background:#F9FAFB;
  border-radius:8px; padding:12px 14px; margin-bottom:14px; }
.st-note--rn { background:#F5F3FF; border-left:3px solid var(--st-indigo); }

/* ---- Narratives — human only, forever. ---------------------------------------------- */
.st-narr { border:1px dashed #FCD34D; background:#FFFBEB; border-radius:8px; padding:12px 14px; }
.st-narr-p { font-size:11.5px; color:#78350F; line-height:1.55; margin:8px 0; }
.st-narr-in { width:100%; min-height:64px; border:1px solid var(--st-line); border-radius:6px;
  padding:8px 10px; font-family:inherit; font-size:12.5px; resize:vertical; }
.st-narr-val { font-size:12.5px; color:var(--st-ink); background:#fff; padding:8px 10px;
  border-radius:6px; border:1px solid var(--st-line); }

.st-closing { border:2px solid var(--st-deep); border-radius:10px; padding:14px 18px;
  margin-bottom:16px; background:#fff; }
.st-closing strong { display:block; font-family:var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size:14px;
  color:var(--st-deep); line-height:1.5; }
.st-closing p { font-size:12px; color:var(--st-mut); line-height:1.6; margin:8px 0 0; }

.st-open { border:1px solid var(--st-demo-bd); background:var(--st-demo-bg); border-radius:10px;
  padding:14px 18px; margin-bottom:16px; }
.st-open h4 { margin:0 0 6px; font-size:13.5px; color:#7C2D12; font-family:var(--font-head, 'Sansation', 'Poppins', sans-serif); }
.st-open p { font-size:12.5px; color:#7C2D12; line-height:1.6; margin:0 0 6px; }
.st-open-res a { color:#7C2D12; font-weight:600; }

/* ---- Attestation. A disabled control STATES WHY. ------------------------------------ */
.st-attest { border-color:#C7D2FE; }
.st-block { display:flex; gap:12px; background:#F5F3FF; border:1px solid #C7D2FE; border-radius:8px;
  padding:12px 14px; margin-bottom:10px; }
.st-block-icon { font-size:16px; line-height:1; }
.st-block strong { font-size:13px; color:var(--st-deep); font-family:var(--font-head, 'Sansation', 'Poppins', sans-serif); }
.st-block p { font-size:12.5px; color:var(--st-ink); line-height:1.6; margin:4px 0 0; }
.st-submit-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:12px; }
.st-submit-why { font-size:11.5px; color:var(--st-mut); flex:1; min-width:220px; line-height:1.5; }
.st-attest-note { font-size:12px; color:var(--st-mut); margin:10px 0 0; line-height:1.6; }

.st-btn { font-family:inherit; font-size:13px; font-weight:500; padding:8px 16px; border-radius:7px;
  cursor:pointer; border:1px solid var(--st-line); background:#fff; color:var(--st-ink); }
.st-btn--ghost:hover { border-color:var(--st-indigo); color:var(--st-indigo); }
/* Never primary-styled. It is disabled, it says so, and it does not look pressable. */
.st-btn--disabled { background:#F3F4F6; color:#9CA3AF; border-color:var(--st-line);
  cursor:not-allowed; }
.st-select { font-family:inherit; font-size:13px; padding:8px 10px; border-radius:7px;
  border:1px solid var(--st-line); background:#fff; max-width:240px; }

.st-log { width:100%; border-collapse:collapse; font-size:12px; }
.st-log th { text-align:left; font-weight:600; color:var(--st-mut); font-size:11px;
  text-transform:uppercase; letter-spacing:.04em; padding:6px 8px; border-bottom:1px solid var(--st-line); }
.st-log td { padding:7px 8px; border-bottom:1px solid #F3F4F6; color:var(--st-ink); }
.st-empty { font-size:12.5px; color:var(--st-mut); margin:0; line-height:1.6; }

.st-nodata-panel { border:1px solid var(--st-line); border-left:4px solid #9CA3AF; border-radius:10px;
  padding:20px 24px; background:#FAFAFA; }
.st-nodata-panel h3 { font-family:var(--font-head, 'Sansation', 'Poppins', sans-serif); color:var(--st-deep); margin:0 0 10px; }
.st-nodata-panel p { font-size:13px; color:var(--st-ink); line-height:1.65; margin:0 0 10px; }
.st-nodata-why { font-size:12px !important; color:var(--st-mut) !important; }
.st-err { border:1px solid #FCA5A5; background:#FEF2F2; color:#991B1B; border-radius:10px;
  padding:16px 20px; font-size:13px; line-height:1.6; }
.st-fp { font-size:11px; color:var(--st-mut); margin-top:14px; }
.st-fp code { background:#F3F4F6; padding:1px 5px; border-radius:4px; }

@media (max-width:900px) {
  .st-qs { grid-template-columns:1fr; }
  .st-months { grid-template-columns:repeat(2,1fr); }
  .st-head { flex-direction:column; }
}

/* ---- THE PROVENANCE / READINESS PANEL ------------------------------------------------
   First-class surface, not a footnote. It is the strongest thing on this page: it tells a
   CFO exactly what he gets for connecting each system, inside the regulated form he has to
   lodge anyway — and every claim on it is one he can verify in a second. */
.st-ready { background:linear-gradient(135deg,var(--st-deep) 0%,var(--st-depth) 100%);
  border-radius:14px; padding:22px 24px; margin-bottom:20px; color:#EDE9FE; }
.st-ready-head h3 { font-family:var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size:19px; font-weight:600; color:#fff;
  margin:0 0 6px; letter-spacing:-.01em; }
.st-ready-head p { font-size:12.5px; color:#C4B5FD; line-height:1.6; margin:0 0 16px; max-width:74ch; }
.st-ready-head strong { color:#fff; }

.st-ready-steps { list-style:none; margin:0; padding:0; display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px; }
.st-ready-step { display:flex; gap:12px; background:rgba(255,255,255,.06);
  border:1px solid rgba(167,139,250,.28); border-radius:10px; padding:12px 14px; }
.st-ready-step--auto { background:rgba(255,255,255,.03); border-style:dashed; }

.st-ready-n { flex-shrink:0; width:46px; text-align:center; }
.st-ready-n b { display:block; font-family:var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size:26px; font-weight:700;
  color:#fff; line-height:1; }
.st-ready-n span { font-size:9.5px; text-transform:uppercase; letter-spacing:.06em; color:#A78BFA; }

.st-ready-act { font-size:13.5px; font-weight:600; color:#fff; font-family:var(--font-head, 'Sansation', 'Poppins', sans-serif);
  line-height:1.35; }
/* Shown ONLY when we hold real tech-stack evidence for this home. Never decorative. */
.st-ready-seen { display:inline-block; font-family:'Poppins',sans-serif; font-size:9px;
  font-weight:600; text-transform:uppercase; letter-spacing:.05em; background:#10B981; color:#04241A;
  padding:1px 6px; border-radius:99px; vertical-align:middle; }
.st-ready-detail { font-size:11.5px; color:#DDD6FE; line-height:1.55; margin:5px 0 0; }
.st-ready-pitch { font-size:11px; color:#A78BFA; line-height:1.5; margin:5px 0 0; }

.st-ready-step--human { border-color:rgba(252,211,77,.4); }
.st-ready-step--human .st-ready-n b { color:#FCD34D; }
.st-ready-step--human .st-ready-n span { color:#FCD34D; }

@media (max-width:900px) { .st-ready-steps { grid-template-columns:1fr; } }
