/* =================================================================
   Variant 87 - Lesson v2
   Class prefix: lq-
   ================================================================= */

.lq-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 8px;
  position: relative;
}

/* ============================================================
   HERO: two columns. Brand + features + community signals left,
   featured lesson card right.
   ============================================================ */
.lq-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
  padding: 28px 0 56px;
  position: relative;
}

.lq-hero-left {
  position: relative;
  /* Above the example doc card (.lq-hero-right) so an open badge popover, which
     can overflow toward the right column, paints over it instead of behind. */
  z-index: 2;
  max-width: 620px;
  opacity: 0;
  transform: translateY(10px);
  animation: lq-fade-up 720ms cubic-bezier(0.2, 0.7, 0.2, 1) 40ms forwards;
}
.lq-hero-left::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 10px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   BRAND MARK as headline. Canvas-driven particle effect.
   RVT in --text-0, Docs in --accent, .com in --text-3 — all
   sampled from a one-time text render, then animated as particles
   that scatter under the cursor and burst on click.
   ============================================================ */
.lq-domain {
  position: relative;
  z-index: 1;
  /* Negative bottom margin pulls the subhead up to compensate for the canvas's
     internal vertical padding (textBaseline:'middle' leaves empty pixels at top
     and bottom). */
  margin: 0 0 -10px;
  display: block;
  line-height: 1;
}
.lq-domain-canvas-wrap {
  position: relative;
  display: inline-block;
  width:  clamp(380px, 56vw, 620px);
  height: clamp(76px,  9.2vw, 124px);
  vertical-align: baseline;
}
.lq-domain-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.lq-domain-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  font-family: 'Bricolage Grotesque', var(--font-sans);
  font-size: clamp(64px, 8.8vw, 110px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  pointer-events: none;
  /* Behind the canvas. Stays nearly invisible once the canvas paints. */
  opacity: 0.001;
}
.lq-domain-fallback .lq-domain-rvt        { color: var(--text-0); text-transform: uppercase; }
.lq-domain-fallback .lq-domain-docs       { color: var(--accent); }
.lq-domain-fallback .lq-domain-tld-inline { color: var(--text-3); }

/* Screen-reader-only utility for the canvas headline's a11y label. */
.lq-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lq-tagline {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: clamp(14.5px, 1.35vw, 16.5px);
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 28px;
  font-weight: 400;
  max-width: 560px;
}
.lq-tagline strong {
  /* Inherit the tagline's font (sans). No italic, no serif. Just bold + accent. */
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   SEARCH BAR with real typewriter animation.
   Empty box, types out class name, erases, types next.
   ============================================================ */
.lq-hero-search {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lq-search-input {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 420px;
  width: 100%;
  max-width: 560px;
  text-align: left;
  cursor: text;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  position: relative;
  overflow: hidden;
}
.lq-search-input:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.lq-search-icon { color: var(--text-3); flex-shrink: 0; }
.lq-search-field {
  flex: 1;
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.lq-search-typed {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-0);
  letter-spacing: -0.005em;
}
.lq-search-caret {
  display: inline-block;
  margin-left: 1px;
  color: var(--accent);
  font-family: var(--font-mono);
  animation: lq-caret 1.05s steps(2) infinite;
  width: 2px;
  font-weight: 800;
  transform: translateY(-1px);
}
@keyframes lq-caret {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.lq-search-kbd {
  display: inline-flex;
  gap: 3px;
  margin-left: 8px;
  flex-shrink: 0;
}
.lq-search-kbd kbd {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

/* ============================================================
   FEATURE BADGES. Clickable pills that replace the old bullet
   list. Each opens an anchored popover (blurb + optional link).
   ============================================================ */
.lq-features {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lq-badge-wrap { position: relative; }
.lq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 9px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease,
              transform 160ms ease, box-shadow 160ms ease;
}
.lq-badge:hover {
  border-color: var(--accent);
  background: var(--bg-2);
  transform: translateY(-1px);
}
.lq-badge:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.lq-badge-wrap.is-open .lq-badge {
  border-color: var(--accent);
  background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.lq-badge-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.lq-badge-ico svg { width: 13px; height: 13px; }
.lq-badge-label { white-space: nowrap; }

/* Anchored popover. Opens below the badge; flips to the right edge near the
   viewport boundary (JS adds .lq-badge-pop--flip). Hidden via opacity +
   pointer-events so open/close can transition. */
.lq-badge-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 14px 15px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}
.lq-badge-wrap.is-open .lq-badge-pop {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lq-badge-pop--flip { left: auto; right: 0; }
.lq-badge-pop::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 18px;
  width: 9px;
  height: 9px;
  background: var(--bg-2);
  border-left: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong);
  transform: rotate(45deg);
}
.lq-badge-pop--flip::before { left: auto; right: 18px; }
.lq-badge-pop-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 5px;
}
.lq-badge-pop-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.lq-badge-pop-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.lq-badge-pop-cta:hover { text-decoration: underline; }
.lq-badge-pop-arrow { transition: transform 160ms ease; }
.lq-badge-pop-cta:hover .lq-badge-pop-arrow { transform: translateX(3px); }
/* Multi-CTA badge (gamification): stack the CTAs vertically. */
.lq-badge-pop-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
}
.lq-badge-pop-ctas .lq-badge-pop-cta { margin-top: 0; }

/* ============================================================
   COMPACT LEADERBOARD
   ============================================================ */
/* Community row: leaderboard on the left (fixed width) + snippets card on
   the right (fills remaining width with a 3-card horizontal stack). Lives
   between the hero section and the CTA pillars. */
.lq-community-row {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.lq-community-row .lq-snips-grid {
  /* minmax(0, 1fr) (not the default minmax(auto, 1fr)) so a card's content
     min-width can't stretch its track. Without this, cards came out uneven. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 16px 16px;
  gap: 12px;
}
/* Community Code: keep the card at its current (leaderboard-matched) height and
   scroll the latest snippets inside it, so more than the first row is browsable
   without growing the card. The scroll layer is absolutely positioned (top =
   header height) so its 10 cards never inflate the row height; .lq-snips is
   already position:relative + overflow:hidden. */
.lq-community-row .lq-snips-scroll {
  position: absolute;
  top: 37px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
}
/* The leaderboard row and the snippet card are whole-block links; their inner
   text must stay clean on hover. A global link-hover style otherwise draws an
   underline (same issue the .lq-pillar:hover fix solves). Scoped here so the
   small "See all" / "All" text links keep their intentional hover underline. */
.lq-community-row .lq-board-user:hover,
.lq-community-row .lq-board-user:hover *,
.lq-community-row .profile-snip-card-link:hover,
.lq-community-row .profile-snip-card-link:hover * {
  text-decoration: none !important;
}

.lq-board {
  position: relative;
  z-index: 1;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lq-board-hd { flex: 0 0 auto; }
.lq-board-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 18px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.lq-board-hd::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.lq-board-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  margin: 0;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.lq-board-window {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: none;
  letter-spacing: 0.04em;
}
.lq-board-more {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lq-board-more:hover { text-decoration: underline; }

/* Body padding for board (no longer on parent since header is full-bleed). */
.lq-board-list {
  list-style: none;
  margin: 0;
  padding: 10px 16px 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.lq-board-empty {
  padding: 10px 16px 12px;
}
.lq-board-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 5px 6px;
  border-radius: 6px;
  transition: background 120ms ease;
}
.lq-board-row:hover { background: var(--bg-2); }
.lq-board-rank { font-size: 13px; text-align: center; line-height: 1; }
.lq-board-rank-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}
.lq-board-user {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.lq-board-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-3);
  flex-shrink: 0;
}
.lq-board-avatar--fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-1);
}
.lq-board-name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.lq-board-handle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
}
.lq-board-xp {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.lq-board-empty {
  text-align: center;
  padding: 12px 4px 8px;
  color: var(--text-2);
  font-size: 12.5px;
}
.lq-board-empty p { margin: 0 0 8px; }
.lq-board-empty-cta {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

/* ============================================================
   COMPACT SNIPPETS STRIP. Just a teaser that the library exists.
   ============================================================ */
.lq-snips {
  position: relative;
  z-index: 1;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.lq-snips-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 18px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.lq-snips-hd::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.lq-snips-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  margin: 0;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.lq-snips-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: none;
  letter-spacing: 0;
}
.lq-snips-more {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lq-snips-list {
  list-style: none;
  margin: 0;
  padding: 6px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lq-snips-row { border-top: 1px solid var(--border); }
.lq-snips-row:first-child { border-top: none; }
.lq-snips-link {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 10px 8px;
  margin: 0 -4px;
  text-decoration: none;
  color: inherit;
  border-radius: 7px;
  transition: background 120ms ease;
  min-height: 56px;
  min-width: 0;
}
.lq-snips-link:hover { background: var(--bg-2); text-decoration: none; }

.lq-snips-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.lq-snips-title-text {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.005em;
}
.lq-snips-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.lq-snips-lang {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.lq-snips-dot { color: var(--text-3); opacity: 0.5; font-size: 10px; flex-shrink: 0; }
.lq-snips-author {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.lq-snips-skel {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.lq-snips-skel-row { display: flex; align-items: center; gap: 6px; }
.lq-snips-skel-row--in { padding-left: 12px; }
.lq-snips-bar {
  display: inline-block;
  height: 5px;
  border-radius: 2px;
  background: var(--text-3);
  opacity: 0.55;
}
.lq-snips-bar--a   { width: 28px; opacity: 0.8; }
.lq-snips-bar--b   { width: 48px; opacity: 0.7; }
.lq-snips-bar--c   { width: 74px; opacity: 0.6; }
.lq-snips-bar--var { width: 36px; background: var(--text-3); opacity: 0.4; }

.lq-snips-row--p1 .lq-snips-bar--a { background: var(--type-method);    }
.lq-snips-row--p1 .lq-snips-bar--b { background: var(--type-class);     }
.lq-snips-row--p1 .lq-snips-bar--c { background: var(--type-property);  }

.lq-snips-row--p2 .lq-snips-bar--a { background: var(--type-event);     }
.lq-snips-row--p2 .lq-snips-bar--b { background: var(--type-property);  }
.lq-snips-row--p2 .lq-snips-bar--c { background: var(--type-interface); }

.lq-snips-row--p3 .lq-snips-bar--a { background: var(--type-class);     }
.lq-snips-row--p3 .lq-snips-bar--b { background: var(--type-method);    }
.lq-snips-row--p3 .lq-snips-bar--c { background: var(--type-event);     }

.lq-snips-row--p4 .lq-snips-bar--a { background: var(--type-enum);      }
.lq-snips-row--p4 .lq-snips-bar--b { background: var(--type-interface); }
.lq-snips-row--p4 .lq-snips-bar--c { background: var(--type-property);  }

.lq-snips-row--p5 .lq-snips-bar--a { background: var(--type-method);    }
.lq-snips-row--p5 .lq-snips-bar--b { background: var(--type-event);     }
.lq-snips-row--p5 .lq-snips-bar--c { background: var(--type-class);     }

.lq-snips-time {
  flex: 0 0 auto;
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
}
.lq-snips-empty {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-2);
}
.lq-snips-empty a { color: var(--accent); font-weight: 500; text-decoration: none; }

@media (max-width: 720px) {
  .lq-snips-link {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .lq-snips-skel { align-self: flex-start; }
  .lq-snips-time { align-self: flex-end; padding-bottom: 0; }
}

/* ============================================================
   RIGHT column: a doc-page preview card (from variant 59).
   Placeholder until the masterclass video is recorded.
   ============================================================ */
.lq-hero-right {
  position: relative;
  /* Scale the whole example doc card down to 0.7. zoom (not transform: scale)
     so it reflows cleanly with no leftover empty box and does not clash with
     the slide-in transform / child rotate below. */
  zoom: 0.7;
  opacity: 0;
  transform: translateX(20px);
  animation: lq-slide-in 700ms cubic-bezier(0.22, 1, 0.36, 1) 160ms forwards;
  perspective: 1200px;
}

.lq-preview-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}
.lq-preview-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: lq-lesson-pulse 2.4s ease-in-out infinite;
}
.lq-preview-eyebrow-sep {
  color: var(--text-3);
  opacity: 0.55;
  letter-spacing: 0;
}

/* The browser frame card. */
.lqd-frame {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transform: rotate(-1deg);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 180, 84, 0.04),
    0 0 30px var(--accent-glow);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 320ms ease;
}
.lqd-frame:hover {
  transform: rotate(-0.4deg) translateY(-4px);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 180, 84, 0.08),
    0 0 48px var(--accent-glow);
}
@media (max-width: 1080px) {
  .lqd-frame { transform: rotate(0); }
  .lqd-frame:hover { transform: translateY(-3px); }
}

/* Browser chrome strip. */
.lqd-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.lqd-dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.55; }
.lqd-dot--r { background: #ff5f57; }
.lqd-dot--y { background: #ffbd2e; }
.lqd-dot--g { background: #28c840; }

.lqd-url {
  position: relative;
  flex: 1;
  margin-left: 10px;
  height: 26px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}
.lqd-url-lock { color: var(--accent); opacity: 0.85; flex-shrink: 0; }
.lqd-url-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lqd-url-sweep {
  position: absolute;
  inset: auto 0 0 0;
  height: 1.5px;
  width: 0;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  animation: lq-sweep 1400ms ease-out 380ms forwards;
}

/* Doc body. */
.lqd-doc { padding: 22px 24px 24px; background: var(--bg-0); }

.lqd-crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.lqd-crumb-sep { color: var(--text-3); opacity: 0.6; }
.lqd-crumb-cur { color: var(--text-1); }

.lqd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.lqd-doc-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-0);
  margin: 0;
  letter-spacing: -0.01em;
}

.lqd-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lqd-chip--class {
  color: var(--type-class);
  background: var(--type-class-bg);
  border: 1px solid var(--type-class-border);
}

.lqd-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 14px;
  overflow: hidden;
}
.lqd-card-hd {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}

.lqd-code {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-1);
  white-space: pre;
  overflow-x: auto;
  background: transparent;
}
.lqd-code code { font-family: inherit; background: none; padding: 0; }
.lqd-kw { color: var(--accent); }
.lqd-tp { color: var(--type-class); }
.lqd-fn { color: var(--text-0); font-weight: 500; }

.lqd-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 14px;
}

.lqd-params { display: flex; flex-direction: column; }
.lqd-param {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.lqd-param:last-child { border-bottom: 0; }
.lqd-pname {
  font-family: var(--font-mono);
  color: var(--text-0);
  font-size: 11.5px;
}
.lqd-pdesc { color: var(--text-2); line-height: 1.5; }

.lqd-returns {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 2px solid var(--accent);
  font-size: 12.5px;
}
.lqd-returns-arrow { color: var(--accent); font-family: var(--font-mono); font-weight: 600; }
.lqd-returns-type { font-family: var(--font-mono); color: var(--type-class); font-weight: 600; }
.lqd-returns-text { color: var(--text-2); }

.lqd-versions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.lqd-versions-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.lqd-versions-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lqd-vchip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.lq-preview-foot {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.lq-preview-foot-sep { margin: 0 6px; opacity: 0.55; }

@keyframes lq-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes lq-sweep {
  from { width: 0;   left: 0; }
  to   { width: 100%; left: 0; opacity: 0; }
}

/* ============================================================
   PILLARS. Top accent rail, type-color theme per card.
   ============================================================ */
.lq-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 80px;
}
.lq-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 220ms ease,
              box-shadow 280ms ease;
  isolation: isolate;
}
.lq-pillar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 20% 0%, var(--lq-pillar-glow, var(--accent-glow)), transparent 55%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
  z-index: 0;
}
.lq-pillar > * { position: relative; z-index: 1; }
.lq-pillar:hover {
  transform: translateY(-4px);
  border-color: var(--lq-pillar-color, var(--accent));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.lq-pillar:hover::after { opacity: 1; }

.lq-pillar-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lq-pillar-color, var(--accent));
  opacity: 0.7;
  z-index: 2;
  transition: opacity 220ms ease, height 220ms ease;
}
.lq-pillar:hover .lq-pillar-rail { opacity: 1; height: 4px; }

.lq-pillar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.lq-pillar-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--lq-pillar-icon-bg, var(--type-class-bg));
  color: var(--lq-pillar-color, var(--type-class));
  border: 1px solid var(--lq-pillar-icon-border, var(--type-class-border));
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lq-pillar:hover .lq-pillar-icon { transform: scale(1.06); }

.lq-pillar-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lq-pillar-color, var(--accent));
  background: var(--lq-pillar-icon-bg, var(--accent-glow));
  border: 1px solid var(--lq-pillar-icon-border, color-mix(in srgb, var(--accent) 30%, transparent));
  border-radius: 999px;
}
.lq-pillar-tag--free { letter-spacing: 0.16em; }

.lq-pillar-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-0);
  letter-spacing: -0.015em;
}
.lq-pillar-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 22px;
  flex: 1;
}
.lq-pillar-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--lq-pillar-color, var(--accent));
  background: var(--lq-pillar-icon-bg, var(--accent-glow));
  border: 1px solid var(--lq-pillar-icon-border, color-mix(in srgb, var(--accent) 30%, transparent));
  border-radius: 9px;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.lq-pillar:hover .lq-pillar-cta {
  background: color-mix(in srgb, var(--lq-pillar-color, var(--accent)) 18%, var(--bg-1));
  border-color: var(--lq-pillar-color, var(--accent));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--lq-pillar-color, var(--accent)) 18%, transparent);
}
.lq-pillar-cta-arrow { display: inline-block; transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.lq-pillar:hover .lq-pillar-cta-arrow { transform: translateX(4px); }

/* Kill global a:hover underline bleed onto the pillar card body. */
.lq-pillar,
.lq-pillar:hover,
.lq-pillar *,
.lq-pillar:hover * { text-decoration: none !important; }

/* Per-card color themes. */
.lq-pillar--tutorials {
  --lq-pillar-color: var(--type-property);
  --lq-pillar-icon-bg: var(--type-property-bg);
  --lq-pillar-icon-border: rgba(184, 57, 90, 0.3);
  --lq-pillar-glow: color-mix(in srgb, var(--type-property) 18%, transparent);
}
.lq-pillar--fasttrack {
  --lq-pillar-color: var(--accent);
  --lq-pillar-icon-bg: var(--type-event-bg);
  --lq-pillar-icon-border: rgba(184, 116, 26, 0.3);
  --lq-pillar-glow: var(--accent-glow);
}
.lq-pillar--kit {
  --lq-pillar-color: var(--type-method);
  --lq-pillar-icon-bg: var(--type-method-bg);
  --lq-pillar-icon-border: rgba(45, 140, 110, 0.3);
  --lq-pillar-glow: color-mix(in srgb, var(--type-method) 18%, transparent);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes lq-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lq-wipe-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes lq-lesson-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 180, 84, 0.5); }
  50%      { box-shadow: 0 0 14px rgba(255, 180, 84, 0.7); }
}
@keyframes lq-play-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.18); opacity: 0.35; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .lq-hero { grid-template-columns: 1fr; gap: 32px; }
  .lq-hero-left { max-width: none; }
  .lq-search-input { min-width: 0; }
}
@media (max-width: 900px) {
  .lq-community-row { grid-template-columns: 1fr; }
  .lq-community-row .lq-snips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lq-community-row .lq-snips-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Legal disclaimer band at the page bottom — small, muted, centered. */
.lq-disclaimer {
  max-width: 980px;
  margin: 8px auto 48px;
  padding: 18px 24px 0;
  border-top: 1px solid var(--border);
}
.lq-disclaimer p {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-3);
  text-align: center;
}
.lq-disclaimer-links a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lq-disclaimer-links a:hover { color: var(--accent); }
.lq-disclaimer-links span { padding: 0 8px; color: var(--text-3); }

@media (max-width: 900px) {
  .lq-pillars { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 540px) {
  .lq-board-name { max-width: 100px; }
  .lq-board-handle { display: none; }
  .lq-snips-author { max-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .lq-hero-left,
  .lq-hero-right,
  .lq-learn-item,
  .lq-play-ring,
  .lq-lesson-eyebrow-dot,
  .lq-search-caret {
    animation: none;
    transform: none;
    opacity: 1;
  }
  /* Badges: kill transitions only. Do NOT force opacity:1 here, or every
     closed popover would show at once. */
  .lq-badge,
  .lq-badge-pop { transition: none; }
}
