/* Minister Destiny and Andrew — Journey of Help — calm, dark-first design.
   No flashing, no strobing, no motion effects, no sudden bright changes.
   Colors (owner's order, Nov 4, 2026): her side — black background, purple
   writing; Andrew's Office (body.andrew-theme) — black background, blue writing.
   Dark is the base; a light version of each side follows the visitor's own
   device setting (prefers-color-scheme). Print stays black on white.
   The accent variables keep their original names (--gold / --gold-soft) so
   every rule below picks its side's color from the variables alone. */

:root {
  color-scheme: light dark;
  --bg: #000000;
  --bg-soft: #0d0716;
  --panel: #170b28;
  --panel-edge: #7c3aed;
  --text: #d8b4fe;
  --text-soft: #c4b5fd;
  --gold: #a855f7;
  --gold-soft: #c084fc;
  --calm-box: #150a2e;
  --calm-edge: #7c3aed;
  --calm-head: #d8b4fe;
  --warn-box: #1d0b33;
  --warn-edge: #a855f7;
  --warn-head: #e9d5ff;
  --ok: #c4b5fd;
  --on-accent: #000000;
  --max: 62rem;
}

/* Andrew's Office — dark: black background, blue writing. */
body.andrew-theme {
  --bg: #000000;
  --bg-soft: #060d1a;
  --panel: #0a1730;
  --panel-edge: #2563eb;
  --text: #a8c8fa;
  --text-soft: #93c5fd;
  --gold: #3b82f6;
  --gold-soft: #60a5fa;
  --calm-box: #081226;
  --calm-edge: #2563eb;
  --calm-head: #bfdbfe;
  --warn-box: #0a1430;
  --warn-edge: #3b82f6;
  --warn-head: #bfdbfe;
  --ok: #93c5fd;
  --on-accent: #000000;
}

/* Light versions — only when the visitor's device itself is in light mode. */
@media (prefers-color-scheme: light) {
  /* Her side — light: light lavender-white background, deep purple writing. */
  :root {
    --bg: #fbfaff;
    --bg-soft: #f1eafb;
    --panel: #f4effd;
    --panel-edge: #8b5cf6;
    --text: #4c1d95;
    --text-soft: #5b21b6;
    --gold: #7c3aed;
    --gold-soft: #6d28d9;
    --calm-box: #ede9fe;
    --calm-edge: #7c3aed;
    --calm-head: #4c1d95;
    --warn-box: #f3e8ff;
    --warn-edge: #7c3aed;
    --warn-head: #4c1d95;
    --ok: #5b21b6;
    --on-accent: #ffffff;
  }

  /* Andrew's Office — light: light blue-white background, deep blue writing. */
  body.andrew-theme {
    --bg: #fafcff;
    --bg-soft: #e9f1fe;
    --panel: #eef4ff;
    --panel-edge: #5b8def;
    --text: #1e40af;
    --text-soft: #1d4ed8;
    --gold: #2563eb;
    --gold-soft: #1d4ed8;
    --calm-box: #dbeafe;
    --calm-edge: #2563eb;
    --calm-head: #1e3a8a;
    --warn-box: #e0eaff;
    --warn-edge: #2563eb;
    --warn-head: #1e3a8a;
    --ok: #1d4ed8;
    --on-accent: #ffffff;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--on-accent);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

header.site {
  background: var(--bg-soft);
  border-bottom: 2px solid var(--gold);
  padding: 1rem;
}
header.site .wrap, main, footer.site .wrap { max-width: var(--max); margin: 0 auto; }
header.site .site-logo { display: block; margin: 0.5rem auto 0.75rem; width: 200px; max-width: 60vw; height: auto; }
.brand { font-size: 1.35rem; color: var(--gold-soft); margin: 0; }
header.site .byline { color: var(--text-soft); margin: 0.15rem 0 0.75rem; font-size: 1rem; }

nav.main { display: flex; flex-wrap: wrap; gap: 0.5rem; }
nav.main a {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 0.5rem;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
}
nav.main a[aria-current="page"] { border-color: var(--gold); color: var(--gold-soft); }
nav.main a:focus, a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

main { padding: 1.25rem 1rem 2.5rem; }

h1 { font-size: 2rem; line-height: 1.25; color: var(--gold-soft); margin: 0.5rem 0 1rem; }
h2 { font-size: 1.5rem; color: var(--gold-soft); margin: 2rem 0 0.6rem; }
h3 { font-size: 1.2rem; color: var(--text); margin: 1.4rem 0 0.4rem; }
p, li { max-width: 46rem; }
a { color: var(--gold-soft); }

.lede { font-size: 1.2rem; color: var(--text-soft); }

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.door {
  display: block;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--text);
}
.door strong { display: block; font-size: 1.2rem; color: var(--gold-soft); margin-bottom: 0.3rem; }
.door span { color: var(--text-soft); font-size: 1rem; }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.calm-box {
  background: var(--calm-box);
  border: 1px solid var(--calm-edge);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.calm-box h2, .calm-box h3 { color: var(--calm-head); margin-top: 0.4rem; }

.warn-box {
  background: var(--warn-box);
  border: 2px solid var(--warn-edge);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.warn-box .big { font-size: 1.35rem; font-weight: bold; color: var(--warn-head); }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.columns .card { margin: 0; }
.columns .verified { border-color: var(--gold); }

ol.steps > li, ul.plain > li { margin-bottom: 0.55rem; }
.source { color: var(--text-soft); font-size: 0.98rem; }
.small { font-size: 0.98rem; color: var(--text-soft); }

table.contacts { border-collapse: collapse; width: 100%; margin: 1rem 0; }
table.contacts th, table.contacts td {
  border: 1px solid var(--panel-edge);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
table.contacts th { background: var(--bg-soft); color: var(--gold-soft); }

form.log-form label { display: block; margin: 0.8rem 0 0.25rem; font-weight: bold; }
form.log-form input, form.log-form select, form.log-form textarea {
  width: 100%;
  max-width: 42rem;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--panel-edge);
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
}

/* Country picker: a plain native drop-down — no custom widget, no motion.
   The panel beside it is still text that simply changes when a country is chosen. */
.country-picker select {
  width: 100%;
  max-width: 42rem;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--panel-edge);
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.country-panel { margin-top: 0.75rem; }
.country-panel .big-number { font-size: 1.45rem; color: var(--gold-soft); }
button, .button {
  background: var(--gold);
  color: var(--on-accent);
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin: 0.3rem 0.4rem 0.3rem 0;
}
button.quiet { background: var(--panel); color: var(--text); border: 1px solid var(--panel-edge); }

.checklist { list-style: none; padding-left: 0; }
.checklist li { margin-bottom: 0.6rem; }
.checklist input[type="checkbox"] { width: 1.3rem; height: 1.3rem; margin-right: 0.55rem; vertical-align: -0.2rem; }

.log-entry {
  background: var(--bg-soft);
  border: 1px solid var(--panel-edge);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  margin: 0.6rem 0;
}
.log-entry .meta { color: var(--text-soft); font-size: 0.98rem; }

footer.site {
  background: var(--bg-soft);
  border-top: 2px solid var(--gold);
  padding: 1.5rem 1rem 2.5rem;
  margin-top: 2rem;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.disclaimer { color: var(--text-soft); font-size: 1rem; max-width: 46rem; }

.wallet-card {
  border: 2px dashed var(--gold);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  max-width: 30rem;
  background: var(--bg-soft);
}

[hidden] { display: none !important; }

/* Google Translate drop-down (top of every page, beside the reading help).
   The widget is Google's own; these rules only seat it quietly in each
   side's palette and keep its banner from pushing the page down.
   Static and calm — no motion of ours. Until the widget loads (or if it
   cannot, offline), the box stays hidden and nothing is missing. */
.translate-box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.translate-box[hidden] { display: none; }
.translate-label { color: var(--text-soft); font-size: 1rem; }
.translate-widget { min-height: 2rem; }
.goog-te-gadget-simple { background-color: var(--panel) !important; border: 1px solid var(--panel-edge) !important; border-radius: 0.4rem; padding: 0.25rem 0.5rem !important; font-family: inherit !important; font-size: 1rem !important; line-height: 1.4 !important; }
.goog-te-gadget-simple .goog-te-menu-value span { color: var(--text) !important; }
.goog-te-gadget-icon { display: none !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
.VIpgJd-ZVi9od-ORHb-OEVmcd.skiptranslate { display: none !important; }
body { top: 0 !important; }

/* Reading help: Listen / Large text controls. Static and calm — no motion. */
.read-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.read-tools button { margin: 0; }

/* Large text: scales the whole page up; every size here is in rem. */
html.large-text { font-size: 125%; }

/* Timeline: a simple vertical list of dates. */
.timeline { list-style: none; padding-left: 0; margin: 1.5rem 0 1.5rem 0.55rem; border-left: 2px solid var(--panel-edge); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.6rem; max-width: 46rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.46rem;
  top: 0.42rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--gold);
}
.timeline .when { display: block; color: var(--gold-soft); font-weight: bold; font-size: 1.15rem; margin-bottom: 0.2rem; }

/* Grants Helper (grants.html): a calm, one-step-at-a-time walk-through.
   Static — no motion, no animation. Big tap choices, real buttons,
   a checklist whose ticks live only on the visitor's own device. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.helper {
  background: var(--panel);
  border: 2px solid var(--gold);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  margin: 1.5rem 0;
}
.helper h2 { margin-top: 0.4rem; }
.helper-eyebrow { color: var(--gold-soft); font-weight: bold; margin-bottom: 0.2rem; }
.helper-next {
  background: var(--calm-box);
  border: 1px solid var(--calm-edge);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  margin: 1rem 0;
}
.helper-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.25rem 0 0.5rem; }
.helper-choice {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--panel-edge);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  margin: 0;
  font-weight: normal;
}
.helper-choice strong { display: block; font-size: 1.2rem; color: var(--gold-soft); margin-bottom: 0.3rem; }
.helper-choice span { display: block; color: var(--text-soft); font-size: 1rem; }
.helper-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.helper-actions button { margin: 0; }
.helper-progress { font-weight: bold; color: var(--gold-soft); }
.helper-checklist { list-style: none; padding-left: 0; }
.helper-step {
  background: var(--bg-soft);
  border: 1px solid var(--panel-edge);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.6rem;
  max-width: none;
}
.helper-step label { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; }
.helper-step input[type="checkbox"] { width: 1.4rem; height: 1.4rem; margin-top: 0.25rem; flex: none; }
.helper-step-link { margin: 0.4rem 0 0 2rem; }
.helper-done {
  border: 1px solid var(--calm-edge);
  border-radius: 0.5rem;
  padding: 0.2rem 1rem 0.6rem;
  margin: 1rem 0;
}
.helper-done:empty { display: none; }

/* Grants Helper Do-It stage: the computer fills the application with
   the person — one question at a time, a filled packet, and the send
   walked to the official giver. Same calm rules: static, real
   buttons and fields, answers only on the visitor's own device. */
.helper-clause {
  background: var(--calm-box);
  border: 1px solid var(--calm-edge);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  margin: 1rem 0;
}
.helper-form label { display: block; margin: 0.8rem 0 0.25rem; font-weight: bold; }
.helper-form input, .helper-form textarea {
  width: 100%;
  max-width: 42rem;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--panel-edge);
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.helper-example, .helper-starter { color: var(--text-soft); }
.helper-error { color: var(--gold-soft); font-weight: bold; }
.helper-doit-entry {
  border-top: 1px solid var(--panel-edge);
  margin-top: 1.25rem;
  padding-top: 0.75rem;
}
.helper-packet-item {
  background: var(--bg-soft);
  border: 1px solid var(--panel-edge);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.6rem;
  max-width: none;
}
.helper-packet-item h4 { margin: 0.2rem 0 0.4rem; }
.helper-packet-answer { white-space: pre-wrap; }
.helper-send-steps li { margin-bottom: 0.8rem; }
.helper-send-answer { color: var(--text-soft); margin: 0.3rem 0 0 1.25rem; }
.helper-sent label { display: block; margin: 0.8rem 0 0.25rem; font-weight: bold; }
.helper-sent input {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--panel-edge);
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.helper-clear-row { margin-top: 1.25rem; }

/* Teaching systems (help.html): CPR Training, Sign Language, and
   Learn Braille — the same walk pattern as the Grants Helper: one
   step at a time, real buttons, big tap targets. Static by design:
   no animation, no flashing, no sudden changes of brightness. The
   braille cell's buttons stand in dot-number order for screen
   readers and are placed into the two braille columns by grid area. */
.learn-heading { margin-top: 0.4rem; }
.learn-big { font-size: 3rem; font-weight: bold; color: var(--gold-soft); line-height: 1.15; margin: 0.4rem 0; }
.learn-braille-glyph { font-size: 3rem; line-height: 1.15; color: var(--gold-soft); margin: 0.4rem 0; }
.learn-count { font-size: 2.8rem; font-weight: bold; color: var(--gold-soft); margin: 0.4rem 0; }
.learn-status { font-weight: bold; }
.learn-tap { display: block; width: 100%; max-width: 26rem; min-height: 4.5rem; font-size: 1.25rem; margin: 1rem 0; }
.learn-steps li { margin-bottom: 0.5rem; }
.learn-dotgrid {
  display: grid;
  grid-template-columns: repeat(2, 5.25rem);
  grid-template-areas: "d1 d4" "d2 d5" "d3 d6";
  gap: 0.85rem;
  margin: 0.5rem 0 1rem;
}
.learn-dot {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  border: 3px solid var(--gold-soft);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
}
.learn-dot-1 { grid-area: d1; }
.learn-dot-2 { grid-area: d2; }
.learn-dot-3 { grid-area: d3; }
.learn-dot-4 { grid-area: d4; }
.learn-dot-5 { grid-area: d5; }
.learn-dot-6 { grid-area: d6; }
.learn-dot[aria-pressed="true"] { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }
.learn-cells { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.learn-cell-label { font-weight: bold; color: var(--gold-soft); margin: 0.8rem 0 0; }
.learn-feel { min-height: 1.65em; color: var(--text-soft); }
.learn-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: 0.5rem; margin: 1rem 0; }
.learn-letters button { margin: 0; padding: 0.6rem 0.2rem; }

/* Printables: each printable stands as its own section on the page. */
.printable { margin: 2.25rem 0; }

/* Print-only renderings (the filled Be Findable sheet): never on screen,
   on paper only when chosen for printing. */
.print-only { display: none; }

.doors-list li { margin-bottom: 0.8rem; font-size: 1.15rem; }

@media print {
  body { background: #ffffff; color: #000000; font-size: 12pt; }
  header.site, nav.main, footer.site nav, .no-print { display: none; }
  .card, .calm-box, .warn-box, .door, .log-entry, .wallet-card {
    background: #ffffff; color: #000000; border: 1px solid #000000;
  }
  h1, h2, h3, .door strong, a { color: #000000; }
  .calm-box h2, .calm-box h3, .warn-box .big { color: #000000; }
  footer.site { background: #ffffff; border-top: 1px solid #000000; }
  .disclaimer, .source, .small, .lede, .log-entry .meta { color: #222222; }
  /* Printing one printable at a time (Printables page buttons):
     everything outside the chosen section is left off the paper. */
  body.printing-one main > *:not(.print-this) { display: none; }
  body.printing-one .print-this { border: none; }
  body.printing-one .print-only.print-this { display: block; }
}

/* My Vault (vault.html): a locked, on-device records place. The same
   calm rules as the rest of the app: real buttons and fields, no
   motion, no flashing, nothing sent anywhere by the app itself. */
.vault-form label { display: block; margin: 0.8rem 0 0.25rem; font-weight: bold; }
.vault-form input, .vault-form select, .vault-form textarea {
  width: 100%;
  max-width: 42rem;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--panel-edge);
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.vault-form input[type="checkbox"] { width: 1.3rem; height: 1.3rem; max-width: none; vertical-align: -0.2rem; }
.vault-form fieldset { border: 1px solid var(--panel-edge); border-radius: 0.5rem; margin: 1rem 0; max-width: 46rem; }
.vault-form legend { color: var(--gold-soft); font-weight: bold; padding: 0 0.4rem; }
.vault-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.vault-actions button { margin: 0; }
.vault-status { font-weight: bold; }
.vault-words {
  font-size: 1.45rem;
  font-weight: bold;
  color: var(--gold-soft);
  background: var(--bg-soft);
  border: 2px solid var(--gold);
  border-radius: 0.5rem;
  padding: 1rem;
  max-width: 42rem;
}
.vault-item {
  background: var(--bg-soft);
  border: 1px solid var(--panel-edge);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  margin: 0.6rem 0;
  max-width: none;
}
.vault-item .meta { color: var(--text-soft); font-size: 0.98rem; }
.vault-item label { font-weight: bold; }
.vault-detail {
  background: var(--bg-soft);
  border: 2px solid var(--gold);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  white-space: normal;
}
.vault-detail .original { white-space: pre-wrap; }
.vault-log { list-style: none; padding-left: 0; }
.vault-log li { border-bottom: 1px solid var(--panel-edge); padding: 0.45rem 0; max-width: 46rem; }
.vault-neutral { text-align: left; }
@media print {
  .vault-item, .vault-detail { background: #ffffff; color: #000000; border: 1px solid #000000; }
}

/* Fix-pass tools (identity / missing / grants kit) */
.toolbox { border: 1px solid; border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.toolbox h3 { margin-top: 0; }
.tool-screen { margin: 0.75rem 0; }
.tool-next { font-weight: bold; }
.tool-progress { font-size: 0.9em; opacity: 0.85; }
.map-row { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.45rem 0; border-bottom: 1px dotted; }
.map-row .badge { flex: 0 0 auto; font-weight: bold; padding: 0.1rem 0.5rem; border: 1px solid; border-radius: 999px; font-size: 0.85em; }
.rec-row { border: 1px solid; border-radius: 8px; padding: 0.7rem; margin: 0.6rem 0; }
.rec-row p { margin: 0.3rem 0; }
.symboard { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0; }
.symboard button { font-size: 1.25rem; padding: 0.8rem 1rem; }
.wallet-card { border: 2px solid; border-radius: 10px; padding: 0.7rem; max-width: 340px; margin: 0.6rem 0; }
.flyer-print { border: 2px solid; padding: 1rem; margin: 0.6rem 0; }
.poster-print { border: 3px solid; padding: 1.2rem; margin: 0.6rem 0; text-align: center; }
.poster-print .big-name { font-size: 2rem; font-weight: bold; }
.tool-out { white-space: pre-wrap; border: 1px dashed; padding: 0.7rem; margin: 0.6rem 0; }
.field-grid label { display: block; margin-top: 0.6rem; }

/* Rebuild additions (Nov 5, 2026): right-to-left languages render with
   the flow reversed when a person chooses one; form text areas match
   the app's fields. Calm only — nothing here moves. */
[dir="rtl"] body, [dir="rtl"] main, [dir="rtl"] .card, [dir="rtl"] .door { text-align: right; }
[dir="rtl"] .steps, [dir="rtl"] .plain { padding-right: 1.4em; padding-left: 0; }
textarea { width: 100%; max-width: 100%; font: inherit; background: #111; color: #D8B4FE; border: 1px solid #7C3AED; border-radius: 6px; padding: 0.5em; }
