/* ============================================================
   Minister Destiny Gaming School — The Arcade (gaming.ministerdestinytestimonyschools.com)
   Shared design system: Paradise palette, per-section colors,
   adaptive light/dark, full mobile scroll, print stylesheet.
   Hard rules: NO ivory, NO gold. No fixed header over content.
   Sister-school scheme (Oct 25, 2026, v31): the ENTIRE page is
   black #000; buttons, doors and cards are BLACK inside; this app's
   own accent (#34d399) appears ONLY on borders / edges / trim.
   One of the Sister Schools — the family of Minister Destiny
   Testimony Schools — under its own name and its own colors.
   ============================================================ */

:root {
  color-scheme: dark;
  --ink: #f2fbf7;
  --ink-soft: #bbf7d0;
  --link: #6ee7b7;
  --card: #000000;
  --card-border: #34d399;
  --btn-bg: #000000;
  --btn-ink: #ffffff;
  --accent: #34d399; --accent-hi: #6ee7b7; --accent-text: #a7f3d0; --edge-dim: #065f46;

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

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

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2fbf7;
    --ink-soft: #bbf7d0;
    --link: #6ee7b7;
    --card: #000000;
    --card-border: #34d399;
    --btn-bg: #000000;
    --btn-ink: #ffffff;
  --accent: #34d399; --accent-hi: #6ee7b7; --accent-text: #a7f3d0; --edge-dim: #065f46;

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

    --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;
}

/* honeypot field: present for bots, invisible to people */
.hp {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

a { color: var(--link); }
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--lilac-accent); 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 { display: flex; align-items: center; gap: 0.7rem; color: var(--lilac-accent); }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-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; }
.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);
}
/* Language list legibility — Oct 23, 2026: the opened native list is
   painted by the OS with its own white background, while the option text
   inherited the select's color (near-white var(--ink) in the dark color
   scheme), so the languages were invisible on the list until hovered.
   Pin readable option colors for the plain, hover, and selected rows. */
#langSelect option {
  background-color: #14101d; 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); }
.nav-doors { display: contents; }

/* ---------- 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-blue-soft    { background: var(--blue-soft-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; }
h4 { font-size: 1.12rem; line-height: 1.35; margin: 0.6rem 0 0.4rem; }
p { margin: 0.55rem 0; }

.banner-line {
  text-align: center; font-weight: 700; letter-spacing: 0.03em;
  color: var(--ink-soft); margin: 0 0 0.6rem;
}
.hero-sub { font-size: 1.22rem; max-width: 46rem; }
.hero-note { max-width: 46rem; color: var(--ink-soft); }
/* ---------- Minister band — portrait + name in the hero, styled after
   Destiny's approved LinkedIn banner (Oct 23, 2026): circular portrait
   with a thin gold ring beside her name in serif, title line beneath. */
.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 #34d399;
  box-shadow: 0 2px 10px rgba(43, 33, 64, 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;
}
.minister-band--header { max-width: 1100px; margin: 0.9rem auto 0.3rem; }
@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; }
}


/* ---------- Cards & grids ---------- */
.stats-grid, .series-grid, .division-grid, .contact-grid,
.network-grid, .platform-grid, .services-grid, .guide-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, .service-card,
.guide-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: inherit; font-weight: 700; cursor: pointer;
  border: 2px solid var(--accent);
}
.submit-btn[disabled] { opacity: 0.6; cursor: wait; }
.small-note { font-size: 0.92rem; color: var(--ink-soft); }

.badge-paused {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  background: var(--rose-bg); color: var(--rose-accent);
  border: 1.5px solid var(--rose-accent); border-radius: 999px;
  padding: 0.12rem 0.6rem; margin-left: 0.4rem; vertical-align: middle;
}

/* do / don't lists */
.check-list { list-style: none; padding-left: 0; margin: 0.4rem 0; }
.check-list li { margin: 0.35rem 0; padding-left: 1.6rem; position: relative; }
.check-list li::before { position: absolute; left: 0; font-weight: 700; }
.check-list.yes li::before { content: "✓"; color: var(--sage-accent); }
.check-list.no li::before { content: "✕"; color: var(--rose-accent); }

/* ---------- Prayer times ---------- */
.prayer-table {
  width: 100%; max-width: 560px; border-collapse: collapse; margin-top: 1rem;
  background: var(--card); border-radius: 14px; overflow: hidden;
}
.prayer-table th, .prayer-table td {
  padding: 0.6rem 1rem; text-align: left;
  border-bottom: 1px solid var(--card-border);
}
.prayer-table tr:last-child th, .prayer-table tr:last-child td { border-bottom: none; }
.prayer-table td { font-weight: 700; text-align: right; font-size: 1.12rem; }
.snapshot-note {
  background: var(--card); border: 1.5px dashed var(--card-border);
  border-radius: 10px; padding: 0.7rem 0.9rem; max-width: 46rem;
}
.calendar-list { padding-left: 1.3rem; }
.calendar-list li { margin: 0.35rem 0; }

/* ---------- New Muslims guide ---------- */
.guide-steps { padding-left: 1.4rem; }
.guide-steps li { margin: 0.45rem 0; }
.arabic {
  font-size: 1.5rem; line-height: 2; direction: rtl; text-align: right;
  font-family: "Traditional Arabic", "Scheherazade New", serif;
}
.arabic-inline { font-size: 1.2rem; }
.translit { font-style: italic; }
.fatiha-block {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 14px; padding: 1rem 1.2rem; margin-top: 1rem;
}
.fatiha-block p { margin: 0.7rem 0; }
table.simple-table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; }
table.simple-table th, table.simple-table td {
  padding: 0.45rem 0.7rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--card-border);
}
table.simple-table tr:last-child td { border-bottom: none; }
.alphabet-grid {
  display: grid; gap: 0.5rem; margin-top: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
}
.alphabet-cell {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 12px; padding: 0.55rem 0.4rem; text-align: center;
}
.alphabet-cell .letter { font-size: 1.7rem; display: block; line-height: 1.5; }
.alphabet-cell .lname { font-size: 0.9rem; color: var(--ink-soft); display: block; }

/* ---------- Teachings ---------- */
.teach-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 0.4rem; }
.teach-filter {
  font: inherit; font-weight: 700; font-size: 0.97rem;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--card-border); border-radius: 999px;
  padding: 0.4rem 1rem; cursor: pointer;
}
.teach-filter.active { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--accent); }
.teaching-post {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 14px; padding: 1rem 1.2rem; margin-top: 1rem;
}
.post-date { color: var(--ink-soft); font-size: 0.95rem; margin-top: -0.3rem; }
.post-category {
  display: inline-block; font-size: 0.82rem; font-weight: 700;
  background: var(--lilac-bg); color: var(--ink); border: 1.5px solid var(--accent);
  padding: 0.15rem 0.6rem; border-radius: 999px; margin-bottom: 0.4rem;
}

/* ---------- 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-status {
  border-radius: 10px; padding: 0.7rem 0.9rem; font-weight: 400; margin: 0;
}
.form-status.ok {
  background: var(--card); border: 1.5px solid var(--sage-accent);
}
.form-status.err {
  background: var(--card); border: 1.5px solid var(--rose-accent);
}
.form-status[hidden] { display: none; }

/* ---------- Reviews / support display ---------- */
.review-list, .support-list { display: grid; gap: 0.8rem; margin-top: 1rem; }
.review-card, .support-card {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 14px; padding: 0.9rem 1.1rem;
}
.review-card blockquote, .support-card blockquote { margin: 0.2rem 0; }
.review-meta, .support-meta { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.empty-note {
  background: var(--card); border: 1.5px dashed var(--card-border);
  border-radius: 10px; padding: 0.7rem 0.9rem;
}

/* ---------- 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); }
.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;
}

/* ---------- 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;
}
.visitor-counter { font-weight: 700; }

/* ---------- Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 6, 24, 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: var(--lilac-soft-bg); color: var(--ink);
  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: #1d3f6e;
  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: #1d3f6e;
  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: #14304f;
  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: #1d3f6e;
  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; }
  .prayer-table td { font-size: 1.02rem; }
}

/* ---------- 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,
  .teach-filters { 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, .service-card, .guide-card,
  .teaching-post, .review-card, .support-card, .fatiha-block,
  .alphabet-cell {
    background: #ffffff !important; border: 1px solid #999999 !important;
  }
}

/* Verbatim-content blocks (patched 2026-10-20) */
.stack-card { margin: 1rem 0; }
.lead-line { font-size: 1.18rem; font-weight: 700; }

/* ===== 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); border: 1.5px solid var(--accent); font-size: 0.82rem; }
.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; background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: bold; font-size: 1.02rem; border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(43, 33, 64, 0.28); }
.dl-btn:hover, .dl-btn:focus { opacity: 0.88; }
.audio-player { width: 100%; max-width: 30rem; display: block; margin: 0.3rem 0 0.9rem; }

/* ===== Ministry Credentials & Verification galleries ===== */
a.nav-tab { text-decoration: none; display: inline-block; }
.credentials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1rem; }
.credential-card img.credential-img { width: 100%; height: auto; display: block; border-radius: 10px; }
.credentials-subhead { margin: 1.7rem 0 0.3rem; }
.credential-wide { margin-top: 1.2rem; }

/* ===== 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(43, 33, 64, 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; }

/* ---------- 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, #b9a7e6); background: var(--card, #ffffff); color: var(--ink, #241b38); 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); background: var(--btn-bg, #55298a); color: var(--btn-ink, #ffffff); cursor: pointer; }
.owner-login-msg { font-size: 0.85rem; }


/* ---------- Sister Schools family layer (Oct 25, 2026) ---------- */
.brand-family { font-size: 0.85rem; color: var(--accent-text); letter-spacing: 0.03em; }
.network-sub { color: var(--ink-soft); margin: 0.2rem 0 0.4rem; max-width: 46rem; }
.network-card span.family-badge, span.family-badge { display: inline-block; margin-top: 0.4rem; font-size: 0.82rem; font-weight: 700; color: var(--accent-text); border: 1.5px solid var(--accent); padding: 0.15rem 0.6rem; border-radius: 999px; }


/* ---------- The Hall of Faiths (Oct 25, 2026): flat doors, teal line symbols, all equal ---------- */
.faith-grid { display: grid; gap: 0.9rem; margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.faith-door { background: var(--card); border: 1.5px solid var(--card-border); border-radius: 14px; padding: 1.1rem 0.8rem 1rem; text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.faith-door strong { font-size: 1.02rem; line-height: 1.3; }
.faith-line { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.4; }
.faith-symbol { color: var(--accent); display: block; height: 52px; }
.faith-symbol svg { width: 48px; height: 48px; display: block; }


/* ---------- Minister banner (Oct 25, 2026): our own placard-style band — black, one huge
   word, the sister's name in the app accent, the app's own DM mark. No ULC marks or text. ---------- */
.minister-banner { position: relative; background: #000000; border-bottom: 2px solid var(--accent); text-align: center; padding: 1.1rem 3.6rem 1.2rem; }
.mb-top { margin: 0; font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink); }
.mb-word { margin: 0.1rem 0; font-size: clamp(2.4rem, 10vw, 4.6rem); font-weight: 800; letter-spacing: 0.1em; line-height: 1.05; color: #ffffff; }
.mb-school { margin: 0; font-size: clamp(0.78rem, 2.6vw, 1rem); letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--accent-text); }
.mb-emblem { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; color: var(--accent); }
@media (max-width: 640px) { .minister-banner { padding: 0.9rem 3rem 1rem; } .mb-emblem { width: 38px; height: 38px; right: 0.55rem; } }

/* ---------- 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; }

/* ===== Ask Desi — Desi, the Minister's AI (Oct 25, 2026) =====
   The Headquarters panel style, in this app's own accent. The face is
   the approved rabbit avatar (desi-avatar.webp), always beside its
   visible label. Calm: no motion, no flashing. */
.ask-desi-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.5rem; }
.ask-desi-head h2, .ask-desi-head h3, .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(--accent); background: #000000; flex: none; }
.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; list-style: none; padding-left: 0; }
.ask-desi-topics li { margin: 0.35rem 0; }
.ask-desi-nav { display: inline-flex; align-items: center; }
.ask-desi-nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); background: #000000; margin-right: 0.4rem; flex: none; }

/* ---------- Gaming-world interior (v2, Oct 25, 2026) ----------
   Static CSS only: no animations, no keyframes, no transitions,
   no flashing — calm screens law. Panel borders read like console
   / room panels; a faint static grid texture via CSS gradients;
   emerald accent only, dark-first, black ground as v1. */
.room-sign {
  display: inline-block; font-weight: 700; letter-spacing: 0.08em;
  font-size: 0.85rem; text-transform: uppercase; color: var(--accent-text);
  border: 1.5px solid var(--accent); border-radius: 8px;
  padding: 0.3rem 0.75rem; margin: 0.2rem 0 0.7rem;
  background:
    repeating-linear-gradient(0deg, rgba(52,211,153,0.05) 0 1px, transparent 1px 14px),
    #000000;
  box-shadow: inset 0 0 0 3px #000000, inset 0 0 0 4.5px var(--edge-dim);
}
.wing-grid, .room-grid, .lane-grid {
  display: grid; gap: 0.9rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.lane-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 0.9rem 0 0.4rem; }
.wing-card, .room-card, .lane-card {
  background:
    repeating-linear-gradient(0deg, rgba(52,211,153,0.035) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(52,211,153,0.035) 0 1px, transparent 1px 16px),
    var(--card);
  border: 1.5px solid var(--card-border); border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: inset 0 0 0 3px #000000, inset 0 0 0 4.5px rgba(6,95,70,0.55);
}
.wing-card--clean { border-width: 2.5px; }
.wing-card--open { border-style: dashed; border-width: 2px; }
.room-card .small-note a, .lane-card a { font-weight: 700; }
.gear-line {
  border: 1.5px solid var(--accent); border-radius: 12px;
  padding: 0.8rem 1rem; margin-top: 1rem; background: #000000;
}
.minister-word-card { border-width: 2.5px; }
.draft-flag {
  display: inline-block; font-weight: 700; font-size: 0.88rem;
  color: var(--accent-text); border: 1.5px dashed var(--accent);
  border-radius: 999px; padding: 0.2rem 0.7rem; margin: 0 0 0.4rem;
}
/* Level map — a calm, static journey: Level 1 -> 4 -> Graduate */
.level-map {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.6rem;
  margin-top: 1rem;
}
.level-node {
  flex: 1 1 150px; background: var(--card);
  border: 1.5px solid var(--card-border); border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: inset 0 0 0 3px #000000, inset 0 0 0 4.5px rgba(6,95,70,0.55);
}
.level-node--grad { border-width: 2.5px; }
.level-chip {
  display: inline-block; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.09em; color: #000000; background: var(--accent);
  border-radius: 999px; padding: 0.15rem 0.65rem; margin: 0 0 0.3rem;
}
.level-arrow {
  align-self: center; font-size: 1.35rem; font-weight: 700;
  color: var(--accent); margin: 0;
}
@media (max-width: 640px) {
  .level-map { flex-direction: column; }
  .level-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 1rem; }
}
@media print {
  .wing-card, .room-card, .lane-card, .level-node {
    background: #ffffff !important; border: 1px solid #999999 !important;
    box-shadow: none !important;
  }
  .level-chip { background: #ffffff !important; border: 1px solid #999999; }
  .room-sign, .draft-flag, .gear-line { box-shadow: none !important; }
}

/* ---------- Desi — the resident guide (v3, Oct 25, 2026) ----------
   Destiny: Desi is assigned a HUGE role in this school — she stands
   at the entrance, at the choice of wings, in every room, and on the
   level map: her rabbit avatar beside her own line, in the school's
   emerald. Static only — the calm-screens law holds: no animations,
   no transitions, no motion of any kind. */
.desi-guide {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--card); border: 1.5px solid var(--accent); border-radius: 14px;
  padding: 1rem 1.1rem; margin: 1rem 0;
  box-shadow: inset 0 0 0 3px #000000, inset 0 0 0 4.5px rgba(6,95,70,0.55);
}
.desi-guide-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); background: #000000; flex: none; }
.desi-guide-name { font-weight: 700; color: var(--accent-text); margin: 0.15rem 0 0.35rem; letter-spacing: 0.02em; }
.desi-guide-body p { margin: 0.3rem 0; }
.desi-line {
  display: flex; gap: 0.55rem; align-items: flex-start;
  margin: 0.7rem 0 0; border-top: 1px dashed var(--card-border); padding-top: 0.6rem;
}
.desi-line-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); background: #000000; flex: none; }
.desi-line span { line-height: 1.45; }
@media (max-width: 640px) { .desi-guide { flex-direction: column; } }
