        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body { font-family: Arial, Helvetica, sans-serif; line-height: 1.6; color: #002244; background: #f7f8fa; }
        .header {
            background: #002244;
            padding: 0;
            border-bottom: none;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 8px rgba(0,34,68,0.18);
        }
        .header-content { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
        .header-left { display: flex; align-items: center; gap: 12px; }
        .header-right { display: flex; align-items: center; gap: 16px; }
        .site-title h1 {
            font-size: 18px;
            font-weight: 700;
            color: white;
            margin: 0;
            cursor: pointer;
            transition: opacity 0.15s;
        }
        .site-title h1:hover { opacity: 0.85; }
        .hd-sep { opacity: 0.3; font-weight: 400; margin: 0 2px; }
        .title-mobile { display: none; }
        .title-desktop { display: inline; }
        .hd-section { font-weight: 400; font-size: 13px; opacity: 0.6; letter-spacing: 0.01em; }
        .header-nav { display: flex; gap: 18px; }
        .header-nav a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; font-weight: 700; transition: color 0.15s; }
        .header-nav a:hover { color: rgba(255,255,255,0.85); }
        .header-nav a.active { color: white; }
        .tagline { font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 400; margin: 0; display: none; }
        .tagline a { color: rgba(255,255,255,0.45); text-decoration: none; font-weight: 400; transition: all 0.15s; }
        .tagline a:hover { color: rgba(255,255,255,0.8); text-decoration: underline; }
        .language-toggle { display: flex; gap: 2px; background: rgba(255,255,255,0.1); padding: 2px; border-radius: 5px; border: none; }
        .lang-btn { padding: 4px 10px; border: none; background: transparent; color: rgba(255,255,255,0.4); font-size: 12px; font-weight: 700; cursor: pointer; border-radius: 3px; transition: all 0.15s; font-family: Arial, Helvetica, sans-serif; }
        .lang-btn:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }
        .lang-btn.active { background: rgba(255,255,255,0.18); color: white; }
        .container { max-width: 1200px; margin: 0 auto; padding: 16px 24px 80px; }
        /* Panel frame - wraps filters + toggle + results */
        .panel-frame {
            border: 2px solid #b8d4f0;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 1px 4px rgba(0,34,68,0.06);
        }
        .filters-section { background: white; padding: 14px 20px; margin-bottom: 0; border: none; border-radius: 0; box-shadow: none; border-bottom: 1px solid #e2e8f0; }
        .filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 0; }
        .filter-group { display: flex; flex-direction: column; gap: 2px; position: relative; }
        .filter-label { font-size: 12px; font-weight: 600; color: #002244; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
        .filter-button { padding: 10px 12px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 14px; background: white; cursor: pointer; text-align: left; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; }
        .filter-button:hover { border-color: #002244; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
        .filter-button.has-selection { border-color: #002244; background: #f8fafc; }
        .filter-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 2px solid #002244; border-radius: 6px; margin-top: 4px; max-height: 300px; overflow-y: auto; z-index: 1000; display: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
        .filter-dropdown.open { display: block; }
        .filter-option { padding: 8px 12px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; }
        .filter-option:hover { background: #f8fafc; }
        .filter-option input[type="checkbox"] { cursor: pointer; }
        .filter-count { background: #002244; color: white; padding: 2px 6px; border-radius: 10px; font-size: 11px; font-weight: 600; margin-left: 6px; }
        .filter-actions { display: flex; gap: 8px; }
        .clear-filters-btn { padding: 8px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; cursor: pointer; color: #64748b; }
        .clear-filters-btn:hover { background: #e2e8f0; color: #002244; }
        .active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
        .filter-tag { background: #002244; color: white; padding: 4px 10px; border-radius: 4px; font-size: 12px; display: flex; align-items: center; gap: 6px; }
        .filter-tag-remove { cursor: pointer; font-weight: bold; }
        .filter-tag-remove:hover { opacity: 0.7; }
        .filter-actions-row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
        .clear-filters-btn { padding: 8px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; cursor: pointer; color: #64748b; white-space: nowrap; }
        #searchInput { flex: 1; padding: 8px 12px; font-size: 14px; border: 1px solid #cbd5e0; border-radius: 6px; outline: none; height: 38px; box-sizing: border-box; }
        #searchInput:focus { border-color: #002244; }
        .stats { font-size: 13px; color: #64748b; white-space: nowrap; }

        /* Return to top button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: #002244;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            transition: all 0.3s;
            z-index: 1000;
        }
        .back-to-top:hover {
            background: #001a33;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.2);
        }
        .back-to-top.visible {
            display: flex;
        }

        /* Submit Modal */
        .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
        .modal.open { display: flex; align-items: center; justify-content: center; }
        .modal-content { background: white; border-radius: 12px; padding: 32px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; }
        .modal-close { position: absolute; top: 16px; right: 16px; font-size: 28px; font-weight: bold; color: #64748b; cursor: pointer; border: none; background: none; padding: 0; width: 32px; height: 32px; line-height: 32px; }
        .modal-close:hover { color: #002244; }
        .modal-title { font-size: 24px; font-weight: 700; color: #002244; margin-bottom: 8px; }
        .modal-description { color: #64748b; margin-bottom: 24px; font-size: 14px; }
        .form-group { margin-bottom: 20px; }
        .form-label { display: block; font-size: 13px; font-weight: 600; color: #002244; margin-bottom: 6px; }
        .form-input, .form-textarea, .form-file { width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid #cbd5e0; border-radius: 6px; font-family: inherit; }
        .form-input:focus, .form-textarea:focus, .form-file:focus { outline: none; border-color: #002244; }
        .form-textarea { min-height: 100px; resize: vertical; }
        .form-file { padding: 8px; }
        .form-submit { width: 100%; padding: 12px; background: #002244; color: white; border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .form-submit:hover { background: #001a33; }
        .form-submit:disabled { background: #94a3b8; cursor: not-allowed; }
        .form-message { margin-top: 16px; padding: 12px; border-radius: 6px; font-size: 14px; display: none; }
        .form-message.success { background: #d1fae5; color: #065f46; display: block; }
        .form-message.error { background: #fee2e2; color: #991b1b; display: block; }

        .loading { text-align: center; padding: 60px 20px; color: #64748b; }
        .documents-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
        .document-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 20px;
            transition: all 0.5s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        .document-card:not(.expanded) { cursor: pointer; }
        .document-card:not(.expanded):hover {
            border-color: #cbd5e0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transform: translateY(-2px);
        }
        .document-card.expanded {
            grid-column: 1 / -1;
            box-shadow: 0 8px 24px rgba(0,34,68,0.12);
            position: relative;
        }

        /* Close X button for expanded cards */
        .card-close-btn {
            display: none;
            position: absolute;
            top: 16px;
            right: 16px;
            width: 28px;
            height: 28px;
            border: none;
            background: #f1f5f9;
            color: #64748b;
            font-size: 20px;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.2s;
            align-items: center;
            justify-content: center;
            z-index: 10;
            line-height: 1;
        }
        .document-card.expanded .card-close-btn { display: flex; }
        .card-close-btn:hover { background: #e2e8f0; color: #002244; }

        /* Compact view (collapsed state) */
        .doc-header-compact { margin-bottom: 12px; }
        .doc-title-compact { font-size: 17px; font-weight: 600; color: #002244; margin-bottom: 8px; line-height: 1.4; }
        .doc-meta-compact { font-size: 13px; color: #64748b; margin-bottom: 12px; }
        .doc-content-compact { display: flex; gap: 12px; margin-bottom: 12px; }
        .doc-cover-small { width: 80px; height: 106px; aspect-ratio: 80 / 106; object-fit: contain; border-radius: 4px; border: 1px solid #e2e8f0; background: #fafafa; flex-shrink: 0; }
        .doc-info-compact { flex: 1; min-width: 0; }
        .doc-summary-preview {
            color: #475569;
            font-size: 14px;
            line-height: 1.5;
        }
        .expand-btn {
            padding: 8px 16px;
            background: white;
            color: #002244;
            border: 1px solid #cbd5e0;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            width: 100%;
        }
        .expand-btn:hover {
            background: #f8fafc;
            border-color: #002244;
        }

        /* Expanded view (detail state) */
        .doc-header-expanded { display: none; gap: 16px; margin-bottom: 16px; }
        .collapse-btn {
            display: none;
            padding: 8px 16px;
            background: #f8fafc;
            color: #64748b;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            margin-left: 8px;
            text-decoration: none;
        }
        .document-card.expanded .collapse-btn { display: inline-block; }
        .collapse-btn:hover {
            background: #e2e8f0;
            color: #002244;
        }

        /* Toggle visibility based on expanded state */
        .doc-details { display: none; }
        .document-card.expanded .doc-header-compact { display: none; }
        .document-card.expanded .doc-content-compact { display: none; }
        .document-card.expanded .doc-summary-preview { display: none; }
        .document-card.expanded .expand-btn { display: none; }
        .document-card.expanded .doc-header-expanded { display: flex; }
        .document-card.expanded .doc-details { display: block; }
        .document-card.expanded .collapse-btn { display: inline-block; }
        .document-card.expanded .org-badges { display: none; }

        .doc-title { font-size: 17px; font-weight: 600; color: #002244; margin-bottom: 12px; line-height: 1.4; }
        .doc-header { display: flex; gap: 16px; margin-bottom: 12px; }
        .doc-cover { width: 150px; height: 200px; aspect-ratio: 150 / 200; object-fit: contain; border-radius: 4px; border: 1px solid #e2e8f0; flex-shrink: 0; background: #fafafa; }
        .doc-cover-hidden { display: none; }
        .doc-info { flex: 1; min-width: 0; }
        .doc-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #64748b; margin-bottom: 12px; }
        .organization-badge { background: transparent; color: #475569; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 400; border: 1px solid #009FDA; }
        .org-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
        .doc-summary-short { color: #475569; font-size: 14px; line-height: 1.6; margin-bottom: 8px; flex: 1; }
        .doc-summary-long { color: #475569; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
        .doc-detail-section { margin-top: 16px; }
        .detail-row { margin-bottom: 12px; }
        .detail-row:last-child { margin-bottom: 0; }
        .detail-label { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
        .detail-value { font-size: 13px; color: #475569; line-height: 1.5; }
        .detail-bullets { margin: 0 0 0 1.5em; padding: 0; font-size: 13px; color: #475569; line-height: 1.6; list-style-type: disc; }
        .detail-bullets li { margin-bottom: 6px; }
        .detail-bullets li:last-child { margin-bottom: 0; }
        .doc-actions { display: flex; gap: 8px; margin-top: 12px; }
        .read-more-btn, .view-btn { display: inline-block; background: white; color: #64748b; padding: 6px 14px; text-decoration: none; border-radius: 5px; font-weight: 500; font-size: 13px; transition: all 0.2s; cursor: pointer; border: 1px solid #cbd5e0; }
        .read-more-btn:hover, .view-btn:hover { border-color: #002244; color: #002244; }
        .read-more-btn.loading { opacity: 0.6; cursor: wait; }
        .permalink-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; background: white; color: #64748b; text-decoration: none; border-radius: 5px; font-weight: 500; font-size: 13px; transition: all 0.2s; border: 1px solid #cbd5e0; }
        .permalink-btn:hover { border-color: #002244; color: #002244; }
        .no-results { text-align: center; padding: 60px 20px; color: #64748b; }
        /* ═══ WELCOME ═══ */
        .welcome-section { padding: 20px 0 16px; text-align: center; }
        .welcome-text { font-size: 15px; font-weight: 400; color: #64748b; margin: 0; }
        .welcome-text strong { font-weight: 700; color: #002244; }

        /* ═══ SECTION HELPERS ═══ */
        .section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #94a3b8; margin-bottom: 12px; }
        .section-divider { border: none; border-top: 1px solid #e2e8f0; margin: 0 0 20px; }

        /* ═══ BROWSE BY TOPIC — 3+4 grid ═══ */
        .topics-section { padding: 0 0 24px; min-height: 200px; }
        .topics-header {
            text-align: center;
            margin-bottom: 10px;
        }
        .topics-title {
            font-size: 12px;
            font-weight: 700;
            color: #64748b;
            margin: 0;
            text-transform: uppercase;
            letter-spacing: 3px;
        }
        .topics-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
        .topics-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; align-items: stretch; }
        .topic-card {
            background: white; border: 1px solid #e2e8f0; border-radius: 10px;
            padding: 14px 16px; cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none; color: inherit;
            display: flex; flex-direction: column; position: relative; overflow: hidden;
            height: 100%;
        }
        .topic-card:hover { box-shadow: 0 4px 16px rgba(0,34,68,0.08); transform: translateY(-2px); }
        .topic-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 10px 10px 0 0; opacity: 0; transition: opacity 0.25s; }
        .topic-card:hover .topic-accent { opacity: 1; }
        .topic-card-body { display: flex; gap: 10px; align-items: flex-start; flex: 1; padding-top: 2px; }
        .topic-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
        .topic-icon-title { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
        .topic-icon { width: 28px; height: 28px; flex-shrink: 0; margin-top: -1px; }
        .topic-title { font-size: 14px; font-weight: 700; color: #002244; line-height: 1.3; }
        .topic-bottom { display: flex; align-items: center; margin-top: 4px; }
        .topic-count { font-size: 11px; font-weight: 600; color: #94a3b8; }
        .topic-arrow { font-size: 14px; color: #cbd5e0; transition: all 0.25s; margin-left: auto; }
        .topic-card:hover .topic-arrow { color: #002244; transform: translateX(3px); }



        .featured-section { background: transparent; padding: 8px 0; margin-bottom: 12px; min-height: 260px; }
        .featured-header {
            text-align: center;
            margin-bottom: 10px;
            position: relative;
        }
        .featured-title {
            font-size: 12px;
            font-weight: 700;
            color: #64748b;
            margin: 0;
            text-transform: uppercase;
            letter-spacing: 3px;
        }
        .featured-unhide-container {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 20px;
        }
        .featured-toggle-btn {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            padding: 6px 12px;
            border: 2px solid #64748b;
            background: white;
            color: #64748b;
            font-size: 13px;
            font-weight: 600;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 10;
        }
        .featured-unhide-container .featured-toggle-btn {
            position: static;
            transform: none;
        }
        .featured-toggle-btn:hover {
            background: #f1f5f9;
            border-color: #475569;
            color: #475569;
        }

        /* Featured carousel with peek previews and gradual fade */
        .featured-carousel-container {
            position: relative;
            max-width: 1400px;
            margin: 0 auto;
            overflow: hidden;
        }
        .featured-carousel-wrapper {
            position: relative;
            padding: 0 110px;
        }
        .featured-carousel {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            gap: 28px;
            padding: 8px 20px 8px 20px;
            user-select: none;
            cursor: grab;
            height: 303px;
            overflow: hidden;
        }
        .featured-carousel.dragging {
            cursor: grabbing;
        }

        /* Gradual fade on edges */
        .featured-carousel-wrapper::before,
        .featured-carousel-wrapper::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 80px;
            z-index: 10;
            pointer-events: none;
        }
        .featured-carousel-wrapper::before {
            left: 0;
            background: linear-gradient(to right, rgba(247,248,250,1), rgba(247,248,250,0));
        }
        .featured-carousel-wrapper::after {
            right: 0;
            background: linear-gradient(to left, rgba(247,248,250,1), rgba(247,248,250,0));
        }

        /* Navigation arrows */
        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 70px;
            height: 70px;
            background: white;
            border: 2px solid #cbd5e0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 20;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            font-size: 32px;
            font-weight: bold;
        }
        .carousel-nav:hover {
            background: #002244;
            color: white;
            border-color: #002244;
            transform: translateY(-50%) scale(1.1);
        }
        .carousel-nav-left { left: 20px; }
        .carousel-nav-right { right: 20px; }

        /* Featured cards */
        .featured-card {
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
        }
        .featured-card:hover {
            transform: translateY(-4px);
        }

        /* Peek cards (positions 1 and 6) - no fade effect */
        .featured-card.peek {
            opacity: 1;
        }
        .featured-card.peek:hover {
            transform: translateY(-4px);
        }

        .featured-cover {
            width: 130px;
            height: 173px;
            aspect-ratio: 130 / 173;
            object-fit: contain;
            background: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #cbd5e0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .featured-card:hover .featured-cover {
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
            border-color: #94a3b8;
        }
        .featured-info { margin-top: 6px; text-align: center; max-width: 130px; height: 122px; overflow: hidden; }
        .featured-doc-title {
            font-size: 13px;
            font-weight: 600;
            color: #002244;
            line-height: 1.3;
            margin-bottom: 4px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .featured-meta { font-size: 11px; color: #64748b; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
        .featured-card.peek .featured-doc-title,
        .featured-card.peek .featured-meta { opacity: 1; }

        .featured-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
        .featured-modal { background: white; border-radius: 8px; max-width: 1200px; width: 100%; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); margin: 0 auto; }
        .featured-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: none; background: #f1f5f9; color: #64748b; font-size: 24px; cursor: pointer; border-radius: 6px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; z-index: 10; }
        .featured-modal-close:hover { background: #e2e8f0; color: #002244; }
        .featured-modal-content { padding: 20px; }
        .modal-doc-card { background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
        .modal-doc-layout { display: flex; gap: 24px; align-items: flex-start; }
        .modal-doc-cover-col { flex-shrink: 0; }
        .modal-doc-cover-col img { width: 180px; height: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
        .modal-doc-text-col { flex: 1; min-width: 0; }
        .modal-btn-row { display: flex; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; flex-wrap: wrap; }

        /* View Toggle */
        .view-toggle {
            display: flex;
            gap: 8px;
            margin-bottom: 0;
            padding: 10px 20px;
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
        }
        .view-btn {
            padding: 8px 16px;
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            font-weight: 600;
            color: #64748b;
        }
        .view-btn:hover {
            border-color: #cbd5e0;
            background: #f8fafc;
        }
        .view-btn.active {
            background: #002244;
            color: white;
            border-color: #002244;
        }
        .view-btn svg {
            width: 18px;
            height: 18px;
        }

        /* List View Table */
        .grid-container {
            display: none;
            background: white;
            border: none;
            border-radius: 0;
            padding: 20px;
            box-shadow: none;
        }
        .list-container {
            display: block;
        }
        .doc-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 0;
            overflow: hidden;
            border: none;
            box-shadow: none;
        }
        .doc-table thead {
            background: #f8fafc;
            border-bottom: 2px solid #e2e8f0;
        }
        .doc-table th {
            padding: 14px 16px;
            text-align: left;
            font-weight: 700;
            font-size: 13px;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            cursor: pointer;
            user-select: none;
            position: relative;
        }
        .doc-table th:hover {
            background: #f1f5f9;
        }
        .doc-table th.sortable::after {
            content: ' ↕';
            opacity: 0.3;
            font-size: 12px;
        }
        .doc-table th.sorted-asc::after {
            content: ' ↑';
            opacity: 1;
            color: #002244;
        }
        .doc-table th.sorted-desc::after {
            content: ' ↓';
            opacity: 1;
            color: #002244;
        }
        .doc-table td {
            padding: 16px;
            border-bottom: 1px solid #f1f5f9;
            font-size: 14px;
        }
        .doc-table tbody tr {
            transition: background 0.15s;
            cursor: pointer;
        }
        .doc-table tbody tr:hover {
            background: #f8fafc;
        }
        .doc-table tbody tr:last-child td {
            border-bottom: none;
        }
        .table-year {
            width: 100px;
            color: #64748b;
            font-weight: 600;
            white-space: nowrap;
        }
        .table-org {
            width: 180px;
            color: #475569;
        }
        .table-lang {
            width: 36px;
            color: #002244;
            font-weight: 500;
            text-align: center;
            font-size: 13px;
        }
        .table-title {
            color: #002244;
            font-weight: 500;
            line-height: 1.4;
            cursor: pointer;
            transition: all 0.2s;
        }
        .table-title:hover {
            color: #002244;
            text-decoration: underline;
        }

        /* Expanded row styles */
        .table-detail-row {
            background: #f7f8fa;
        }
        .table-detail-row td {
            padding: 0;
            border-bottom: 2px solid #e2e8f0;
        }
        .table-detail-content {
            padding: 24px;
            animation: slideDown 0.3s ease-out;
        }
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .table-detail-header {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }
        .table-detail-cover {
            flex-shrink: 0;
        }
        .table-detail-cover img {
            width: 120px;
            height: auto;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        .table-detail-info {
            flex: 1;
        }
        /* Document Detail Modal (mobile table tap) */
        .doc-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
        .doc-modal { background: white; border-radius: 8px; max-width: 800px; width: 100%; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); margin: 0 auto; }
        .doc-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: none; background: #f1f5f9; color: #64748b; font-size: 24px; cursor: pointer; border-radius: 6px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; z-index: 10; }
        .doc-modal-close:hover { background: #e2e8f0; color: #002244; }
        .doc-modal-content { padding: 20px; }
        .doc-modal-card { background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
        .doc-modal-layout { display: flex; gap: 24px; align-items: flex-start; }
        .doc-modal-cover { flex-shrink: 0; }
        .doc-modal-cover img { width: 180px; height: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
        .doc-modal-text { flex: 1; min-width: 0; }
        .doc-modal-btn-row { display: flex; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; flex-wrap: wrap; }

        @media (max-width: 768px) {
            .header {
                position: sticky;
                top: 0;
                padding: 0;
                box-shadow: 0 2px 8px rgba(0,34,68,0.18);
            }
            .header-content {
                flex-wrap: wrap;
                height: auto;
                padding: 0 16px;
                gap: 0;
            }
            .header-left {
                width: 100%;
                padding: 10px 0 6px;
            }
            .site-title h1 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
            .hd-section { font-size: 11px; }
            .tagline { display: none; }
            .header-right {
                width: 100%;
                padding: 0 0 8px;
                justify-content: space-between;
            }
            .header-nav { gap: 12px; }
            .header-nav a { font-size: 12px; }
            .language-toggle {
                flex-wrap: nowrap;
            }

            /* Hide sort arrows on mobile */
            .doc-table th.sortable::after,
            .doc-table th.sorted-asc::after,
            .doc-table th.sorted-desc::after {
                display: none;
            }
            .modal-content { padding: 24px; }

            /* Topic grid mobile */
            .topics-row-3, .topics-row-4 { grid-template-columns: 1fr 1fr !important; }
            .topic-card { padding: 12px 14px; min-height: 60px; }
            .topics-title { font-size: 11px; letter-spacing: 2px; }

            /* Featured carousel mobile */
            .featured-section { padding: 8px 0 0; margin-bottom: 8px; overflow: hidden; min-height: 210px; }
            .featured-title { font-size: 11px; letter-spacing: 2px; }
            .featured-header {
                padding: 0 16px;
                margin-bottom: 6px;
            }
            .featured-toggle-btn { font-size: 11px; padding: 5px 10px; }

            /* Collections mobile */
            .collections-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .collection-card {
                min-height: 140px;
            }
            .collections-title {
                font-size: 16px;
                padding: 0 12px;
            }
            .collections-title::before,
            .collections-title::after {
                display: none;
            }
            .collections-header {
                padding: 0 16px;
            }

            /* Remove fade gradients on mobile */
            .featured-carousel-wrapper::before,
            .featured-carousel-wrapper::after { display: none !important; }

            /* Hide navigation arrows on mobile */
            .carousel-nav { display: none !important; }

            /* Smooth horizontal scroll on mobile - Instagram style */
            .featured-carousel-container {
                max-width: 100vw;
                overflow: hidden;
                margin: 0;
            }
            .featured-carousel-wrapper {
                padding: 0;
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
                scroll-behavior: auto; /* Instant response to touch */
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            .featured-carousel-wrapper::-webkit-scrollbar {
                display: none;
            }

            .featured-carousel {
                display: flex;
                align-items: flex-start;
                gap: 12px;
                padding: 4px 16px 8px;
                width: max-content;
                height: auto;
                overflow: visible;
                cursor: default; /* No grab cursor on mobile */
            }

            .featured-card {
                flex-shrink: 0;
                width: 115px;
            }
            .featured-cover {
                width: 115px;
                height: 153px;
            }
            .featured-info { height: auto; max-width: 115px; margin-top: 6px; }
            .featured-doc-title { font-size: 11px; line-height: 1.3; min-height: auto; -webkit-line-clamp: 3; }
            .featured-meta { font-size: 10px; -webkit-line-clamp: 2; }

            /* All cards same on mobile - no peek effect */
            .featured-card.peek {
                opacity: 1 !important;
                transform: scale(1) !important;
            }

            /* Featured modal mobile */
            .featured-modal { max-width: calc(100vw - 20px) !important; margin: 10px; }
            .featured-modal-content { padding: 16px; }
            .featured-modal-overlay { padding: 10px !important; }
            .modal-doc-layout {
                flex-direction: column !important;
                align-items: center !important;
                gap: 16px !important;
            }
            .modal-doc-cover-col img {
                width: 120px !important;
            }
            .modal-doc-text-col {
                width: 100%;
            }
            .modal-btn-row {
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 10px !important;
            }
            .modal-btn-row a,
            .modal-btn-row button {
                width: 100% !important;
                justify-content: center !important;
                text-align: center !important;
            }


            /* Search bars full-width on mobile */
            .filter-actions-row { flex-direction: column; align-items: stretch; }
            .search-group { width: 100%; min-width: 0; }
            .search-input-wrapper { flex-wrap: wrap; gap: 6px; }
            .search-input-wrapper input { width: 100%; font-size: 16px; flex: none !important; }
            .google-search-btn { width: 100%; justify-content: center; }

            /* List view on mobile - make table scrollable */
            .list-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            .doc-table {
                min-width: 600px; /* Ensure table doesn't get too squished */
            }
            .table-year {
                width: 60px; /* Slightly narrower on mobile */
            }
            .table-org {
                width: 140px; /* Narrower on mobile */
            }
            /* Title gets remaining space */

            /* Details expand full width on mobile */
            .table-detail-content {
                padding: 16px; /* Less padding on mobile */
            }
            .table-detail-header {
                flex-direction: column; /* Stack cover and info vertically */
            }
            .table-detail-cover {
                margin-bottom: 12px;
            }
            .table-detail-cover img {
                width: 100px !important;
                max-width: 100px !important;
                height: auto !important;
                max-height: 133px !important;
                object-fit: contain !important;
                display: block;
                margin: 0 auto;
            }

            /* Stack submit link on new line, hide separator */
            .tagline { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
            .tagline-separator { display: none; }

            /* Mobile document card - show small cover above title */
            .doc-cover {
                display: block !important;
                width: 80px !important;
                height: auto !important;
                max-height: 106px !important;
                object-fit: contain !important;
                margin: 0 auto 12px auto !important;
                float: none !important;
            }
            .doc-header {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
            }
            .doc-info { width: 100%; }
            .doc-title { font-size: 16px; margin-bottom: 8px; }
            .doc-meta { font-size: 12px; margin-bottom: 10px; }
            .doc-summary { font-size: 14px; line-height: 1.5; }
            .document-card { padding: 16px; }

            /* Larger touch targets */
            .doc-link { padding: 12px 20px; font-size: 15px; display: inline-block; margin: 8px 8px 8px 0; }
            .filter-button { padding: 12px; font-size: 15px; }
            .clear-filters-btn { padding: 10px 16px; font-size: 14px; }

            /* Better spacing */
            .documents-grid { gap: 12px; grid-template-columns: 1fr; }
            .grid-container { padding: 12px; }
            .panel-frame { border-radius: 8px; }
            .container { padding: 12px 16px 60px; }

            /* Back to top - mobile position */
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 56px;
                height: 56px;
                font-size: 28px;
            }

            /* Stack filters vertically */
            .filters-grid { grid-template-columns: 1fr; gap: 12px; }
            .filter-actions-row { flex-direction: column; gap: 12px; align-items: stretch; }
            #searchInput { font-size: 16px; padding: 12px; width: 100%; box-sizing: border-box; }
            .stats { text-align: center; width: 100%; }
            .clear-filters-btn { width: 100%; }

            /* Header mobile adjustments */
            .tagline { font-size: 12px; }
            .language-toggle { flex-wrap: wrap; }


            /* Mobile doc modal adjustments */
            .doc-modal { max-width: calc(100vw - 20px) !important; margin: 10px; }
            .doc-modal-content { padding: 16px; }
            .doc-modal-overlay { padding: 10px !important; }
            .doc-modal-layout {
                flex-direction: column !important;
                align-items: center !important;
                gap: 16px !important;
            }
            .doc-modal-cover img {
                width: 120px !important;
            }
            .doc-modal-text {
                width: 100%;
            }
            .doc-modal-btn-row {
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 10px !important;
            }
            .doc-modal-btn-row a,
            .doc-modal-btn-row button {
                width: 100% !important;
                justify-content: center !important;
                text-align: center !important;
            }

            /* Mobile keyword filter + Google button */
            .search-group {
                min-width: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
                flex: none !important;
            }
            .search-input-wrapper {
                flex-wrap: wrap !important;
                gap: 6px !important;
            }
            .search-input-wrapper #searchInput {
                width: 100% !important;
                flex: none !important;
            }
            .search-input-wrapper .stats {
                text-align: center;
            }

            /* Mobile table: convert table to card list */
            .list-container {
                overflow-x: visible !important;
            }
            .doc-table {
                display: block !important;
                min-width: 0 !important;
                border: none !important;
                box-shadow: none !important;
                background: white !important;
                border-radius: 0 !important;
                overflow: hidden !important;
            }
            .doc-table thead {
                display: none !important;
            }
            .doc-table tbody {
                display: block !important;
            }
            .doc-table .table-main-row {
                display: flex !important;
                flex-wrap: wrap;
                padding: 14px 16px;
                border-bottom: 1px solid #f1f5f9;
                cursor: pointer;
                align-items: baseline;
                gap: 4px 8px;
                background: white;
                transition: background 0.15s;
            }
            .doc-table .table-main-row:last-of-type {
                border-bottom: none;
            }
            .doc-table .table-main-row:active {
                background: #f1f5f9;
            }
            .doc-table .table-main-row td {
                display: block !important;
                padding: 0 !important;
                border: none !important;
            }
            .doc-table .table-main-row .table-title {
                order: 1;
                width: 100%;
                font-size: 15px;
                font-weight: 600;
                color: #002244;
                line-height: 1.4;
                margin-bottom: 2px;
            }
            .doc-table .table-main-row .table-org {
                order: 2;
                width: auto;
                font-size: 13px;
                color: #64748b;
            }
            .doc-table .table-main-row .table-year {
                order: 3;
                width: auto;
                font-size: 13px;
                color: #64748b;
            }
            .doc-table .table-main-row .table-lang {
                order: 4;
                width: auto;
                font-size: 13px;
                color: #64748b;
            }
            .doc-table .table-main-row .table-lang:not(:empty)::before {
                content: '•';
                margin-right: 8px;
                color: #cbd5e0;
            }
            /* Add dot separator between org and year on mobile */
            .doc-table .table-main-row .table-year::before {
                content: '•';
                margin-right: 8px;
                color: #cbd5e0;
            }

            /* Hide the inline detail rows on mobile — we use modal instead */
            .doc-table .table-detail-row {
                display: none !important;
            }
        }
        @media (min-width: 769px) and (max-width: 1024px) {
            .topics-row-3, .topics-row-4 { grid-template-columns: repeat(2, 1fr) !important; }
        }

        /* Google Search Button */
        .google-search-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            height: 38px;
            background: white;
            color: #002244;
            border: 1px solid #cbd5e0;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
            white-space: nowrap;
            box-sizing: border-box;
        }
        .google-search-btn:hover {
            border-color: #002244;
            background: #f8fafc;
        }
        .google-search-btn svg { flex-shrink: 0; }

        .search-group {
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex: 1;
            min-width: 200px;
        }
        .search-label {
            font-size: 12px;
            font-weight: 600;
            color: #002244;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .search-input-wrapper {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        .search-input-wrapper #searchInput {
            height: 38px;
            flex: 1;
        }
        .search-input-wrapper .stats {
            white-space: nowrap;
        }

        /* ═══ SKELETON LOADING ═══ */
        @keyframes skeleton-pulse {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }
        .skeleton { background: #e2e8f0; border-radius: 6px; animation: skeleton-pulse 1.5s ease-in-out infinite; }

        /* Featured skeleton */
        .skeleton-featured { display: flex; gap: 28px; justify-content: center; padding: 8px 20px; }
        .skeleton-featured-card { flex-shrink: 0; }
        .skeleton-featured-cover { width: 130px; height: 173px; border-radius: 6px; }
        .skeleton-featured-title { width: 100px; height: 14px; margin: 8px auto 4px; border-radius: 4px; }
        .skeleton-featured-meta { width: 70px; height: 10px; margin: 0 auto; border-radius: 4px; }

        /* Topics skeleton */
        .skeleton-topics-row { display: grid; gap: 14px; }
        .skeleton-topics-row.row3 { grid-template-columns: repeat(3, 1fr); }
        .skeleton-topics-row.row4 { grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
        .skeleton-topic-card { height: 72px; border-radius: 10px; }

        /* Table skeleton */
        .skeleton-table-row { display: flex; gap: 16px; padding: 16px; border-bottom: 1px solid #f1f5f9; align-items: center; }
        .skeleton-table-year { width: 60px; height: 16px; border-radius: 4px; flex-shrink: 0; }
        .skeleton-table-org { width: 140px; height: 16px; border-radius: 4px; flex-shrink: 0; }
        .skeleton-table-title { flex: 1; height: 16px; border-radius: 4px; }

        @media (max-width: 768px) {
            .skeleton-featured { gap: 12px; padding: 4px 16px; }
            .skeleton-featured-cover { width: 115px; height: 153px; }
            .skeleton-featured-title { width: 80px; }
            .skeleton-topics-row.row3, .skeleton-topics-row.row4 { grid-template-columns: 1fr 1fr; }
            .skeleton-topic-card { height: 60px; }
        }
