/* Dinos.info narrated "How to" section tours (core 0.25.0; approval row 74; briefs/handoff-section-tours-design-2026-11-15.md
   section 2; lifted from Claude Design's prototype design/phase-1/canvas-3/source/tours/tours.css). The launcher left of
   a section's full banner heading, level with it; the tour's plate docked under the banner (DNNarration.Plate, "is-walk
   is-tour", sticky by .is-walk). Tokens and mixes of them only; Montserrat and Open Sans. */

/* ================================================================ the launcher */
.dn-bh.has-tour { position: relative; }
/* level with the banner's plate: centred in the banner below its 14 px top padding (.dn-bh-in's box) */
.dn-tour-go { position: absolute; z-index: 5; left: 0; top: 14px; bottom: 0; margin: auto 0; display: inline-flex; align-items: center; gap: 0; height: 60px; padding: 4px; box-sizing: border-box;
  border: 0; border-radius: 999px; background: #121417; box-shadow: inset 0 0 0 2px #F58A1F, 0 8px 22px -10px rgba(0, 0, 0, .9); color: #F5F1E6; cursor: pointer; font: inherit; text-align: left; transition: box-shadow .2s; }
.dn-tour-go[hidden] { display: none; }
.dn-tour-face { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; }
.dn-tour-face img { display: block; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.dn-tour-badge { position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #F58A1F; box-shadow: 0 0 0 2px #121417; }
.dn-tour-badge svg { width: 13px; height: 13px; margin-left: 2px; fill: #121417; }
/* the pill: closed, the launcher is the circle alone; out (hover, focus, first view, playing) it slides out to the right */
.dn-tour-pill { display: grid; max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; padding: 0; transition: max-width .32s cubic-bezier(.2, .8, .2, 1), opacity .2s, padding .32s; }
.dn-tour-pill b { font: 700 14px/17px var(--font-heading, Montserrat, sans-serif); letter-spacing: .06em; text-transform: uppercase; color: #F5F1E6; }
.dn-tour-pill small { font: 400 12px/16px var(--font-body, 'Open Sans', sans-serif); color: #C9B79A; }
.dn-tour-go:hover .dn-tour-pill, .dn-tour-go:focus-visible .dn-tour-pill, .dn-tour-go.is-out .dn-tour-pill, .dn-tour-go.is-on .dn-tour-pill { max-width: 180px; opacity: 1; padding: 0 18px 0 12px; }
.dn-tour-go:hover { box-shadow: inset 0 0 0 2px #F58A1F, 0 0 22px -4px rgba(245, 138, 31, .7); }
.dn-tour-go:focus-visible { outline: 3px solid #F5F1E6; outline-offset: 3px; }
/* playing: Sunset Orange, the words in Slate and #3A2410 (5.93:1), the badge inverted */
.dn-tour-go.is-on { background: #F58A1F; }
.dn-tour-go.is-on .dn-tour-pill b { color: #121417; }
.dn-tour-go.is-on .dn-tour-pill small { color: #3A2410; }
.dn-tour-go.is-on .dn-tour-badge { background: #121417; box-shadow: 0 0 0 2px #F58A1F; }
.dn-tour-go.is-on .dn-tour-badge svg { fill: #F58A1F; }
/* reduced motion: no slide; the pill shows all the time */
@media (prefers-reduced-motion: reduce) {
  .dn-tour-go, .dn-tour-pill { transition: none; }
  .dn-tour-pill { max-width: 180px; opacity: 1; padding: 0 18px 0 12px; }
}

/* core 0.26.0: beside a left-aligned title (a compact heading: the fit layouts' Time Machine and Size comparison; a page's
   header band: the Timeline and the Discovery Map, whose tool sections sit below the band) the launcher is in the row, left
   of the title, level with it, its pill out all the time (as on phones): a pill sliding out there would push the title
   over or cover it */
/* /extinction/'s fit layout: its full banner sits left in the top block (beside Tip Rex's tip), so the same, from 1,280 px */
.dn-bh.is-compact.has-tour { align-items: center; }
@media screen and (min-width: 1280px) {
  .xt-top > .dn-bh.has-tour { align-items: center; justify-content: flex-start; }
  .xt-top > .dn-bh.has-tour .dn-tour-go { position: relative; top: auto; bottom: auto; left: auto; margin: 0 44px 0 0; flex: none; align-self: center; }   /* 44 px: the gap and the banner's left bone */
  .xt-top > .dn-bh.has-tour .dn-tour-pill { max-width: 180px; opacity: 1; padding: 0 18px 0 12px; transition: none; }
}
.dn-bh.is-compact.has-tour .dn-tour-go, .dn-page-head-go .dn-tour-go { position: relative; top: auto; bottom: auto; left: auto; margin: 0 16px 0 0; flex: none; align-self: center; }
.dn-bh.is-compact.has-tour .dn-tour-pill, .dn-page-head-go .dn-tour-pill { max-width: 180px; opacity: 1; padding: 0 18px 0 12px; transition: none; }
.dn-page-head-go { display: flex; align-items: center; min-width: 0; }
.dn-page-head-go h1 { min-width: 0; }

/* ================================================================ the tour: the plate docked under the banner, sticking */
/* core 0.26.0: docked outside a .dn-wrap (after a page's header band, after the fit Time Machine's slim row): the wrap's width */
:not(.dn-wrap) > .nar-plate.is-tour { box-sizing: border-box; width: calc(min(100%, var(--site-width, 1700px)) - 2 * var(--space-5, 24px)); margin-inline: auto; }
@media (max-width: 639.98px) { :not(.dn-wrap) > .nar-plate.is-tour { width: calc(100% - 2 * var(--space-4, 16px)); } }
.nar-plate.is-tour { margin: 12px 0 16px; }
.nar-plate.is-tour[hidden] { display: none; }
/* the overview's last part, on a section with its own walkthrough: the offer to play it */
.nar-plate.is-tour .nar-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 8px 0 4px; }
.nar-plate.is-tour .nar-cta[hidden] { display: none; }
.dn-tour-cta-t { font: 400 14px/20px var(--font-body, 'Open Sans', sans-serif); color: #E6DCC7; }

/* ================================================================ phones: above the banner, the pill always out */
@media (max-width: 760px) {
  .dn-bh.has-tour { padding-top: 64px; }
  .dn-tour-go { top: 0; bottom: auto; margin: 0; height: 52px; }
  .dn-tour-face, .dn-tour-face img { width: 44px; height: 44px; }
  .dn-tour-badge { width: 20px; height: 20px; }
  .dn-tour-badge svg { width: 11px; height: 11px; }
  .dn-tour-pill { max-width: 180px; opacity: 1; padding: 0 16px 0 10px; transition: none; }
  .dn-bh.is-compact.has-tour, .dn-tl-top .tl-top-r1 > .dn-bh.has-tour { padding-top: 64px; }
  .dn-bh.is-compact.has-tour .dn-tour-go { position: absolute; top: 0; left: 0; margin: 0; }
  .dn-bh.is-compact.has-tour .dn-tour-pill, .dn-page-head-go .dn-tour-pill { padding: 0 16px 0 10px; }
  /* a header band's launcher in the band's top padding (64 px), so the band keeps its height (the Discovery Map's globe
     stays in the first screen) */
  .dn-page-head.has-tour > .dn-wrap { position: relative; }
  .dn-page-head-go .dn-tour-go { position: absolute; top: 6px; left: var(--space-5, 24px); margin: 0; }
}
@media (max-width: 639.98px) {
  .dn-page-head-go .dn-tour-go { left: var(--space-4, 16px); }
}

/* core 0.30.1: the species page's hero (briefs/next-prompt-code-species-tour-2026-11-30.md): the launcher at the left of
   the name row, level with the name, its pill out all the time (beside a left-aligned title, as on a compact heading: a pill
   sliding out would push the name over); under 760 px the "How to / Narrated tour" pill on its own line above the name */
.sp-name-row.has-tour .dn-tour-go { position: relative; top: auto; bottom: auto; left: auto; margin: 0; flex: none; align-self: center; }
.sp-name-row.has-tour .dn-tour-pill { max-width: 180px; opacity: 1; padding: 0 18px 0 12px; transition: none; }
@media (max-width: 760px) {
  .sp-name-row.has-tour .dn-tour-go { margin: 0 0 12px; }
  .sp-name-row.has-tour .dn-tour-pill { padding: 0 16px 0 10px; }
}

@media print { .dn-tour-go, .nar-plate.is-tour { display: none !important; } }

/* ================================================================ core 0.27.0: the shared Listen button (.dn-say; approval
   row 76, briefs/handoff-edits76-design-2026-11-29.md section 0): 44 px, idle / hover and focus / playing with its
   progress ring (--p from the clip) / paused / done (a tick, "play again") */
.dn-say { position: relative; flex: none; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer;
  background: #121417; color: #F58A1F; box-shadow: inset 0 0 0 2px #F58A1F; transition: background-color .18s, color .18s, box-shadow .18s; }
.dn-say[hidden] { display: none !important; }
.dn-say svg.ic { width: 18px; height: 18px; fill: currentColor; }
.dn-say svg.ic .pa, .dn-say svg.ic .re { display: none; }
.dn-say svg.ic .pl { transform: translateX(1.5px); }
.dn-say .ring { position: absolute; left: -5px; top: -5px; width: 54px; height: 54px; transform: rotate(-90deg); pointer-events: none; opacity: 0; }
.dn-say .ring circle { fill: none; stroke-width: 3; }
.dn-say .ring .tr { stroke: rgba(18, 20, 23, .9); }
.dn-say .ring .pr { stroke: #F5F1E6; stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: calc(150.8 * (1 - var(--p, 0))); transition: stroke-dashoffset .25s linear; }
.dn-say .tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: #121417;
  color: #F5F1E6; box-shadow: 0 0 0 1px rgba(201, 183, 154, .35); font: 700 12px/16px Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .15s; }
.dn-say:hover, .dn-say:focus-visible { background: #F58A1F; color: #121417; box-shadow: inset 0 0 0 2px #F58A1F, 0 0 22px -4px rgba(245, 138, 31, .7); }
.dn-say:hover .tip, .dn-say:focus-visible .tip { opacity: 1; }
.dn-say:focus-visible { outline: 3px solid #F5F1E6; outline-offset: 3px; }
.dn-say.is-playing { background: #F58A1F; color: #121417; }
.dn-say.is-playing .ring, .dn-say.is-paused .ring, .dn-say.is-done .ring { opacity: 1; }
.dn-say.is-playing svg.ic .pl, .dn-say.is-done svg.ic .pl { display: none; }
.dn-say.is-playing svg.ic .pa { display: inline; }
.dn-say.is-paused, .dn-say.is-done { background: #121417; color: #F58A1F; }
.dn-say.is-paused .ring .pr { stroke: #C9B79A; }
.dn-say.is-done svg.ic .re { display: inline; }
.dn-say.is-done .ring .pr { stroke: #C9B79A; stroke-dashoffset: 0; }
.dn-say .ok { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: none; place-items: center; background: #F5F1E6; box-shadow: 0 0 0 2px #121417; }
.dn-say .ok svg { width: 11px; height: 11px; fill: none; stroke: #121417; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dn-say.is-done .ok { display: grid; }
.nar-plate.is-say .nar-b-back, .nar-plate.is-say .nar-b-next { display: none; }
@media (prefers-reduced-motion: reduce) { .dn-say, .dn-say .tip, .dn-say .ring .pr { transition: none; } }
@media print { .dn-say { display: none !important; } }

/* core 0.27.0 (approval row 76 B1): a launcher beside a left-aligned title (/extinction/'s story, beside Press Play),
   its pill out all the time */
.dn-tour-go.is-row { position: relative; top: auto; bottom: auto; left: auto; margin: 0; flex: none; }
.dn-tour-go.is-row .dn-tour-pill { max-width: 220px; opacity: 1; padding: 0 18px 0 12px; transition: none; }
