/* Setup — the first-run stepper (templates/onboarding), the Settings → Setup checklist, and the
   two nudges it drives (Plan nav glow, calendar race card). Design tokens from app.css. */

/* Focus layout: the stepper hides the nav rail so the question is the whole screen. */
.focus .nav,.focus .setup-strip{display:none}
.ob{max-width:1080px;margin:0 auto}
.ob-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}
.ob-brand{font-weight:800;letter-spacing:-.01em;font-size:var(--fs-md)}
.ob-brand span{color:var(--text3);font-weight:600}
.ob-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:40px;align-items:start}

/* Section rail — TurboTax's left column: sections, x/y done, the current section's steps. */
.ob-rail{position:sticky;top:24px}
.ob-sec{padding:10px 0;border-bottom:1px solid var(--border)}
.ob-sec-h{display:flex;justify-content:space-between;font-size:var(--fs-sm);color:var(--text3);font-weight:600}
.ob-sec.on .ob-sec-h{color:var(--text)}
.ob-sec-n{font-family:var(--mono);font-size:var(--fs-2xs)}
.ob-sec ol{list-style:none;margin:8px 0 2px;padding:0}
.ob-s a{display:flex;align-items:center;gap:9px;padding:5px 8px;border-radius:7px;color:var(--text2);
  text-decoration:none;font-size:var(--fs-sm);line-height:var(--lh-snug)}
.ob-s a:hover{background:var(--surface2);color:var(--text)}
.ob-s.here a{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);font-weight:700}
/* status dot: open = ring, done = filled check-green, skipped = dashed */
.ob-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;border:2px solid var(--border2)}
.ob-s.done .ob-dot{background:var(--fresh);border-color:var(--fresh)}
.ob-s.skipped .ob-dot{border-style:dashed;border-color:var(--text3)}
.ob-s.here .ob-dot{border-color:var(--accent)}

/* The question */
.ob-main{max-width:640px}
.ob-progress{height:6px;border-radius:3px;background:var(--surface2);overflow:hidden;margin-bottom:18px}
.ob-progress div{height:100%;background:var(--accent);border-radius:3px;transition:width .3s ease}
.ob-eyebrow{display:flex;align-items:center;gap:10px;font-family:var(--mono);font-size:var(--fs-2xs);
  text-transform:uppercase;letter-spacing:var(--eyebrow);color:var(--text3)}
.ob-title{font-size:clamp(30px,3.4vw,42px);font-weight:800;letter-spacing:-.03em;line-height:1.08;margin:10px 0 10px}
.ob-why{color:var(--text2);font-size:var(--fs-md);line-height:var(--lh-base);margin-bottom:24px}
.ob-body{line-height:var(--lh-base);margin-bottom:18px}
.ob-error{color:var(--overreached);font-weight:600;margin-bottom:16px}
.ob-embed .panel{box-shadow:none}
.ob-field{display:block;margin-bottom:22px}
.ob-label{display:block;font-weight:700;margin-bottom:8px}
.ob-input{display:flex;align-items:center;gap:10px}
/* :not()s match app.css's global input rule's specificity so these win */
.ob-field .ob-input input.field:not([type=checkbox]):not([type=radio]):not([type=range]),
.ob-field .ob-input select.field{font-size:var(--fs-lg);padding:10px 12px;min-width:260px;max-width:100%}
.ob-unit{font-family:var(--mono);color:var(--text3)}
.ob-hint{display:block;margin-top:6px}
.ob-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:28px;padding-top:20px;border-top:1px solid var(--border)}
.ob-sp{flex:1}

/* Review */
.ob-review{max-width:760px;margin:0 auto}
.ob-rev-list{list-style:none;margin:0;padding:0}
.ob-rev-list li{display:flex;align-items:center;gap:12px;padding:9px 0;border-top:1px solid var(--line-soft)}
.ob-rev-list li:first-child{border-top:0}
.ob-rev-t{flex:1}
.ob-rev-st{font-family:var(--mono);font-size:var(--fs-2xs);color:var(--text3);text-transform:uppercase;letter-spacing:var(--eyebrow)}

/* Settings → Setup checklist */
.setup-panel summary{cursor:pointer;list-style-position:inside}
.setup-list{list-style:none;margin:10px 0 14px;padding:0}
.setup-list li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line-soft)}
.setup-t{flex:1;display:flex;flex-direction:column}
.setup-t .hint{margin:2px 0 0}

/* "Continue setup" strip, shown on every page while the first-run walkthrough is unfinished */
.setup-strip{display:block;margin:10px 16px 0;padding:9px 14px;border-radius:9px;text-decoration:none;
  font-size:var(--fs-sm);color:var(--text);background:color-mix(in srgb,var(--accent) 10%,var(--surface));
  border:1px solid color-mix(in srgb,var(--accent) 35%,transparent)}
.setup-strip b{color:var(--accent)}

/* Race nudge: the Plan nav item breathes until a race is on the calendar … */
.nav a.nudge{color:var(--accent);animation:atp-nudge 2.4s ease-in-out infinite}
@keyframes atp-nudge{
  0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 0%,transparent)}
  50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 22%,transparent),0 0 18px color-mix(in srgb,var(--accent) 35%,transparent)}
}
@media (prefers-reduced-motion:reduce){
  .nav a.nudge{animation:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 40%,transparent)}
}
/* … and the calendar home carries a dismissible card (the glow stays). */
.race-nudge{display:flex;align-items:center;gap:16px;padding:16px 18px;margin-bottom:20px;border-radius:14px;
  background:color-mix(in srgb,var(--accent) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 30%,transparent)}
.race-nudge-ico{flex:0 0 40px;height:40px;border-radius:10px;display:grid;place-items:center;
  background:var(--accent);color:var(--accent-ink)}
.race-nudge-ico svg{width:22px;height:22px}
.race-nudge-t{flex:1;display:flex;flex-direction:column;gap:2px}
.race-nudge-t span{color:var(--text2);font-size:var(--fs-sm)}
.race-nudge-x{background:none;border:0;color:var(--text3);font-size:24px;line-height:1;cursor:pointer;padding:0 4px}
.race-nudge-x:hover{color:var(--text)}

@media (max-width:760px){
  .ob-grid{grid-template-columns:1fr;gap:20px}
  .ob-rail{position:static;display:flex;gap:6px;overflow-x:auto}
  .ob-sec{border:0;padding:0;flex:0 0 auto}
  .ob-sec ol{display:none}
  .ob-sec-h{gap:6px;padding:6px 10px;border-radius:999px;background:var(--surface2)}
  .ob-sec.on .ob-sec-h{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
  .ob-field .ob-input input.field:not([type=checkbox]):not([type=radio]):not([type=range]),
  .ob-field .ob-input select.field{min-width:0;width:100%}
  .ob-actions .btn.primary{order:-1;flex:1 0 100%}   /* thumb-reach: Continue first, full width */
  .race-nudge{flex-wrap:wrap}
  .race-nudge-t{flex-basis:calc(100% - 80px)}
}
