/* Scoped to CarvingBrain Complete Notes study-unit pages. No global theme overrides. */
.cb-notes-display-v1 .cb-study-main{min-width:0;max-width:900px;width:100%}
.cb-notes-display-v1 .cb-study-sidebar{align-self:start}
.cb-notes-display-v1 .cb-notes-language-panel{min-height:78px;align-items:center}
.cb-notes-display-v1 .cb-notes-language-pill{display:inline-flex;align-items:center;justify-content:center;min-width:105px;padding:10px 15px;border:1px solid #d8e5f5;border-radius:10px;background:#fff;color:#1b4d86;font-weight:800;font-size:13px}
.cb-notes-display-v1 .cb-study-content.cbln-reading-surface{max-width:100%;min-width:0;padding:clamp(18px,3vw,32px);border:1px solid #e0e8f3;border-radius:17px;background:#fff;box-shadow:0 12px 34px rgba(28,59,103,.055);overflow:hidden;overflow-wrap:anywhere}
.cb-notes-display-v1 .cbln-reading-surface .cbln-note{max-width:100%;min-width:0;font-size:1rem;line-height:1.8;color:#26364d}
.cb-notes-display-v1 .cbln-reading-surface .cbln-note>h2:first-child{display:none}
.cb-notes-display-v1 .cbln-reading-surface .cbln-note h2{font-size:clamp(1.35rem,2vw,1.7rem);line-height:1.35;margin:1.35em 0 .65em;color:#17477f;letter-spacing:-.02em}
.cb-notes-display-v1 .cbln-reading-surface .cbln-note h3{font-size:1.12rem;line-height:1.45;margin:1.4em 0 .55em;color:#234e79}
.cb-notes-display-v1 .cbln-reading-surface .cbln-note p{line-height:1.85;margin:.65em 0 1em}
.cb-notes-display-v1 .cbln-reading-surface .cbln-definition{padding:17px 19px;border:1px solid #f0dfb9;border-left:5px solid #e9a52c;border-radius:13px;background:linear-gradient(115deg,#fff9eb,#fffdf8);margin:18px 0 22px}
.cb-notes-display-v1 .cbln-reading-surface .cbln-definition p{margin:.45em 0 0}
.cb-notes-display-v1 .cbln-reading-surface .cbln-example,.cb-notes-display-v1 .cbln-reading-surface .cbln-practice,.cb-notes-display-v1 .cbln-reading-surface .cbln-info{padding:16px 18px;border-radius:13px;margin:18px 0}
.cb-notes-display-v1 .cbln-reading-surface .cbln-example{background:#edf7ff;border:1px solid #c9e3fa;border-left:5px solid #398bd0}
.cb-notes-display-v1 .cbln-reading-surface .cbln-practice{background:#eff9f1;border:1px solid #cfe8d4;border-left:5px solid #35a16a}
.cb-notes-display-v1 .cbln-reading-surface .cbln-info{background:#f3f0ff;border:1px solid #ded7ff}
.cb-notes-display-v1 .cbln-reading-surface .cbln-callout>strong{display:block;margin-bottom:5px;color:#1d426d}
.cb-notes-display-v1 .cbln-reading-surface .cbln-infographic{margin:20px 0;padding:18px;border:1px solid #dce8f5;border-radius:15px;background:linear-gradient(130deg,#f1f7ff,#f7f3ff 58%,#effaf6)}
.cb-notes-display-v1 .cbln-reading-surface .cbln-flow{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}
.cb-notes-display-v1 .cbln-reading-surface .cbln-flow span{max-width:100%;padding:9px 13px;border:1px solid #d5e2f2;border-radius:999px;background:#fff;color:#244c7b;font-size:.9rem;font-weight:750;text-align:center}
.cb-notes-display-v1 .cbln-reading-surface .cbln-note ul,.cb-notes-display-v1 .cbln-reading-surface .cbln-note ol{padding-left:1.5rem;margin:12px 0 22px}
.cb-notes-display-v1 .cbln-reading-surface .cbln-note li{margin:7px 0;line-height:1.75}
.cb-notes-display-v1 .cbln-reading-surface .cbln-note table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
.cb-notes-display-v1 .cbln-reading-surface .cbln-note th,.cb-notes-display-v1 .cbln-reading-surface .cbln-note td{min-width:90px;padding:10px 12px;border:1px solid #dce6f1}
.cb-notes-display-v1 .cbln-reading-surface .cbln-note th{background:#edf4fb;color:#164777}
.cb-notes-display-v1 .cbln-reading-surface .cbln-lang-hindi{font-family:inherit;line-height:1.95;letter-spacing:0}
.cb-notes-display-v1 .cbln-reading-surface .cbln-lang-hindi h2,.cb-notes-display-v1 .cbln-reading-surface .cbln-lang-hindi h3{line-height:1.6}
.cb-notes-display-v1 .cb-notes-language-panel .cb-language-intro{min-width:0}
.cb-notes-display-v1 .cb-notes-language-panel .cb-language-select{max-width:280px}
@media(max-width:700px){
 .cb-notes-display-v1 .cb-notes-language-panel{align-items:stretch;flex-direction:column;padding:14px}
 .cb-notes-display-v1 .cb-notes-language-panel .cb-language-select{width:100%;max-width:none}
 .cb-notes-display-v1 .cbln-reading-surface{padding:18px 16px}
 .cb-notes-display-v1 .cbln-reading-surface .cbln-flow{align-items:stretch;flex-direction:column}
 .cb-notes-display-v1 .cbln-reading-surface .cbln-flow b{text-align:center;transform:rotate(90deg)}
}


/* v1.0.1: Correct the notes-only grid. The theme's later generic
   .cb-learning-layout rule reverses the columns, so pin the intended
   sidebar / reading-column order only on notes pages using this template. */
.cb-notes-display-v1.cb-study-layout{
 display:grid;
 grid-template-columns:minmax(220px,258px) minmax(0,1fr);
 grid-template-areas:"sidebar main";
 gap:clamp(22px,3vw,34px);
 align-items:start;
}
.cb-notes-display-v1.cb-study-layout>.cb-study-sidebar{
 grid-area:sidebar;
 min-width:0;
 width:auto;
 max-width:none;
 position:sticky;
 top:24px;
 max-height:calc(100vh - 48px);
 overflow:auto;
}
.cb-notes-display-v1.cb-study-layout>.cb-study-main{
 grid-area:main;
 min-width:0;
 width:100%;
 max-width:900px;
 justify-self:stretch;
}
.cb-notes-display-v1 .cb-study-content.cbln-reading-surface{
 overflow:visible;
}
@media(max-width:900px){
 .cb-notes-display-v1.cb-study-layout{
  grid-template-columns:minmax(190px,220px) minmax(0,1fr);
  gap:18px;
 }
}
@media(max-width:700px){
 .cb-notes-display-v1.cb-study-layout{
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"main" "sidebar";
  gap:24px;
 }
 .cb-notes-display-v1.cb-study-layout>.cb-study-sidebar{
  position:static;
  max-height:none;
  overflow:visible;
 }
 .cb-notes-display-v1.cb-study-layout>.cb-study-main{
  max-width:none;
 }
}
@media(max-width:420px){
 .cb-notes-display-v1 .cb-study-content.cbln-reading-surface{
  padding:16px 14px;
  border-radius:13px;
 }
 .cb-notes-display-v1 .cbln-reading-surface .cbln-note{
  font-size:.97rem;
  line-height:1.78;
 }
}

/* v1.0.2 — reference-matched subtopic study layout. Scoped to the supplied
   notes subtopic template only; no general theme/page selectors are changed. */
.cb-subtopic-view-v2{
  width:min(1420px,calc(100% - 40px));
  max-width:1420px;
  display:grid;
  grid-template-columns:minmax(238px,285px) minmax(0,1fr);
  grid-template-areas:"sidebar main";
  gap:clamp(18px,2.3vw,30px);
  align-items:start;
  padding-top:clamp(20px,3vw,34px);
}
.cb-subtopic-view-v2 *{box-sizing:border-box}
.cb-subtopic-sidebar{grid-area:sidebar;min-width:0;align-self:stretch}
.cb-subtopic-main-column{grid-area:main;min-width:0;width:100%;display:flex;flex-direction:column;gap:16px}
.cb-subtopic-nav-card{padding:18px 16px;border:1px solid #dce6f2;border-radius:15px;background:#fff;box-shadow:0 7px 24px rgba(26,55,94,.055);margin-bottom:14px;min-width:0}
.cb-subtopic-current-topic{font-size:1.12rem;line-height:1.4;color:#173d68;margin:7px 0 17px;overflow-wrap:anywhere}
.cb-subtopic-nav-heading,.cb-subtopic-chapter-heading{font-size:.96rem;line-height:1.45;color:#243d5d;margin:14px 0 9px}
.cb-subtopic-link-list{display:flex;flex-direction:column;gap:4px;min-width:0}
.cb-subtopic-nav-link{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;padding:10px 11px;border-radius:9px;color:#40546f;text-decoration:none;font-size:.9rem;line-height:1.42;overflow-wrap:anywhere;transition:background .15s ease,color .15s ease}
.cb-subtopic-nav-link:hover{background:#eef5ff;color:#174d8b}
.cb-subtopic-nav-link.is-current{background:#eaf2ff;color:#174d8b;font-weight:800;box-shadow:inset 3px 0 0 #2874c8}
.cb-subtopic-current-dot{width:7px;height:7px;flex:0 0 7px;margin-top:6px;border-radius:50%;background:#2874c8}
.cb-subtopic-chapter-card{border-top:3px solid #d9e8fa}
.cb-subtopic-chapter-name{font-size:.86rem;font-weight:750;color:#60748c;line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}
.cb-subtopic-other-topics .cb-subtopic-nav-link{font-size:.86rem;padding:9px 10px}
.cb-subtopic-back-chapter{display:inline-flex;margin-top:13px;font-size:.82rem;font-weight:800;color:#235b9e;text-decoration:none}
.cb-subtopic-back-chapter:hover{text-decoration:underline}
.cb-subtopic-nav-empty{font-size:.84rem;line-height:1.55;color:#78879a;margin:8px 0 3px}
.cb-subtopic-search-panel{position:relative;z-index:5;padding:10px;border:1px solid #dbe6f3;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(31,59,99,.045)}
.cb-subtopic-search{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) 145px 120px!important;gap:9px!important;align-items:center!important;width:100%;min-width:0;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.cb-subtopic-search-icon{grid-column:1;grid-row:1;position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:23px;line-height:1;color:#5575a4;pointer-events:none}
.cb-subtopic-search>input[type=search]{grid-column:1;grid-row:1;width:100%!important;min-width:0!important;height:48px!important;margin:0!important;padding:0 14px 0 43px!important;border:1px solid #dfe7f2!important;border-radius:10px!important;background:#f9fbff!important;color:#203b5d!important;font-size:14px!important;box-shadow:none!important}
.cb-subtopic-search>select{grid-column:2;grid-row:1;width:100%!important;min-width:0!important;height:48px!important;margin:0!important;padding:0 10px!important;border:1px solid #dfe7f2!important;border-radius:10px!important;background:#f9fbff!important;color:#40546f!important;font-size:12px!important}
.cb-subtopic-search>button{grid-column:3;grid-row:1;width:100%!important;height:48px!important;margin:0!important;padding:0 13px!important;border:0!important;border-radius:10px!important;background:#175cb8!important;color:#fff!important;font-size:13px!important;font-weight:800!important;box-shadow:none!important}
.cb-subtopic-search>button:hover{background:#104b98!important}
.cb-subtopic-search .cb-search-suggestions{top:calc(100% + 8px)!important;left:0!important;right:0!important}
.cb-subtopic-reading-panel{min-width:0;padding:clamp(18px,2.5vw,30px);border:1px solid #dce6f2;border-radius:16px;background:#fff;box-shadow:0 8px 28px rgba(26,55,94,.055)}
.cb-subtopic-reading-heading{margin-bottom:18px;min-width:0}
.cb-subtopic-reading-heading .cb-breadcrumbs{margin-bottom:13px}
.cb-subtopic-reading-heading h1{font-size:clamp(1.55rem,2.7vw,2.15rem);line-height:1.22;letter-spacing:-.025em;color:#173d68;margin:7px 0 10px;overflow-wrap:anywhere}
.cb-subtopic-reading-heading .cb-lead{font-size:1rem;line-height:1.65;color:#61738b;margin:0}
.cb-subtopic-bookmark{margin:0 0 14px}
.cb-subtopic-reading-panel .cb-notes-language-panel{margin:0 0 16px;min-height:0;padding:12px 14px;border-radius:11px}
.cb-subtopic-reading-panel .cb-study-content.cbln-reading-surface{width:100%;max-width:none;margin:0;padding:clamp(17px,2.5vw,28px);border:1px solid #e1eaf4;border-radius:13px;background:#fff;box-shadow:none}
.cb-subtopic-reading-panel .cb-study-content[hidden]{display:none!important}
.cb-subtopic-video-panel{padding:18px;border:1px solid #dce6f2;border-radius:15px;background:#fff;box-shadow:0 7px 24px rgba(26,55,94,.05)}
.cb-subtopic-section-label{margin-bottom:12px}
.cb-subtopic-section-label h2{font-size:1.12rem;line-height:1.4;color:#1c426f;margin:4px 0 0}
.cb-subtopic-video-panel .cb-video-frame{width:100%;max-width:900px;margin-inline:auto;overflow:hidden;border-radius:12px;background:#f3f6fb}
.cb-subtopic-video-panel .cb-video-frame iframe{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0}
.cb-subtopic-ask-panel{padding:19px 20px;border:1px solid #cfe0f3;border-radius:15px;background:linear-gradient(125deg,#eff6ff,#f7faff 65%,#f2f7ff);box-shadow:0 7px 22px rgba(26,55,94,.045)}
.cb-subtopic-ask-intro h2{font-size:1.15rem;color:#173d68;margin:4px 0 5px}
.cb-subtopic-ask-intro p{font-size:.9rem;line-height:1.55;color:#596f89;margin:0 0 12px}
.cb-subtopic-ask-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:start}
.cb-subtopic-ask-form input[type=text],.cb-subtopic-ask-form textarea{width:100%;min-width:0;margin:0;padding:12px 13px;border:1px solid #d6e2f0;border-radius:9px;background:#fff;color:#243b57;font:inherit;font-size:.9rem;line-height:1.5;box-shadow:none}
.cb-subtopic-ask-form input[type=text]{grid-column:1/-1;min-height:44px}
.cb-subtopic-ask-form textarea{grid-column:1/-1;min-height:88px;resize:vertical}
.cb-subtopic-ask-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 19px;border:0;border-radius:9px;background:#175cb8;color:#fff;text-decoration:none;font-size:.9rem;font-weight:800;cursor:pointer}
.cb-subtopic-ask-button:hover{background:#104b98;color:#fff}
.cb-subtopic-ask-login{grid-column:1/-1}
.cb-subtopic-login-prompt{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.cb-subtopic-login-prompt p{margin:0;color:#596f89;font-size:.9rem}
@media(max-width:980px){
 .cb-subtopic-view-v2{grid-template-columns:minmax(210px,245px) minmax(0,1fr);gap:17px;width:calc(100% - 32px)}
 .cb-subtopic-search{grid-template-columns:minmax(0,1fr) 115px!important}
 .cb-subtopic-search>select{display:none!important}
 .cb-subtopic-search>button{grid-column:2}
}
@media(max-width:760px){
 .cb-subtopic-view-v2{grid-template-columns:minmax(0,1fr);grid-template-areas:"sidebar" "main";gap:13px;width:calc(100% - 26px);padding-top:17px}
 .cb-subtopic-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
 .cb-subtopic-nav-card{margin:0;padding:14px 12px}
 .cb-subtopic-current-topic{font-size:1rem;margin-bottom:12px}
 .cb-subtopic-link-list{max-height:260px;overflow:auto}
 .cb-subtopic-nav-link{font-size:.82rem;padding:9px}
 .cb-subtopic-main-column{gap:12px}
 .cb-subtopic-reading-panel{padding:17px 14px}
 .cb-subtopic-reading-panel .cb-study-content.cbln-reading-surface{padding:17px 14px}
 .cb-subtopic-search{grid-template-columns:minmax(0,1fr) 100px!important;gap:7px!important}
 .cb-subtopic-search>input[type=search]{font-size:13px!important}
 .cb-subtopic-video-panel,.cb-subtopic-ask-panel{padding:15px}
}
@media(max-width:520px){
 .cb-subtopic-sidebar{grid-template-columns:minmax(0,1fr)}
 .cb-subtopic-nav-card{padding:13px}
 .cb-subtopic-chapter-card{border-top-width:1px}
 .cb-subtopic-search-panel{padding:8px}
 .cb-subtopic-search{grid-template-columns:minmax(0,1fr) 86px!important}
 .cb-subtopic-search>input[type=search]{height:45px!important;padding-left:35px!important}
 .cb-subtopic-search>select{display:none!important}
 .cb-subtopic-search>button{height:45px!important;padding:0 9px!important;font-size:12px!important}
 .cb-subtopic-search-icon{left:10px;font-size:20px}
 .cb-subtopic-ask-form{grid-template-columns:minmax(0,1fr)}
 .cb-subtopic-ask-form .cb-subtopic-ask-button{width:100%}
 .cb-subtopic-login-prompt{align-items:stretch;flex-direction:column}
 .cb-subtopic-login-prompt .cb-subtopic-ask-button{width:100%}
}
