/* अध्ययनसार — अध्याय का चौड़ा मुख्य लेख + दाईं छोटी तथ्य-पट्टी (केवल opt-in पृष्ठ)। */
body[data-study-facts="v1"][data-study-facts-ready="1"] .as-study-facts-rail{
 box-sizing:border-box;grid-column:2;grid-row:3;align-self:start;min-width:0;
 position:sticky;top:6rem;max-height:calc(100dvh - 7.25rem);overflow:auto;
 border:1px solid var(--ds-border,#d9e0e8);border-radius:12px;
 background:var(--ds-surface,#fff);color:var(--ds-text,#111);
 padding:1.15rem;scrollbar-width:thin
}
body[data-study-facts="v1"] .as-study-facts-rail .as-study-facts-disclosure{min-width:0}
body[data-study-facts="v1"] .as-study-facts-disclosure>summary{display:none}
body[data-study-facts="v1"] .as-study-facts-content{min-width:0}
body[data-study-facts="v1"] .as-study-facts-rail h2{
 color:var(--ds-heading,#111);font-size:1.08rem;line-height:1.45;
 margin:0 0 .4rem;padding:0 0 .6rem;border-bottom:2px solid var(--ds-primary,#2457a6)
}
body[data-study-facts="v1"] .as-study-facts-rail .as-study-facts-lead{
 color:var(--ds-text-muted,#555);font-size:.8rem;line-height:1.6;margin:0 0 .8rem
}
body[data-study-facts="v1"] .as-study-facts-rail .as-study-facts-list{
 list-style:decimal;padding:0 0 0 1.3rem;margin:0
}
body[data-study-facts="v1"] .as-study-facts-rail .as-study-facts-list>li{
 font-size:.89rem;line-height:1.68;padding:.65rem .15rem .7rem .1rem;
 margin:0;border-bottom:1px solid var(--ds-border,#d9e0e8);
 background:transparent;color:var(--ds-text,#111);overflow-wrap:anywhere
}
body[data-study-facts="v1"] .as-study-facts-rail .as-study-facts-list>li:last-child{border-bottom:0}
body[data-study-facts="v1"] .as-study-facts-links{
 margin-top:1rem;padding-top:.8rem;border-top:1px solid var(--ds-border,#d9e0e8)
}
body[data-study-facts="v1"] .as-study-facts-links h3{
 margin:0 0 .6rem;font-size:.9rem;color:var(--ds-heading,#111)
}
body[data-study-facts="v1"] .as-study-facts-links a{
 display:block;color:var(--ds-primary,#2457a6);text-decoration:none;font-size:.86rem
}
body[data-study-facts="v1"] .as-study-facts-links a:is(:hover,:focus-visible){text-decoration:underline}

/* अर्थव्यवस्था: पुरानी बाईं TOC की जगह पूरा मुख्य लेख, छोटा दायाँ तथ्य। */
body.economics-reading-page[data-study-facts-ready="1"][data-study-facts-kind="economics"] .economics-reading-article.as-reading-content{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(255px,280px)!important;
 gap:clamp(18px,2vw,28px)!important;
 width:min(1340px,calc(100% - 2rem))!important;max-width:1340px!important
}
body.economics-reading-page[data-study-facts-ready="1"] .economics-reading-article>.economics-reading-toc{display:none!important}
body.economics-reading-page[data-study-facts-ready="1"] .economics-reading-article>.economics-article-content{
 grid-column:1!important;grid-row:3!important;width:100%!important;min-width:0!important
}
body.economics-reading-page[data-study-facts-ready="1"] .economics-reading-article>.economics-topic-bottom{
 grid-column:1!important;grid-row:4!important;min-width:0!important
}

/* इतिहास वैकल्पिक: प्रागैतिहासिक अध्यायों का पुराना बायाँ TOC हटे। */
body.history-note-page[data-study-facts-ready="1"][data-study-facts-kind="history-note"] .note-wrap{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(255px,280px)!important;
 gap:clamp(18px,2vw,28px)!important;align-items:start;
 width:min(1340px,calc(100% - 2rem))!important;max-width:1340px!important;margin-inline:auto
}
body.history-note-page[data-study-facts-ready="1"] .note-wrap>.history-optional-note-toc{display:none!important}
body.history-note-page[data-study-facts-ready="1"] .note-wrap>.history-optional-note-content{
 grid-column:1!important;grid-row:3!important;width:100%!important;max-width:none!important;min-width:0!important
}
body.history-note-page[data-study-facts-ready="1"] .note-wrap>:is(.history-note-nav,.note-nav){
 grid-column:1!important;grid-row:4!important
}

/* इतिहास वैकल्पिक: प्राचीन भारत के समृद्ध लेख — बाईं पुरानी पट्टी हटे, पुराने उपयोगी लिंक रेल में जाएँ। */
body.topic-page[data-study-facts-ready="1"][data-study-facts-kind="history-topic"] .page-layout{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(255px,280px)!important;
 gap:clamp(18px,2vw,28px)!important;align-items:start;
 width:min(1340px,calc(100% - 2rem))!important;max-width:1340px!important
}
body.topic-page[data-study-facts-ready="1"] .page-layout>aside.side{display:none!important}
body.topic-page[data-study-facts-ready="1"] .page-layout>.article.as-reading-content{
 grid-column:1!important;grid-row:1!important;min-width:0!important;
 width:100%!important;max-width:none!important;margin:0!important
}
body.topic-page[data-study-facts-ready="1"] .page-layout>.as-study-facts-rail{grid-row:1!important}

/* मोबाइल: मुख्य लेख अकेले चौड़ा दिखे; नीचे बंद, क्लिक-से-खुलने वाला तथ्य-सार। */
@media(max-width:1023px){
 body.economics-reading-page[data-study-facts-ready="1"][data-study-facts-kind="economics"] .economics-reading-article.as-reading-content,
 body.history-note-page[data-study-facts-ready="1"][data-study-facts-kind="history-note"] .note-wrap,
 body.topic-page[data-study-facts-ready="1"][data-study-facts-kind="history-topic"] .page-layout{
  grid-template-columns:minmax(0,1fr)!important;gap:1rem!important;
  width:min(100% - 1.2rem,820px)!important
 }
 body.economics-reading-page[data-study-facts-ready="1"] .economics-reading-article>.economics-article-content,
 body.history-note-page[data-study-facts-ready="1"] .note-wrap>.history-optional-note-content,
 body.topic-page[data-study-facts-ready="1"] .page-layout>.article.as-reading-content{
  grid-column:1!important;width:100%!important;max-width:none!important;min-width:0!important
 }
 body.economics-reading-page[data-study-facts-ready="1"] .economics-reading-article>.economics-topic-bottom,
 body.history-note-page[data-study-facts-ready="1"] .note-wrap>:is(.history-note-nav,.note-nav){grid-column:1!important}
 body.topic-page[data-study-facts-ready="1"] .page-layout>.article.as-reading-content{grid-row:1!important}
 body[data-study-facts="v1"][data-study-facts-ready="1"] .as-study-facts-rail{
  grid-column:1!important;grid-row:auto!important;position:static!important;
  width:100%!important;max-height:none!important;overflow:visible!important;
  margin:0!important;padding:.95rem 1.1rem!important
 }
 body.economics-reading-page[data-study-facts-ready="1"] .economics-reading-article>.as-study-facts-rail,
 body.history-note-page[data-study-facts-ready="1"] .note-wrap>.as-study-facts-rail{grid-row:5!important}
 body.topic-page[data-study-facts-ready="1"] .page-layout>.as-study-facts-rail{grid-row:2!important}
 body[data-study-facts="v1"] .as-study-facts-disclosure>summary{
  display:list-item;cursor:pointer;color:var(--ds-heading,#111);
  font-size:1rem;font-weight:750;line-height:1.7;padding:.15rem 0
 }
 body[data-study-facts="v1"] .as-study-facts-disclosure[open]>summary{margin-bottom:.9rem}
 body[data-study-facts="v1"] .as-study-facts-disclosure>summary:focus-visible{
  outline:3px solid var(--ds-focus,#2457a6);outline-offset:3px;border-radius:4px
 }
}
@media print{
 body[data-study-facts="v1"] .as-study-facts-rail{position:static!important;max-height:none!important;overflow:visible!important}
 body[data-study-facts="v1"] .as-study-facts-disclosure>summary{display:none!important}
}

/* GEO_LEGACY_TWO_COLUMN — भूगोल के विस्तृत पुस्तक-जैसे नोट, बिना बाएँ TOC के। */
body[data-study-facts-ready="1"][data-study-facts-kind="geo-legacy"] .geo-note.as-reading-content{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(255px,280px)!important;
 gap:clamp(18px,2vw,28px)!important;align-items:start;
 width:min(1340px,calc(100% - 2rem))!important;max-width:1340px!important
}
body[data-study-facts-ready="1"][data-study-facts-kind="geo-legacy"] .geo-note>.geo-reading-toc{
 display:none!important
}
body[data-study-facts-ready="1"][data-study-facts-kind="geo-legacy"] .geo-note>.geo-study-content{
 grid-column:1!important;grid-row:3!important;width:100%!important;max-width:none!important;min-width:0!important
}
body[data-study-facts-ready="1"][data-study-facts-kind="geo-legacy"] .geo-note>.as-study-facts-rail{
 grid-column:2!important;grid-row:3!important
}
@media(max-width:1023px){
 body[data-study-facts-ready="1"][data-study-facts-kind="geo-legacy"] .geo-note.as-reading-content{
  grid-template-columns:minmax(0,1fr)!important;
  width:min(100% - 1.2rem,820px)!important;gap:1rem!important
 }
 body[data-study-facts-ready="1"][data-study-facts-kind="geo-legacy"] .geo-note>.geo-study-content{
  grid-column:1!important;grid-row:3!important
 }
 body[data-study-facts-ready="1"][data-study-facts-kind="geo-legacy"] .geo-note>.as-study-facts-rail{
  grid-column:1!important;grid-row:4!important
 }
}
