/*
  Pathways (/pathways/, decision 044), from design/screens/wonder-and-pathways/css/:
  pathways.css for the dashboard and pathways-explainer.css for the signed-out page.
  Classes only: no style="" anywhere (CSP). Colors come from tokens; dark mode follows
  the semantic tokens, and the stop tints switch to Spy Pond in dark mode.
*/

.pw { padding-block: var(--wc-space-12) var(--wc-space-16); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wc-space-6); }

/* ---------- Intro ---------- */
.pw-intro { display: grid; gap: var(--wc-space-3); }
.pw-intro .lede { max-width: 1308px; font-size: 1.1875rem; }

/* ---------- Thread colors: each thread is a topic, in its chip colors (tokens.css,
   dark mode included) ---------- */
.thread--science { --th-bg: var(--wc-topic-science-bg); --th-fg: var(--wc-topic-science-fg); }
.thread--technology { --th-bg: var(--wc-topic-technology-bg); --th-fg: var(--wc-topic-technology-fg); }
.thread--engineering { --th-bg: var(--wc-topic-engineering-bg); --th-fg: var(--wc-topic-engineering-fg); }
.thread--arts { --th-bg: var(--wc-topic-arts-bg); --th-fg: var(--wc-topic-arts-fg); }
.thread--math { --th-bg: var(--wc-topic-math-bg); --th-fg: var(--wc-topic-math-fg); }
.thread--nature { --th-bg: var(--wc-topic-nature-bg); --th-fg: var(--wc-topic-nature-fg); }
.thread--history { --th-bg: var(--wc-topic-history-bg); --th-fg: var(--wc-topic-history-fg); }
.thread--reading { --th-bg: var(--wc-topic-reading-bg); --th-fg: var(--wc-topic-reading-fg); }
.thread--games { --th-bg: var(--wc-topic-games-bg); --th-fg: var(--wc-topic-games-fg); }
.thread--sports { --th-bg: var(--wc-topic-sports-bg); --th-fg: var(--wc-topic-sports-fg); }

/* ---------- Your pathways ---------- */
.pw-saved { display: grid; gap: var(--wc-space-3); }
.pw-saved__row { display: flex; flex-wrap: wrap; gap: var(--wc-space-3); }
.saved-card {
  min-width: 190px;
  min-height: 76px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: var(--wc-space-3);
  background: var(--wc-surface);
  color: var(--wc-text);
  border: var(--wc-border-width) solid var(--wc-border);
  border-radius: 16px;
  text-decoration: none;
}
.saved-card:hover { color: var(--wc-text); }
.saved-card[aria-current="true"] { border-width: 3px; box-shadow: 4px 4px 0 var(--wc-border); }
/* The cards' own box stays out of the row's layout (it's there so a switch can replace them). */
.pw-saved__cards { display: contents; }
/* Switching pathways: the tapped card looks chosen while its route loads (htmx marks it). */
.saved-card.htmx-request { border-width: 3px; box-shadow: 4px 4px 0 var(--wc-border); }
.pw-saved__cards:has(.htmx-request) .saved-card[aria-current="true"]:not(.htmx-request) { border-width: var(--wc-border-width); box-shadow: none; }
/* The topic sticker carries the colour (decision 056) */
.saved-card__sticker { width: 52px; height: 52px; }
.saved-card__text { display: grid; gap: 3px; }
.saved-card__name { font-family: var(--wc-font-display); font-weight: 800; font-size: 1.125rem; line-height: 1.1; }
.saved-card__ages { font-family: var(--wc-font-label); font-size: 0.75rem; font-weight: 700; color: var(--wc-text-muted); }
.saved-card .chip--needed { justify-self: start; background: var(--wc-notice); color: var(--wc-on-status); border-color: var(--wc-on-status); font-size: 0.6875rem; padding: 0 7px; letter-spacing: 0; text-transform: none; border-width: 1.5px; }

/* Select (add a pathway) */
/* Closed, the details is the inline Add button; open, it takes the whole row with the
   panel under it. (display: contents can't do this: browsers box a details' content.) */
.pw-add { display: block; }
.pw-add[open] { flex-basis: 100%; display: grid; gap: var(--wc-space-3); }
.pw-add[open] > summary { justify-self: start; }
.pw-add > summary {
  min-height: 76px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: var(--wc-space-2);
  border: var(--wc-border-width) dashed var(--wc-border);
  border-radius: 16px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.pw-add > summary::-webkit-details-marker { display: none; }
.pw-add__panel {
  display: grid;
  gap: var(--wc-space-4);
  padding: 18px 20px;
  background: var(--wc-surface);
  border: var(--wc-border-width) solid var(--wc-border);
  border-radius: 18px;
}
.pw-add__threads { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--wc-space-2); }
.thread-tile { position: relative; display: grid; min-width: 0; }  /* fills its grid cell, no wider */
.thread-tile input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.thread-tile > span {
  min-height: 76px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  text-align: center;
  background: var(--wc-surface);  /* white tiles: the sticker carries the topic colour (decision 056) */
  color: var(--wc-text);
  border: var(--wc-border-width) solid var(--wc-border);
  border-radius: 12px;
}
.thread-tile__sticker { width: 44px; height: 44px; }
.thread-tile b { font-family: var(--wc-font-display); font-weight: 800; font-size: 1.0625rem; }
.thread-tile small { font-family: var(--wc-font-body); font-weight: 700; font-size: 0.8125rem; line-height: 1.25; }
.thread-tile input:checked + span { box-shadow: 0 0 0 4px var(--wc-bunsen); }
.thread-tile input:checked + span .tsticker { animation: pw-pop 320ms ease-out; } /* Kid Mode's km-pop curve */
@keyframes pw-pop { 0% { transform: scale(1.5); } 50% { transform: scale(.9); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .thread-tile input:checked + span .tsticker { animation: none; }
}
.thread-tile input:focus-visible + span { outline: var(--wc-focus-ring); outline-offset: 6px; }
.pw-add__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wc-space-2); }
.pw-add__foot .btn { margin-left: auto; }
.pw-add fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--wc-space-2); }
.pw-add legend { float: left; margin-right: var(--wc-space-2); }
/* The topic picker: the ten topics two across, five by two on wide screens, like the home
   page's badges (decision 053), its label on its own line (these beat the inline fieldset
   rules above). An odd last tile spans the row, so any count still reads as one set. */
.pw-add .pw-add__threads { display: grid; align-items: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pw-add .pw-add__threads legend { float: none; display: block; width: 100%; margin: 0 0 var(--wc-space-3); padding: 0; }
.pw-add .pw-add__threads > .thread-tile:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
@media (min-width: 52rem) {
  .pw-add .pw-add__threads { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pw-add .pw-add__threads > .thread-tile:last-of-type:nth-of-type(odd) { grid-column: auto; }
}

/* ---------- The route ---------- */
.route {
  background: var(--wc-surface);
  border: var(--wc-border-width) solid var(--wc-border);
  border-radius: var(--wc-radius-panel);
  padding: 22px clamp(14px, 2.5vw, 28px) 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wc-space-3);
}
.route__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wc-space-3) var(--wc-space-6); }
.route__head h2 { font-size: 1.875rem; letter-spacing: -0.02em; }
.route__window { border-radius: 999px; }
.route__window .pick--segment > span { min-height: 40px; padding: 0 14px; font-weight: 700; font-size: 0.8125rem; white-space: nowrap; }
@media (max-width: 30rem) {
  .route__window .pick--segment > span { white-space: normal; text-align: center; line-height: 1.2; padding: 4px 8px; }
}


/* Kind discs and chips */
.kind-disc { width: 22px; height: 22px; flex: 0 0 22px; display: inline-grid; place-items: center; border: 1.5px solid var(--wc-spy-pond); border-radius: 999px; background: var(--kind-bg); color: var(--wc-spy-pond); }
.kind-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border: 1.5px solid var(--wc-spy-pond); border-radius: 999px; background: var(--kind-bg); color: var(--wc-spy-pond); font-family: var(--wc-font-label); font-weight: 700; font-size: 0.6875rem; }
.kind--wonder { --kind-bg: var(--wc-lantern-tint); }
.kind--listed { --kind-bg: var(--wc-bubbler-tint); }
.kind--place { --kind-bg: var(--wc-bunsen-tint); }
.kind--activity { --kind-bg: var(--wc-white); }

/* Stops */
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; }
.stop { position: relative; display: flex; flex-direction: column; gap: var(--wc-space-3); min-width: 0; }
.stop--1 { --stop: var(--wc-bunsen); --stop-fg: var(--wc-spy-pond); --stop-tint: var(--wc-bunsen-tint); }
.stop--2 { --stop: var(--wc-lantern); --stop-fg: var(--wc-spy-pond); --stop-tint: var(--wc-lantern-tint); }
.stop--3 { --stop: var(--wc-bubbler); --stop-fg: var(--wc-spy-pond); --stop-tint: var(--wc-bubbler-tint); }
.stop--4 { --stop: var(--wc-spy-pond); --stop-fg: var(--wc-graph-paper); --stop-tint: var(--wc-grid); }
@media (prefers-color-scheme: dark) {
  .stop { --stop-tint: var(--wc-spy-pond); }
  .stop--4 { --stop: var(--wc-graph-paper); --stop-fg: var(--wc-spy-pond); }
}
/* A stop's header ("question headers"): the stop's colored rule, its name (an h3 under the
   route's h2) and its question. No numbers: the stops aren't a fixed order. */
.stop__head { display: grid; gap: 4px; padding-top: 12px; border-top: 5px solid var(--stop); }
.stop__name { font-family: var(--wc-font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.1; letter-spacing: -0.015em; }
.stop__prompt { margin: 0; font-family: var(--wc-font-body); font-size: 1rem; line-height: 1.3; color: var(--wc-text-muted); }

.stop-note { padding: 10px 12px; border: var(--wc-border-width) solid var(--wc-on-status); border-radius: 12px; font-size: 0.875rem; line-height: 1.4; color: var(--wc-on-status); }
.stop-note--gone { background: var(--wc-notice); }
.stop-note--gone { display: grid; gap: 8px; }
.stop-note__remove { justify-self: start; min-height: 44px; }
.stop-empty { padding: 14px; border: var(--wc-border-width) dashed var(--wc-mist); border-radius: 14px; font-size: 0.9375rem; color: var(--wc-text-muted); }

/* Full option card */
.opt {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  text-align: left;
  background: var(--wc-surface);
  color: var(--wc-text);
  border: var(--wc-border-width) solid var(--wc-border);
  border-radius: 14px;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}
.opt:hover, .opt:focus-visible { transform: translate(-1px, -1px); }
.opt__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.opt__flag { padding: 2px 7px; border: 1.5px solid var(--wc-spy-pond); border-radius: 999px; font-family: var(--wc-font-label); font-weight: 700; font-size: 0.6875rem; color: var(--wc-spy-pond); }
.opt__flag--on { background: var(--wc-bubbler-tint); }
.opt__flag--grown-up { background: var(--wc-notice); }
.opt__flag--ends { background: var(--wc-bunsen-tint); }
.opt__flag--past { background: var(--wc-surface); color: var(--wc-text); border-color: var(--wc-border); }
.opt__title { font-family: var(--wc-font-display); font-weight: 800; font-size: 1.125rem; line-height: 1.2; letter-spacing: -0.01em; }
.opt__when { font-family: var(--wc-font-label); font-weight: 700; font-size: 0.75rem; color: var(--wc-link); }
.opt__detail { font-size: 0.9375rem; line-height: 1.45; color: var(--wc-text-muted); }
.opt__facts { font-family: var(--wc-font-label); font-size: 0.72rem; line-height: 1.4; }


/* New pick arrives after an htmx swap: visible from the first frame, it settles in place */
.pick-card.is-new { animation: pw-rise 160ms ease-out both; }
@keyframes pw-rise { from { transform: translateY(6px); } to { transform: none; } }


/* Phones: stops stack, rail runs down the left */
@media (max-width: 61.25rem) {
  .stops { grid-template-columns: 1fr; gap: 32px; }
  .stop { padding: 0; }
}

/* ---------- Lower row ---------- */
.pw-lower { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.soon { flex: 999 1 520px; min-width: 0; background: var(--wc-surface); border: var(--wc-border-width) solid var(--wc-border); border-radius: var(--wc-radius-panel); padding: 22px 24px; display: grid; gap: var(--wc-space-3); }
.soon h2, .posted h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.soon__list { list-style: none; margin: 0; padding: 0; }
.soon__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1.5px dashed var(--wc-hairline); }
.soon__when { flex: 0 0 180px; font-family: var(--wc-font-label); font-weight: 700; font-size: 0.78rem; color: var(--wc-link); }
.soon__what { flex: 1 1 220px; min-width: 0; display: inline-flex; align-items: center; gap: var(--wc-space-2); font-weight: 700; font-size: 1rem; }
.soon__tags { display: inline-flex; align-items: center; gap: 6px; }
.tag-pick { padding: 1px 8px; background: var(--wc-selected); color: var(--wc-on-selected); border-radius: 999px; font-family: var(--wc-font-label); font-size: 0.6875rem; font-weight: 700; }
.tag-thread { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 4px; border: 1.5px solid var(--wc-border); border-radius: 999px; background: var(--wc-surface); color: var(--wc-text); font-family: var(--wc-font-label); font-size: 0.6875rem; font-weight: 700; }
.tag-thread::before { content: ""; flex: none; width: 12px; height: 12px; border: 1.5px solid var(--wc-border); border-radius: 50%; background: var(--th-bg); } /* the topic chip, small (decision 051) */

.posted { flex: 1 1 300px; background: var(--wc-spy-pond); color: var(--wc-graph-paper); border-radius: var(--wc-radius-panel); padding: 22px 24px; display: grid; gap: var(--wc-space-3); }
.posted form { margin: 0; }
.switch {
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: transparent;
  color: var(--wc-graph-paper);
  border: 0;
  border-bottom: 1.5px solid var(--wc-pond-panel);
  font-size: 1rem;
  text-align: left;
}
.switch__track { position: relative; flex: 0 0 52px; height: 30px; border: var(--wc-border-width) solid var(--wc-graph-paper); border-radius: 999px; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: var(--wc-graph-paper); transition: transform 160ms cubic-bezier(.3, 1.6, .5, 1); }
.switch[aria-checked="true"] .switch__track { background: var(--wc-bubbler); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(22px); }
.posted__note { font-size: 0.875rem; line-height: 1.5; color: var(--wc-mist); }

/* ---------- Signed out: the explainer ---------- */


/* How it works: the four stops as a numbered strip */
.explain { display: grid; gap: var(--wc-space-4); }
.explain h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.explain__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wc-space-4); }
.explain__step { display: grid; gap: var(--wc-space-3); align-content: start; padding: 0 16px 16px; background: var(--wc-surface); border: var(--wc-border-width) solid var(--wc-border); border-radius: 16px; }
.explain__step > p { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--wc-text-muted); }
/* The same header as a route's stops; the rule runs along the card's top edge. */
.explain__step .stop__head { margin-inline: -16px; padding: 12px 16px 0; border-radius: 14px 14px 0 0; }

/* The sample route: read-only cards, no hover lift, no picked state */
.route--sample .route__head { align-items: baseline; }
.route__note { margin: 0; font-size: 0.9375rem; color: var(--wc-text-muted); }
.explain__cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.opt--static { cursor: default; }
.opt--static:hover { transform: none; }
.opt__safety { font-size: 0.8125rem; line-height: 1.4; color: var(--wc-text); }

/* Call to action, like the Wonders email card */
.pw-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wc-space-4); padding: 24px clamp(16px, 3vw, 32px); background: var(--wc-action); color: var(--wc-on-action); border: var(--wc-border-width) solid var(--wc-on-action); border-radius: var(--wc-radius-panel); box-shadow: 4px 4px 0 var(--wc-on-action); }
.pw-cta h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
.pw-cta p { margin: 4px 0 0; max-width: 40rem; }
.pw-cta__buttons { display: flex; flex-wrap: wrap; gap: var(--wc-space-2); }
.pw-cta .btn--secondary { background: transparent; color: var(--wc-on-action); border-color: var(--wc-on-action); }

@media (max-width: 61.25rem) {
  .explain__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
  .explain__steps { grid-template-columns: minmax(0, 1fr); }
  .pw-cta__buttons, .pw-cta__buttons .btn { width: 100%; }
}

/* ---------- Ours ---------- */
.pw-empty { padding: 18px 20px; border: var(--wc-border-width) dashed var(--wc-border); border-radius: 16px; color: var(--wc-text-muted); }
.pw-limit { color: var(--wc-text-muted); }
.opt__link { align-self: flex-start; font-size: 0.875rem; }
.opt__safety b { font-weight: 700; }
.opt-wrap { display: flex; flex-direction: column; gap: 4px; }
.stop-note p { margin: 0; }


.past-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.past-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.past-switch__track { position: relative; flex: 0 0 44px; height: 26px; border: var(--wc-border-width) solid var(--wc-border); border-radius: 999px; background: var(--wc-surface); }
.past-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: var(--wc-border); transition: transform 160ms ease-out; }
.past-switch input:checked + .past-switch__track { background: var(--wc-bubbler); }
.past-switch input:checked + .past-switch__track::after { transform: translateX(18px); background: var(--wc-spy-pond); }
.past-switch input:focus-visible + .past-switch__track { outline: var(--wc-focus-ring); outline-offset: var(--wc-focus-offset); }

.pick-undo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border: var(--wc-border-width) solid var(--wc-border); border-radius: 12px; background: var(--wc-surface); font-size: 0.875rem; }
.pick-undo p { margin: 0; }

/* ---------- The roadmap and the ideas (decision 068) ----------
   The plan sits on four signposts in the stops' colours (.stop--N above); the ideas sit
   below in four columns, one at a time on phones. Picks look like a picked card always
   did: the stop's tint, a 3 px border and the hard shadow. */
.pw-route { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wc-space-8); }
.pw-next { margin: 0 0 0 auto; padding: 6px 14px; background: var(--wc-status-tint); color: var(--wc-on-status); border: var(--wc-border-width) solid var(--wc-on-status); border-radius: var(--wc-radius-pill); font-family: var(--wc-font-label); font-weight: 700; font-size: 0.8125rem; }
.pw-next[hidden] { display: none; }
.pw-next__label { text-transform: uppercase; letter-spacing: var(--wc-tracking-label); }
.pw-saved__row { align-items: center; }

.road { background: var(--wc-surface); border: var(--wc-border-width) solid var(--wc-border); border-radius: var(--wc-radius-panel); padding: 22px clamp(14px, 2.5vw, 28px) 28px; display: grid; gap: var(--wc-space-6); }
.road__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--wc-space-3) var(--wc-space-6); }
.road__head h2 { font-size: 1.875rem; letter-spacing: -0.02em; }
.road__line { margin: 6px 0 0; max-width: 46rem; color: var(--wc-text-muted); }
.road__posts { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }

/* A signpost; the trail is painted blazes in each stop's colour, from one signpost to the next */
.post { position: relative; z-index: 1; display: grid; gap: 10px; min-width: 0; }
.post::before { content: ""; position: absolute; z-index: -1; top: 34px; left: 50%; width: calc(100% + 18px); height: 6px; background: repeating-linear-gradient(90deg, var(--stop) 0 14px, transparent 14px 24px); }
.post:last-child::before { display: none; }
.post__head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; padding: 10px 12px 12px; background: var(--stop); color: var(--stop-fg); border: var(--wc-border-width) solid var(--wc-border); border-radius: 12px; }
.post__name { font-family: var(--wc-font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.1; letter-spacing: -0.015em; color: inherit; }
.post__count { font-family: var(--wc-font-label); font-weight: 700; font-size: 0.75rem; white-space: nowrap; }
.post__prompt { grid-column: 1 / -1; margin: 0; font-size: 0.9375rem; line-height: 1.3; }
.post__picks, .post__past { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post .stop-note, .post .stop-empty { margin: 0; }

.pick-card { position: relative; display: grid; gap: 6px; padding: 12px 14px 14px; background: var(--stop-tint); color: var(--wc-text); border: 3px solid var(--wc-border); border-radius: 14px; box-shadow: 4px 4px 0 var(--wc-border); }
.pick-card .opt__chips { padding-right: 36px; }
.pick-card__remove { position: absolute; top: 6px; right: 6px; margin: 0; }
.pick-card__x { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--wc-text); cursor: pointer; }
.pick-card__x:hover { background: var(--wc-surface); }
/* Past picks: hidden until "Show past picks", with CSS alone; muted, but at AA contrast */
.pick-card--past { display: none; background: var(--wc-bg); color: var(--wc-text-muted); border-width: var(--wc-border-width); border-style: dashed; box-shadow: none; }
.road:has(#show-past:checked) .pick-card--past { display: grid; }
.pick-card--past .opt__when, .pick-card--past .opt__detail { color: var(--wc-text-muted); }
form.htmx-request .pick-card__x { opacity: 0.5; }

/* The ideas: production's option cards, the whole card the button. While a tap's request is
   out it takes the picked look, then it moves to its signpost. */
.ideas { display: grid; gap: var(--wc-space-4); }
.ideas__head h2 { font-size: 1.875rem; letter-spacing: -0.02em; }
.ideas__head p { margin: 4px 0 0; max-width: 52rem; color: var(--wc-text-muted); }
.ideas__tools { display: flex; flex-wrap: wrap; gap: var(--wc-space-3); }
.ideas__tools form { margin: 0; }
.ideas__switch { display: none; }
.ideas__cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.ideas__col { display: grid; gap: 10px; min-width: 0; }
.ideas__col-head { padding-top: 12px; border-top: 5px solid var(--stop); }
.ideas__col-head h3 { font-family: var(--wc-font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.1; }
.ideas__col-head p { margin: 2px 0 0; font-size: 0.9375rem; color: var(--wc-text-muted); }
.ideas__col form { margin: 0; }
.ideas__col .opt { cursor: pointer; }
.ideas__col .opt:active, .ideas__col form.htmx-request .opt { background: var(--stop-tint); border-width: 3px; box-shadow: 4px 4px 0 var(--wc-border); }
.ideas__more { display: grid; gap: 10px; }
.ideas__more > summary { min-height: 44px; display: grid; place-items: center; border: var(--wc-border-width) solid var(--wc-border); border-radius: 12px; background: var(--wc-surface); color: var(--wc-link); font-weight: 700; font-size: 0.875rem; list-style: none; cursor: pointer; }
.ideas__more > summary::-webkit-details-marker { display: none; }
.ideas__more[open] > summary { order: 2; }
.ideas__more[open] { display: flex; flex-direction: column; }
/* Show all: the extra ideas fade and drop in, one after another (off with reduced motion, base.css) */
.ideas__more[open] > .opt-wrap { animation: pw-reveal 240ms ease-out both; }
.ideas__more[open] > .opt-wrap:nth-of-type(2) { animation-delay: 50ms; }
.ideas__more[open] > .opt-wrap:nth-of-type(3) { animation-delay: 100ms; }
.ideas__more[open] > .opt-wrap:nth-of-type(n+4) { animation-delay: 150ms; }
@keyframes pw-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* "See the listing" and Details share one row; an open panel takes the full width (PW-9) */
.opt-links { display: flow-root; }
.opt-links > .opt__link { float: left; margin-right: 18px; min-height: 44px; display: inline-flex; align-items: center; gap: 3px; font-size: 0.875rem; }
.opt-links svg { display: inline; }
.opt-info > summary { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; color: var(--wc-link); font-weight: 700; font-size: 0.875rem; list-style: none; cursor: pointer; }
.opt-info > summary::-webkit-details-marker { display: none; }
.opt-info > summary svg { transition: transform 160ms ease-out; }
.opt-info[open] > summary svg { transform: rotate(180deg); }
.opt-info__list { clear: both; margin: 0 0 4px; padding: 10px 12px; display: grid; gap: 8px; background: var(--wc-bg); border: 1.5px dashed var(--wc-hairline); border-radius: 10px; font-size: 0.875rem; line-height: 1.4; }
.opt-info[open] .opt-info__list { animation: pw-reveal 200ms ease-out both; }
.opt-info__list div { display: grid; gap: 1px; }
.opt-info__list dt { font-family: var(--wc-font-label); font-weight: 700; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: var(--wc-tracking-label); color: var(--wc-text-muted); }
.opt-info__list dd { margin: 0; }
.opt-info__list a { white-space: nowrap; }
.opt-info__list a svg { margin-left: 2px; vertical-align: -2px; }
.pick-card .opt-info__list { background: var(--wc-surface); }

.pw-remove { text-align: right; }
.pw-remove form { margin: 0; }

/* Narrower: signposts two across, no trail */
@media (max-width: 75rem) {
  .road__posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post::before { display: none; }
}
/* Phones: the trail runs down the left; the ideas show one stop at a time (radios and CSS) */
@media (max-width: 61.99rem) {
  .pw-next { margin-left: 0; }
  .road .road__posts { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-left: 24px; }
  .post::before, .post:last-child::before { display: block; top: 0; left: -18px; width: 6px; height: calc(100% + 22px); background: repeating-linear-gradient(180deg, var(--stop) 0 14px, transparent 14px 24px); }
  .post:last-child::before { height: 100%; }
  .ideas__switch { display: flex; width: 100%; }
  .ideas__tools form, .ideas__tools .route__window { width: 100%; }
  .ideas__cols { grid-template-columns: minmax(0, 1fr); }
  .ideas:has(#show-look:checked) .ideas__col:not(#ideas-look),
  .ideas:has(#show-go:checked) .ideas__col:not(#ideas-go),
  .ideas:has(#show-make:checked) .ideas__col:not(#ideas-make),
  .ideas:has(#show-give:checked) .ideas__col:not(#ideas-give) { display: none; }
  .pw-remove { text-align: left; }
}
@media (max-width: 30rem) {
  .ideas__switch .pick--segment > span { white-space: normal; text-align: center; line-height: 1.2; padding: 4px 6px; }
}
