/* What happens when (from the reuse library: sections/renovation-timeline and renovation-timeline-2), for a
   business that does bathrooms, kitchens and laundries. A switch picks the room; lines marked .b-only,
   .k-only or .l-only show for that room, .wet-only for bathrooms and laundries. CSS only, so it works with
   scripts off and every line stays in the page for Google. The script lights the step being read. */
.phases { display: grid; grid-template-columns: 4fr 5fr 1fr; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.phases li { height: 14px; border-radius: 99px; }
.phases .p1 { background: var(--gum-l, #dce8e1); } .phases .p2 { background: var(--pencil, #f28c3b); } .phases .p3 { background: var(--gum, #2c5a4e); }
.phase-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: .94rem; color: var(--ink-2, #3a4950); }
.phase-key li { display: inline-flex; align-items: center; gap: 8px; }
.phase-key i { width: 13px; height: 13px; border-radius: 4px; flex: none; }
.k1 { background: var(--gum-l, #dce8e1); } .k2 { background: var(--pencil, #f28c3b); } .k3 { background: var(--gum, #2c5a4e); }

.room-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 28px 0 0; }
.room-switch > span { font: 650 1.05rem/1.2 var(--head, sans-serif); }
.room-pills { display: inline-flex; flex-wrap: wrap; padding: 5px; border-radius: 16px; background: var(--card, #fff); border: 1px solid var(--line, #dcdbd2); }
.room-pills label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; font: 650 1rem/1 var(--head, sans-serif); cursor: pointer; transition: background-color .2s, color .2s; }
.room-radio { position: absolute; opacity: 0; pointer-events: none; }
#room-b:checked ~ .room-switch .l-b, #room-k:checked ~ .room-switch .l-k, #room-l:checked ~ .room-switch .l-l { background: var(--ink, #15232a); color: #fff; }
#room-b:focus-visible ~ .room-switch .l-b, #room-k:focus-visible ~ .room-switch .l-k, #room-l:focus-visible ~ .room-switch .l-l { outline: 3px solid var(--pencil-d, #b3511b); outline-offset: 2px; }
#room-b:checked ~ .steps :is(.k-only, .l-only),
#room-k:checked ~ .steps :is(.b-only, .l-only, .wet-only),
#room-l:checked ~ .steps :is(.b-only, .k-only) { display: none; }

.steps { list-style: none; margin: 36px 0 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--line, #dcdbd2); }
.steps .rail { position: absolute; left: 23px; top: 8px; width: 2px; height: 0; background: var(--gum, #2c5a4e); transition: height .15s linear; }
.step-item { position: relative; padding: 0 0 28px 68px; }
.step-item:last-child { padding-bottom: 0; }
.step-dot { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--card, #fff); border: 2px solid var(--line, #dcdbd2); font: 700 1rem/1 var(--head, sans-serif); color: var(--ink, #15232a); transition: background-color .3s, border-color .3s, color .3s; }
.step-item.on .step-dot { background: var(--gum, #2c5a4e); border-color: var(--gum, #2c5a4e); color: #fff; }
.step-card { background: var(--card, #fff); border: 1px solid var(--line, #dcdbd2); border-radius: var(--r, 18px); padding: 20px 20px 18px; transition: box-shadow .3s, border-color .3s; }
.step-item.on .step-card { box-shadow: var(--shadow); border-color: #b9c9c0; }
.step-card h2 { margin-bottom: .35em; }
.step-card > p { color: var(--ink-2, #3a4950); }
.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: 12px; background: var(--paper, #f4f3ee); font-size: .95rem; line-height: 1.5; }
.you b { display: block; font: 700 .7rem/1.4 var(--head, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3, #56646a); margin-bottom: 3px; }
.room-state { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; font-size: .94rem; font-weight: 650; line-height: 1.3; }
.room-state svg { width: 22px; height: 22px; flex: none; }
.room-state.use { background: var(--gum-ll, #eef4f0); color: var(--gum-d, #1d4037); }
.room-state.out { background: var(--pencil-l, #fdebdc); color: #6b2f0c; }
.room-state.back { background: var(--gum, #2c5a4e); color: #fff; }
.aside-line { grid-column: 1 / -1; margin: 0; padding: 11px 14px; border-radius: 12px; border: 1.5px dashed #b6c3bb; font-size: .93rem; line-height: 1.45; color: var(--ink-2, #3a4950); }
.aside-line b { color: var(--ink, #15232a); }
.phase-label { display: inline-block; margin-bottom: 8px; font: 700 .72rem/1.2 var(--head, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--pencil-d, #b3511b); }
