/* Walks (js/walks.js): Master Design page "Walks", boards CHOSEN · 5E phone and 5E · 1440; design system patterns.md
   "Walks page" (decided 2026-11-24). Phone first; 1024 px and up gets the fluid page capped at 1440 (like Studies),
   the two columns (card column up to 860 px, the book column, 48 px apart) and the desk sizes. The walk card is
   Home's (home.css .hm-lead); only its sizes change here. Only theme tokens. */

.wk { display: flex; flex-direction: column; gap: 14px; font-family: var(--ui); }
.wk-h1 { margin: 0; font: 500 32px/1.1 var(--read); }
.wk-soft { font: 400 13px/1.4 var(--ui); color: var(--muted); margin: 0; }
.wk-nowrap { white-space: nowrap; }
.wk-eb { font: 600 11px/1.4 var(--ui); letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.wk-m { color: var(--muted); }
.wk-grow { flex: 1; }
.wk-wide, .wk-wide-cell, .wk-wide-block { display: none; }

/* ---- the bars: one segment per book (sized by its chapters), then one per chapter of the current book ---- */
.wk-bars { display: flex; flex-direction: column; gap: 14px; }
.wk-bar { display: flex; flex-direction: column; gap: 6px; }
.wk-nt { display: flex; height: 10px; border-radius: 4px; overflow: hidden; gap: 2px; }
.wk-seg { background: var(--raised); overflow: hidden; min-width: 1px; }
.wk-fill { display: block; height: 100%; background: var(--gold); }
.wk-chs { display: flex; gap: 3px; }
.wk-ch { flex: 1 1 0; height: 7px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.wk-line { display: flex; justify-content: space-between; gap: 10px; font: 400 13px/1.4 var(--ui); color: var(--muted); }

/* ---- the walk card (Home's), with the sections passed struck through ---- */
.wk-card { color: var(--text); text-decoration: none; }
.wk-sections .wk-done { text-decoration: line-through; text-decoration-color: var(--faint); }
.wk-sections .wk-here { color: var(--text); font-weight: 600; }
.wk-step { display: flex; align-items: center; gap: 12px; }
/* The board's track is line-strong: line is the card's own border color and vanished on the keywash card. */
.wk-step .hm-bar { background: var(--line-strong); }
.wk-caught { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }

/* ---- the columns: one on a phone ---- */
.wk-cols { display: flex; flex-direction: column; gap: 22px; }
.wk-main, .wk-side { display: flex; flex-direction: column; min-width: 0; }
.wk-recent-h { margin-top: 22px; }

/* ---- rows ---- */
.wk-list { display: flex; flex-direction: column; }
.wk-row { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.wk-row:focus-visible, .wk-bk-open:focus-visible, .wk-more:focus-visible, .wk-back:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wk-row-top { display: flex; justify-content: space-between; gap: 10px; }
.wk-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wk-row-t { font: 500 17px/1.3 var(--read); }
.wk-row-p {
  font: 400 13px/1.4 var(--ui); color: var(--text-soft);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.wk-check { color: var(--muted); display: inline-flex; flex: none; }
.wk-check .i { width: 16px; height: 16px; }
.wk-partway { color: var(--gold); font: 500 12px/16px var(--ui); white-space: nowrap; }
.wk-row-grid { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wk-row-grid .wk-row-main { flex: 1; }
.wk-row-grid .wk-check { order: 2; }
.wk-more {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 0; min-height: 44px;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--gold); font: 500 13px var(--ui); cursor: pointer;
}
.wk-more .i { width: 16px; height: 16px; }
.wk-more:disabled { opacity: .6; cursor: default; }

/* ---- Walks by book ---- */
.wk-books { display: flex; flex-direction: column; }
.wk-books > .wk-eb { margin-top: 22px; }
.wk-bk {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; min-height: 44px; border: 0;
  border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; font: inherit;
}
.wk-bk-open { cursor: pointer; }
.wk-bk-name { flex: 1; font: 500 18px/1.25 var(--read); }
.wk-bk-note { text-align: right; }
.wk-bk-i { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform .15s; }
.wk-bk-cur .wk-bk-name, .wk-bk-cur .wk-bk-i { color: var(--gold); }
.wk-bk-expanded .wk-chev { transform: rotate(90deg); }
.wk-bk-next .wk-bk-name { color: var(--muted); }
.wk-hollow { width: 16px; display: flex; justify-content: center; flex: none; }
.wk-hollow span { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--muted); }
.wk-fin { padding-left: 28px; display: flex; flex-direction: column; }
.wk-fin[hidden] { display: none; }

/* ---- one book: the right column on a computer, its own page on a phone ---- */
.wk-bookview { display: flex; flex-direction: column; }
.wk-back {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--gold); font: 500 14px var(--ui); text-decoration: none; cursor: pointer;
}
.wk-back .i { width: 16px; height: 16px; }
.wk-bv-head { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 12px; border-bottom: 1px solid var(--line-strong); }
.wk-bv-name { margin: 0; font: 500 26px/1.2 var(--read); }
.wk-bookpage .wk-bv-head { border-bottom: 0; padding-bottom: 4px; }
.wk-bookpage .wk-h1 { margin-top: 6px; }

.wk-pd { margin: 12px 0 0; font: italic 400 12px/1.4 var(--read); color: var(--muted); }

/* ---- a computer: the desk sizes and the two columns ---- */
@media (min-width: 1024px) {
  body[data-view="walks"] .wrap { max-width: var(--wide-max); padding: 48px var(--wide-pad) 64px; }
  .wk { gap: 28px; }
  .wk-h1 { font-size: 40px; }
  .wk-wide { display: inline; }
  .wk-wide-cell { display: block; }
  .wk-wide-block { display: block; }
  .wk-phone, .wk-phone-cell { display: none; }
  .wk-soft, .wk-line { font-size: 14px; line-height: 1.5; }
  .wk-bars { gap: 10px; }
  .wk-nt { height: 12px; }
  .wk-ch { height: 8px; }
  .wk-cols { display: grid; grid-template-columns: minmax(0, 860px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .wk-books > .wk-eb { margin-top: 0; }

  .wk-card { max-width: 860px; padding: 22px; }
  .wk-card .hm-label { font-size: 13px; }
  .wk-card .hm-label-i { width: 18px; height: 18px; }
  .wk-card .hm-title-lead { font-size: 28px; }
  .wk-card .hm-ref { font-size: 15px; }
  .wk-card .hm-xs, .wk-card .hm-new { font-size: 14px; }
  .wk-card .hm-focus-label { font-size: 12px; }
  .wk-card .hm-focus-title { font-size: 20px; }
  .wk-card .hm-sections { font-size: 15px; }
  .wk-card .hm-btn { min-height: 48px; font-size: 15px; }

  .wk-row-grid {
    display: grid; grid-template-columns: 90px minmax(0, 1fr) 190px 24px; gap: 20px; align-items: baseline; padding: 14px 0;
  }
  .wk-row-grid .wk-row-t { font-size: 19px; }
  .wk-row-grid .wk-row-p { font-size: 14px; color: var(--muted); }
  .wk-row-grid .wk-check { order: 0; }
  .wk-more { font-size: 14px; }
  .wk-bk-name { font-size: 20px; }
  .wk-bv-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
}
