/* CELA store theme for pqc.html and verify.html (2026-11-11, docs/PQC_PAGE.md §1f). verify.html keeps its
   Courier New typeface (body.cela-theme-mono). Cards have NO outline: depth comes from the gradient and shadow.
   The same palette as store.html: near-black background, dark gradient cards with faint green lines, ink and muted
   text, cyan accent, green for headings only, no neon glow. Loaded LAST and scoped to body.cela-theme, so it wins
   over each page's own rules of the same selector without touching layout. Colours, borders and shadows only. */
:root {
    --ct-green: #00ff00; --ct-cyan: #00ffcc; --ct-ink: #e6efe9; --ct-muted: #93a39b; --ct-faint: #67776f;
    --ct-bg: #050806; --ct-card: linear-gradient(160deg, rgba(14, 22, 18, 0.94) 0%, rgba(6, 10, 8, 0.94) 100%);
    --ct-line: rgba(0, 255, 160, 0.16); --ct-line-strong: rgba(0, 255, 160, 0.42);
    --ct-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --ct-mono: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
    --ct-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ct-btn: linear-gradient(90deg, var(--ct-green), var(--ct-cyan));
}

/* Page */
html body.cela-theme {
    color: var(--ct-ink); font-family: var(--ct-sans); background-color: var(--ct-bg);
    background: radial-gradient(1200px 600px at 50% -10%, rgba(0, 255, 140, 0.10), transparent 60%), linear-gradient(180deg, #070b09 0%, var(--ct-bg) 100%) fixed;
}
body.cela-theme::before { background: transparent; }
body.cela-theme * { text-shadow: none; }
body.cela-theme a { color: var(--ct-cyan); }

/* Cards and panels: dark gradient, faint line, plain shadow */
body.cela-theme .card, body.cela-theme .cela-card, body.cela-theme .verification-section, body.cela-theme .code-component,
body.cela-theme .component-item, body.cela-theme .panel, body.cela-theme .header-card, body.cela-theme .intro-card {
    background: var(--ct-card); border-color: var(--ct-line); box-shadow: var(--ct-shadow);
}
body.cela-theme .card:hover, body.cela-theme .cela-card:hover, body.cela-theme .cela-card-primary:hover,
body.cela-theme .cela-card-secondary:hover, body.cela-theme .code-component:hover, body.cela-theme .component-item:hover,
body.cela-theme .stat-item:hover, body.cela-theme .flow-step:hover, body.cela-theme .feature:hover,
body.cela-theme #verification-tab .panel:hover, body.cela-theme #verification-tab .panel:focus-within {
    border-color: var(--ct-line-strong); box-shadow: var(--ct-shadow);
}

/* Inner boxes: quiet tint, faint lines, the left accent kept but softer */
body.cela-theme .feature, body.cela-theme .cela-highlight, body.cela-theme .info-box, body.cela-theme .status-item {
    background: rgba(0, 255, 160, 0.04); border-color: var(--ct-line); border-left-color: rgba(0, 255, 160, 0.45); box-shadow: none;
}
body.cela-theme .status-item { border-left-color: var(--ct-line); }
body.cela-theme .spec, body.cela-theme .result-item, body.cela-theme .check-list li, body.cela-theme .panel h2 { border-color: var(--ct-line); }
body.cela-theme .result, body.cela-theme .cela-image-container, body.cela-theme .cela-image-container img,
body.cela-theme .cela-card-icon, body.cela-theme .component-icon, body.cela-theme .cela-reel__video,
body.cela-theme .lightbox img { border-color: var(--ct-line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }

/* Headings: green or ink, no glow */
body.cela-theme .card h2, body.cela-theme .cela-card h3, body.cela-theme .cela-main-title, body.cela-theme .panel h2,
body.cela-theme .header-card h1, body.cela-theme .verification-section h2, body.cela-theme .diagram-title { color: var(--ct-green); }

/* Status badges: outlined chips like the store's */
body.cela-theme .badge {
    background: rgba(0, 255, 0, 0.06); color: var(--ct-green); border: 1px solid rgba(0, 255, 0, 0.4); box-shadow: none;
}
body.cela-theme .badge.pqtls-badge {
    background: rgba(0, 255, 204, 0.05) !important; color: var(--ct-cyan) !important; border-color: var(--ct-line-strong);
    box-shadow: none !important;
}
body.cela-theme .status { box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.12); }
body.cela-theme .component-number { box-shadow: none; }
body.cela-theme .hero-badge { box-shadow: 0 0 0 8px rgba(0, 255, 160, 0.04); }

/* Buttons: like the store, ONE primary pill per section, the rest are ghost buttons */
body.cela-theme .verify-button, body.cela-theme .hero-link-primary, body.cela-theme .doc-link:not(.secondary),
body.cela-theme #verify-all-button, body.cela-theme .btn-primary {
    background: var(--ct-btn) !important; color: #031006 !important; border: 0; box-shadow: 0 10px 26px rgba(0, 255, 120, 0.18);
}
body.cela-theme .verify-button:hover, body.cela-theme #verify-all-button:hover, body.cela-theme .btn-primary:hover {
    box-shadow: 0 14px 30px rgba(0, 255, 120, 0.26);
}
body.cela-theme .hero-link:not(.hero-link-primary), body.cela-theme .doc-link.secondary,
body.cela-theme button:not(.verify-button):not(.btn-primary):not(#verify-all-button):not(.tab-button):not(.lightbox-close):not(.simulation-btn):not([style*="background"]) {
    background: rgba(0, 0, 0, 0.4); color: var(--ct-cyan); border: 1px solid var(--ct-line-strong); box-shadow: none;
}
body.cela-theme button:not(.verify-button):not(.btn-primary):not(#verify-all-button):not(.tab-button):not(.lightbox-close):not(.simulation-btn):not([style*="background"]):hover {
    background: rgba(0, 255, 160, 0.08); border-color: var(--ct-cyan); box-shadow: none;
}
body.cela-theme button { font-family: var(--ct-sans); }

/* Tabs: ghost pills, the selected one is the store's primary */
body.cela-theme .page-tab, body.cela-theme .tab-button {
    color: var(--ct-muted); background: rgba(0, 0, 0, 0.4); border-color: var(--ct-line); box-shadow: none;
}
body.cela-theme .page-tab[aria-selected="true"], body.cela-theme .tab-button.active {
    color: #031006; background: var(--ct-btn); border-color: transparent; box-shadow: none;
}

/* Verify page: verdicts and form fields */
body.cela-theme .verdict.VERIFIED { border-color: rgba(0, 255, 0, 0.45); background: rgba(0, 255, 0, 0.06); box-shadow: none; }
body.cela-theme .result.success, body.cela-theme .hash-row.match { border-color: rgba(0, 255, 0, 0.45); }
body.cela-theme input[type="text"], body.cela-theme input[type="number"], body.cela-theme textarea, body.cela-theme select {
    font-family: var(--ct-mono); border-color: var(--ct-line);
}
body.cela-theme input:focus, body.cela-theme textarea:focus, body.cela-theme select:focus {
    border-color: var(--ct-line-strong); box-shadow: 0 0 0 3px rgba(0, 255, 160, 0.08);
}
body.cela-theme .store-cta { border-color: var(--ct-line-strong); background: var(--ct-card); }
body.cela-theme .store-cta:hover, body.cela-theme .store-cta:focus-visible { box-shadow: var(--ct-shadow); }
body.cela-theme .lightbox-close { box-shadow: none; }

/* Code, hashes and keys stay monospace */
body.cela-theme code, body.cela-theme pre, body.cela-theme kbd, body.cela-theme .hash-row { font-family: var(--ct-mono); }

/* Small animated parts: no neon */
body.cela-theme .threat-icon, body.cela-theme .threat-stage.completed .threat-icon { box-shadow: none; }
body.cela-theme .connector-line, body.cela-theme .progress-fill, body.cela-theme .step-flow::before,
body.cela-theme .timeline-item:before { background: linear-gradient(90deg, rgba(0, 255, 0, 0.7), rgba(0, 255, 204, 0.7)); }

/* "Breathing" cards: keep the gentle scale, drop the neon pulse (the pages' own @keyframes breathe is untouched) */
@keyframes ct-breathe {
    0%, 100% { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45); transform: scale(1); }
    50% { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 160, 0.10); transform: scale(1.01); }
}
body.cela-theme .animate-breathe { animation-name: ct-breathe; }
body.cela-theme .zoomable { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
body.cela-theme .zoomable:hover, body.cela-theme .zoomable:focus-visible { box-shadow: 0 0 0 1px var(--ct-line-strong), 0 14px 34px rgba(0, 0, 0, 0.5); }
@media (prefers-reduced-motion: reduce) { body.cela-theme .animate-breathe { animation: none; } }

/* verify.html keeps its original typewriter face (operator's choice, 2026-11-11); only the colours change. */
html body.cela-theme.cela-theme-mono, body.cela-theme.cela-theme-mono button { font-family: 'Courier New', monospace; }

/* No outline around cards (2026-11-11): a smooth, blended look. Depth comes from the dark gradient and the shadow.
   Inner dividers (headings, table rows) stay. */
body.cela-theme .card, body.cela-theme .cela-card, body.cela-theme .verification-section, body.cela-theme .code-component,
body.cela-theme .component-item, body.cela-theme .panel, body.cela-theme .header-card, body.cela-theme .intro-card,
body.cela-theme .feature, body.cela-theme .cela-highlight, body.cela-theme .info-box, body.cela-theme .status-item,
body.cela-theme .stat-item, body.cela-theme .flow-step, body.cela-theme .store-cta, body.cela-theme .pq-story li,
body.cela-theme .cela-image-container, body.cela-theme .result {
    border-color: transparent !important;
}
body.cela-theme .card:hover, body.cela-theme .cela-card:hover, body.cela-theme .component-item:hover, body.cela-theme .code-component:hover,
body.cela-theme .feature:hover, body.cela-theme .stat-item:hover, body.cela-theme .flow-step:hover, body.cela-theme .store-cta:hover,
body.cela-theme #verification-tab .panel:hover, body.cela-theme #verification-tab .panel:focus-within {
    border-color: transparent !important; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.cela-theme .pq-story li { background: rgba(255, 255, 255, 0.025); }
body.cela-theme .cela-card-header, body.cela-theme .panel h2 { border-color: var(--ct-line) !important; }
