/* ============================================================
   Minister Destiny Signal — destinymorganresources.com
   Shared design system: Paradise palette, per-section colors,
   adaptive light/dark, full mobile scroll, print stylesheet.
   School scheme (Oct 25, 2026, v57 — Destiny's word from her phone):
   the ENTIRE page is black #000; buttons, door cards and cards are
   BLACK inside; her leaf purple (#872085 lit violet edge, #550757
   dim edge) appears ONLY on borders / edges / trim. Links are
   lavender #D9C7FF. NO purple fills anywhere.
   Hard rules: NO ivory, NO gold, NO blue UI accents. No fixed header.
   ============================================================ */

:root {
  color-scheme: dark;
  --ink: #f7f3ff;
  --ink-soft: #D8CCD4;
  --link: #D9C7FF;
  --link-hover: #EFE6FF;
  --link-visited: #C4ADEB;
  --card: #000000;
  --card-border: #872085;
  --btn-bg: #000000;
  --accent: #872085;
  --accent-hi: #B779B6;
  --accent-text: #CFA6CF;
  --btn-ink: #ffffff;
  --edge-dim: #550757;

  /* per-section LIGHT tints + accents */
  --lilac-bg: #000000;        --lilac-accent: #872085;
  --lilac-soft-bg: #000000;
  --sage-bg: #000000;         --sage-accent: #872085;
  --blue-bg: #000000;         --blue-accent: #872085;
  --turquoise-bg: #000000;    --turquoise-accent: #872085;
  --turquoise-soft-bg: #000000;
  --rose-bg: #000000;         --rose-accent: #872085;

  --network-bg: #000000;
  --footer-bg: #000000;
  --page-bg: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f7f3ff;
    --ink-soft: #D8CCD4;
    --link: #D9C7FF;
  --link-hover: #EFE6FF;
  --link-visited: #C4ADEB;
    --card: #000000;
    --card-border: #872085;
    --btn-bg: #000000;
  --accent: #872085;
  --accent-hi: #B779B6;
  --accent-text: #CFA6CF;
    --btn-ink: #ffffff;
  --edge-dim: #550757;

    /* per-section DARK deep shades (same hues) */
    --lilac-bg: #000000;        --lilac-accent: #872085;
    --lilac-soft-bg: #000000;
    --sage-bg: #000000;         --sage-accent: #872085;
    --blue-bg: #000000;         --blue-accent: #872085;
    --turquoise-bg: #000000;    --turquoise-accent: #872085;
    --turquoise-soft-bg: #000000;
    --rose-bg: #000000;         --rose-accent: #872085;

    --network-bg: #000000;
    --footer-bg: #000000;
    --page-bg: #000000;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* anchor targets never hide under the header */
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.06rem;
  /* full, free page scroll — no overflow traps, no 100vh wrappers */
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-hi); outline-offset: 2px;
}

/* ---------- Safety bar (not fixed — scrolls away naturally) ---------- */
.safety-bar {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--blue-bg);
}
.safety-btn {
  font: inherit; font-size: 0.95rem; font-weight: 700;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--card-border); border-radius: 999px;
  padding: 0.35rem 1rem; cursor: pointer; text-decoration: none;
}
.exit-btn { background: #b3261e; color: #ffffff; border-color: #b3261e; }
@media (prefers-color-scheme: dark) { .exit-btn { background: #d0453c; border-color: #d0453c; } }

/* ---------- Header (static — never covers content) ---------- */
.site-header {
  background: var(--btn-bg);
  border-bottom: 3px solid var(--accent-hi);
  padding: 0.9rem 1rem 0.6rem;
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem;
  max-width: 1100px; margin: 0 auto;
}
.brand, .brand-lockup { display: flex; align-items: center; gap: 0.7rem; color: var(--lilac-accent); }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-text, .brand-lockup-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.brand-role { font-size: 0.98rem; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.brand-school { font-size: 1.18rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.brand-founder { font-size: 0.92rem; color: var(--ink-soft); letter-spacing: 0.03em; }
.header-tools { display: flex; align-items: center; gap: 0.4rem; }
.header-tools select {
  font: inherit; font-size: 0.95rem; padding: 0.3rem 0.5rem;
  border-radius: 8px; border: 1.5px solid var(--card-border);
  background: var(--card); color: var(--ink);
}
#langSelect option {
  background-color: #000000; color: #f5f2ff;
}
#langSelect option:checked {
  background-color: var(--btn-bg); color: #ffffff;
}
.main-nav {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  max-width: 1100px; margin: 0.8rem auto 0.2rem;
}
.nav-tab {
  font: inherit; font-weight: 700; font-size: 1rem;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--card-border); border-radius: 999px;
  padding: 0.45rem 1.05rem; cursor: pointer;
}
.nav-tab.active { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--accent); }

/* ---------- Sections ---------- */
main { display: block; }
.section {
  max-width: 1100px; margin: 1.1rem auto; padding: 1.6rem 1.2rem 1.9rem;
  border: 1.5px solid var(--edge-dim);
  border-radius: 18px;
}
.section-lilac        { background: var(--lilac-bg); }
.section-lilac-soft   { background: var(--lilac-soft-bg); }
.section-sage         { background: var(--sage-bg); }
.section-blue         { background: var(--blue-bg); }
.section-turquoise    { background: var(--turquoise-bg); }
.section-turquoise-soft { background: var(--turquoise-soft-bg); }
.section-rose         { background: var(--rose-bg); }

.section-kicker {
  text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 0.85rem; font-weight: 700; margin: 0 0 0.3rem; color: var(--ink-soft);
}
h1 { font-size: 2.55rem; line-height: 1.18; margin: 0.2rem 0 0.8rem; }
h2 { font-size: 1.95rem; line-height: 1.25; margin: 0.2rem 0 0.9rem; }
h3 { font-size: 1.3rem; line-height: 1.3; margin: 0.4rem 0 0.5rem; }
p { margin: 0.55rem 0; }

.hero-sub { font-size: 1.22rem; max-width: 46rem; }
.hero-note { max-width: 46rem; color: var(--ink-soft); }

/* ---------- Cards & grids ---------- */
.stats-grid, .series-grid, .division-grid, .contact-grid,
.network-grid, .platform-grid {
  display: grid; gap: 0.9rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.stat-card, .series-card, .division-card, .contact-card,
.network-card, .platform-card, .featured-card {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 14px; padding: 1rem 1.1rem;
}
.stat-number { display: block; font-size: 1.7rem; font-weight: 700; }
.stat-label { color: var(--ink-soft); font-size: 0.98rem; }
.contact-strip { margin-top: 1.1rem; }
.featured-division { border-width: 2.5px; border-color: var(--blue-accent); }

.button-link, .submit-btn {
  display: inline-block; margin: 0.3rem 0.4rem 0.3rem 0;
  background: var(--btn-bg); color: var(--btn-ink);
  padding: 0.55rem 1.15rem; border-radius: 999px;
  text-decoration: none; font-weight: 700; border: 2px solid var(--accent);
  font: inherit; font-weight: 700; cursor: pointer;
}
.small-note { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline { padding-left: 1.3rem; }
.timeline li { margin: 0.4rem 0; }

/* ---------- Initiatives ---------- */
.initiative {
  border: 1.5px solid var(--card-border); border-radius: 14px;
  padding: 0.9rem 1.1rem; margin: 0.9rem 0; background: var(--card);
}
.initiative summary { cursor: pointer; }
.initiative summary h3 { display: inline; }
.initiative-lilac { border-left: 8px solid var(--lilac-accent); }
.initiative-blue { border-left: 8px solid var(--blue-accent); }
.initiative-turquoise { border-left: 8px solid var(--turquoise-accent); }
.initiative-rose { border-left: 8px solid var(--rose-accent); }
.initiative-close { font-weight: 700; }

/* ---------- Messages / books ---------- */
.message-post {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 14px; padding: 1rem 1.2rem;
}
.post-date { color: var(--ink-soft); font-size: 0.95rem; margin-top: -0.3rem; }
.book-list li { margin: 0.35rem 0; }

/* ---------- Platform cards ---------- */
.platform-card { text-decoration: none; color: var(--ink); display: block; }
.platform-card strong { display: block; font-size: 1.12rem; }
.platform-card span { color: var(--ink-soft); font-size: 0.95rem; }
.current-card { border: 2.5px solid var(--lilac-accent); }
.here-badge {
  display: inline-block; margin-top: 0.4rem; font-size: 0.82rem; font-weight: 700;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 1.5px solid var(--accent);
  padding: 0.15rem 0.6rem; border-radius: 999px;
}
.support-note { margin-top: 1.1rem; }

/* ---------- Forms ---------- */
.site-form { display: grid; gap: 0.85rem; max-width: 560px; margin-top: 1rem; }
.site-form label { display: grid; gap: 0.3rem; font-weight: 700; }
.site-form input, .site-form select, .site-form textarea {
  font: inherit; font-weight: 400; padding: 0.55rem 0.7rem;
  border-radius: 10px; border: 1.5px solid var(--card-border);
  background: var(--card); color: var(--ink); width: 100%;
}
.site-form .checkbox-label { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 400; }
.site-form .checkbox-label input { width: auto; margin-top: 0.3rem; }
.form-notice {
  background: var(--card); border: 1.5px dashed var(--card-border);
  border-radius: 10px; padding: 0.7rem 0.9rem; font-weight: 400;
}

/* ---------- Network section ---------- */
.network-section {
  max-width: 1100px; margin: 1.1rem auto; padding: 1.4rem 1.2rem 1.7rem;
  background: var(--network-bg); border: 1.5px solid var(--edge-dim); border-radius: 18px;
}
.network-card { text-decoration: none; color: var(--ink); display: block; }
.network-card strong { display: block; font-size: 1.1rem; }
.network-card span { display: block; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.2rem; }
.network-card .network-url { font-weight: 700; color: var(--link); }
.network-card .here-badge { color: var(--btn-ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg); color: var(--ink);
  text-align: center; padding: 1.6rem 1rem 2rem; margin-top: 1.2rem;
}
.site-footer p { margin: 0.3rem 0; }
.footer-links { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.footer-link-btn {
  font: inherit; font-weight: 700; background: var(--card); color: var(--ink);
  border: 1.5px solid var(--card-border); border-radius: 999px;
  padding: 0.4rem 1rem; cursor: pointer;
}

/* ---------- Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(24, 0, 12, 0.62);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 2.2rem 1rem;
}
.modal[hidden] { display: none; }
.modal-box {
  background: #000000; color: var(--ink);
  border: 2px solid var(--accent);
  border-radius: 16px; max-width: 640px; width: 100%;
  padding: 1.4rem 1.5rem 1.6rem; position: relative;
}
.modal-close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  font: inherit; font-weight: 700; background: var(--card); color: var(--ink);
  border: 1.5px solid var(--card-border); border-radius: 999px;
  width: 2.2rem; height: 2.2rem; cursor: pointer;
}

/* ---------- Weather disguise ---------- */
.disguise {
  position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  background: linear-gradient(180deg, #2b5ea7 0%, #4a86c8 55%, #7fb0dd 100%);
  color: #ffffff; font-family: Arial, Helvetica, sans-serif;
}
.disguise[hidden] { display: none; }
.weather-shell { max-width: 720px; margin: 0 auto; padding: 1.4rem 1.1rem 2rem; }
.weather-top { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; }
.weather-now { margin: 1.2rem 0 0.2rem; }
.weather-temp { font-size: 4rem; font-weight: 300; }
.weather-cond { font-size: 1.35rem; margin-left: 0.6rem; }
.weather-meta { opacity: 0.92; }
.weather-hourly {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.4rem;
  background: rgba(255,255,255,0.16); border-radius: 12px; padding: 0.8rem 0.5rem;
  text-align: center; margin-top: 1.1rem; font-size: 0.9rem;
}
.weather-hourly div { display: flex; flex-direction: column; gap: 0.25rem; }
.weather-days { margin-top: 1.1rem; background: rgba(255,255,255,0.16); border-radius: 12px; padding: 0.7rem 1rem; }
.weather-days p { display: flex; justify-content: space-between; gap: 0.6rem; margin: 0.45rem 0; }
.exit-disguise-btn {
  margin-top: 1.3rem; font: inherit; font-weight: 700;
  background: rgba(255,255,255,0.92); color: #550757;
  border: none; border-radius: 999px; padding: 0.55rem 1.2rem; cursor: pointer;
}
/* ---------- Local Alerts panel (inside the weather disguise) ---------- */
.la-open-btn {
  display: block; width: 100%; margin-top: 1.1rem; text-align: left;
  font: inherit; font-weight: 700; color: #ffffff; cursor: pointer;
  background: rgba(255,255,255,0.16); border: none; border-radius: 12px;
  padding: 0.8rem 1rem;
}
.la-open-btn[hidden] { display: none; }
.la-open-sub { display: block; font-weight: 400; font-size: 0.9rem; opacity: 0.88; margin-top: 0.15rem; }
.la-panel { margin-top: 1.1rem; }
.la-panel[hidden] { display: none; }
.la-head {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
  width: 100%; font: inherit; font-weight: 700; color: #ffffff; cursor: pointer;
  background: rgba(255,255,255,0.16); border: none; border-radius: 12px;
  padding: 0.8rem 1rem; text-align: left;
}
.la-head-back { font-weight: 400; font-size: 0.92rem; opacity: 0.9; white-space: nowrap; }
.la-intro { margin: 0.95rem 0.2rem 0; line-height: 1.5; }
.la-card {
  background: rgba(255,255,255,0.16); border-radius: 12px;
  padding: 1rem; margin-top: 1rem;
}
.la-card[hidden] { display: none; }
.la-h { margin: 0 0 0.55rem; font-size: 1.15rem; }
.la-firsttext-label { margin: 0.5rem 0 0.25rem; font-size: 0.92rem; opacity: 0.92; }
.la-firsttext {
  background: rgba(0,0,0,0.28); border-radius: 8px; padding: 0.65rem 0.8rem;
  font-weight: 700; line-height: 1.45; margin: 0; overflow-wrap: break-word;
}
.la-big-btn {
  display: block; text-align: center; margin-top: 0.75rem;
  background: rgba(255,255,255,0.95); color: #550757;
  font-weight: 800; font-size: 1.12rem; text-decoration: none;
  border-radius: 999px; padding: 0.8rem 1rem;
}
.la-note { font-size: 0.93rem; line-height: 1.5; opacity: 0.96; margin: 0.65rem 0 0; }
.la-note[hidden] { display: none; }
.la-keypad { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 0.2rem; }
.la-keypad span { background: rgba(0,0,0,0.28); border-radius: 8px; padding: 0.45rem 0.7rem; }
.la-keypad strong { font-size: 1.12rem; margin-right: 0.15rem; }
.la-setup-toggle {
  width: 100%; font: inherit; font-weight: 700; color: #ffffff; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,0.65);
  border-radius: 999px; padding: 0.6rem 1rem;
}
.la-label { display: block; margin: 0.85rem 0 0.25rem; font-weight: 600; }
.la-input {
  width: 100%; box-sizing: border-box; font: inherit; color: #49034D;
  background: rgba(255,255,255,0.96); border: none; border-radius: 8px;
  padding: 0.6rem 0.7rem;
}
.la-check { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; font-weight: 600; }
.la-check input { width: 1.15rem; height: 1.15rem; }
.la-setup-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.95rem; }
.la-small-btn {
  font: inherit; font-weight: 700; cursor: pointer;
  background: rgba(255,255,255,0.95); color: #550757;
  border: none; border-radius: 999px; padding: 0.55rem 1.1rem;
}
.la-clear { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.7); }
.la-warn { background: rgba(255,213,79,0.22); border-radius: 8px; padding: 0.6rem 0.8rem; }
.la-link { color: #d7e9ff; text-decoration: underline; }
.la-disclaimer { margin: 1.1rem 0.2rem 0; font-size: 0.9rem; line-height: 1.5; opacity: 0.92; }


/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { margin: 0.8rem 0.55rem; padding: 1.2rem 0.95rem 1.5rem; }
  .network-section { margin: 0.8rem 0.55rem; }
  .weather-hourly { grid-template-columns: repeat(4, 1fr); }
  .brand-name { font-size: 1.08rem; }
  .brand-school { font-size: 1rem; }
  .brand-founder { font-size: 0.84rem; }
  .brand-lockup .brand-logo-img { width: 40px; height: 40px; }
}

/* ---------- Print: clean black on white, no chrome ---------- */
@media print {
  .safety-bar, .main-nav, .header-tools, .safety-btn,
  .footer-links, .disguise, .modal, .submit-btn, .button-link {
    display: none !important;
  }
  body { background: #ffffff !important; color: #000000 !important; font-size: 12pt; }
  .section, .network-section, .site-footer, .site-header {
    background: #ffffff !important; color: #000000 !important;
    border: none !important; margin: 0 0 14pt; padding: 0 0 10pt;
    max-width: none;
  }
  .tab-panel { display: block !important; }
  .tab-panel[hidden] { display: block !important; }
  a { color: #000000 !important; text-decoration: underline; }
  .stat-card, .series-card, .division-card, .contact-card,
  .network-card, .platform-card, .initiative, .message-post {
    background: #ffffff !important; border: 1px solid #999999 !important;
  }
  details.initiative { display: block; }
  details.initiative > *:not(summary) { display: block; }
}

/* ============================================================
   Signal additions — emergency bar, guides, finder, schools
   ============================================================ */

/* ---------- Emergency bar (very top — preserved from live Signal) ---------- */
.emergency-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.9rem;
  padding: 0.55rem 0.9rem;
  background: #000000; color: #ffffff;
  border-bottom: 2px solid var(--accent);
  font-size: 0.98rem;
}
.emergency-bar strong {
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem;
}
.emergency-bar a {
  color: #ffffff; font-weight: 700; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.55); border-radius: 999px;
  padding: 0.2rem 0.75rem; white-space: nowrap;
}
.emergency-bar a:hover, .emergency-bar a:focus-visible { background: rgba(255,255,255,0.18); }
@media (prefers-color-scheme: dark) { .emergency-bar { background: #000000; } }

/* ---------- Guide / resource / hotline cards ---------- */
.guide-grid, .hotline-grid, .resource-grid {
  display: grid; gap: 0.9rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.guide-card, .hotline-card, .resource-card {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 14px; padding: 1rem 1.1rem;
}
.guide-card h3, .hotline-card h3, .resource-card h3 { margin-top: 0; }
.hotline-number { font-size: 1.35rem; font-weight: 700; display: block; margin: 0.2rem 0; }
.hotline-card a { text-decoration: none; }
.hotline-card a:hover { text-decoration: underline; }

/* ---------- State finder ---------- */
.finder-form {
  display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: end; margin-top: 1rem;
}
.finder-form label { display: grid; gap: 0.3rem; font-weight: 700; flex: 1 1 180px; }
.finder-form select, .finder-form input {
  font: inherit; font-weight: 400; padding: 0.55rem 0.7rem;
  border-radius: 10px; border: 1.5px solid var(--card-border);
  background: var(--card); color: var(--ink); width: 100%;
}
.state-panel {
  margin-top: 1.1rem; background: var(--card);
  border: 1.5px solid var(--card-border); border-radius: 14px;
  padding: 1rem 1.2rem;
}
.state-panel h3 { margin-top: 0; }
.state-panel ul { margin: 0.4rem 0; padding-left: 1.2rem; }
.state-panel li { margin: 0.35rem 0; }
.honest-note {
  border-left: 5px solid var(--blue-accent);
  padding: 0.4rem 0 0.4rem 0.8rem; margin-top: 0.9rem;
}
@media (prefers-color-scheme: dark) { .honest-note { border-left-color: var(--blue-accent); } }

/* ---------- Steps & topic lists ---------- */
.steps-list { padding-left: 1.3rem; }
.steps-list li { margin: 0.5rem 0; }
.topic-columns { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
.topic-columns li { margin: 0.35rem 0; break-inside: avoid; }
@media (max-width: 640px) { .topic-columns { columns: 1; } }

/* ---------- Schools ---------- */
.school-block {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 14px; padding: 1.1rem 1.2rem; margin: 1rem 0;
}
.school-block h3 { margin-top: 0; font-size: 1.45rem; }
.school-block h4 { font-size: 1.12rem; margin: 0.9rem 0 0.4rem; }
.section-list { padding-left: 1.25rem; }
.section-list li { margin: 0.3rem 0; }
.proposal-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  border: 1.5px solid var(--card-border); border-radius: 999px;
  padding: 0.1rem 0.6rem; margin-left: 0.4rem; vertical-align: middle;
}

/* ---------- Approved reviews / support display ---------- */
.approved-list { display: grid; gap: 0.8rem; margin-top: 1rem; }
.approved-item {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-left: 8px solid var(--turquoise-accent);
  border-radius: 12px; padding: 0.85rem 1.05rem;
}
.approved-item p { margin: 0.25rem 0; }
.approved-meta { color: var(--ink-soft); font-size: 0.92rem; }
.empty-note { color: var(--ink-soft); font-style: italic; }

/* ---------- Honeypot (bots only — humans never see it) ---------- */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden; opacity: 0;
}

/* ---------- Form status messages ---------- */
.form-status { font-weight: 700; }
.form-status.ok { color: var(--accent-text); }
.form-status.err { color: #f0938c; }
@media (prefers-color-scheme: dark) { .form-status.err { color: #f0938c; } }

/* ---------- Print additions ---------- */
@media print {
  .emergency-bar, .finder-form, .site-form { display: none !important; }
  .guide-card, .hotline-card, .resource-card, .school-block,
  .state-panel, .approved-item {
    background: #ffffff !important; border: 1px solid #999999 !important;
  }
}

/* ===== Finalize layer: install card, downloads, audio ===== */
.download-list { list-style: none; margin: 0.5rem 0; padding: 0; }
.download-list li { margin: 0 0 1.1rem; }
.download-list p { margin: 0.25rem 0 0; }
.doc-tag { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-size: 0.82rem; border: 1.5px solid var(--accent); }
.download-btns { margin: 0.6rem 0 0.2rem; }
.dl-btn { display: inline-block; margin: 0.25rem 0.5rem 0.25rem 0; padding: 0.7rem 1.35rem; border-radius: 999px; border: 2px solid var(--accent); background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: bold; font-size: 1.02rem; box-shadow: 0 2px 6px rgba(46, 1, 51, 0.28); }
.dl-btn:hover, .dl-btn:focus { opacity: 0.88; }

/* ===== Install button (real button — always visible) ===== */
.install-btn { display: inline-block; margin: 0.4rem 0 0.2rem; padding: 0.8rem 1.7rem; border: 2px solid var(--accent); border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font: inherit; font-weight: 700; font-size: 1.08rem; cursor: pointer; box-shadow: 0 2px 8px rgba(46, 1, 51, 0.30); }
.install-btn:hover, .install-btn:focus { opacity: 0.9; }
.install-btn[disabled] { opacity: 0.65; cursor: default; }
.install-note { margin-top: 0.5rem; font-weight: 600; }

.install-top-wrap { text-align: center; padding: 0.9rem 1rem 0.1rem; }

/* ---------- Schools: lessons & tests (added Oct 21, 2026) ---------- */
.lesson-block {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 14px; padding: 0.9rem 1.1rem; margin: 1rem 0; width: 100%;
}
.lesson-block > summary { cursor: pointer; font-size: 1.05rem; padding: 0.25rem 0; }
.lesson-body { padding-top: 0.6rem; }
.lesson-body p, .lesson-body li { line-height: 1.65; }
.quiz { width: 100%; margin-top: 1rem; }
.quiz-head h5 { font-size: 1.15rem; margin: 0.4rem 0; }
.quiz-q {
  border: 1.5px solid var(--card-border); border-radius: 12px;
  padding: 0.9rem 1rem 1rem; margin: 0.9rem 0; width: 100%;
}
.quiz-q legend { font-weight: 700; padding: 0 0.35rem; line-height: 1.45; }
.quiz-opt {
  display: block; width: 100%; text-align: left;
  padding: 0.6rem 0.75rem; margin: 0.4rem 0;
  border: 1.5px solid var(--card-border); border-radius: 10px;
  background: var(--card); cursor: pointer; line-height: 1.45;
}
.quiz-opt:hover { border-color: var(--lilac-accent); }
.quiz-opt input { margin-right: 0.55rem; transform: scale(1.15); }
.quiz-q.q-right { border-color: #2e7d32; }
.quiz-q.q-wrong { border-color: #b3261e; }
.quiz-explain {
  margin: 0.6rem 0 0; padding: 0.6rem 0.75rem; border-radius: 8px;
  background: var(--lilac-soft-bg); line-height: 1.55;
}
.quiz-actions { margin-top: 1rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.quiz-check, .quiz-reset, .quiz-cert-btn {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 0.65rem 1.15rem; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--btn-bg); color: var(--btn-ink);
}
.quiz-result { font-size: 1.02rem; line-height: 1.55; }
.cert-sample { margin: 1.1rem 0; }
.cert-sample img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1.5px solid var(--card-border);
}
.cert-sample figcaption { margin-top: 0.5rem; }

/* ---------- Site owner login (footer, discreet) ---------- */
.owner-login { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.owner-login-label { font-size: 0.85rem; opacity: 0.75; }
.owner-login input { font: inherit; font-size: 0.9rem; padding: 0.45rem 0.6rem; border-radius: 8px; border: 1.5px solid var(--card-border, #872085); background: var(--card, #ffffff); color: var(--ink, #49034D); max-width: 210px; }
.owner-login button { font: inherit; font-size: 0.9rem; font-weight: 700; padding: 0.45rem 0.9rem; border-radius: 999px; border: 2px solid var(--accent, #872085); background: var(--btn-bg, #000000); color: var(--btn-ink, #ffffff); cursor: pointer; }
.owner-login-msg { font-size: 0.85rem; }

/* ============================================================
   Books & Schools (destinymorganbooks.com) — app-specific block:
   side-menu layout, age-group identifier, course catalog &
   prerequisites, clubs, arts & crafts, per-age-group styles.
   Palette: the single magenta-purple family via the shared variables.
   ============================================================ */
.layout { display: flex; align-items: flex-start; gap: 1rem; max-width: 1280px; margin: 0 auto; padding: 0 0.6rem; }
.side-nav { position: sticky; top: 0.8rem; flex: 0 0 196px; display: flex; flex-direction: column; gap: 0.45rem; background: var(--lilac-soft-bg); border: 1.5px solid var(--card-border); border-radius: 16px; padding: 0.9rem 0.6rem; margin-top: 1.1rem; }
.side-nav .nav-tab { display: block; width: 100%; text-align: left; border-radius: 12px; }
.side-nav .nav-tab.active { background: var(--btn-bg); border-color: var(--accent-hi); color: var(--btn-ink); }



.your-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; background: var(--card); color: var(--ink); border: 1px solid var(--card-border); border-radius: 999px; padding: 0.05rem 0.45rem; margin-left: 0.3rem; vertical-align: middle; }
.age-line { border-top: 1.5px solid var(--card-border); padding-top: 0.6rem; margin-top: 0.4rem; font-size: 0.88rem; }
.age-change { font: inherit; font-size: 0.85rem; font-weight: 700; background: var(--card); color: var(--ink); border: 1.5px solid var(--card-border); border-radius: 999px; padding: 0.2rem 0.7rem; cursor: pointer; margin-top: 0.3rem; }
.layout main { flex: 1 1 auto; min-width: 0; width: 100%; }
.layout .section, .layout .network-section { margin-left: 0; margin-right: 0; }
.age-options { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.age-option { font: inherit; font-weight: 700; font-size: 1rem; background: var(--card); color: var(--ink); border: 1.5px solid var(--card-border); border-radius: 999px; padding: 0.5rem 1.2rem; cursor: pointer; }
.age-option.active { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--accent); }
.prereq-box { background: var(--card); border: 1.5px solid var(--card-border); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.1rem; }
.prereq-box h3 { margin-top: 0; }
.course-meta { font-weight: 700; }
.pacing-line { font-weight: 700; }
.syllabus-list { line-height: 1.65; }
.read-it-btn { font: inherit; font-weight: 700; background: var(--btn-bg); color: var(--btn-ink); border: 2px solid var(--accent); border-radius: 999px; padding: 0.55rem 1.2rem; cursor: pointer; }
.read-it-btn[disabled] { opacity: 0.75; cursor: default; }
.quiz-locked { border: 1.5px dashed var(--card-border); border-radius: 12px; padding: 1rem 1.1rem; background: var(--card); }
.rules-box { background: var(--card); border: 1.5px solid var(--card-border); border-radius: 12px; padding: 0.9rem 1.1rem; margin: 1rem 0; }
.club-post { border: 1.5px solid var(--card-border); border-radius: 12px; padding: 0.7rem 0.9rem; margin: 0.6rem 0; background: var(--card); }
.club-post-name { font-weight: 700; margin: 0 0 0.25rem; }
.club-post-body { margin: 0 0 0.5rem; }
.club-report-btn { font: inherit; font-size: 0.82rem; font-weight: 700; background: none; color: var(--ink-soft); border: 1.5px solid var(--card-border); border-radius: 999px; padding: 0.15rem 0.65rem; cursor: pointer; }
.book-list { line-height: 1.75; }
.activity-img { width: 100%; max-width: 330px; height: auto; background: #000000; border: 1.5px solid var(--card-border); border-radius: 12px; }
.need-line { font-size: 0.92rem; color: var(--ink-soft); }
.word-grid, .crossword-grid, .sudoku-grid, .bingo-grid { border-collapse: collapse; margin: 0.7rem 0; }
.word-grid td { border: 1px solid var(--card-border); width: 1.65rem; height: 1.65rem; text-align: center; font-weight: 700; font-family: ui-monospace, Menlo, monospace; background: var(--card); }
.crossword-grid td { border: 1px solid var(--card-border); width: 1.6rem; height: 1.6rem; background: var(--card); position: relative; }
.crossword-grid td.cw-block { background: var(--ink); }
.crossword-grid td sup { font-size: 0.58rem; position: absolute; top: 1px; left: 2px; }
.sudoku-grid td { border: 1px solid var(--card-border); width: 2rem; height: 2rem; text-align: center; font-weight: 700; background: var(--card); }
.bingo-grid td { border: 1.5px solid var(--card-border); padding: 0.55rem 0.4rem; text-align: center; background: var(--card); max-width: 8.5rem; }
.cw-clues ul { line-height: 1.55; }
.cw-solution { font-family: ui-monospace, Menlo, monospace; line-height: 1.35; overflow-x: auto; }
.match-cols { display: flex; gap: 2rem; flex-wrap: wrap; }
.all-ages-line { font-weight: 700; font-size: 1.05rem; }

/* ---- Per-age-group styles (Destiny's palette family only) ---- */
.age-youth { --g-accent: var(--accent-text); --g-radius: 22px; }
.age-youth .school-block, .age-youth .division-card, .age-youth .lesson-block, .age-youth .quiz-q, .age-youth .activity-card { border-radius: var(--g-radius); }
.age-youth h2, .age-youth .school-block > h3 { color: var(--g-accent); }
.age-youth .quiz-check, .age-youth .quiz-cert-btn, .age-youth .submit-btn { background: var(--btn-bg); color: var(--btn-ink); }
.age-teen { --g-accent: var(--accent-text); --g-radius: 10px; }
.age-teen .division-card, .age-teen .activity-card { border-radius: var(--g-radius); border-width: 2px; }
.age-teen .section-kicker { text-transform: uppercase; letter-spacing: 0.09em; color: var(--g-accent); }
.age-teen .submit-btn { background: var(--btn-bg); color: var(--btn-ink); }
.age-adult { --g-accent: var(--accent-text); --g-radius: 14px; }
.age-adult .school-block, .age-adult .division-card, .age-adult .activity-card { border-radius: var(--g-radius); }
.age-adult h2, .age-adult .school-block > h3, .age-adult .activity-card h4 { font-family: Georgia, "Times New Roman", serif; }
.age-adult .quiz-check, .age-adult .quiz-cert-btn, .age-adult .submit-btn { background: var(--btn-bg); color: var(--btn-ink); }
.age-adult .division-card, .age-adult .activity-card { line-height: 1.65; }
.age-le { --g-accent: var(--accent-text); --g-radius: 14px; }
.age-le .school-block, .age-le .lesson-block, .age-le .quiz-q { border-radius: var(--g-radius); }
.age-le h2, .age-le .school-block > h3 { font-family: Georgia, "Times New Roman", serif; color: var(--g-accent); }
.age-le .quiz-check, .age-le .quiz-cert-btn { background: var(--btn-bg); color: var(--btn-ink); }

/* ---- Mobile: slim side rail, content keeps the remaining width ---- */
@media (max-width: 640px) {
  .layout { gap: 0.45rem; padding: 0 0.3rem; }
  .side-nav { flex-basis: 88px; padding: 0.6rem 0.32rem; margin-top: 0.8rem; }
  .side-nav .nav-tab { font-size: 0.78rem; padding: 0.45rem 0.3rem; text-align: center; border-radius: 10px; }
  .side-nav .your-badge { display: none; }
  .age-line { font-size: 0.75rem; text-align: center; }
  .layout .section { margin: 0.8rem 0; }
  .word-grid td { width: 1.35rem; height: 1.35rem; font-size: 0.85rem; }
  .crossword-grid td { width: 1.3rem; height: 1.3rem; }
}

}

/* ===== Finalization (Oct 22, 2026): library, books, reference, start here ===== */
.lib-cat { margin: 1.4rem 0 0.5rem; color: var(--accent-text, #CFA6CF); }
.book-rows { list-style: none; padding: 0; margin: 0.4rem 0 1.1rem; }
.book-row { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: baseline;
  padding: 0.45rem 0; border-bottom: 1px solid rgba(135, 32, 133, 0.25); }
.book-title { flex: 1 1 320px; }
.book-dls { white-space: nowrap; }
.book-dl { font-weight: 600; }
.ref-entry { border: 1px solid rgba(135, 32, 133, 0.4); border-radius: 10px;
  padding: 0.8rem 1rem; margin: 0.7rem 0; background: #000000; }
.ref-entry h4 { margin: 0 0 0.3rem; }
.ref-meta, .ref-units { font-size: 0.92rem; margin: 0.25rem 0; }
.start-school { margin: 1.2rem 0; }
.start-five li, .start-fork li { margin: 0.3rem 0; }
.start-fork { margin: 0.2rem 0 0.8rem; }
.start-fork-name { margin: 0.7rem 0 0.2rem; }
.start-staged { font-weight: 600; }

.lang-note-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.mt-notice { font-weight: 700; color: var(--accent-text, #CFA6CF); margin: 0.6rem 0 0.2rem; }
.mt-help { font-size: 0.95rem; margin: 0.2rem 0 0.6rem; }

/* ===== Consolidation (Oct 22, 2026): permissions disclaimer ===== */
.permissions-disclaimer { border: 1px solid rgba(135, 32, 133, 0.5); border-radius: 10px;
  padding: 0.9rem 1.1rem; margin: 1rem 0 1.3rem; background: #000000; }
.permissions-disclaimer h3 { margin: 0 0 0.4rem; }
.permissions-disclaimer p { margin: 0.35rem 0; font-size: 0.95rem; }

/* ===== Go-live wiring (Oct 22, 2026): brand logo, certificates, ID card, Study Hall ===== */
.brand-logo-img { border-radius: 10px; display: block; }
.cert-locked { border: 1.5px solid var(--card-border); border-radius: 12px; padding: 0.9rem 1.1rem; background: var(--card); }
.cert-ready { border: 1.5px solid var(--sage-accent); border-radius: 12px; padding: 0.9rem 1.1rem; background: var(--card); }
.idcard-preview { border: 2px dashed var(--lilac-accent); border-radius: 14px; overflow: hidden; max-width: 420px; background: var(--card); margin: 1rem 0; }
.idcard-preview-header { background: #000000; color: #ffffff; font-weight: 700; padding: 0.55rem 1rem; border-bottom: 2px solid var(--accent); }
.idcard-preview dl { margin: 0; padding: 0.8rem 1rem; display: grid; gap: 0.35rem; }
.idcard-preview dt { font-weight: 700; }
.idcard-preview dd { margin: 0 0 0.4rem; }
.study-protected-note { font-weight: 700; }

/* ===== Delta (Oct 22, 2026): discipline, record, events, rules ===== */
.discipline-panel { border: 1.5px solid #b3261e; border-radius: 12px; padding: 0.9rem 1.1rem; margin: 0.8rem 0; background: var(--card); }
.discipline-panel p { margin: 0.35rem 0; line-height: 1.55; }
.handbook-part { border: 1.5px solid var(--card-border); border-radius: 12px; padding: 0.6rem 0.9rem; margin: 0.6rem 0; background: var(--card); display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center; }
.handbook-part.part-missing { border-color: #b3261e; }
.handbook-part input[type="text"] { font: inherit; padding: 0.3rem 0.5rem; border-radius: 8px; border: 1.5px solid var(--card-border); background: var(--card); color: var(--ink); }
#mdReportCard .md-report-frame { margin: 0.6rem 0; }

/* ===== Frontend pass 2 (Oct 22, 2026): ID photo, ID card, leaving interview ===== */
.photo-preview { max-width: 160px; max-height: 160px; border-radius: 10px; border: 1.5px solid var(--card-border); display: block; }
#unenrollInterview fieldset { border: 1.5px solid var(--card-border); border-radius: 12px; margin: 0.6rem 0; background: var(--card); }
#unenrollInterview label { display: block; margin: 0.3rem 0; }
#lostIdBlock label, #idPhotoBlock label { display: block; margin: 0.5rem 0; }
#idCardIssuedText { font-weight: 700; }

/* ===== Branding pass (Oct 22, 2026): full lockup on generated pieces =====
   Rule (BRANDING-STANDARD.md): emblem + "Minister Destiny Testimony Schools"
   together wherever words fit; emblem alone only for favicon/app icons. */
.cert-lockup, .md-lockup { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--ink); margin: 0 0 0.6rem; }
.cert-lockup img, .md-lockup img { border-radius: 8px; display: block; flex: none; }
.cert-lockup span, .md-lockup span { line-height: 1.25; }

/* ===== Frontend #6 home pass (Oct 22, 2026): palette, minister section, hero art, install & share =====
   Home-scoped only (#tab-home) — other tabs are not recolored.
   Palette (v57): black everywhere; the leaf-purple family lives
   on borders and text accents only. */
#tab-home .hero { background: #000000; color: #FFFFFF; }
#tab-home .hero .section-kicker { color: #F5E3EF; }
#tab-home .hero .hero-note { color: #F5E3EF; }
#tab-home .hero .install-btn { border: 2px solid var(--accent-hi); }
.hero-art { display: block; width: 100%; height: auto; margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-start; margin-top: 1rem; }
.minister-section .minister-card { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }
.minister-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sage-accent); background: #000000; flex: none; }
.minister-text h2 { margin: 0.1rem 0 0.25rem; }
.minister-desc { margin: 0.15rem 0; }
.home-divider { max-width: 1100px; margin: 0.2rem auto 0; padding: 0 1.2rem; text-align: center; }
.home-divider svg { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; }
.install-portal-row { margin: 0.4rem 0 0.9rem; }

/* Install (Item 27) + Share (Item 28) components */
.install-btn { background: var(--btn-bg); color: #FFFFFF; }
.install-wrap, .share-wrap { position: relative; display: inline-block; text-align: left; }
.share-btn { display: inline-block; margin: 0.4rem 0 0.2rem; padding: 0.8rem 1.5rem; border: 2px solid #B779B6; border-radius: 999px; background: #000000; color: #CFA6CF; font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; }
.share-btn:hover, .share-btn:focus { opacity: 0.9; }
.header-tools .share-btn { padding: 0.32rem 0.95rem; font-size: 0.95rem; margin: 0; }
.install-guide, .share-panel { display: block; background: var(--card); color: var(--ink); border: 1.5px solid var(--card-border); border-radius: 12px; padding: 0.85rem 1rem; margin-top: 0.6rem; max-width: 24rem; font-weight: 400; }
.share-wrap-header .share-panel { position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 60; width: 17rem; margin-top: 0; box-shadow: 0 8px 24px rgba(46, 1, 51, 0.28); }
.install-btn[hidden], .share-btn[hidden], .install-guide[hidden], .share-panel[hidden],
.install-ios[hidden], .install-generic[hidden], .share-copied[hidden] { display: none !important; }
.install-guide .share-glyph { width: 1.3rem; height: 1.3rem; vertical-align: -0.28rem; color: var(--lilac-accent); margin-right: 0.35rem; }
.install-guide-close, .share-close { font: inherit; font-weight: 700; background: var(--card); color: var(--ink); border: 1.5px solid var(--card-border); border-radius: 999px; padding: 0.3rem 0.9rem; cursor: pointer; margin-top: 0.6rem; }
.share-copy { font: inherit; font-weight: 700; background: #000000; color: #FFFFFF; border: 1.5px solid var(--accent); border-radius: 999px; padding: 0.35rem 1rem; cursor: pointer; }
.share-copied { font-weight: 700; color: var(--accent-text); margin-left: 0.5rem; }
.share-links { display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem; margin-top: 0.65rem; }
.share-link { font-weight: 700; }

/* ============================================================
   FIVE DOORS NETWORK COMPONENT — self-contained; lift wholesale
   for sister apps; the current door is marked only by its .dn-here badge
   and aria-current — all five doors sit flat (v57: no open-door skew)
   ============================================================ */
.doors-network .dn-row { display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center; margin-top: 1.2rem; }
.dn-door { display: block; width: 172px; text-decoration: none; color: var(--ink); }
.dn-door:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 3px; border-radius: 12px; }
.dn-frame { display: block; position: relative; height: 264px; border-radius: 88px 88px 12px 12px; background: #000000; border: 2px solid var(--edge-dim); padding: 10px; }
.dn-light { position: absolute; inset: 10px; border-radius: 80px 80px 8px 8px; background: #000000; }
.dn-panel { position: absolute; inset: 10px; border-radius: 80px 80px 8px 8px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.35rem; padding: 1rem 0.65rem 0.75rem; text-align: center; border: 2px solid var(--accent); overflow: hidden; }
.dn-purple .dn-panel { background: #000000; color: var(--ink); border-color: var(--accent); }
.dn-lilac .dn-panel { background: #000000; color: var(--ink); border-color: var(--accent); }
.dn-blue .dn-panel { background: #000000; color: var(--ink); border-color: var(--accent); }
.dn-sage .dn-panel { background: #000000; color: var(--ink); border-color: var(--accent); }
.dn-deep .dn-panel { background: #000000; color: var(--ink); border-color: var(--accent); }
.dn-name { font-weight: 700; font-size: 1.06rem; line-height: 1.25; }
.dn-art { width: 46px; height: auto; flex: none; }
.dn-role { font-size: 0.86rem; line-height: 1.35; }
.dn-plate { margin-top: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em; word-break: break-all; opacity: 0.92; }
.dn-here { display: inline-block; margin: 0.55rem auto 0; background: #000000; color: #FFFFFF; font-weight: 700; font-size: 0.88rem; padding: 0.22rem 0.75rem; border-radius: 999px; border: 1.5px solid var(--accent); }
.dn-door { text-align: center; }
@media (prefers-reduced-motion: reduce) { .dn-panel { transition: none; } }
@media (max-width: 480px) { .dn-door { width: 148px; } .dn-frame { height: 252px; } }

/* ===== Frontend #7, Item 34 (Oct 22, 2026): honored certificates, Minister section =====
   Permanent page furniture: two framed certificate cards under the credentials
   block. Frame = brand-purple border + sage outline offset + inner mat line;
   the card face stays paper-white with fixed ink so it reads in both modes. */
.minister-honors { margin-top: 1.3rem; }
.minister-honors-line { font-weight: 600; text-align: center; margin: 0.2rem auto 0; max-width: 46rem; }
.honors-row { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; margin-top: 1.1rem; }
.honor-card { background: #000000; color: #f3efff; border: 3px solid #872085; outline: 1.5px solid var(--sage-accent); outline-offset: 5px; border-radius: 6px; box-shadow: inset 0 0 0 6px #000000, inset 0 0 0 7.5px rgba(135, 32, 133, 0.4); padding: 1.15rem 1.25rem; width: 21rem; max-width: 100%; text-align: center; }
.honor-title { font-weight: 700; font-size: 1.14rem; color: #CFA6CF; margin: 0.15rem 0 0.35rem; }
.honor-who { margin: 0.25rem 0 0.55rem; }
.honor-actions { margin: 0.45rem 0 0.1rem; font-weight: 700; }

/* ===== Frontend #8 (Oct 22, 2026): Press & News section + contact blocks =====
   The release renders as a paper card; headings carry the brand purple
   deep plum family (accent text lightened on dark grounds). */
.press-release { background: var(--card); border: 1.5px solid var(--card-border); border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; }
.press-for { font-weight: 700; letter-spacing: 0.08em; color: #CFA6CF; margin: 0.4rem 0 0.2rem; }
.press-headline { color: #CFA6CF; font-size: 1.45rem; line-height: 1.3; margin: 0.2rem 0 0.4rem; }
@media (prefers-color-scheme: dark) { .press-for, .press-headline { color: #CFA6CF; } }
.press-sub { font-style: italic; font-size: 1.08rem; margin: 0.2rem 0 0.8rem; }
.press-media-line { font-weight: 700; }
.press-actions { font-weight: 700; }
.press-list { display: grid; gap: 0.8rem; margin: 0.6rem 0 1.4rem; }
.press-item { background: var(--card); border: 1.5px solid var(--card-border); border-radius: 12px; padding: 0.8rem 1.1rem; }
.press-item p { margin: 0.25rem 0; }
.press-item-title { margin: 0.15rem 0 0.3rem; }
.press-contacts { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 0.6rem; }
.press-contact-card { margin: 0; }
.press-contact-card h4 { margin-top: 0; }

/* ===== Frontend #9 (Oct 22, 2026): Ask Desi — Desi, the Minister's AI =====
   One panel style shared by the Home section and the portal card.
   The face is the approved rabbit avatar (desi-avatar.webp), always
   beside its visible label. Existing variables only. */
.ask-desi-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.5rem; }
.ask-desi-head h2, .ask-desi-head h4 { margin: 0.1rem 0 0.2rem; }
.ask-desi-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--lilac-accent); background: #000000; flex: none; }
#portalAskDesiCard .ask-desi-avatar { width: 64px; height: 64px; }
.ask-desi-label { font-weight: 700; margin: 0.1rem 0; }
.ask-desi-intro { max-width: 44rem; }
.ask-desi-form input[type="text"] { width: 100%; max-width: 34rem; }
.ask-desi-answer { background: var(--card); border: 1.5px solid var(--card-border); border-radius: 12px; padding: 0.8rem 1.1rem; margin-top: 0.7rem; max-width: 44rem; }
.ask-desi-answer p { margin: 0.35rem 0; }
.ask-desi-topics { margin: 0.3rem 0 0.5rem; }
.ask-desi-topics li { margin: 0.25rem 0; }

/* Learning system (Oct 23, 2026): gated lessons, reading checkpoints, Tests Home */
.lesson-gate-note{padding:.6rem .2rem;color:#CFA6CF}
.learn-seg{margin:0}
.checkpoint-card{border:2px solid #872085;border-radius:12px;padding:.8rem 1rem;margin:.9rem 0;background:#000000}
.checkpoint-card.cp-passed{border-color:#2e7d32;background:#000000}
.checkpoint-card .cp-head{font-weight:700;color:#CFA6CF;margin:.1rem 0 .5rem}
.checkpoint-card.cp-passed .cp-head{color:#7fd98c}
.checkpoint-card .cp-q{font-weight:600;margin:.2rem 0 .5rem}
.checkpoint-card .cp-msg{margin:.5rem 0 0;color:#ff9d94}
.checkpoint-card .cp-done{margin:.2rem 0;color:#7fd98c;font-weight:600}
.lesson-complete-banner{border:2px solid #2e7d32;background:#000000;border-radius:12px;padding:.7rem 1rem;font-weight:700;color:#93e69e;margin:.9rem 0}
.tests-list{list-style:none;padding:0;margin:.4rem 0 1rem}
.test-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .7rem;padding:.45rem 0;border-bottom:1px solid #3D0242}
.test-name{font-weight:600}
.test-chip{border-radius:999px;padding:.1rem .6rem;font-size:.85em;font-weight:700}
.chip-passed{background:#12351a;color:#93e69e}
.chip-open{background:#33270c;color:#ffd97a}
.chip-locked{background:#000000;color:#CFA6CF;border:1px solid #872085}
.test-missing{flex-basis:100%;font-size:.92em;color:#CFA6CF}

/* ---------- Translation drop-down (Google Translate) ----------
   English is the only maintained language; the #langSelect drop-down
   drives machine translation. Google Translate's own chrome (banner,
   gadget, tooltips) stays hidden — our select is the only control. */
#google_translate_element { display: none !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
.goog-te-gadget-icon { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
body { top: 0 !important; }

/* ---------- Minister band — portrait + name in the hero, styled after
   Destiny's approved LinkedIn banner (Oct 23, 2026): circular portrait
   with a thin orchid ring beside her name in serif, title line beneath.
   (Same treatment as the other four apps; added to the school landing
   in the Oct 23, 2026 landing-restore build.) */
.minister-band {
  display: flex; align-items: center; gap: 1.1rem;
  margin: 0 0 1.1rem;
}
.minister-band-photo {
  width: 140px; height: 140px; flex: none;
  border-radius: 50%; object-fit: cover;
  border: 3px solid #CFA6CF;
  box-shadow: 0 2px 10px rgba(46, 1, 51, 0.28);
  background: var(--card);
}
.minister-band-text { display: flex; flex-direction: column; }
.minister-band-name {
  font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 0;
}
.minister-band-role {
  font-size: 1.02rem; color: var(--ink-soft);
  letter-spacing: 0.05em; text-transform: uppercase; margin: 0.3rem 0 0;
}
@media (max-width: 640px) {
  .minister-band { flex-direction: column; text-align: center; gap: 0.7rem; }
  .minister-band-photo { width: 112px; height: 112px; }
  .minister-band-name { font-size: 1.65rem; }
}

/* ---------- Office of the Minister doors (landing footer) ---------- */
.site-footer { max-width: 1100px; margin: 0 auto; padding: 1.4rem 1rem 2.4rem; text-align: center; }
.office-doors { display: flex; gap: 0.6rem; align-items: center; justify-content: center; flex-wrap: wrap; margin: 0; font-size: 0.95rem; }
.office-doors-label { color: var(--ink-soft); letter-spacing: 0.04em; }
.office-door-link { display: inline-block; padding: 0.45rem 1rem; border-radius: 999px; border: 1.5px solid var(--lilac-accent); color: var(--ink); text-decoration: none; font-weight: 700; background: var(--card); }
.office-door-link:hover, .office-door-link:focus-visible { background: var(--lilac-bg); }

/* ---------- Landing mobile spacing pass (Oct 23, 2026) ----------
   Phone widths: the public landing (hero + portrait band, Student
   Sign In card, Link this device, doors strip, office doors) gets
   generous breathing room — airier sections, a smaller hero headline,
   thumb-sized buttons that never run wall-to-wall, and even gaps.
   Scoped to sections inside <main> so the emergency / disguise /
   header chrome is untouched. */
@media (max-width: 640px) {
  main .section { margin: 1rem 0.7rem; padding: 1.7rem 1.15rem 2rem; }
  main .section + .section { margin-top: 1.15rem; }

  /* Portrait band: modest photo, name and title unhurried beneath it */
  .minister-band { margin-bottom: 1.5rem; gap: 0.8rem; }
  .minister-band-name { font-size: 1.55rem; }
  .minister-band-role { margin-top: 0.35rem; }

  /* Hero: headline steps down, message text breathes */
  .hero h1 { font-size: 1.78rem; line-height: 1.22; margin-bottom: 0.9rem; }
  .hero .section-kicker { margin-bottom: 0.55rem; }
  .hero-sub { font-size: 1.13rem; line-height: 1.45; margin-bottom: 0.85rem; }
  .hero-note { line-height: 1.68; margin-bottom: 0.95rem; }
  .hero-art { margin-top: 1.4rem; }

  /* Enroll / Install: stacked, centered, thumb-sized, inset from edges */
  .hero-actions { flex-direction: column; align-items: center; gap: 0.85rem; margin-top: 1.3rem; }
  .hero-actions .submit-btn,
  .hero-actions .install-wrap { width: min(100%, 19rem); margin: 0; }
  .hero-actions .submit-btn,
  .hero-actions .install-btn { width: 100%; text-align: center; padding: 0.85rem 1.2rem; font-size: 1.05rem; margin: 0; }

  /* Sign-in + link cards: roomy fields (1rem text also stops iOS zoom) */
  .site-form label { margin-bottom: 1rem; }
  .site-form input, .site-form select, .site-form textarea { padding: 0.72rem 0.8rem; font-size: 1rem; }
  .site-form .submit-btn { padding: 0.8rem 1.3rem; font-size: 1.02rem; }
  #portalSection h2, #linkSection h3 { line-height: 1.3; margin-bottom: 0.8rem; }
  #portalSection p, #linkSection p { line-height: 1.6; }

  /* Doors strip: even wrap, clear air between doors */
  .doors-network .dn-row { gap: 0.9rem 0.85rem; margin-top: 1.4rem; }
  .doors-network p { line-height: 1.65; }

  /* Office doors footer: stacked pills with gaps, clear of the edges */
  .site-footer { padding: 1.6rem 1.1rem 2.6rem; }
  .office-doors { gap: 0.6rem; }
  .office-door-link { padding: 0.6rem 1.15rem; }
}

/* ============ Lesson audio + learning methods (Oct 23, 2026) ============
   Accessibility Program build: a Listen control on every lesson and
   test, the Minister's recorded-teaching slot, checkpoint listen
   buttons, and the learning-method selector. On-device speech only. */
.mdts-top { margin: 0 0 1rem; }
.mdts-method { background: #000000; border: 2px solid #872085; border-radius: 12px; padding: .8rem .9rem; margin: 0 0 .8rem; text-align: left; }
.mdts-method-label { display: block; font-weight: 700; color: #CFA6CF; margin: 0 0 .4rem; }
.mdts-method-select { width: 100%; max-width: 430px; min-height: 46px; font-size: 1rem; padding: .45rem .6rem; border: 2px solid #872085; border-radius: 9px; background: #000000; color: #f5f2ff; }
.mdts-method-panel { margin-top: .65rem; color: #efe9ff; }
.mdts-method-panel[hidden] { display: none; }
.mdts-method-panel p { margin: 0 0 .5rem; }
.mdts-method-btn { min-height: 44px; padding: .55rem 1rem; border-radius: 999px; border: 2px solid #872085; background: #000000; color: #fff; font-weight: 700; cursor: pointer; }
.mdts-teach { background: #000000; border: 2px solid #872085; border-radius: 12px; padding: .8rem .9rem; margin: 0 0 .8rem; text-align: left; }
.mdts-teach-title { margin: 0 0 .6rem; color: #CFA6CF; }
.mdts-teach-media { width: 100%; display: block; border-radius: 8px; }
iframe.mdts-teach-media { aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
video.mdts-teach-media { max-height: 60vh; background: #000; }
audio.mdts-teach-media { height: 54px; }
.mdts-listen { background: #000000; border: 2px solid #872085; border-radius: 12px; padding: .8rem .9rem; margin: 0 0 .8rem; text-align: left; }
.mdts-listen-line { font-weight: 700; color: #F5E3EF; margin: 0 0 .5rem; font-size: 1.05rem; }
.mdts-listen-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.mdts-listen-btn { min-height: 46px; padding: .55rem 1rem; border-radius: 999px; border: 2px solid #872085; background: #000000; color: #fff; font-weight: 700; cursor: pointer; }
.mdts-listen-btn[hidden] { display: none; }
.mdts-rate { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: #F5E3EF; }
.mdts-rate-select { min-height: 40px; border: 2px solid #872085; border-radius: 8px; background: #000000; color: #F5E3EF; padding: .3rem .4rem; }
.mdts-listen-status { font-weight: 600; color: #F5E3EF; }
.mdts-listen-note { margin: 0; color: #F5E3EF; }
.mdts-listen-compact { padding: .55rem .7rem; margin: .6rem 0 0; }
.mdts-listen-compact .mdts-listen-btn { min-height: 40px; padding: .4rem .8rem; }
.mdts-present { box-shadow: 0 0 0 4px #B779B6; }
.mdts-q-listen { margin-top: .6rem; min-height: 42px; padding: .45rem .9rem; border-radius: 999px; border: 2px solid #872085; background: #000000; color: #F5E3EF; font-weight: 700; cursor: pointer; }
.mdts-large-text { font-size: 1.28rem; line-height: 1.95; }
.mdts-large-text p, .mdts-large-text li, .mdts-large-text label, .mdts-large-text legend, .mdts-large-text .cp-q { line-height: 1.95; }
.mdts-method-select:focus-visible, .mdts-method-btn:focus-visible, .mdts-listen-btn:focus-visible, .mdts-rate-select:focus-visible, .mdts-q-listen:focus-visible { outline: 3px solid #B779B6; outline-offset: 2px; }


/* ---- Test-day lockout (Oct 23, 2026) ---- */
.mdts-note { border: 2px solid #872085; background: #000000; border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; }
.mdts-note-head { font-weight: 800; color: #CFA6CF; margin: 0 0 .35rem; }
.mdts-note-text { margin: 0; line-height: 1.55; }
.quiz.mdts-gated > *:not(.mdts-start) { display: none !important; }
.mdts-start { border: 2px solid #872085; background: #000000; border-radius: 12px; padding: 1rem; }
.mdts-start-rule { font-size: 1.05rem; line-height: 1.55; margin: 0 0 .5rem; }
.mdts-start-limit { font-weight: 800; color: #CFA6CF; margin: 0 0 .8rem; }
.mdts-start-msg { color: #ff9d94; margin: .6rem 0 0; }
.mdts-countdown { font-weight: 800; font-size: 1.05rem; color: #F5E3EF; background: #000000; border: 1.5px solid #872085; border-radius: 8px; padding: .45rem .8rem; margin: 0 0 .8rem; display: inline-block; }
.mdts-countdown.mdts-cd-warn { color: #ffb3ab; background: #33120e; }
.mdts-testing .learn-seg, .mdts-testing .checkpoint-card, .mdts-testing .mdts-top, .mdts-testing .mdts-note { display: none !important; }
.mdts-testing-strip { border: 2px solid #8C1D2E; background: #33120e; color: #ffc9c2; border-radius: 10px; padding: .7rem 1rem; margin: 0 0 1rem; font-weight: 700; }
.mdts-unlock-line { font-weight: 800; color: #7fd98c; }
.mdts-office-line { font-weight: 700; color: #ff9d94; }
.mdts-timeup-line { font-weight: 700; color: #ff9d94; }
.mdts-tests-rule { font-weight: 700; color: #CFA6CF; margin: 0 0 .8rem; }
.mdts-progress-banner { border: 2px solid #872085; background: #000000; border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; }
.test-chip.chip-progress { background: #33270c; color: #ffd97a; border: 1px solid #CFA6CF; }
.form-note { margin: .35rem 0 0; font-size: .92rem; color: #D8CCD4; }

/* Gaming door (Oct 25, 2026): the district door wears blue (Destiny's color order, Oct 25, 2026 — was emerald). */
.dn-emerald .dn-panel { background: #000000; color: var(--ink); border-color: #3b82f6; }
.dn-emerald .dn-name { color: #93c5fd; }
