/* Grants & Help on the Minister page — calm, dark-first design.
   Palette adapted to the Minister page's soft pink (Nov 18, 2026 move from Journey).
   No flashing, no strobing, no motion effects, no sudden bright changes.
   Colors (owner's order, Nov 4, 2026; updated Nov 13, 2026): her side —
   black background, GREEN writing (purple is the schools' color, not the
   Journey's); Andrew's Office (body.andrew-theme) — black background, blue
   writing, unchanged. Her side declares color-scheme: dark only, and its
   light-theme values are the same black and green, so the writing shows
   the same on phones in dark theme and in light theme. 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: dark;
  --bg: #000000;
  --bg-soft: #0c0c0c;
  --panel: #111111;
  --panel-edge: #8a4a63;
  --text: #FBCFE8;
  --text-soft: #F9A8D4;
  --gold: #F9A8D4;
  --gold-soft: #FBCFE8;
  --calm-box: #0e120e;
  --calm-edge: #8a4a63;
  --calm-head: #FBCFE8;
  --warn-box: #111111;
  --warn-edge: #F9A8D4;
  --warn-head: #FBCFE8;
  --ok: #F9A8D4;
  --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 theme phones: the same black background and green
     writing as dark theme (Destiny's order, Nov 13, 2026), so the words
     show the same no matter which theme the phone is in. */
  :root {
    --bg: #000000;
    --bg-soft: #0c0c0c;
    --panel: #111111;
    --panel-edge: #8a4a63;
    --text: #FBCFE8;
    --text-soft: #F9A8D4;
    --gold: #F9A8D4;
    --gold-soft: #FBCFE8;
    --calm-box: #0e120e;
    --calm-edge: #8a4a63;
    --calm-head: #FBCFE8;
    --warn-box: #111111;
    --warn-edge: #F9A8D4;
    --warn-head: #FBCFE8;
    --ok: #F9A8D4;
    --on-accent: #000000;
  }

  /* 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; background: #000000; }

body {
  margin: 0;
  background: #000000;
  background: var(--bg);
  color: #FBCFE8;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.012rem;
  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.147rem; color: var(--gold-soft); margin: 0; }
header.site .byline { color: var(--text-soft); margin: 0.15rem 0 0.75rem; font-size: 0.94rem; }

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

/* Left-side menu (Destiny's order, Nov 13, 2026): the topic links live in a
   menu tab at the top-left of the page, not spread across the page. The
   panel opens and closes instantly — no sliding, no fading, no motion. */
body.menu-page { padding-top: 3.8rem; }
body.menu-page .skip-link:focus { top: 4.4rem; }
.menu-btn {
  position: fixed; top: 0.6rem; left: 0.6rem; z-index: 70; margin: 0;
  background: var(--panel); color: var(--gold-soft);
  border: 2px solid var(--gold); border-radius: 0.5rem;
  padding: 0.6rem 1.1rem; font-size: 0.987rem; cursor: pointer;
}
.side-menu {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 69;
  width: 20rem; max-width: 85vw; overflow-y: auto;
  background: #000000; border-right: 2px solid var(--gold);
  padding: 4.2rem 1rem 1.5rem;
}
.side-menu[hidden] { display: none; }
.menu-close {
  margin: 0 0 1rem;
  background: var(--panel); color: var(--gold-soft);
  border: 2px solid var(--gold); border-radius: 0.5rem;
  padding: 0.6rem 1.1rem; font-size: 0.987rem; cursor: pointer;
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { margin: 0 0 0.4rem; max-width: none; }
.menu-list a {
  display: block; padding: 0.7rem 0.9rem; text-decoration: none;
  color: var(--text); background: var(--panel);
  border: 1px solid var(--panel-edge); border-radius: 0.5rem;
}
.menu-list a[aria-current="page"] { border-color: var(--gold); color: var(--gold-soft); }

/* Andrew's side carries only his own small nav, in his own colors
   (the body.andrew-theme variables above). */
nav.andrew-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
nav.andrew-nav 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;
}

/* The home page: Andrew's block stands in its own section, apart from
   Destiny's topic blocks. */
.andrew-side { margin: 2rem 0; padding-top: 0.5rem; border-top: 2px solid var(--gold); }

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

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

.lede { font-size: 1.08rem; 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.08rem; color: var(--gold-soft); margin-bottom: 0.3rem; }
.door span { color: var(--text-soft); font-size: 0.94rem; }

.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.147rem; 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.941rem; }
.small { font-size: 0.941rem; 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.232rem; 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.941rem; }

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: 0.94rem; 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: 0.94rem; }
.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: 0.94rem !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.035rem; 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.08rem; color: var(--gold-soft); margin-bottom: 0.3rem; }
.helper-choice span { display: block; color: var(--text-soft); font-size: 0.94rem; }
.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): 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: 1.95rem; font-weight: bold; color: var(--gold-soft); line-height: 1.15; margin: 0.4rem 0; }
.learn-braille-glyph { font-size: 1.95rem; line-height: 1.15; color: var(--gold-soft); margin: 0.4rem 0; }
.learn-count { font-size: 1.82rem; 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.062rem; 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.105rem;
  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-dot.learn-dot-tapped { outline: 3px solid var(--text); outline-offset: 2px; }
.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.035rem; }

@media print {
  body { background: #ffffff; color: #000000; font-size: 12pt; padding-top: 0; }
  header.site, nav.main, footer.site nav, .no-print, .menu-btn, .side-menu { 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.232rem;
  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.941rem; }
.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.864em; 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.062rem; 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: 1.52rem; 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: #111111; color: #FBCFE8; border: 1px solid #2E7D46; border-radius: 6px; padding: 0.5em; }

/* Fortress-structure rebuild (Nov 15, 2026): tap-to-open category blocks
   (catbox) on the home page, and a written Lessons section on every topic
   page, in the Fortress School layout — Journey's own green on black.
   Calm only: nothing here moves, flashes, or changes on its own. */
.catbox { border: 1px solid var(--panel-edge); border-radius: 10px; background: var(--panel); padding: 0.25rem 1rem 1rem; margin: 1rem 0; }
.catbox summary { cursor: pointer; font-size: 1.035rem; font-weight: bold; color: var(--gold-soft); padding: 0.9rem 0.2rem; min-height: 3rem; }
.catbox .doors { margin: 0.5rem 0 0.25rem; }
.lessons { border: 1px solid var(--panel-edge); border-radius: 10px; background: var(--bg-soft); padding: 1rem 1.1rem; margin: 1.25rem 0; text-align: left; }
.lessons h2 { margin-top: 0.25rem; }
.lessons h3 { margin-top: 1.4rem; }
.lessons h4 { margin-top: 1rem; }
.lesson-note { border: 1px solid var(--panel-edge); border-radius: 8px; padding: 0.7rem 0.9rem; background: var(--calm-box); }

