/* 20261112pm1 PREVIEW (not production). OneWorld History afternoon package for Jon, 12 Nov 2026. */

/* (2) Colours paragraph: a newline in the narration starts its own paragraph on the card */
#tour-text .rl-para{display:block;height:.62em}

/* (7) Sources row: "Sources: Click for full list" left, Live Fact Check + Flag Content small on the right, one line */
body:not(.owh-m) .tour-src-narr{flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 8px}
body:not(.owh-m) #tour-src-narr #tour-src{flex:1 1 auto;min-width:0;order:0}
body:not(.owh-m) #tour-src-narr #tour-src[hidden]{display:block!important;visibility:hidden}
body:not(.owh-m) #tour-src-narr #tour-src .src-list{margin-top:4px}
body:not(.owh-m) .tour-src-narr-tools{width:auto;flex:0 0 auto;margin-left:auto;order:1;justify-content:flex-end!important;flex-wrap:nowrap}
body:not(.owh-m) .tour-src-narr .tour-flag{gap:4px}
body:not(.owh-m) .tour-src-narr .tour-flag-btn{min-height:22px;padding:1px 6px;font-size:10.5px;line-height:1.2;opacity:.92}
body:not(.owh-m) #tour-src-narr #tour-src .src-toggle{white-space:nowrap}
body:not(.owh-m) #tour-src-narr:has(#tour-src .src-list:not([hidden])) #tour-src{flex-basis:100%;order:2}
body:not(.owh-m) #tour-src-narr:has(#tour-src .src-list:not([hidden])) .tour-src-narr-tools{order:1;margin-left:auto}
body:not(.owh-m) #tour-src-narr:has(#tour-src .src-list:not([hidden]))::before{content:"";order:0;flex:1 1 auto}

/* (6) the picture window has no top bar (Hide thumbnails / Hide picture / slider / dock icons); close X stays */
body.tour-left-stacked.tour-dock-float #tour-stack-split,
body.tour-left-stacked #tour-stack-thumbs,
body.tour-left-stacked #tour-stack-collapse,
body.tour-left-stacked #tour-stack-tab{display:none!important}

/* (4) text column = picture width, starting at the picture's left edge */
body.tour-left-stacked #panel.event-card.pic-col > :not(#panel-close):not(.mthumbs){max-width:var(--pic-w);box-sizing:border-box}
body.tour-left-stacked #panel.event-card.pic-col #panel-media{max-width:var(--pic-w)}
body.tour-left-stacked #panel.event-card.pic-col #panel-media .mfig figcaption{max-width:var(--pic-w)}
body.tour-left-stacked #panel.event-card.pic-col #panel-media .mfig img{margin-left:0;margin-right:auto}
body.tour-left-stacked #panel.event-card.pic-col #panel-more-body{max-width:var(--pic-w)}
body.tour-left-stacked.tour-dock-float #tour-info-dock{transition:width .18s ease, left .18s ease}

/* (4) per-photo More information */
.photo-more{margin:6px 0 10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.03)}
.photo-more h4{margin:0 0 4px;font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--accent)}
.photo-more p{margin:0 0 6px;font-size:12.5px;line-height:1.45}
.photo-more ul{margin:0 0 6px;padding-left:16px;font-size:12.5px;line-height:1.45}
.photo-more li{margin:0 0 3px}
.photo-more .photo-more-src a{color:var(--accent)}
.photo-more .photo-more-flag{color:#ffcf8a}
body.theme-light .photo-more{background:rgba(30,45,90,.03)}
body.theme-light .photo-more .photo-more-flag{color:#8a5a00}
/* (4)(10) no voice dropdown in More information; the Narrator picker in the left rail is the only chooser */
#panel .panel-narr-voice{display:none!important}
#tourbar .tour-voice{display:none!important}

/* (3) Return to the tour */
.tour-btn.tour-resume{display:block;width:100%;margin-top:8px;text-align:left;border:1px dashed var(--accent);background:rgba(255,181,71,.08);color:var(--text);border-radius:10px;padding:8px 10px;font:inherit;font-weight:600;cursor:pointer}
.tour-btn.tour-resume small{display:block;font-weight:400;color:var(--muted);margin-top:2px;font-size:11.5px}
.tour-btn.tour-resume:hover{background:rgba(255,181,71,.16)}
.tour-btn.tour-resume:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
body.theme-light .tour-btn.tour-resume{background:rgba(200,120,0,.07)}

/* (10) Narrator picker before a tour opens */
#narr-chips:empty{display:none}

/* (2) coach marks (same look as the site tour, but no dimming and the page stays clickable) */
.owh-coach{position:fixed;z-index:60;pointer-events:none;inset:0}
.owh-coach[hidden]{display:none!important}
.owh-coach-ring{position:fixed;border:2px solid var(--accent);border-radius:12px;box-shadow:0 0 0 4px rgba(255,181,71,.22),0 0 18px rgba(255,181,71,.45);pointer-events:none;animation:owhCoachPulse 1.6s ease-in-out infinite}
@keyframes owhCoachPulse{0%,100%{box-shadow:0 0 0 3px rgba(255,181,71,.18),0 0 12px rgba(255,181,71,.35)}50%{box-shadow:0 0 0 7px rgba(255,181,71,.28),0 0 22px rgba(255,181,71,.55)}}
@media (prefers-reduced-motion:reduce){.owh-coach-ring{animation:none}}
.owh-coach-card{position:fixed;pointer-events:auto;width:min(300px,calc(100vw - 24px));padding:12px 14px 10px;background:var(--card);color:var(--text);border:1px solid var(--accent);border-radius:12px;box-shadow:0 12px 36px rgba(0,0,0,.45)}
.owh-coach-card::before{content:"";position:absolute;width:12px;height:12px;background:var(--card);border-left:1px solid var(--accent);border-top:1px solid var(--accent);transform:rotate(45deg)}
.owh-coach-card[data-side="right"]::before{left:-7px;top:var(--arrow-y,18px);transform:rotate(-45deg)}
.owh-coach-card[data-side="below"]::before{top:-7px;left:var(--arrow-x,24px)}
.owh-coach-card[data-side="above"]::before{bottom:-7px;left:var(--arrow-x,24px);transform:rotate(225deg)}
.owh-coach-kicker{font-size:10.5px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:3px}
.owh-coach-body{margin:0 22px 8px 0;font-size:13.5px;line-height:1.45}
.owh-coach-x{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:8px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--text);cursor:pointer;font-size:15px;line-height:1}
.owh-coach-x:hover{background:rgba(255,255,255,.14)}
.owh-coach-x:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.owh-coach-skip{background:none;border:0;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;padding:0;text-decoration:underline}
body.theme-light .owh-coach-card{box-shadow:0 12px 28px rgba(40,60,100,.22)}

/* (9) battle clock: Pause above the duration label; the playhead is draggable */
#tl-clock-play.bc-stack{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05;gap:1px}
#tl-clock-play.bc-stack .bc-pl{font-weight:700}
#tl-clock-play.bc-stack .bc-dur{font-size:10px;opacity:.8;font-weight:500}
/* 20261112pm1: step.cardNote — its own short paragraph under the card text, not narrated */
#tour-card-note{margin:8px 0 4px;padding:6px 9px;border-left:3px solid var(--accent,#ffb547);background:rgba(255,181,71,.08);border-radius:4px;font-size:12.5px;line-height:1.42;color:var(--text)}
#tour-card-note[hidden]{display:none}
/* 20261112pm1: picture column — the card scrolls if the text runs long, so the photo keeps its size; */
body.tour-left-stacked.tour-dock-float #panel.event-card.pic-col{overflow-y:auto!important}
/* 20261112pm1b: "Restore last tour" sits directly below the left window */
#tour-restore-lost{position:fixed;z-index:30;margin:0;text-align:center;box-sizing:border-box;box-shadow:0 6px 18px rgba(0,0,0,.35);background:rgba(28,22,12,.92)}
#tour-restore-lost:hover{background:rgba(60,44,18,.95)}
body.theme-light #tour-restore-lost{background:rgba(255,246,230,.96)}
body.has-tour-lost #layers{max-height:calc(100vh - 300px)}
/* 20261112pm1d: Colours hint card (first coach card) */
.owh-coach-card.is-hint{width:min(340px,calc(100vw - 24px))}
.owh-coach-go{display:inline-block;margin:2px 12px 0 0;padding:5px 12px;border-radius:8px;border:1px solid var(--accent);background:rgba(255,181,71,.14);color:var(--text);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.owh-coach-go[hidden]{display:none}
.owh-coach-go:hover{background:rgba(255,181,71,.24)}
/* 20261112pm1a: Narrator dropdown (name + description), list floats above the page so #layers never clips it */
#layers .narr-pick .narr-chips{display:block}
.narr-dd-btn{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;text-align:left;font:inherit;color:var(--text);background:rgba(255,255,255,.06);border:1px solid var(--line);border-radius:8px;padding:5px 8px;cursor:pointer;min-height:30px}
.narr-dd-btn:hover{background:rgba(255,255,255,.1)}
.narr-dd-btn:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.narr-dd-btn .nd-txt{display:flex;flex-direction:column;min-width:0;flex:1}
.narr-dd-btn .nd-name{font-weight:600;font-size:12.5px;line-height:1.2}
.narr-dd-btn .nd-sub{font-size:10.5px;color:var(--muted);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.narr-dd-btn .nd-caret{color:var(--muted);font-size:11px}
.narr-dd-list{position:fixed;z-index:60;margin:0;padding:4px;list-style:none;overflow:auto;background:#11182c;color:var(--text);border:1px solid rgba(255,255,255,.16);border-radius:10px;box-shadow:0 14px 36px rgba(0,0,0,.5);font-size:12px;outline:none}
.narr-dd-list[hidden]{display:none}
.narr-opt{display:flex;flex-direction:column;gap:1px;padding:6px 8px;border-radius:7px;cursor:pointer;border:1px solid transparent}
.narr-opt.act,.narr-opt:hover{background:rgba(255,255,255,.08)}
.narr-opt.sel{border-color:rgba(62,199,184,.55);background:rgba(62,199,184,.12)}
.narr-opt.off{opacity:.5;cursor:not-allowed}
.narr-opt .no-name{font-weight:600;font-size:12.5px}
.narr-opt .no-chk{color:#3ec7b8}
.narr-opt .no-desc{color:var(--text);opacity:.9;line-height:1.3}
.narr-opt .no-rec{color:var(--muted);line-height:1.3;font-size:11px}
.narr-opt .no-stat{font-size:11px;line-height:1.3;color:var(--muted)}
.narr-opt .no-stat.ok{color:#3ec7b8}
.narr-opt .no-stat.miss{color:#ffb547}
.narr-foot{padding:5px 8px 3px;color:var(--muted);font-size:10.5px;border-top:1px solid var(--line);margin-top:3px}
body.theme-light .narr-dd-btn{background:#fffdf6;border-color:rgba(30,45,90,.22)}
body.theme-light .narr-dd-list{background:#fffdf6;box-shadow:0 12px 28px rgba(40,60,100,.22)}
body.theme-light .narr-opt .no-stat.miss{color:#a65f00}
/* 20261112pm1e (Jon t2235u): the opening card can be narrated: Play (and Restart) show there; Back / Next stay hidden (Begin the Tour moves on) */
body.tour-opening .tour-nav{display:flex !important;justify-content:center}
body.tour-opening .tour-nav #tour-prev,body.tour-opening .tour-nav .tour-nav-end{display:none !important}
