/* DevanshAI redesign — scoped to body.rd. Loaded only when this file exists and the layout enables it.
   System fonts only (no downloaded fonts). Original DevanshAI assets only. */
html body.ap.rd{
  --rd-ink:#1d1d1f; --rd-ink-2:#424245; --rd-mute:#6e6e73; --rd-line:#d2d2d7;
  --rd-bg:#ffffff; --rd-soft:#f5f5f7; --rd-link:#0066cc; --rd-focus:#0071e3;
  --rd-sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans","Noto Sans Devanagari","Nirmala UI",sans-serif;
  background:var(--rd-bg); color:var(--rd-ink); font-family:var(--rd-sans);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
html body.ap.rd h1,html body.ap.rd h2,html body.ap.rd h3,html body.ap.rd h4{font-family:var(--rd-sans);color:var(--rd-ink)}
/* The older theme sets serif headings with stronger selectors; #main keeps the override scoped to page content. */
html body.ap.rd #main :is(h1,h2,h3,h4,.bd-price,.lead){font-family:var(--rd-sans)}
html body.ap.rd :focus-visible{outline:3px solid var(--rd-focus);outline-offset:3px;border-radius:4px}
html body.ap.rd [lang="hi"],html body.ap.rd :lang(hi){line-height:1.45;letter-spacing:normal}

/* Header: quiet, thin, sticky */
html body.ap.rd header{background:rgba(255,255,255,.86);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);border-bottom:1px solid rgba(0,0,0,.08)}

/* ---------- Book detail ---------- */
html body.ap.rd .book-detail{padding:clamp(20px,3vw,40px) 0 clamp(56px,8vw,120px);background:var(--rd-bg)}
html body.ap.rd .book-detail .container{max-width:1080px;padding-left:clamp(16px,4vw,32px);padding-right:clamp(16px,4vw,32px)}
html body.ap.rd .book-detail .crumbs{font-size:13px;color:var(--rd-mute);margin:0 0 clamp(20px,4vw,48px)}
html body.ap.rd .book-detail .crumbs a{color:var(--rd-mute);text-decoration:none}
html body.ap.rd .book-detail .crumbs a:hover{color:var(--rd-link);text-decoration:underline}
html body.ap.rd .book-detail .bd-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,6vw,88px);align-items:center}
html body.ap.rd .book-detail .bd-cover{background:var(--rd-soft);border-radius:28px;padding:clamp(28px,5vw,64px);display:flex;align-items:center;justify-content:center;box-shadow:none;border:0}
html body.ap.rd .book-detail .bd-cover img{width:100%;max-width:380px;height:auto;display:block;border-radius:6px;box-shadow:0 30px 60px -24px rgba(0,0,0,.35),0 10px 20px -10px rgba(0,0,0,.18)}
html body.ap.rd .book-detail .bd-info .tag{display:inline-block;background:none;border:0;padding:0;font-size:14px;font-weight:600;letter-spacing:.01em;text-transform:none;color:#bf4800}
html body.ap.rd .book-detail .bd-info h1{font-size:clamp(2.25rem,5vw,3.5rem);line-height:1.07;letter-spacing:-.022em;font-weight:700;margin:10px 0 12px;text-wrap:balance}
html body.ap.rd .book-detail .bd-info h1[lang="hi"]{line-height:1.35;letter-spacing:normal;padding-top:.08em}
html body.ap.rd .book-detail .bd-info .lead{font-size:clamp(1.125rem,1.9vw,1.375rem);line-height:1.4;color:var(--rd-ink-2);margin:0 0 28px;font-weight:400;text-wrap:pretty}
html body.ap.rd .book-detail .bd-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;padding:22px 0;margin:0 0 26px;border-top:1px solid var(--rd-line);border-bottom:1px solid var(--rd-line)}
html body.ap.rd .book-detail .bd-facts dt{font-size:12px;color:var(--rd-mute);font-weight:400;margin:0 0 4px;text-transform:none;letter-spacing:0}
html body.ap.rd .book-detail .bd-facts dd{font-size:17px;font-weight:600;color:var(--rd-ink);margin:0;line-height:1.35}
html body.ap.rd .book-detail .bd-price{font-size:clamp(1.75rem,3vw,2.125rem);font-weight:700;letter-spacing:-.01em;margin:0 0 20px;color:var(--rd-ink)}
html body.ap.rd .book-detail .bd-price s{font-size:.55em;font-weight:400;color:var(--rd-mute);margin-left:8px}
html body.ap.rd .book-detail .book-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-start;margin:0 0 16px}
html body.ap.rd .book-detail .book-actions form{margin:0}
html body.ap.rd .book-detail .book-actions .button{font-family:var(--rd-sans);font-size:17px;font-weight:500;line-height:1;min-height:48px;padding:15px 26px;border-radius:999px;border:1px solid var(--rd-ink);background:var(--rd-ink);color:#fff;letter-spacing:0;text-transform:none;box-shadow:none}
html body.ap.rd .book-detail .book-actions .button.outline{background:transparent;color:var(--rd-ink)}
html body.ap.rd .book-detail .book-actions .button:hover{background:#000;border-color:#000;color:#fff}
html body.ap.rd .book-detail .store-trust{font-size:14px;line-height:1.5;color:var(--rd-mute);text-align:left;margin:0 0 14px;max-width:46ch}
html body.ap.rd .book-detail .text-link{color:var(--rd-link);font-weight:500}
html body.ap.rd .book-detail .bd-desc{max-width:720px;margin:clamp(56px,9vw,120px) auto 0;background:none;border:0;box-shadow:none;padding:0}
html body.ap.rd .book-detail .bd-desc h2{font-size:clamp(1.75rem,3.4vw,2.5rem);line-height:1.12;letter-spacing:-.015em;font-weight:700;margin:0 0 24px}
html body.ap.rd .book-detail .bd-desc p{font-size:clamp(1.0625rem,1.5vw,1.1875rem);line-height:1.6;color:var(--rd-ink-2);margin:0 0 1.1em}
html body.ap.rd .book-detail .bd-desc p:lang(hi),html body.ap.rd .book-detail .bd-desc[lang="hi"] p{line-height:1.8}

@media (max-width:820px){
  html body.ap.rd .book-detail .bd-grid{grid-template-columns:1fr;gap:28px}
  html body.ap.rd .book-detail .bd-cover{border-radius:20px}
  html body.ap.rd .book-detail .bd-cover img{max-width:300px}
  html body.ap.rd .book-detail .bd-info{text-align:left}
}
@media (max-width:480px){
  html body.ap.rd .book-detail .book-actions{flex-direction:column}
  html body.ap.rd .book-detail .book-actions form,html body.ap.rd .book-detail .book-actions .button{width:100%}
  html body.ap.rd .book-detail .bd-facts dd{font-size:16px}
}
@media (prefers-reduced-motion:no-preference){
  html body.ap.rd .book-detail .book-actions .button{transition:background-color .2s ease,color .2s ease}
}

/* ---------- Book catalogue (/books) ---------- */
html body.ap.rd .store-head{background:var(--rd-bg);color:var(--rd-ink);text-align:center;padding:clamp(48px,8vw,104px) 20px clamp(24px,4vw,40px);border:0}
html body.ap.rd #main .store-head h1{font-size:clamp(2.5rem,6vw,4.5rem);line-height:1.05;letter-spacing:-.025em;font-weight:700;color:var(--rd-ink);margin:0 0 14px;text-wrap:balance}
html body.ap.rd .store-head h1 .gradient{background:none;-webkit-text-fill-color:currentColor;color:var(--rd-ink);font-style:normal}
html body.ap.rd .store-head p{font-size:clamp(1.0625rem,1.8vw,1.3125rem);line-height:1.45;color:var(--rd-ink-2);max-width:34em;margin:0 auto}
html body.ap.rd .store-head ~ .page-body{background:var(--rd-bg);padding:clamp(16px,3vw,32px) 0 clamp(56px,8vw,112px)}
html body.ap.rd .store-head ~ .page-body .container{max-width:1180px;padding-left:clamp(16px,4vw,32px);padding-right:clamp(16px,4vw,32px)}
html body.ap.rd .store-cats{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 0 20px}
html body.ap.rd .store-cats a{font-size:14px;font-weight:500;color:var(--rd-ink);background:var(--rd-soft);border:0;border-radius:999px;padding:8px 16px;text-decoration:none;text-transform:none;letter-spacing:0}
html body.ap.rd .store-cats a.is-on{background:var(--rd-ink);color:#fff}
html body.ap.rd .book-filters{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0 auto clamp(28px,5vw,56px);max-width:760px}
html body.ap.rd .book-filters input,html body.ap.rd .book-filters select{font-family:var(--rd-sans);font-size:16px;min-height:44px;border:1px solid var(--rd-line);border-radius:12px;padding:0 14px;background:#fff;color:var(--rd-ink)}
html body.ap.rd .book-filters input{flex:1 1 260px}
html body.ap.rd .book-filters .button{font-family:var(--rd-sans);font-size:15px;min-height:44px;border-radius:999px;padding:0 22px;background:var(--rd-ink);border-color:var(--rd-ink);color:#fff;text-transform:none;letter-spacing:0}
html body.ap.rd .book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:clamp(20px,3vw,32px)}
html body.ap.rd .book-grid .book-card{background:var(--rd-soft);border:0;border-radius:22px;padding:clamp(20px,2.4vw,28px);box-shadow:none;display:flex;flex-direction:column;gap:18px;grid-column:auto;grid-template-columns:none}
html body.ap.rd .book-grid .book-cover{display:flex;justify-content:center;align-items:center;background:none;padding:6px 0 0;margin:0;aspect-ratio:auto}
html body.ap.rd .book-grid .book-cover img{width:auto;max-width:78%;max-height:300px;height:auto;object-fit:contain;border-radius:4px;box-shadow:0 18px 36px -18px rgba(0,0,0,.4)}
html body.ap.rd .book-grid .book-info{display:flex;flex-direction:column;gap:6px;flex:1}
html body.ap.rd .book-grid .book-kicker{font-size:13px;font-weight:600;color:#bf4800;text-transform:none;letter-spacing:0}
html body.ap.rd #main .book-grid h2{font-size:clamp(1.2rem,1.6vw,1.375rem);line-height:1.25;letter-spacing:-.01em;font-weight:700;margin:0}
html body.ap.rd .book-grid h2 a{color:var(--rd-ink);text-decoration:none}
html body.ap.rd .book-grid h2 a:hover{color:var(--rd-link)}
html body.ap.rd .book-grid .book-sub{font-size:15px;line-height:1.4;color:var(--rd-ink-2);margin:0}
html body.ap.rd .book-grid .book-meta{font-size:13px;color:var(--rd-mute);margin:2px 0 0}
html body.ap.rd .book-grid .book-price{font-size:20px;font-weight:700;color:var(--rd-ink);margin-top:auto;padding-top:8px}
html body.ap.rd .book-grid .book-price s{font-size:14px;font-weight:400;color:var(--rd-mute);margin-left:6px}
html body.ap.rd .book-grid .book-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
html body.ap.rd .book-grid .book-actions form{margin:0;flex:1 1 auto}
html body.ap.rd .book-grid .book-actions .button{width:100%;font-family:var(--rd-sans);font-size:15px;font-weight:500;min-height:42px;padding:10px 16px;border-radius:999px;border:1px solid var(--rd-ink);background:var(--rd-ink);color:#fff;text-transform:none;letter-spacing:0;box-shadow:none}
html body.ap.rd .book-grid .book-actions .button.outline{background:transparent;color:var(--rd-ink)}
html body.ap.rd .book-grid .note{font-size:14px;color:var(--rd-mute);margin-top:auto}
html body.ap.rd .store-head ~ .page-body .store-trust{text-align:center;font-size:14px;color:var(--rd-mute);margin:clamp(32px,5vw,56px) auto 0}
html body.ap.rd .store-sec-title{font-family:var(--rd-sans);font-size:clamp(1.5rem,3vw,2rem);font-weight:700;margin:0 0 20px}
html body.ap.rd #main .store-head h1 span,html body.ap.rd #main .store-head h1 em{font-family:var(--rd-sans);font-style:normal;font-weight:700}
html body.ap.rd #main .book-grid .book-cover img{background:none;aspect-ratio:auto;height:auto;width:auto;padding:0;border:0}

/* ---------- Shared page head (blog, policies) ---------- */
html body.ap.rd .page-head{background:var(--rd-bg);color:var(--rd-ink);border:0;padding:clamp(48px,8vw,104px) 20px clamp(24px,4vw,40px);text-align:center}
html body.ap.rd #main .page-head h1{font-size:clamp(2.25rem,5.5vw,4.25rem);line-height:1.06;letter-spacing:-.025em;font-weight:700;color:var(--rd-ink);margin:0 auto 14px;max-width:18ch;text-wrap:balance}
html body.ap.rd #main .page-head h1[lang="hi"]{line-height:1.35;letter-spacing:normal}
html body.ap.rd #main .page-head h1 span,html body.ap.rd #main .page-head h1 em,html body.ap.rd #main h2 .gradient{font-family:var(--rd-sans);font-style:normal;font-weight:inherit;background:none;-webkit-text-fill-color:currentColor;color:inherit}
html body.ap.rd .page-head p{font-size:clamp(1.0625rem,1.8vw,1.3125rem);line-height:1.45;color:var(--rd-ink-2);max-width:36em;margin:0 auto}
html body.ap.rd .page-head .bp-crumb,html body.ap.rd .page-head .bp-kicker,html body.ap.rd .page-head .bp-kicker a{font-size:14px;font-weight:600;color:#bf4800;text-transform:none;letter-spacing:0;text-decoration:none}
html body.ap.rd .page-head .bp-dek{font-size:clamp(1.125rem,2vw,1.375rem);line-height:1.45;color:var(--rd-ink-2);max-width:34em;margin:0 auto 14px}
html body.ap.rd .page-head .bp-meta{font-size:14px;color:var(--rd-mute)}

/* ---------- Blog list ---------- */
html body.ap.rd .blog-head ~ .page-body{background:var(--rd-bg);padding:clamp(16px,3vw,32px) 0 clamp(56px,8vw,112px)}
html body.ap.rd .blog-head ~ .page-body .container{max-width:1180px;padding-left:clamp(16px,4vw,32px);padding-right:clamp(16px,4vw,32px)}
html body.ap.rd .bp-feature{display:grid;grid-template-columns:1.25fr 1fr;gap:clamp(24px,4vw,48px);align-items:center;background:var(--rd-soft);border:0;border-radius:28px;padding:clamp(16px,2.4vw,28px);margin:0 0 clamp(28px,4vw,48px);box-shadow:none}
html body.ap.rd .bp-feature .bp-media img,html body.ap.rd .bp-card .bp-media img{border-radius:18px;width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:cover}
html body.ap.rd .bp-feature .bp-text{padding:clamp(4px,1vw,12px) clamp(4px,1.5vw,20px)}
html body.ap.rd #main .bp-feature h2{font-size:clamp(1.75rem,3.2vw,2.5rem);line-height:1.1;letter-spacing:-.018em;font-weight:700;margin:8px 0 12px}
html body.ap.rd .bp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:clamp(20px,3vw,32px)}
html body.ap.rd .bp-card{background:var(--rd-soft);border:0;border-radius:22px;padding:14px 14px 22px;box-shadow:none}
html body.ap.rd .bp-card > :not(.bp-media){padding-left:8px;padding-right:8px}
html body.ap.rd #main .bp-card h2{font-size:clamp(1.2rem,1.7vw,1.375rem);line-height:1.25;letter-spacing:-.01em;font-weight:700;margin:6px 0 8px}
html body.ap.rd #main .bp-card h2 a,html body.ap.rd #main .bp-feature h2 a{color:var(--rd-ink);text-decoration:none}
html body.ap.rd #main .bp-card h2 a:hover,html body.ap.rd #main .bp-feature h2 a:hover{color:var(--rd-link)}
html body.ap.rd .bp-grid .bp-kicker,html body.ap.rd .bp-feature .bp-kicker{font-size:13px;font-weight:600;color:#bf4800;text-transform:none;letter-spacing:0;margin-top:14px;display:block}
html body.ap.rd .bp-excerpt{font-size:16px;line-height:1.5;color:var(--rd-ink-2);margin:0 0 10px}
html body.ap.rd .bp-grid .bp-meta,html body.ap.rd .bp-feature .bp-meta{font-size:13px;color:var(--rd-mute)}
html body.ap.rd .bp-feature .button,html body.ap.rd .bp-pager .button{font-family:var(--rd-sans);font-size:15px;font-weight:500;border-radius:999px;padding:12px 22px;background:var(--rd-ink);border:1px solid var(--rd-ink);color:#fff;text-transform:none;letter-spacing:0;box-shadow:none}
html body.ap.rd .bp-pager .button.outline{background:transparent;color:var(--rd-ink)}

/* ---------- Blog post ---------- */
html body.ap.rd .bp-head{padding-bottom:clamp(20px,3vw,32px)}
html body.ap.rd .bp-cover{margin-top:clamp(8px,2vw,24px)}
html body.ap.rd .bp-cover img{border-radius:24px}
html body.ap.rd .bp-article .bp-body,html body.ap.rd .bp-article .bp-narrow{max-width:720px;margin-left:auto;margin-right:auto}
html body.ap.rd .bp-body{font-size:clamp(1.0625rem,1.5vw,1.1875rem);line-height:1.65;color:var(--rd-ink-2)}
html body.ap.rd .bp-body p,html body.ap.rd .bp-body li{color:var(--rd-ink-2)}
html body.ap.rd #main .bp-body h2{font-size:clamp(1.5rem,2.8vw,2rem);line-height:1.15;letter-spacing:-.015em;font-weight:700;color:var(--rd-ink);margin:2em 0 .6em}
html body.ap.rd #main .bp-body h3{font-size:clamp(1.25rem,2vw,1.5rem);font-weight:700;margin:1.6em 0 .5em}
html body.ap.rd .bp-body a{color:var(--rd-link)}
html body.ap.rd .bp-body strong{color:var(--rd-ink)}
html body.ap.rd .bp-body .bp-figure img{border-radius:16px;border:0}
html body.ap.rd .bp-body :lang(hi),html body.ap.rd .bp-body[lang="hi"]{line-height:1.85}
html body.ap.rd .bp-related{background:var(--rd-soft)}
html body.ap.rd #main .bp-related h2{font-size:clamp(1.75rem,3.2vw,2.5rem);letter-spacing:-.018em;font-weight:700}
html body.ap.rd .bp-share,html body.ap.rd .bp-back{font-size:15px}
html body.ap.rd .bp-back a,html body.ap.rd .bp-share a{color:var(--rd-link)}

/* ---------- Policy pages ---------- */
html body.ap.rd .policy.card{background:none;border:0;box-shadow:none;max-width:720px;padding:0 clamp(16px,4vw,24px) clamp(56px,8vw,112px)}
html body.ap.rd #main .policy h2{font-size:clamp(1.375rem,2.4vw,1.75rem);line-height:1.2;letter-spacing:-.01em;font-weight:700;margin:1.8em 0 .5em}
html body.ap.rd .policy p,html body.ap.rd .policy li{font-size:clamp(1rem,1.4vw,1.0625rem);line-height:1.65;color:var(--rd-ink-2)}
html body.ap.rd .policy a{color:var(--rd-link)}
html body.ap.rd .policy .fine{font-size:14px;color:var(--rd-mute)}
@media (max-width:820px){
  html body.ap.rd .bp-feature{grid-template-columns:1fr;border-radius:22px}
}
html body.ap.rd #main .page-head .bp-crumb,html body.ap.rd #main .page-head .bp-crumb a{color:#b64400;font-size:14px;font-weight:600;text-decoration:none;opacity:1}

/* ---------- Main site pages (courses, course detail, contact, about, resume) ---------- */
html body.ap.rd .page-body{background:var(--rd-bg)}
html body.ap.rd .page-body > .container{max-width:1180px;padding-left:clamp(16px,4vw,32px);padding-right:clamp(16px,4vw,32px)}
html body.ap.rd .cx-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 0 clamp(24px,4vw,40px)}
html body.ap.rd .cx-tabs a,html body.ap.rd .cx-tabs button{font-family:var(--rd-sans);font-size:14px;font-weight:500;color:var(--rd-ink);background:var(--rd-soft);border:0;border-radius:999px;padding:8px 16px;text-transform:none;letter-spacing:0}
html body.ap.rd .cx-tabs .on,html body.ap.rd .cx-tabs [aria-selected="true"]{background:var(--rd-ink);color:#fff}
html body.ap.rd .cx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:clamp(20px,3vw,32px)}
html body.ap.rd .cx-card{background:var(--rd-soft);border:0;border-radius:22px;overflow:hidden;box-shadow:none;display:flex;flex-direction:column}
html body.ap.rd .cx-card .cx-img img,html body.ap.rd .cx-img img{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:cover;border-radius:0}
html body.ap.rd .cx-body{padding:20px 22px 24px;display:flex;flex-direction:column;gap:8px;flex:1}
html body.ap.rd .cx-cat,html body.ap.rd .cx-tag{font-size:13px;font-weight:600;color:#b64400;text-transform:none;letter-spacing:0;background:none;padding:0;border:0}
html body.ap.rd #main .cx-card h2,html body.ap.rd #main .cx-card h3{font-size:clamp(1.2rem,1.7vw,1.375rem);line-height:1.25;letter-spacing:-.01em;font-weight:700;margin:0}
html body.ap.rd .cx-card h2 a,html body.ap.rd .cx-card h3 a{color:var(--rd-ink);text-decoration:none}
html body.ap.rd .cx-meta{font-size:14px;color:var(--rd-mute)}
html body.ap.rd .cx-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:10px}
html body.ap.rd .cx-price{font-size:20px;font-weight:700;color:var(--rd-ink)}
html body.ap.rd .cx-note{text-align:center;font-size:14px;color:var(--rd-mute);margin-top:clamp(28px,4vw,48px)}
html body.ap.rd #main .button{font-family:var(--rd-sans);font-weight:500;letter-spacing:0;text-transform:none;border-radius:999px;box-shadow:none}
html body.ap.rd #main .button:not(.outline):not(.ghost){background:var(--rd-ink);border-color:var(--rd-ink);color:#fff}
html body.ap.rd #main .button.outline{background:transparent;color:var(--rd-ink);border:1px solid var(--rd-ink)}

/* Course detail */
html body.ap.rd .cd-hero{background:var(--rd-bg);color:var(--rd-ink);padding:clamp(28px,5vw,64px) 0 clamp(24px,4vw,48px)}
html body.ap.rd .cd-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(28px,5vw,64px);align-items:start;max-width:1180px}
html body.ap.rd .cd-crumb,html body.ap.rd .cd-crumb a{font-size:13px;color:var(--rd-mute);text-decoration:none}
html body.ap.rd #main .cd-hero h1{font-size:clamp(2.25rem,5vw,3.75rem);line-height:1.07;letter-spacing:-.022em;font-weight:700;color:var(--rd-ink);margin:10px 0 14px;text-wrap:balance}
html body.ap.rd .cd-lead{font-size:clamp(1.0625rem,1.8vw,1.3125rem);line-height:1.45;color:var(--rd-ink-2)}
html body.ap.rd .cd-facts,html body.ap.rd .cd-chips{color:var(--rd-ink-2)}
html body.ap.rd .cd-chips span,html body.ap.rd .cd-chips li{background:var(--rd-soft);border:0;border-radius:999px;color:var(--rd-ink);padding:6px 12px;font-size:14px}
html body.ap.rd .cd-buy{background:var(--rd-soft);border:0;border-radius:24px;box-shadow:none;overflow:hidden}
html body.ap.rd .cd-buy img{width:100%;height:auto;display:block}
html body.ap.rd .cd-buy-in{padding:clamp(20px,2.6vw,28px)}
html body.ap.rd .cd-price b{font-size:clamp(1.75rem,3vw,2.25rem);font-weight:700;color:var(--rd-ink)}
html body.ap.rd .cd-price s{color:var(--rd-mute)}
html body.ap.rd .cd-off{background:#e8f5ec;color:#0a6b2d;border-radius:999px;padding:3px 10px;font-size:13px;font-weight:600}
html body.ap.rd #main .cd-buy .button{width:100%;min-height:48px;font-size:17px;justify-content:center}
html body.ap.rd .cd-secure,html body.ap.rd .cd-incl li{font-size:14px;color:var(--rd-ink-2)}
html body.ap.rd .cd-main{max-width:820px}
html body.ap.rd .cd-sec{padding:clamp(28px,4vw,48px) 0;border-top:1px solid var(--rd-line)}
html body.ap.rd #main .cd-sec h2{font-size:clamp(1.5rem,3vw,2.25rem);line-height:1.12;letter-spacing:-.018em;font-weight:700;margin:0 0 16px}
html body.ap.rd .cd-sec p,html body.ap.rd .cd-sec li{font-size:clamp(1rem,1.4vw,1.125rem);line-height:1.6;color:var(--rd-ink-2)}
html body.ap.rd .cd-mod,html body.ap.rd .cd-faq details{background:var(--rd-soft);border:0;border-radius:16px;padding:16px 20px;margin:0 0 10px}

/* Contact, about, resume */
html body.ap.rd .two-col{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,48px)}
html body.ap.rd .page-body .card{background:var(--rd-soft);border:0;border-radius:24px;box-shadow:none;padding:clamp(20px,3vw,36px)}
html body.ap.rd .contact-link{color:var(--rd-link)}
html body.ap.rd .page-body input,html body.ap.rd .page-body select,html body.ap.rd .page-body textarea{font-family:var(--rd-sans);font-size:16px;border:1px solid var(--rd-line);border-radius:12px;background:#fff;color:var(--rd-ink)}
html body.ap.rd .md,html body.ap.rd .md-hero,html body.ap.rd .md-section{background:var(--rd-bg);color:var(--rd-ink)}
html body.ap.rd #main .md h1,html body.ap.rd #main .md h2{letter-spacing:-.02em;font-weight:700;color:var(--rd-ink)}
html body.ap.rd .md-eyebrow,html body.ap.rd .eyebrow{color:#b64400;font-weight:600;text-transform:none;letter-spacing:0}
html body.ap.rd .md-area{background:var(--rd-soft);border:0;border-radius:20px;box-shadow:none}
html body.ap.rd .md-lead,html body.ap.rd .md-intro-text p,html body.ap.rd .mission p{color:var(--rd-ink-2)}
@media (max-width:820px){
  html body.ap.rd .cd-hero-grid,html body.ap.rd .two-col{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  html body.ap.rd .md-reveal{opacity:1 !important;transform:none !important;transition:none !important;animation:none !important}
}
html body.ap.rd #main .md :is(h1,h2,h3,.md-quote,.md-intro-text p:first-child::first-letter){font-family:var(--rd-sans);font-style:normal}
html body.ap.rd #main .md h1{font-size:clamp(2.25rem,5vw,3.75rem);line-height:1.07;letter-spacing:-.022em;font-weight:700}
html body.ap.rd #main .md h2{font-size:clamp(1.75rem,3.4vw,2.5rem);line-height:1.1;letter-spacing:-.018em;font-weight:700}
html body.ap.rd .md-portrait,html body.ap.rd .md-facts > *{background:var(--rd-soft);border:0;box-shadow:none;border-radius:18px}
html body.ap.rd .cd-facts > *,html body.ap.rd .contact-links > *,html body.ap.rd .contact-link{background:var(--rd-soft);border:0;border-radius:16px;box-shadow:none}
html body.ap.rd #main :is(h1,h2,h3){font-family:var(--rd-sans) !important;font-style:normal}
html body.ap.rd #main :is(h1,h2,h3) :is(em,i,span){font-family:inherit !important}
html body.ap.rd .cx-card .cx-tag,html body.ap.rd .cx-img .cx-tag{background:rgba(255,255,255,.94);color:#b64400;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.15)}
html body.ap.rd .md-portrait{max-width:240px;margin-left:auto;margin-right:auto;padding:12px}
html body.ap.rd .md-portrait img{width:100%;height:auto;max-width:216px;display:block;margin:0 auto;border-radius:14px}
@media (max-width:820px){html body.ap.rd .md-portrait{max-width:200px}}

/* ---------- Home page (pages/home-reading-room.html) via body.rd-home ---------- */
body.rd-home{
  --sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans","Noto Sans Devanagari","Nirmala UI",sans-serif;
  --serif:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans","Noto Sans Devanagari","Nirmala UI",sans-serif;
  --paper:#ffffff; --white:#ffffff; --butter:#f5f5f7; --ink:#1d1d1f; --mute:#6e6e73; --rule:#d2d2d7;
  -webkit-font-smoothing:antialiased;
}
body.rd-home :is(h1,h2,h3){font-weight:700;letter-spacing:-.02em;font-style:normal}
body.rd-home :is(h1,h2,h3) em{font-style:normal}
body.rd-home :focus-visible{outline:3px solid #0071e3;outline-offset:3px;border-radius:4px}
body.rd-home :lang(hi){line-height:1.45;letter-spacing:normal}
@media (prefers-reduced-motion:reduce){body.rd-home *{animation:none !important;transition:none !important}}

/* ---------- Tools (converter, calculators, speed test) ---------- */
html body.tools-page.rd{background:#fff;color:#1d1d1f;font-family:var(--rd-sans)}
html body.tools-page.rd :is(h1,h2,h3){font-family:var(--rd-sans) !important;font-style:normal;font-weight:700;letter-spacing:-.02em;color:#1d1d1f}
html body.tools-page.rd :is(h1,h2,h3) :is(em,i,span){font-family:inherit !important;font-style:normal}
html body.tools-page.rd h1{font-size:clamp(2.25rem,5.5vw,4rem);line-height:1.06}
html body.tools-page.rd :focus-visible{outline:3px solid #0071e3;outline-offset:3px;border-radius:4px}
html body.tools-page.rd .button{font-family:var(--rd-sans);border-radius:999px;text-transform:none;letter-spacing:0;font-weight:500}

/* ---------- Home hero: gentle motion on the original stepwell photo ---------- */
@media (prefers-reduced-motion:no-preference){
  body.rd-home #scene-learn .stepwell{transform-origin:62% 55%;animation:rd-hero-drift 24s ease-in-out infinite alternate;will-change:transform}
  body.rd-home #scene-learn::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
    background:linear-gradient(105deg,transparent 0%,transparent 40%,rgba(255,236,200,.16) 50%,transparent 60%,transparent 100%);
    background-size:250% 100%;background-position:120% 0;mix-blend-mode:screen;animation:rd-hero-glint 9s ease-in-out infinite}
  body.rd-home #scene-learn .scene-inner{position:relative;z-index:1}
}
@keyframes rd-hero-drift{0%{transform:scale(1) translate3d(0,0,0)}100%{transform:scale(1.07) translate3d(-1.2%,-.8%,0)}}
@keyframes rd-hero-glint{0%,55%{background-position:120% 0}85%,100%{background-position:-30% 0}}

/* ---------- Home hero: soft blinking glow on the hero words ---------- */
@media (prefers-reduced-motion:no-preference){
  body.rd-home #scene-learn .hero-title em{animation:rd-word-glow 2.4s ease-in-out infinite}
  body.rd-home #scene-learn .eyebrow{animation:rd-word-fade 3.2s ease-in-out infinite}
}
@keyframes rd-word-glow{0%,100%{opacity:1;text-shadow:0 0 0 rgba(255,214,150,0)}50%{opacity:.55;text-shadow:0 0 18px rgba(255,214,150,.75)}}
@keyframes rd-word-fade{0%,100%{opacity:1}50%{opacity:.5}}
