/* What happens when (adapted from the reuse library: sections/renovation-timeline-2). A switch at the top asks
   which job it is: "a bathroom, and it's our only one", "a bathroom, we have another" or "a kitchen". Each step
   shows the lines for that job (.if-bath, .if-only, .if-other, .if-kitchen). CSS only: every line stays in the
   page for Google and for anyone with scripts off. The script only lights up the step being read. */
.phases{display:grid;grid-template-columns:4fr 6fr 1.3fr;gap:5px;margin:0 0 12px;padding:0;list-style:none}
.phases li{height:12px;border-radius:2px}
.phases .p1{background:var(--line-2)}.phases .p2{background:var(--crayon)}.phases .p3{background:var(--slate)}
.phase-key{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0;padding:0;list-style:none;font-size:.92rem;color:var(--ink-2)}
.phase-key li{display:inline-flex;align-items:center;gap:8px}
.phase-key i{width:13px;height:13px;border-radius:3px;flex:none}
.k1{background:var(--line-2)}.k2{background:var(--crayon)}.k3{background:var(--slate)}

.job-radio{position:absolute;opacity:0;pointer-events:none}
.job-switch{margin:30px 0 0;padding:18px;border-radius:var(--r);background:var(--card);border:1px solid var(--line)}
.job-switch>span{display:block;font:700 1.1rem/1.3 var(--head);margin-bottom:12px}
.job-pills{display:flex;flex-wrap:wrap;gap:8px}
.job-pills label{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 16px;border-radius:8px;border:1.5px solid var(--line-2);font-weight:700;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s;background:#fbfbf9}
.job-pills label .ic{width:22px;height:22px;color:var(--blue)}
#w-only:checked~.job-switch .l-only,#w-other:checked~.job-switch .l-other,#w-kitchen:checked~.job-switch .l-kitchen{background:var(--slate-d);border-color:var(--slate-d);color:#fff}
#w-only:checked~.job-switch .l-only .ic,#w-other:checked~.job-switch .l-other .ic,#w-kitchen:checked~.job-switch .l-kitchen .ic{color:var(--crayon)}
#w-only:focus-visible~.job-switch .l-only,#w-other:focus-visible~.job-switch .l-other,#w-kitchen:focus-visible~.job-switch .l-kitchen{outline:3px solid var(--blue);outline-offset:2px}
#w-kitchen:checked~.steps :is(.if-bath,.if-only,.if-other),
#w-only:checked~.steps :is(.if-kitchen,.if-other),
#w-other:checked~.steps :is(.if-kitchen,.if-only){display:none}

.steps{list-style:none;margin:34px 0 0;padding:0;position:relative}
.steps::before{content:"";position:absolute;left:23px;top:8px;bottom:8px;width:2px;background:var(--line)}
.steps .rail{position:absolute;left:23px;top:8px;width:2px;height:0;background:var(--crayon-d);transition:height .15s linear}
.step-item{position:relative;padding:0 0 26px 68px}
.step-item:last-child{padding-bottom:0}
.step-dot{position:absolute;left:0;top:0;width:48px;height:48px;border-radius:9px;display:grid;place-items:center;background:var(--card);border:2px solid var(--line);font:800 1rem/1 var(--head);color:var(--ink);transition:background-color .3s,border-color .3s,color .3s}
.step-item.on .step-dot{background:var(--slate-d);border-color:var(--slate-d);color:var(--crayon)}
.step-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px 20px 18px;transition:box-shadow .3s,border-color .3s}
.step-item.on .step-card{box-shadow:var(--shadow);border-color:var(--line-2)}
.step-card h2{margin-bottom:.35em}
.step-card>p{color:var(--ink-2)}
.step-meta{display:grid;gap:10px;margin-top:14px}
@media (min-width:700px){.step-meta{grid-template-columns:1.4fr 1fr}}
.you{margin:0;padding:12px 14px;border-radius:8px;background:var(--stone);font-size:.94rem;line-height:1.5}
.you b{display:block;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);margin-bottom:3px}
.room-state{display:flex;align-items:center;gap:10px;margin:0;padding:12px 14px;border-radius:8px;font-size:.93rem;font-weight:700;line-height:1.3}
.room-state .ic{width:20px;height:20px}
.room-state.use{background:var(--blue-l);color:#1d3561}
.room-state.out{background:var(--crayon-l);color:#5e4500}
.room-state.back{background:var(--slate-d);color:#fff}
.room-state.back .ic{color:var(--crayon)}
.living{grid-column:1/-1;margin:0;padding:11px 14px;border-radius:8px;border:1.5px dashed var(--line-2);font-size:.93rem;line-height:1.45;color:var(--ink-2)}
.living b{color:var(--ink)}
.phase-label{display:inline-block;margin-bottom:8px;font:700 .72rem/1.2 var(--body);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.trade{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:4px;background:var(--stone);font:700 .7rem/1.5 var(--body);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);vertical-align:2px}
