/* ============================================================
   LUTHER'S WORLD — SHELL + COMPONENT LAYER
   The Daily page uses the same shared .topbar masthead as every
   other page (built by shell.js so the player pill and settings
   button can live in it) — no separate rail or bottom bar.
   ============================================================ */

/* ── app frame ─────────────────────────────────────────────── */
body.lw-shelled { background: var(--page); }
.lw-main { max-width: 960px; margin: 0 auto; padding: 0 20px 60px; }
@media(max-width:560px){ .lw-main { padding: 0 14px 60px; } }

/* ── header utility buttons (player switcher + settings, sit in .tb-side) ── */
.lw-toppill { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--paper); border: none; border-radius: 999px; font-family: var(--body-btn); font-weight: 600; font-size: .82rem; color: var(--ink); cursor: pointer; min-height: 36px; box-shadow: var(--shadow-btn); transition: box-shadow .15s ease, transform .1s ease, background .15s; }
.lw-toppill:hover { background: var(--page); box-shadow: var(--shadow-btn-hover); transform: translateY(-1px); }
.lw-toppill:active { box-shadow: var(--shadow-btn-press); transform: translateY(0); }
.lw-toppill .av { font-size: 1rem; line-height: 1; }
.lw-topset { width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: none; cursor: pointer; font-size: .9rem; box-shadow: var(--shadow-btn); transition: box-shadow .15s ease, transform .1s ease, background .15s; }
.lw-topset:hover { background: var(--page); box-shadow: var(--shadow-btn-hover); transform: translateY(-1px); }
.lw-topset:active { box-shadow: var(--shadow-btn-press); transform: translateY(0); }
@media(max-width:600px){.lw-toppill span:last-child{display:none}.lw-toppill{padding:6px 10px;min-height:40px}.lw-topset{width:40px;height:40px}}
/* language switch (Español / English), same family as the buttons beside it */
.lw-toplang { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 13px; background: var(--paper); border-radius: 999px; font-family: var(--body-btn); font-weight: 700; font-size: .82rem; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-btn); transition: box-shadow .15s ease, transform .1s ease, background .15s; }
.lw-toplang:hover { background: var(--page); box-shadow: var(--shadow-btn-hover); transform: translateY(-1px); }
.lw-toplang:active { box-shadow: var(--shadow-btn-press); transform: translateY(0); }
.lw-lang-short { display: none; }
@media(max-width:600px){ .lw-lang-long{display:none} .lw-lang-short{display:inline} .lw-toplang{padding:0 12px;height:40px} }

/* ── panels (players, settings) — drop down from the header ── */
.lw-panel { position: absolute; top: calc(100% + 8px); right: 0; left: auto; bottom: auto; width: 300px; max-width: calc(100vw - 28px); background: var(--paper); border: none; border-radius: var(--radius-md); padding: 16px; z-index: 60; box-shadow: var(--shadow-lg); }
.lw-panel-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .92rem; margin-bottom: 12px; }
.lw-panel-x { width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--page); cursor: pointer; color: var(--ink2); font-size: .78rem; transition: background .15s; }
.lw-panel-x:hover { background: var(--rule); }
.lw-plist { display: flex; flex-direction: column; gap: 6px; }
.lw-prow { display: flex; align-items: center; gap: 6px; }
.lw-ppick { flex: 1; display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: var(--paper); border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--body); text-align: left; min-height: 46px; box-shadow: var(--shadow-btn); transition: box-shadow .15s ease, transform .1s ease, background .15s; }
.lw-ppick:hover { background: var(--page); box-shadow: var(--shadow-btn-hover); transform: translateY(-1px); }
.lw-ppick:active { box-shadow: var(--shadow-btn-press); transform: translateY(0); }
.lw-prow.on .lw-ppick { background: var(--site-acc-soft); }
.lw-ppick .av { font-size: 1.2rem; line-height: 1; }
.lw-ppick .nm { font-weight: 700; font-size: .88rem; flex: 1; }
.lw-ppick .ct { font-size: .72rem; font-weight: 700; color: var(--ink3); }
.lw-prename { flex: 1; padding: 10px 12px; border: 2px solid var(--site-acc); border-radius: var(--radius-sm); font-family: var(--body); font-size: .88rem; font-weight: 700; min-height: 46px; outline: none; background: var(--paper); }
.lw-pmini { padding: 8px 10px; background: var(--paper); border: none; border-radius: var(--radius-sm); color: var(--ink3); font-family: var(--body-btn); font-size: .74rem; font-weight: 600; cursor: pointer; min-height: 38px; box-shadow: var(--shadow-btn); transition: box-shadow .15s ease, transform .1s ease, background .15s, color .15s; }
.lw-pmini:hover { background: var(--page); color: var(--ink); box-shadow: var(--shadow-btn-hover); transform: translateY(-1px); }
.lw-pmini:active { box-shadow: var(--shadow-btn-press); transform: translateY(0); }
.lw-pmini.danger:hover { background: #fceaea; color: #7a2b2b; }
.lw-padd { width: 100%; margin-top: 8px; padding: 11px; background: var(--page); border: 2px dashed var(--rule); border-radius: var(--radius-sm); color: var(--ink2); font-family: var(--body-btn); font-weight: 600; font-size: .85rem; cursor: pointer; min-height: 46px; transition: border-color .15s, color .15s; }
.lw-padd:hover { border-color: var(--site-acc); color: var(--ink); }
.lw-pnote { font-size: .76rem; color: var(--ink3); line-height: 1.5; margin-top: 10px; }
.lw-srow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.lw-slabel { font-weight: 700; font-size: .88rem; }
.lw-toggle { padding: 8px 18px; border: none; border-radius: var(--radius-sm); background: var(--paper); font-family: var(--body-btn); font-weight: 600; font-size: .82rem; color: var(--ink3); cursor: pointer; min-height: 42px; min-width: 66px; box-shadow: var(--shadow-btn); transition: box-shadow .15s ease, transform .1s ease, background .15s, color .15s; }
.lw-toggle:hover { background: var(--page); box-shadow: var(--shadow-btn-hover); transform: translateY(-1px); }
.lw-toggle:active { box-shadow: var(--shadow-btn-press); transform: translateY(0); }
.lw-toggle.on { background: var(--grad-acc, var(--site-acc)); color: #fff; box-shadow: var(--shadow-btn-acc, none); }
.lw-seg { display: flex; gap: 4px; }
.lw-sz { width: 42px; min-height: 42px; border: none; border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; font-family: var(--body-btn); font-weight: 600; color: var(--ink3); box-shadow: var(--shadow-btn); transition: box-shadow .15s ease, transform .1s ease, background .15s; }
.lw-sz:hover { background: var(--page); box-shadow: var(--shadow-btn-hover); transform: translateY(-1px); }
.lw-sz:active { box-shadow: var(--shadow-btn-press); transform: translateY(0); }
.lw-sz.s1 { font-size: .76rem; } .lw-sz.s2 { font-size: .92rem; } .lw-sz.s3 { font-size: 1.12rem; }
.lw-sz.on { background: var(--grad-acc, var(--site-acc)); color: #fff; box-shadow: var(--shadow-btn-acc, none); }

/* ── shared components ─────────────────────────────────────── */

/* page header */
.lw-head { padding: 28px 0 8px; }
.lw-eyebrow { font-size:.85rem; font-weight: 700; letter-spacing:0; text-transform:none; color: var(--site-acc); margin-bottom: 8px; }
.lw-title { font-family: var(--body); font-size: 1.75rem; font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
.lw-sub { font-size: .98rem; color: var(--ink2); line-height: 1.6; margin-top: 8px; max-width: 52ch; }

/* section header */
.lw-sec { margin: 30px 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lw-sec h2 { font-size: 1.08rem; font-weight: 700; }
.lw-sec .lw-secsub { font-size: .86rem; color: var(--ink3); display: block; }
.lw-sec a { font-size: .86rem; font-weight: 700; color: var(--site-acc); text-decoration: none; }

/* CTA card: full width, tinted, no left border */
.lw-cta { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--paper); border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: box-shadow .18s ease, transform .18s ease; }
.lw-cta:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lw-cta:active { box-shadow: var(--shadow-sm); transform: translateY(0); }
.lw-cta .lw-ctamotif { font-size: 2.4rem; line-height: 1; flex: none; }
.lw-cta .lw-ctabody { flex: 1; min-width: 0; }
.lw-cta .lw-ctakicker { display: block; font-size:.85rem; font-weight: 700; letter-spacing:0; text-transform:none; color: var(--ink3); }
.lw-cta .lw-ctaname { display: block; font-family: var(--body); font-size: 1.18rem; font-weight: 700; line-height: 1.25; margin-top: 3px; }
.lw-cta .lw-ctaline { display: block; font-size: .88rem; color: var(--ink2); margin-top: 3px; line-height: 1.45; }
.lw-cta .lw-ctago { font-size: 1.2rem; color: var(--ink4); flex: none; transition: transform .15s; }
.lw-cta:hover .lw-ctago { transform: translateX(2px); }

/* trail stop cards */
.lw-trail { display: grid; gap: 12px; }
@media (min-width: 620px) { .lw-trail { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .lw-trail { grid-template-columns: 1fr 1fr 1fr; } }

/* stop card — column layout, Apple-native feel */
.lw-stop { position: relative; display: flex; flex-direction: column; padding: 14px 14px 12px; background: var(--paper); border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: box-shadow .18s ease, transform .15s ease; }
.lw-stop:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lw-stop:active { box-shadow: var(--shadow-btn-press); transform: scale(.985); transition-duration: .08s; }
.lw-stop.earned { box-shadow: 0 0 0 1.5px var(--gold), var(--shadow-sm); }
.lw-stop.earned:hover { box-shadow: 0 0 0 1.5px var(--gold), var(--shadow-lg); transform: translateY(-2px); }

/* tinted variant — the world's own accent fills the card instead of
   staying confined to the icon tile, so the 11-world color system
   carries real visual weight on the trail, not just a small swatch. */
.lw-stop.tinted { background: var(--w-tint, var(--paper2)); }
.lw-stop.tinted .lw-stopmotif { background: var(--acc, var(--site-acc)); }
.lw-stop.tinted .lw-stoparch { color: var(--acc-deep, var(--ink3)); }
.lw-stop.tinted .lw-stopname { color: var(--found-ink, var(--ink)); }
.lw-stop.tinted .lw-stopline { color: color-mix(in srgb, var(--found-ink, var(--ink2)) 78%, transparent); }

/* icon tile + archetype row */
.lw-stoptop { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.lw-stopmotif { width: 36px; height: 36px; border-radius: 9px; flex: none; background: var(--s-ico, var(--paper2)); display: flex; align-items: center; justify-content: center; font-size: 19px; line-height: 1; }
.lw-stopmotif svg { width: 19px; height: 19px; stroke-width: 2; }
.lw-stoparch { font-size:.85rem; font-weight: 700; letter-spacing:0; text-transform:none; color: var(--ink3); line-height: 1.2; }

/* content */
.lw-stopbody { display: contents; }
.lw-stopname { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.25; margin-bottom: 4px; }
.lw-stopline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; color: var(--ink2); line-height: 1.45; }

/* chevron + earned stamp row */
.lw-stopfoot { display: flex; align-items: center; justify-content: flex-end; margin-top: 10px; gap: 6px; }
.lw-stopchev { font-size: 1.1rem; color: var(--ink3); line-height: 1; }
.lw-stopstamp { font-size: .68rem; font-weight: 700; color: var(--gold-deep); background: var(--gold-soft); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; margin-right: auto; }
.lw-stopnum { display: none; }

/* game tiles inside a world */
.lw-tiles { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .lw-tiles { grid-template-columns: repeat(3, 1fr); } }
.lw-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; background: var(--paper); border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: box-shadow .18s ease, transform .18s ease; min-height: 100px; }
.lw-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lw-tile:active { box-shadow: var(--shadow-sm); transform: translateY(0); }
.lw-tileico { font-size: 1.3rem; line-height: 1; }
.lw-tilename { font-weight: 700; font-size: .95rem; }
.lw-tiledesc { font-size: .82rem; color: var(--ink2); line-height: 1.4; }
.lw-tiledone { margin-top: auto; padding-top: 8px; font-size: .72rem; font-weight: 700; color: var(--gold-deep); }

/* universal progress bar */
.lw-prog { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.lw-progtrack { flex: 1; height: 6px; background: var(--page); border-radius: 999px; overflow: hidden; }
.lw-progfill { height: 100%; background: var(--acc, var(--site-acc)); border-radius: 999px; transition: width .3s ease; }
.lw-progtext { font-size: .8rem; font-weight: 700; color: var(--ink3); white-space: nowrap; }

/* game board surface */
.lw-board { background: var(--paper); border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px; }

/* ── reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lw-stop, .lw-cta, .lw-tile, .card { transition: none; }
  .lw-stop:hover, .lw-cta:hover, .lw-tile:hover, .card:hover { transform: none; }
}

/* ── hub pages (Learn, Play, Guides): shelves of cards from catalog.js ── */
.hub-jump{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
.hub-jump a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:var(--paper);box-shadow:var(--shadow-sm);color:var(--ink);font-weight:700;text-decoration:none;font-size:.92rem}
.hub-jump a:hover{box-shadow:var(--shadow-lg)}
.hub-shelf{scroll-margin-top:96px}
/* Lesson topic chips: straight to the book that teaches it (Home and Learn) */
.lw-topics{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 14px}
.lw-topics a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:var(--site-acc-soft,#f3ecf2);color:var(--site-acc,#5b2a54);font-weight:700;font-size:.9rem;text-decoration:none;border:1.5px solid transparent}
.lw-topics a:hover{border-color:var(--site-acc,#5b2a54)}
.lw-topics-lab{flex-basis:100%;margin:0;font-size:.85rem;font-weight:700;color:var(--ink2)}
.hub-group{font-size:.85rem;font-weight:700;letter-spacing:0;text-transform:none;color:var(--ink3);margin:20px 0 10px}
.hub-shelf .lw-sec{margin-top:34px}
.hub-shelf .lw-stopline{display:block;-webkit-line-clamp:unset;overflow:visible}

/* home: one clear main card, a smaller second option */
.lw-cta.lw-cta-main{box-shadow:0 0 0 2px var(--site-acc),var(--shadow-md,0 4px 14px rgba(36,26,34,.08))}
.lw-cta.lw-cta-small{padding:14px 18px}
.lw-cta.lw-cta-small .lw-ctaname{font-size:1.05rem}
.lw-cta.lw-cta-small .lw-ctamotif svg{width:30px;height:30px}

.lw-add-short{display:none}

/* dark mode: accent text on the newer pages uses the light accent */
html[data-theme="dark"] .gw-say,
html[data-theme="dark"] .sp-num,
html[data-theme="dark"] .sp-state,
html[data-theme="dark"] ol.kt>li::before,
html[data-theme="dark"] .gw-search input:focus{color:var(--site-acc-text,#e3bddb)}
html[data-theme="dark"] .sp-step.sp-done .sp-num{background:var(--site-acc-text,#e3bddb);color:#1b1519}
html[data-theme="dark"] .gw-item.hit{box-shadow:0 0 0 2.5px var(--site-acc-text,#e3bddb),var(--shadow-sm)}

/* ============================================================
   PART 43 · INSIGHTS (trail stops), TIMELINE, FEELINGS
   Same tokens as everything else, so nothing reads as an add-on.
   ============================================================ */

/* scene card: who, where, when, before the story */
.ins-scene { margin: 22px 0 6px; background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 18px 20px; max-width: 66ch; }
.ins-kicker { display: block; font-size:.85rem; font-weight: 700; letter-spacing:0; text-transform:none; color: var(--acc-deep, var(--site-acc)); margin-bottom: 10px; }
.ins-scene dl { margin: 0; display: grid; gap: 12px; }
.ins-scene dt { font-size:.85rem; font-weight: 700; letter-spacing:0; text-transform:none; color: var(--ink3); margin-bottom: 3px; }
.ins-scene dd { margin: 0; font-size: .98rem; line-height: 1.55; color: var(--ink); }
.ins-cast { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ins-cast li { line-height: 1.5; }
.ins-cast b { color: var(--ink); }
.ins-cast span { color: var(--ink2); }
.ins-tl { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .9rem; font-weight: 700; color: var(--site-acc); text-decoration: none; min-height: 44px; }
.ins-tl:hover { text-decoration: underline; }
.ins-tl svg { width: 18px; height: 18px; flex: none; }

/* imagine the scene: clearly labeled as imagination */
.ins-imagine { margin: 4px 0 8px; max-width: 66ch; background: var(--acc-soft, var(--site-acc-soft)); border-radius: var(--radius-md); padding: 14px 18px; }
.ins-imagine .ins-ilabel { display: block; font-size:.85rem; font-weight: 700; letter-spacing:0; text-transform:none; color: var(--acc-deep, var(--site-acc-deep)); margin-bottom: 4px; }
.ins-imagine .ins-ilabel em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink2); }
.ins-imagine p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ink); }

/* go deeper */
.ins-deep { margin: 30px 0 0; }
.ins-deep .lw-acc { margin-top: 10px; }
.ins-pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ins-pairs li { background: var(--paper2); border-radius: var(--radius-sm); padding: 12px 14px; }
.ins-pairs .ins-q { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.45; }
.ins-pairs .ins-tag { display: inline-block; font-size:.85rem; font-weight: 700; letter-spacing:0; text-transform:none; color: var(--ink3); margin-right: 6px; }
.ins-pairs .ins-a { display: block; color: var(--ink2); line-height: 1.55; }
.ins-felt { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ins-felt th { text-align: left; font-size:.85rem; letter-spacing:0; text-transform:none; color: var(--ink3); padding: 0 10px 8px 0; }
.ins-felt td { padding: 9px 10px 9px 0; border-top: 1px solid var(--rule); vertical-align: top; line-height: 1.45; color: var(--ink2); }
.ins-felt td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 520px) {
  .ins-felt thead { display: none; }
  .ins-felt tr { display: block; border-top: 1px solid var(--rule); padding: 9px 0; }
  .ins-felt td { display: block; border: 0; padding: 0; white-space: normal; }
  .ins-felt td:nth-child(2) { color: var(--ink); font-weight: 600; }
}

/* your turn: private, nothing saved */
.ins-turn .ins-prompt { font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.45; color: var(--ink); margin: 0 0 12px; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-chip { font-family: var(--body-btn); font-weight: 600; font-size: .92rem; background: var(--paper); color: var(--ink); border: none; border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; box-shadow: var(--shadow-btn); transition: box-shadow .15s ease, transform .1s ease, background .15s; text-align: left; }
.ins-chip:hover { box-shadow: var(--shadow-btn-hover); transform: translateY(-1px); }
.ins-chip:active { box-shadow: var(--shadow-btn-press); transform: translateY(0); }
.ins-chip[aria-pressed="true"] { background: var(--acc-soft, var(--site-acc-soft)); box-shadow: 0 0 0 2px var(--acc, var(--site-acc)); }
.ins-chip:focus-visible { outline: 3px solid var(--site-acc); outline-offset: 2px; }
.ins-reply { margin: 14px 0 0; background: var(--gold-soft); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); line-height: 1.6; }
.ins-reply a { color: var(--site-acc); font-weight: 700; }
.ins-private { margin: 12px 0 0; font-size: .84rem; color: var(--ink3); }

/* scene-by-scene story links (Bible Stories stop, timeline) */
.ins-stories { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; max-width: 66ch; }
.ins-stories li { padding: 12px 16px; background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.ins-sh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ins-stories b { font-weight: 700; }
.ins-sh span { font-size: .86rem; color: var(--ink3); }
.ins-sl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ins-sl a { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); text-decoration: none; color: var(--acc-deep); font-weight: 700; font-size: .92rem; line-height: 1.25; }
.ins-sl a:hover { border-color: var(--ink3); }
.ins-sl a span { font-weight: 400; font-size: .8rem; color: var(--ink3); }

/* ---------- timeline ---------- */
.tl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.tl-tab { font-family: var(--body-btn); font-weight: 700; font-size: .95rem; background: var(--paper); color: var(--ink2); border: none; border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; box-shadow: var(--shadow-btn); text-decoration: none; display: inline-flex; align-items: center; }
.tl-tab[aria-selected="true"] { background: var(--site-acc); color: #fff; box-shadow: var(--shadow-btn); }
.tl-tab:focus-visible { outline: 3px solid var(--site-acc); outline-offset: 2px; }
.tl-panel { margin-top: 14px; }
.tl-panel[hidden] { display: none; }
.tl-panel h2 { font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1.25; margin: 10px 0 4px; }
.tl-panel .tl-sub { color: var(--ink2); font-size: .96rem; line-height: 1.55; margin: 0 0 14px; max-width: 60ch; }
.tl-bandwrap { background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 16px 16px 10px; }
.tl-band { position: relative; padding: 18px 8px 0; }
.tl-track { position: relative; height: 18px; border-radius: 9px; background: var(--paper2); }
.tl-seg { position: absolute; top: 0; height: 18px; background: var(--c); border-radius: 0; display: block; }
.tl-seg:first-child { border-radius: 9px 0 0 9px; }
.tl-seg:last-of-type { border-radius: 0 9px 9px 0; }
.tl-seg:hover { filter: brightness(1.1); }
.tl-seg:focus-visible { outline: 3px solid var(--site-acc); outline-offset: 3px; z-index: 2; }
.tl-seg.gap { background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 11px); }
.tl-seg.unknown { background: linear-gradient(90deg, transparent, var(--c)); }
.tl-dot { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--ink2); z-index: 1; pointer-events: none; }
.tl-dot.big { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--gold); box-shadow: 0 0 0 3px var(--paper), 0 1px 3px rgba(0,0,0,.25); }
.tl-ticks { position: relative; height: 26px; margin-top: 6px; font-size: .78rem; color: var(--ink3); font-variant-numeric: tabular-nums; }
.tl-ticks span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.tl-ticks span:first-child { transform: none; }
.tl-ticks span:last-child { transform: translateX(-100%); }
.tl-turns { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; color: var(--ink2); }
.tl-turns li { display: inline-flex; align-items: center; gap: 6px; }
.tl-turns li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.tl-turns b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--ink3); }
.tl-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { display: inline-block; width: 22px; height: 8px; border-radius: 4px; background: var(--ink4); }
.tl-legend i.dot { width: 10px; height: 10px; border-radius: 50%; }
.tl-legend i.big { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); }
.tl-legend i.dash { background: repeating-linear-gradient(90deg, var(--ink4) 0 4px, transparent 4px 7px); }
.tl-legend i.fade { background: linear-gradient(90deg, transparent, var(--ink4)); }
.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.tl-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--paper); border-radius: 999px; padding: 8px 14px 8px 10px; min-height: 44px; box-shadow: var(--shadow-btn); }
.tl-chip i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.tl-chip:hover { box-shadow: var(--shadow-btn-hover); }
.tl-eras { display: grid; gap: 14px; margin-top: 18px; }
.tl-era { position: relative; background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 18px 20px 18px 24px; scroll-margin-top: 90px; overflow: hidden; }
.tl-era::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--era); }
.tl-era.flash { box-shadow: 0 0 0 2px var(--era), var(--shadow-md); }
.tl-era-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tl-range { font-size:.85rem; font-weight: 700; letter-spacing:0; text-transform:none; color: var(--ink3); }
.tl-turn { font-size:.85rem; font-weight: 700; letter-spacing:0; text-transform:none; color: var(--gold-deep); background: var(--gold-soft); padding: 3px 9px; border-radius: 999px; }
.tl-era h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 600; line-height: 1.25; margin: 6px 0 6px; }
.tl-era p { margin: 0; color: var(--ink2); line-height: 1.65; max-width: 64ch; }
.tl-cols { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 760px) { .tl-cols { grid-template-columns: 1.3fr 1fr; } }
.tl-h { font-size:.85rem; font-weight: 700; letter-spacing:0; text-transform:none; color: var(--ink3); margin: 0 0 6px; }
.tl-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tl-events li { display: grid; grid-template-columns: auto 1fr; gap: 10px; line-height: 1.45; color: var(--ink); font-size: .95rem; }
.tl-events b { font-variant-numeric: tabular-nums; color: var(--ink3); font-weight: 700; min-width: 4.6em; }
.tl-events li.nodate { grid-template-columns: 1fr; }
.tl-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .95rem; }
.tl-people span { color: var(--ink3); }
.tl-big { margin-top: 14px; background: var(--gold-soft); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--ink); line-height: 1.55; }
.tl-big b { display: block; font-size:.85rem; letter-spacing:0; text-transform:none; color: var(--gold-deep); }
.tl-links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 620px) { .tl-links { grid-template-columns: 1fr 1fr; } }
.tl-links a { display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; min-height: 52px; background: var(--paper2); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.tl-links a:hover { background: var(--site-acc-soft); }
.tl-links b { font-weight: 700; line-height: 1.3; }
.tl-links span { font-size: .84rem; color: var(--ink3); line-height: 1.35; }
.tl-links .got b::after { content: "  \2713"; color: var(--gold-deep); }
.tl-next { display: inline-flex; margin: 22px 0 0; font-weight: 700; color: var(--site-acc); text-decoration: none; min-height: 44px; align-items: center; }

/* ---------- feelings ---------- */
.fe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; }
@media (min-width: 760px) { .fe-grid { grid-template-columns: repeat(3, 1fr); } }
.fe-tile { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; min-height: 76px; background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: box-shadow .18s ease, transform .15s ease; }
.fe-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.fe-tile b { font-size: 1.05rem; }
.fe-tile span { font-size: .86rem; color: var(--ink2); line-height: 1.4; }
.fe-tile.fe-urgent { grid-column: 1 / -1; background: var(--gold-soft); }
.fe-sec { scroll-margin-top: 90px; margin-top: 34px; }
.fe-sec h2 { font-family: var(--display); font-size: 1.4rem; font-weight: 600; margin: 0 0 6px; }
.fe-word { margin: 0 0 14px; max-width: 62ch; color: var(--ink2); line-height: 1.65; font-size: 1rem; }
.fe-top { display: inline-flex; margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--site-acc); text-decoration: none; min-height: 44px; align-items: center; }
.fe-care { margin-top: 34px; scroll-margin-top: 90px; background: var(--paper); border-radius: var(--radius-md); box-shadow: 0 0 0 2px var(--gold), var(--shadow-sm); padding: 18px 20px; }
.fe-care h2 { font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin: 0 0 8px; }
.fe-care p { margin: 0 0 10px; line-height: 1.6; color: var(--ink2); max-width: 60ch; }
.fe-care .row { display: flex; flex-wrap: wrap; gap: 10px; }

/* home: two more ways in */
.lw-forparents { margin: 12px 4px 0; font-size: .9rem; }
.lw-forparents a { color: var(--site-acc); font-weight: 700; text-decoration: none; border-bottom: none; display: inline-flex; align-items: center; min-height: 44px; }
html[data-theme="dark"] .lw-forparents a { color: var(--site-acc-text, #e3bddb); }
.lw-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
/* Today's Four spans the row; the three quick doors below it sit as compact tiles */
.lw-ways .lw-way:not(#todayWay) { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 12px; }
.lw-ways .lw-way:not(#todayWay) b { font-size: .95rem; }
.lw-ways .lw-way:not(#todayWay) .lw-way-s { margin-top: 0; }
@media (max-width: 480px) { .lw-ways .lw-way:not(#todayWay) .lw-way-s { display: none; } }
.lw-ways #todayWay { grid-column: 1 / -1; box-shadow: 0 0 0 1.5px var(--gold), var(--shadow-sm); }
.lw-ways #todayWay svg { stroke: var(--gold-deep, #6e5412); }
.lw-way { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); min-height: 64px; transition: box-shadow .18s ease, transform .15s ease; }
.lw-way:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lw-way svg { width: 26px; height: 26px; flex: none; stroke: var(--site-acc); }
.lw-way b { display: block; font-size: 1rem; line-height: 1.25; }
.lw-way-t { min-width: 0; }
.lw-way-s { display: block; font-size: .82rem; color: var(--ink2); line-height: 1.35; margin-top: 2px; }
@media (max-width: 400px) { .lw-way { padding: 12px 14px; } .lw-ways .lw-way:not(#todayWay) { padding: 10px 10px; } }

html[data-theme="dark"] .ins-tl, html[data-theme="dark"] .tl-next, html[data-theme="dark"] .fe-top,
html[data-theme="dark"] .ins-reply a, html[data-theme="dark"] .ins-private a { color: var(--site-acc-text, #e3bddb); }
html[data-theme="dark"] .lw-way svg { stroke: var(--site-acc-text, #e3bddb); }
html[data-theme="dark"] .tl-tab[aria-selected="true"] { background: #7a3d70; }
@media (prefers-reduced-motion: reduce) {
  .fe-tile, .lw-way, .ins-chip { transition: none; }
  .fe-tile:hover, .lw-way:hover, .ins-chip:hover { transform: none; }
}
@media print {
  .ins-chips, .tl-tabs, .tl-chips { display: none; }
  .tl-panel[hidden] { display: block; }
}

/* ============================================================
   PART 47 · HOW I LEARN BEST
   ============================================================ */
.lw-lhead { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; }
.lw-lhead b { font-size: .92rem; }
.lw-lhead span { font-size: .8rem; color: var(--ink3); line-height: 1.4; }
.lw-lrow { align-items: flex-start; gap: 10px; }
.lw-ltext { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lw-ldesc { font-size: .78rem; color: var(--ink3); line-height: 1.4; }
.lw-lsep { height: 1px; background: var(--rule); margin: 10px 0 12px; }
.lw-panel { max-height: calc(100vh - 120px); overflow-y: auto; }

/* Easy reading: spacing and one simple font (evidence-based help for dyslexia) */
html.lw-easy { --display: var(--body); --story: var(--body); }
html.lw-easy body { letter-spacing: .03em; word-spacing: .14em; }
html.lw-easy p, html.lw-easy li, html.lw-easy dd, html.lw-easy .lw-stopline, html.lw-easy .tl-era p { line-height: 1.85; }
html.lw-easy em, html.lw-easy i { font-style: normal; }
html.lw-easy [style*="Source Serif"], html.lw-easy .tl-panel h2, html.lw-easy .tl-era h3 { font-family: var(--body) !important; }
html.lw-easy .wd-story p, html.lw-easy .fe-word { max-width: 60ch; }

/* Focus: extras stay tucked away until asked for */
html.lw-focus:not(.lw-showall) .ins-imagine,
html.lw-focus:not(.lw-showall) .ins-deep,
html.lw-focus:not(.lw-showall):not(.lw-together) .wd-kitchen { display: none; }
.lw-showmore { display: none; }
html.lw-focus .lw-showmore { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 0; min-height: 44px; }
html.lw-focus.lw-showall .lw-showmore { display: none; }

/* ---------- sister-site hand-off (part 50) ---------- */
.lw-sib { margin: 28px 0 8px; padding: 18px 20px; background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); max-width: 66ch; }
.lw-sib h2 { font-size: var(--t-h3, 1.2rem); margin: 0 0 6px; }
.lw-sib p { margin: 0; color: var(--ink2); line-height: 1.6; }
.lw-sib-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.wd-expect { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 12px 0 0; max-width: 52ch; font-size: .88rem; color: var(--ink2); line-height: 1.5; }
.wd-x-m { font-weight: 700; color: var(--ink3); }
.wd-x-h { background: var(--gold-soft); border-radius: 10px; padding: 6px 12px; }

/* ---------- About: sister sites (part 51) ---------- */
.ab-sis { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ab-sis a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); text-decoration: none; border-bottom: none; color: var(--ink); }
.ab-sis a:hover { box-shadow: var(--shadow-md); }
.ab-sis b { font-weight: 700; color: var(--acc-deep); }
.ab-sis span { font-weight: 400; font-size: .92rem; color: var(--ink2); line-height: 1.5; }

/* Family link note (Phase 1, Oct 2026): one quiet line pointing to a sister
   site where it owns the topic. Same placement and voice on every family site. */
.lw-sib-note { margin: 10px 0 0; font-size: .95rem; line-height: 1.5; color: var(--ink2); }
.lw-sib-note a { color: var(--site-acc); font-weight: 700; text-underline-offset: 3px; }

/* ── week ring (days practiced, Sunday to Saturday; never a streak) ── */
.lw-week { display: flex; gap: 8px; align-items: flex-end; justify-content: center; }
.lw-week-d { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 34px; }
.lw-week-d i { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--paper2); box-shadow: inset 0 0 0 2px var(--rule); transition: transform .2s ease, background .2s ease; }
.lw-week-d.wk-done i { background: var(--site-acc); box-shadow: inset 0 0 0 2px var(--site-acc); position: relative; }
.lw-week-d.wk-done i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.lw-week-d.wk-today i { box-shadow: inset 0 0 0 2px var(--gold); }
.lw-week-d.wk-today.done i { box-shadow: inset 0 0 0 2px var(--site-acc), 0 0 0 3px var(--gold-soft); }
.lw-week-d.wk-future i { opacity: .55; }
.lw-week-d b { font-size: .72rem; font-weight: 700; color: var(--ink3); letter-spacing: 0; }
.lw-week-d.wk-today b { color: var(--ink); }
.lw-week-line { text-align: center; font-size: .86rem; color: var(--ink2); margin: 8px 0 0; }
.lw-week-card { background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 16px 18px 14px; }
.lw-week-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 0 0 12px; text-align: center; color: var(--ink); }
html[data-theme="dark"] .lw-week-d.wk-done i::after { border-color: var(--page); }

/* ── share card (spoiler-free result, same look on every game) ── */
.lw-share { background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 16px 18px; max-width: 420px; margin: 14px auto 0; text-align: center; }
.lw-share-grid { font-size: 1.45rem; line-height: 1.35; letter-spacing: 2px; margin: 4px 0 8px; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; white-space: pre-line; }
.lw-share-title { font-family: var(--display); font-weight: 600; font-size: 1.02rem; margin: 0 0 2px; color: var(--ink); }
.lw-share-sub { font-size: .86rem; color: var(--ink3); margin: 0 0 10px; }
.lw-share-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lw-share-note { font-size: .8rem; color: var(--ink3); margin: 10px 0 0; }

/* ── a note carried in a shared link (?note=) ── */
.lw-note-banner { max-width: 960px; margin: 14px auto 0; padding: 12px 16px; background: var(--gold-soft); border: 1.5px solid var(--gold); border-radius: 14px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 1000px) { .lw-note-banner { margin-left: 14px; margin-right: 14px; } }
.lw-note-k { font-size: .78rem; font-weight: 700; color: var(--gold-deep); }
.lw-note-t { font-size: 1rem; color: var(--ink); line-height: 1.45; }

/* the header is sticky; anything a page scrolls to lands below it, not under it */
html { scroll-padding-top: 84px; scroll-padding-bottom: calc(var(--lw-tabbar-h, 0px) + 12px); }
