/* ==========================================================================
   Mah'eats — Case Study Sidebar Layout
   Page-specific: scoped to mah'eats.html only. Mirrors the format
   built for learnMarathi.html (fixed logo + fixed sidebar with
   scroll-spy, flattened type, no thin divider lines, wide content column).
   ========================================================================== */

/* Revert this page's old cream background/body padding so it matches the
   plain white format used elsewhere. */
.mahi-page.case-study-page {
    background-color: #ffffff;
    padding-left: 0;
    padding-right: 0;
}

/* ── Logo / top nav ── */
.mahi-page .top-nav {
    position: fixed;
    top: 0;
    left: 0;
}

.mahi-page .about-link {
    color: #000000;
}

.mr-layout {
    padding-top: 140px;
}

/* ── Sidebar ── */
.mr-sidebar {
    position: fixed;
    top: 140px;
    left: var(--container-padding);
    width: 220px;
    z-index: 15;
}

.mr-content {
    max-width: 960px;
    margin-left: calc(var(--container-padding) + 220px + 64px);
    padding-right: 8vw;
}

.mr-sidebar-nav {
    padding-top: 4px;
}

.mr-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.mr-sidebar-item {
    position: relative;
}

.mr-sidebar-link {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
}

.mr-sidebar-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    background: #ffffff;
    margin-top: 3px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.mr-sidebar-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
    line-height: 1.5;
    transition: color 0.25s ease;
}

.mr-sidebar-link:hover .mr-sidebar-label {
    color: rgba(0, 0, 0, 0.7);
}

.mr-sidebar-item.is-active .mr-sidebar-dot {
    background: #000000;
    border-color: #000000;
}

.mr-sidebar-item.is-active .mr-sidebar-label {
    color: #000000;
}

/* ── Page title ── */
.mr-page-title {
    text-align: center;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 500;
    color: #000000;
    margin: 0 auto 32px;
}

/* ── Top metadata row ── */
.mr-meta-row {
    display: grid;
    grid-template-columns: repeat(2, auto);
    column-gap: 88px;
    width: fit-content;
    margin: 0 auto 40px;
    text-align: center;
}

.mr-meta-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #000000;
    opacity: 0.4;
    margin-bottom: 8px;
}

.mr-meta-value {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
}

/* ── Hero video ── */
.mr-hero-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    border-radius: 16px;
    margin: 0 auto 56px;
}

/* ── Sections nested in the content column: drop the full-bleed
   padding/max-width and thin divider lines the shared classes assume
   for a sidebar-less layout ── */
.mr-content .marathi-section {
    max-width: none;
    margin: 0;
    padding: 64px 0;
    scroll-margin-top: 40px;
    border-top: none;
}

.mr-content .marathi-section:first-child {
    padding-top: 0;
}

.mr-content .marathi-body,
.mr-content .marathi-decisions {
    max-width: 820px;
}

/* ── Section headers: regular weight, smaller, number matching title size ── */
.mr-content .marathi-section-title {
    font-weight: 400;
    font-size: clamp(18px, 2.2vw, 26px);
}

.mr-content .marathi-section-number {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 400;
}

/* ── Flatten every bold/semi-bold weight on this page to regular ── */
.mr-content .marathi-lead,
.mr-content .marathi-body strong,
.mr-content .marathi-decision-num,
.mr-content .marathi-decision-content strong,
.mr-content .marathi-outcome-num,
.mr-content .cs-table-label {
    font-weight: 400;
}

/* ── Responsive: sidebar collapses into a horizontal scrollable tab bar ── */
@media (max-width: 900px) {
    .mr-layout {
        padding: 120px 24px 0;
    }

    .mr-sidebar {
        position: sticky;
        top: 0;
        left: auto;
        width: auto;
        z-index: 20;
        background: #ffffff;
        margin: 0 -24px 32px;
        padding: 14px 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mr-content {
        max-width: none;
        margin-left: 0;
        padding-right: 0;
    }

    .mr-sidebar-list {
        flex-direction: row;
        gap: 28px;
    }

    .mr-sidebar-item {
        flex: 0 0 auto;
    }

    .mr-sidebar-link {
        align-items: center;
    }

    .mr-sidebar-label {
        white-space: nowrap;
    }

    .mr-content .marathi-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .mr-layout {
        padding: 100px 20px 0;
    }

    .mr-meta-row {
        column-gap: 40px;
    }
}
