/* Plan by age (45-65): pages and blocks generated by tools/life_stages.py from components/life-stages/stages.json */
.wl-ls, .wl-ls-home, .wl-ls-fits { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #334155; box-sizing: border-box; }
.wl-ls *, .wl-ls-home *, .wl-ls-fits * { box-sizing: border-box; }
body.wl-ls-page { margin: 0; background: #f8fafc; }
.wl-ls-inner { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.wl-ls a { color: #0f172a; }
.wl-ls a:hover { color: #15803d; }
.wl-ls-kicker { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; padding: 0.2rem 0.6rem; border-radius: 999px; }
.wl-ls-small { font-size: 0.85rem; color: #64748b; line-height: 1.5; }
.wl-ls-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1.1rem; border-radius: 0.75rem; background: #16a34a; color: #0f172a !important; font-weight: 800; font-size: 0.9rem; text-decoration: none; border: 0; cursor: pointer; }
.wl-ls-btn:hover { background: #4ade80; }

/* Hero */
.wl-ls-hero { background: #0f172a; color: #e2e8f0; padding: 2.5rem 0 2rem; }
.wl-ls-hero h1 { color: #fff; font-size: clamp(1.75rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0.8rem 0 0.9rem; max-width: 46rem; }
.wl-ls-summary p { color: #cbd5e1; line-height: 1.65; margin: 0 0 0.75rem; max-width: 44rem; font-size: 1.02rem; }

/* Timeline strip */
.wl-ls-timeline { margin-top: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wl-ls-timeline ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(8.5rem, 1fr)); gap: 0.5rem; min-width: 44rem; }
.wl-ls-timeline a { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.8rem; border-radius: 0.85rem; background: #1e293b; border: 1px solid #334155; color: #e2e8f0 !important; text-decoration: none; height: 100%; position: relative; }
.wl-ls-timeline a:hover { border-color: #16a34a; }
.wl-ls-timeline a[aria-current] { background: #16a34a; border-color: #16a34a; color: #0f172a !important; }
.wl-ls-timeline a[aria-current] .wl-ls-tl-age { color: #0f172a; }
.wl-ls-tl-age { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #4ade80; }
.wl-ls-tl-name { font-size: 0.88rem; font-weight: 700; line-height: 1.25; }

/* Picker */
.wl-ls-pick { margin-top: 1.4rem; background: #1e293b; border: 1px solid #334155; border-radius: 1rem; padding: 1rem; max-width: 30rem; }
.wl-ls-pick label { display: block; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.wl-ls-pick-row { display: flex; gap: 0.5rem; }
.wl-ls-pick input { flex: 1; min-width: 0; padding: 0.65rem 0.8rem; border-radius: 0.75rem; border: 1px solid #475569; background: #0f172a; color: #fff; font: inherit; font-size: 1rem; }
.wl-ls-pick-msg { margin: 0.5rem 0 0; color: #bbf7d0; font-size: 0.9rem; min-height: 1.2em; }
.wl-ls-pick-msg a { color: #4ade80; font-weight: 700; }

/* Body */
.wl-ls-body { padding-top: 2rem; padding-bottom: 3rem; }
.wl-ls-body > section, .wl-ls-jump, .wl-ls-event { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem; padding: 1.4rem; margin-bottom: 1.25rem; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.wl-ls-body h2 { color: #0f172a; font-size: 1.3rem; font-weight: 800; margin: 0 0 0.9rem; letter-spacing: -0.01em; }
.wl-ls-section-title { margin-top: 0.5rem !important; }
.wl-ls-bdays ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.wl-ls-bdays li { display: flex; gap: 0.8rem; align-items: flex-start; line-height: 1.5; font-size: 0.93rem; }
.wl-ls-bday-age { flex: none; min-width: 3.4rem; text-align: center; padding: 0.25rem 0.5rem; border-radius: 0.6rem; background: #0f172a; color: #4ade80; font-weight: 800; font-size: 0.85rem; }
.wl-ls-src { font-size: 0.8rem; color: #15803d !important; font-weight: 600; white-space: normal; }
.wl-ls-jump ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.wl-ls-jump a { display: flex; gap: 0.6rem; align-items: center; padding: 0.65rem 0.8rem; border: 1px solid #e2e8f0; border-radius: 0.8rem; text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.wl-ls-jump a:hover { border-color: #4ade80; }
.wl-ls-jump i { color: #15803d; width: 1.1rem; text-align: center; }

/* Event */
.wl-ls-event { scroll-margin-top: 5rem; }
.wl-ls-event-head { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.8rem; }
.wl-ls-event-head i { width: 2.6rem; height: 2.6rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.8rem; background: #0f172a; color: #4ade80; font-size: 1.1rem; }
.wl-ls-event-head h2 { margin: 0 !important; font-size: 1.35rem !important; }
.wl-ls-block { margin-top: 1rem; }
.wl-ls-block h3 { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #166534; margin: 0 0 0.55rem; }
.wl-ls-block h3.wl-ls-mt { margin-top: 1rem; }
.wl-ls-happening p { margin: 0; line-height: 1.65; font-size: 0.98rem; }
.wl-ls-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .wl-ls-grid { grid-template-columns: 1.1fr 1fr; } }
.wl-ls-grid > .wl-ls-block { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1rem; margin-top: 0; }
.wl-ls-grid { margin-top: 1rem; }
.wl-ls-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.wl-ls-checklist label { display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.45; font-size: 0.92rem; cursor: pointer; }
.wl-ls-checklist input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; accent-color: #15803d; flex: none; }
.wl-ls-checklist input:checked + span { color: #64748b; text-decoration: line-through; }
.wl-ls-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; line-height: 1.45; font-size: 0.92rem; }
.wl-ls-list li::marker { color: #15803d; }
.wl-ls-warn li::marker { content: "\26A0  "; color: #15803d; }
.wl-ls-nums { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); }
.wl-ls-num { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.85rem 0.95rem; border-radius: 0.9rem; border: 1px solid #bbf7d0; background: #f0fdf4; }
.wl-ls-num-value { font-size: 1.25rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.wl-ls-num-label { font-weight: 700; font-size: 0.86rem; color: #0f172a; }
.wl-ls-num-detail { font-size: 0.82rem; color: #475569; line-height: 1.4; }
.wl-ls-num-src { font-size: 0.75rem; color: #64748b; margin-top: auto; padding-top: 0.3rem; }
.wl-ls-helps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.wl-ls-helps a { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; padding: 0.85rem 0.95rem; border-radius: 0.9rem; background: #0f172a; color: #fff !important; text-decoration: none; border: 1px solid #0f172a; }
.wl-ls-helps a:hover { border-color: #16a34a; }
.wl-ls-helps strong { font-size: 0.92rem; line-height: 1.3; }
.wl-ls-kind { align-self: flex-start; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #0f172a; background: #4ade80; padding: 0.12rem 0.45rem; border-radius: 999px; }
.wl-ls-help-note { font-size: 0.8rem; color: #cbd5e1; line-height: 1.4; }
.wl-ls-gap { margin: 0.9rem 0 0; font-size: 0.85rem; color: #475569; background: #f1f5f9; border-radius: 0.75rem; padding: 0.7rem 0.85rem; line-height: 1.5; }
.wl-ls-gap i { color: #15803d; }

/* Next / after 65 */
.wl-ls-body > .wl-ls-next, .wl-ls-body > .wl-ls-after { background: #0f172a; color: #cbd5e1; border-color: #0f172a; }
.wl-ls-next h2, .wl-ls-after h2 { color: #fff !important; margin-top: 0.6rem !important; }
.wl-ls-next p, .wl-ls-after p { line-height: 1.6; }
.wl-ls-next .wl-ls-list { margin: 0 0 1.1rem; color: #e2e8f0; }
.wl-ls-after .wl-ls-helps a { background: #1e293b; border-color: #334155; }
.wl-ls-after .wl-ls-small, .wl-ls-after .wl-ls-small a { color: #cbd5e1 !important; }
.wl-ls-disclaimer { font-size: 0.8rem; color: #64748b; line-height: 1.5; margin-top: 1.5rem; }

/* Hub journey */
.wl-ls-journey { list-style: none; margin: 0 0 1.5rem; padding: 0; position: relative; }
.wl-ls-journey::before { content: ""; position: absolute; left: 1.05rem; top: 0.5rem; bottom: 0.5rem; width: 3px; background: linear-gradient(#16a34a, #0f172a); border-radius: 3px; }
.wl-ls-stage { display: flex; gap: 0.9rem; margin-bottom: 1.1rem; position: relative; scroll-margin-top: 5rem; }
.wl-ls-stage-dot { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 999px; background: #0f172a; color: #4ade80; border: 3px solid #16a34a; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; z-index: 1; }
.wl-ls-stage-card { flex: 1; min-width: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem; padding: 1.2rem 1.3rem; }
.wl-ls-stage.is-picked .wl-ls-stage-card { border-color: #16a34a; box-shadow: 0 0 0 3px #bbf7d0; }
.wl-ls-stage-head { display: flex; flex-direction: column; text-decoration: none; }
.wl-ls-stage-head .wl-ls-tl-age { color: #15803d; }
.wl-ls-stage-head strong { font-size: 1.2rem; font-weight: 800; color: #0f172a; }
.wl-ls-stage-card p { line-height: 1.55; font-size: 0.94rem; }
.wl-ls-stage-card .wl-ls-list { margin-bottom: 1rem; }
.wl-ls-stage-card .wl-ls-list a { font-weight: 600; text-decoration: none; }

/* Homepage strip */
.wl-ls-home { background: #f6faf7; padding: 3.5rem 0; border-top: 1px solid #e2e8f0; }
.wl-ls-home h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: #0f172a; margin: 0.75rem 0 0.5rem; letter-spacing: -0.02em; }
.wl-ls-home > .wl-ls-inner > p { max-width: 44rem; line-height: 1.6; color: #334155; }
.wl-ls-home-grid { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); }
.wl-ls-home-grid a { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.05rem 1.1rem; border-radius: 1rem; background: #fff; color: #0f172a; text-decoration: none; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.wl-ls-home-grid a:hover { border-color: #16a34a; background: #f0fdf4; box-shadow: 0 8px 18px rgba(22, 163, 74, 0.10); }
.wl-ls-home-grid a:focus-visible { outline: 2px solid #16a34a; outline-offset: 2px; }
.wl-ls-home-grid strong { font-size: 1rem; font-weight: 800; color: #0f172a; }
.wl-ls-home-grid .wl-ls-tl-age { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; align-self: flex-start; padding: 0.12rem 0.5rem; border-radius: 999px; letter-spacing: 0.04em; }
.wl-ls-home-grid .wl-ls-help-note { color: #475569; }

/* Where this fits (on linked articles and tools) */
.wl-ls-fits { padding: 1.75rem 0; background: #f0fdf4; border-top: 1px solid #bbf7d0; }
.wl-ls-fits h2 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin: 0 0 0.8rem; }
.wl-ls-fits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.wl-ls-fits li a { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 0.9rem; border-radius: 0.85rem; background: #fff; border: 1px solid #bbf7d0; color: #0f172a; text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.wl-ls-fits li a:hover { border-color: #16a34a; }
.wl-ls-fits .wl-ls-tl-age { color: #15803d; }
.wl-ls-fits .wl-ls-small { margin: 0.8rem 0 0; }
.wl-ls-fits .wl-ls-small a { color: #0f172a; font-weight: 700; }
