/* Lipi overrides for /study/* static pages */
:root {
  --ink: #142824;
  --accent: #1e9b8c;
  --accent-dark: #157a6f;
  --bg: #f6fcfa;
  --card: #ffffff;
  --line: #d4ebe6;
  --muted: #4a6460;
}
html.theme-dark {
  --ink: #e6f3ef;
  --accent: #26b3a1;
  --accent-dark: #5fd6c4;
  --bg: #0c1715;
  --card: #13211e;
  --line: #26352f;
  --muted: #9cbab4;
}
html, body { background: var(--bg) !important; color: var(--ink) !important; }
.lipi-study-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.lipi-study-bar .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.lipi-study-bar .brand .logo { width: 32px; height: 32px; object-fit: contain; }
.lipi-study-bar .brand-wordmark {
  font-family: 'Fredoka', 'Inter', ui-rounded, system-ui, sans-serif;
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(165deg, #0d8f82 0%, #1e9b8c 45%, #72d4bf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.theme-dark .lipi-study-bar .brand-wordmark {
  background: linear-gradient(165deg, #3fcab6 0%, #5fd6c4 50%, #9af0e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lipi-study-bar .theme-switch { margin-left: auto; }
.wrap a.back { display: none !important; }
.cbtn.active, .tab.active, .tchip.active { background: var(--accent) !important; color: #fff !important; }
.cbtn, .tab, .tchip, .card, .prog, .chk, .box, .panel, .qcard {
  background: var(--card) !important; color: var(--ink) !important; border-color: var(--line) !important;
}
.sub, .sec, .open .d, .note { color: var(--muted) !important; }
.ask, .banner { border-color: var(--line) !important; }
html.theme-dark .ask { background: #2a2410 !important; color: #f5e6b8 !important; }
html.theme-dark .banner { background: #33260c !important; color: #f0c869 !important; }
