/* CBSE Notes pages: based on the CV Shiksha solutions theme. */
:root {
    --brand-purple: rgb(60, 8, 88);
    --sidebar-purple: rgb(18, 9, 76);
    --ink: #25212a;
    --page-width: 900px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}
body {
    margin: 0;
    position: relative;
    z-index: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: Arial, sans-serif;
    line-height: 1.72;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url('../assets/common/ChatGPT\ Image\ May\ 29,\ 2025,\ 11_27_18\ AM.png') center / cover no-repeat;
    transform: translateZ(0);
}
header {
    background: var(--brand-purple);
    padding: 10px;
    text-align: center;
    color: #fff;
    font-size: 50px;
    overflow: auto;
    border-bottom: 2px solid #000;
}
header img {
    height: 60px;
    float: left;
}
header a {
    color: #fff;
    text-decoration: none;
}
nav:not(.notes-toc) {
    background: var(--brand-purple);
    padding: 10px;
    text-align: center;
    color: #fff;
}
.notes-main {
    width: min(var(--page-width), calc(100% - 40px));
    margin: 30px auto 56px;
}
.notes-content {
    padding: clamp(24px, 5vw, 54px);
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(60,8,88,.2);
    border-top: 6px solid var(--brand-purple);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(30,15,40,.12);
}
.notes-content h1 {
    margin: 0 0 1.6em;
    color: var(--brand-purple);
    font: 700 clamp(1.8rem, 4vw, 2.35rem)/1.25 Verdana, sans-serif;
    text-align: center;
}
.notes-content h2 {
    margin: 2.4em 0 1em;
    padding: .45em .7em;
    color: #fff;
    background: var(--brand-purple);
    border-radius: 4px;
    font: 600 1.3rem/1.4 Verdana, sans-serif;
    scroll-margin-top: 18px;
}
.notes-content h3 {
    margin: 1.8em 0 .55em;
    color: var(--brand-purple);
    font: 700 1.12rem/1.45 Verdana, sans-serif;
    border-bottom: 1px solid #ded5e5;
    padding-bottom: .3em;
    scroll-margin-top: 18px;
}
.notes-content p, .notes-content li {
    font-size: 1.04rem;
}
.notes-content p {
    margin: .75em 0;
}
.notes-content strong {
    color: #37104c;
}
.notes-content ul {
    padding-left: 1.5em;
}
.notes-content li {
    margin: .35em 0;
    padding-left: .15em;
}
.notes-content hr {
    border: 0;
    border-top: 1px solid #ded5e5;
    margin: 2.3em 0;
}
.notes-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: .98rem;
}
.notes-content th, .notes-content td {
    padding: 10px 12px;
    border: 1px solid #d8cfe0;
    text-align: left;
    vertical-align: top;
}
.notes-content th {
    color: #fff;
    background: var(--brand-purple);
}
.notes-content tr:nth-child(even) td {
    background: #f7f3f9;
}
.notes-content code {
    padding: .1em .35em;
    border-radius: 3px;
    background: #f2edf5;
}
#hamburger {
    position: fixed;
    top: 76px;
    left: 15px;
    z-index: 1001;
    padding: 5px 10px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: rgba(18,9,76,.88);
    font-size: 28px;
    cursor: pointer;
}
#sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: 0;
    color: white;
    background: var(--sidebar-purple);
    transition: left .3s ease;
}
#sidebar.is-open {
    left: 0;
}
.sidebar-top {
    position: relative;
    flex: 0 0 auto;
    padding-top: 50px;
    background: var(--sidebar-purple);
}
.sidebar-header {
    padding: 12px 58px 12px 20px;
    border-bottom: 1px solid #444;
    font-size: 20px;
}
#close-btn {
    position: absolute;
    top: 4px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 5px;
    color: white;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}
#close-btn:hover, #close-btn:focus-visible {
    background: rgba(255,255,255,.14);
}
.sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #76658e var(--sidebar-purple);
}
.notes-toc {
    padding: 8px 0 18px;
    text-align: left;
}
.sidebar-groups, .dropdown {
    list-style: none;
    margin: 0;
    padding: 0 12px;
}
.sidebar-group {
    margin: 3px 0;
    padding: 0;
}
.dropdown-toggle, .sidebar-direct-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px;
    border: 0;
    border-radius: 4px;
    color: white;
    background: transparent;
    font: 500 .94rem/1.4 Arial,sans-serif;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.dropdown-toggle:hover, .dropdown-toggle:focus-visible, .sidebar-direct-link:hover, .sidebar-direct-link:focus-visible, .dropdown a:hover, .dropdown a:focus-visible {
    background: rgba(255,255,255,.14);
    outline: none;
}
.arrow {
    margin-left: 10px;
    transition: transform .2s ease;
}
.dropdown-toggle.open .arrow {
    transform: rotate(180deg);
}
.dropdown {
    padding: 0 0 4px 13px;
}
.dropdown[hidden] {
    display: none;
}
.dropdown a {
    display: block;
    padding: 7px 9px;
    border-radius: 4px;
    color: #eee9f2;
    font-size: .88rem;
    line-height: 1.38;
    text-decoration: none;
}
footer {
    padding: 10px;
    color: #fff;
    text-align: center;
    background: var(--brand-purple);
    border-top: 2px solid #000;
}
footer p {
    margin: 0;
}
@media (max-width: 700px) {
    .notes-main {
        width: calc(100% - 20px);
        margin: 18px auto 32px;
    }
    .notes-content {
        padding: 24px 18px;
    }
    .notes-content h1 {
        text-align: left;
    }
    .notes-content p, .notes-content li {
        font-size: 1.125rem;
    }
    .notes-content table {
        display: block;
        overflow-x: auto;
        font-size: 1.125rem;
    }
    #hamburger {
        top: 72px;
    }
}
/* Definition treatment: soft callout (Option 1). */
.definition-callout {
    margin: 1.2em 0;
    padding: 15px 18px;
    border-left: 4px solid var(--brand-purple);
    border-radius: 4px;
    background: #f5eff8;
}
.definition-callout p {
    margin: 0;
    color: #302a34;
}
.definition-label {
    display: block;
    margin-bottom: 5px;
    color: #76518a;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
