/* Spark Path planner (v2.6) */
.sp-head img { width: min(100%, 420px); height: auto; }
.sp-head .crumbs { margin-bottom: 10px; }
.sp-form { padding: clamp(18px, 3vw, 36px); display: grid; gap: 8px; }
.sp-step { padding: 18px 0 22px; border-bottom: 2px dashed var(--line); }
.sp-step:last-of-type { border-bottom: 0; }
.sp-step h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); margin-bottom: 14px; }
.sp-step h2 span { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--star); box-shadow: inset 0 0 0 2px var(--ink); font-size: 1.05rem; }
.sp-step h2 small, .sp-label small, .sp-field small { font-family: var(--sc-font-text); font-weight: 700; font-size: 0.85rem; color: var(--ink-muted); }
.sp-label { margin: 16px 0 8px; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.sp-row { display: grid; gap: 14px; }
.sp-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; align-items: end; }
.sp-field { display: grid; gap: 8px; font-weight: 800; font-size: 0.92rem; color: var(--ink); }
.sp-field input { min-height: 48px; padding: 0 14px; border-radius: var(--r-md); border: 2px solid var(--line-strong); background: var(--paper-raised); font: inherit; font-weight: 700; color: var(--ink); max-width: 100%; }
.sp-field input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.picks--round .pick { width: 48px; height: 48px; padding: 0; border-radius: 50%; }
.picks--days .pick { min-width: 58px; }
.picks--sm .pick { min-height: 44px; padding: 6px 14px; font-size: 0.92rem; }
.sp-domains { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sp-dom { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: var(--r-lg); border: 2px solid transparent; background: var(--tint); color: var(--ink); font: inherit; font-weight: 800; font-size: 0.9rem; line-height: 1.2; text-align: center; cursor: pointer; transition: transform 160ms var(--sc-ease-out), border-color 160ms; }
.sp-dom img { width: 64px; height: 64px; object-fit: contain; }
.sp-dom[aria-selected="true"] { border-color: var(--ink); box-shadow: var(--sticker); }
@media (hover: hover) and (pointer: fine) { .sp-dom:hover { transform: translateY(-2px); } }
.sp-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.sp-goal { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--paper-raised); color: var(--ink); font: inherit; cursor: pointer; }
.sp-goal strong { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.12rem; }
.sp-goal span { font-weight: 800; font-size: 0.9rem; }
.sp-goal small { font-size: 0.85rem; color: var(--ink-muted); font-weight: 600; line-height: 1.4; }
.sp-goal[aria-checked="true"] { border-color: var(--ink); background: var(--tint); box-shadow: var(--sticker); }
.sp-go { display: grid; justify-items: start; gap: 8px; padding-top: 18px; }
.sp-dom:focus-visible, .sp-goal:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* plan */
.sp-plan { margin-top: clamp(28px, 4vw, 48px); scroll-margin-top: calc(var(--hdr-h) + 12px); }
.sp-card { border-radius: var(--r-xl); background: var(--paper-raised); box-shadow: var(--sc-e2), inset 0 0 0 1px var(--line); overflow: hidden; padding-bottom: 22px; }
.sp-card__head { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 22px clamp(18px, 3vw, 32px); background: var(--tint); }
.sp-card__head img { width: 96px; height: 96px; object-fit: contain; }
.sp-card__head h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin: 4px 0 6px; }
.sp-card__head p { margin: 0; font-weight: 700; color: var(--ink); }
.sp-why { margin: 18px clamp(18px, 3vw, 32px) 0; font-size: 1.05rem; line-height: 1.55; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px clamp(18px, 3vw, 32px) 0; }
.sp-hint { margin: 12px clamp(18px, 3vw, 32px) 0; font-size: 0.92rem; color: var(--ink-muted); font-weight: 600; line-height: 1.5; }
.sp-hint.is-on { color: var(--meadow); font-weight: 800; }
.sp-progress { margin: 16px clamp(18px, 3vw, 32px) 0; }
.sp-bar { height: 14px; border-radius: var(--r-pill); background: var(--paper-sunk); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--star), var(--honey)); border-radius: inherit; transition: width 400ms var(--sc-ease-out); }
.sp-progress p { margin: 8px 0 0; font-weight: 800; }
.sp-kit { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin: 16px clamp(18px, 3vw, 32px) 0; padding: 12px; border-radius: var(--r-md); background: var(--paper-sunk); color: var(--ink); text-decoration: none; }
.sp-kit img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.sp-week { margin-top: 22px; padding: 20px clamp(16px, 3vw, 28px); border-radius: var(--r-lg); background: var(--paper-raised); box-shadow: var(--sc-e1), inset 0 0 0 1px var(--line); }
.sp-week > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.sp-week h3 { font-size: 1.35rem; }
.sp-week h3 span { margin-left: 8px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--star); font-family: var(--sc-font-text); font-weight: 800; font-size: 0.8rem; vertical-align: middle; }
.sp-week__n { font-weight: 800; color: var(--ink-muted); font-size: 0.9rem; }
.sp-sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-sess { display: grid; grid-template-columns: 48px 150px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.sp-sess.is-done { background: var(--meadow-soft); }
.sp-tick { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line-strong); background: var(--paper-raised); display: grid; place-items: center; cursor: pointer; }
.sp-tick svg { width: 24px; height: 24px; fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sp-tick[aria-pressed="true"] { background: var(--meadow); border-color: var(--meadow); }
.sp-tick[aria-pressed="true"] svg { stroke: #fff; }
.sp-tick:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sp-when strong { display: block; font-family: var(--sc-font-display); font-weight: 600; font-size: 1.05rem; }
.sp-when span { font-weight: 700; font-size: 0.88rem; color: var(--ink-muted); }
.sp-what > a { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sp-tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: var(--r-pill); font-weight: 800; font-size: 0.76rem; vertical-align: middle; }
.sp-tag--fest { background: var(--tangerine-soft); color: var(--tangerine); }
.sp-tag--bal { background: #E2D8F3; color: var(--ink); }
.sp-tag--rep { background: var(--paper-sunk); color: var(--ink); }
.sp-what details { margin-top: 6px; }
.sp-what summary { cursor: pointer; font-weight: 800; font-size: 0.88rem; color: var(--ink-muted); }
.sp-what details p, .sp-what details li { font-size: 0.92rem; line-height: 1.5; color: var(--ink); }
.sp-what details ol { margin: 6px 0; padding-left: 1.2em; }
.sp-safe { color: var(--tangerine) !important; }
.sp-check { margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: #E2D8F3; }
.sp-check p { margin: 0; color: var(--ink); }
.sp-check__btns { display: flex; gap: 8px; margin-top: 10px; }
.sp-check__tip { margin-top: 8px !important; font-weight: 700; font-size: 0.9rem; }
.sp-cert__card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; margin-top: 22px; padding: 20px; border-radius: var(--r-lg); background: radial-gradient(80% 120% at 0% 0%, #3A2D52, var(--night)); color: var(--on-plum); }
.sp-cert__card img { width: 120px; height: auto; }
.sp-cert__card h3 { color: var(--star); font-size: 1.6rem; }
.sp-cert__card p { color: var(--on-plum); margin: 6px 0 12px; }
.sp-foot { margin: 18px 4px 0; font-weight: 700; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

/* how it works */
.sp-how { margin: clamp(48px, 7vw, 88px) 0 96px; }
.sp-how h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); margin-bottom: 18px; }
.sp-how__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sp-how__grid li { padding: 18px; border-radius: var(--r-lg); background: var(--paper-raised); box-shadow: var(--sc-e1), inset 0 0 0 1px var(--line); }
.sp-how__grid img { width: auto; height: 96px; display: block; margin-bottom: 10px; }
.sp-how__grid h3 { font-size: 1.2rem; margin-bottom: 6px; }
.sp-how__grid p { margin: 0; color: var(--ink); line-height: 1.5; }
.sp-note { margin: 20px 0 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--tangerine-soft); color: var(--ink); font-weight: 600; }
.sp-more { margin-top: 14px; font-weight: 700; }

@media (max-width: 960px) {
  .sp-domains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-goals { grid-template-columns: 1fr 1fr; }
  .sp-how__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sp-row--3 { grid-template-columns: 1fr; }
  .sp-goals { grid-template-columns: 1fr; }
  .sp-dom img { width: 52px; height: 52px; }
  .sp-dom { font-size: 0.8rem; padding: 10px 4px; }
  .picks--round .pick { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .picks--days .pick { min-width: 0; padding: 6px 10px; }
  .sp-card__head { grid-template-columns: 64px 1fr; }
  .sp-card__head img { width: 64px; height: 64px; }
  .sp-actions .btn { flex: 1 1 calc(50% - 10px); }
  .sp-sess { grid-template-columns: 44px 1fr; }
  .sp-what { grid-column: 1 / -1; }
  .sp-how__grid { grid-template-columns: 1fr; }
  .sp-cert__card { grid-template-columns: 1fr; }
}
@media print { .hdr, .foot, .wa, .sp-form, .sp-how, .sp-actions, .sp-hint { display: none !important; } .tool-main { padding-top: 0; } }

/* ready-made plans */
.plgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 12px 0 8px; }
.plgrid--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plgroup { margin: 34px 0 4px; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.plcard { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--paper-raised); box-shadow: var(--sc-e1), inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: transform 160ms var(--sc-ease-out); }
.plcard img { grid-row: 1 / span 3; width: 72px; height: 72px; object-fit: contain; padding: 6px; border-radius: 18px; background: var(--tint); }
.plcard__k { font-weight: 800; font-size: 0.78rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.plcard strong { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.plcard__m { font-weight: 700; font-size: 0.85rem; color: var(--ink-muted); }
@media (hover: hover) and (pointer: fine) { .plcard:hover { transform: translateY(-3px); box-shadow: var(--sc-e2), inset 0 0 0 1px var(--line); } }
.sp-card--static { padding-bottom: 18px; margin-bottom: 8px; }
.sp-sess--static { grid-template-columns: 140px 1fr; }
.sp-need { margin: 4px 0 0; font-size: 0.9rem; color: var(--ink); line-height: 1.45; }
@media (max-width: 960px) { .plgrid, .plgrid--sm { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .plgrid, .plgrid--sm { grid-template-columns: 1fr; } .sp-sess--static { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .picks--round { gap: 6px; } .picks--round .pick { width: 36px; height: 36px; min-width: 36px; min-height: 36px; font-size: 0.95rem; } }
