/* ===========================================================================
 * It's in the Signs — shared components (P0-16, week 2).
 * Load AFTER /tokens.css on pages that need it (almanac, sign-index).
 *   <link rel="stylesheet" href="/components.css?v=1">
 * Contains ONLY rules that were byte-identical in 2+ files (audit 03 §2.2),
 * plus the new PaywallVeil component (§4e — styled here, not yet wired to
 * any page; wiring lands with the week-3/4 stepper gate).
 * NOTE: ask.html's drifted copies of these rules stay local on purpose
 * (its paddings/font sizes diverged; consolidating would change its render).
 * ======================================================================== */

/* ---- "How this Sign Index is built" reasoning rows -------------------------
 * Verbatim in almanac.html + sign-index.html (now removed there). The
 * divergent `.rrow` padding and `.rl` size rules remain per-page. */
.reason{border:1px solid var(--line);border-radius:14px;background:var(--card-2);overflow:hidden}
.rrow:first-child{border-top:none}
.rrow .rv{font-family:var(--serif);font-size:16px;font-weight:600;text-align:right;color:var(--muted)}
.rrow .rv.pos{color:var(--status-good,#4f7d4a)}
.rrow .rv.neg{color:var(--status-bad,#a4502f)}
.rrow .rw{grid-column:1/-1;font-size:12.5px;color:var(--muted);margin-top:2px;line-height:1.45}
.rrow.total{background:radial-gradient(320px 70px at 0 0,rgba(216,183,101,.16),transparent 70%)}
.rrow.total .rl,.rrow.total .rv{font-size:17px;color:var(--head)}

/* ---- Premium badge + location button (verbatim in almanac + sign-index) -- */
.prem-badge{display:inline-flex;align-items:center;gap:7px;font-family:var(--serif);font-size:12px;letter-spacing:1.5px;text-transform:uppercase;color:var(--btn-ink);background:linear-gradient(135deg,var(--gold-soft),var(--gold));border:1px solid var(--gold);border-radius:999px;padding:5px 13px}
.geo-btn{border:1px solid var(--line);background:var(--card-2);color:var(--gold-text,var(--gold));font:inherit;font-size:13px;border-radius:12px;padding:8px 12px;cursor:pointer;min-height:42px;white-space:nowrap}
.geo-btn:hover{border-color:var(--gold-soft)}

/* ---- PaywallVeil (audit 03 §4e) — "the Veil" ------------------------------
 * One locked-state component, three sizes. Gold seal (✦ in a ring), never a
 * padlock. Markup is built by /paywall-veil.js; see its usage comment.
 * DO NOT wire onto pages yet (week 3/4, stepper gate). */
.veil{position:relative;border:1px solid var(--line);border-radius:18px;background:radial-gradient(460px 170px at 50% 0%,rgba(216,183,101,.14),transparent 70%),var(--card);padding:22px 24px 20px;text-align:center}
.veil:before{content:"";position:absolute;inset:9px;border:1px solid rgba(216,183,101,.4);border-radius:12px;pointer-events:none}
/* veiled preview: the REAL computed content under a parchment gauze */
.veil-preview{position:relative;margin:0 0 16px;border-radius:12px;overflow:hidden}
.veil-preview .veil-gauze{position:absolute;inset:0;background:var(--card-2);opacity:.55;pointer-events:none}
.veil-preview .veil-content{filter:blur(2px)} /* blur is static — safe under reduced motion */
/* the seal: the house "reserved for Premium" mark */
.veil-seal{width:44px;height:44px;border-radius:50%;border:1px solid var(--gold);color:var(--gold-text,var(--gold));background:var(--card-2);display:grid;place-items:center;font-family:var(--serif);font-size:20px;line-height:1;margin:0 auto 12px;text-shadow:0 0 7px rgba(216,183,101,.45)}
/* the three answers (strict copy slots) */
.veil-what{font-family:var(--serif);font-size:19px;color:var(--head);line-height:1.25;margin:0 auto;max-width:46ch}
.veil-see{font-size:14px;color:var(--ink);margin:8px auto 0;max-width:52ch;line-height:1.5}
.veil-why{font-size:13px;color:var(--muted);font-style:italic;margin:6px auto 0;max-width:52ch;line-height:1.5}
.veil-actions{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:16px}
.veil-dismiss{border:none;background:none;color:var(--muted);font:inherit;font-size:13.5px;cursor:pointer;text-decoration:underline;padding:8px 12px;min-height:42px}
.veil-dismiss:hover{color:var(--head)}
.veil-foot{font-size:10.5px;color:var(--muted);margin-top:10px}
/* sizes */
.veil--section{padding:34px 28px 30px}
.veil--section .veil-what{font-size:24px}
.veil--chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;text-align:left;background:var(--card-2)}
.veil--chip:before{content:none}
.veil--chip .veil-seal{width:auto;height:auto;border:none;background:none;margin:0;font-size:12px;text-shadow:none}
.veil--chip .veil-what{font-size:11px;letter-spacing:.8px;text-transform:uppercase;font-weight:700;color:var(--gold-text,var(--gold));font-family:var(--sans)}
.veil--chip .veil-see,.veil--chip .veil-why,.veil--chip .veil-actions,.veil--chip .veil-foot,.veil--chip .veil-preview{display:none}

/* ---- Preview-closure notice (P0-19, week 4) -------------------------------
 * Built by /site-gate.js (IitsGate.notice). Banner line + expandable card,
 * dismissible, remembered per session. Copy carries the pinned gate date. */
.gate-notice{position:relative;border:1px solid var(--gold-soft);border-radius:16px;background:radial-gradient(460px 140px at 50% 0%,rgba(216,183,101,.14),transparent 70%),var(--card);padding:14px 46px 14px 18px;margin:16px 0}
.gate-notice .gn-line{font-family:var(--serif);font-size:15px;color:var(--head);line-height:1.5;margin:0}
.gate-notice .gn-more{border:none;background:none;padding:2px 2px;color:var(--gold-text,var(--gold));font-family:var(--serif);font-size:14.5px;cursor:pointer;text-decoration:underline}
.gate-notice .gn-more:hover{color:var(--head)}
.gate-notice .gn-more:after{content:" →"}
.gate-notice .gn-card{margin-top:12px;border-top:1px dotted var(--line);padding-top:12px}
.gate-notice .gn-card[hidden]{display:none}
.gate-notice .gn-card p{font-size:14px;color:var(--ink);line-height:1.55;margin:0 0 10px;max-width:72ch}
.gate-notice .gn-card p:last-child{margin-bottom:0}
.gate-notice .gn-head{font-family:var(--serif);color:var(--head);font-size:16px}
.gate-notice .gn-wl{color:var(--gold-text,var(--gold));font-family:var(--serif);text-decoration:none}
.gate-notice .gn-wl:hover{text-decoration:underline}
.gate-notice .gn-x{position:absolute;top:10px;right:10px;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:var(--card-2);color:var(--muted);font-size:13px;line-height:1;cursor:pointer;display:grid;place-items:center}
.gate-notice .gn-x:hover{border-color:var(--gold-soft);color:var(--head)}
