/* ==========================================================================
   Be Small Claims Wise: Design.md look (v132, 7 November 2026)
   Loaded last on every Be Small Claims Wise page (the app, its contact page and
   the guides under /small-claims-wise/), after /bw-design.css, which holds the
   shared Design.md tokens and family components. This file handles the Small
   Claims components. APPEARANCE ONLY. It replaces the colours of the v118
   design pilot (small-claims-wise-design*.css), keeping its layout decisions:
   the claim is the one primary action on the home screen.
   ========================================================================== */

:root{
  --ink:var(--d-text); --ink-soft:var(--d-text-2); --paper:var(--d-canvas); --raised:var(--d-panel); --paper-raised:var(--d-panel);
  --surface:var(--d-panel); --white:var(--d-panel);
  --brass:var(--d-accent); --brass-dark:var(--d-accent); --brass-bg:var(--d-accent-tint);
  --slate:var(--d-text-2); --rule:var(--d-line); --rule-strong:var(--d-line-input);
  --coral:var(--d-red); --coral-bg:var(--d-red-tint); --sage:var(--d-green); --sage-bg:var(--d-green-tint);
  --focus:var(--d-accent); --serif:var(--d-display); --sans:var(--d-body); --doc:var(--d-display);
  --radius:6px; --bw-control-edge:var(--d-line-input);
}

/* three routes: one framed table of choices split by hairlines, no lift */
html body .routes{ background:var(--d-panel) !important; border:1px solid var(--d-line) !important; border-radius:8px !important; box-shadow:none !important; overflow:hidden; }
html body .route{ border-color:var(--d-line) !important; }
html body .route p{ color:var(--d-text-2) !important; }
html body .route:not(:first-child) .btn{ background:transparent !important; color:var(--d-text) !important; border-color:var(--d-line-input) !important; }
html body .route:not(:first-child) .btn:hover{ background:var(--d-hover) !important; }

/* quick tools: a joined grid split by hairlines (no floating cards) */
html body .tools{ gap:1px !important; background:var(--d-line); border:1px solid var(--d-line); border-radius:8px; overflow:hidden; }
html body .tools > button.tool{ background:var(--d-panel) !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; padding:16px; color:var(--d-text); }
html body .tools > button.tool:hover{ background:var(--d-hover) !important; }
html body .tools > button.tool:active{ box-shadow:inset 0 -2px 0 var(--d-accent) !important; }
html body .tool strong{ color:var(--d-text) !important; font-family:var(--d-display); font-weight:600; }
html body .tool span{ color:var(--d-text-2) !important; }

/* the claim steps */
html body .steps-strip div{ background:var(--d-panel) !important; border:1px solid var(--d-line) !important; border-radius:8px !important; color:var(--d-text-2); }
html body .steps-strip b{ color:var(--d-text); font-family:var(--d-display); font-weight:600; }
html body .steps-strip div:first-child::before{ background:var(--d-accent) !important; }
html body .common-q{ border-color:var(--d-line) !important; }
html body .cq{ border-color:var(--d-line) !important; }
html body .cq summary{ font-family:var(--d-display); font-weight:600; color:var(--d-text); }
html body .cq summary:hover{ color:var(--d-accent); }

/* claim builder: step list */
html body .wsteps{ background:var(--d-panel) !important; border:1px solid var(--d-line) !important; border-radius:8px !important; }
html body .wsteps button{ color:var(--d-text-2) !important; background:transparent !important; font-family:var(--d-body); }
html body .wsteps button:hover{ background:var(--d-hover) !important; color:var(--d-text) !important; }
html body .wsteps button.on{ color:var(--d-text) !important; background:var(--d-hover) !important; box-shadow:inset 2px 0 0 var(--d-accent) !important; }
html body .wsteps .n{ border:1px solid var(--d-line-input) !important; color:var(--d-text-2); font-family:var(--d-mono) !important; background:transparent; }
html body .wsteps button.on .n{ border-color:var(--d-accent) !important; color:var(--d-accent); }
html body .wsteps button.done .n{ background:var(--d-green-tint) !important; color:var(--d-green) !important; border-color:var(--d-green-edge) !important; }
@media(max-width:900px){ html body .wsteps button.on{ box-shadow:inset 0 -2px 0 var(--d-accent) !important; } }

/* who can help */
html body .helplist > div{ background:var(--d-panel) !important; border:1px solid var(--d-line) !important; border-radius:8px !important; color:var(--d-text-2); }
html body .helplist strong{ color:var(--d-text) !important; font-family:var(--d-display); }
html body .helplist a{ color:var(--d-text) !important; }

/* guide pages */
html body .bw-bottom{ color:var(--d-text-2) !important; }
html body header.site ~ main .qa-link{ color:var(--d-accent) !important; }

/* the five stages: one framed strip split by hairlines */
html body .steps-strip{ gap:1px !important; background:var(--d-line); border:1px solid var(--d-line); border-radius:8px; overflow:hidden; }
html body .steps-strip > div{ border:0 !important; border-radius:0 !important; }

/* v144 readability fix: the claim builder's answer choices were white boxes with pale text */
html body .opt span{ background:transparent !important; color:var(--d-text) !important; border:1px solid var(--d-line-input) !important; border-radius:6px !important; }
html body .opt span:hover{ background:var(--d-hover) !important; }
html body .opt input:checked + span{ background:var(--d-accent-tint) !important; border-color:var(--d-accent) !important; color:var(--d-text) !important; }
html body .opt input:focus-visible + span{ outline:2px solid var(--d-accent) !important; outline-offset:2px; }

/* v144: no empty box on the ClaimsBot screen before the first question; it appears with the first message */
html body #chatLog:empty{ min-height:0 !important; height:0 !important; padding:0 !important; border:0 !important; margin:0 !important; }
