/* ============================================================
   FILE 1 of 2  —  css/login-tour.css  (LIGHT MODE / base)
   Login-page feature tour: immersive full-screen split overlay.
   Uses css/base.css design tokens. Inter font + blue/amber palette
   to match the existing login hero. Dark overrides live in the
   second block below (APPEND to css/dark-mode.css).
   ============================================================ */

/* ---------- shared toggle utility (toggled by login-tour.js) ----------
   jQuery .show()/.hide() rewrite inline display and break flex rows, so
   the JS toggles this class instead of using show/hide on flex containers.
   This is the only place !important on display is intended. */
.lt-overlay .is-hidden { display: none !important; }

/* ============================================================
   1. HERO TRIGGER BUTTON  (added to login.php, visible at ALL widths)
   ============================================================ */
.lt-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-amber-hover) 100%);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 12px rgba(232, 145, 12, 0.35);
  cursor: pointer;
  transition: transform var(--motion-base) var(--ease-standard),
              box-shadow var(--motion-base) var(--ease-standard);
}
.lt-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 145, 12, 0.45);
  color: #fff;
}
.lt-open-btn:active { transform: translateY(0); }

/* ============================================================
   2. OVERLAY ROOT + PANEL
   Root ships with the `hidden` attribute; JS removes it AND adds
   .is-open. We key visibility off the class (never a bare display
   on .lt-overlay) so the overlay can't flash before JS loads.
   ============================================================ */
.lt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100; /* above Bootstrap modal (~1050) and the navbar */
  padding: clamp(0.5rem, 2vw, 1.5rem);
  background: rgba(15, 23, 42, 0.62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: lt-overlay-in var(--motion-base) var(--ease-standard);
}
.lt-overlay.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes lt-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lt-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1040px;
  height: 100%;
  max-height: 760px;
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-4);
  overflow: hidden;
  animation: lt-panel-in var(--motion-slow) var(--ease-emphasized);
}

@keyframes lt-panel-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   3. HEADER (track name + progress + close)
   ============================================================ */
.lt-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border-color-subtle);
  background: var(--bg-secondary);
}
.lt-track-name {
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  color: var(--text-primary);
}
.lt-progress {
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  margin-left: auto;
}
.lt-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -0.25rem -0.5rem -0.25rem 0;
  padding: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease-standard),
              background var(--motion-fast) var(--ease-standard);
}
.lt-close:hover {
  color: var(--text-primary);
  background: var(--overlay-soft);
}

/* ============================================================
   4. CHOOSER VIEW (overlay landing)
   ============================================================ */
.lt-chooser {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  overflow-y: auto;
}
.lt-chooser h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}
.lt-chooser-sub {
  max-width: 32rem;
  margin: 0 0 var(--space-4);
  font-size: var(--fs-lg);
  line-height: var(--lh-base);
  color: var(--text-secondary);
}
.lt-chooser-btn {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  max-width: 24rem;
  min-height: 56px;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--motion-base) var(--ease-standard),
              box-shadow var(--motion-base) var(--ease-standard);
}
.lt-chooser-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-primary-shadow);
  color: #fff;
}
/* Second chooser button reads as the "explore everything" secondary action */
.lt-chooser-btn[data-track="full"] {
  color: var(--primary-blue);
  background: transparent;
  border-color: var(--primary-blue);
}
.lt-chooser-btn[data-track="full"]:hover {
  color: var(--primary-blue);
  background: rgba(var(--primary-blue-rgb), 0.06);
}
.lt-chooser-btn small {
  font-size: var(--fs-xs);
  font-weight: 500;
  opacity: 0.85;
}
.lt-chooser-skip {
  margin-top: var(--space-2);
}

/* ============================================================
   5. STAGE + SLIDES (split 40/60)
   .lt-slide hidden by default; only .is-active shows.
   ============================================================ */
.lt-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.lt-slide {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: row;
  overflow: hidden;
}
.lt-slide.is-active {
  display: flex;
  animation: lt-slide-in var(--motion-base) var(--ease-standard);
}

@keyframes lt-slide-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- left column: copy ---- */
.lt-copy {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  overflow-y: auto;
}
.lt-step-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-blue);
}
.lt-headline {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  margin: 0;
  color: var(--text-primary);
}
.lt-body {
  font-size: var(--fs-lg);
  line-height: var(--lh-base);
  margin: 0;
  color: var(--text-secondary);
}
.lt-more {
  align-self: flex-start;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
}
.lt-more:hover { text-decoration: underline; }
.lt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: var(--space-2);
  padding: 0.65rem 1.5rem;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #fff;
  background: var(--success-green);
  border: none;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--motion-base) var(--ease-standard),
              box-shadow var(--motion-base) var(--ease-standard);
}
.lt-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--btn-success-shadow);
}

/* ---- right column: mockup canvas ---- */
.lt-mock {
  flex: 1 1 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-5);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
  border-left: 1px solid var(--border-color-subtle);
  overflow: hidden;
}

/* ============================================================
   6. FOOTER NAV (back / dots / next / skip)
   ============================================================ */
.lt-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-color-subtle);
  background: var(--bg-secondary);
}
.lt-back,
.lt-next {
  min-width: 88px;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--motion-base) var(--ease-standard),
              box-shadow var(--motion-base) var(--ease-standard),
              background var(--motion-fast) var(--ease-standard);
}
.lt-back {
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}
.lt-back:hover:not(:disabled) {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.lt-back:disabled {
  opacity: 0.45;
  cursor: default;
}
.lt-next {
  color: #fff;
  background: var(--primary-blue);
  border: 1px solid var(--primary-blue);
}
.lt-next:hover {
  background: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
  box-shadow: var(--btn-primary-shadow);
}
.lt-dots {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lt-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: background var(--motion-base) var(--ease-standard),
              transform var(--motion-base) var(--ease-standard);
}
.lt-dot:hover { background: var(--text-muted); }
.lt-dot.is-active {
  background: var(--primary-blue);
  transform: scale(1.35);
}
/* Persistent text skip link in the footer */
.lt-skip {
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard);
}
.lt-skip:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ============================================================
   7. MOCKUP COMPONENTS  (ltm- prefix)
   Shared primitives, then one root .ltm-<key> per mockup key.
   Modeled on welcome.css .tour-mini-* sizing for house consistency.
   ============================================================ */

/* ---- canvas wrapper every mockup root lives inside ---- */
.ltm {
  width: 100%;
  max-width: 440px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--text-primary);
}

/* ---- shared primitives ---- */
.ltm-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-2);
  overflow: hidden;
}
.ltm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 0.68rem;
  background: var(--overlay-soft);
  border-bottom: 1px solid var(--border-color-subtle);
}
.ltm-card-body {
  padding: 8px 10px;
}
.ltm-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ltm-row + .ltm-row { margin-top: 6px; }
.ltm-tile {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  background: var(--card-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-1);
}
.ltm-tile-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ltm-tile-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 2px;
}
.ltm-tile-icon {
  font-size: 1.1rem;
  margin-bottom: 2px;
  display: block;
}
.ltm-badge {
  display: inline-block;
  padding: 1px 7px;
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-pill);
  background: var(--overlay-soft);
  color: var(--text-secondary);
}
.ltm-badge-green  { background: var(--success-bg);  color: var(--success); }
.ltm-badge-blue   { background: var(--info-bg);     color: var(--info); }
.ltm-badge-amber  { background: var(--warning-bg);  color: var(--warning); }
/* coloured progress / totals bar */
.ltm-bar {
  position: relative;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--overlay-soft);
  overflow: hidden;
}
.ltm-bar-fill {
  position: absolute;
  inset: 0 35% 0 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--primary-blue), #1e40af);
}
.ltm-bar-fill-green { background: linear-gradient(90deg, var(--success), #15803d); inset: 0 22% 0 0; }
.ltm-totals {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 0.65rem;
  background: var(--success-bg);
  border-top: 1px solid var(--border-color-subtle);
}
.ltm-totals strong { font-size: 0.9rem; color: var(--success); }
/* card with a coloured left border (ticket / trip rows) */
.ltm-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-color-subtle);
  border-left: 4px solid var(--secondary-gray);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-1);
  font-size: 0.65rem;
}
.ltm-line + .ltm-line { margin-top: 6px; }
.ltm-line-blue  { border-left-color: var(--primary-blue); }
.ltm-line-green { border-left-color: var(--success-green); }
.ltm-line-cyan  { border-left-color: var(--info-cyan); }
.ltm-line-amber { border-left-color: var(--accent-amber); }
.ltm-line-purple{ border-left-color: #7c3aed; }
.ltm-line-title { font-weight: 600; color: var(--text-primary); }
.ltm-muted { color: var(--text-muted); font-size: 0.58rem; }
/* faux input / paste field */
.ltm-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.6rem;
}
.ltm-field-label {
  min-width: 38px;
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.ltm-field-val { color: var(--text-primary); font-weight: 500; }
.ltm-field + .ltm-field { margin-top: 5px; }
/* arrow connector between two stacked mock blocks */
.ltm-arrow {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 2px 0;
}
.ltm-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---- floating widget (scraper) ---- */
.ltm-widget {
  width: 100%;
  max-width: 280px;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-3);
}
.ltm-widget-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.7rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.ltm-widget-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-green);
}
.ltm-widget-step {
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   7.1  Per-key mockup roots (.ltm-<key>)
   ============================================================ */

/* summary-tile — branded summary tile with a dollar total */
.ltm-summary-tile .ltm-tile-value { color: var(--primary-blue); }

/* methods-row — row of five labeled tiles (Add trips your way) */
.ltm-methods-row .ltm-row { flex-wrap: wrap; gap: 6px; }
.ltm-methods-row .ltm-tile { flex: 1 1 28%; min-width: 0; }

/* scraper-widget — small scraper widget with a progress bar */
.ltm-scraper-widget { display: flex; justify-content: center; }

/* dashboard — mini dashboard summary + a trip card */
.ltm-dashboard .ltm-row { margin-bottom: 8px; }

/* calendar — month-by-month, each trip a vertical bar sized to length */
.ltm-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.ltm-day {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-height: 46px;
  padding: 3px;
  background: var(--card-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.5rem;
  color: var(--text-muted);
}
.ltm-day-num { font-weight: 600; color: var(--text-secondary); }
.ltm-day-band {
  border-radius: 2px;
  background: var(--primary-blue);
}
.ltm-day-band-green { background: var(--success-green); }
.ltm-day-band-amber { background: var(--accent-amber); }

/* ticket-browser — filter bar + totals + green/blue cards with badges */
.ltm-ticket-browser .ltm-filter,
.ltm-cpkc-browser .ltm-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.ltm-chip {
  padding: 3px 9px;
  font-size: 0.55rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.ltm-chip.is-on {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

/* cpkc-browser — same cards + a recent/older filter (shares .ltm-line etc) */

/* print-sheet — clean printable summary of a whole year */
.ltm-print-sheet {
  max-width: 320px;
  padding: 16px 18px;
  background: #fff;
  color: #1f2937;
  border: 1px solid var(--border-color-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--elev-3);
  font-size: 0.6rem;
}
.ltm-print-sheet h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #111827;
}
.ltm-print-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid #e5e7eb;
}
.ltm-print-total {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 2px solid #111827;
  font-weight: 700;
}

/* spreadsheet — CRA-ready Excel summary block */
.ltm-spreadsheet {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.58rem;
}
.ltm-xl-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
}
.ltm-xl-row > span {
  padding: 4px 8px;
  border-bottom: 1px solid var(--border-color-subtle);
  border-right: 1px solid var(--border-color-subtle);
}
.ltm-xl-row > span:last-child { border-right: none; }
.ltm-xl-head {
  background: var(--table-header-bg);
  font-weight: 700;
  color: var(--text-secondary);
}
.ltm-xl-total {
  background: var(--success-bg);
  font-weight: 700;
  color: var(--success);
}

/* warnings — warning banner + review */
.ltm-warnings .ltm-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  color: var(--warning);
  font-size: 0.62rem;
}
.ltm-warn-icon { font-size: 0.9rem; line-height: 1; }

/* ai-chat — chat bubbles */
.ltm-bubble {
  max-width: 80%;
  padding: 7px 11px;
  border-radius: var(--radius-lg);
  font-size: 0.62rem;
  line-height: 1.4;
}
.ltm-bubble-q {
  align-self: flex-end;
  background: var(--primary-blue);
  color: #fff;
  border-bottom-right-radius: var(--radius-sm);
}
.ltm-bubble-a {
  align-self: flex-start;
  background: var(--overlay-soft);
  color: var(--text-primary);
  border-bottom-left-radius: var(--radius-sm);
}
.ltm-ai-chat .ltm-stack { gap: 8px; }

/* ai-library — document dropdown + chat */
.ltm-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin-bottom: 8px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-primary);
}
.ltm-select::after { content: "\25BE"; color: var(--text-muted); }

/* stations — numeric code -> name with a vote */
.ltm-stations .ltm-line { font-size: 0.66rem; }
.ltm-vote {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--success);
}
.ltm-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-muted);
}

/* stats — operational stat cards */
.ltm-stats .ltm-row { gap: 6px; }
.ltm-stats .ltm-tile-value { color: var(--primary-blue); }

/* safety — duplicate / year-mismatch prompt */
.ltm-safety .ltm-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 0.62rem;
}

/* trophy-theme — trophy toast + theme toggle */
.ltm-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color-subtle);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-2);
  font-size: 0.64rem;
}
.ltm-toast-icon { font-size: 1.3rem; }
.ltm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.6rem;
  color: var(--text-muted);
}
.ltm-toggle-switch {
  width: 30px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: var(--primary-blue);
  position: relative;
}
.ltm-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

/* settings — settings field(s) */
.ltm-settings .ltm-field { padding: 7px 9px; }
.ltm-settings .ltm-field-val { font-weight: 600; }

/* downloads-issues — Downloads + Issues tiles */
.ltm-downloads-issues .ltm-row { gap: 8px; }
.ltm-downloads-issues .ltm-tile { padding: 12px 8px; }

/* methods-row / downloads tiles use a small icon up top (already styled) */

/* ============================================================
   8. RESPONSIVE  (stack at <= 768px; keep trigger visible)
   ============================================================ */
@media (max-width: 768px) {
  .lt-panel {
    max-height: none;
    border-radius: var(--radius-md);
  }
  .lt-slide.is-active {
    flex-direction: column;
  }
  /* mockup on top, copy below, via order */
  .lt-mock {
    order: 1;
    flex: 0 0 auto;
    border-left: none;
    border-bottom: 1px solid var(--border-color-subtle);
    padding: var(--space-4);
  }
  .lt-copy {
    order: 2;
    flex: 1 1 auto;
    padding: var(--space-4);
    gap: var(--space-2);
  }
  .lt-headline { font-size: var(--fs-xl); }
  .lt-body { font-size: var(--fs-base); }
  .lt-mock .ltm { max-width: 360px; }

  .lt-nav { flex-wrap: wrap; gap: var(--space-2); }
  .lt-dots { order: 3; flex-basis: 100%; }
  .lt-skip { margin-left: auto; }

  .lt-chooser { padding: var(--space-5) var(--space-4); }
  .lt-chooser h2 { font-size: var(--fs-xl); }
  .lt-chooser-sub { font-size: var(--fs-base); }
}

/* IMPORTANT: the trigger button stays visible at every width.
   (The login hero feature chips hide under 960px; do not inherit that.) */
.lt-open-btn { display: inline-flex !important; }

/* ============================================================
   9. REDUCED MOTION  (explicit per spec §8; harness may not load base.css)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .lt-overlay,
  .lt-panel,
  .lt-slide.is-active {
    animation: none !important;
  }
  .lt-open-btn,
  .lt-chooser-btn,
  .lt-cta,
  .lt-next,
  .lt-back,
  .lt-dot {
    transition: none !important;
  }
}

/* ============================================================
   10. PARTIAL-INTRODUCED CLASSES (login-tour.php + login.php + login-tour.js)
   ============================================================ */
html.lt-scroll-lock, body.lt-scroll-lock { overflow: hidden; }

.lt-switch {
  align-self: flex-start; margin-top: var(--space-1); padding: 0.35rem 0.25rem;
  font-family: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  color: var(--text-muted); background: none; border: none; text-decoration: none;
  cursor: pointer; transition: color var(--motion-fast) var(--ease-standard);
}
.lt-switch:hover { color: var(--primary-blue); text-decoration: underline; }

.lt-open-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem; font-family: inherit; font-size: var(--fs-sm); font-weight: 600;
  line-height: 1.2; color: var(--primary-blue); background: transparent;
  border: 1px solid var(--primary-blue); border-radius: var(--radius-pill); box-shadow: none;
  cursor: pointer;
  transition: color var(--motion-base) var(--ease-standard),
              background var(--motion-base) var(--ease-standard),
              border-color var(--motion-base) var(--ease-standard);
}
.lt-open-btn-secondary:hover {
  color: var(--primary-blue); background: rgba(var(--primary-blue-rgb), 0.06);
  border-color: var(--primary-blue-hover); transform: none; box-shadow: none;
}
.lt-open-btn-secondary:active { transform: none; }

.login-about {
  display: flex; flex-direction: column; gap: var(--space-3); max-width: 520px;
  margin: var(--space-4) auto 0; padding: var(--space-5); background: var(--card-bg);
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
}
.login-about-lead { margin: 0; font-size: var(--fs-lg); font-weight: 600; line-height: var(--lh-tight); color: var(--text-primary); }
.login-about-body { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-base); color: var(--text-secondary); }
.login-about-muted { margin: 0; font-size: var(--fs-xs); line-height: var(--lh-base); color: var(--text-muted); }

/* Collapsible detail: keep the panel tidy by default, full text one click away. */
.login-about-more { margin: 0; }
.login-about-more > .login-about-body { margin-top: var(--space-3); }
.login-about-more-toggle {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--fs-sm); font-weight: 600; color: var(--primary-blue, #2563eb);
  cursor: pointer; list-style: none; width: fit-content;
}
.login-about-more-toggle::-webkit-details-marker { display: none; }
.login-about-more-toggle::before {
  content: "\25b8"; /* right-pointing triangle */
  display: inline-block; font-size: 0.8em; transition: transform 0.15s ease;
}
.login-about-more[open] > .login-about-more-toggle::before { transform: rotate(90deg); }
.login-about-more[open] > .login-about-more-toggle { margin-bottom: var(--space-1); }
