/* ============================================================
   PRAGYAPATH (प्रज्ञापथ) — Shared Design System v3
   "The Path of Wisdom" — Nepal's Interactive Learning Platform

   Classes 7–12 · NEB Curriculum · Bilingual EN/NP
   Brand: Himalayan Indigo #2c3e9e + Nepal Crimson #dc143c

   All pages import this single file.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* ══════════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════════ */
:root {
  /* ── Brand — Himalayan Indigo ── */
  --brand:        #2c3e9e;
  --brand-light:  #5468d8;
  --brand-dark:   #1a2670;
  --brand-glow:   rgba(44, 62, 158, 0.10);
  --brand-glow2:  rgba(44, 62, 158, 0.18);

  /* ── Accent — Nepal Crimson ── */
  --accent:       #dc143c;
  --accent-light: #ee4060;
  --accent-dark:  #8b0a25;
  --accent-glow:  rgba(220, 20, 60, 0.09);

  /* ── Backgrounds ── */
  --bg:  #f7f7fb;
  --bg2: #ffffff;
  --bg3: #eeeef5;
  --bg4: #e2e2ed;

  /* ── Text ── */
  --text:  #1a1d2e;
  --text2: #4a4f63;
  --text3: #7e8298;

  /* ── Subject colours — all 13 subjects ── */
  --math:       #2563eb;  --math-l:       rgba(37,99,235,0.10);   --math-d:       #1d4ed8;
  --science:    #16a34a;  --science-l:    rgba(22,163,74,0.10);   --science-d:    #15803d;
  --english:    #7c3aed;  --english-l:    rgba(124,58,237,0.10);  --english-d:    #6b21a8;
  --nepali:     #b45309;  --nepali-l:     rgba(180,83,9,0.10);    --nepali-d:     #92400e;
  --social:     #0d9488;  --social-l:     rgba(13,148,136,0.10);  --social-d:     #0f766e;
  --computer:   #0891b2;  --computer-l:   rgba(8,145,178,0.10);   --computer-d:   #0e7490;
  --health:     #16a34a;  --health-l:     rgba(22,163,74,0.10);   --health-d:     #15803d;
  --optional:   #ea580c;  --optional-l:   rgba(234,88,12,0.10);   --optional-d:   #c2410c;
  --physics:    #6d28d9;  --physics-l:    rgba(109,40,217,0.10);  --physics-d:    #5b21b6;
  --chemistry:  #0284c7;  --chemistry-l:  rgba(2,132,199,0.10);   --chemistry-d:  #0369a1;
  --biology:    #16a34a;  --biology-l:    rgba(22,163,74,0.10);   --biology-d:    #15803d;
  --economics:  #0891b2;  --economics-l:  rgba(8,145,178,0.10);   --economics-d:  #0e7490;
  --accountancy:#7c3aed;  --accountancy-l:rgba(124,58,237,0.10);  --accountancy-d:#6b21a8;
  --sociology:  #0d9488;  --sociology-l:  rgba(13,148,136,0.10);  --sociology-d:  #0f766e;
  --history:    #b45309;  --history-l:    rgba(180,83,9,0.10);    --history-d:    #92400e;

  /* ── Difficulty ── */
  --easy:   #16a34a;
  --medium: #d97706;
  --hard:   #dc143c;

  /* ── UI ── */
  --border:     rgba(26,29,46,0.09);
  --border2:    rgba(26,29,46,0.16);
  --shadow-sm:  0 1px 4px rgba(26,29,46,0.06), 0 1px 2px rgba(26,29,46,0.04);
  --shadow:     0 4px 18px rgba(26,29,46,0.09), 0 1px 4px rgba(26,29,46,0.04);
  --shadow-md:  0 6px 24px rgba(26,29,46,0.11), 0 2px 6px rgba(26,29,46,0.05);
  --shadow-lg:  0 12px 40px rgba(26,29,46,0.13), 0 4px 12px rgba(26,29,46,0.06);

  /* ── Radius ── */
  --r-sm: 6px;
  --r:    10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* ── Typography ── */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-np:      'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* ── Font sizes ── */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 16px;
  --fs-md:   17px;
  --fs-lg:   19px;
  --fs-xl:   22px;
  --fs-2xl:  28px;
  --fs-3xl:  36px;

  /* ── Line heights ── */
  --lh-tight: 1.35;
  --lh-base:  1.70;
  --lh-loose: 1.85;

  /* ── Spacing ── */
  --gap:    18px;
  --gap-lg: 28px;

  /* ── Layout widths ── */
  --w-content: 980px;
  --w-wide:    1200px;

  /* ── Transitions ── */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:  #0c0e1a;
    --bg2: #141729;
    --bg3: #1d2138;
    --bg4: #272d49;
    --text:  #e8eaf5;
    --text2: #9aa0bd;
    --text3: #5a6080;
    --border:  rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.13);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.35);
    --shadow:    0 4px 18px rgba(0,0,0,0.45);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.55);
    --brand-glow:  rgba(84,104,216,0.14);
    --brand-glow2: rgba(84,104,216,0.22);
    --accent-glow: rgba(238,64,96,0.14);
    /* darken subject light variants */
    --math-l:       rgba(37,99,235,0.16);
    --science-l:    rgba(22,163,74,0.16);
    --english-l:    rgba(124,58,237,0.16);
    --nepali-l:     rgba(180,83,9,0.18);
    --social-l:     rgba(13,148,136,0.16);
    --computer-l:   rgba(8,145,178,0.16);
    --health-l:     rgba(22,163,74,0.16);
    --optional-l:   rgba(234,88,12,0.16);
    --physics-l:    rgba(109,40,217,0.16);
    --chemistry-l:  rgba(2,132,199,0.16);
    --biology-l:    rgba(22,163,74,0.16);
    --economics-l:  rgba(8,145,178,0.16);
    --accountancy-l:rgba(124,58,237,0.16);
    --sociology-l:  rgba(13,148,136,0.16);
    --history-l:    rgba(180,83,9,0.18);
  }
  .site-nav { background: rgba(12,14,26,0.94); }
}

/* ══════════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; display: block; }
a    { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font-body); }

/* Nepali text utility */
.np, [lang="ne"] { font-family: var(--font-np); }

/* ══════════════════════════════════════════════════════════
   GLOBAL NAV
══════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,247,251,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--gap-lg);
  display: flex; align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Logo */
.site-nav .logo {
  display: flex; align-items: center;
  gap: 11px; text-decoration: none;
}
.site-nav .logo:hover { text-decoration: none; }

.site-nav .logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: var(--r-sm);
  display: flex; align-items: center;
  justify-content: center; font-size: 19px;
  flex-shrink: 0;
}

.site-nav .logo-text {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--text); line-height: 1;
}
.site-nav .logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 500;
  color: var(--text3); letter-spacing: 0.4px;
}

/* Nav links */
.site-nav .nav-links {
  display: flex; align-items: center; gap: 2px;
}
.site-nav .nav-link {
  padding: 7px 13px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500;
  color: var(--text2); text-decoration: none;
  transition: all 0.15s; border: none;
  background: transparent; white-space: nowrap;
}
.site-nav .nav-link:hover {
  background: var(--bg3); color: var(--text);
  text-decoration: none;
}
.site-nav .nav-link.active {
  background: var(--brand-glow); color: var(--brand);
  font-weight: 600;
}

/* Language toggle in nav */
.nav-lang-toggle {
  padding: 5px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  border: 1.5px solid var(--border2);
  background: transparent; color: var(--text3);
  cursor: pointer; font-family: var(--font-np);
  transition: all 0.15s; white-space: nowrap;
  letter-spacing: 0.3px;
}
.nav-lang-toggle:hover {
  border-color: var(--brand); color: var(--brand);
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: 8px;
  background: transparent; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border2);
  padding: 12px 20px 20px; z-index: 99;
  flex-direction: column; gap: 4px;
  box-shadow: var(--shadow);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu .nav-link {
  padding: 11px 14px; border-radius: var(--r);
  font-size: 15px; border-bottom: 1px solid var(--border);
}
.nav-mobile-menu .nav-link:last-child { border-bottom: none; }

@media (max-width: 760px) {
  .site-nav .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .site-nav { padding: 0 var(--gap); height: 56px; }
  .nav-mobile-menu { top: 56px; }
}

/* ══════════════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text3);
  padding: 12px 0 0; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text3); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--brand); text-decoration: none; }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text2); font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   PAGE WRAPPERS
══════════════════════════════════════════════════════════ */
.page-wrap      { max-width: var(--w-content); margin: 0 auto; padding: 0 var(--gap) 48px; }
.page-wrap-wide { max-width: var(--w-wide);    margin: 0 auto; padding: 0 var(--gap) 48px; }
.page-wrap-full { width: 100%;                                  padding: 0 var(--gap) 48px; }

/* Legacy alias */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 56px; }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow); }

.card-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 14px;
  display: flex; align-items: center;
  gap: 11px; line-height: 1.3;
}
.card-title .icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center;
  justify-content: center; font-size: 16px; flex-shrink: 0;
}

.card p  { font-size: 15px; color: var(--text2); margin-bottom: 10px; line-height: var(--lh-base); }
.card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 16px 0 7px; }
.card ul, .card ol { padding-left: 20px; }
.card li { font-size: 15px; color: var(--text2); line-height: 2; }

/* ══════════════════════════════════════════════════════════
   CALLOUTS
══════════════════════════════════════════════════════════ */
.callout {
  border-radius: var(--r);
  padding: 14px 18px; margin: 12px 0;
  font-size: 15px; border-left: 3px solid;
  line-height: var(--lh-base);
}
.callout-blue    { background: rgba(37,99,235,0.08);   border-color: var(--math);       color: #1d4ed8; }
.callout-green   { background: rgba(22,163,74,0.08);   border-color: var(--science);    color: #15803d; }
.callout-amber   { background: rgba(180,83,9,0.09);    border-color: var(--nepali);     color: #92400e; }
.callout-red     { background: rgba(220,38,38,0.08);   border-color: var(--accent);     color: #991b1b; }
.callout-purple  { background: rgba(124,58,237,0.08);  border-color: var(--english);    color: #6b21a8; }
.callout-teal    { background: rgba(13,148,136,0.08);  border-color: var(--social);     color: #0f766e; }
.callout-brand   { background: var(--brand-glow);      border-color: var(--brand);      color: var(--brand-dark); }
.callout-indigo  { background: rgba(109,40,217,0.08);  border-color: var(--physics);    color: #5b21b6; }

@media (prefers-color-scheme: dark) {
  .callout-blue   { color: #93c5fd; }
  .callout-green  { color: #86efac; }
  .callout-amber  { color: #fcd34d; }
  .callout-red    { color: #fca5a5; }
  .callout-purple { color: #d8b4fe; }
  .callout-teal   { color: #5eead4; }
  .callout-brand  { color: var(--brand-light); }
  .callout-indigo { color: #c4b5fd; }
}

/* ══════════════════════════════════════════════════════════
   FORMULA BOXES
══════════════════════════════════════════════════════════ */
.formula-box {
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  padding: 22px 24px; margin: 14px 0;
  text-align: center;
}
.formula-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 10px;
}
.formula-eq {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  color: var(--text); line-height: 1.4; margin-bottom: 12px;
}
.formula-parts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.formula-part {
  font-size: 13px; color: var(--text2);
  background: var(--bg2); padding: 4px 12px;
  border-radius: 20px; border: 1px solid var(--border2);
}
.formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin: 12px 0;
}
.formula-cell {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 15px;
}
.formula-cell .fn {
  font-size: 11px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.9px; margin-bottom: 7px;
}
.formula-cell .feq {
  font-family: var(--font-display);
  font-size: 17px; color: var(--brand);
  margin-bottom: 5px; line-height: 1.4;
}
.formula-cell .fd { font-size: 13px; color: var(--text3); }

/* ══════════════════════════════════════════════════════════
   INTERACTIVE CONTROLS
══════════════════════════════════════════════════════════ */
.slider-group {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px 20px; margin: 14px 0;
}
.slider-row {
  display: flex; align-items: center;
  gap: 14px; margin: 10px 0; flex-wrap: wrap;
}
.slider-row label {
  font-size: 14px; font-weight: 600;
  color: var(--text2); min-width: 150px;
}
.slider-row input[type="range"] {
  flex: 1; min-width: 100px; height: 5px;
  border-radius: 3px; outline: none; border: none;
  -webkit-appearance: none;
  cursor: pointer; accent-color: var(--brand);
}
.slider-val {
  font-size: 15px; font-weight: 700;
  color: var(--brand); min-width: 75px;
  text-align: right; font-family: var(--font-display);
}
.ctrl-select {
  flex: 1; padding: 8px 12px;
  border-radius: var(--r); border: 1px solid var(--border2);
  background: var(--bg2); color: var(--text);
  font-size: 14px; font-family: var(--font-body);
  outline: none; cursor: pointer;
}
.ctrl-select:focus { border-color: var(--brand); }

/* Result strip */
.result-strip {
  display: flex; border-radius: var(--r);
  overflow: hidden; border: 1px solid var(--border2);
  margin: 12px 0; flex-wrap: wrap;
}
.result-cell {
  flex: 1; min-width: 110px;
  padding: 14px 18px; background: var(--bg3);
  border-right: 1px solid var(--border);
}
.result-cell:last-child { border-right: none; }
.result-cell .rc-label {
  font-size: 11px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.9px; margin-bottom: 5px;
}
.result-cell .rc-val {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; color: var(--text);
}

/* Canvas experiment box */
.exp-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px; margin: 14px 0;
}
.exp-box canvas { display: block; margin: 0 auto; border-radius: var(--r); max-width: 100%; }

/* ══════════════════════════════════════════════════════════
   CHAPTER NAV TABS
══════════════════════════════════════════════════════════ */
.chapter-nav {
  display: flex; gap: 3px;
  background: var(--bg3); border-radius: var(--r-md);
  padding: 5px; margin: 14px 0;
  border: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
  position: sticky; top: 60px; z-index: 50;
  backdrop-filter: blur(10px);
}
.chapter-nav::-webkit-scrollbar { display: none; }

.cnav-btn {
  flex: 1; min-width: 80px;
  padding: 10px 12px; border-radius: var(--r);
  font-size: 13px; font-weight: 600;
  border: none; background: transparent;
  color: var(--text3); cursor: pointer;
  transition: all 0.17s var(--ease);
  text-align: center; white-space: nowrap;
  font-family: var(--font-body);
}
.cnav-btn:hover { background: var(--bg2); color: var(--text); }
.cnav-btn.active {
  background: var(--brand); color: #fff;
  box-shadow: 0 2px 8px rgba(44,62,158,0.3);
}

/* ══════════════════════════════════════════════════════════
   CONCEPT TABS
══════════════════════════════════════════════════════════ */
.concept-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ctab {
  padding: 7px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border2);
  background: transparent; color: var(--text3);
  cursor: pointer; font-family: var(--font-body);
  transition: all 0.15s;
}
.ctab:hover { color: var(--text); border-color: var(--border2); }
.ctab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.ctab.active-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.concept-panel { display: none; }
.concept-panel.active { display: block; }

/* ══════════════════════════════════════════════════════════
   DATA TABLES
══════════════════════════════════════════════════════════ */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; margin: 12px 0;
}
.data-table th {
  text-align: left; padding: 11px 14px;
  background: var(--bg3); color: var(--text2);
  font-weight: 600; font-size: 12px;
  border-bottom: 1px solid var(--border2);
  letter-spacing: 0.3px;
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text); line-height: 1.5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg3); }
.data-table .num { font-family: var(--font-display); }

/* ══════════════════════════════════════════════════════════
   QUIZ / EXERCISE ENGINE
══════════════════════════════════════════════════════════ */
.quiz-score-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: var(--bg2);
  border-radius: var(--r-md);
  border: 1px solid var(--border2);
  margin-bottom: 18px;
  position: sticky; top: 110px; z-index: 40;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.qs-num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--brand); line-height: 1;
}
.qs-label {
  font-size: 11px; font-weight: 700;
  color: var(--text3); text-transform: uppercase;
  letter-spacing: 0.9px;
}
.progress-bar-outer {
  flex: 1; min-width: 80px;
  background: var(--bg3); border-radius: 4px;
  height: 7px; overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 4px; transition: width 0.4s var(--ease); width: 0%;
}

/* Topic nav */
.quiz-topic-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.quiz-topic-btn {
  padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
  border: 1px solid var(--border2);
  background: transparent; color: var(--text3);
  cursor: pointer; font-family: var(--font-body);
  transition: all 0.15s; white-space: nowrap;
}
.quiz-topic-btn:hover { border-color: var(--brand); color: var(--brand); }
.quiz-topic-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.quiz-topic { display: none; }
.quiz-topic.active { display: block; }

/* Difficulty label */
.difficulty-label { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.diff-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.diff-dot-easy   { background: var(--easy); }
.diff-dot-medium { background: var(--medium); }
.diff-dot-hard   { background: var(--hard); }
.diff-text {
  font-size: 11px; font-weight: 700;
  color: var(--text3); text-transform: uppercase; letter-spacing: 1.2px;
}

/* Question card */
.question-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px; margin-bottom: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.question-card:hover { box-shadow: var(--shadow-sm); }
.question-text {
  font-size: 15px; font-weight: 500;
  color: var(--text); margin-bottom: 12px; line-height: 1.7;
}
.question-text .pts { font-size: 12px; font-weight: 400; color: var(--text3); }

/* MCQ options */
.options-list { display: flex; flex-direction: column; gap: 7px; }
.option-btn {
  padding: 11px 15px; border-radius: var(--r);
  font-size: 14px; border: 1px solid var(--border);
  background: var(--bg3); cursor: pointer;
  transition: all 0.15s; color: var(--text);
  font-family: var(--font-body); text-align: left; line-height: 1.5;
}
.option-btn:hover { border-color: var(--brand); background: var(--brand-glow); color: var(--brand); }
.option-btn.correct { background: rgba(22,163,74,0.1); border-color: var(--easy);  color: #15803d; }
.option-btn.wrong   { background: rgba(220,38,38,0.08); border-color: var(--hard); color: #991b1b; }
.option-btn.dimmed  { opacity: 0.38; pointer-events: none; }

@media (prefers-color-scheme: dark) {
  .option-btn.correct { color: #86efac; }
  .option-btn.wrong   { color: #fca5a5; }
}

/* Feedback box */
.feedback-box { display: none; margin-top: 10px; padding: 11px 15px; border-radius: var(--r); font-size: 14px; line-height: 1.65; }
.feedback-box.show-correct { display: block; background: rgba(22,163,74,0.1);  color: #15803d; border: 1px solid rgba(22,163,74,0.3); }
.feedback-box.show-wrong   { display: block; background: rgba(220,38,38,0.08); color: #991b1b; border: 1px solid rgba(220,38,38,0.3); }
@media (prefers-color-scheme: dark) {
  .feedback-box.show-correct { color: #86efac; }
  .feedback-box.show-wrong   { color: #fca5a5; }
}

/* Answer input */
.answer-input {
  padding: 10px 14px; border-radius: var(--r);
  border: 1px solid var(--border2);
  background: var(--bg3); color: var(--text);
  font-size: 14px; font-family: var(--font-body);
  flex: 1; min-width: 140px; outline: none;
  transition: border-color 0.15s;
}
.answer-input:focus { border-color: var(--brand); }
.input-row { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center;
  gap: 7px; padding: 10px 22px;
  border-radius: var(--r); font-size: 14px;
  font-weight: 600; font-family: var(--font-body);
  border: none; cursor: pointer;
  transition: all 0.15s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn-primary  { background: var(--brand); color: #fff; }
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(44,62,158,0.32);
  text-decoration: none; color: #fff;
}
.btn-secondary { background: var(--bg3); color: var(--text2); border: 1px solid var(--border2); }
.btn-secondary:hover { background: var(--bg4); color: var(--text); text-decoration: none; }
.btn-accent   { background: var(--accent); color: #fff; }
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220,20,60,0.32);
  text-decoration: none; color: #fff;
}
.btn-ghost { background: transparent; color: var(--text3); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ══════════════════════════════════════════════════════════
   CHAPTER HEADER
══════════════════════════════════════════════════════════ */
.chapter-header {
  position: relative; overflow: hidden;
  padding: 32px 32px 26px;
  border-radius: var(--r-xl);
  margin: var(--gap) 0;
  border: 1px solid var(--border2);
}
.chapter-header .ch-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 8px;
}
.chapter-header .ch-title {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 900;
  line-height: 1.15; color: #fff; margin-bottom: 10px;
}
.chapter-header .ch-sub {
  font-size: 15px; opacity: 0.74;
  max-width: 540px; line-height: 1.65;
  margin-bottom: 16px; color: #fff;
}
.chapter-header .ch-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.ch-pill {
  font-size: 11px; font-weight: 700;
  padding: 4px 13px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.4px; text-transform: uppercase;
}

/* Chapter header gradients — all subjects */
.ch-math        { background: linear-gradient(135deg, #1a3a8f 0%, #1d4ed8 100%); }
.ch-science     { background: linear-gradient(135deg, #0d1a3a 0%, #2c3e9e 100%); }
.ch-english     { background: linear-gradient(135deg, #2d0b5a 0%, #7c3aed 100%); }
.ch-nepali      { background: linear-gradient(135deg, #3a1a0a 0%, #b45309 100%); }
.ch-social      { background: linear-gradient(135deg, #0a2a28 0%, #0d9488 100%); }
.ch-computer    { background: linear-gradient(135deg, #0c2a3a 0%, #0891b2 100%); }
.ch-health      { background: linear-gradient(135deg, #0c3a1a 0%, #16a34a 100%); }
.ch-optional    { background: linear-gradient(135deg, #2a0a3a 0%, #7c3aed 100%); }
.ch-physics     { background: linear-gradient(135deg, #1a0a38 0%, #6d28d9 100%); }
.ch-chemistry   { background: linear-gradient(135deg, #0a2a1a 0%, #0284c7 100%); }
.ch-biology     { background: linear-gradient(135deg, #0c3a1a 0%, #16a34a 100%); }
.ch-economics   { background: linear-gradient(135deg, #0c2a3a 0%, #0891b2 100%); }
.ch-accountancy { background: linear-gradient(135deg, #2d0b5a 0%, #7c3aed 100%); }
.ch-sociology   { background: linear-gradient(135deg, #0a2a28 0%, #0d9488 100%); }
.ch-history     { background: linear-gradient(135deg, #3a1a0a 0%, #b45309 100%); }
.ch-brand       { background: linear-gradient(135deg, #1a2670 0%, #2c3e9e 100%); }

/* Content sections (tabbed) */
.content-section { display: none; padding: 16px 0 10px; }
.content-section.active { display: block; }

/* ══════════════════════════════════════════════════════════
   SUBJECT BADGE
══════════════════════════════════════════════════════════ */
.subject-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-math        { background: var(--math-l);        color: var(--math); }
.badge-science     { background: var(--science-l);     color: var(--science); }
.badge-english     { background: var(--english-l);     color: var(--english); }
.badge-nepali      { background: var(--nepali-l);      color: var(--nepali); }
.badge-social      { background: var(--social-l);      color: var(--social); }
.badge-computer    { background: var(--computer-l);    color: var(--computer); }
.badge-health      { background: var(--health-l);      color: var(--health); }
.badge-optional    { background: var(--optional-l);    color: var(--optional); }
.badge-physics     { background: var(--physics-l);     color: var(--physics); }
.badge-chemistry   { background: var(--chemistry-l);   color: var(--chemistry); }
.badge-biology     { background: var(--biology-l);     color: var(--biology); }
.badge-economics   { background: var(--economics-l);   color: var(--economics); }
.badge-accountancy { background: var(--accountancy-l); color: var(--accountancy); }
.badge-sociology   { background: var(--sociology-l);   color: var(--sociology); }
.badge-history     { background: var(--history-l);     color: var(--history); }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px var(--gap-lg) 28px;
  margin-top: 56px;
}
.footer-inner {
  max-width: var(--w-content); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 680px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: var(--r-sm);
  display: flex; align-items: center;
  justify-content: center; font-size: 19px; margin-bottom: 12px;
}
.footer-brand .name {
  font-family: var(--font-display); font-size: 19px;
  font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.footer-brand .np-name {
  font-family: var(--font-np); font-size: 13px;
  color: var(--text3); margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; color: var(--text3); line-height: 1.65; }

.footer-col h4 {
  font-size: 12px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text2);
  text-decoration: none; margin-bottom: 8px; transition: color 0.15s;
}
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  max-width: var(--w-content); margin: 24px auto 0;
  padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 13px; color: var(--text3); }

/* ══════════════════════════════════════════════════════════
   LAYOUT HELPERS
══════════════════════════════════════════════════════════ */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.split-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); }
@media (max-width: 600px) { .split-2, .split-3 { grid-template-columns: 1fr; } }

.pill-row { display: flex; gap: 7px; flex-wrap: wrap; }
.mt-0{margin-top:0}.mt-1{margin-top:10px}.mt-2{margin-top:20px}.mt-3{margin-top:30px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:10px}.mb-2{margin-bottom:20px}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }

.animate-fade-up   { animation: fadeUp 0.5s var(--ease) both; }
.animate-fade-up-1 { animation: fadeUp 0.5s 0.10s var(--ease) both; }
.animate-fade-up-2 { animation: fadeUp 0.5s 0.20s var(--ease) both; }
.animate-fade-up-3 { animation: fadeUp 0.5s 0.30s var(--ease) both; }
.animate-fade-up-4 { animation: fadeUp 0.5s 0.40s var(--ease) both; }

/* Scroll-reveal (paused until IntersectionObserver fires) */
.sr { opacity: 0; }

/* ══════════════════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE FONT SCALING
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --fs-base: 15px; --gap: 14px; --gap-lg: 18px; }
  .chapter-header { padding: 22px 20px 18px; }
  .chapter-header .ch-title { font-size: 28px; }
  .card { padding: 16px 18px; }
  .quiz-score-bar { top: 56px; }
  .chapter-nav { top: 56px; }
}
@media (min-width: 1400px) { :root { --fs-base: 17px; } }

/* ══════════════════════════════════════════════════════════
   SUBJECT INDEX — UNIT HEADERS + CHAPTER ROWS
══════════════════════════════════════════════════════════ */
.ch-unit-header { margin: 22px 0 10px; padding: 0 4px; }
.ch-unit-header h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--text2);
}
.ch-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.ch-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 14px;
  padding: 16px 20px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--r-md);
  text-decoration: none; color: inherit;
  transition: all 0.15s var(--ease); box-shadow: var(--shadow-sm);
}
.ch-row:hover {
  transform: translateX(3px); border-color: var(--brand);
  box-shadow: var(--shadow); text-decoration: none;
}
.ch-row--locked { opacity: 0.55; cursor: not-allowed; background: var(--bg3); }
.ch-row--locked:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow-sm); }

.ch-row-main { flex: 1; min-width: 0; }
.ch-row-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--text); margin-bottom: 3px; line-height: 1.3;
}
.ch-row-title-np {
  font-family: var(--font-np);
  font-size: 13px; color: var(--text3);
  margin-bottom: 3px;
}
.ch-row-desc { font-size: 13.5px; color: var(--text3); line-height: 1.5; }
.ch-row-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.ch-tag {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  background: var(--brand-glow); color: var(--brand);
  letter-spacing: 0.3px; white-space: nowrap;
}
.ch-tag--accent { background: var(--accent-glow); color: var(--accent-dark); }
.ch-tag--new    { background: var(--accent); color: #fff; }
.ch-row-arrow   { font-size: 18px; color: var(--brand); font-weight: 700; }

@media (max-width: 540px) {
  .ch-row { padding: 14px 16px; }
  .ch-row-title { font-size: 15.5px; }
  .ch-row-desc  { font-size: 12.5px; }
  .ch-row-meta  { flex-direction: column; align-items: flex-end; gap: 4px; }
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE — SUBJECT CARDS
══════════════════════════════════════════════════════════ */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; margin-bottom: 14px;
}
.subject-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
  text-decoration: none; transition: all 0.2s var(--ease);
  display: block; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.subject-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.subject-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: var(--border2); text-decoration: none;
}
.subject-card .s-icon   { font-size: 30px; margin-bottom: 10px; display: block; }
.subject-card .s-name   { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.subject-card .s-sub    { font-size: 11.5px; color: var(--text3); margin-bottom: 12px; }
.subject-card .s-chapters { display: flex; gap: 5px; flex-wrap: wrap; }
.s-ch-tag { font-size: 10.5px; padding: 3px 9px; border-radius: 20px; font-weight: 700; }
.subject-card .s-arrow  {
  position: absolute; top: 18px; right: 18px;
  font-size: 16px; opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}
.subject-card:hover .s-arrow { opacity: 0.8; transform: translate(2px, -2px); }

/* Subject card accent bars + tag colours — all subjects */
.subject-card.math::before        { background: var(--math); }
.subject-card.science::before     { background: var(--science); }
.subject-card.english::before     { background: var(--english); }
.subject-card.nepali::before      { background: var(--nepali); }
.subject-card.social::before      { background: var(--social); }
.subject-card.computer::before    { background: var(--computer); }
.subject-card.health::before      { background: var(--health); }
.subject-card.optional::before    { background: var(--optional); }
.subject-card.physics::before     { background: var(--physics); }
.subject-card.chemistry::before   { background: var(--chemistry); }
.subject-card.biology::before     { background: var(--biology); }
.subject-card.economics::before   { background: var(--economics); }
.subject-card.accountancy::before { background: var(--accountancy); }
.subject-card.sociology::before   { background: var(--sociology); }
.subject-card.history::before     { background: var(--history); }

.subject-card.math        .s-ch-tag { background: var(--math-l);        color: var(--math); }
.subject-card.science     .s-ch-tag { background: var(--science-l);     color: var(--science); }
.subject-card.english     .s-ch-tag { background: var(--english-l);     color: var(--english); }
.subject-card.nepali      .s-ch-tag { background: var(--nepali-l);      color: var(--nepali); }
.subject-card.social      .s-ch-tag { background: var(--social-l);      color: var(--social); }
.subject-card.computer    .s-ch-tag { background: var(--computer-l);    color: var(--computer); }
.subject-card.health      .s-ch-tag { background: var(--health-l);      color: var(--health); }
.subject-card.optional    .s-ch-tag { background: var(--optional-l);    color: var(--optional); }
.subject-card.physics     .s-ch-tag { background: var(--physics-l);     color: var(--physics); }
.subject-card.chemistry   .s-ch-tag { background: var(--chemistry-l);   color: var(--chemistry); }
.subject-card.biology     .s-ch-tag { background: var(--biology-l);     color: var(--biology); }
.subject-card.economics   .s-ch-tag { background: var(--economics-l);   color: var(--economics); }
.subject-card.accountancy .s-ch-tag { background: var(--accountancy-l); color: var(--accountancy); }
.subject-card.sociology   .s-ch-tag { background: var(--sociology-l);   color: var(--sociology); }
.subject-card.history     .s-ch-tag { background: var(--history-l);     color: var(--history); }

/* ══════════════════════════════════════════════════════════
   HOMEPAGE — CLASS CARDS
══════════════════════════════════════════════════════════ */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 14px;
}
.class-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 22px 20px;
  text-decoration: none; transition: all 0.2s var(--ease);
  display: block; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm); text-align: center;
}
.class-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand);
}
.class-card.featured::before { background: var(--accent); }
.class-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: var(--brand); text-decoration: none;
}
.class-card .cl-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  color: var(--brand); line-height: 1; margin-bottom: 4px;
}
.class-card.featured .cl-num { color: var(--accent); }
.class-card .cl-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.class-card .cl-meta  { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.6px; }
.class-card.locked    { opacity: 0.5; pointer-events: none; }
.class-card .cl-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  background: var(--accent); color: #fff; letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE — FEATURED CHAPTER CARDS
══════════════════════════════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.chapter-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px;
  text-decoration: none; transition: all 0.2s var(--ease);
  display: block; box-shadow: var(--shadow-sm);
}
.chapter-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow);
  border-color: var(--border2); text-decoration: none;
}
.chapter-card .cc-subject {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 6px;
}
.chapter-card .cc-title {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 5px; line-height: 1.3;
}
.chapter-card .cc-desc  { font-size: 12px; color: var(--text3); line-height: 1.55; margin-bottom: 10px; }
.chapter-card .cc-meta  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 10.5px; color: var(--text3); }
.cc-tag { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }

/* ══════════════════════════════════════════════════════════
   TOOL CARDS
══════════════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.tool-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 22px 20px;
  text-decoration: none; display: flex;
  flex-direction: column; gap: 8px;
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.tool-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
  text-decoration: none;
}
.t-icon { font-size: 32px; display: block; line-height: 1; margin-bottom: 4px; }
.t-name { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.t-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }
.t-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid; align-self: flex-start; margin-top: 4px;
}
.badge-live { background: var(--science-l); color: var(--science); border-color: rgba(22,163,74,0.3); }
.badge-soon { background: var(--bg3);       color: var(--text3);   border-color: var(--border); }
.badge-new  { background: var(--accent);    color: #fff;           border-color: var(--accent); }
@media (prefers-color-scheme: dark) { .badge-soon { color: #fbbf24; } }

/* ══════════════════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════════════════ */
.section-header { margin: 36px 0 16px; }
.section-header .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--brand); margin-bottom: 6px;
}
.section-header .eyebrow.accent { color: var(--accent); }
.section-header h2 {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.section-header p { font-size: 14px; color: var(--text2); max-width: 540px; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   ANNOUNCE BAR
══════════════════════════════════════════════════════════ */
.announce {
  background: var(--accent-glow);
  border: 1px solid rgba(220,20,60,0.25);
  border-radius: var(--r); padding: 11px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--accent-dark);
}
@media (prefers-color-scheme: dark) { .announce { color: var(--accent-light); } }

/* ══════════════════════════════════════════════════════════
   TOOL SHELL (full-width tool pages)
══════════════════════════════════════════════════════════ */
.tool-shell { display: flex; flex-direction: column; min-height: calc(100vh - 60px); width: 100%; }
.tool-shell-inner { flex: 1; display: flex; width: 100%; position: relative; }

/* ══════════════════════════════════════════════════════════
   LANGUAGE TOGGLE BUTTON (injected by shared.js)
══════════════════════════════════════════════════════════ */
#pp-lang-btn {
  position: fixed; bottom: 20px; right: 20px; z-index: 9998;
  background: var(--bg2); border: 1.5px solid var(--border2);
  border-radius: 20px; padding: 7px 16px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: var(--font-np);
  color: var(--text2); box-shadow: var(--shadow);
  transition: all 0.15s;
}
#pp-lang-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ══════════════════════════════════════════════════════════
   PRINT STYLES
══════════════════════════════════════════════════════════ */
@media print {
  .site-nav, .site-footer, .breadcrumb,
  .nav-mobile-menu, .nav-hamburger,
  #pp-lang-btn,
  [data-pragyapath-nav], [data-pragyapath-footer],
  [data-shiksha-nav],    [data-shiksha-footer]    { display: none !important; }
  body { background: white; color: black; }
  .page-wrap, .page-wrap-wide, .page-wrap-full, .wrap { max-width: 100%; padding: 0; }
}
