/* =====================================================
       ROOT COLOR VARIABLES
       ===================================================== */
    :root {
        /* Light mode colors */
        --bg-primary: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        --bg-secondary: rgba(255, 255, 255, 0.9);
        --bg-tertiary: rgba(255, 255, 255, 0.95);
        --bg-card: rgba(255, 255, 255, 0.8);
        --text-primary: #333;
        --text-secondary: #666;
        --text-light: rgba(255, 255, 255, 0.7);
        --accent-primary: #2c5aa0;
        --accent-secondary: #1e3d72;
        --accent-gradient: linear-gradient(45deg, #2c5aa0, #1e3d72);
        --border-color: rgba(255, 255, 255, 0.2);
        --border-dark: rgba(0, 0, 0, 0.1);
        --shadow-light: 0 8px 32px rgba(0,0,0,0.1);
        --shadow-medium: 0 12px 35px rgba(0,0,0,0.25);
        --shadow-accent: 0 4px 15px rgba(44, 90, 160, 0.3);
        --table-header-bg: #2c5aa0;
        --table-border: #e0e0e0;
        --link-hover: #1e3d72;
		--shadow-green: 0 4px 15px rgba(40, 167, 69, 0.2);
        
        /* Inverted Button - Blue Border with White/Light Gradient Inside */
        --inverted-bg-gradient: linear-gradient(45deg, #ffffff, #f0f4f8);
        --inverted-text-color: #2c5aa0;
        --inverted-shadow: rgba(44, 90, 160, 0.2);
        --inverted-shadow-hover: rgba(44, 90, 160, 0.4);
    }

    @media (prefers-color-scheme: dark) {
        :root {
            /* Dark mode colors */
            --bg-primary: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            --bg-secondary: rgba(40, 40, 40, 0.95);
            --bg-tertiary: rgba(50, 50, 50, 0.98);
            --bg-card: rgba(45, 45, 45, 0.9);
            --text-primary: #e0e0e0;
            --text-secondary: #b0b0b0;
            --text-light: rgba(255, 255, 255, 0.8);
            --accent-primary: #4a7bc8;
            --accent-secondary: #3d6bb0;
            --accent-gradient: linear-gradient(45deg, #4a7bc8, #3d6bb0);
            --border-color: rgba(255, 255, 255, 0.1);
            --border-dark: rgba(255, 255, 255, 0.05);
            --shadow-light: 0 8px 32px rgba(0,0,0,0.3);
            --shadow-medium: 0 12px 35px rgba(0,0,0,0.5);
            --shadow-accent: 0 4px 15px rgba(74, 123, 200, 0.4);
            --table-header-bg: #4a7bc8;
            --table-border: rgba(255, 255, 255, 0.2);
            --link-hover: #6b9be8;
			--shadow-green: 0 4px 15px rgba(50, 196, 86, 0.3);
            
            /* Inverted Button - Dark Mode */
            --inverted-bg-gradient: linear-gradient(45deg, #2a2a2a, #1a1a1a);
            --inverted-text-color: #6b9be8;
            --inverted-shadow: rgba(90, 141, 216, 0.2);
            --inverted-shadow-hover: rgba(90, 141, 216, 0.4);
        }
    }

    /* =====================================================
       GLOBAL STYLES
       ===================================================== */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: var(--bg-primary);
        min-height: 100vh;
        line-height: 1.6;
        color: var(--text-primary);
        transition: background 0.3s ease, color 0.3s ease;
    }

    /* =====================================================
       MAIN GRID LAYOUT
       ===================================================== */
    .container {
        display: grid;
        grid-template-areas: 
            "header header header"
            "left-menu main-content right-space"
            "footer footer footer"
            "attribution attribution attribution";
        grid-template-columns: 300px 1fr 300px;
        grid-template-rows: auto auto auto auto;
        min-height: 100vh;
        gap: 20px;
        padding: 0 20px 0 20px;
    }

    /* =====================================================
       TITLE BAR - 3 COLUMN GRID (DESKTOP)
       ===================================================== */
    .title-bar {
        grid-area: header;
        background: var(--accent-gradient);
        display: grid;
        grid-template-columns: 160px 1fr 160px;
        align-items: center;
        justify-items: center;
        box-shadow: var(--shadow-accent);
        margin: 0 -20px 0 -20px;
        padding: 10px 20px;
        gap: 15px;
    }

    .logo-container {
        justify-self: start;
        display: flex;
        align-items: flex-end;
    }

    .logo-container img {
        height: 150px;
        width: auto;
        max-width: 180px;
    }

    .title-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; 
        text-align: center;
    }

    .title-main {
        color: white;
        font-size: 2.8rem;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        letter-spacing: 2px;
        margin: 0 0 2px 0;
    }

    .title-sub {
        color: white;
        font-size: 1.3rem;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        letter-spacing: 1px;
        margin: 0;
    }

    .title-badge-area {
        justify-self: end;
        display: flex;
        align-items: flex-end;
        gap: 8px;
        height: 100%;
    }

    .badge {
        padding: 4px 12px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: bold;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .badge-original {
        background-color: white;
        color: var(--accent-secondary);
    }

    .badge-new {
        background-color: #28a745;
        color: white;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

    .badge-extended {
        background-color: #FF8C00;
        color: white;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

    .badge:hover {
        transform: scale(1.05);
        transition: all 0.2s ease;
    }

    /* =====================================================
       LEFT MENU
       ===================================================== */
    .menu-block {
        grid-area: left-menu;
        background: var(--bg-secondary);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        padding: 20px;
        box-shadow: var(--shadow-light);
        border: 1px solid var(--border-color);
        height: fit-content;
        align-self: start;
        position: sticky;
        top: 20px;
    }

    .menu-button {
        display: block;
        width: 100%;
        padding: 15px;
        background: var(--accent-gradient);
        color: white;
        text-decoration: none;
        border-radius: 12px;
        text-align: center;
        font-weight: bold;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        box-shadow: var(--shadow-accent);
        margin-bottom: 10px;
    }

    .menu-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--accent-primary);
        filter: brightness(1.1);
    }

    .menu-button:last-child {
        margin-bottom: 0;
    }

    /* =====================================================
       RIGHT MENU
       ===================================================== */
    .right-space {
        grid-area: right-space;
        z-index: 1;
        position: relative;
    }

    .right-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .right-menu .menu-button {
        margin-bottom: 0;
    }

    /* =====================================================
       MAIN CONTENT
       ===================================================== */
    .main-content {
        grid-area: main-content;
        background: var(--bg-secondary);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        padding: 30px;
        box-shadow: var(--shadow-light);
        border: 1px solid var(--border-color);
        z-index: 1;
        position: relative;
    }

    .content-text {
        color: var(--text-primary);
        font-size: 1rem;
        text-align: justify;
    }

    .content-text p {
        text-align: left;
        margin-bottom: 15px;
    }
	
	/*====== Like a button but text NEW ===============*/
	.textstyle-new {
		display: inline-block;
		padding: 0.1em 0.4em;
		margin-right: 15px;
		margin-left: 15px;
		border-radius: 0.5em;
		color: #fff;
		font-size: 0.65rem;
		background: #28a745; /*linear-gradient(45deg, #28a745, #20c997); /*#03AB14;*/
		text-align: center;
		vertical-align: middle;
		font-weight: bold;
	}

    /* =====================================================
       HEADINGS
       ===================================================== */
    .content-text h1 {
        color: var(--accent-primary);
        margin-bottom: 20px;
        font-size: 2rem;
        text-align: center;
    }

    .content-text h2 {
        color: var(--accent-primary);
        margin: 25px 0 15px 0;
        font-size: 1.6rem;
    }

    .content-text h3 {
        color: var(--accent-primary);
        margin: 20px 0 10px 0;
        font-size: 1.2rem;
    }

/* =====================================================
       TABLES - GENERAL CONTENT TABLES
       ===================================================== */
    .content-text table {
        width: auto;
        margin: 20px auto;
        border-collapse: collapse;
        background: var(--bg-card);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: var(--shadow-light);
        min-width: 300px;
    }

    .content-text th[colspan] {
        text-align: center;
        font-size: 1.1em;
        border-bottom: 0px;
    }

    .content-text td, .content-text th {
        padding: 10px;
        border-bottom: 1px solid var(--table-border);
        text-align: left;
        /*vertical-align: middle;*/
        white-space: nowrap;
    }

    .content-text th {
        background: var(--table-header-bg);
        color: white;
        font-weight: bold;
    }

   .content-text table.center-table td,
    .content-text table.center-table th {
        text-align: center;
    }

    .content-text td.text-center,
    .content-text th.text-center {
        text-align: center !important;
    }

    .content-text td.text-left,
    .content-text th.text-left {
        text-align: left;
    }
	


 /* =====================================================
   DOCUMENT TABLES - UNIFIED STYLE (NO SEPARATION)
   ===================================================== */
.content-text .header-table {
    width: 100% !important;
    border: 2px solid var(--table-border) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    border-collapse: collapse !important;
}

.content-text .header-table td,
.content-text .header-table td.text-center {
    text-align: center !important;
    border: 1px solid var(--table-border) !important;
    padding: 12px !important;
}

.content-text .document-table {
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 0 20px 0 !important;
    padding: 30px !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Remove visual separation between tables */
.content-text .header-table + .document-table {
    margin-top: 0 !important;
}

/* INNER TABLES - UPDATED FOR 1940s REPORT STYLE */
.content-text .inner-table {
    width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.content-text .inner-table td {
    border-bottom: none !important;
    padding: 5px 10px !important;
    white-space: normal !important;
}

.content-text .inner-table th {
    padding: 8px 10px !important;
    white-space: normal !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    font-weight: bold;
}
    /* =====================================================
       IMAGES
       ===================================================== */
    .content-text img {
        max-width: 100%;
        height: auto;
        margin: 20px 0;
        border-radius: 8px;
        box-shadow: var(--shadow-light);
    }

/* =====================================================
   IMAGES IN TABLES - TRANSPARENT BACKGROUND
   ===================================================== */

/* Images in header and inner tables - NO shadow, NO background */
.content-text .header-table img,
.content-text .inner-table img {
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0;
    margin: 0 !important;
}

    /* =====================================================
       LISTS
       ===================================================== */
    .content-text ul {
        margin: 10px 0 10px 20px;
    }

    .content-text li {
        margin-bottom: 5px;
		line-height:1.4; /*reduced from 1.6 -tighter line spacing */
        list-style-position: inside;
    }

    /* Hanging Indent with Number */
    .content-text li.hanging-indent {
        list-style: none;
        display: flex;
        gap: 0;
        margin: 5px 0;
        align-items: flex-start;
    }

    .content-text li.hanging-indent::before {
        content: "•";
        flex-shrink: 0;
        margin-right: 0.3em;
        color: var(--text-primary);
    }

    .content-text li.hanging-indent .number {
        flex-shrink: 0;
        margin-top: 0;
        margin-right: 0.5em;
    }

    .content-text li.hanging-indent .text {
        flex: 1;
        margin: 0;
    }

    /* Bullet Only (no number) */
    .content-text li.bullet-only {
        list-style: none;
        display: flex;
        gap: 0;
        margin: 5px 0;
        align-items: flex-start;
    }

    .content-text li.bullet-only::before {
        content: "•";
        flex-shrink: 0;
        margin-right: 0.5em;
        color: var(--text-primary);
    }

    .content-text li.bullet-only p {
        flex: 1;
        margin: 0;
    }

    /* =====================================================
       BLOCKQUOTES & CITATIONS
       ===================================================== */
    .content-text blockquote {
        margin: 5px 50px 20px 40px;
        padding-left: 20px;
        font-style: italic;
        /*border-left: 3px solid var(--accent-primary);*/
    }

    .content-text .blockquote-normal {
        margin: 5px 50px 20px 40px;
        padding-left: 20px;
        font-style: normal;
        color: var(--text-primary);
        text-align: left;
        /*border-left: 3px solid var(--accent-primary);*/
    }

    .content-text .citation {
        font-size: 0.85rem;
        font-style: italic;
        color: var(--text-secondary);
        text-align: left;
        margin: 10px 0;
        padding-left: 2.5em;
        text-indent: -2.5em;
        line-height: 1.4;
    }

    /* =====================================================
       LINKS & TEXT FORMATTING
       ===================================================== */
    .content-text a {
        color: var(--accent-primary);
        text-decoration: none;
        font-weight: bold;
    }

    .content-text a:hover {
        color: var(--link-hover);
        text-decoration: underline;
    }

    .content-text u {
        text-decoration: underline;
        color: var(--accent-primary);
        font-weight: bold;
    }

    .content-text font {
        color: var(--text-secondary);
    }

    .content-text sup {
        font-size: 0.65rem;
        color: var(--text-secondary);
        font-weight: normal;
    }

    .content-text sup a {
        color: var(--accent-primary);
        font-size: inherit;
    }

    .content-text sup a:hover {
        color: var(--link-hover);
    }

    .content-text hr {
        margin: 30px 0;
        border: none;
        height: 2px;
        background: var(--accent-gradient);
        border-radius: 1px;
    }

    .content-text center {
        text-align: center;
        margin: 20px 0;
    }

    /* =====================================================
       CONTENT BUTTONS - NORMAL STYLE
       ===================================================== */
    .content-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin: 40px 0 20px 0;
        flex-wrap: wrap;
    }

    .content-button {
        display: inline-block;
        padding: 15px 20px;
        background: var(--accent-gradient);
        color: white !important;
        text-decoration: none;
        border-radius: 12px;
        text-align: center;
        font-weight: bold;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        box-shadow: var(--shadow-accent);
        min-width: 200px;
        flex: 1;
        max-width: 500px;
    }

    .content-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--accent-primary);
        filter: brightness(1.1);
    }
	
	/* =====================================================
       CONTENT BUTTONS - STACKED
       ===================================================== */
    .content-buttons-st {
            display: flex;
			flex-direction: column;
            gap: 5px;
            margin: 40px 0 20px 0;
			justify-content: center;
            align-items: center;
        }

        .content-button-st {
            display: inline-block;
            padding: 10px 20px;
            background: var(--accent-gradient);
            color: white !important;
            text-decoration: none;
            border-radius: 12px;
            text-align: center;
            font-weight: bold;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: var(--shadow-accent);
            min-width: 200px;
            flex: 1;
            max-width: 500px;
        }

        .content-button-st:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px var(--accent-primary);
            filter: brightness(1.1);
        }
		
        .content-button-st:active {
            transform: translateY(0);
        }

        .content-button-st.fixed-width {
            width: 360px;
            min-width: 460px;
            max-width: 460px;
        }
		

    /* =====================================================
       INVERTED BUTTONS - BLUE BORDER WITH WHITE/LIGHT INSIDE
       ===================================================== */
    .inverted-buttons {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin: 40px 0 20px 0;
        justify-content: center;
        align-items: center;
    }

    .inverted-button {
        display: inline-block;
        padding: 10px 20px;
        background: var(--inverted-bg-gradient);
        color: var(--inverted-text-color) !important;
        text-decoration: none;
        border-radius: 12px;
        text-align: center;
        font-weight: bold;
        transition: all 0.3s ease;
        border: 3px solid;
        border-color: var(--accent-primary);
        cursor: pointer;
        box-shadow: 
            0 4px 15px var(--inverted-shadow),
            inset 0 0 0 3px var(--inverted-bg-gradient);
        min-width: 200px;
        width: auto;
        max-width: 500px;
    }

    .inverted-button:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 6px 20px var(--inverted-shadow-hover),
            inset 0 0 0 3px var(--inverted-bg-gradient);
        filter: brightness(1.05);
    }

    .inverted-button:active {
        transform: translateY(0);
    }

    /* Fixed width variant for consistent stacked buttons */
    .inverted-button.fixed-width {
        width: 360px;
        min-width: 360px;
        max-width: 360px;
    }

    /* =====================================================
       IMAGE GALLERIES
       ===================================================== */
    .image-gallery {
        display: flex;
        gap: 20px;
        margin: 20px 0;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .image-container {
        flex: 1;
        max-width: 360px;
        min-width: 280px;
    }

    .gallery-image {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: var(--shadow-light);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .gallery-image:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }

    .image-caption {
        margin: 15px 0 20px 0;
        font-size: 0.9rem;
        font-style: italic;
        color: var(--text-secondary);
        text-align: center;
        line-height: 1.5;
        max-width: 740px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 10px;
    }

    .full-size-gallery {
        display: flex;
        gap: 20px;
        margin: 20px 0;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .full-size-container {
        flex: 0 1 auto;
    }

    .full-size-image {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: var(--shadow-light);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .full-size-image:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }

    .full-size-container-with-caption {
        flex: 0 1 auto;
        display: flex;
        flex-direction: column;
    }

    .individual-caption {
        margin: 10px 0 0 0;
        font-size: 0.9rem;
        font-style: italic;
        color: var(--text-secondary);
        text-align: center;
        line-height: 1.4;
        padding: 0 5px;
    }

/* =====================================================
   HANGING INDENT - NORMAL TEXT VARIATIONS
   ===================================================== */

/* Standard hanging indent (2.5em) */
.hanging-indent-text {
    padding-left: 2.5em;
    text-indent: -2.5em;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Small indent variant (1.5em) */
.hanging-indent-text.small {
    padding-left: 1.5em;
    text-indent: -1.5em;
    margin-bottom: 12px;
}

/* Large indent variant (3.5em) */
.hanging-indent-text.large {
    padding-left: 3.5em;
    text-indent: -3.5em;
    margin-bottom: 18px;
}

/* With border accent */
.hanging-indent-text.with-border {
    padding-left: 2.5em;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 15px;
    border-left: 4px solid var(--accent-primary);
    margin-left: 0;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

/* With background highlight */
.hanging-indent-text.highlight {
    padding-left: 2.5em;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 12px;
    background: linear-gradient(90deg, rgba(44, 90, 160, 0.1) 0%, transparent 100%);
    border-radius: 6px;
}

/* Citation/Bibliography style */
.hanging-indent-text.citation {
    padding-left: 2.5em;
    text-indent: -2.5em;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
}

/* Bullet point variant */
.hanging-indent-text.bullet {
    padding-left: 2.5em;
    text-indent: -2.5em;
    margin-bottom: 15px;
}

.hanging-indent-text.bullet::before {
    content: "▪ ";
    color: var(--accent-primary);
    margin-right: 0.3em;
    font-weight: bold;
}

/* Arrow marker variant */
.hanging-indent-text.arrow {
    padding-left: 2.5em;
    text-indent: -2.5em;
    margin-bottom: 15px;
}

.hanging-indent-text.arrow::before {
    content: "→ ";
    color: var(--accent-primary);
    margin-right: 0.3em;
    font-weight: bold;
}

/* Numbered variant */
.hanging-indent-text.numbered {
    padding-left: 2.5em;
    text-indent: -2.5em;
    margin-bottom: 15px;
}

.hanging-indent-text.numbered::before {
    content: attr(data-number);
    margin-right: 0.5em;
    font-weight: bold;
    color: var(--accent-primary);
}

/* Compact variant */
.hanging-indent-text.compact {
    padding-left: 2em;
    text-indent: -2em;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
    /* =====================================================
       FOOTER
       ===================================================== */
    .bottom-menu {
        grid-area: footer;
        background: var(--accent-gradient);
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        margin: 20px -20px 0 -20px;
        box-shadow: var(--shadow-accent);
    }

    .footer-center {
        display: flex;
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .footer-center a {
        color: white;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
    }

    .footer-center a:hover {
        color: #c3cfe2;
    }

    .attribution {
        grid-area: attribution;
        text-align: center;
        padding: 15px 0 20px 0;
        margin: -20px -20px 0 -20px;
        background: var(--accent-gradient);
        color: var(--text-light);
        font-size: 0.9rem;
        font-style: italic;
    }

    /* =====================================================
       RESPONSIVE DESIGN - TABLETS (1024px)
       ===================================================== */
    @media (max-width: 1024px) {
        .container {
            grid-template-columns: 270px 1fr 270px;
            gap: 15px;
            padding: 0 15px 0 15px;
        }

        .title-bar {
            grid-template-columns: 140px 1fr 140px;
            padding: 8px 15px;
            gap: 10px;
            margin: 0 -15px 0 -15px;
        }

        .logo-container img {
            height: 120px;
            max-width: 150px;
        }

        .title-main {
            font-size: 2.3rem;
        }

        .title-sub {
            font-size: 1.2rem;
        }

        .badge {
            padding: 3px 10px;
            font-size: 0.8rem;
        }

        .main-content {
            padding: 25px;
        }

        .content-text h1 {
            font-size: 1.8rem;
        }

        .content-text h2 {
            font-size: 1.3rem;
        }

        .content-text h3 {
            font-size: 1.1rem;
        }

        .menu-block {
            padding: 15px;
        }

        .menu-button {
            padding: 12px;
            font-size: 0.9rem;
        }

        .content-buttons {
            gap: 15px;
            margin: 30px 0 15px 0;
        }

        .content-button {
            padding: 12px 15px;
            font-size: 0.9rem;
            min-width: 180px;
        }

        .inverted-buttons {
            gap: 2px;
            margin: 30px 0 15px 0;
        }

        .inverted-button {
            padding: 12px 15px;
            font-size: 0.9rem;
            min-width: 180px;
            border: 3px solid;
        }

        .inverted-button.fixed-width {
            width: 260px;
            min-width: 260px;
            max-width: 260px;
        }

        .content-text table {
            min-width: 250px;
        }

        .content-text td, .content-text th {
            padding: 8px;
            white-space: normal;
        }

        .content-text blockquote,
        .content-text .blockquote-normal {
            margin: 5px 30px 20px 40px;
        }

        /* DOCUMENT TABLE RESPONSIVE - TABLETS */
        .document-table {
            padding: 20px;
            margin: 0 0 15px 0;
        }

        .header-table {
            margin: 0 0 -2px 0;
        }

        .section-label {
            width: 80px;
            padding-right: 12px;
        }

        .inner-table td, .inner-table th {
            padding: 6px 0;
            font-size: 0.95rem;
        }

        .attribution {
            margin: -15px -15px 0 -15px;
        }
    }

    /* =====================================================
       RESPONSIVE DESIGN - MOBILE PORTRAIT (768px)
       ===================================================== */
    @media (max-width: 768px) {
        .container {
            grid-template-areas: 
                "header"
                "main-content"
                "left-menu"
                "footer"
                "attribution";
            grid-template-columns: 1fr;
            gap: 12px;
            padding: 0 8px;
        }

        /* HIDE RIGHT MENU ON MOBILE */
        .right-space {
            display: none !important;
        }

        /* TITLE BAR - VERTICAL LAYOUT FOR MOBILE */
        .title-bar {
            grid-template-columns: 1fr;
            grid-template-rows: auto auto auto;
            padding: 10px 8px;
            margin: 0 -8px 0 -8px;
            gap: 8px;
            text-align: center;
        }

        .logo-container {
            justify-self: center;
            order: 1;
        }

        .logo-container img {
            height: 80px;
            max-width: 110px;
        }

        .title-content {
            order: 2;
            width: 100%;
        }

        .title-main {
            font-size: 1.5rem;
            letter-spacing: 0.5px;
            margin: 5px 0 2px 0;
        }

        .title-sub {
            font-size: 0.95rem;
            letter-spacing: 0.5px;
        }

        .title-badge-area {
            order: 3;
            justify-self: center;
            gap: 6px;
            height: auto;
        }

        .badge {
            padding: 2px 6px;
            font-size: 0.7rem;
        }

        .main-content {
            padding: 12px;
            border-radius: 10px;
        }

        .content-text {
            font-size: 0.95rem;
        }

        .content-text p {
            margin-bottom: 12px;
        }

        .content-text h1 {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

        .content-text h2 {
            font-size: 1.15rem;
            margin: 18px 0 12px 0;
        }

        .content-text h3 {
            font-size: 1rem;
            margin: 15px 0 10px 0;
        }

        .content-text table {
            font-size: 0.85rem;
            min-width: 200px;
            max-width: 100%;
            overflow-x: auto;
            display: block;
            white-space: nowrap;
        }

        .content-text td, .content-text th {
            padding: 8px 6px;
            white-space: normal;
        }

        .content-text ul {
            margin: 12px 0 12px 20px;
        }

        .content-text li {
            margin-bottom: 8px;
        }

        .menu-block {
            padding: 12px;
            align-self: auto;
        }

        .menu-button {
            padding: 10px;
            margin-bottom: 8px;
            font-size: 0.85rem;
        }

        .content-buttons {
            flex-direction: column;
            gap: 8px;
            margin: 20px 0 15px 0;
        }

        .content-button {
            padding: 10px;
            font-size: 0.85rem;
            min-width: 100%; /*auto;*/
            max-width: none;
        }

        .inverted-buttons {
            flex-direction: column;
            gap: 2px;
            margin: 25px 0 15px 0;
            width: 100%;
            align-items: stretch;
        }

        .inverted-button {
            padding: 12px;
            font-size: 0.9rem;
            min-width: auto;
            max-width: none;
            width: 100%;
            border: 3px solid;
        }

        .inverted-button.fixed-width {
            width: 100%;
            min-width: 100%;
            max-width: 100%;
        }

        .bottom-menu {
            flex-direction: column;
            gap: 12px;
            text-align: center;
            padding: 15px;
            margin: 12px -8px 0 -8px;
        }

        .footer-center {
            gap: 15px;
            flex-direction: column;
        }

        .footer-center a {
            font-size: 0.85rem;
        }

        .full-size-gallery {
            flex-direction: column;
            gap: 12px;
            align-items: center;
        }

        .individual-caption {
            font-size: 0.8rem;
            margin: 6px 0 0 0;
        }

        .content-text blockquote,
        .content-text .blockquote-normal {
            margin: 6px 12px 12px 18px;
            padding-left: 12px;
            font-size: 0.85rem;
        }

        /* DOCUMENT TABLE RESPONSIVE - MOBILE PORTRAIT */
        .document-table {
            padding: 12px;
            margin: 0 0 12px 0;
            border-radius: 0 0 6px 6px;
        }

        .header-table {
            border-radius: 6px 6px 0 0;
            border: 2px solid var(--table-border);
            border-bottom: none;
        }

        .section-label {
            width: 70px;
            padding-right: 10px;
            font-size: 0.85rem;
        }

        .inner-table {
            width: 100%;
        }

        .inner-table td, .inner-table th {
            padding: 5px 0;
            font-size: 0.85rem;
        }

        .attribution {
            margin: -8px -8px 0 -8px;
            padding: 12px 0 15px 0;
            font-size: 0.8rem;
        }
    }

    /* =====================================================
       RESPONSIVE DESIGN - SMALL MOBILE (480px)
       ===================================================== */
    @media (max-width: 480px) {
        .container {
            padding: 0 5px;
            gap: 8px;
        }

        /* HIDE RIGHT MENU ON SMALL MOBILE */
        .right-space {
            display: none !important;
        }

        /* TITLE BAR - VERTICAL LAYOUT FOR SMALL MOBILE */
        .title-bar {
            grid-template-columns: 1fr;
            padding: 8px 5px;
            margin: 0 -5px 0 -5px;
            gap: 6px;
        }

        .logo-container img {
            height: 70px;
            max-width: 100px;
        }

        .title-main {
            font-size: 1.2rem;
            letter-spacing: 0px;
            margin: 3px 0 1px 0;
        }

        .title-sub {
            font-size: 0.8rem;
        }

        .badge {
            padding: 2px 5px;
            font-size: 0.6rem;
        }

        .main-content {
            padding: 10px;
            border-radius: 8px;
        }

        .content-text {
            font-size: 0.9rem;
        }

        .content-text p {
            margin-bottom: 10px;
        }

        .content-text h1 {
            font-size: 1.3rem;
            margin-bottom: 12px;
        }

        .content-text h2 {
            font-size: 1.05rem;
            margin: 12px 0 8px 0;
        }

        .content-text h3 {
            font-size: 0.95rem;
            margin: 10px 0 8px 0;
        }

        .content-text table {
            font-size: 0.75rem;
            min-width: 180px;
        }

        .content-text td, .content-text th {
            padding: 5px 4px;
        }

        .content-text ul {
            margin: 10px 0 10px 15px;
        }

        .content-text li {
            margin-bottom: 6px;
        }

        .menu-block {
            padding: 10px;
        }

        .menu-button {
            padding: 8px;
            margin-bottom: 6px;
            font-size: 0.8rem;
        }

        .content-button {
            padding: 8px;
            font-size: 0.8rem;
        }

        .inverted-button {
            padding: 10px;
            font-size: 0.85rem;
            border: 3px solid;
        }

        .footer-center {
            gap: 12px;
        }

        .footer-center a {
            font-size: 0.8rem;
        }

        .full-size-gallery {
            gap: 8px;
        }

        .individual-caption {
            font-size: 0.75rem;
            margin: 4px 0 0 0;
        }

        .content-text blockquote,
        .content-text .blockquote-normal {
            margin: 6px 8px 10px 15px;
            padding-left: 10px;
            font-size: 0.8rem;
        }

        /* DOCUMENT TABLE RESPONSIVE - SMALL MOBILE */
        .document-table {
            padding: 10px;
            margin: 0 0 10px 0;
        }

        .section-label {
            width: 60px;
            padding-right: 8px;
            font-size: 0.8rem;
        }

        .inner-table td, .inner-table th {
            padding: 3px 0;
            font-size: 0.75rem;
        }

        .attribution {
            margin: -5px -5px 0 -5px;
            font-size: 0.75rem;
            padding: 10px 0 12px 0;
        }
    }

    /* =====================================================
       RESPONSIVE DESIGN - VERY SMALL MOBILE (360px)
       ===================================================== */
    @media (max-width: 360px) {
        .container {
            padding: 0 4px;
            gap: 6px;
        }

        /* HIDE RIGHT MENU ON VERY SMALL MOBILE */
        .right-space {
            display: none !important;
        }

        /* TITLE BAR - VERTICAL LAYOUT FOR VERY SMALL MOBILE */
        .title-bar {
            grid-template-columns: 1fr;
            padding: 6px 4px;
            margin: 0 -4px 0 -4px;
            gap: 4px;
        }

        .logo-container img {
            height: 60px;
            max-width: 80px;
        }

        .title-main {
            font-size: 1rem;
            line-height: 1.1;
            margin: 2px 0 0px 0;
        }

        .title-sub {
            font-size: 0.7rem;
        }

        .badge {
            padding: 1px 4px;
            font-size: 0.55rem;
        }

        .main-content {
            padding: 8px;
            border-radius: 6px;
        }

        .content-text {
            font-size: 0.85rem;
        }

        .content-text p {
            margin-bottom: 8px;
        }

        .content-text h1 {
            font-size: 1.1rem;
            margin-bottom: 10px;
        }

        .content-text h2 {
            font-size: 0.95rem;
            margin: 10px 0 6px 0;
        }

        .content-text h3 {
            font-size: 0.9rem;
            margin: 8px 0 6px 0;
        }

        .content-text table {
            font-size: 0.7rem;
            min-width: 150px;
        }

        .content-text td, .content-text th {
            padding: 3px 2px;
        }

        .menu-button {
            padding: 6px;
            font-size: 0.75rem;
            margin-bottom: 4px;
        }

        .content-button {
            padding: 6px;
            font-size: 0.75rem;
        }

        .inverted-button {
            padding: 8px;
            font-size: 0.8rem;
            border: 3px solid;
        }

        .content-text blockquote,
        .content-text .blockquote-normal {
            margin: 4px 6px 8px 12px;
            padding-left: 8px;
            font-size: 0.8rem;
        }

        /* DOCUMENT TABLE RESPONSIVE - VERY SMALL MOBILE */
        .document-table {
            padding: 8px;
            margin: 0 0 8px 0;
        }

        .section-label {
            width: 55px;
            padding-right: 6px;
            font-size: 0.75rem;
        }

        .inner-table td, .inner-table th {
            padding: 2px 0;
            font-size: 0.7rem;
        }
    }

    /* =====================================================
       MODERN LARGE PHONES (414px with 800px+ height)
       ===================================================== */
    @media (max-width: 414px) and (min-height: 800px) and (-webkit-min-device-pixel-ratio: 2) {
        .container {
            padding: 0 8px;
            gap: 12px;
        }

        /* HIDE RIGHT MENU ON MODERN LARGE PHONES */
        .right-space {
            display: none !important;
        }

        /* TITLE BAR - VERTICAL LAYOUT FOR MODERN LARGE PHONES */
        .title-bar {
            grid-template-columns: 1fr;
            padding: 10px 8px;
            margin: 0 -8px 0 -8px;
            gap: 8px;
        }

        .logo-container img {
            height: 90px;
        }

        .title-main {
            font-size: 1.4rem;
            line-height: 1.2;
            margin: 5px 0 2px 0;
        }

        .title-sub {
            font-size: 0.95rem;
        }

        .badge {
            padding: 2px 6px;
            font-size: 0.65rem;
        }

        .main-content {
            padding: 14px;
            border-radius: 10px;
        }

        .content-text {
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .content-text h1 {
            font-size: 1.4rem;
            margin-bottom: 14px;
        }

        .content-text h2 {
            font-size: 1.15rem;
            margin: 16px 0 10px 0;
        }

        .content-text h3 {
            font-size: 1rem;
            margin: 12px 0 8px 0;
        }

        .content-text p {
            margin-bottom: 10px;
        }

        .content-text table {
            font-size: 0.85rem;
            min-width: 200px;
            margin: 12px auto;
        }

        .content-text td, .content-text th {
            padding: 6px 5px;
        }

        .content-text ul {
            margin: 10px 0 10px 18px;
        }

        .content-text li {
            margin-bottom: 6px;
        }

        .menu-block {
            padding: 12px;
        }

        .menu-button {
            padding: 10px;
            margin-bottom: 6px;
            font-size: 0.85rem;
            min-height: 44px;
        }

        .content-button {
            padding: 10px 12px;
            font-size: 0.85rem;
            min-height: 44px;
        }

        .inverted-button {
            padding: 12px 15px;
            font-size: 0.9rem;
            min-height: 48px;
            border: 3px solid;
        }

        .content-buttons {
            gap: 10px;
            margin: 20px 0 15px 0;
        }

        .inverted-buttons {
            gap: 2px;
            margin: 25px 0 15px 0;
        }

        .full-size-gallery,
        .image-gallery {
            gap: 12px;
            margin: 18px 0;
        }

        .individual-caption {
            font-size: 0.85rem;
            margin: 8px 0 0 0;
            line-height: 1.4;
        }

        .footer-center {
            gap: 15px;
        }

        .footer-center a {
            font-size: 0.85rem;
            padding: 6px 10px;
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bottom-menu {
            padding: 12px;
            margin: 12px -8px 0 -8px;
        }

        .attribution {
            font-size: 0.8rem;
            padding: 10px 0 14px 0;
            line-height: 1.3;
            margin: -8px -8px 0 -8px;
        }

        .content-text blockquote,
        .content-text .blockquote-normal {
            margin: 8px 16px 12px 20px;
            padding-left: 12px;
            font-size: 0.9rem;
        }

        .content-text .citation {
            font-size: 0.8rem;
            margin: 6px 0;
            padding-left: 1.8em;
            text-indent: -1.8em;
        }

        /* DOCUMENT TABLE RESPONSIVE - MODERN LARGE PHONES */
        .document-table {
            padding: 12px;
            margin: 0 0 12px 0;
        }

        .section-label {
            width: 70px;
            padding-right: 10px;
            font-size: 0.9rem;
        }

        .inner-table td, .inner-table th {
            padding: 4px 0;
            font-size: 0.9rem;
        }
    }

    /* =====================================================
       MODERN LARGE PHONES LANDSCAPE (1080px width, max 414px height)
       ===================================================== */
    @media (max-width: 1080px) and (min-width: 800px) and (max-height: 414px) and (-webkit-min-device-pixel-ratio: 2) {
        .container {
            grid-template-areas: 
                "header header"
                "left-menu main-content"
                "footer footer"
                "attribution attribution";
            grid-template-columns: 250px 1fr;
            gap: 12px;
            padding: 0 12px;
        }

        /* HIDE RIGHT MENU ON LANDSCAPE */
        .right-space {
            display: none !important;
        }

        /* TITLE BAR - BACK TO 2 COLUMNS ON LANDSCAPE */
        .title-bar {
            grid-template-columns: 100px 1fr;
            grid-template-rows: auto auto;
            padding: 4px 10px;
            margin: 0 -12px 0 -12px;
            gap: 8px;
        }

        .logo-container {
            grid-row: 1 / 3;
            align-self: center;
        }

        .logo-container img {
            height: 80px;
        }

        .title-content {
            grid-row: 1;
            grid-column: 2;
        }

        .title-main {
            font-size: 1.4rem;
            margin: 0;
        }

        .title-sub {
            font-size: 0.85rem;
        }

        .title-badge-area {
            grid-row: 2;
            grid-column: 2;
            justify-self: end;
            gap: 4px;
        }

        .badge {
            padding: 2px 5px;
            font-size: 0.6rem;
        }

        .main-content {
            padding: 14px;
        }

        .menu-block {
            padding: 10px;
        }

        .menu-button {
            padding: 8px;
            font-size: 0.8rem;
            margin-bottom: 5px;
        }

        .content-button {
            padding: 8px 10px;
            font-size: 0.8rem;
        }

        .inverted-button {
            padding: 10px 12px;
            font-size: 0.85rem;
            border: 3px solid;
        }

        .content-buttons {
            flex-direction: row;
            gap: 10px;
            flex-wrap: wrap;
        }

        .inverted-buttons {
            flex-direction: row;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }

        .footer-center {
            gap: 20px;
        }

        .bottom-menu {
            padding: 12px;
            margin: 12px -12px 0 -12px;
        }

        /* DOCUMENT TABLE RESPONSIVE - LANDSCAPE */
        .document-table {
            padding: 12px;
            margin: 0 0 12px 0;
        }

        .section-label {
            width: 70px;
            padding-right: 10px;
        }

        .inner-table td, .inner-table th {
            padding: 4px 0;
            font-size: 0.85rem;
        }
    }

    /* =====================================================
       LANDSCAPE ORIENTATION - MOBILE
       ===================================================== */
    @media (max-width: 768px) and (orientation: landscape) {
        .container {
            grid-template-areas: 
                "header header"
                "left-menu main-content"
                "footer footer"
                "attribution attribution";
            grid-template-columns: 220px 1fr;
            gap: 8px;
            padding: 0 6px;
        }

        /* HIDE RIGHT MENU ON LANDSCAPE MOBILE */
        .right-space {
            display: none !important;
        }

        /* TITLE BAR - FLEXIBLE LAYOUT FOR LANDSCAPE */
        .title-bar {
            grid-template-columns: auto 1fr auto;
            grid-template-rows: auto;
            padding: 3px 8px;
            gap: 6px;
            margin: 0 -6px 0 -6px;
        }

        .logo-container {
            justify-self: start;
        }

        .logo-container img {
            height: 60px;
        }

        .title-content {
            justify-self: center;
        }

        .title-main {
            font-size: 1.2rem;
            margin: 0;
        }

        .title-sub {
            font-size: 0.75rem;
        }

        .title-badge-area {
            justify-self: end;
            gap: 4px;
            height: auto;
        }

        .badge {
            padding: 1px 4px;
            font-size: 0.55rem;
        }

        .main-content {
            padding: 10px;
        }

        .content-text {
            font-size: 0.85rem;
        }

        .menu-block {
            padding: 8px;
        }

        .menu-button {
            padding: 6px;
            font-size: 0.75rem;
            margin-bottom: 4px;
        }

        .content-buttons {
            flex-direction: row;
            gap: 8px;
        }

        .content-button {
            padding: 6px;
            font-size: 0.75rem;
            min-width: 100px;
        }

        .inverted-buttons {
            flex-direction: row;
            gap: 10px;
        }

        .inverted-button {
            padding: 8px;
            font-size: 0.8rem;
            min-width: 120px;
            border: 3px solid;
        }

        .bottom-menu {
            padding: 10px;
            margin: 8px -6px 0 -6px;
        }

        /* DOCUMENT TABLE RESPONSIVE - LANDSCAPE MOBILE */
        .document-table {
            padding: 10px;
            margin: 0 0 10px 0;
        }

        .section-label {
            width: 60px;
            padding-right: 8px;
            font-size: 0.8rem;
        }

        .inner-table td, .inner-table th {
            padding: 3px 0;
            font-size: 0.8rem;
        }

        .attribution {
            margin: -6px -6px 0 -6px;
            padding: 8px 0 10px 0;
        }
    }

    /* =====================================================
       TOUCH DEVICE OPTIMIZATIONS
       ===================================================== */
    @media (hover: none) and (pointer: coarse) {
        .menu-button, .content-button, .inverted-button {
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .content-text a {
            min-height: 32px;
            display: inline-flex;
            align-items: center;
        }
    }

    /* =====================================================
       HIGH CONTRAST MODE
       ===================================================== */
    @media (prefers-contrast: high) {
        :root {
            --border-color: rgba(255, 255, 255, 0.3);
            --shadow-light: 0 8px 32px rgba(0,0,0,0.2);
        }
    }

    /* =====================================================
       REDUCED MOTION
       ===================================================== */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* =====================================================
       PRINT STYLES
       ===================================================== */
    @media print {
        .menu-block,
        .right-space,
        .bottom-menu,
        .attribution,
        .content-buttons,
        .inverted-buttons {
            display: none;
        }

        .container {
            grid-template-areas: 
                "header"
                "main-content";
            grid-template-columns: 1fr;
            gap: 0;
            padding: 0;
        }

        .main-content {
            box-shadow: none;
            border: none;
            background: white;
            color: black;
        }

        .content-text a {
            color: black;
            text-decoration: underline;
        }

        /* DOCUMENT TABLES PRINT STYLES */
        .document-table {
            page-break-inside: avoid;
            box-shadow: none;
            border: 1px solid #000;
        }

        .header-table {
            page-break-inside: avoid;
            border: 1px solid #000;
        }

        .inner-table {
            page-break-inside: avoid;
        }
    }