/* CSS Reset and Base Styles */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --federal-blue: #003366;
            --federal-gold: #b8860b;
            --federal-red: #8b0000;
            --parchment: #f5f5dc;
            --parchment-dark: #e8e4c9;
            --text-dark: #1a1a1a;
            --text-medium: #333;
            --border-color: #ccc;
            --flag-blue: #002868;
            --american-red: #CE1126;
            --arctic-teal: #008B8B;
            --pacific-blue: #1E90FF;
            --atlantic-navy: #000080;
            --canal-gold: #DAA520;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Times New Roman', 'Georgia', 'Garamond', serif;
            line-height: 1.7;
            color: var(--text-dark);
            background: linear-gradient(to bottom, #f8f6f0, #e8e4d8);
            min-height: 100vh;
        }

        /* Skip Navigation */
        .skip-nav {
            position: absolute;
            left: -9999px;
            z-index: 999;
            padding: 1rem;
            background: var(--federal-blue);
            color: white;
            text-decoration: none;
        }
        .skip-nav:focus {
            left: 0;
            top: 0;
        }

        /* Federal Header Banner */
        .federal-header {
            background: linear-gradient(135deg, var(--federal-blue) 0%, #002244 50%, #001133 100%);
            color: white;
            padding: 2rem 1rem;
            text-align: center;
            border-bottom: 8px solid var(--federal-gold);
            position: relative;
        }

        .federal-header::before,
        .federal-header::after {
            content: '★';
            font-size: 1.5rem;
            color: var(--federal-gold);
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
        }
        .federal-header::before { left: 2rem; }
        .federal-header::after { right: 2rem; }

        .federal-seal {
            width: 140px;
            height: 140px;
            margin: 0 auto 1rem;
            background: radial-gradient(circle, var(--federal-gold) 0%, #8b6914 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 4px solid white;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

        .federal-seal-inner {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 2px solid var(--federal-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            font-weight: bold;
            text-align: center;
            color: var(--federal-blue);
            background: white;
            padding: 0.5rem;
        }

        .federal-header h1 {
            font-size: 2.2rem;
            font-weight: bold;
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .federal-header .subtitle {
            font-size: 1.2rem;
            font-style: italic;
            opacity: 0.9;
            margin-bottom: 0.5rem;
        }

        .multilingual-title {
            font-size: 1rem;
            color: var(--federal-gold);
            margin-top: 0.5rem;
        }

        .document-info {
            margin-top: 1rem;
            font-size: 0.9rem;
            border-top: 1px solid rgba(255,255,255,0.3);
            padding-top: 1rem;
        }

        /* Navigation */
        nav.main-nav {
            background: linear-gradient(to bottom, #1a1a1a, #333);
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .nav-toggle {
            display: none;
            background: var(--federal-gold);
            color: var(--federal-blue);
            border: none;
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            font-weight: bold;
            width: 100%;
            text-align: left;
        }

        .nav-list {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }

        .nav-list li {
            position: relative;
        }

        .nav-list a {
            display: block;
            color: white;
            text-decoration: none;
            padding: 1rem 0.75rem;
            font-size: 0.75rem;
            transition: background 0.3s, color 0.3s;
            border-bottom: 3px solid transparent;
        }

        .nav-list a:hover,
        .nav-list a:focus {
            background: var(--federal-blue);
            border-bottom-color: var(--federal-gold);
        }

        /* Main Content Container */
        .main-content {
            max-width: 1000px;
            margin: 0 auto;
            padding: 2rem;
        }

        /* Document Wrapper */
        .document-wrapper {
            background: white;
            box-shadow: 0 0 30px rgba(0,0,0,0.15);
            border: 1px solid var(--border-color);
        }

        /* Document Body */
        .document-body {
            padding: 3rem 4rem;
            background: linear-gradient(to bottom, white 0%, var(--parchment) 100%);
        }

        /* Official Header in Document */
        .official-header {
            text-align: center;
            border-bottom: 3px double var(--federal-blue);
            padding-bottom: 2rem;
            margin-bottom: 2rem;
        }

        .official-header .congress-line {
            font-size: 1rem;
            font-variant: small-caps;
            letter-spacing: 2px;
            color: var(--federal-blue);
            margin-bottom: 0.5rem;
        }

        .official-header h2 {
            font-size: 1.8rem;
            color: var(--federal-blue);
            margin: 1rem 0;
            letter-spacing: 2px;
        }

        .official-header .resolution-number {
            font-weight: bold;
            color: var(--federal-red);
            font-size: 1.1rem;
        }

        /* Flag Display */
        .flag-display {
            text-align: center;
            margin: 2rem 0;
            padding: 2rem;
            background: linear-gradient(to bottom, #f9f9f9, #eee);
            border: 2px solid var(--federal-gold);
        }

        .flag-display img {
            max-width: 400px;
            width: 100%;
            border: 3px solid var(--text-dark);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .flag-display figcaption {
            margin-top: 1rem;
            font-style: italic;
            color: var(--text-medium);
        }

        /* Section Styling */
        section {
            margin: 3rem 0;
            padding-top: 1rem;
        }

        section h2 {
            font-size: 1.6rem;
            color: var(--federal-blue);
            border-bottom: 2px solid var(--federal-gold);
            padding-bottom: 0.5rem;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        section h3 {
            font-size: 1.3rem;
            color: var(--federal-red);
            margin: 2rem 0 1rem;
            border-left: 4px solid var(--federal-gold);
            padding-left: 1rem;
        }

        section h4 {
            font-size: 1.15rem;
            color: var(--text-dark);
            margin: 1.5rem 0 1rem;
            font-weight: bold;
        }

        section h5 {
            font-size: 1.05rem;
            color: var(--text-medium);
            margin: 1rem 0 0.75rem;
        }

        p {
            margin-bottom: 1rem;
            text-align: justify;
            text-indent: 2rem;
        }

        p.no-indent {
            text-indent: 0;
        }

        /* Article Styling (for formal document sections) */
        .article {
            margin: 2rem 0;
            padding: 1.5rem;
            background: rgba(0,51,102,0.03);
            border-left: 4px solid var(--federal-blue);
        }

        .article-number {
            font-weight: bold;
            color: var(--federal-red);
            font-size: 1.05rem;
            margin-bottom: 0.5rem;
        }

        /* Constitutional Section Styling */
        .constitution-section {
            margin: 1.5rem 0;
            padding: 1rem 1.5rem;
            background: rgba(0,51,102,0.02);
            border-left: 3px solid var(--federal-gold);
        }

        .section-title {
            font-weight: bold;
            color: var(--federal-blue);
            font-size: 1.1rem;
            margin-bottom: 0.75rem;
        }

        .clause {
            margin: 0.75rem 0;
            padding-left: 1rem;
        }

        .clause-number {
            font-weight: bold;
            color: var(--federal-red);
        }

        /* Preamble Styling */
        .preamble {
            font-size: 1.05rem;
            padding: 2rem;
            background: linear-gradient(135deg, rgba(0,51,102,0.05) 0%, rgba(184,134,11,0.05) 100%);
            border: 1px solid var(--border-color);
            margin: 2rem 0;
        }

        .preamble-opener {
            font-size: 1.4rem;
            font-style: italic;
            color: var(--federal-blue);
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .preamble strong {
            color: var(--federal-blue);
        }

        /* Lists */
        ul, ol {
            margin: 1rem 0 1rem 2.5rem;
        }

        li {
            margin-bottom: 0.5rem;
        }

        /* Tables */
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 0.85rem;
        }

        th, td {
            border: 1px solid var(--border-color);
            padding: 0.6rem;
            text-align: left;
        }

        th {
            background: var(--federal-blue);
            color: white;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 1px;
        }

        tr:nth-child(even) {
            background: rgba(0,0,0,0.03);
        }

        tr:hover {
            background: rgba(0,51,102,0.08);
        }

        .table-caption {
            font-style: italic;
            text-align: center;
            margin-bottom: 0.5rem;
            color: var(--text-medium);
        }

        /* Statistics Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.25rem;
            margin: 2rem 0;
        }

        .stat-card {
            background: white;
            border: 2px solid var(--federal-blue);
            padding: 1.25rem;
            text-align: center;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }

        .stat-number {
            font-size: 2.2rem;
            font-weight: bold;
            color: var(--federal-blue);
            display: block;
        }

        .stat-label {
            font-size: 0.85rem;
            color: var(--text-medium);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .stat-sublabel {
            font-size: 0.75rem;
            color: var(--federal-gold);
            margin-top: 0.25rem;
        }

        /* Organizational Chart */
        .org-chart-container {
            overflow-x: auto;
            padding: 2rem 0;
        }

        .org-chart {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 900px;
        }

        .org-level {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 0.5rem 0;
            flex-wrap: wrap;
        }

        .org-box {
            background: linear-gradient(135deg, var(--federal-blue) 0%, #002244 100%);
            color: white;
            padding: 1rem 1.25rem;
            border-radius: 8px;
            text-align: center;
            min-width: 160px;
            position: relative;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            border: 2px solid var(--federal-gold);
        }

        .org-box:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        }

        .org-box.supreme {
            background: linear-gradient(135deg, var(--federal-gold) 0%, #8b6914 100%);
            color: var(--federal-blue);
            font-size: 1.05rem;
            min-width: 300px;
        }

        .org-box.branch {
            background: linear-gradient(135deg, var(--federal-red) 0%, #5a0000 100%);
        }

        .org-box.department {
            background: linear-gradient(135deg, #2a5a2a 0%, #1a3a1a 100%);
        }

        .org-box .title {
            font-weight: bold;
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
        }

        .org-box .subtitle {
            font-size: 0.7rem;
            opacity: 0.9;
        }

        .org-connector {
            width: 2px;
            height: 30px;
            background: var(--federal-gold);
            margin: 0 auto;
        }

        .org-horizontal {
            width: 70%;
            height: 2px;
            background: var(--federal-gold);
            margin: 0 auto;
        }

        /* Military Section Styling */
        .military-section {
            background: linear-gradient(to bottom, rgba(0,51,102,0.08) 0%, rgba(139,0,0,0.05) 100%);
            border: 2px solid var(--federal-blue);
            padding: 2rem;
            margin: 2rem 0;
        }

        .command-structure {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }

        .command-box {
            background: white;
            border: 2px solid var(--federal-blue);
            padding: 1rem;
            text-align: center;
            border-top: 4px solid var(--federal-red);
        }

        .command-box h5 {
            margin: 0 0 0.5rem 0;
            color: var(--federal-blue);
            font-size: 0.85rem;
        }

        .command-box p {
            font-size: 0.8rem;
            text-indent: 0;
            text-align: center;
            margin: 0;
        }

        /* Charter Section */
        .charter-box {
            background: var(--parchment);
            border: 3px double var(--federal-gold);
            padding: 2rem;
            margin: 2rem 0;
        }

        .charter-article {
            margin: 1.5rem 0;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed var(--border-color);
        }

        .charter-article:last-child {
            border-bottom: none;
        }

        .charter-title {
            font-size: 1.1rem;
            color: var(--federal-red);
            font-weight: bold;
            margin-bottom: 1rem;
        }

        /* Language Section */
        .language-acknowledgment {
            background: linear-gradient(135deg, rgba(0,40,104,0.1) 0%, rgba(255,255,255,0.5) 50%, rgba(206,17,38,0.1) 100%);
            border: 2px solid var(--federal-blue);
            padding: 2rem;
            margin: 2rem 0;
        }

        .bilingual-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--federal-blue);
        }

        .bilingual-header .en,
        .bilingual-header .fr {
            font-size: 1.2rem;
            font-weight: bold;
        }

        .bilingual-header .en {
            color: var(--federal-blue);
        }

        .bilingual-header .fr {
            color: var(--federal-red);
            font-style: italic;
        }

        .translation-box {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin: 1rem 0;
        }

        .translation-box > div {
            padding: 1rem;
            background: white;
            border: 1px solid var(--border-color);
        }

        .translation-box .lang-label {
            font-weight: bold;
            font-size: 0.8rem;
            text-transform: uppercase;
            color: var(--text-medium);
            margin-bottom: 0.5rem;
        }

        /* Regional Cards */
        .region-card {
            background: white;
            border: 1px solid var(--border-color);
            margin: 1.5rem 0;
            overflow: hidden;
        }

        .region-header {
            background: var(--federal-blue);
            color: white;
            padding: 1rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .region-header h4 {
            margin: 0;
            color: white;
            font-size: 1.05rem;
        }

        .region-count {
            background: var(--federal-gold);
            color: var(--federal-blue);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.85rem;
        }

        .region-body {
            padding: 1.5rem;
        }

        .region-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .region-stat {
            text-align: center;
            padding: 0.75rem;
            background: var(--parchment);
        }

        .region-stat .value {
            font-size: 1.3rem;
            font-weight: bold;
            color: var(--federal-blue);
        }

        .region-stat .label {
            font-size: 0.75rem;
            color: var(--text-medium);
        }

        /* Strategic Infrastructure Box */
        .strategic-box {
            background: linear-gradient(135deg, rgba(218,165,32,0.15) 0%, rgba(0,51,102,0.1) 100%);
            border: 3px solid var(--canal-gold);
            padding: 2rem;
            margin: 2rem 0;
        }

        .strategic-box h4 {
            color: var(--canal-gold);
            border-bottom: 2px solid var(--canal-gold);
            padding-bottom: 0.5rem;
        }

        /* Geographic Coverage Box */
        .geographic-box {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .geo-card {
            background: white;
            border: 2px solid var(--federal-blue);
            padding: 1.5rem;
            border-radius: 8px;
        }

        .geo-card.arctic {
            border-color: var(--arctic-teal);
            border-top: 4px solid var(--arctic-teal);
        }

        .geo-card.atlantic {
            border-color: var(--atlantic-navy);
            border-top: 4px solid var(--atlantic-navy);
        }

        .geo-card.pacific {
            border-color: var(--pacific-blue);
            border-top: 4px solid var(--pacific-blue);
        }

        .geo-card.antarctic {
            border-color: #87CEEB;
            border-top: 4px solid #87CEEB;
        }

        .geo-card h5 {
            margin: 0 0 1rem 0;
            color: var(--federal-blue);
            font-size: 1rem;
        }

        .geo-card.arctic h5 { color: var(--arctic-teal); }
        .geo-card.atlantic h5 { color: var(--atlantic-navy); }
        .geo-card.pacific h5 { color: var(--pacific-blue); }

        /* Footer */
        .document-footer {
            text-align: center;
            padding: 2rem;
            border-top: 3px double var(--federal-blue);
            margin-top: 3rem;
            background: linear-gradient(to bottom, transparent, rgba(0,51,102,0.05));
        }

        .signature-line {
            width: 300px;
            border-bottom: 1px solid var(--text-dark);
            margin: 2rem auto 0.5rem;
        }

        .signature-label {
            font-style: italic;
            font-size: 0.9rem;
        }

        /* Commitment Box */
        .commitment-box {
            background: linear-gradient(135deg, rgba(0,40,104,0.08) 0%, rgba(184,134,11,0.08) 100%);
            border: 3px solid var(--federal-blue);
            padding: 2rem;
            margin: 2rem 0;
            text-align: center;
        }

        .commitment-box h3 {
            border: none;
            text-align: center;
            padding: 0;
            margin-bottom: 1rem;
        }

        /* Equality Box */
        .equality-box {
            background: linear-gradient(135deg, rgba(0,100,0,0.08) 0%, rgba(184,134,11,0.08) 100%);
            border: 3px solid #006400;
            padding: 2rem;
            margin: 2rem 0;
        }

        .equality-box h4 {
            color: #006400;
            border-bottom: 2px solid var(--federal-gold);
            padding-bottom: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .equality-principle {
            margin: 1rem 0;
            padding: 1rem;
            background: rgba(255,255,255,0.7);
            border-left: 4px solid var(--federal-gold);
        }

        .equality-principle strong {
            color: var(--federal-blue);
        }

        /* Print Styles */
        @media print {
            body {
                background: white;
            }

            .main-nav,
            .skip-nav {
                display: none;
            }

            .document-wrapper {
                box-shadow: none;
                border: none;
            }

            .federal-header {
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            section {
                page-break-inside: avoid;
            }

            .org-chart-container {
                page-break-inside: avoid;
            }

            a {
                text-decoration: none;
                color: inherit;
            }

            .stat-card:hover,
            .org-box:hover {
                transform: none;
                box-shadow: none;
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-toggle {
                display: block;
            }

            .nav-list {
                display: none;
                flex-direction: column;
            }

            .nav-list.active {
                display: flex;
            }

            .nav-list a {
                padding: 0.75rem 1rem;
                border-bottom: 1px solid rgba(255,255,255,0.1);
            }

            .federal-header h1 {
                font-size: 1.5rem;
            }

            .federal-header::before,
            .federal-header::after {
                display: none;
            }

            .document-body {
                padding: 1.5rem;
            }

            .translation-box {
                grid-template-columns: 1fr;
            }

            .bilingual-header {
                flex-direction: column;
                text-align: center;
            }
        }

        /* Tooltip for org chart */
        .tooltip {
            position: absolute;
            background: var(--text-dark);
            color: white;
            padding: 0.75rem 1rem;
            border-radius: 4px;
            font-size: 0.85rem;
            max-width: 250px;
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }

        .tooltip.visible {
            opacity: 1;
        }

        /* Scroll to top button */
        .scroll-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: var(--federal-blue);
            color: white;
            border: 2px solid var(--federal-gold);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.5rem;
            display: none;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s, background 0.3s;
            z-index: 99;
        }

        .scroll-top:hover {
            transform: scale(1.1);
            background: var(--federal-red);
        }

        .scroll-top.visible {
            display: flex;
        }

        /* Compact table for states */
        .states-table {
            font-size: 0.8rem;
        }

        .states-table td, .states-table th {
            padding: 0.4rem 0.5rem;
        }

        .territory-badge {
            background: var(--federal-gold);
            color: var(--federal-blue);
            padding: 0.15rem 0.4rem;
            border-radius: 3px;
            font-size: 0.7rem;
            font-weight: bold;
        }

        .region-badge {
            background: var(--federal-blue);
            color: white;
            padding: 0.15rem 0.4rem;
            border-radius: 3px;
            font-size: 0.7rem;
            font-weight: bold;
        }

        /* Star count box */
        .star-count-box {
            background: var(--flag-blue);
            color: white;
            padding: 1.5rem;
            text-align: center;
            margin: 1.5rem 0;
            border-radius: 8px;
        }

        .star-count-box .count {
            font-size: 3rem;
            font-weight: bold;
            color: white;
        }

        .star-count-box .label {
            font-size: 1rem;
            opacity: 0.9;
        }
