/* The guided tour (tour.js, 20 November 2026). Carried byte for byte by every Doctorpedia app.
   Missions (the same day): the welcome with the app's drawn mark and the list of missions, a step that waits for the person (its
   line with a hand, then a check), the card after a mission, and the one-time hint beside a part just opened.
   The page stays in sight under a soft veil; a rounded opening, drawn as the veil's own shadow, frames the part being shown and
   glides to the next one. The card is the family's popover: white, a hairline, the serif title, calm words, pill buttons with a
   word (Back, Next, Done, Close tour). Nothing turns or follows the pointer; with less motion asked for, nothing glides.

   Tokens: BiteSized's names first (--cl-*), then the design system's (--ds-*), then Ask's (--l-*), then a light and a dark value. */
.dpt, .dpt-offer, .dpt-hint {
  --dpt-page: var(--cl-page, var(--ds-page, var(--l-page, light-dark(#F7F7F5, #141414))));
  --dpt-surface: var(--cl-surface, var(--ds-surface, var(--l-surface, light-dark(#FFFFFF, #1F1F1F))));
  --dpt-ink: var(--cl-ink, var(--ds-ink, var(--l-ink, light-dark(#1A1A1A, #F2F2F0))));
  --dpt-ink-2: var(--cl-ink-2, var(--ds-ink-2, var(--l-ink-2, light-dark(#3A3A3A, #D5D5D2))));
  --dpt-ink-3: var(--cl-ink-3, var(--ds-ink-3, var(--l-ink-3, light-dark(#5C5C5C, #B4B4B1))));
  --dpt-line: var(--cl-line, var(--ds-line, var(--l-line, light-dark(rgba(26,26,26,.08), rgba(255,255,255,.08)))));
  --dpt-line-2: var(--cl-line-2, var(--ds-line-2, var(--l-line-2, light-dark(rgba(26,26,26,.14), rgba(255,255,255,.14)))));
  --dpt-hover: var(--cl-hover, var(--ds-hover, var(--l-hover, light-dark(rgba(26,26,26,.05), rgba(255,255,255,.06)))));
  --dpt-on-ink: var(--cl-on-ink, var(--ds-on-ink, var(--l-on-ink, light-dark(#FFFFFF, #141414))));
  --dpt-accent: var(--cl-lilac, var(--ds-accent-soft, var(--l-accent, light-dark(#8B7CFF, #A89DFF))));
  --dpt-shadow: var(--cl-shadow-pop, var(--ds-shadow-pop, var(--l-shadow-pop, 0 0 0 1px rgba(26,26,26,.06), 0 6px 14px -4px rgba(26,26,26,.10), 0 30px 70px -20px rgba(26,26,26,.28))));
  --dpt-spring: var(--cl-spring, var(--ds-ease-spring, cubic-bezier(.16,1,.3,1)));
  --dpt-out: var(--cl-out, var(--ds-ease-out, cubic-bezier(.22,.61,.36,1)));
  --dpt-sans: var(--cl-sans, var(--ds-sans, var(--l-sans, system-ui, sans-serif)));
  --dpt-serif: var(--cl-serif, var(--ds-serif, var(--l-serif, Georgia, serif)));
  color: var(--dpt-ink); font-family: var(--dpt-sans);
}
.dpt { position: fixed; inset: 0; z-index: var(--dpt-z, 900); pointer-events: none; }
/* an app that changes its page with a view transition (a post growing into its page) paints it above everything: the tour and the
   hint keep their own layer in it, so they stay on top and still while the page changes under them */
.dpt.is-open { view-transition-name: dpt-tour; }
.dpt-hint.is-open { view-transition-name: dpt-hint; }
::view-transition-group(dpt-tour), ::view-transition-group(dpt-hint), ::view-transition-new(dpt-tour), ::view-transition-new(dpt-hint) { animation: none; }
::view-transition-old(dpt-tour), ::view-transition-old(dpt-hint) { display: none; }
.dpt__shield { position: absolute; inset: 0; pointer-events: auto; }
/* the opening: its shadow is the veil over the rest of the page */
.dpt__hole {
  position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--dpt-accent) 70%, transparent), 0 0 0 200vmax color-mix(in srgb, var(--dpt-page) 30%, rgba(10, 10, 14, .46));
  opacity: 0; will-change: transform; transition: opacity .3s var(--dpt-out), transform .5s var(--dpt-spring), width .5s var(--dpt-spring), height .5s var(--dpt-spring), border-radius .5s var(--dpt-spring);
}
/* following a scroll or a part that is still settling: drawn at once, no glide to catch up with (the stutter of 20 November) */
.dpt.is-tracking .dpt__hole { transition: opacity .3s var(--dpt-out); }
.dpt.is-tracking .dpt__card { transition: opacity .28s var(--dpt-out), translate .4s var(--dpt-spring); }
.dpt.is-open .dpt__hole { opacity: 1; }
.dpt.is-center .dpt__hole { box-shadow: 0 0 0 200vmax color-mix(in srgb, var(--dpt-page) 30%, rgba(10, 10, 14, .46)); }
.dpt__card {
  position: absolute; left: 0; top: 0; width: min(380px, calc(100vw - 32px)); padding: 18px 20px 16px; border-radius: 20px;
  background: var(--dpt-surface); box-shadow: var(--dpt-shadow); pointer-events: auto; will-change: transform, opacity;
  /* placed with a transform only (tour.js place): it glides on the compositor, nothing is laid out again each frame */
  opacity: 0; translate: 0 8px; transition: opacity .28s var(--dpt-out), translate .4s var(--dpt-spring), transform .5s var(--dpt-spring);
}
.dpt.is-center .dpt__card { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.dpt.is-open .dpt__card { opacity: 1; translate: 0 0; }
.dpt.is-moving .dpt__card { opacity: .0; }
.dpt__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dpt__n { font-size: 13px; font-weight: 500; color: var(--dpt-ink-3); font-variant-numeric: tabular-nums; }
.dpt__close { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 8px; margin-right: -8px; border: 0; border-radius: 999px; background: transparent; color: var(--dpt-ink-3); font: 500 13px/1 var(--dpt-sans); cursor: pointer; transition: background-color .2s var(--dpt-out), color .2s var(--dpt-out); }
.dpt__close svg { width: 14px; height: 14px; }
.dpt__close:is(:hover, :focus-visible) { background: var(--dpt-hover); color: var(--dpt-ink); }
.dpt__t { margin: 10px 0 0; font-family: var(--dpt-serif); font-size: 22px; font-weight: 400; line-height: 1.22; letter-spacing: -.01em; color: var(--dpt-ink); text-wrap: balance; outline: none; }
.dpt__p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--dpt-ink-2); text-wrap: pretty; }
.dpt__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.dpt__dots { display: inline-flex; gap: 5px; }
.dpt__dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--dpt-line-2); transition: width .35s var(--dpt-spring), background-color .25s var(--dpt-out); }
.dpt__dots i.is-past { background: color-mix(in srgb, var(--dpt-ink) 35%, transparent); }
.dpt__dots i.is-on { width: 18px; background: var(--dpt-ink); }
.dpt__acts { display: inline-flex; gap: 8px; }
.dpt__btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; font: 500 14px/1 var(--dpt-sans); cursor: pointer; white-space: nowrap; transition: background-color .2s var(--dpt-out), box-shadow .2s var(--dpt-out), color .2s var(--dpt-out); }
.dpt__btn svg { width: 15px; height: 15px; }
.dpt__btn[hidden] { display: none; }
.dpt__btn--ink { background: var(--dpt-ink); color: var(--dpt-on-ink); }
.dpt__btn--ink:is(:hover, :focus-visible) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--dpt-ink) 14%, transparent); }
.dpt__btn--ghost { background: transparent; color: var(--dpt-ink-2); box-shadow: inset 0 0 0 1px var(--dpt-line-2); }
.dpt__btn--ghost:is(:hover, :focus-visible) { background: var(--dpt-hover); color: var(--dpt-ink); }
.dpt :focus-visible { outline: 2px solid var(--dpt-accent); outline-offset: 2px; }
.dpt .dpt__t:focus, .dpt .dpt__t:focus-visible { outline: none; }
/* a phone: the card sits at the bottom, the opening stays where the part is */
.dpt.is-docked .dpt__card { left: 12px !important; right: 12px; top: auto !important; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; transform: none; }
/* ...and at the top when the part shown is low on the screen (a bottom bar, a sheet) */
.dpt.is-docked.is-docked-top .dpt__card { top: max(12px, env(safe-area-inset-top)) !important; bottom: auto; }

/* the first-time offer: a small card at the corner, never over what is being read */
.dpt-offer {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--dpt-z, 900); display: flex; gap: 14px; width: min(380px, calc(100vw - 32px)); padding: 18px 18px 16px;
  border-radius: 20px; background: var(--dpt-surface); box-shadow: var(--dpt-shadow);
  opacity: 0; translate: 0 12px; transition: opacity .4s var(--dpt-out), translate .6s var(--dpt-spring);
}
.dpt-offer.is-open { opacity: 1; translate: 0 0; }
.dpt-offer__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--dpt-hover); color: var(--dpt-ink); }
.dpt-offer__ic svg { width: 20px; height: 20px; }
.dpt-offer__t { margin: 2px 0 0; font-family: var(--dpt-serif); font-size: 19px; line-height: 1.25; color: var(--dpt-ink); }
.dpt-offer__p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--dpt-ink-2); }
.dpt-offer__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 639px) { .dpt-offer { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; } }

/* ── missions ── */
.dpt__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dpt__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpt__btn[hidden], .dpt__do[hidden], .dpt__ms[hidden], .dpt__mark[hidden], .dpt__p[hidden] { display: none; }
/* the welcome and the card after a mission: in the middle, a little wider, the serif title larger; the top row is not needed */
.dpt.is-welcome .dpt__card, .dpt.is-end .dpt__card { width: min(460px, calc(100vw - 32px)); padding: 28px 28px 22px; }
.dpt.is-welcome .dpt__top, .dpt.is-end .dpt__top { display: none; }
.dpt.is-welcome .dpt__t, .dpt.is-end .dpt__t { margin-top: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.015em; }
.dpt.is-welcome .dpt__p, .dpt.is-end .dpt__p { margin-top: 10px; font-size: 16px; }
.dpt.is-welcome .dpt__foot, .dpt.is-end .dpt__foot { margin-top: 22px; }
.dpt.is-welcome .dpt__dots, .dpt.is-end .dpt__dots { display: none; }
.dpt.is-welcome .dpt__acts, .dpt.is-end .dpt__acts { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
/* the app's mark, drawn by its light (the app gives the drawing); on the card after a mission, a check in a ring */
.dpt__mark { display: flex; margin: 0 0 18px; color: var(--dpt-ink); --dpch-ink: var(--dpt-ink); }
.dpt__mark svg { display: block; width: 52px; height: 52px; margin: 0; overflow: visible; }
.dpt__ok { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--dpt-ink); color: var(--dpt-on-ink); }
.dpt__ok svg { width: 22px; height: 22px; }
.dpt.is-end.is-open .dpt__ok { animation: dpt-in .45s var(--dpt-spring) both; }
/* the list of missions: one row each, its number or its check, its name, its minutes; hairlines between */
.dpt__ms { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--dpt-line); }
.dpt__ms li { border-bottom: 1px solid var(--dpt-line); }
.dpt__m { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 6px; margin: 0; border: 0; border-radius: 12px; background: transparent; color: var(--dpt-ink); font: 400 15px/1.35 var(--dpt-sans); text-align: left; cursor: pointer; transition: background-color .2s var(--dpt-out); }
.dpt__m:is(:hover, :focus-visible) { background: var(--dpt-hover); }
.dpt__m-tick { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--dpt-line-2); color: var(--dpt-ink-3); font: 500 12px/1 var(--dpt-sans); font-variant-numeric: tabular-nums; }
.dpt__m-tick svg { width: 14px; height: 14px; }
.dpt__m.is-next .dpt__m-tick { box-shadow: inset 0 0 0 1.5px var(--dpt-ink); color: var(--dpt-ink); }
.dpt__m.is-done .dpt__m-tick { background: var(--dpt-ink); color: var(--dpt-on-ink); box-shadow: none; }
.dpt__m-w { flex: 1; min-width: 0; text-wrap: pretty; }
.dpt__m.is-done .dpt__m-w { color: var(--dpt-ink-3); }
.dpt__m-min { flex: none; font-size: 13px; color: var(--dpt-ink-3); font-variant-numeric: tabular-nums; }
/* a step that waits: what to do, in a line with a hand; done, a check */
.dpt__do { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--dpt-hover); font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--dpt-ink); }
.dpt__do-ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--dpt-surface); box-shadow: inset 0 0 0 1px var(--dpt-line-2); color: var(--dpt-ink); transition: background-color .25s var(--dpt-out), color .25s var(--dpt-out), box-shadow .25s var(--dpt-out); }
.dpt__do-ic svg { width: 15px; height: 15px; }
.dpt__do.is-done .dpt__do-ic { background: var(--dpt-ink); color: var(--dpt-on-ink); box-shadow: none; }
.dpt__do.is-done .dpt__do-ic svg { animation: dpt-in .35s var(--dpt-spring) both; }
/* the opening of a step that waits: a firmer ring, the part inside can be pressed */
.dpt.is-doing .dpt__hole { box-shadow: 0 0 0 2px var(--dpt-accent), 0 0 0 6px color-mix(in srgb, var(--dpt-accent) 22%, transparent), 0 0 0 200vmax color-mix(in srgb, var(--dpt-page) 30%, rgba(10, 10, 14, .46)); }
.dpt.is-mission .dpt__dots i.is-on { width: 14px; }
@keyframes dpt-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) {
  .dpt.is-welcome .dpt__card, .dpt.is-end .dpt__card { padding: 22px 20px 18px; }
  .dpt.is-welcome .dpt__t, .dpt.is-end .dpt__t { font-size: 26px; }
  .dpt__mark svg { width: 44px; height: 44px; }
  .dpt__mark { margin-bottom: 14px; }
}

/* the hint the first time a part is opened: a small card beside it, no veil; Got it closes it */
.dpt-hint {
  position: fixed; left: 0; top: 0; z-index: var(--dpt-hint-z, 1200); width: min(300px, calc(100vw - 24px)); padding: 14px 14px 12px 16px; border-radius: 16px;
  background: var(--dpt-surface); box-shadow: var(--dpt-shadow), 0 0 0 1px color-mix(in srgb, var(--dpt-accent) 45%, transparent);
  opacity: 0; translate: 0 6px; transition: opacity .25s var(--dpt-out), translate .4s var(--dpt-spring);
}
.dpt-hint.is-open { opacity: 1; translate: 0 0; }
.dpt-hint__t { margin: 0 0 4px; font-family: var(--dpt-serif); font-size: 17px; line-height: 1.25; color: var(--dpt-ink); }
.dpt-hint__p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--dpt-ink-2); text-wrap: pretty; }
.dpt-hint__ok { height: 32px; margin-top: 10px; padding: 0 12px; font-size: 13px; }
.dpt-hint__ok svg { width: 14px; height: 14px; }
@media (max-width: 639px) { .dpt-hint { width: auto; } }

@media (prefers-reduced-motion: reduce) {
  .dpt__hole, .dpt__card, .dpt__dots i, .dpt-offer, .dpt-hint, .dpt__do-ic { transition: none !important; translate: 0 0 !important; }
  .dpt__ok, .dpt__do-ic svg { animation: none !important; }
}
html.a11y-reduce-motion :is(.dpt__hole, .dpt__card, .dpt__dots i, .dpt-offer, .dpt-hint, .dpt__do-ic), html.still :is(.dpt__hole, .dpt__card, .dpt__dots i, .dpt-offer, .dpt-hint, .dpt__do-ic) { transition: none !important; translate: 0 0 !important; }
html.a11y-reduce-motion :is(.dpt__ok, .dpt__do-ic svg), html.still :is(.dpt__ok, .dpt__do-ic svg) { animation: none !important; }
