@font-face {
    font-family: 'Times New Roman';
    src: url('fonts/times.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Times New Roman';
    src: url('fonts/timesbd.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Times New Roman';
    src: url('fonts/timesi.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Times New Roman';
    src: url('fonts/timesbi.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
   ---------------------------------------------------- */
:root {
    /* Color Palette */
    --primary-navy: #0f172a;
    /* Deep slate/navy for header & main titles */
    --primary-blue: #1e3a8a;
    /* Law-firm blue */
    --accent-blue: #2563eb;
    /* Interactive blue for links, buttons, active states */
    --accent-light: #eff6ff;
    /* Very light blue background */
    --bg-app: #f1f5f9;
    /* Light slate gray for app background */
    --bg-panel: #ffffff;
    /* Clean white for panels and cards */
    --text-dark: #1e293b;
    /* Near-black for maximum readability */
    --text-muted: #64748b;
    /* Neutral gray for secondary text/helpers */
    --border-light: #e2e8f0;
    /* Border color for standard structures */
    --border-focus: #3b82f6;
    /* Focus outline blue */

    /* Status Colors */
    --success: #10b981;
    /* Emerald green for completed states */
    --success-bg: #ecfdf5;
    /* Light green background */
    --danger: #ef4444;
    /* Red for errors/invalid states */
    --danger-bg: #fef2f2;
    /* Light red background */

    /* Layout Dimensions */
    --header-height: 70px;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Times New Roman', Times, serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-a4: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}



/* ----------------------------------------------------
   BASE STYLES & RESET
   ---------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-app);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar Styles for WebKit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ----------------------------------------------------
   HEADER SECTION
   ---------------------------------------------------- */
.app-header {
    height: var(--header-height);
    background-color: var(--primary-navy);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    position: relative;
    border-bottom: 2px solid var(--primary-blue);
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.15);
    padding: 8px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.poc-badge {
    background-color: var(--accent-blue);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.header-template-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.template-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 500;
}

.template-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    background-color: #2e7d32;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #1b5e20;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.25);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-danger {
    background-color: transparent;
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ffffff;
    border-color: var(--danger);
}

/* ----------------------------------------------------
   MAIN APP LAYOUT
   ---------------------------------------------------- */
.app-container {
    flex: 1;
    display: flex;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

/* ----------------------------------------------------
   LEFT PANEL (Live Preview)
   ---------------------------------------------------- */
.left-panel {
    flex: 0 0 60%;
    width: 60%;
    display: flex;
    flex-direction: column;
    background-color: #cbd5e1;
    /* Margins container background for paper contrast */
    height: 100%;
    border-right: 1px solid var(--border-light);
}

.left-panel .panel-header {
    height: 50px;
    background-color: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.left-panel .panel-header h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: -0.01em;
}

.zoom-indicator {
    background-color: #e2e8f0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
}

.preview-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ----------------------------------------------------
   A4 DOCUMENT PREVIEW
   ---------------------------------------------------- */
.a4-document {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    user-select: text;
}

.a4-page {
    width: 210mm;
    height: 297mm;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    /* Visible Word-like shadow */
    padding: 30mm 20mm;
    /* Formal legal margins */
    box-sizing: border-box;
    font-family: var(--font-serif);
    color: #000000;
    line-height: 1.5;
    /* Line spacing 1.5 */
    font-weight: normal;
    font-size: 14.5px;
    text-align: justify;
    position: relative;
    overflow: hidden;
    page-break-after: auto !important;
    page-break-inside: avoid !important;
    break-after: auto;
}

.a4-page:not(:last-child) {
    page-break-after: always !important;
    break-after: page;
}

/* Page 1 Right Half Container */
.page-1-right-column {
    display: block;
}

.page-1 .court-header-right {
    position: absolute;
    top: 20mm;
    left: 105mm;
    width: 90mm;
    text-align: center;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.3;
    font-size: 14px;
}

.page-1 .case-number-container {
    position: relative;
    width: 100%;
    height: 15px;
    margin-top: 15px;
    font-size: 14.5px;
    font-weight: normal;
    text-transform: none;
}

.page-1 .case-type-left {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
}

.page-1 .case-number-right {
    position: absolute;
    left: 40mm;
    top: 0;
    white-space: nowrap;
}



.page-1 .vakalat-nama-center-section {
    display: block;
}

.page-1 .vakalat-title {
    position: absolute;
    top: 88mm;
    left: 120mm;
    width: 75mm;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    margin: 0;
}

.page-1 .filed-behalf-section {
    position: absolute;
    top: 98mm;
    left: 120mm;
    width: 75mm;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.page-1 .bold-party-title {
    font-weight: bold;
    margin-top: 4px;
}

.page-1 .advocate-signature-label-p1 {
    position: absolute;
    top: 125mm;
    left: 120mm;
    width: 75mm;
    text-align: right;
    font-size: 14px;
    margin: 0;
}


.page-1 .accepted-block {
    position: absolute;
    top: 112mm;
    left: 120mm;
    width: 75mm;
    text-align: left;
    font-size: 14px;
    margin: 0;
}

.page-1 .service-address-block {
    position: absolute;
    top: 210mm;
    left: 120mm;
    width: 80mm;
    text-align: center;
    margin: 0;
    font-size: 14px;
    line-height: 1.15;
}

.page-1 .service-title {
    text-decoration: underline;
    font-weight: bold;
    margin-bottom: 5px;
}

.page-1 .advocate-name-p1-bold {
    font-weight: bold;
}

/* Page 2 Styles */
.vakalat-title-page2 {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
}

.court-header-center-page2 {
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.25;
}

.case-number-center-page2 {
    text-align: center;
    font-weight: normal;
    margin-bottom: 35px;
    font-size: 14.5px;
}

.parties-section-page2 {
    margin-bottom: 40px;
    width: 100%;
}

.party-row-page2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 14px;
}

.party-name-val {
    flex: 1;
    font-weight: normal;
    /* Normal petitioner/defendant names */
    text-align: left;
}

.party-role-label {
    width: 150px;
    min-width: 150px;
    font-weight: normal;
    /* Normal, non-bold role label */
    text-align: right;
}

.versus-row-page2 {
    text-align: center;
    margin: 14px 0;
    font-style: italic;
    font-weight: normal;
}

.main-legal-text-page2 {
    text-align: justify;
    text-indent: 0.5in;
    margin-bottom: 70px;
    line-height: 1.5;
    /* Line spacing 1.5 */
    font-size: 14.5px;
    letter-spacing: -0.012em;
    /* Custom letter compress to match wrap breaks exactly */
}

#doc-advocates-list {
    font-weight: bold;
    /* Bold advocates names */
}

.signature-row-page2 {
    text-align: right;
    padding-right: 25px;
    font-size: 14.5px;
    margin-bottom: 45px;
}

.witness-row-page2 {
    text-align: left;
    font-size: 14.5px;
    margin-bottom: 45px;
}

.advocate-row-page2 {
    text-align: right;
    padding-right: 25px;
    font-size: 14.5px;
    margin-bottom: 15px;
}

/* Placeholder Spans Styling */
.doc-placeholder {
    color: var(--accent-blue);
    background-color: var(--accent-light);
    padding: 1px 4px;
    border-radius: 3px;
    border-bottom: 1px dashed var(--accent-blue);
    font-style: italic;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.doc-placeholder.filled {
    color: #000000 !important;
    background-color: transparent !important;
    border-bottom: none !important;
    padding: 0 !important;
    font-style: normal !important;
}

/* Case Number Placeholder blank spacing */
.case-number-placeholder:not(.filled) {
    display: inline-block;
    width: 80px;
    color: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

/* ----------------------------------------------------
   RIGHT PANEL (Questionnaire & Progress)
   ---------------------------------------------------- */
.right-panel {
    flex: 0 0 40%;
    width: 40%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-panel);
    height: 100%;
    overflow-y: auto;
    position: relative;
}

/* Progress Tracker Card */
.progress-card {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-light);
    padding: 24px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.percentage-badge {
    background-color: var(--primary-navy);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    transition: background-color var(--transition-normal);
}

.percentage-badge.completed {
    background-color: var(--success);
}

.progress-bar-wrapper {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), #3b82f6);
    border-radius: 30px;
    transition: width var(--transition-normal);
}

.progress-sections-checklist {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.checklist-item:hover {
    color: var(--primary-navy);
}

.checklist-item.active {
    color: var(--accent-blue);
}

.checklist-item .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: var(--transition-fast);
}

.checklist-item.active .indicator {
    background-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.checklist-item.completed .indicator {
    background-color: var(--success);
}

.checklist-item.completed {
    color: var(--success);
}

/* ----------------------------------------------------
   FORM / QUESTIONNAIRE DESIGN
   ---------------------------------------------------- */
.questionnaire-form {
    padding: 30px 24px 60px 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    background-color: #ffffff;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
}

.form-section:focus-within {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.form-section.completed {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
}

.form-section legend {
    float: left;
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-num {
    background-color: var(--accent-blue);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.form-section.completed .section-num {
    background-color: var(--success);
}

.form-section legend h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.section-fields {
    clear: both;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group.required label::after {
    content: " *";
    color: var(--danger);
    font-weight: bold;
}

.form-control {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius-md);
    background-color: #ffffff;
    color: var(--text-dark);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea.form-control {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Form Validation States */
.error-msg {
    display: none;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--danger);
    margin-top: -2px;
}

/* Only display validation highlights after user interaction (the touched class) */
.form-control.touched.is-invalid {
    border-color: var(--danger);
    background-color: var(--danger-bg);
}

.form-control.touched.is-invalid+.error-msg {
    display: block;
}

.form-control.touched.is-valid {
    border-color: var(--success);
}

.uppercase-input {
    text-transform: uppercase;
}

/* ----------------------------------------------------
   RESPONSIVENESS & MOBILE toggles
   ---------------------------------------------------- */
/* Mobile Tab Navigation Styles */
.mobile-tabs-container {
    display: none;
}

@media (max-width: 991px) {
    .mobile-tabs-container {
        display: flex;
        background-color: var(--primary-navy);
        border-bottom: 2.5px solid var(--primary-blue);
        height: 55px;
        position: sticky;
        top: 0;
        z-index: 90;
    }

    .mobile-tab {
        flex: 1;
        background: transparent;
        border: none;
        color: #94a3b8;
        font-family: var(--font-sans);
        font-size: 0.85rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: var(--transition-fast);
        border-bottom: 3.5px solid transparent;
    }

    .mobile-tab svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    .mobile-tab:hover {
        color: #ffffff;
    }

    .mobile-tab.active {
        color: #ffffff;
        border-bottom-color: var(--accent-blue);
        background-color: rgba(37, 99, 235, 0.08);
    }

    /* Toggle active panel layouts */
    .app-container {
        flex-direction: row;
        position: relative;
        height: calc(100vh - var(--header-height) - 55px);
    }

    .left-panel {
        flex: 0 0 100% !important;
        width: 100% !important;
        display: none;
        height: 100%;
        border-right: none;
    }

    .right-panel {
        flex: 0 0 100% !important;
        width: 100% !important;
        display: none;
        height: 100%;
    }

    /* Control visibility of panels in mobile view */
    .app-container.show-form .right-panel {
        display: flex !important;
    }

    .app-container.show-preview .left-panel {
        display: flex !important;
    }

    /* Scale down the preview document to fit mobile screens so users can pinch-to-zoom */
    .preview-scroll-container {
        padding: 20px 10px;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .a4-document {
        zoom: 0.7;
    }

    .a4-page {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 0 15px;
        height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .header-actions .btn {
        flex: 1 1 45%;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .form-row,
    .form-row-three {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .a4-document {
        zoom: 0.42;
    }
}

/* Remove shadows, borders, and margins during rendering to ensure exact fit and no pagination artifacts */
.is-exporting .a4-page {
    box-shadow: none !important;
    margin: 0 !important;
    border: none !important;
}

/* Remove interactive placeholder highlight during export */
.is-exporting .doc-placeholder:not(.filled) {
    color: #000000 !important;
    background-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Task 5: Export-only CSS. Remove other helper effects, transitions, animations and placeholder background styles */
.is-exporting * {
    transition: none !important;
    animation: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.is-exporting .doc-placeholder {
    border-bottom: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}


/* ----------------------------------------------------
   PRINT MEDIA STYLES
   ---------------------------------------------------- */
@media print {

    /* Hide all workspace framework wrappers */
    body,
    html {
        background-color: #ffffff !important;
        color: #000000 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .app-header,
    .left-panel .panel-header,
    .right-panel,
    .zoom-indicator,
    .mobile-tabs-container {
        display: none !important;
    }

    .app-container {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    .left-panel {
        width: 100% !important;
        flex: none !important;
        background-color: #ffffff !important;
        height: auto !important;
        overflow: visible !important;
        border: none !important;
    }

    .preview-scroll-container {
        padding: 0 !important;
        overflow: visible !important;
        display: block !important;
        height: auto !important;
    }

    .a4-document {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        background-color: #ffffff !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .a4-page {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 30mm 20mm !important;
        width: 210mm !important;
        height: 297mm !important;

        page-break-after: auto !important;
        page-break-before: auto !important;
        page-break-inside: avoid !important;
    }

    .a4-page:not(:last-child) {
        page-break-after: always !important;
    }

    .a4-page:last-child {
        page-break-after: auto !important;
    }

    /* Ensure the document spans multiple pages naturally when printing */
    .doc-para {
        orphans: 3;
        widows: 3;
    }
}