/* BOMBANANA arm.css - SELF-CONTAINED FIELD-MANUAL SKIN (2026-07-03 reskin).
   The hub moved to the PATCH NOTES skin (assets/base.css). Bombanana KEEPS its
   proven workbench/field-manual look for now, pending Victor's live contrast
   judgment. Bombanana pages load base.css (patch-notes) THEN this file; because
   this file re-declares the full workbench token set + every shared component
   after base.css, the cascade resolves bombanana pages to the workbench system
   byte-for-byte as before. Nothing else on the site is affected.

   Below: (A) the original workbench base system, inlined verbatim so bombanana is
   independent of base.css tokens; (B) the two bombanana variations (safety-orange
   accent + hazard-stripe motif) and its game components.

   =========================================================================
   (A) WORKBENCH MANUAL SYSTEM  (formerly assets/base.css, pre-2026-07-03)
   ========================================================================= */

/* PLAYWRENCH base.css - THE WORKBENCH MANUAL shared system.
   Paper + ink spec sheet. Every arm clones this byte-for-byte and overrides
   exactly two things: --accent (one color) and one motif element (its own arm.css).
   No gradients, no shadows, no accent-stripe cards, no glass.
   Brand strings: PLAYWRENCH. Domain: https://playwrench.com */

:root {
  --paper: #f3f0e8;
  --paper-2: #e9e5d8;
  --ink: #191813;
  --ink-dim: #5f5b4f;
  --paper-on-ink: #f3f0e8;
  --dim-on-ink: #b8b3a2;
  /* --accent is the single per-arm action color. Default is the hub steel blue;
     each arm overrides it in its own arm.css. */
  --accent: #2b5d8a;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --tap: 52px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* Reset: neutralize patch-notes-specific property ADDITIONS that base.css makes
   to shared components, so the workbench declarations below fully win on bombanana
   pages. base.css (patch-notes) loads first; these shared selectors gained new
   properties (border shorthand, background, radius, blue link color, ::after hit
   areas) that the workbench rules did not previously need to override. This keeps
   bombanana pixel-equivalent to its pre-reskin field-manual look. */
a { color: var(--ink); }
.bar-links a { border: 0; background: none; border-radius: 0; }
.bar-links a::after { inset: -6px -6px -12px; }
.bar-links a.here { border: 0; }
.tile, .game-tile, .tool-row a { background: none; border: 0; border-radius: 0; }
.tile svg { color: currentColor; }
.answer-plate { background: none; border: 0; border-radius: 0; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 14px; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* ---------- header: slim spec bar ---------- */
.bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 12px 14px 10px;
  max-width: 680px; margin: 0 auto;
}
.wordmark {
  font-family: var(--mono); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.04em; text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--accent); }
.bar-links { display: flex; gap: 14px; font-family: var(--mono); font-size: 0.8rem; }
/* 2026-07-03 walkthrough fix: nav links get a 44px touch target. */
.bar-links a {
  text-decoration: none; border-bottom: 1.5px solid var(--ink);
  display: inline-block; padding: 13px 4px 1px;
  /* the 44px touch target comes from a transparent hit area, not visual bulk */
  position: relative;
}
.bar-links a::after { content: ""; position: absolute; inset: -6px -6px -12px; }
.bar-links a.here { border-bottom-width: 3px; }
/* Hub link that precedes the arm wordmark in an arm header. */
.bar-hub {
  font-family: var(--mono); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.04em; text-decoration: none; white-space: nowrap;
}
.bar-hub:hover { color: var(--accent); }
.bar-brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.bar-sep { color: var(--ink-dim); font-family: var(--mono); }

/* Narrow phones: shrink the arm header so PLAYWRENCH / ARM + nav share one row. */
@media (max-width: 420px) {
  .bar-hub, .bar-brand .wordmark { font-size: 0.8rem; letter-spacing: 0.03em; }
  .bar-brand { gap: 6px; }
  .bar-links { gap: 12px; font-size: 0.8rem; }
}

.page-head { padding: 10px 0 4px; }
.page-head h1 {
  margin: 0; font-size: 1.05rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.page-head .spec-line {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim);
  margin: 3px 0 0; text-transform: uppercase; letter-spacing: 0.06em;
}

/* Honest, above-the-fold statement of what this tool can and cannot do. */
.tool-brief {
  margin: 8px 0 4px; padding: 8px 10px;
  border-left: 2px solid var(--ink);
  font-size: 0.82rem; line-height: 1.4; color: var(--ink);
}
.tool-brief p { margin: 0; }
.tool-brief a { color: var(--ink); }
body.embed .tool-brief { display: none; }

/* 2026-07-03 retrofit (B2, R12): quiet data-vintage line on the module pages,
   the field-manual counterpart of voidling's version-plate. Provenance is quiet
   (R12): small mono, no box competing with the answer plate; the module page had
   no way to tell what data vintage its decision tree runs on. */
.version-plate {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim);
  letter-spacing: 0; text-transform: none; margin: 6px 0 2px;
}

/* ---------- module / tool picker tiles ---------- */
.tile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 14px 0 18px;
}
.tile {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 10px; min-height: 96px; padding: 12px;
  border: 1.5px solid var(--ink); background: var(--paper);
  color: var(--ink); text-decoration: none; border-radius: 2px;
}
.tile svg { width: 30px; height: 30px; display: block; }
.tile-name {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.92rem;
}
.tile:hover, .tile:active { background: var(--ink); color: var(--paper-on-ink); }
.tile:hover .tile-name, .tile:active .tile-name { color: inherit; }
.tile-alt { border-style: dashed; }

/* ---------- game tile (hub root): a large directory block ---------- */
.game-tile {
  display: block; border: 1.5px solid var(--ink); background: var(--paper);
  color: var(--ink); text-decoration: none; border-radius: 2px;
  padding: 16px; margin: 14px 0 12px;
}
.game-tile:hover, .game-tile:active { background: var(--ink); color: var(--paper-on-ink); }
.game-tile .gt-name {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 1.3rem;
}
.game-tile .gt-line { font-family: var(--mono); font-size: 0.82rem; margin: 8px 0 0; }
.tool-row {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 22px;
  font-family: var(--mono); font-size: 0.82rem;
}
.tool-row a { text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; white-space: nowrap; }

/* ---------- module page: answer plate ---------- */
.answer-plate {
  position: sticky; top: 0; z-index: 5;
  background: var(--ink); color: var(--paper-on-ink);
  border-radius: 2px; padding: 12px 14px; margin: 12px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.answer-plate.idle {
  background: var(--paper); color: var(--ink-dim);
  border: 1.5px dashed var(--ink-dim);
}
.answer-main { min-width: 0; }
.answer-big {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.9rem, 10vw, 3.4rem); line-height: 1.02;
  overflow-wrap: anywhere;
}
.answer-plate.idle .answer-big { font-size: 1rem; letter-spacing: 0.12em; }
.answer-sub {
  font-family: var(--mono); font-size: 0.74rem; margin-top: 6px;
  color: var(--dim-on-ink); text-transform: uppercase; letter-spacing: 0.04em;
}
.answer-plate.idle .answer-sub { color: var(--ink-dim); }
.answer-big .bad { color: var(--accent); }
.answer-big .plate-swatch {
  width: 22px; height: 22px; border: 1.5px solid var(--paper-on-ink);
  border-radius: 2px; display: inline-block; vertical-align: baseline;
  margin-right: 10px; flex: none;
}
/* 2026-07-03 extreme-persona fix: the sticky plate swallowed taps on controls
   scrolled beneath it with zero feedback. The plate body passes taps through;
   its own controls stay tappable. Fields keep clear of it on focus scrolls. */
.answer-plate { pointer-events: none; }
.answer-plate button, .answer-plate a, .answer-plate input { pointer-events: auto; }
.field { scroll-margin-top: 160px; }

.btn-reset {
  flex: none; font-family: var(--mono); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #fff; border: none; border-radius: 2px;
  min-height: 44px; padding: 10px 14px; cursor: pointer;
}
.btn-reset:disabled { visibility: hidden; }

/* ---------- module page: live form ---------- */
.field { margin: 16px 0; }
.field-label {
  /* 2026-07-03 extreme-persona fix: 11.5px all-caps letter-spaced labels
     slowed the dyslexic-reader persona; sentence case at 14px, caps reserved
     for headings, wordmarks, and plate values. */
  font-family: var(--mono); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--ink);
  display: block; margin-bottom: 8px;
}
.field-label .opt { color: var(--ink-dim); font-weight: 400; }
.field-help { font-size: 0.82rem; color: var(--ink-dim); margin: -4px 0 8px; }
.field-error { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); margin: 6px 0 0; min-height: 1em; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-btn {
  min-height: 48px; min-width: 48px; padding: 8px 14px;
  border: 1.5px solid var(--ink); border-radius: 2px;
  background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 1rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.choice-btn.on { background: var(--ink); color: var(--paper-on-ink); }

.seq-out {
  font-family: var(--mono); font-size: 0.9rem; margin-top: 8px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 24px;
  color: var(--ink-dim);
}
.seq-out .swatch { vertical-align: middle; }
.btn-undo {
  font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.08em; background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 2px;
  min-height: 44px; padding: 4px 12px; cursor: pointer;
}

.text-input {
  width: 100%; min-height: var(--tap); border: 1.5px solid var(--ink);
  border-radius: 2px; background: #fbfaf6; color: var(--ink);
  font-family: var(--mono); font-size: 1.35rem; padding: 10px 14px;
}
.text-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- module page: callout + collapsed procedure ---------- */
.callout-box {
  border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper-2);
  padding: 12px; margin: 18px 0 8px;
}
.callout-label {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-dim);
  margin: 0 0 6px;
}
.callout-text { font-family: var(--mono); font-size: 0.95rem; font-weight: 600; margin: 0; }
.btn-copy {
  margin-top: 10px; font-family: var(--mono); font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--ink); color: var(--paper-on-ink); border: none; border-radius: 2px;
  min-height: 40px; padding: 8px 14px; cursor: pointer;
}

details.spec { border-top: 1.5px solid var(--ink); }
details.spec:last-of-type { border-bottom: 1.5px solid var(--ink); }
details.spec summary {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 12px 2px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
details.spec summary::-webkit-details-marker { display: none; }
details.spec summary::after { content: "+"; font-size: 1rem; }
details.spec[open] summary::after { content: "\2212"; }
details.spec.warn summary { color: var(--accent); }
details.spec .spec-body { padding: 0 2px 14px; font-size: 0.9rem; }
details.spec .spec-body ol { margin: 0; padding-left: 20px; }
details.spec .spec-body li { margin: 6px 0; }
details.spec .spec-body p { margin: 6px 0; }

.blocks { margin: 6px 0 20px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1.5px solid var(--ink); margin-top: 28px;
  padding: 14px 0 40px; font-family: var(--mono); font-size: 0.74rem;
  color: var(--ink-dim); line-height: 1.7;
}
.site-footer a { color: inherit; }
.sibling-links { margin-bottom: 8px; }
.sibling-links a { margin-right: 12px; white-space: nowrap; }

/* ---------- manual page ---------- */
.manual-search {
  width: 100%; min-height: var(--tap); border: 1.5px solid var(--ink);
  border-radius: 2px; background: #fbfaf6; color: var(--ink);
  font-family: var(--mono); font-size: 1rem; padding: 10px 14px; margin: 14px 0 6px;
}
.manual-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-count { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim); margin: 0 0 10px; }

details.manual-module { border-top: 1.5px solid var(--ink); }
details.manual-module:last-of-type { border-bottom: 1.5px solid var(--ink); }
details.manual-module summary {
  cursor: pointer; list-style: none; padding: 13px 2px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
details.manual-module summary::-webkit-details-marker { display: none; }
details.manual-module summary .mm-name {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem;
}
details.manual-module summary .mm-tag {
  font-family: var(--mono); font-size: 0.68rem; color: var(--ink-dim);
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
details.manual-module summary::after { content: none; }
details.manual-module .mm-body { padding: 0 2px 16px; font-size: 1rem; }
.mm-body h3 {
  font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin: 16px 0 6px;
}
.mm-body table { border-collapse: collapse; width: 100%; font-size: 0.85rem; font-family: var(--mono); }
.mm-body th, .mm-body td { border: 1px solid var(--ink); padding: 6px 8px; text-align: left; }
.mm-body th { background: var(--paper-2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.mm-body .callout-text { background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 2px; padding: 10px; }
.mm-body ol { padding-left: 20px; }
.mm-body li { margin: 5px 0; }
.mm-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim); }
.mm-tool-link { font-family: var(--mono); font-size: 0.8rem; }

/* ---------- changelog ---------- */
.log-entry { border-top: 1.5px solid var(--ink); padding: 14px 0 6px; }
.log-entry h2 { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.log-date { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim); margin: 4px 0 8px; }
.log-entry ul { padding-left: 20px; font-size: 0.9rem; }
.log-entry li { margin: 5px 0; }
pre.embed-snippet {
  background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 2px;
  padding: 12px; overflow-x: auto; font-size: 0.8rem; font-family: var(--mono);
}

/* ---------- embed mode ---------- */
body.embed .bar, body.embed .motif-rule, body.embed .page-head,
body.embed .site-footer, body.embed .seo-note { display: none; }
body.embed .wrap { padding: 8px; }

/* ---------- seo copy under the tool ---------- */
/* 2026-07-03 retrofit (B5 + B11, R9): the seo-note explainer rendered at 16px,
   ABOVE the tool's 14px numbered question labels, inverting the dominance
   gradient below the tool (and near-tying the idle plate at the top). Demote it
   to the demoted-reference tier (13px) so the question labels dominate the tool
   region and the reference prose exits the first screen. Arm-scoped: does not
   touch the voidling/schedule-1 seo-note. */
.seo-note { font-size: 0.8125rem; color: var(--ink-dim); margin: 14px 0 0; line-height: 1.5; }
.seo-note p { margin: 6px 0; }
.seo-note a { color: var(--ink); }

/* ---------- print: the paper manual ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .bar, .motif-rule, .manual-search, .search-count, .site-footer, .no-print { display: none !important; }
  details.manual-module, details.spec { border-color: #000; }
  details.manual-module .mm-body, details.spec .spec-body { display: block; }
  a { color: #000; text-decoration: none; }
}

/* =========================================================================
   (B) BOMBANANA VARIATIONS + GAME COMPONENTS  (original bombanana/arm.css)
   ========================================================================= */
/* BOMBANANA arm.css - the two deliberate variations over PLAYWRENCH base.css:
   ACCENT = safety orange #c93a0a
   MOTIF  = diagonal hazard-stripe rule under the header (once per page).
   Plus the bombanana-specific game components: color chips (wires/LED/lights)
   and the braille dot cell. Everything else is inherited from base.css. */

:root {
  --accent: #c93a0a;
}

/* ---------- motif: single diagonal hazard-stripe rule ---------- */
.hazard-rule {
  height: 7px;
  background: repeating-linear-gradient(45deg, var(--ink) 0 9px, transparent 9px 18px);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

/* ---------- game color chips (literal bomb parts, not decoration) ---------- */
.swatch {
  width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 2px;
  display: inline-block; flex: none;
}
.choice-btn.on .swatch { border-color: var(--paper-on-ink); }
.sw-red { background: #c22e2e; } .sw-yellow { background: #e0b400; }
.sw-green { background: #2e8f43; } .sw-blue { background: #2b62b8; }
.sw-white { background: #fbfaf6; } .sw-black { background: #191813; }

/* ---------- braille dot cell (module-specific input) ---------- */
.braille-cell {
  display: grid; grid-template-columns: repeat(2, 68px); gap: 12px;
  justify-content: start;
}
.dot {
  width: 68px; height: 68px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper);
  color: var(--ink-dim); font-family: var(--mono); font-size: 1rem; cursor: pointer;
}
.dot.on { background: var(--ink); color: var(--paper-on-ink); font-weight: 700; }
