/* Wish-terminal field guide — Type Any Superpower Wiki */
:root {
  --h: 265;
  --s: 70%;
  --r: 14px;
  --r-sm: 8px;
  --frame: 1080px;
  --font-body: ui-rounded, "SF Pro Rounded", Nunito, "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: var(--font-body);
  --violet: hsl(var(--h) var(--s) 42%);
  --violet-deep: hsl(var(--h) var(--s) 32%);
  --amber: hsl(38 92% 50%);
  --ink: hsl(var(--h) 35% 12%);
  --muted: hsl(var(--h) 10% 38%);
  --bg: hsl(var(--h) 45% 97%);
  --panel: hsl(0 0% 100%);
  --panel-2: hsl(var(--h) 35% 94%);
  --edge: hsl(var(--h) 22% 85%);
  --shadow: 0 18px 40px hsl(var(--h) 30% 20% / 0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.wish-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--violet); }
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.wish-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wish-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 99;
  padding: 0.6rem 1rem;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
}
.wish-skip:focus { left: 12px; top: 12px; }
.wish-frame {
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.wish-main { flex: 1; }

/* Prompt ribbon */
.wish-prompt-ribbon {
  background: var(--panel);
  border-bottom: 1px dashed var(--edge);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ribbon-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 8px 0;
}
.ribbon-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--panel-2);
  font-weight: 700;
}
.ribbon-step.is-on {
  border-color: color-mix(in srgb, var(--violet) 40%, var(--edge));
  background: color-mix(in srgb, var(--violet) 12%, white);
  color: var(--violet-deep);
}
.ribbon-step b { color: var(--amber); font-size: 12px; }
.ribbon-arrow { color: var(--muted); font-weight: 700; }
.ribbon-tag {
  margin-left: auto;
  font-weight: 700;
  color: var(--violet-deep);
}

/* Header */
.wish-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, white);
  border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(12px);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.wish-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.wish-brand:hover { text-decoration: none; color: var(--violet); }
.wish-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--violet), var(--amber));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.wish-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.wish-brand-title { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.wish-brand-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.wish-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.wish-nav::-webkit-scrollbar { display: none; }
.wish-nav-link {
  padding: 0.45rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.wish-nav-link:hover { background: var(--panel-2); color: var(--ink); }
.wish-nav-link[aria-current="page"] {
  background: color-mix(in srgb, var(--violet) 14%, white);
  color: var(--violet-deep);
  box-shadow: inset 0 -2px 0 var(--violet);
}
.wish-search { position: relative; flex: 0 1 16rem; }
.wish-search[hidden] { display: none; }
.wish-search-field {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  background: var(--panel);
  font: inherit;
  font-size: 0.92rem;
}
.wish-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  max-height: 18rem;
  overflow: auto;
  z-index: 50;
}
.wish-results a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}
.wish-results a:hover { background: var(--panel-2); }

/* Hero */
.wish-hero {
  padding: 2.75rem 0 2.25rem;
  background:
    radial-gradient(1200px 400px at 20% -10%, color-mix(in srgb, var(--violet) 18%, transparent), transparent),
    linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--edge);
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
}
.wish-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}
.hero-h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1.08rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.35rem;
}
.wish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--edge);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.wish-btn:hover { border-color: var(--violet); color: var(--violet-deep); }
.wish-btn--solid {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}
.wish-btn--solid:hover {
  background: var(--violet-deep);
  border-color: var(--violet-deep);
  color: #fff;
}

.hud-rail {
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hud-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px dashed var(--edge);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hud-label { color: var(--violet-deep); }
.hud-live { color: var(--amber); }
.hud-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hud-specs {
  margin: 0;
  padding: 12px 14px 14px;
  display: grid;
  gap: 10px;
}
.hud-specs div {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-2);
}
.hud-specs div:last-child { border-bottom: 0; padding-bottom: 0; }
.hud-specs dt {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hud-specs dd { margin: 0; font-size: 0.92rem; color: var(--ink); }

/* Bands */
.wish-band { padding: 2.5rem 0 1.5rem; }
.band-head { margin-bottom: 1.25rem; }
.band-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.route-tickets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.route-ticket {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--edge);
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.route-ticket:hover { border-color: var(--violet); }
.route-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--violet) 16%, white);
  color: var(--violet-deep);
  font-weight: 800;
}
.route-body strong { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.route-body span { color: var(--muted); font-size: 0.95rem; }

.truth-band { background: var(--panel); border-block: 1px solid var(--edge); }
.truth-shell { max-width: 56rem; }
.truth-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.truth-sub {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
}
.truth-sub.is-yes { color: var(--violet-deep); }
.truth-sub.is-no { color: hsl(0 60% 45%); }
.truth-cols ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }

.topic-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.topic-folder {
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid var(--edge);
  background: var(--panel);
}
.folder-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.folder-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.folder-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.topic-folder ul { margin: 0.5rem 0 0; padding-left: 1rem; }

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.ticket-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 16px 16px 14px 20px;
  border-radius: var(--r);
  border: 1px solid var(--edge);
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, color-mix(in srgb, var(--edge) 55%, transparent) 6px 7px) left center / 8px 100% no-repeat,
    var(--panel);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.ticket-card:hover { border-color: var(--violet); }
.ticket-notch {
  position: absolute;
  left: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-50%);
}
.ticket-title { font-weight: 800; font-size: 1rem; }
.ticket-text { color: var(--muted); font-size: 0.92rem; }
.ticket-meta { margin-top: auto; font-size: 0.78rem; color: var(--muted); }

/* Footer */
.wish-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--edge);
  background: var(--panel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, minmax(0, 0.8fr));
  gap: 1.25rem 2rem;
  padding: 2rem 0 1.5rem;
}
.footer-name { margin: 0 0 0.35rem; font-weight: 800; font-size: 1.05rem; }
.footer-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-col a:hover { color: var(--violet-deep); }
.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Legacy wiki page chrome (posts, legal, section lists) */
.wk-page {
  padding: 1.75rem 0 3.5rem;
}
.wk-pagehead { margin: 0 auto 1.5rem; max-width: var(--frame); padding: 0 1.25rem; }
.wk-title { font-size: clamp(1.75rem, 3.5vw, 2.35rem); font-weight: 800; letter-spacing: -0.02em; }
.wk-meta { color: var(--muted); font-size: 0.88rem; margin-top: 0.35rem; }
.wk-narrow { max-width: 52rem; margin: 0 auto; padding: 0 1.25rem; }
.wk-prose { font-size: 1.02rem; }
.wk-prose h2 { margin: 2rem 0 0.75rem; font-size: 1.35rem; font-weight: 800; }
.wk-prose h3 { margin: 1.5rem 0 0.5rem; font-size: 1.12rem; font-weight: 800; }
.wk-prose ul, .wk-prose ol { padding-left: 1.2rem; }
.wk-prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wk-prose th, .wk-prose td { border: 1px solid var(--edge); padding: 0.5rem 0.65rem; text-align: left; }
.wk-prose th { background: var(--panel-2); }
.wk-scroll { overflow-x: auto; margin: 1rem 0; }
.wk-toc {
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--edge);
  background: var(--panel);
}
.wk-toc ol { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.wk-toc-sub { margin-left: 0.75rem; }
.wk-faq details {
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.55rem;
  background: var(--panel);
}
.wk-faq summary { cursor: pointer; font-weight: 700; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .ribbon-tag { margin-left: 0; width: 100%; }
  .header-row { flex-wrap: wrap; }
  .wish-nav { order: 3; width: 100%; }
  .wish-search { flex: 1 1 100%; order: 4; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wish-brand-sub { display: none; }
}