/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 28px 40px 48px 40px;
    flex: 1;
    position: relative;
    background: var(--paper-white);
    margin: 12px 16px 16px 16px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.01), 0 8px 30px rgba(0, 0, 0, 0.03);
    border-radius: 0px;
}

.page-content::before {
    content: '— 14 —';
    position: absolute;
    bottom: 16px;
    right: 36px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--ink-muted);
    letter-spacing: 2px;
    opacity: 0.5;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--ink-muted);
    margin-bottom: 16px;
    font-style: italic;
    border-bottom: 1px solid var(--rule-color);
    padding-bottom: 14px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--accent-burgundy);
    text-decoration: none;
    font-style: normal;
    font-weight: 600;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: var(--ink-secondary);
}

/* ===== CHAPTER HEADER ===== */
.chapter-header {
    margin-bottom: 28px;
    border-bottom: 2px solid var(--spine-gold);
    padding-bottom: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.chapter-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--ink-primary);
    line-height: 1.2;
}
.chapter-header h1 small {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--ink-secondary);
    margin-top: 2px;
    font-style: italic;
    letter-spacing: 0.2px;
}

.chapter-header .section-tag {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--paper-white);
    background: var(--accent-burgundy);
    padding: 4px 18px;
    letter-spacing: 0.8px;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== SECTION HEADING ===== */
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink-primary);
    margin: 24px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--rule-color);
}

.section-heading .sub {
    font-weight: 400;
    font-size: 18px;
    color: var(--ink-secondary);
    font-style: italic;
}
        
/* ===== TABLE ===== */
.table-wrap, .additional-info {
    overflow-x: auto;
    margin: 16px 0 20px 0;
    border: 1px solid var(--rule-color);
    background: var(--paper-white);
}

.guideline-table, .additional-info table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Merriweather', serif;
    min-width: 700px;
}

.guideline-table thead th, .additional-info table tbody tr:first-child td {
    background: var(--spine-bg);
    color: var(--spine-text);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 14px;
    text-align: left;
    letter-spacing: 0.3px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.guideline-table thead th:last-child {
    border-right: none;
}

.guideline-table tbody td, .additional-info table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--rule-color);
    border-right: 1px solid var(--rule-color);
    vertical-align: top;
    line-height: 1.6;
    color: var(--ink-secondary);
    font-weight: 300;
}

.guideline-table tbody td:last-child {
    border-right: none;
}

.guideline-table tbody tr:last-child td {
    border-bottom: none;
}

.guideline-table tbody tr:hover {
    background: rgba(180, 150, 90, 0.04);
}

.guideline-table tbody td:first-child {
    font-weight: 600;
    color: var(--ink-primary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
}

.guideline-table tbody td strong {
    color: var(--ink-primary);
    font-weight: 700;
}

.guideline-table .comments-cell {
    font-size: 13px;
    line-height: 1.7;
    max-width: 280px;
}

/* ===== ANNEXURE REF ===== */
.annexure-ref {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: var(--ink-secondary);
    margin: 12px 0 20px 0;
    padding: 10px 16px;
    background: var(--paper-bg);
    border-left: 3px solid var(--spine-gold);
    font-style: italic;
}
.annexure-ref strong {
    color: var(--ink-primary);
    font-weight: 700;
}

/* ===== ADDITIONAL INFO ===== */
.info-block {
    margin: 28px 0 20px 0;
    padding: 20px 24px;
    background: var(--paper-bg);
    border-left: 4px solid var(--accent-blue);
}

.info-block h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-block h3 i {
    color: var(--accent-blue);
}

.info-block ul, .info-block ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-block ul li, .info-block ol li {
    font-family: 'Merriweather', serif;
    line-height: 1.7;
    color: var(--ink-secondary);
    padding: 6px 0 6px 28px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.info-block ul li:last-child, .info-block ol li:last-child {
    border-bottom: none;
}

.info-block ul li::before, .info-block ol li::before {
    content: '◆';
    position: absolute;
    left: 4px;
    top: 6px;
    color: var(--spine-gold);
    font-size: 12px;
}

.info-block ul li strong, .info-block ol li strong {
    color: var(--ink-primary);
    font-weight: 700;
}

/* ===== REFERENCES ===== */
.refs-block {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 2px solid var(--spine-gold);
}

.refs-block h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.refs-block h3 i {
    color: var(--spine-gold);
}

.refs-block .ref-item {
    font-family: 'Merriweather', serif;
    line-height: 1.7;
    color: var(--ink-secondary);
    padding: 6px 0 6px 28px;
    position: relative;
    font-weight: 300;
}

.refs-block .ref-item strong {
    color: var(--ink-primary);
    font-weight: 700;
}

.refs-block .fig-note {
    margin-top: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-style: italic;
    color: var(--ink-muted);
    padding: 10px 16px;
    background: var(--paper-bg);
    border-left: 3px solid var(--spine-gold);
}

/* ===== FOOTER ===== */
.page-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--rule-color);
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--ink-muted);
    text-align: center;
}

.page-footer strong {
    color: var(--ink-secondary);
    font-weight: 600;
}

/* ===== OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .guideline-table {
        font-size: 12.5px;
        min-width: 650px;
    }
    .guideline-table thead th,
    .guideline-table tbody td {
        padding: 10px 12px;
    }
}

@media (max-width: 820px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .header {
        padding: 0 16px;
    }
    .header-search {
        min-width: 120px;
        flex: 1;
    }
    .header-search input {
        padding: 5px 8px;
        font-size: 13px;
    }
    .header-right .chapter-badge {
        display: none;
    }
    .page-content {
        padding: 18px 14px 40px 14px;
        margin: 8px;
    }
    .page-content::before {
        right: 16px;
        bottom: 12px;
        font-size: 12px;
    }
    .chapter-header h1 {
        font-size: 26px;
    }
    .chapter-header h1 small {
        font-size: 14px;
    }
    .section-heading {
        font-size: 20px;
    }
    .section-heading .sub {
        font-size: 16px;
    }
    .guideline-table {
        font-size: 12px;
        min-width: 600px;
    }
    .guideline-table thead th,
    .guideline-table tbody td {
        padding: 8px 10px;
    }
    .info-block {
        padding: 16px 16px;
    }
    .info-block ul li {
        font-size: 13.5px;
        padding: 5px 0 5px 24px;
    }
    .refs-block .ref-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 10px;
        gap: 6px;
        height: 58px;
    }
    .header-search {
        min-width: 70px;
        padding: 0 8px;
    }
    .header-search input {
        font-size: 12px;
        padding: 4px 6px;
    }
    .header-search input::placeholder {
        font-size: 11px;
    }
    .page-content {
        padding: 12px 10px 36px 10px;
        margin: 4px;
    }
    .chapter-header h1 {
        font-size: 20px;
    }
    .chapter-header h1 small {
        font-size: 12px;
    }
    .chapter-header .section-tag {
        font-size: 11px;
        padding: 2px 12px;
    }
    .section-heading {
        font-size: 17px;
    }
    .section-heading .sub {
        font-size: 14px;
    }
    .guideline-table {
        font-size: 11px;
        min-width: 480px;
    }
    .guideline-table thead th {
        font-size: 12px;
        padding: 6px 8px;
    }
    .guideline-table tbody td {
        padding: 6px 8px;
        font-size: 11px;
    }
    .guideline-table tbody td:first-child {
        font-size: 12px;
    }
    .info-block {
        padding: 12px 12px;
    }
    .info-block h3 {
        font-size: 17px;
    }
    .info-block ul li {
        font-size: 12.5px;
        padding: 4px 0 4px 20px;
    }
    .info-block ul li::before {
        font-size: 10px;
        top: 4px;
    }
    .refs-block h3 {
        font-size: 17px;
    }
    .refs-block .ref-item {
        font-size: 12px;
        padding: 4px 0 4px 22px;
    }
    .annexure-ref {
        font-size: 14px;
        padding: 8px 12px;
    }
    .breadcrumb {
        font-size: 13px;
        padding-bottom: 10px;
    }
    .sidebar {
        width: 100%;
        max-width: 300px;
    }
    .sidebar-brand .logo span {
        font-size: 20px;
    }
    .sidebar-nav a {
        font-size: 15px;
        padding: 6px 14px;
    }
    .refs-block .fig-note {
        font-size: 14px;
    }
    .avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* ===== OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active {
    display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.page-content {
    animation: fadeIn 0.5s ease forwards;
}