/* dranamikashrivastava.com — site styles. Mobile-first, no framework. */

:root {
  --ink: #0d1530;
  --ink-2: #18234a;
  --ink-3: #26346a;
  --paper: #fbfaf6;
  --paper-2: #f3f0e7;
  --card: #ffffff;
  --text: #1a1f36;
  --muted: #535b78;
  --line: #e3dfd2;
  --line-2: #d6d0bf;

  /* One colour per NCERT book, used for spines, chips and accents. */
  --saffron: #e8890c;  --saffron-d: #a85a05;  --saffron-l: #fff3e0;
  --teal: #0e9f97;     --teal-d: #0a6d68;     --teal-l: #e2f6f4;
  --violet: #6d4bd8;   --violet-d: #5232b8;   --violet-l: #efeafd;
  --rose: #d6336c;     --rose-d: #a8204f;     --rose-l: #fde8ef;
  --gold: #d4a72c;

  --radius: 18px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(13, 21, 48, .06), 0 8px 28px rgba(13, 21, 48, .08);
  --shadow-l: 0 2px 4px rgba(13, 21, 48, .06), 0 18px 48px rgba(13, 21, 48, .14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --read: 72ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.7 var(--sans);
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
/* Slow-moving colour wash behind every page. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 12% 18%, rgba(232, 137, 12, .10), transparent 60%),
    radial-gradient(34vmax 34vmax at 88% 12%, rgba(109, 75, 216, .09), transparent 60%),
    radial-gradient(40vmax 40vmax at 78% 88%, rgba(14, 159, 151, .10), transparent 60%),
    radial-gradient(30vmax 30vmax at 18% 92%, rgba(214, 51, 108, .07), transparent 60%);
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(2vmax, -2vmax, 0) rotate(4deg); }
  100% { transform: translate3d(-2vmax, 1vmax, 0) rotate(-3deg); }
}

img, svg { max-width: 100%; }
a { color: var(--violet-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose-d); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw + .6rem, 3.35rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 2vw + .9rem, 2.15rem); }
h3 { font-size: clamp(1.18rem, .8vw + .95rem, 1.4rem); }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); font-weight: 650; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-d); margin-bottom: 14px; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }

/* ---------- preview bar, progress ---------- */
.preview-bar { background: repeating-linear-gradient(-45deg, #1b1300, #1b1300 12px, #261b00 12px, #261b00 24px); color: #ffd58a; font: 600 .82rem/1.4 var(--sans); text-align: center; padding: 7px 16px; }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron), var(--rose), var(--violet), var(--teal)); }

/* ---------- header: floating capsule ---------- */
/* Zero-height sticky wrapper: the capsule floats over the hero without taking space. */
.site-header { position: sticky; top: 14px; z-index: 50; height: 0; }
.header-in {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 66px; padding: 0 9px 0 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px rgba(13,21,48,.06), 0 14px 40px rgba(8,12,30,.22);
  transition: height .25s ease, box-shadow .25s ease;
}
.header-in::after { /* spectrum hairline along the capsule's lower edge */
  content: ""; position: absolute; left: 40px; right: 40px; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--saffron), var(--rose), var(--violet), var(--teal), transparent);
}
.scrolled .header-in { height: 58px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px rgba(13,21,48,.08), 0 18px 44px rgba(8,12,30,.26); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; font: 700 1rem/1 var(--serif); color: #fff; letter-spacing: .02em; background: conic-gradient(from 210deg, var(--saffron), var(--rose), var(--violet), var(--teal), var(--saffron)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4), 0 6px 16px rgba(109,75,216,.3); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font: 650 1.04rem/1.15 var(--serif); white-space: nowrap; }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.brand--light { color: #fff; }
.brand--light .brand-sub { color: #aab3d6; }
@media (max-width: 380px) { .brand-sub { display: none; } }

.nav-toggle { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 1.15rem; }
.nav-n { font: 700 .62rem/1 var(--sans); letter-spacing: .06em; color: var(--rose); opacity: .8; }

/* Mobile: the menu drops as a dark rounded sheet under the capsule. */
.site-nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: none; padding: 14px; border-radius: 28px; background: var(--ink); box-shadow: 0 30px 60px rgba(8,12,30,.4); }
.site-nav.open { display: block; animation: drop .22s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li { margin: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.site-nav a:not(.btn) { display: flex; align-items: baseline; gap: 14px; padding: 15px 10px; color: #fff; text-decoration: none; font: 600 1.3rem/1.2 var(--serif); }
.site-nav a:not(.btn) .nav-n { color: #ffc067; }
.site-nav a[aria-current] { color: #ffd08a; }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex !important; align-items: center; gap: 10px; padding: 0; background: none; box-shadow: none; border-radius: 0; animation: none; }
  .site-nav ul { display: flex; align-items: center; margin: 0; }
  .site-nav li { border: 0; position: relative; }
  .site-nav li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 18px; margin-top: -9px; width: 1px; background: rgba(13,21,48,.12); }
  .site-nav a:not(.btn) { flex-direction: column; align-items: center; gap: 3px; padding: 6px 15px; color: var(--ink); font: 600 .92rem/1 var(--sans); border-radius: 999px; }
  .site-nav a:not(.btn) .nav-n { color: var(--rose); }
  .site-nav a:not(.btn):hover { background: rgba(13,21,48,.05); }
  .site-nav a[aria-current] { background: var(--ink) !important; color: #fff !important; }
  .site-nav a[aria-current] .nav-n { color: #ffc067; }
}

/* ---------- section rules ---------- */
:root { --hair: rgba(120, 128, 172, .24); }
main > .section { border-top: 1px solid var(--hair); }
.article-layout { position: relative; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: #1b1000; background: linear-gradient(135deg, #ffb547, var(--saffron)); box-shadow: 0 8px 22px rgba(232,137,12,.35); }
.btn--primary:hover { color: #1b1000; box-shadow: 0 12px 28px rgba(232,137,12,.45); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.14); }
.btn--ink { color: #fff; background: var(--ink); }
.btn--ink:hover { color: #fff; background: var(--ink-3); }
.btn--line { color: var(--ink); border-color: var(--line-2); background: #fff; }
.btn--line:hover { color: var(--ink); border-color: var(--ink); }
.btn--nav { min-height: 42px; padding: 9px 18px; font-size: .92rem; color: #fff; background: linear-gradient(135deg, var(--violet), var(--rose)); width: 100%; }
.btn--nav:hover { color: #fff; }
@media (min-width: 980px) { .btn--nav { width: auto; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero (dark, animated) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #e6e9f7; background: var(--ink); padding: 118px 0 58px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.12); }
.hero::before { /* aurora */
  content: ""; position: absolute; inset: -30%; z-index: -2;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(232,137,12,.42), transparent 65%),
    radial-gradient(35% 45% at 80% 20%, rgba(109,75,216,.55), transparent 65%),
    radial-gradient(45% 50% at 70% 85%, rgba(14,159,151,.40), transparent 65%),
    radial-gradient(30% 40% at 25% 90%, rgba(214,51,108,.38), transparent 65%);
  animation: aurora 24s ease-in-out infinite alternate;
}
.hero::after { /* graph-paper grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
@keyframes aurora {
  0% { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  50% { transform: translate3d(4%, -3%, 0) scale(1.08) rotate(6deg); }
  100% { transform: translate3d(-3%, 3%, 0) scale(1.02) rotate(-5deg); }
}
.hero canvas.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero h1, .hero h2 { color: #fff; }
.hero .lede, .hero p { color: #c9cfea; }
.hero a:not(.btn) { color: #ffd08a; }
.hero .eyebrow { color: #ffc067; }
.hero--home { padding: 120px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } .hero--home { padding: 150px 0 100px; } }
.hero h1 .grad { background: linear-gradient(100deg, #ffc067 0%, #ff8fb4 45%, #b9a4ff 75%, #6fe3da 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font: 600 .82rem/1.2 var(--sans); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e9ecfb; margin-bottom: 18px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee0a1; box-shadow: 0 0 0 4px rgba(62,224,161,.18); }

.quick-answer { position: relative; margin: 20px 0 26px; padding: 18px 20px 18px 22px; border-radius: 14px; background: rgba(16,24,58,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); font-size: 1.08rem; line-height: 1.65; color: #eef0fb; max-width: 66ch; }
.quick-answer::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: linear-gradient(var(--saffron), var(--rose)); }
.quick-answer-label { display: block; font: 700 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: #ffc067; margin-bottom: 8px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .92rem; color: #b9c0e2; padding: 0; list-style: none; }
.trust-row li { display: flex; align-items: center; gap: 8px; margin: 0; }
.trust-row .ic { color: #6fe3da; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 18px; font-size: .86rem; }
.crumbs li { margin: 0; color: #aab3d6; }
.crumbs li + li::before { content: "/"; margin: 0 9px; opacity: .5; }
.crumbs a { color: #dfe3f7 !important; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.review-line { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: #b9c0e2; margin: 0; }
.review-line span { display: inline-flex; align-items: center; gap: 7px; }
.status { padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.status--pending { background: rgba(255,192,103,.13); color: #ffd08a; border: 1px solid rgba(255,192,103,.3); }
.status--ok { background: rgba(62,224,161,.12); color: #8ff0c8; border: 1px solid rgba(62,224,161,.3); }
.status a { color: inherit !important; }

/* Animated circular-flow card in the home hero. */
.flow-card { position: relative; margin: 0; border-radius: 24px; padding: 18px; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 80px rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.flow-card figcaption { font-size: .86rem; color: #aab3d6; padding: 6px 6px 2px; }
.flow-card svg { display: block; width: 100%; height: auto; }

/* ---------- sections ---------- */
.section { padding: 64px 0; position: relative; }
.section--tight { padding: 44px 0; }
.section--paper2 { background: linear-gradient(180deg, rgba(243,240,231,.85), rgba(243,240,231,.55)); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head .eyebrow::after { content: ""; width: 72px; height: 1px; margin-left: 6px; background: linear-gradient(90deg, currentColor, transparent); }
.grid-paper { background-image: linear-gradient(rgba(13,21,48,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(13,21,48,.045) 1px, transparent 1px); background-size: 32px 32px; }

.grid { display: grid; gap: 20px; }
.grid > *, .qa > *, .faq > * { min-width: 0; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: var(--line-2); color: inherit; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: .8em; }
.card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--violet-d); }
.icon-badge { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.35rem; margin-bottom: 14px; color: var(--c, var(--violet-d)); background: var(--cl, var(--violet-l)); }

/* Colour themes per book */
.t-saffron { --c: var(--saffron-d); --cl: var(--saffron-l); --cb: var(--saffron); }
.t-teal    { --c: var(--teal-d);    --cl: var(--teal-l);    --cb: var(--teal); }
.t-violet  { --c: var(--violet-d);  --cl: var(--violet-l);  --cb: var(--violet); }
.t-rose    { --c: var(--rose-d);    --cl: var(--rose-l);    --cb: var(--rose); }

/* Class cards */
.class-card { overflow: hidden; padding: 30px; }
.class-card .num { position: absolute; right: -6px; top: -26px; font: 700 8.5rem/1 var(--serif); color: var(--cl); z-index: 0; letter-spacing: -.05em; }
.class-card > * { position: relative; z-index: 1; }
.class-card ul { list-style: none; padding: 0; margin: 14px 0 18px; }
.class-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.class-card li .ic { color: var(--c); margin-top: .3em; }

/* Book "spine" cards */
.book { padding: 24px 24px 22px 32px; overflow: hidden; }
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(180deg, var(--cb), var(--c)); }
.book::after { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.08); }
.book .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 600 .78rem/1.3 var(--sans); background: var(--cl, var(--paper-2)); color: var(--c, var(--ink)); border: 1px solid transparent; text-decoration: none; }
a.chip:hover { border-color: currentColor; }
.chip--soft { background: var(--paper-2); color: var(--muted); }

/* Stats tiles */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; box-shadow: var(--shadow); }
.stat b { display: block; font: 700 2.2rem/1 var(--serif); color: var(--c, var(--ink)); margin-bottom: 6px; }
.stat span { font-size: .92rem; color: var(--muted); }
.hero .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.hero .stat b { color: #fff; }
.hero .stat span { color: #b9c0e2; }

/* Feature list (what every chapter includes) */
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.feature .icon-badge { margin: 0; width: 40px; height: 40px; font-size: 1.15rem; border-radius: 12px; }
.feature h3 { font-size: 1.05rem; margin: 2px 0 4px; font-family: var(--sans); font-weight: 700; }
.feature p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; position: relative; margin: 0; padding: 22px 20px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 700 1.6rem/1 var(--serif); color: var(--c, var(--saffron)); margin-bottom: 10px; }
.steps h3 { font-size: 1.08rem; font-family: var(--sans); font-weight: 700; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Author card */
.author { display: grid; gap: 26px; align-items: center; padding: 30px; border-radius: 24px; background: linear-gradient(135deg, #fff, #fbf7ee); border: 1px solid var(--line); box-shadow: var(--shadow-l); }
@media (min-width: 820px) { .author { grid-template-columns: auto 1fr; padding: 40px; } }
.monogram { width: 132px; height: 132px; border-radius: 34px; display: grid; place-items: center; font: 700 2.9rem/1 var(--serif); color: #fff; background: conic-gradient(from 200deg, var(--saffron), var(--rose), var(--violet), var(--teal), var(--saffron)); box-shadow: inset 0 0 0 4px rgba(255,255,255,.4), 0 18px 40px rgba(109,75,216,.3); }
.author h2, .author h3 { margin-bottom: .2em; }
.author .role { color: var(--rose-d); font-weight: 600; margin-bottom: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 18px; }
.facts li { margin: 0; }

/* ---------- article / chapter layout ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 44px 0 70px; }
.aside { min-width: 0; }
@media (min-width: 1060px) { .article-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 54px; } }
.article { min-width: 0; max-width: 780px; }
.article > section { margin-bottom: 52px; }
.article h2 { padding-top: 6px; display: flex; align-items: baseline; gap: 12px; }
.article h2 .n { font: 700 .9rem/1 var(--sans); color: var(--c, var(--rose-d)); background: var(--cl, var(--rose-l)); border-radius: 8px; padding: 6px 8px; transform: translateY(-4px); }
.article h3 { margin-top: 1.5em; }

.aside { position: relative; }
@media (min-width: 1060px) { .aside-in { position: sticky; top: 104px; } }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 10px; box-shadow: var(--shadow); }
.toc-title { display: flex; gap: 8px; align-items: center; font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { margin: 0; counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.toc a::before { content: counter(t, decimal-leading-zero); font-weight: 700; color: var(--line-2); font-size: .8rem; padding-top: 1px; }
.toc a:hover, .toc a.active { background: var(--paper-2); color: var(--ink); }
.toc a.active::before { color: var(--rose); }
@media (max-width: 1059px) {
  .toc ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .toc li { flex: none; scroll-snap-align: start; }
  .toc a { border: 1px solid var(--line); white-space: nowrap; }
}
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tools button, .tools a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 .86rem/1 var(--sans); cursor: pointer; text-decoration: none; }
.tools button:hover, .tools a:hover { border-color: var(--ink); }

/* Answer capsule: the 40–60 word direct answer under every H2. */
.answer { position: relative; padding: 16px 18px 16px 20px; margin: 4px 0 22px; border-radius: 14px; background: linear-gradient(135deg, var(--cl, var(--violet-l)), #fff 85%); border: 1px solid rgba(13,21,48,.07); font-size: 1.04rem; }
.answer::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: var(--cb, var(--violet)); }
.answer p:last-child { margin: 0; }

.takeaways { list-style: none; padding: 0; display: grid; gap: 10px; }
.takeaways li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.takeaways .ic { color: var(--teal-d); margin-top: .3em; }

.formula { margin: 18px 0 22px; padding: 18px 20px; border-radius: 14px; background: var(--ink); color: #eef0fb; font: 500 1.06rem/1.7 var(--serif); overflow-x: auto; }
.formula b { color: #ffc067; font-weight: 600; }
.ov { text-decoration: overline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.formula .lbl { display: block; font: 700 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: #8f9ac6; margin-bottom: 8px; }

.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
caption { text-align: left; padding: 12px 16px; font-weight: 650; color: var(--ink); caption-side: top; background: var(--paper-2); border-bottom: 1px solid var(--line); }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #faf8f2; font-weight: 700; color: var(--ink); font-size: .88rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td, tfoot th { font-weight: 700; background: #faf8f2; border-top: 2px solid var(--line-2); }

figure.diagram { margin: 22px 0 28px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
figure.diagram svg { display: block; width: 100%; height: auto; }
figure.diagram figcaption { font-size: .92rem; color: var(--muted); margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
figure.diagram figcaption strong { display: block; color: var(--ink); margin-bottom: 4px; }

.example { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow); }
.example h3 { margin: 0; padding: 16px 20px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 1.12rem; display: flex; gap: 10px; align-items: center; }
.example h3 .ic { color: var(--teal-d); }
.example .body { padding: 18px 20px 6px; }
.example dl { display: grid; gap: 4px 16px; margin: 0 0 14px; }
@media (min-width: 640px) { .example dl { grid-template-columns: 110px 1fr; } }
.example dt { font: 700 .76rem/1.9 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--teal-d); }
.example dd { margin: 0 0 8px; }

.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; margin: 18px 0; }
.callout > .ic { font-size: 1.4rem; margin-top: .1em; }
.callout--warn { background: var(--rose-l); border: 1px solid #f6c3d4; }
.callout--warn > .ic { color: var(--rose-d); }
.callout--tip { background: var(--teal-l); border: 1px solid #b5e8e3; }
.callout--tip > .ic { color: var(--teal-d); }
.callout ul { margin: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Important questions */
.qa { counter-reset: q; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.q { position: relative; padding: 22px 22px 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.q h3 { font: 650 1.1rem/1.45 var(--sans); margin: 0 0 12px; padding-right: 4px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.q h3 .qn { font: 700 .82rem/1 var(--sans); color: #fff; background: var(--ink); border-radius: 8px; padding: 6px 8px; }
.marks { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font: 700 .74rem/1.4 var(--sans); letter-spacing: .03em; }
.marks--1 { background: var(--teal-l); color: var(--teal-d); }
.marks--3 { background: var(--violet-l); color: var(--violet-d); }
.marks--4 { background: var(--saffron-l); color: var(--saffron-d); }
.marks--6 { background: var(--rose-l); color: var(--rose-d); }
.faq-a { border-top: 1px dashed var(--line); padding-top: 14px; }
.faq-a .direct { font-weight: 600; color: var(--ink); }
.options { list-style: upper-alpha; padding-left: 1.6em; }

.psc { counter-reset: p; list-style: none; padding: 0; display: grid; gap: 12px; }
.psc li { counter-increment: p; position: relative; margin: 0; padding: 16px 18px 14px 62px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.psc li::before { content: counter(p); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 .95rem/1 var(--serif); color: #fff; background: linear-gradient(135deg, var(--violet), var(--rose)); }
.psc .why { display: block; margin-top: 4px; color: var(--muted); font-size: .94rem; }
.psc .src { display: inline-block; margin-top: 6px; font-size: .8rem; color: var(--teal-d); font-weight: 600; }
.note { font-size: .92rem; color: var(--muted); font-style: italic; }

.revision { columns: 1; column-gap: 28px; padding-left: 1.2em; }
@media (min-width: 760px) { .revision { columns: 2; } }
.revision li { break-inside: avoid; }

.pn { display: grid; gap: 14px; margin: 10px 0 0; }
@media (min-width: 700px) { .pn { grid-template-columns: 1fr 1fr; } }
.pn a { display: block; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.pn a:hover { border-color: var(--ink); }
.pn small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; margin-bottom: 6px; }
.pn .next { text-align: right; }
.pn .next small { justify-content: flex-end; }
.pn .disabled { opacity: .7; box-shadow: none; background: var(--paper-2); }

.sources { padding-left: 1.4em; }
.sources li { margin-bottom: .6em; }
.sources .acc { color: var(--muted); font-size: .88rem; }

.review-box { display: grid; gap: 18px; align-items: center; padding: 24px; border-radius: 18px; background: var(--ink); color: #dfe3f7; }
@media (min-width: 700px) { .review-box { grid-template-columns: auto 1fr; } }
.review-box .monogram { width: 76px; height: 76px; border-radius: 22px; font-size: 1.7rem; }
.review-box p { margin: 0 0 4px; }
.review-box a { color: #ffd08a; }
.review-box h2 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; }

/* Chapter lists in hubs */
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.chapters li { margin: 0; }
.chapter-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
a.chapter-row:hover { border-color: var(--cb, var(--ink)); box-shadow: var(--shadow); color: var(--text); }
.chapter-row .no { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: 700 1.15rem/1 var(--serif); background: var(--cl); color: var(--c); }
.chapter-row h3 { font-size: 1.08rem; margin: 0 0 2px; font-family: var(--sans); font-weight: 700; }
.chapter-row p { margin: 0; color: var(--muted); font-size: .93rem; }
.chapter-row .state { font: 700 .74rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.state--live { background: var(--teal-l); color: var(--teal-d); }
.state--soon { background: var(--paper-2); color: var(--muted); }
@media (max-width: 560px) { .chapter-row { grid-template-columns: auto 1fr; } .chapter-row .state { grid-column: 2; justify-self: start; } }

/* FAQ (always visible: no accordions, per the blueprint) */
.faq { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 4px; }
.faq-item h3 { font: 650 1.08rem/1.4 var(--sans); margin-bottom: 10px; }

/* Timeline (About) */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--saffron), var(--rose), var(--violet), var(--teal)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 18px 34px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--violet); }
.timeline time { display: block; font: 700 .86rem/1.4 var(--sans); color: var(--rose-d); letter-spacing: .02em; }
@media (min-width: 760px) {
  .timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; }
  .timeline time { text-align: left; }
}
.period { margin-top: 30px; }

.notice { padding: 14px 18px; border-radius: 12px; background: var(--saffron-l); border: 1px solid #f6d8ab; color: #6b3d02; }

/* Term page */
.definition { font: 500 1.22rem/1.6 var(--serif); color: var(--ink); }

/* Hindi glossary bridge */
.hi { font-family: "Noto Sans Devanagari", "Mangal", var(--sans); }

/* ---------- footer: rounded panel ---------- */
.site-footer { padding: 0 12px 12px; margin-top: 48px; }
.footer-shell { position: relative; isolation: isolate; overflow: hidden; max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px) 26px; border-radius: 34px; background: var(--ink); color: #b9c0e2; }
.footer-shell::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 70% at 92% 0%, rgba(109,75,216,.38), transparent 60%), radial-gradient(40% 60% at 0% 100%, rgba(232,137,12,.24), transparent 60%), radial-gradient(30% 40% at 50% 50%, rgba(14,159,151,.12), transparent 70%); }
.footer-shell::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--saffron), var(--rose), var(--violet), var(--teal)); }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; padding: 46px 0 38px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-cta .eyebrow { color: #ffc067; margin-bottom: 10px; }
.footer-cta-h { margin: 0; font: 600 clamp(1.7rem, 2.6vw + 1rem, 2.7rem)/1.12 var(--serif); color: #fff; letter-spacing: -.02em; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer-grid > * { padding: 28px 0 8px; border-bottom: 1px solid rgba(255,255,255,.08); min-width: 0; }
.footer-about { grid-column: 1 / -1; padding-bottom: 28px !important; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; column-gap: 0; }
  .footer-about { grid-column: auto; }
  .footer-grid > * { padding: 36px 28px 30px; border-bottom: 0; border-left: 1px solid rgba(255,255,255,.1); }
  .footer-grid > :first-child { padding-left: 0; border-left: 0; }
}
.footer-about p { margin-top: 16px; font-size: .95rem; max-width: 40ch; }
.footer-mail { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #fff !important; font-size: .9rem !important; }
.footer-mail:hover { border-color: #ffc067; text-decoration: none !important; }
.footer-h { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #ffc067; margin: 4px 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 22px; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #dfe3f7; text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: #ffd08a; text-decoration: underline; }
.footer-mark { margin: 6px 0 0; text-align: center; white-space: nowrap; user-select: none; font: 700 clamp(3.6rem, 16vw, 14rem)/.82 var(--serif); letter-spacing: -.045em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16); background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 80%); -webkit-background-clip: text; background-clip: text; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .86rem; }
.footer-legal strong { color: #fff; }


/* ---------- justified reading text ---------- */
/* Prose is justified with hyphenation (lang="en-IN") so line gaps stay even on phones.
   Short interface text (buttons, chips, cards, tables, lists of links) stays left-aligned. */
main :is(.article, .wrap, .author, .review-box, .example, .callout, .q, .faq-item, .answer, .quick-answer, .psc li, .takeaways li, .revision li) :is(p, li, dd):not(.eyebrow):not(.lede):not(.note):not(.pill):not(.more):not(.why):not(.src):not(.state):not(.review-line):not(.role):not(.toc-title):not(.btn-row):not(.quick-answer-label) {
  text-align: justify; text-justify: inter-word;
  -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 6 3 3;
}
/* Keep these short or structural pieces left-aligned. */
main :is(.chapter-row, .card, .feature, .steps, .toc, .pn, .tools, .stats, .trust-row, .facts, .btn-row, .table-wrap, figure, .chapters, .class-card, .hero-grid > div > .lede) :is(p, li, dd, td, th, a, time) { text-align: left !important; hyphens: manual !important; -webkit-hyphens: manual !important; }
main .timeline li > div { text-align: justify !important; hyphens: auto !important; -webkit-hyphens: auto !important; }
main p.definition { text-align: justify !important; hyphens: auto !important; }
.hero .quick-answer { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
code, kbd, .formula { text-align: left; hyphens: manual; }
@media (max-width: 420px) { main :is(p, li, dd) { text-align-last: left; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print: chapter pages print as clean notes ---------- */
@media print {
  .site-header, .site-footer, .preview-bar, .aside, .tools, .progress, canvas, .pn, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  body::before { display: none; }
  .hero { background: #fff; color: #000; padding: 0; }
  .hero::before, .hero::after { display: none; }
  .hero h1, .hero p, .quick-answer { color: #000 !important; }
  .quick-answer { border: 1px solid #999; background: #fff; }
  .article-layout { display: block; padding: 0; }
  .q, .example, figure.diagram, .table-wrap { break-inside: avoid; box-shadow: none; }
  a { color: #000; }
  .formula { background: #fff; color: #000; border: 1px solid #999; }
}
