/* A world page, /printables/{theme} (lib/printables-world.js; board 2 World,
   design/printables-2026-11/world.html). Every value is a design.css token or one of its sizes:
   text 12·13·14·16·18·22·30·44 and the hero, corners 8/12/20/999, buttons are .tj-btn. */
.pw { max-width: var(--width-wide); margin: 0 auto; padding: 0 24px 96px; font-family: var(--font-ui); color: var(--ink); }
.pw-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pw-crumb { font: 400 var(--text-13) var(--font-ui); color: var(--muted); padding-top: 24px; }
.pw-crumb a { color: var(--muted); text-decoration: none; }
.pw-crumb a:hover { color: var(--ink); text-decoration: underline; }

/* the hero */
.pw-hero { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 40px; align-items: center; padding: 16px 0 32px; }
.pw-h1 { font: 400 var(--text-hero)/1.02 var(--font-display); margin: 16px 0; letter-spacing: -.01em; }
.pw-h1 i { color: var(--accent-dark); }
.pw-lede { font: 400 var(--text-18)/1.55 var(--font-ui); color: var(--muted); margin: 0 0 24px; max-width: 560px; }
.pw-stats { margin-bottom: 20px; }
.pw-stat { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font: 600 var(--text-13) var(--font-ui); }
.pw-studio { max-width: 600px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-20); box-shadow: var(--shadow-float); padding: 16px; display: grid; gap: 12px; }
.pw-field { display: flex; align-items: center; gap: 10px; background: var(--sunk); border-radius: var(--radius-12); padding: 0 14px; height: 52px; }
.pw-field label { font: 700 var(--text-12) var(--font-ui); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; width: 64px; }
.pw-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 var(--text-18) var(--font-ui); color: var(--ink); outline: none; }
.pw-field:focus-within { box-shadow: 0 0 0 2px var(--ring); }
.pw-go { justify-content: space-between; flex-wrap: nowrap; }
.pw-go .tj-btn { flex: none; }
.pw-hint { font: 400 var(--text-13) var(--font-ui); color: var(--muted); margin: 6px 0 0; }
.pw-go .pw-hint { margin: 0; flex: 1; min-width: 0; }
.pw-say { font: 400 var(--text-13) var(--font-ui); color: var(--muted); margin: 0; }
.pw-say.bad { color: var(--warn); }
.pw-art { position: relative; height: 440px; }
.pw-bloom { position: absolute; inset: 20px; border-radius: var(--radius-pill); background: var(--bloom-mint); }
.pw-art img { position: absolute; left: 0; right: 0; top: 10px; margin: 0 auto; width: min(380px, 90%); height: 400px; object-fit: contain; }
.pw-badge { position: absolute; right: 0; bottom: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-12); padding: 10px 14px; box-shadow: var(--shadow-float); font: 600 var(--text-13) var(--font-ui); }

/* the jump bar */
.pw-jump { display: flex; gap: 6px; align-items: center; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px; width: fit-content; max-width: 100%; overflow-x: auto; }
.pw-jump a { height: 36px; padding: 0 14px; border-radius: var(--radius-pill); font: 700 var(--text-13) var(--font-ui); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.pw-jump a:hover { background: var(--sunk); }

/* the sections */
.pw-sec { margin-top: 64px; scroll-margin-top: 72px; }
.pw-sech { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pw-h3 { font: 400 var(--text-30)/1.15 var(--font-display); margin: 0; }
.pw-g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.pw-mini { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-20); overflow: hidden; color: var(--ink); text-decoration: none; }
a.pw-mini:hover { border-color: var(--line-strong); box-shadow: var(--shadow-rest); }
.pw-mini .w { height: 220px; background: var(--artwell); border-bottom: 1px solid var(--artwell-line); display: flex; align-items: center; justify-content: center; }
.pw-mini .w.t0 { background: var(--bloom-mint); }
.pw-mini .w.t1 { background: var(--gold-tint); }
.pw-mini .w.t2 { background: var(--bloom-peach); }
.pw-mini .w img { max-height: 170px; max-width: 80%; object-fit: contain; }
.pw-mini .t { padding: 12px 14px 14px; }
.pw-mini .ct { font: 600 var(--text-16)/1.35 var(--font-ui); margin: 0 0 4px; }
.pw-mini .meta { font: 400 var(--text-13) var(--font-ui); color: var(--muted); }

/* an activity section's level toggle (board 2's .seg) */
.pw-seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--sunk); border-radius: var(--radius-pill); }
.pw-seg button { height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; font: 700 var(--text-13) var(--font-ui); color: var(--muted); cursor: pointer; }
.pw-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-rest); }
.pw-seg button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* the book band */
.pw-band { background: var(--slab); color: var(--on-slab); border-radius: var(--radius-20); padding: 40px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 72px; }
.pw-eyebrow { font: 700 var(--text-12) var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--spark); margin: 0; }
.pw-band h2 { font: 400 var(--text-44)/1.08 var(--font-display); margin: 12px 0; }
.pw-band p { font: 400 var(--text-16)/1.55 var(--font-ui); color: color-mix(in srgb, var(--on-slab) 78%, transparent); margin: 0 0 20px; }
.pw-band .pw-eyebrow { color: var(--spark); margin: 0; }
.pw-starters { display: grid; gap: 10px; margin: 18px 0; }
.pw-starter { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius-12); padding: 12px 14px; font: 600 var(--text-14) var(--font-ui); color: var(--on-slab); text-decoration: none; }
.pw-starter:hover { border-color: var(--on-slab); }
.pw-band .pw-row { gap: 14px; }
.pw-prices { font: 600 var(--text-13) var(--font-ui); }
.pw-starter.on { border-color: var(--on-slab); }
/* the book: the picked start's cover (the one writer's JPEG), the character in front of it */
.pw-band-art { position: relative; height: 380px; }
.pw-cover { position: absolute; left: 40px; top: 20px; width: 300px; aspect-ratio: 300 / 340; background: var(--bloom-mint); border-radius: var(--radius-8); transform: rotate(-4deg); box-shadow: var(--shadow-book); overflow: hidden; }
.pw-cover img { width: 100%; height: 100%; object-fit: contain; padding: 20px; box-sizing: border-box; display: block; }
.pw-cover.drawn img { object-fit: cover; padding: 0; }
.pw-cast { position: absolute; right: 10px; bottom: 0; width: 200px; height: 200px; object-fit: contain; }

/* the ideas, the questions, the nearby worlds */
.pw-prose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.pw-prose article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-20); padding: 24px; }
.pw-prose h3 { font: 400 var(--text-22) var(--font-display); margin: 0 0 8px; }
.pw-prose p, .pw-prose li { font: 400 var(--text-14)/1.65 var(--font-ui); color: var(--muted); margin: 0 0 8px; }
.pw-prose ul { padding-left: 18px; margin: 0; }
.pw-faq { display: grid; gap: 10px; margin-top: 20px; }
.pw-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-12); padding: 16px 20px; }
.pw-faq summary { font: 600 var(--text-16) var(--font-ui); cursor: pointer; }
.pw-faq p { font: 400 var(--text-14)/1.6 var(--font-ui); color: var(--muted); margin: 10px 0 0; }
.pw-rel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.pw-world { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-20); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; padding: 14px 10px; gap: 6px; }
.pw-world:hover { border-color: var(--line-strong); box-shadow: var(--shadow-rest); }
.pw-world .pic { width: 112px; height: 112px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--purple-tint); }
.pw-world .pic.t1 { background: var(--blue-tint); }
.pw-world .pic.t2 { background: var(--bloom-mint); }
.pw-world .pic.t3 { background: var(--gold-tint); }
.pw-world .pic img { width: 100%; height: 100%; object-fit: contain; }
.pw-world b { font: 600 var(--text-14) var(--font-ui); }
.pw-world small { font: 400 var(--text-12) var(--font-ui); color: var(--muted); }

/* a tablet or a phone: one column, the art under the words, a 16px gutter on a phone */
@media (max-width: 720px) {
  .pw { padding: 0 16px 64px; }
  .pw-hero, .pw-band { grid-template-columns: 1fr; }
  .pw-art { height: 300px; max-width: 440px; width: 100%; margin: 0 auto; }
  .pw-art img { left: 0; right: 0; margin: 0 auto; width: 100%; height: 280px; }
  .pw-band-art { height: auto; display: flex; justify-content: center; padding: 8px 0 4px; }
  .pw-cover { position: relative; left: auto; top: auto; width: 220px; }
  .pw-cast { display: none; }
  .pw-rel { grid-template-columns: repeat(2, 1fr); }
  .pw-prose { grid-template-columns: 1fr; }
  .pw-band { padding: 24px 20px; }
  .pw-band h2 { font-size: var(--text-30); }
  .pw-sech { flex-direction: column; align-items: flex-start; }
  .pw-g4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pw-mini .w { height: 150px; }
  .pw-mini .w img { max-height: 120px; }
  .pw-go { flex-wrap: wrap; }
  .pw-go .tj-btn { width: 100%; }
}
/* a section with one kind: its one mini wide (the lead, on board 2's toggle) */
.pw-g4 > .pw-mini:only-child { grid-column: span 2; }
