/* Choose Your Path — the block at the end of every private page.
   Uses the pages' own tokens (--paper, --surface, --ink, --ink-soft,
   --rule, --accent, --accent-ink, --focus), so it sits in any of them. */

.path { display: flex; flex-direction: column; gap: 30px; }
.path h2 {
  font-family: "Zilla Slab", Rockwell, Georgia, serif; font-weight: 500;
  font-size: 1.25rem; margin: 0 0 12px;
}

/* How well do you know this one? */
.level-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.level-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 11px 12px; min-height: 44px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 6px;
}
.level-btn:hover { border-color: var(--accent); }
.level-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.level-btn[aria-pressed="true"] {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
.level-dots { font-size: 11px; letter-spacing: 2px; color: #b8913a; }
.level-dots .off { color: var(--rule); }
.level-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.level-means { font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.path-private { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 460px) {
  .level-row { grid-template-columns: 1fr; }
  .level-btn { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .level-means { flex-basis: 100%; }
}

/* Where next? */
.path-choices { display: flex; flex-direction: column; gap: 10px; }
.path-choice {
  display: flex; flex-direction: column; gap: 4px;
  padding: 13px 15px 13px 18px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  border-left: 5px solid var(--region, var(--accent));
}
.path-choice:hover { border-color: var(--accent); border-left-color: var(--region, var(--accent)); }
.path-choice:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pc-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pc-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px;
  color: var(--accent-ink);
}
.pc-title { font-weight: 600; }
.pc-been {
  font-size: 12px; color: var(--ink-soft); border: 1px solid var(--rule);
  border-radius: 999px; padding: 0 8px;
}
.pc-suggested {
  font-size: 12px; color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: 999px; padding: 0 8px;
}
.pc-why { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.path-more { margin: 12px 0 0; font-size: 15px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.path-more .nav-icons { margin-left: 0; }
.path-more a { color: var(--accent-ink); }

/* The shelf: where you've been, read from the same record. */
.book .ribbon {
  position: absolute; top: -4px; right: 7px; width: 7px; height: 30px; z-index: 2;
  background: #9b2b2b; box-shadow: 0 1px 2px #0006;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.book .level-pips {
  position: absolute; left: 0; right: 0; bottom: 30px; z-index: 2;
  text-align: center; font-size: 7px; letter-spacing: 1px; line-height: 1;
  color: #e7c878; text-shadow: 0 1px 0 #0009;
}
.book.is-jumped .spine { box-shadow: inset 0 0 0 1px #0004, 0 0 0 1px #e8dcc866; }

/* Finished: back to the shelf, where the next step is chosen (2026-09-24). */
.done-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 6px;
  background: var(--accent-ink); color: var(--paper); font-weight: 600;
  text-decoration: none;
}
.done-btn:hover { background: var(--accent); }
.done-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* The shelf, the map and the mixer as icons. The name shows on hover or
   keyboard focus, and is always there for screen readers. */
.nav-icons { display: inline-flex; gap: 2px; margin-left: auto; }
.nav-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 6px; color: var(--accent-ink);
}
.nav-icon svg { width: 24px; height: 24px; }
.nav-icon:hover { background: var(--surface); }
.nav-icon:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.nav-icon::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 4px); right: 0; z-index: 20;
  padding: 4px 9px; border-radius: 4px; white-space: nowrap; pointer-events: none;
  font: 500 13px/1.4 "Source Serif 4", Georgia, serif; letter-spacing: 0; text-transform: none;
  background: var(--ink); color: var(--paper); opacity: 0; transition: opacity .12s;
}
.nav-icon:hover::after, .nav-icon:focus-visible::after { opacity: 1; }

/* The shelf's "what next": three steps from the one you just finished,
   each with its reason one tap away. */
.next-step { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.next-step h2 { margin: 0; }
.next-step .lede { margin: 0; color: var(--ink-soft); }
.next-step .lede b { color: var(--ink); }
.ns-card { position: relative; }
.ns-card .path-choice { padding-right: 58px; }
.why-btn {
  position: absolute; top: 9px; right: 9px; width: 36px; height: 36px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1.5px solid var(--rule); background: var(--paper);
  color: var(--accent-ink); font: 600 16px/1 "Source Serif 4", Georgia, serif;
}
.why-btn:hover, .why-btn[aria-expanded="true"] { border-color: var(--accent-ink); }
.why-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.why-body[hidden] { display: none; }
.why-body {
  margin: -4px 0 0; padding: 12px 15px 4px; font-size: 15px; color: var(--ink-soft);
  border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 6px 6px;
}
.why-body p { margin: 0 0 8px; }
.why-body .no-ai { font-size: 13px; }
.repeat { margin: 4px 0 0; font-size: 15px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.repeat a {
  color: var(--accent-ink); text-decoration: none; border: 1px solid var(--rule);
  border-radius: 999px; padding: 1px 10px; font-size: 14px;
}
.repeat a:hover { border-color: var(--accent); }

/* The page's own confirm box (UHYMPath.ask), in place of the browser's. */
dialog.ask {
  width: min(24rem, calc(100vw - 32px)); padding: 20px 20px 16px; border-radius: 8px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  box-shadow: 0 12px 40px #0005;
}
dialog.ask::backdrop { background: #0007; }
dialog.ask h2 { margin: 0 0 8px; font-family: "Zilla Slab", Rockwell, Georgia, serif; font-weight: 600; font-size: 1.2rem; }
dialog.ask p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.ask-row { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.ask-row button {
  min-height: 44px; padding: 0 16px; border-radius: 6px; cursor: pointer;
  font: 600 15px/1 "Source Serif 4", Georgia, serif;
}
.ask-no { background: none; border: 1px solid var(--rule); color: var(--ink); }
.ask-yes { background: #b3362f; border: 1px solid #b3362f; color: #fff; }
.ask-row button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
