/**
 * LabPulse public site: themes (SOE Phase 2)
 * -----------------------------------------------------------------
 * The visitor's choice is one attribute on <html> (data-lp-theme), kept in this browser under its own key (labpulse-public-theme), never
 * in an account. With no choice nothing is set and the site uses the colours published in Website Management: that is DYCI Classic.
 * Presentation only: every theme shows the same CMS text, images, forms and links, in its own composition. Below 900 px every hero
 * stacks, because a phone has room for one layout. Motion respects reduced motion.
 * -----------------------------------------------------------------
 */

/* ---- the theme control in the header */
.pt { position: relative; }
.public-icon-btn.pt-btn { display: inline-flex; align-items: center; gap: 6px; width: auto; padding-inline: 10px; }
.pt-btn .pt-label { font-size: 0.82rem; font-weight: 600; }
.pt-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 90; width: 300px; max-width: calc(100vw - 24px); padding: var(--space-3); color: var(--text-primary); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(5, 12, 28, 0.55); }
.pt-panel[hidden] { display: none; }
.pt-title { margin: 0 0 var(--space-2); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.pt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.pt-option { display: grid; gap: 4px; width: 100%; padding: 6px; font: inherit; color: inherit; text-align: left; cursor: pointer; background: transparent; border: 2px solid var(--border-subtle); border-radius: 10px; }
.pt-option:hover { border-color: var(--accent-text); }
.pt-option:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pt-option[aria-checked="true"] { border-color: var(--accent-text); }
.pt-shot { position: relative; display: block; height: 46px; overflow: hidden; border-radius: 6px; }
.pt-shot::before, .pt-shot::after { content: ""; position: absolute; }
.pt-name { display: flex; justify-content: space-between; gap: 4px; font-size: 0.76rem; font-weight: 600; }
.pt-mark { display: none; color: var(--status-available-fg); }
.pt-option[aria-checked="true"] .pt-mark { display: inline; }
.pt-option[data-pt="dyci-classic"] .pt-shot { background: linear-gradient(135deg, #1e3a70, #0a1630); }
.pt-option[data-pt="dyci-classic"] .pt-shot::before { left: 8px; top: 12px; width: 44%; height: 6px; background: #e2ae45; border-radius: 3px; }
.pt-option[data-pt="dyci-classic"] .pt-shot::after { left: 8px; top: 24px; width: 28%; height: 8px; background: #fff; border-radius: 3px; }
.pt-option[data-pt="midnight"] .pt-shot { background: #0b1220 linear-gradient(rgba(125, 211, 252, 0.12) 1px, transparent 1px) 0 0 / 9px 9px; }
.pt-option[data-pt="midnight"] .pt-shot::before { left: 8px; right: 8px; bottom: 8px; height: 16px; border: 1px solid #38bdf8; }
.pt-option[data-pt="midnight"] .pt-shot::after { left: 8px; top: 8px; width: 34%; height: 5px; background: #38bdf8; }
.pt-option[data-pt="aurora"] .pt-shot { background: radial-gradient(60px 40px at 80% 10%, #8b5cf6, transparent), #120f2b; }
.pt-option[data-pt="aurora"] .pt-shot::before { left: 25%; right: 25%; top: 12px; height: 7px; background: #e9b8fb; border-radius: 9px; }
.pt-option[data-pt="aurora"] .pt-shot::after { left: 35%; right: 35%; top: 26px; height: 9px; background: #6d4fd8; border-radius: 9px; }
.pt-option[data-pt="emerald"] .pt-shot { background: #0e1412 linear-gradient(90deg, rgba(110, 231, 183, 0.12) 1px, transparent 1px) 0 0 / 9px 9px; border-left: 3px solid #34d399; }
.pt-option[data-pt="emerald"] .pt-shot::before { left: 8px; top: 12px; width: 40%; height: 5px; background: #34d399; }
.pt-option[data-pt="emerald"] .pt-shot::after { right: 8px; top: 8px; width: 34%; height: 30px; border: 1px solid #34d399; }
.pt-option[data-pt="obsidian"] .pt-shot { background: #0a0a0b; box-shadow: inset 0 0 0 1px #2a2a2c; }
.pt-option[data-pt="obsidian"] .pt-shot::before { left: 8px; top: 10px; width: 58%; height: 9px; background: #f1efea; }
.pt-option[data-pt="obsidian"] .pt-shot::after { left: 8px; bottom: 8px; width: 30%; height: 1px; background: #c9b38a; }
.pt-option[data-pt="black-red"] .pt-shot { background: radial-gradient(60px 44px at 72% 40%, #b91c2e, transparent), #08080a; box-shadow: inset 0 0 0 1px rgba(240, 66, 79, 0.4); }
.pt-option[data-pt="black-red"] .pt-shot::before { left: 8px; top: 10px; width: 46%; height: 7px; background: #f6f1f1; }
.pt-option[data-pt="black-red"] .pt-shot::after { left: 8px; bottom: 9px; width: 32%; height: 9px; background: #f0424f; border-radius: 6px 1px 6px 1px; }
.pt-mark .icon { width: 14px; height: 14px; }
.pt-option { transition: border-color 160ms ease, transform 160ms ease; }
.pt-option:hover { transform: translateY(-1px); }
[data-lp-mode] [data-theme-toggle-btn] { display: none; }
@media (max-width: 640px) { .pt-btn .pt-label { display: none; } }
/* 2026-11-28 (owner): the phone panel - placed inside the window by public-site.js (left / width / max-height); it scrolls
   inside itself on a short screen and the page behind it does not scroll along */
@media (max-width: 640px) { .pt-panel { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; } }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin: 0 0 var(--space-2); }
.pt-head .pt-title { margin: 0; }
.pt-close { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -4px -4px -4px 0; padding: 0; color: var(--text-secondary); background: transparent; border: 1px solid var(--border-subtle); border-radius: 8px; cursor: pointer; }
.pt-close:hover { color: var(--text-primary); border-color: var(--accent-text); }
.pt-close:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (max-width: 640px) { .pt-close { display: inline-flex; } }

/* ---- DYCI Classic: the published colours, with real depth. Applies when no theme is chosen and when DYCI Classic is. */
:is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) {
    --pub-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}
:is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-hero { border-radius: 0 0 56px 56px / 0 0 26px 26px; border-bottom: 2px solid rgba(226, 174, 69, 0.6); box-shadow: 0 34px 60px -40px rgba(13, 29, 61, 0.8); }
:is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-hero-title, :is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-section-head h2, :is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-system-title { font-family: var(--pub-serif); letter-spacing: -0.01em; }
:is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-eyebrow::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 8px; background: var(--pub-gold); border-radius: 3px; }
:is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-feature, :is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-audience, :is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-dev, :is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-explain { border-radius: 18px; box-shadow: 0 1px 2px rgba(13, 29, 61, 0.05), 0 18px 36px -22px rgba(13, 29, 61, 0.34); }
:is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-feature-icon, :is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-audience-icon { color: #edc873; background: linear-gradient(145deg, #1e3a70, #0d1d3d); box-shadow: 0 10px 18px -10px rgba(13, 29, 61, 0.8); }
@media (min-width: 900px) { :is(:root:not([data-lp-theme]), :root[data-lp-theme="dyci-classic"]) .public-hero-visual { transform: perspective(1200px) rotateY(-10deg) rotateX(4deg); filter: drop-shadow(0 44px 54px rgba(3, 8, 20, 0.6)); } }

/* ---- what every other theme shares: its own ground, cards and footer */
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-body { background: transparent; color: var(--text-primary); }
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-header { background: var(--lp-topbar-bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--border-subtle); }
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-footer { background: var(--surface-sidebar); color: var(--text-secondary); }
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-footer-title, :root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-brand-footer .public-brand-text span { color: var(--text-secondary); }
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-brand-footer { color: var(--text-primary); }
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-footer-col a, :root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-link-btn { color: var(--text-primary); }
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-footer-col a:hover, :root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-link-btn:hover { color: var(--accent-text); }
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-footer-col h2 { color: var(--accent-text); }
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-footer-bottom { border-top-color: var(--border-subtle); color: var(--text-secondary); }
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-feature, :root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-audience, :root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-dev, :root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-step, :root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-explain, :root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-privacy-card, :root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .campus-card, :root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .contact-card { background: var(--lp-card-bg); border: var(--lp-card-border); border-radius: var(--lp-card-radius); box-shadow: var(--lp-card-shadow), var(--lp-card-highlight); }
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-eyebrow:not(.public-eyebrow-light) { color: var(--accent-text); }
:root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-feature-icon, :root[data-lp-theme]:not([data-lp-theme="dyci-classic"]) .public-audience-icon { color: var(--accent-text); background: var(--primary-50); }

/* ---- Midnight Pro: a live console. Grid light, bracketed screens, four compact columns, steps on one line */
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) { --pub-hero-bg: linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px) 0 0 / 40px 40px, radial-gradient(900px 500px at 80% 0%, rgba(14, 165, 233, 0.22), transparent 60%), #0a101c; --pub-tint: #0f1829; --pub-on-dark: #e6edf7; --pub-on-dark-muted: #a4b3c9; --pub-gold: #38bdf8; }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .public-feature { border-left: 2px solid #38bdf8; }
:root[data-lp-theme="midnight"] .public-hero-title { font-weight: 700; letter-spacing: -0.01em; }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .public-hero-title span:last-child { color: #7dd3fc; }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .public-hero-visual { filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.35)); }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .lab-panel { border: 1px solid rgba(56, 189, 248, 0.4); border-radius: 6px; }
:root[data-lp-theme="midnight"] .public-section-head h2 { font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .public-section-head h2 { color: #bae6fd; }
:root[data-lp-theme="midnight"] .public-section-head { padding-left: var(--space-4); text-align: left; margin-inline: 0; }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .public-section-head { border-left: 2px solid #38bdf8; }
:root[data-lp-theme="midnight"] .public-step-num { font-family: var(--font-mono); }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .public-step-num { background: transparent; border: 1px solid #38bdf8; color: #7dd3fc; border-radius: 4px; }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .public-header { box-shadow: 0 1px 0 rgba(56, 189, 248, 0.3); }
@media (min-width: 900px) {
    :root[data-lp-theme="midnight"] .public-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
    :root[data-lp-theme="midnight"] .public-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    :root[data-lp-theme="midnight"] .public-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
}

/* ---- Aurora: everything floats. A pill header, a centred hero, staggered glass panes */
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) { --pub-hero-bg: radial-gradient(900px 620px at 82% 0%, rgba(139, 92, 246, 0.55), transparent 62%), radial-gradient(760px 560px at 8% 100%, rgba(56, 120, 210, 0.34), transparent 60%), #120f2b; --pub-tint: rgba(23, 19, 58, 0.5); --pub-on-dark: #ece9fb; --pub-on-dark-muted: #b6aedb; --pub-gold: #e9b8fb; }
:root[data-lp-theme="aurora"] .public-cta, :root[data-lp-theme="aurora"] .public-login-btn, :root[data-lp-theme="aurora"] .public-btn-ghost-light { border-radius: 999px; }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) .public-hero-title span:last-child { background: linear-gradient(120deg, #ffffff, #e9b8fb 60%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-lp-theme="aurora"] .lab-panel { border-radius: 26px; }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) .lab-panel { border: 1px solid rgba(167, 139, 250, 0.3); }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) .lab-stat { color: #d6d0f0; background: #241d52; }
:root[data-lp-theme="aurora"] .public-feature-icon, :root[data-lp-theme="aurora"] .public-audience-icon { border-radius: 50%; }
@media (min-width: 900px) {
    :root[data-lp-theme="aurora"] .public-header { top: 12px; width: min(1180px, calc(100% - 48px)); margin: 12px auto -80px; }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) .public-header { border: 1px solid rgba(167, 139, 250, 0.26); border-radius: 999px; }
    :root[data-lp-theme="aurora"] .public-hero { padding-top: 96px; }
    :root[data-lp-theme="aurora"] .public-hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; max-width: 880px; margin-inline: auto; }
    :root[data-lp-theme="aurora"] .public-hero-actions, :root[data-lp-theme="aurora"] .public-hero-points { justify-content: center; }
    :root[data-lp-theme="aurora"] .public-hero-visual { max-width: 580px; }
    :root[data-lp-theme="aurora"] .public-section-head { margin-inline: auto; text-align: center; }
    :root[data-lp-theme="aurora"] .public-feature:nth-child(3n + 2) { translate: 0 22px; }
    :root[data-lp-theme="aurora"] .public-feature-grid { padding-bottom: 22px; }
}

/* ---- Emerald Tech: the instrument first. A ruled grid, monospaced headings, square controls */
:root[data-lp-theme="emerald"]:where(:not([data-theme="light"])) { --pub-hero-bg: linear-gradient(rgba(110, 231, 183, 0.05) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(110, 231, 183, 0.05) 1px, transparent 1px) 0 0 / 28px 28px, #0b100e; --pub-tint: #121916; --pub-on-dark: #e3ece8; --pub-on-dark-muted: #a2b3ab; --pub-gold: #34d399; }
:root[data-lp-theme="emerald"] .public-hero-title, :root[data-lp-theme="emerald"] .public-section-head h2, :root[data-lp-theme="emerald"] .public-system-title { font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
:root[data-lp-theme="emerald"] .public-hero-title { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.7rem); }
:root[data-lp-theme="emerald"] .public-section-head h2::before { content: "// "; }
:root[data-lp-theme="emerald"]:where(:not([data-theme="light"])) .public-section-head h2::before { color: #34d399; }
:root[data-lp-theme="emerald"] .public-feature, :root[data-lp-theme="emerald"] .public-audience, :root[data-lp-theme="emerald"] .public-dev { border-radius: 0; box-shadow: none; }
:root[data-lp-theme="emerald"] .btn, :root[data-lp-theme="emerald"] .lab-panel { border-radius: 2px; }
:root[data-lp-theme="emerald"] .public-eyebrow { font-family: var(--font-mono); }
@media (min-width: 900px) {
    :root[data-lp-theme="emerald"] .public-hero-visual { order: -1; }
    :root[data-lp-theme="emerald"] .public-hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
    :root[data-lp-theme="emerald"] .public-feature-grid { gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
    :root[data-lp-theme="emerald"] .public-feature { border: 0; }
}

/* ---- Obsidian: a black stage. One enormous serif statement, then a catalogue of quiet rows */
:root[data-lp-theme="obsidian"]:where(:not([data-theme="light"])) { --pub-hero-bg: radial-gradient(800px 500px at 90% 0%, rgba(201, 179, 138, 0.09), transparent 62%), #0a0a0b; --pub-tint: #101011; --pub-on-dark: #f1efea; --pub-on-dark-muted: #b3afa6; --pub-gold: #c9b38a; }
:root[data-lp-theme="obsidian"] .public-hero-title, :root[data-lp-theme="obsidian"] .public-section-head h2, :root[data-lp-theme="obsidian"] .public-system-title { font-family: Didot, "Bodoni MT", Georgia, serif; font-weight: 400; letter-spacing: 0; }
:root[data-lp-theme="obsidian"] .public-hero-title { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5.2rem); }
:root[data-lp-theme="obsidian"] .public-eyebrow { letter-spacing: 0.22em; }
:root[data-lp-theme="obsidian"] .public-feature, :root[data-lp-theme="obsidian"] .public-audience, :root[data-lp-theme="obsidian"] .public-dev { border-radius: 0; box-shadow: none; }
:root[data-lp-theme="obsidian"] .btn { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; }
:root[data-lp-theme="obsidian"] .public-feature:hover { transform: none; }
:root[data-lp-theme="obsidian"]:where(:not([data-theme="light"])) .public-feature:hover { border-color: #c9b38a; }
@media (min-width: 900px) {
    :root[data-lp-theme="obsidian"] .public-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 72vh; align-content: center; }
    :root[data-lp-theme="obsidian"] .public-hero-visual { display: none; }
    :root[data-lp-theme="obsidian"] .public-hero-lead { max-width: 56ch; }
    :root[data-lp-theme="obsidian"] .public-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    :root[data-lp-theme="obsidian"] .public-feature { display: grid; grid-template-columns: 64px minmax(0, 320px) minmax(0, 1fr); align-items: baseline; gap: var(--space-5); padding-block: var(--space-5); border-width: 0 0 1px; }
:root[data-lp-theme="obsidian"]:where(:not([data-theme="light"])) .public-feature { background: transparent; }
    :root[data-lp-theme="obsidian"] .public-feature h3 { font-family: Didot, "Bodoni MT", Georgia, serif; font-size: 1.5rem; font-weight: 400; margin: 0; }
    :root[data-lp-theme="obsidian"] .public-feature p { margin: 0; }
}

/* ---- Black Red: a crimson stage. The status board swings out of a wall of red light, on asymmetric plates */
:root[data-lp-theme="black-red"]:where(:not([data-theme="light"])) { --pub-hero-bg: radial-gradient(760px 560px at 72% 40%, rgba(185, 28, 46, 0.5), transparent 64%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 8px), #08080a; --pub-tint: rgba(16, 16, 18, 0.7); --pub-on-dark: #f6f1f1; --pub-on-dark-muted: #cfc5c6; --pub-gold: #f0424f; }
:root[data-lp-theme="black-red"] .public-hero-title, :root[data-lp-theme="black-red"] .public-section-head h2, :root[data-lp-theme="black-red"] .public-system-title { font-family: Bahnschrift, "DIN Alternate", "Segoe UI Semibold", sans-serif; letter-spacing: 0.02em; text-transform: uppercase; }
:root[data-lp-theme="black-red"]:where(:not([data-theme="light"])) .public-hero-title span:last-child { color: #ff6b76; text-shadow: 0 0 34px rgba(240, 66, 79, 0.6); }
:root[data-lp-theme="black-red"] .btn { border-radius: 12px 3px 12px 3px; }
:root[data-lp-theme="black-red"]:where(:not([data-theme="light"])) .public-header { box-shadow: 0 1px 0 rgba(240, 66, 79, 0.4); }
:root[data-lp-theme="black-red"]:where(:not([data-theme="light"])) .lab-panel { border: 1px solid rgba(240, 66, 79, 0.4); border-radius: 22px 5px 22px 5px; background: #111113; }
:root[data-lp-theme="black-red"]:where(:not([data-theme="light"])) .public-hero-visual { filter: drop-shadow(0 0 44px rgba(240, 66, 79, 0.42)); }
:root[data-lp-theme="black-red"] .public-feature, :root[data-lp-theme="black-red"] .public-audience, :root[data-lp-theme="black-red"] .public-dev, :root[data-lp-theme="black-red"] .public-explain, :root[data-lp-theme="black-red"] .public-step { border-radius: 18px 4px 18px 4px; }
:root[data-lp-theme="black-red"] .public-feature:hover { box-shadow: var(--lp-card-shadow-hover); }
:root[data-lp-theme="black-red"]:where(:not([data-theme="light"])) .public-feature-icon, :root[data-lp-theme="black-red"]:where(:not([data-theme="light"])) .public-audience-icon { color: #ff8a93; background: linear-gradient(150deg, rgba(240, 66, 79, 0.32), rgba(120, 16, 30, 0.2)); }
:root[data-lp-theme="black-red"] .public-step-num { border-radius: 12px 3px 12px 3px; }
:root[data-lp-theme="black-red"]:where(:not([data-theme="light"])) .public-step-num { background: linear-gradient(180deg, #c8213a, #9c1827); color: #ffffff; }
@media (min-width: 900px) {
    :root[data-lp-theme="black-red"] .public-hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
    :root[data-lp-theme="black-red"] .public-hero-visual { transform: perspective(1100px) rotateY(-16deg) rotateX(3deg) translateX(10px); }
    :root[data-lp-theme="black-red"] .public-section-head { text-align: left; margin-inline: 0; }
    :root[data-lp-theme="black-red"]:where(:not([data-theme="light"])) .public-feature:nth-child(3n + 1) { border-top: 2px solid #f0424f; }
}

/* ---- how sections arrive and how a theme changes */
.js-reveal [data-reveal].is-visible { animation-name: var(--pub-reveal, public-reveal); animation-duration: var(--pub-reveal-time, 620ms); }
@keyframes pub-flip { from { opacity: 0; transform: perspective(1000px) rotateX(-16deg); transform-origin: 50% 0; } }
@keyframes pub-cut { from { opacity: 0; clip-path: inset(0 100% 0 0); } }
@keyframes pub-float { from { opacity: 0; transform: translateY(44px) scale(0.94); } }
@keyframes pub-fade { from { opacity: 0; } }
@keyframes pub-door { from { opacity: 0; transform: perspective(1000px) rotateY(18deg) translateX(34px); transform-origin: 100% 50%; } }
:root { --pub-reveal: pub-flip; --pub-reveal-time: 680ms; }
:root[data-lp-theme="midnight"], :root[data-lp-theme="emerald"] { --pub-reveal: pub-cut; --pub-reveal-time: 300ms; }
:root[data-lp-theme="aurora"] { --pub-reveal: pub-float; --pub-reveal-time: 820ms; }
:root[data-lp-theme="obsidian"] { --pub-reveal: pub-fade; --pub-reveal-time: 700ms; }
:root[data-lp-theme="black-red"] { --pub-reveal: pub-door; --pub-reveal-time: 620ms; }

/* page changes and theme changes: themes-motion.css. Hover depth here; reduced mode keeps colour changes only. */
.public-hero-visual { transition: transform 420ms ease, filter 420ms ease; }
.public-feature, .public-dev, .public-audience { transition: transform 240ms var(--motion-ease), box-shadow 240ms ease, border-color 240ms ease; }
:root[data-lp-motion="full"] .public-feature:hover, :root[data-lp-motion="full"] .public-dev:hover { transform: perspective(800px) translateY(-4px) rotateX(2deg); }
:root[data-lp-theme="aurora"] body::before { content: ""; position: fixed; inset: -18%; z-index: -1; pointer-events: none; }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) body::before { background: radial-gradient(520px 340px at 76% 18%, rgba(139, 92, 246, 0.3), transparent 66%), radial-gradient(460px 320px at 16% 78%, rgba(56, 160, 210, 0.18), transparent 66%); }
:root[data-lp-motion="reduced"] .public-hero-visual { transform: none; }
:root[data-lp-motion="reduced"] .public-feature:nth-child(n) { translate: none; }
:root[data-lp-motion="reduced"] .js-reveal [data-reveal].is-visible { animation-name: pub-fade; animation-duration: 260ms; }

/* SOE Phase 2.3: Motion inside the theme panel */
.pt-motion { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.pt-motion-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.lp-seg-sm { padding: 3px; gap: 2px; }
.lp-seg-sm span { min-height: 28px; padding: 0 10px; font-size: 0.76rem; }

/* =====================================================================================================================
   2026-11-27 (owner): LIGHT MODE on the public website and sign-in pages for the six dark-designed themes. Light background,
   the theme's OWN colour combination (its accent family from themes.css: --primary-* / --accent-*), its own structure
   (shapes, layout, type - unchanged). DYCI Classic keeps its navy hero in both modes (the school's identity).
   ===================================================================================================================== */
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] {
    --pub-on-dark: var(--text-primary);
    --pub-on-dark-muted: var(--text-secondary);
    --pub-gold: var(--primary-500);
    --pub-gold-strong: var(--primary-600);
    --pub-tint: color-mix(in srgb, var(--primary-500) 5%, #ffffff);
}
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .public-hero::before {
    background-image: linear-gradient(color-mix(in srgb, var(--primary-500) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary-500) 9%, transparent) 1px, transparent 1px);
}
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] :is(.public-hero, .public-cta-band) .btn-accent { background: var(--primary-500); color: #ffffff; }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] :is(.public-hero, .public-cta-band) .btn-accent:hover { background: var(--primary-600); }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .public-cta:hover { box-shadow: 0 8px 22px color-mix(in srgb, var(--primary-500) 30%, transparent); }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .public-btn-ghost-light { background: rgba(255, 255, 255, 0.72); color: var(--text-primary); border-color: color-mix(in srgb, var(--primary-500) 38%, transparent); }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .public-btn-ghost-light:hover { background: #ffffff; }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .public-hero-visual figcaption { color: var(--text-muted); }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .lab-panel { background: rgba(255, 255, 255, 0.86); border-color: color-mix(in srgb, var(--primary-500) 22%, transparent); box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--primary-700) 40%, transparent); }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .lab-stat { background: color-mix(in srgb, var(--primary-500) 7%, #ffffff); color: var(--text-secondary); }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .lab-pc span { color: var(--text-secondary); }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] :is(.lab-pc-A, .lab-stat-A) { --lab-c: #15803d; }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] :is(.lab-pc-U, .lab-stat-U) { --lab-c: #1d4ed8; }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] :is(.lab-pc-O, .lab-stat-O) { --lab-c: #64748b; }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] :is(.lab-pc-M, .lab-stat-M) { --lab-c: #7c3aed; }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .public-loader-bar { background: color-mix(in srgb, var(--primary-500) 14%, transparent); }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .public-footer { background: color-mix(in srgb, var(--primary-900) 88%, #000000); }
/* each theme's light hero: its own accent light on a pale ground of its own hue */
:root[data-lp-theme="midnight"][data-theme="light"] { --pub-hero-bg: radial-gradient(1000px 560px at 85% -10%, rgba(14, 165, 233, 0.2), transparent 62%), radial-gradient(800px 520px at 0% 110%, rgba(11, 111, 163, 0.12), transparent 60%), linear-gradient(160deg, #f5fafd 0%, #e6f2fa 100%); }
:root[data-lp-theme="aurora"][data-theme="light"] { --pub-hero-bg: radial-gradient(900px 620px at 82% 0%, rgba(168, 85, 247, 0.22), transparent 62%), radial-gradient(760px 560px at 8% 100%, rgba(109, 79, 216, 0.16), transparent 60%), linear-gradient(160deg, #f8f5ff 0%, #ede7fd 100%); }
:root[data-lp-theme="copper"][data-theme="light"] { --pub-hero-bg: radial-gradient(1000px 560px at 85% -10%, rgba(201, 160, 63, 0.24), transparent 62%), radial-gradient(800px 520px at 0% 110%, rgba(138, 100, 20, 0.1), transparent 60%), linear-gradient(160deg, #fcf9f2 0%, #f2eadb 100%); }
:root[data-lp-theme="emerald"][data-theme="light"] { --pub-hero-bg: radial-gradient(1000px 560px at 85% -10%, rgba(16, 185, 129, 0.18), transparent 62%), radial-gradient(800px 520px at 0% 110%, rgba(10, 122, 89, 0.1), transparent 60%), linear-gradient(160deg, #f4fbf8 0%, #e3f2ec 100%); }
:root[data-lp-theme="obsidian"][data-theme="light"] { --pub-hero-bg: radial-gradient(1000px 560px at 85% -10%, rgba(201, 179, 138, 0.22), transparent 62%), linear-gradient(160deg, #f8f7f4 0%, #ebe8e1 100%); }
:root[data-lp-theme="black-red"][data-theme="light"] { --pub-hero-bg: radial-gradient(1000px 560px at 85% -10%, rgba(214, 47, 66, 0.16), transparent 62%), radial-gradient(800px 520px at 0% 110%, rgba(185, 28, 46, 0.08), transparent 60%), linear-gradient(160deg, #fcf7f7 0%, #f4e6e8 100%); }
/* Aurora's gradient headline, in its light colours */
:root[data-lp-theme="aurora"][data-theme="light"] .public-hero-title span:last-child { background: linear-gradient(120deg, #5a3dbf, #9244e8 60%, #6d4fd8); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the sign-in pages' top bar: white ink was drawn for a dark backdrop - in Light it takes the theme's dark ink */
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .auth-topbar :is(.auth-home-link, .auth-back-link, .pt-btn, .pt-label) { color: var(--text-primary); }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .auth-topbar .auth-home-org { color: var(--text-secondary); }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .auth-topbar :is(.auth-back-link, .pt-btn) { background: rgba(255, 255, 255, 0.72); border-color: color-mix(in srgb, var(--primary-500) 34%, transparent); }
:root:is([data-lp-theme="midnight"], [data-lp-theme="aurora"], [data-lp-theme="copper"], [data-lp-theme="emerald"], [data-lp-theme="obsidian"], [data-lp-theme="black-red"])[data-theme="light"] .auth-topbar :is(.auth-back-link, .pt-btn):hover { background: #ffffff; }