/* wizard.css: styles for wizard.js (step engine) and its no-JS <details> fallback. */

[hidden] { display: none !important; }

.wizard { margin: 1rem 0 1.5rem; }
.wizard-ui { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1.125rem; }
.wizard-question { font-size: 1.1875rem; margin: 0 0 0.35rem; }
.wizard-step h3:focus { outline: none; }
.wizard-choices { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.5rem; }
.wizard-choices li + li { margin-top: 0; }
.wizard-choice { width: 100%; min-height: 3.25rem; padding: 0.7rem 2.4rem 0.7rem 0.95rem; text-align: left; border: 1px solid #aeb9c4; border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font: 600 1rem/1.3 var(--font); cursor: pointer; position: relative; }
.wizard-choice::after { content: "›"; position: absolute; right: 0.95rem; top: 50%; transform: translateY(-52%); font-size: 1.4rem; color: var(--wan); }
.wizard-choice:hover { border-color: var(--wan); background: #f3f7fe; }

.wizard-trail { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0; margin: 0 0 0.9rem; font-size: 0.875rem; color: var(--muted); }
.wizard-trail li + li { margin-top: 0; }
.wizard-trail li { background: var(--paper); border-radius: 999px; padding: 0.2rem 0.65rem; }
.wizard-trail li + li::before { content: "› "; }

.wizard-result { border-left: 4px solid var(--wan); padding-left: 0.9rem; }
.wizard-result.tone-ok { border-left-color: var(--led); }
.wizard-result.tone-warn { border-left-color: var(--lan); }
.wizard-result h3 { margin-top: 0; font-size: 1.1875rem; }
.wizard-result > :last-child { margin-bottom: 0; }
.wizard-controls { display: flex; gap: 0.5rem; margin-top: 1rem; }
.wizard-controls .button { min-height: 2.75rem; font-size: 0.9375rem; }

/* No-JS version: nested <details>, still readable as a guide */
[data-wizard-fallback] { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.125rem; }
[data-wizard-fallback] .wizard-question { margin-top: 0.5rem; }
[data-wizard-fallback] details details { margin-left: 0.6rem; padding-left: 0.6rem; border-left: 2px solid var(--rule); }
