/* The platform tour (3 Nov 2026): practice/tour.js, on /account/ only.
   The landing intro's dark cover and the site's square 2px borders around a copy of the site's
   own pages, which keep their own stylesheets. Inside the copy nothing moves by CSS: the tour's
   clock moves it. */
html.tour-open, html.tour-open body { overflow: hidden; }
.tour { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; box-sizing: border-box;
  background: radial-gradient(120% 90% at 85% 0%, #1d2412 0%, #0e0f0d 55%); color: #ffffff;
  font-family: var(--lm-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); opacity: 0; outline: none; }
.tour *, .tour *::before, .tour *::after { box-sizing: border-box; }
.tour-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tour :focus-visible { outline: 3px solid #c5f135; outline-offset: 3px; }

.tour__top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; }
.tour__brand { font: 700 13px/1 var(--lm-font, system-ui); letter-spacing: .12em; text-transform: uppercase; color: #a9ad9f; }
.tour__brand b { color: #c5f135; font-weight: 700; }
.tour__skip, .tour__close { min-height: 44px; padding: 10px 16px; background: none; border: 2px solid #5a5e53; border-radius: 0;
  color: #ffffff; font: 700 14px/1 var(--lm-font, system-ui); cursor: pointer; }
.tour__skip:hover, .tour__close:hover { border-color: #ffffff; }

.tour__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.tour__frame { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; max-width: 1200px; max-height: 780px;
  background: #ffffff; border: 2px solid #2b2e27; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: hidden; }
.tour__bar { flex: none; display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 12px; background: #1a1c18; }
.tour__dots { display: flex; gap: 6px; }
.tour__dots i { width: 9px; height: 9px; border-radius: 50%; background: #3b3e36; }
.tour__url { flex: 1; max-width: 520px; margin: 0 auto; padding: 5px 12px; background: #2a2d27; color: #c9ccc1; text-align: center;
  font: 500 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour__view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #f4f6ec; }

/* The copy of the page, moved by the camera. */
.tour__page { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; user-select: none;
  -webkit-user-select: none; will-change: transform, opacity; }
.tour__page *, .tour__page *::before, .tour__page *::after { animation: none !important; transition: none !important; }
.tour__site { min-height: 100%; padding-bottom: 80px; background: #f4f6ec; }
.tour__page .site-header { position: relative !important; top: auto !important; }
.tour__page .acct-wrap { max-width: 1200px; }
.tour__page .tour-ws-count { position: static; margin: 14px 0 0; }
.tour__page .acct-tour { display: none; }
.tour-press { transform: translateY(2px) scale(.98); }
.tour-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: text-bottom; background: currentColor; }
input.tour-typing { outline: 3px solid rgba(197, 241, 53, .7); outline-offset: 1px; }
input.tour-typing::after { content: none; }

/* The cursor and the highlight, on the page, scaled back to their size on screen. */
.tour__ink { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 50; }
.tour__cursor { position: absolute; left: 0; top: 0; width: 28px; height: 28px; transform-origin: 0 0; opacity: 0;
  fill: #111311; stroke: #ffffff; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.tour__ring { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #c5f135; }
.tour__light { position: absolute; border: 3px solid #c5f135; opacity: 0; }

/* The words under the film (owner, 3 Nov 2026): the scene's title and one line, lined up with the
   frame's left edge. tour.js gives the box the height of the longest words. */
.tour__say { flex: none; width: 100%; max-width: 1248px; margin: 0 auto; padding: 16px 24px 0; }
.tour__say-t { display: block; color: #c5f135; font: 800 20px/1.25 var(--lm-font, system-ui); }
.tour__say-l { display: block; margin-top: 4px; color: #e6e8df; font: 400 16px/1.45 var(--lm-font, system-ui); }

/* The bar under the film: play or pause, and one mark per scene (a press jumps there). */
.tour__foot { flex: none; display: flex; align-items: center; gap: 16px; padding: 12px 24px 16px; }
.tour__play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: #c5f135; border: 0;
  border-radius: 0; cursor: pointer; }
.tour__play svg { width: 22px; height: 22px; fill: #111311; }
.tour__marks { flex: 1; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tour__marks li { flex: 1 1 0; min-width: 0; }
.tour__mark-btn { display: flex; align-items: center; width: 100%; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.tour__mark-btn span { display: block; width: 100%; height: 4px; background: #3b3e36; overflow: hidden; }
.tour__mark-btn i { display: block; height: 100%; background: #c5f135; transform-origin: 0 50%; transform: scaleX(0); }
.tour__mark-btn:hover span { background: #565a4f; }

/* The end: the mark, and what next. */
.tour__end { position: absolute; left: 0; right: 0; top: 34px; bottom: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 26px; background: rgba(14, 15, 13, .84); color: #c5f135; }
.tour__end[hidden] { display: none; }
.tour__mark { width: 84px; height: 84px; }
.tour__endbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tour__again { min-height: 48px; padding: 0 22px; background: #c5f135; color: #111311; border: 2px solid #c5f135; border-radius: 0;
  font: 800 15px/1 var(--lm-font, system-ui); cursor: pointer; }
.tour__close { min-height: 48px; }

/* On a phone the page fills the screen, in its phone layout. */
.tour--phone .tour__top { padding: 8px 14px; }
.tour--phone .tour__stage { padding: 0; }
.tour--phone .tour__frame { max-width: none; max-height: none; border: 0; box-shadow: none; }
.tour--phone .tour__bar { height: 28px; }
.tour--phone .tour__dots { display: none; }
.tour--phone .tour__end { top: 28px; }
.tour--phone .tour__foot { gap: 12px; padding: 8px 14px 12px; }
.tour--phone .tour__say { padding: 12px 14px 0; }
.tour--phone .tour__say-t { font-size: 18px; }
.tour--phone .tour__say-l { font-size: 15px; }

/* The past papers are an article page; on /account/ its headings take the page's own ink. */
.tour__page .tour-papers h1, .tour__page .tour-papers h2 { color: #111311; }

/* The copied screens' own pieces: the chart's editor (ws-chart.js draws its styles itself), the
   cal.com calendar as its embed draws it on our pages. */
.tour-chart-ed { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 16px; align-items: start; padding: 12px 0; }
.tour-chart-ed .ws-chart-grid { width: 100%; border-collapse: collapse; }
.tour-chart-ed .ws-chart-grid th, .tour-chart-ed .ws-chart-grid td { padding: 0; border: 1px solid #d9d9d9; }
.tour-chart-ed .ws-chart-grid input { display: block; width: 100%; padding: 6px 8px; border: 0; border-radius: 0; background: #ffffff;
  font: 400 13px/1.3 var(--lm-font, system-ui); color: #111111; }
.tour-chart-ed .ws-chart-grid thead input { background: #f6f7f1; font-weight: 700; }
.tour-chart { display: block; width: 100%; height: auto; border: 1px solid #e3e3e3; }

/* The embed sits in the hub's side column, so it takes cal.com's narrow layout: the event on top,
   then the month, and the day's times beside the month once a day is picked. */
.tour-cal { display: grid; grid-template-columns: minmax(0, 1fr); margin: 12px 0 0; background: #ffffff;
  border: 1px solid #e5e7eb; border-radius: 6px; color: #111827; font: 400 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.tour-cal p { margin: 0; }
.tour-cal__info { grid-column: 1 / -1; padding: 18px 20px; border-bottom: 1px solid #e5e7eb; }
.tour-cal.has-times { grid-template-columns: minmax(0, 1fr) 120px; }
.tour-cal__host { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; color: #6b7280; font-weight: 500; }
.tour-cal__av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #111311; color: #ffffff; font-weight: 700; font-size: 13px; }
.tour-cal__title { margin: 0 0 10px !important; font-weight: 700; font-size: 20px; line-height: 1.2; }
.tour-cal__meta { display: flex; align-items: center; gap: 6px; color: #374151; }
.tour-cal__clock { width: 14px; height: 14px; border: 2px solid #6b7280; border-radius: 50%; }
.tour-cal__month { padding: 20px; }
.tour-cal__mhead { display: flex; align-items: baseline; gap: 6px; margin: 0 0 14px !important; font-size: 16px; }
.tour-cal__arrows { margin-left: auto; color: #6b7280; letter-spacing: 10px; }
.tour-cal__dow, .tour-cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tour-cal__dow span { padding: 6px 0; color: #6b7280; font-size: 10px; font-weight: 600; text-align: center; }
.tour-cal__days span { display: block; }
.tour-cal__day { aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; background: none; color: #9ca3af; font: 500 14px/1 system-ui, sans-serif; }
.tour-cal__day.is-open { background: #f3f4f6; color: #111827; font-weight: 700; }
.tour-cal__day.is-on { background: #111311; color: #ffffff; }
.tour-cal__times { display: flex; flex-direction: column; gap: 8px; padding: 20px 14px; border-left: 1px solid #e5e7eb; }
.tour-cal__times[hidden] { display: none; }
.tour-cal__thead { margin: 0 0 6px !important; }
.tour-cal__slot { padding: 9px 0; border: 1px solid #d1d5db; border-radius: 6px; background: #ffffff; color: #111827; font: 600 14px/1 system-ui, sans-serif; }
.tour-cal--form { grid-template-columns: minmax(0, 1fr); }
.tour-cal__form { display: grid; gap: 14px; padding: 20px; }
.tour-cal__form label { display: grid; gap: 6px; color: #374151; font-weight: 600; font-size: 13px; }
.tour-cal__in { display: block; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 6px; background: #ffffff; color: #111827; font-weight: 400; font-size: 14px; }
.tour-cal__in--area { min-height: 64px; }
.tour-cal__acts { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.tour-cal__confirm { padding: 10px 16px; border: 0; border-radius: 6px; background: #111311; color: #ffffff; font: 600 14px/1 system-ui, sans-serif; }
.tour-cal--done { display: block; padding: 34px 24px; text-align: center; }
.tour-cal__ok { position: relative; display: block; width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: #dcfce7; }
.tour-cal__ok::after { content: ""; position: absolute; left: 17px; top: 12px; width: 10px; height: 18px; border: solid #15803d;
  border-width: 0 3px 3px 0; transform: rotate(45deg); }
.tour-cal__big { margin: 0 0 8px !important; font-weight: 700; font-size: 20px; }
.tour-cal--done dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; max-width: 440px; margin: 20px auto 0; text-align: left; }
.tour-cal--done dt { font-weight: 600; }
.tour-cal--done dd { margin: 0; color: #374151; }

@media (max-width: 699px) {
  .tour-chart-ed { grid-template-columns: minmax(0, 1fr); }
  .tour-cal.has-times { grid-template-columns: minmax(0, 1fr); }
  .tour-cal__times { flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid #e5e7eb; }
  .tour-cal__slot { flex: 1 1 40%; }
  .tour-cal__thead { flex: 1 1 100%; }
}
