/* Journeys (a test behind #/journeys). Tokens only, so every look works. */
.jy-shelf { display:flex; flex-direction:column; gap:28px; }
.jy-continue { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:0; overflow:hidden; }
.jy-continue .jy-art { min-height:220px; }
.jy-continue .jy-body { padding:22px 24px; display:flex; flex-direction:column; gap:8px; }
.jy-art { background:var(--surface2); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.jy-art img { width:100%; height:100%; object-fit:cover; display:block; }
.jy-art svg { width:60%; max-width:260px; height:auto; color:var(--ink3); }
.jy-kicker { font-size:.85rem; font-weight:700; color:var(--accent); margin:0; }
.jy-title { font-family:var(--font-serif); font-size:1.75rem; line-height:1.15; margin:0; }
.jy-sub { color:var(--ink2); margin:0; }
.jy-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:14px; }
.jy-card { display:flex; flex-direction:column; border-radius:var(--radius-card); border:1px solid var(--line); background:var(--surface); color:var(--ink); text-decoration:none; overflow:hidden; }
.jy-card:hover { border-color:var(--accent); }
.jy-card .jy-art { height:120px; }
.jy-card .jy-cardbody { padding:12px 14px 14px; display:flex; flex-direction:column; gap:4px; }
.jy-card b { font-family:var(--font-serif); font-size:1.1rem; }
.jy-card .jy-meta { font-size:.85rem; color:var(--ink2); }
.jy-optional { font-size:.8rem; color:var(--ink3); }
.jy-steps { list-style:none; margin:0; padding:0; }
.jy-steps li { display:flex; gap:12px; align-items:flex-start; padding:10px 0; border-top:1px solid var(--line); }
.jy-steps li:first-child { border-top:0; }
.jy-dot { flex:none; width:26px; height:26px; border-radius:50%; border:1.5px solid var(--accent); display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:700; color:var(--accent); background:var(--surface); }
.jy-dot.done { background:var(--accent); color:var(--accent-ink); }
.jy-dot.next { background:var(--wash); }
.jy-steps a { color:var(--ink); text-decoration:none; display:flex; flex-direction:column; gap:1px; min-width:0; }
.jy-steps a:hover b { text-decoration:underline; }
.jy-steps .jy-when { font-size:.82rem; color:var(--ink2); }
.jy-steps .jy-kind { font-size:.8rem; color:var(--ink3); }
.jy-step { display:flex; flex-direction:column; gap:18px; }
.jy-stepart { border-radius:var(--radius-card); overflow:hidden; border:1px solid var(--line); aspect-ratio:16/7; max-height:300px; }
.jy-stepart .jy-art, .jy-card .jy-art, .jy-continue .jy-art { height:100%; }
.jy-story { font-family:var(--font-serif); font-size:1.1rem; line-height:1.55; margin:0; }
.jy-expect { display:flex; flex-direction:column; gap:6px; padding:14px 16px; border-radius:var(--radius-card); border:1px solid var(--line); background:var(--surface); }
.jy-expect .lbl { margin:0; }
.jy-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; }
.jy-pair { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:14px; }
.jy-pair .card { margin:0; }
.jy-heavy { margin:0; color:var(--ink2); }
.jy-enough { margin:6px 0 0; }
.jy-wrap { border-top:1px solid var(--line); padding-top:18px; }
.jy-donebar { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; padding:16px 18px; border-radius:var(--radius-card); background:var(--wash); margin-top:18px; }
.jy-donebar p { margin:0; }
.jy-choices { display:flex; flex-wrap:wrap; gap:8px; }
/* Doubled class outranks app.css's .btn:not(...) chain. */
/* A picked version is marked with a check and a heavier edge, not a fill, so the page keeps one primary button. */
.jy-choices button.btn.btn[aria-pressed="true"], .jy-choices button.btn.btn[aria-pressed="true"]:hover { background:var(--wash); color:var(--ink); border:2px solid var(--accent); }
.jy-choices button.btn[aria-pressed="true"]::before { content:"✓"; margin-right:6px; color:var(--accent); font-weight:700; }
.jy-skip { color:var(--ink2); }
/* In-story guide and script steps. */
.jy-guidesteps, .jy-lines { margin:0; padding-left:20px; display:flex; flex-direction:column; gap:8px; }
.jy-lines li { font-weight:600; }
/* Rule tags: a word and a shape, so they read in every look and without color. */
.jy-rules { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.jy-rules li { display:flex; gap:10px; align-items:flex-start; }
.jy-tag { flex:none; display:inline-flex; align-items:center; gap:6px; font-size:.78rem; font-weight:700; padding:2px 8px; border-radius:var(--radius-chip); border:1.5px solid var(--ink2); color:var(--ink); background:var(--surface); white-space:nowrap; }
.jy-tag::before { content:""; width:9px; height:9px; display:inline-block; background:currentColor; }
.jy-tag.firm { border-style:solid; color:var(--accent-ink); background:var(--accent); border-color:var(--accent); }
.jy-tag.usually { border-style:dashed; }
.jy-tag.usually::before { border-radius:50%; }
.jy-tag.depends { border-style:dotted; }
.jy-tag.depends::before { background:none; border:2px solid currentColor; transform:rotate(45deg); width:7px; height:7px; }
.jy-tag.your-call { border-style:double; border-width:3px; }
.jy-tag.your-call::before { background:none; border:2px solid currentColor; border-radius:50%; width:7px; height:7px; }
/* The skill deck: card tiles, fit tags, stamps. */
.jy-check { display:flex; align-items:center; gap:8px; font-weight:700; }
.jy-tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:12px; margin-top:6px; }
.jy-cardtile { display:flex; flex-direction:column; gap:6px; padding:12px 14px; border-radius:var(--radius-card); border:1px solid var(--line); background:var(--surface); }
.jy-cardtile.inhand { border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
.jy-cardtile b { font-family:var(--font-serif); font-size:1.05rem; }
.jy-cardline { margin:0; font-weight:600; }
.jy-cardtile .btn.small { align-self:flex-start; margin-top:4px; }
.jy-fit { align-self:flex-start; font-size:.78rem; font-weight:700; padding:2px 8px; border-radius:var(--radius-chip); border:1.5px solid var(--ink2); }
.jy-fit.well { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.jy-fit.partly { border-style:dashed; }
.jy-fit.not-here { border-style:dotted; color:var(--ink2); }
.jy-stamps { margin:0; font-size:.85rem; color:var(--ink2); }
.replychip b { font-weight:700; }
/* Kingdom twin layout: the real place is the larger panel. */
.jy-twin { display:grid; grid-template-columns:2fr 1fr; gap:14px; }
.jy-twin .jy-art { border-radius:var(--radius-card); border:1px solid var(--line); min-height:180px; }
.jy-twin figcaption { font-size:.85rem; color:var(--ink2); margin-top:6px; }
/* Tour: three captioned pictures. */
.jy-tour { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px; }
.jy-tour figure { margin:0; }
.jy-tour .jy-art { border-radius:var(--radius-card); border:1px solid var(--line); aspect-ratio:4/3; }
.jy-tour figcaption { font-size:.9rem; margin-top:6px; }
.jy-testnote { font-size:.85rem; color:var(--ink3); }
/* Plain step types: an icon and a word, never color alone. */
.jy-type { display:inline-flex; align-items:center; gap:5px; vertical-align:middle; white-space:nowrap; }
.jy-typeicon { flex:none; width:18px; height:18px; }
.jy-kicker .jy-type { margin-right:.35em; }
.jy-nowrap { white-space:nowrap; }
.jy-steps .jy-kind { display:flex; flex-wrap:wrap; align-items:center; gap:2px 6px; }
.jy-steps .jy-kind .jy-type { color:var(--ink2); }
/* Before you start: one compact card per step. */
.jy-brief { display:flex; flex-direction:column; padding:4px 16px; border-radius:var(--radius-card); border:1px solid var(--line); background:var(--surface); }
.jy-brief .jy-briefh { font-family:var(--font-serif); font-size:1.1rem; margin:11px 0 0; }
.jy-bsec { display:flex; flex-direction:column; gap:7px; padding:11px 0; }
.jy-bsec + .jy-bsec { border-top:1px solid var(--line); }
.jy-briefh + .jy-bsec { padding-top:6px; }
.jy-bsec .lbl { margin:0; }
.jy-btop .scenetags { margin:0; }
.jy-facts { margin:0; display:flex; flex-direction:column; gap:2px; line-height:1.4; }
.jy-facts > div { display:flex; gap:10px; align-items:baseline; }
.jy-facts dt { flex:none; width:5.2em; font-size:.85rem; font-weight:700; color:var(--ink2); }
.jy-facts dd { margin:0; min-width:0; }
.jy-senses { list-style:none; margin:2px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.jy-senses li { font-size:.85rem; padding:2px 9px; border-radius:var(--radius-chip); border:1px solid var(--line-strong); background:var(--surface2); color:var(--ink); }
.jy-senses li span { color:var(--ink2); }
.jy-good { margin:0; font-size:.92rem; color:var(--ink2); }
.jy-go .jy-actions { gap:8px 18px; }
.jy-go .jy-enough { margin:0; }
.jy-go .howpart { margin:0; }
.jy-pick { display:flex; flex-direction:column; gap:6px; }
.jy-lighter { display:flex; flex-direction:column; gap:6px; }
.jy-lighter .jy-actions { margin-top:4px; }
/* Small disclosures: the tag key. */
.jy-mini > summary { cursor:pointer; color:var(--link); font-size:.9rem; font-weight:700; width:max-content; max-width:100%; }
.jy-mini[open] > summary { margin-bottom:8px; }
.jy-mini > .jy-sub { margin-bottom:8px; font-size:.9rem; }
.jy-mini .jy-rules span { font-size:.92rem; }
/* Who's who. */
.jy-cast { margin:0; }
.jy-sumnote { font-weight:400; color:var(--ink2); }
.jy-castlist { margin:0 14px 14px; padding-left:18px; display:flex; flex-direction:column; gap:6px; }
.jy-here { display:inline-block; margin-left:4px; font-size:.78rem; font-weight:700; padding:0 7px; border-radius:var(--radius-chip); border:1.5px solid var(--accent); color:var(--ink); }
/* Try for real: the take-along card, the calendar form, the check-in, the tried list. */
.jy-takecard { display:flex; flex-direction:column; gap:10px; padding:14px 16px; border-radius:var(--radius-card); border:1.5px dashed var(--line-strong); background:var(--surface); }
.jy-takeh { font-family:var(--font-serif); font-size:1.1rem; margin:0; }
.jy-takelist { margin:0; display:flex; flex-direction:column; gap:6px; line-height:1.4; }
.jy-takelist > div { display:flex; gap:10px; align-items:baseline; }
.jy-takelist dt { flex:none; width:6.2em; font-size:.85rem; font-weight:700; color:var(--ink2); }
.jy-takelist dd { margin:0; min-width:0; }
.jy-takeacts { gap:8px 10px; }
.jy-takestatus:empty, #jyRemStatus:empty, #jyTriedStatus:empty { display:none; }
.jy-remind { margin:0; }
.jy-remindform { display:flex; flex-direction:column; gap:10px; padding-bottom:14px; }
.jy-remindform .jy-sub { font-size:.92rem; }
.jy-remindrow { display:flex; flex-wrap:wrap; gap:10px 14px; }
.jy-remlbl { display:block; font-size:.85rem; font-weight:700; color:var(--ink2); margin-bottom:4px; }
.jy-remind select { font:inherit; color:var(--ink); background:var(--surface); border:1.5px solid var(--line-strong); border-radius:var(--radius-btn); padding:9px 12px; min-height:44px; max-width:100%; }
.jy-remind select:focus { border-color:var(--accent); }
.jy-checkin { display:flex; flex-direction:column; gap:8px; padding:10px 14px; border-radius:var(--radius-card); background:var(--wash); }
.jy-checkin p { margin:0; }
.jy-ckchips { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; }
.jy-ckchips .linkbtn { margin-left:6px; }
.jy-triedlist { list-style:none; padding:0; }
#jyPrintCard { display:none; }
@media print {
  body.jy-print-card > *:not(#jyPrintCard) { display:none !important; }
  body.jy-print-card #jyPrintCard { display:block; }
  /* Paper colors on paper, whatever look is on screen. */
  body.jy-print-card, #jyPrintCard { color-scheme:light; background:Canvas; color:CanvasText; }
  .jy-printcard { max-width:5in; padding:16px 18px; border:1.5px dashed CanvasText; border-radius:var(--radius-card); font-size:1rem; }
  .jy-printcard h2 { font-family:var(--font-serif); font-size:1.2rem; margin:0 0 10px; }
  .jy-printcard .jy-takelist dt { color:CanvasText; }
}
@media (max-width: 480px) {
  .jy-rules li { flex-direction:column; gap:4px; }
  .jy-takelist > div { flex-direction:column; gap:0; }
}
@media (max-width: 760px) {
  .jy-continue { grid-template-columns:1fr; }
  .jy-continue .jy-art { min-height:150px; }
  .jy-twin { grid-template-columns:1fr; }
  .jy-stepart { aspect-ratio:16/9; }
  /* Phones: on a step page the story and the way to start come first; the picture follows the card. */
  .jy-steppage { gap:12px; }
  .jy-facts dt { width:4.6em; }
  .jy-steppage > * { order:4; }
  .jy-steppage > .jy-checkin, .jy-steppage > .jy-head, .jy-steppage > .jy-story, .jy-steppage > .jy-brief { order:0; }
  .jy-steppage > .jy-stepart, .jy-steppage > .jy-twin { order:2; }
  .jy-steppage .jy-title { font-size:1.5rem; }
  .jy-steppage .jy-story { font-size:1.02rem; line-height:1.5; }
}
/* Context around a story and a step: previously, what it practices, the path, what's kept, same rule elsewhere. */
.jy-prev { margin:0 0 8px; font-size:.92rem; color:var(--ink2); }
.jy-subh { font-family:var(--font-serif); font-size:1.15rem; margin:0 0 6px; }
.jy-practices ul { margin:0 0 8px; padding-left:20px; display:flex; flex-direction:column; gap:4px; }
.jy-practices .jy-sub { margin:0; }
.jy-pathfig { margin:0 0 6px; color:var(--ink2); }
.jy-path { display:block; max-width:100%; height:auto; }
.jy-pathnarrow { display:none; }
.jy-pline { fill:none; stroke:var(--line-strong); stroke-width:2; stroke-linecap:round; }
.jy-pdone { fill:var(--accent); stroke:var(--accent); stroke-width:2; }
.jy-pnext { fill:var(--surface); stroke:var(--accent); stroke-width:2.5; }
.jy-pnextdot { fill:var(--accent); }
.jy-ptodo { fill:var(--surface); stroke:var(--ink2); stroke-width:1.5; }
.jy-pathkey { display:flex; flex-wrap:wrap; gap:4px 16px; font-size:.85rem; margin-top:4px; }
.jy-pathkey span { display:inline-flex; align-items:center; gap:6px; }
.jy-another { flex-basis:100%; }
.jy-donebar .jy-another { margin:0; }
.jy-kept { display:flex; flex-direction:column; gap:8px; border-top:1px solid var(--line); padding-top:16px; }
.jy-kept .jy-sub, .jy-kept p { margin:0; }
.jy-clearask { display:flex; flex-direction:column; gap:8px; padding:14px 16px; border-radius:var(--radius-card); border:1px solid var(--line-strong); background:var(--surface); }
.jy-cleared:empty, .jy-clearask[hidden] { display:none; }
.jy-cleared { font-weight:700; }
.jy-where { display:flex; align-items:center; min-height:24px; width:max-content; max-width:100%; margin-top:2px; font-size:.85rem; color:var(--link); }
.jy-rulepage h1 { margin:4px 0 12px; }
.jy-rulepage .jy-steps a { padding:2px 0; }
@media (max-width: 600px) {
  .jy-pathwide { display:none; }
  .jy-pathnarrow { display:block; }
}
/* Getting ready for a day, and the stage-of-life question (journeys-prep.js). */
.jy-readylink { margin:8px 0 0; }
.jy-readylink .linkish { padding:6px 0; }
.jy-readylink .jy-sub { font-size:.9rem; }
.jy-stageq { font-size:1.15rem; margin:0; }
.jy-stage { display:flex; flex-direction:column; gap:10px; padding:14px 16px; border-radius:var(--radius-card); border:1px solid var(--line); background:var(--surface); }
.jy-stage .jy-stageskip { align-self:flex-start; margin:0; padding:6px 0; color:var(--ink2); }
.jy-stageline { margin:0; }
.jy-stageline .linkbtn { padding:6px 2px; }
.jy-readypick { display:flex; flex-direction:column; gap:10px; }
.jy-readypick .lbl { margin:8px 0 0; }
.jy-readypick .jy-choices .btn, .jy-stage .jy-choices .btn { text-align:left; }
@media (max-width: 480px) { .jy-readypick .jy-choices .btn, .jy-stage .jy-choices .btn { padding:9px 14px; } }
.jy-readypick .keptnote { margin:0; }
.jy-readypick input[type="date"] { font:inherit; color:var(--ink); background:var(--surface); border:1.5px solid var(--line-strong); border-radius:10px; padding:10px 12px; max-width:240px; }
.jy-readypick input[type="date"]:focus { border-color:var(--accent); outline:2px solid var(--accent); outline-offset:1px; }
.jy-readyplan { list-style:none; margin:14px 0 0; padding:0; display:flex; flex-direction:column; gap:18px; }
.jy-readyday h3 { font-size:1rem; margin:0 0 8px; }
.jy-readyitems { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.jy-readyitem { display:flex; flex-direction:column; gap:6px; padding:14px 16px; border-radius:var(--radius-card); border:1px solid var(--line); background:var(--surface); }
.jy-readyitem.done { border-color:var(--accent); }
.jy-readyitem b { font-family:var(--font-serif); font-size:1.1rem; }
.jy-readyitem .jy-kicker { color:var(--ink2); }
.jy-readyitem .jy-actions { margin-top:4px; }
.jy-donetoggle.btn.btn[aria-pressed="true"] { background:var(--wash); color:var(--ink); box-shadow:inset 0 0 0 2px var(--accent); }
.jy-donetoggle[aria-pressed="true"]::before { content:"✓"; margin-right:6px; color:var(--accent); font-weight:700; }
.jy-theday { padding:14px 16px; border-radius:var(--radius-card); background:var(--wash); }
.jy-theday p { margin:0; }
