/* ══════════════════════════════════════════════════════════
   DevPath — index.css

   STRUCTURE:
   1. Fonts & Tokens        — design variables, used everywhere
   2. Reset                 — box-sizing, scroll
   3. Body                  — shared base for shell + study pages
   4. NAV SHELL             — .nav, .nav-tab, .frame-shell  (index.html only)
   5. STUDY PAGE BASE       — hero, filter, plan-body, cards (study/*.html)
   6. DRAWER                — slide-in detail panel          (study/*.html)
   7. Responsive            — breakpoints

   ADDING A NEW PLAN:
   - Create  study/your-plan.html  and link this file.
   - If the plan needs unique styles, add a scoped block at
     the very bottom of this file: 
   - Never add inline <style> blocks to any page.
════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════
   1. FONTS & TOKENS
══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  /* surfaces */
  --bg:        #09090F;
  --surface:   #101018;
  --surface2:  #16161F;
  --surface3:  #1C1C28;

  /* borders */
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.13);

  /* text */
  --text:      #E2E2EE;
  --muted:     #6868A0;
  --muted2:    #404068;

  /* accent palette */
  --accent:    #F0C050;
  --green:     #34D399;
  --blue:      #60A5FA;
  --purple:    #C084FC;
  --red:       #F87171;

  /* layout */
  --nav-h:     54px;

  /* typography */
  --font:      'Syne', sans-serif;
  --mono:      'JetBrains Mono', monospace;

  /* shape */
  --radius:    10px;
  --radius-sm: 6px;
}

/* ── D4: Light mode overrides
   Applied when <html data-theme="light"> is set by the
   theme toggle in index.html. All CSS variables cascade
   from here — no component styles need to change.
────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:       #F4F4FA;
  --surface:  #FFFFFF;
  --surface2: #EDEDF5;
  --surface3: #E4E4F0;

  --border:   rgba(0, 0, 0, 0.08);
  --border2:  rgba(0, 0, 0, 0.15);

  --text:     #1A1A2E;
  --muted:    #4848A0;
  --muted2:   #8080B8;
}

/* ══════════════════════════════════════════════════════════
   2. RESET
══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }


/* ══════════════════════════════════════════════════════════
   3. BODY  (shared — applies to index.html and study/*.html)
══════════════════════════════════════════════════════════ */

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}


/* ══════════════════════════════════════════════════════════
   4. NAV SHELL  (index.html only)
══════════════════════════════════════════════════════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 1.25rem;
  gap: 1.5rem;
}

/* logo */
.nav-logo {
  font-family: var(--mono);
  font-size: 14px; font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.nav-logo em { color: var(--muted); font-style: normal; font-weight: 400; }

.nav-logo-icon {
  width: 28px; height: 28px;
  background: rgba(240,192,80,0.1);
  border: 1px solid rgba(240,192,80,0.2);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* tab strip */
.nav-tabs {
  display: flex; align-items: center; gap: 2px;
  flex: 1; overflow-x: auto;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
  background: none;
}
.nav-tab:hover  { background: var(--surface2); color: var(--text); }
.nav-tab.active {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--text);
}
.nav-tab .tab-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
}

/* hint pill (right side) */
/* hint pill (right side) */
.nav-hint {
  font-family: var(--mono);
  font-size: 11px; color: var(--muted2);
  flex-shrink: 0;
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
}

/* D4: dark/light mode toggle button */
.nav-theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}
.nav-theme-btn:hover {
  background: var(--surface2);
  border-color: var(--border2);
}

/* content iframe */
.frame-shell {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
}
.content-frame {
  width: 100%; height: 100%;
  border: none;
  background: var(--bg);
}


/* ══════════════════════════════════════════════════════════
   5. STUDY PAGE BASE  (study/*.html — loaded inside iframe)
══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  padding: 2.5rem 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  max-width: 1400px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; color: var(--text);
  margin-bottom: 0.5rem;
}
.hero-title span { color: var(--muted); font-weight: 400; }

.hero-desc {
  font-size: 14px; color: var(--muted);
  line-height: 1.7; margin-bottom: 1.75rem;
  max-width: 640px;
}

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat       { display: flex; flex-direction: column; gap: 3px; }
.stat-val   { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--muted); }


/* ── Filter bar ── */
.filter-bar {
  position: sticky; top: 0; z-index: 10;
  padding: 0.75rem 2.5rem;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}

.filter-label {
  font-family: var(--mono);
  font-size: 11px; color: var(--muted2);
  margin-right: 4px;
}

.filter-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover  { background: var(--surface2); color: var(--text); }
.filter-btn.active { background: var(--surface3); border-color: var(--border2); color: var(--text); }

.filter-dot       { width: 7px; height: 7px; border-radius: 50%; }
.dot-all          { background: var(--muted); }
.dot-beginner     { background: var(--green); }
.dot-intermediate { background: var(--blue); }
.dot-advanced     { background: var(--purple); }

.week-jump       { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.week-jump-label { font-family: var(--mono); font-size: 11px; color: var(--muted2); }
.week-jump select {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--font);
  font-size: 12px; font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer; outline: none;
}


/* ── Plan body ── */
.plan-body {
  padding: 2.5rem;
  max-width: 1400px;
}


/* ── Phase block ── */
.phase-block  { margin-bottom: 3.5rem; }

.phase-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 2rem;
}

.phase-tag {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
  flex-shrink: 0;
}
.phase-tag.p1 { background: rgba(52,211,153,0.1);  color: var(--green);  }
.phase-tag.p2 { background: rgba(192,132,252,0.1); color: var(--purple); }

.phase-title { font-size: 17px; font-weight: 700; color: var(--text); }
.phase-meta  { font-size: 13px; color: var(--muted); }
.phase-line  { flex: 1; height: 1px; background: var(--border); }


/* ── Week group ── */
.week-group  { margin-bottom: 2.5rem; scroll-margin-top: 60px; }

.week-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.week-num    { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted2); letter-spacing: 0.08em; }
.week-name   { font-size: 13px; font-weight: 600; color: var(--muted); }
.week-divider { flex: 1; height: 1px; background: var(--border); }


/* ── Day grid ── */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 160px));
  gap: 8px;
}


/* ── Day card ── */
.day-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  user-select: none;
}

/* top accent bar */
.day-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.day-card.beginner::before     { background: var(--green);  }
.day-card.intermediate::before { background: var(--blue);   }
.day-card.advanced::before     { background: var(--purple); }

.day-card:hover         { background: var(--surface2); border-color: var(--border2); transform: translateY(-2px); }
.day-card:hover::before { opacity: 1; }
.day-card.active        { background: var(--surface2); border-color: var(--border2); }
.day-card.active::before { opacity: 1; }
.day-card.dimmed        { opacity: 0.2; pointer-events: none; }

/* D2: keyboard focus ring — visible only on keyboard nav, not mouse clicks */
.day-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--border2);
}

.day-num   { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--muted2); margin-bottom: 6px; }
.day-topic { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.4; }

/* phase dot (top-right corner) */
.phase-dot             { position: absolute; top: 13px; right: 12px; width: 6px; height: 6px; border-radius: 50%; }
.phase-dot.beginner    { background: var(--green);  }
.phase-dot.intermediate { background: var(--blue);  }
.phase-dot.advanced    { background: var(--purple); }

/* optional "PROJECT" label on special days */
.day-card .day-type {
  font-family: var(--mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-top: 5px;
}


/* ══════════════════════════════════════════════════════════
   6. DRAWER  (study/*.html)
══════════════════════════════════════════════════════════ */
/* D1: full-screen scrim that appears behind the open drawer
   z-index 49 keeps it below the drawer (z-index 50) but
   above all page content. Clicking the scrim closes the drawer. */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 850px;
  background: var(--surface);
  border-left: 1px solid var(--border2);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }

/* header */
.drawer-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}

.drawer-badge {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 5px;
}
.drawer-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.drawer-badge.beginner     { background: rgba(52,211,153,0.1);  color: var(--green);  }
.drawer-badge.intermediate { background: rgba(96,165,250,0.1);  color: var(--blue);   }
.drawer-badge.advanced     { background: rgba(192,132,252,0.1); color: var(--purple); }

.drawer-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.drawer-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: transparent; color: var(--muted);
  cursor: pointer; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.drawer-btn:hover:not(:disabled) { background: var(--surface2); color: var(--text); }
.drawer-btn:disabled             { opacity: 0.25; cursor: not-allowed; }
.drawer-btn.close:hover          { border-color: var(--red); color: var(--red); }

.drawer-topic     { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
.drawer-week-info { font-size: 12px; color: var(--muted); font-family: var(--mono); margin-top: 4px; }

/* body */
.drawer-body {
  flex: 1; overflow-y: auto;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}

.drawer-section-title {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted2); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.drawer-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* what to learn */
.learn-list { display: flex; flex-direction: column; gap: 7px; }
.learn-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.learn-num  { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--accent); flex-shrink: 0; padding-top: 2px; }
.learn-text { font-size: 13px; line-height: 1.65; color: var(--text); }

/* outcomes */
.outcome-list { display: flex; flex-direction: column; gap: 7px; }
.outcome-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  background: rgba(52,211,153,0.04);
  border: 1px solid rgba(52,211,153,0.12);
  border-radius: var(--radius-sm);
}
.outcome-check { color: var(--green); flex-shrink: 0; font-size: 13px; padding-top: 1px; }
.outcome-text  { font-size: 13px; line-height: 1.65; color: var(--text); }

/* sources */
.source-list { display: flex; flex-direction: column; gap: 7px; }
.source-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text);
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}
.source-link:hover { background: var(--surface3); border-color: var(--border2); transform: translateX(3px); }

.source-badge {
  font-family: var(--mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px; flex-shrink: 0;
}
.badge-docs    { background: rgba(96,165,250,0.12);  color: var(--blue);   }
.badge-article { background: rgba(240,192,80,0.12);  color: var(--accent); }
.badge-video   { background: rgba(248,113,113,0.12); color: var(--red);    }
.source-name   { font-size: 13px; font-weight: 500; flex: 1; }
.source-arrow  { color: var(--muted2); font-size: 14px; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════
   7. RESPONSIVE
══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .drawer             { width: 100%; }
  .plan-body, .hero   { padding: 1.5rem 1rem; }
  .filter-bar         { padding: 0.75rem 1rem; }
  .week-jump          { display: none; }
}

@media (max-width: 600px) {
  /* D7: swap hint pill text to "tap a card" on mobile
     font-size: 0 hides the original text without removing
     the element; ::after injects the mobile-appropriate copy */
  .nav-hint {
    font-size: 0;
  }
  .nav-hint::after {
    content: 'tap a card';
    font-size: 11px;
    font-family: var(--mono);
    color: var(--muted2);
  }
}

@media (max-width: 480px) {
  .hero-stats         { gap: 1.5rem; }
  .hero-title         { font-size: 22px; }
  .day-grid           { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* D7: first-visit pulse animation for mobile
   Draws attention to the fact that cards are tappable.
   Applied by daydeck-core.js on first mobile visit only. */
@keyframes card-pulse {
  0%,  100% { box-shadow: 0 0 0 0   rgba(240, 192, 80, 0);   }
  50%        { box-shadow: 0 0 0 5px rgba(240, 192, 80, 0.28); }
}
.day-card.pulse-hint {
  animation: card-pulse 1.5s ease 0.6s 2;
}


/* ══════════════════════════════════════════════════════════
   PLAN-SPECIFIC OVERRIDES
   Add a scoped block here if a study page needs unique styles.
   Never add <style> blocks directly inside any HTML file.
══════════════════════════════════════════════════════════ */


/* ── Week accent colors  (lwc-30day, apex-30day, etc.)
   Week colors are defined per plan in the JSON.
   Add more .wN classes here if a plan has more than 4 weeks.
────────────────────────────────────────────────────────── */

/* Card top bar */
.day-card.w1::before { background: #00d4ff; }
.day-card.w2::before { background: #7b61ff; }
.day-card.w3::before { background: #ff6b6b; }
.day-card.w4::before { background: #06d6a0; }

/* Phase corner dot on card */
.phase-dot.w1 { background: #00d4ff; }
.phase-dot.w2 { background: #7b61ff; }
.phase-dot.w3 { background: #ff6b6b; }
.phase-dot.w4 { background: #06d6a0; }

/* Drawer header badge */
.drawer-badge.w1 { background: rgba(0,212,255,0.1);   color: #00d4ff; }
.drawer-badge.w2 { background: rgba(123,97,255,0.1);  color: #7b61ff; }
.drawer-badge.w3 { background: rgba(255,107,107,0.1); color: #ff6b6b; }
.drawer-badge.w4 { background: rgba(6,214,160,0.1);   color: #06d6a0; }

/* Phase block header tag */
.phase-tag.pw1 { background: rgba(0,212,255,0.1);   color: #00d4ff; }
.phase-tag.pw2 { background: rgba(123,97,255,0.1);  color: #7b61ff; }
.phase-tag.pw3 { background: rgba(255,107,107,0.1); color: #ff6b6b; }
.phase-tag.pw4 { background: rgba(6,214,160,0.1);   color: #06d6a0; }

/* Filter bar dots */
.dot-w1 { background: #00d4ff; }
.dot-w2 { background: #7b61ff; }
.dot-w3 { background: #ff6b6b; }
.dot-w4 { background: #06d6a0; }


/* ── Week goal line  (shown below phase header, above day grid) ── */
.week-goal {
  font-size: 12px; color: var(--muted);
  font-family: var(--mono);
  margin: -1rem 0 1.5rem;
  letter-spacing: 0.02em;
}


/* ── Practice block  (lwc-30day, apex-30day)
   The hands-on exercise displayed in the drawer.
   Left border uses accent gold — stands out from learn/outcome items.
────────────────────────────────────────────────────────── */

.practice-block {
  padding: 12px 14px;
  background: rgba(240,192,80,0.04);
  border: 1px solid rgba(240,192,80,0.12);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.practice-text {
  font-size: 13px; line-height: 1.75; color: var(--text);
}


/* ── Gain tags  (lwc-30day, apex-30day)
   Short skill labels earned on a given day — rendered as pills.
────────────────────────────────────────────────────────── */

.gain-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.gain-tag {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
  background: var(--surface3);
  border: 1px solid var(--border2);
  color: var(--muted);
}


/* ── Trail badge  (Trailhead resources)
   Trailhead is its own resource type — not docs, not article.
────────────────────────────────────────────────────────── */

.badge-trail  { background: rgba(0,212,255,0.1);    color: #00d4ff; }
.badge-github { background: rgba(139,148,158,0.12); color: #8b949e; }

/* ── Arbitrary card accent color  (slds-doc.html)
   Modules use arbitrary hex colors, not fixed w1-w4.
   Set --card-accent on the element via inline style.
────────────────────────────────────────────────────────── */

.day-card.colored::before  { background: var(--card-accent, var(--muted2)); }
.phase-dot.colored         { background: var(--card-accent, var(--muted2)); }
.drawer-badge.colored      { background: var(--card-accent-bg, rgba(255,255,255,0.08)); color: var(--card-accent, var(--muted)); }

.entry-id {
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  color: var(--muted2); margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.entry-module {
  font-family: var(--mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 6px;
  color: var(--card-accent, var(--muted2));
  opacity: 0.8;
}


/* ── Search bar  (slds-doc.html)
────────────────────────────────────────────────────────── */

.search-bar {
  padding: 0.6rem 2.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}

.search-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.search-input::placeholder { color: var(--muted2); }
.search-input:focus { border-color: var(--muted); }

.search-count {
  font-family: var(--mono);
  font-size: 11px; color: var(--muted2);
  white-space: nowrap; flex-shrink: 0;
}


/* ── Before / After code comparison  (slds-doc.html)
────────────────────────────────────────────────────────── */

.code-compare     { display: flex; flex-direction: column; gap: 8px; }

.code-block-label {
  font-family: var(--mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 5px;
  display: flex; align-items: center; gap: 5px;
}
.code-block-label.before { color: var(--red); }
.code-block-label.after  { color: var(--green); }

.slds-code-block {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px; line-height: 1.75;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}


/* ── Scenario block  (slds-doc.html)
────────────────────────────────────────────────────────── */

.scenario-block {
  padding: 10px 14px;
  background: rgba(96,165,250,0.04);
  border: 1px solid rgba(96,165,250,0.1);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  font-size: 13px; font-style: italic;
  color: var(--muted); line-height: 1.65;
}


/* ── Notes block  (slds-doc.html)
────────────────────────────────────────────────────────── */

.notes-block {
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.7;
  color: var(--text);
}


/* ── SLDS class name pills  (slds-doc.html)
   Clickable — copies class name to clipboard.
────────────────────────────────────────────────────────── */

.slds-class-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.slds-class-tag {
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  padding: 4px 9px; border-radius: 4px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.18);
  color: #00d4ff;
  cursor: pointer;
  transition: background 0.12s, transform 0.1s;
  user-select: none;
}
.slds-class-tag:hover  { background: rgba(0,212,255,0.14); transform: translateY(-1px); }
.slds-class-tag.copied { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.3); color: var(--green); }
/* ══════════════════════════════════════════════════════════
   8. MOTION ACCESSIBILITY
   Respects the OS "Reduce motion" preference.
   Elements still change state — just instantly, not animated.
══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration:  0.01ms !important;
  }
}