* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --ottoman-black: #0a0a0a;
            --ottoman-dark: #1a1a1a;
            --ottoman-gold: #c9a961;
            --ottoman-crimson: #8b2635;
            --ottoman-teal: #2a5b6c;
            --ottoman-emerald: #1e5945;
            --text-light: #e8e8e8;
            --text-muted: #a0a0a0;
            --border-subtle: rgba(201, 169, 97, 0.15);
        }

        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            background: var(--ottoman-black);
            color: var(--text-light);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Islamic Geometric Pattern Background */
        .pattern-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            opacity: 0.03;
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"><defs><pattern id="p" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M50 0L100 50L50 100L0 50Z" stroke="%23c9a961" stroke-width="1" fill="none"/><circle cx="50" cy="50" r="20" stroke="%23c9a961" stroke-width="0.5" fill="none"/></pattern></defs><rect width="400" height="400" fill="url(%23p)"/></svg>');
            z-index: 1;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: linear-gradient(to bottom, rgba(10, 10, 10, 0.98), rgba(10, 10, 10, 0.9));
            backdrop-filter: blur(20px);
            z-index: 1000;
            padding: 1.5rem 4rem;
            border-bottom: 1px solid var(--border-subtle);
            transition: all 0.3s ease;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
        }

        .logo-icon {
            width: 48px;
            height: 48px;
            object-fit: contain;
        }

        .logo-text {
            font-size: 1.1rem;
            font-weight: 300;
            letter-spacing: 3px;
            color: var(--ottoman-gold);
        }

        .nav-menu {
            display: flex;
            gap: 3rem;
            list-style: none;
        }

        .nav-menu a {
            color: var(--text-light);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 300;
            letter-spacing: 1.5px;
            position: relative;
            transition: color 0.3s ease;
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 1px;
            background: var(--ottoman-gold);
            transition: width 0.3s ease;
        }

        .nav-menu a:hover {
            color: var(--ottoman-gold);
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

        /* Resources Dropdown */
        .nav-menu .dropdown {
            position: relative;
        }

        .nav-menu .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(10, 10, 10, 0.97);
            border: 1px solid var(--border-subtle);
            min-width: 180px;
            z-index: 2000;
            list-style: none;
            padding: 1.2rem 0 0.5rem;
            backdrop-filter: blur(20px);
        }

        /* Invisible bridge fills gap between nav link and submenu */
        .nav-menu .dropdown > a::before {
            content: '';
            position: absolute;
            bottom: -1.2rem;
            left: -20px;
            right: -20px;
            height: 1.2rem;
        }

        .nav-menu .dropdown:hover .dropdown-menu {
            display: block;
        }

        .nav-menu .dropdown-menu li a {
            display: block;
            padding: 0.7rem 1.5rem;
            white-space: nowrap;
            letter-spacing: 1.5px;
            font-size: 0.8rem;
        }

        .nav-menu .dropdown-menu li a::after {
            display: none;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--ottoman-black) 0%, var(--ottoman-dark) 50%, rgba(42, 91, 108, 0.2) 100%);
            padding: 6rem 2rem 2rem;
        }

        .hero-bg-pattern {
            position: absolute;
            width: 150%;
            height: 150%;
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><rect fill="%230a0a0a" width="800" height="600"/><g stroke="%23c9a961" stroke-width="0.5" fill="none" opacity="0.1"><circle cx="400" cy="300" r="200"/><path d="M400,100 L600,300 L400,500 L200,300 Z"/><path d="M400,150 L550,300 L400,450 L250,300 Z"/></g></svg>');
            background-size: contain;
            background-position: center;
            opacity: 0.2;
            animation: rotate 60s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg) scale(1); }
            to { transform: rotate(360deg) scale(1); }
        }

        .hero-content {
            text-align: center;
            z-index: 2;
            max-width: 1000px;
            animation: fadeInUp 1.5s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-logo {
            max-width: 380px;
            margin: 0 auto 2rem;
            filter: drop-shadow(0 0 30px rgba(201, 169, 97, 0.3));
        }

        .hero-logo img {
            width: 100%;
            height: auto;
        }

        .hero-subtitle {
            font-size: 0.9rem;
            letter-spacing: 5px;
            color: var(--ottoman-gold);
            margin-bottom: 2rem;
            font-weight: 300;
            position: relative;
            display: inline-block;
        }

        .hero-subtitle::before,
        .hero-subtitle::after {
            content: '◆';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: var(--ottoman-crimson);
            font-size: 0.7rem;
        }

        .hero-subtitle::before {
            left: -30px;
        }

        .hero-subtitle::after {
            right: -30px;
        }

        .hero-title {
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            font-weight: 200;
            color: var(--text-light);
            margin-bottom: 2rem;
            line-height: 1.2;
        }

        .hero-description {
            font-size: 1.2rem;
            color: var(--text-muted);
            margin-bottom: 3rem;
            line-height: 1.8;
        }

        .cta-buttons {
            display: flex;
            gap: 2rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .cta-button {
            padding: 1rem 3rem;
            background: var(--ottoman-gold);
            color: var(--ottoman-black);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            letter-spacing: 2px;
            transition: all 0.3s ease;
            border: 2px solid var(--ottoman-gold);
        }

        .cta-button:hover {
            background: transparent;
            color: var(--ottoman-gold);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
        }

        .cta-button.secondary {
            background: transparent;
            color: var(--text-light);
            border: 2px solid var(--border-subtle);
        }

        .cta-button.secondary:hover {
            border-color: var(--ottoman-teal);
            color: var(--ottoman-teal);
        }

        /* Content Sections */
        section {
            position: relative;
            z-index: 2;
            padding: 8rem 4rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 5rem;
        }

        .section-number {
            font-size: 0.8rem;
            letter-spacing: 3px;
            color: var(--ottoman-crimson);
            margin-bottom: 1rem;
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 3.5rem);
            font-weight: 200;
            color: var(--ottoman-gold);
            margin-bottom: 1.5rem;
            letter-spacing: 2px;
        }

        .section-subtitle {
            font-size: 1.1rem;
            color: var(--text-muted);
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.8;
        }

        /* About Section */
        .about-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 3rem;
            margin-top: 4rem;
        }

        .about-card {
            background: var(--ottoman-dark);
            border: 1px solid var(--border-subtle);
            padding: 3rem;
            transition: all 0.3s ease;
        }

        .about-card:hover {
            border-color: var(--ottoman-gold);
            transform: translateY(-5px);
            box-shadow: 0 10px 40px rgba(201, 169, 97, 0.1);
        }

        .about-card h3 {
            font-size: 1.5rem;
            color: var(--ottoman-gold);
            margin-bottom: 1.5rem;
            font-weight: 300;
        }

        .about-card p {
            color: var(--text-muted);
            line-height: 1.8;
        }

        /* Team Section */
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 3rem;
            margin-top: 4rem;
        }

        .team-member {
            background: var(--ottoman-dark);
            border: 1px solid var(--border-subtle);
            padding: 2rem;
            transition: all 0.3s ease;
            text-align: center;
        }

        .team-member:hover {
            border-color: var(--ottoman-gold);
            transform: translateY(-5px);
        }

        .member-photo {
            width: 120px;
            height: 120px;
            margin: 0 auto 1.5rem;
            border: 2px solid var(--ottoman-gold);
            overflow: hidden;
            position: relative;
        }

        .member-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .member-name {
            font-size: 1.2rem;
            color: var(--ottoman-gold);
            margin-bottom: 0.5rem;
            font-weight: 400;
        }

        .member-title {
            font-size: 0.9rem;
            color: var(--ottoman-crimson);
            margin-bottom: 1rem;
            letter-spacing: 1px;
        }

        .member-bio {
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.6;
            text-align: left;
        }

        .member-email {
            display: block;
            margin-top: 1rem;
            color: var(--ottoman-teal);
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.3s ease;
        }

        .member-email:hover {
            color: var(--ottoman-gold);
        }

        /* Research Section */
        .research-content {
            background: var(--ottoman-dark);
            border: 1px solid var(--border-subtle);
            padding: 4rem;
            margin-top: 4rem;
        }

        .research-image {
            max-width: 100%;
            margin: 3rem 0;
            border: 2px solid var(--ottoman-gold);
        }

        /* Collections Section */
        .collections-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 3rem;
            margin-top: 4rem;
        }

        .collection-card {
            background: var(--ottoman-dark);
            border: 1px solid var(--border-subtle);
            padding: 3rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .collection-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--ottoman-gold), var(--ottoman-crimson), var(--ottoman-teal));
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .collection-card:hover::before {
            transform: scaleX(1);
        }

        .collection-card:hover {
            border-color: var(--ottoman-gold);
            transform: translateY(-5px);
        }

        .collection-title {
            font-size: 1.5rem;
            color: var(--ottoman-gold);
            margin-bottom: 1.5rem;
            font-weight: 300;
        }

        .collection-description {
            color: var(--text-muted);
            line-height: 1.8;
            margin-bottom: 2rem;
        }

        .collection-link {
            color: var(--ottoman-teal);
            text-decoration: none;
            font-size: 0.9rem;
            letter-spacing: 1px;
            transition: color 0.3s ease;
        }

        .collection-link:hover {
            color: var(--ottoman-gold);
        }

        /* Bibliography Section */
        .bibliography-list {
            background: var(--ottoman-dark);
            border: 1px solid var(--border-subtle);
            padding: 4rem;
            margin-top: 4rem;
        }

        .bib-item {
            padding: 2rem;
            border-left: 3px solid var(--ottoman-gold);
            margin-bottom: 2rem;
            background: rgba(201, 169, 97, 0.05);
        }

        .bib-item p {
            color: var(--text-muted);
            line-height: 1.8;
        }

        /* Contact Section */
        .contact-container {
            background: linear-gradient(135deg, var(--ottoman-dark), transparent);
            border: 1px solid var(--border-subtle);
            padding: 4rem;
            max-width: 800px;
            margin: 4rem auto 0;
            text-align: center;
        }

        .contact-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-top: 3rem;
        }

        .contact-box h4 {
            color: var(--ottoman-crimson);
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .contact-box p {
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.8;
        }

        /* Footer */
        footer {
            background: var(--ottoman-dark);
            border-top: 1px solid var(--border-subtle);
            padding: 4rem 2rem 2rem;
            margin-top: 8rem;
            position: relative;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
        }

        .footer-brand h4 {
            font-size: 1.5rem;
            color: var(--ottoman-gold);
            margin-bottom: 1rem;
            letter-spacing: 3px;
        }

        .footer-brand p {
            color: var(--text-muted);
            line-height: 1.8;
            font-size: 0.9rem;
        }

        .footer-column h5 {
            color: var(--ottoman-gold);
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
            letter-spacing: 2px;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 1rem;
        }

        .footer-column ul li a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }

        .footer-column ul li a:hover {
            color: var(--ottoman-gold);
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 3rem auto 0;
            padding-top: 2rem;
            border-top: 1px solid var(--border-subtle);
            text-align: center;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        /* ── Responsive / Mobile ──────────────────────── */
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            z-index: 1100;
        }
        .hamburger span {
            display: block;
            width: 26px;
            height: 2px;
            background: var(--ottoman-gold);
            transition: all 0.3s ease;
        }
        .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .hamburger.open span:nth-child(2) { opacity: 0; }
        .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        @media (max-width: 900px) {
            nav { padding: 1rem 1.5rem; }

            .hamburger { display: flex; }

            .nav-menu {
                display: none;
                position: fixed;
                top: 0; left: 0; right: 0; bottom: 0;
                background: rgba(10,10,10,0.98);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 2.5rem;
                z-index: 1050;
            }
            .nav-menu.open { display: flex; }
            .nav-menu a { font-size: 1.1rem; letter-spacing: 3px; }

            .nav-menu .dropdown-menu {
                position: static;
                transform: none;
                display: flex;
                flex-direction: column;
                align-items: center;
                background: none;
                border: none;
                padding: 0;
                gap: 1rem;
            }
            .nav-menu .dropdown:hover .dropdown-menu,
            .nav-menu .dropdown.open .dropdown-menu { display: flex; }

            section { padding: 4rem 1.5rem; }
            .hero { padding: 6rem 1.5rem 3rem; }
            .bibliography-list,
            .research-content { padding: 2rem 1.5rem; }
            .contact-container { padding: 2rem 1.5rem; }
        }

        @media (max-width: 480px) {
            .hero-logo { max-width: 280px; }
            .hero-description { font-size: 1rem; }
            .team-grid { grid-template-columns: 1fr; }
            .about-grid { grid-template-columns: 1fr; }
        }

        /* ── Inline Census Map ────────────────────────── */
        .census-map-wrap {
            position: relative;
            width: 100%;
            height: 640px;
            margin-top: 2rem;
            border: 2px solid var(--border-subtle);
            overflow: hidden;
        }
        #census-loading {
            position: absolute; inset: 0; z-index: 2000;
            background: #f4e8c1;
            display: flex; align-items: center; justify-content: center;
            font-family: 'Cinzel', serif; font-size: 15px;
            color: #6b4e37; letter-spacing: 2px;
            transition: opacity 0.5s;
        }
        #census-loading.done { opacity: 0; pointer-events: none; }
        #census-map {
            position: absolute; inset: 0; z-index: 1;
            background: #eae4d9;
        }
        #census-sidebar {
            position: absolute; top: 0; left: 0; bottom: 0;
            width: 400px; z-index: 1050;
            background: linear-gradient(135deg,#f7edda 0%,#f0e2c4 40%,#e8d8b4 100%);
            border-right: 3px solid #9a7b4f;
            box-shadow: 4px 0 20px rgba(61,43,31,0.3);
            transform: translateX(-100%);
            transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
            overflow-y: auto; overflow-x: hidden;
        }
        #census-sidebar.open { transform: translateX(0); }
        #census-sidebar-close {
            position: absolute; top: 16px; right: 16px;
            width: 32px; height: 32px;
            background: none; border: 1.5px solid #9a7b4f;
            color: #6b4e37; cursor: pointer;
            font-family: 'Cinzel', serif; font-size: 16px;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s; z-index: 10;
        }
        #census-sidebar-close:hover { background: #d4c4a0; color: #1a0f07; border-color: #3d2b1f; }
        #census-sidebar-content { position: relative; padding: 28px 28px 40px; z-index: 2; }
        /* map typography helpers */
        .eyalet-header { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #9a7b4f; }
        .eyalet-label { font-family:'Cinzel',serif; font-size:10px; letter-spacing:3px; text-transform:uppercase; color:#8b2500; margin-bottom:6px; }
        .eyalet-name { font-family:'Cinzel Decorative','Cinzel',serif; font-size:22px; font-weight:400; color:#1a0f07; line-height:1.2; margin-bottom:4px; }
        .eyalet-name-ottoman { font-family:'EB Garamond',serif; font-style:italic; font-size:15px; color:#6b4e37; margin-bottom:6px; }
        .eyalet-section { margin-bottom:18px; }
        .eyalet-section-title { font-family:'Cinzel',serif; font-size:11px; letter-spacing:2px; text-transform:uppercase; color:#2f6b5e; margin-bottom:8px; padding-bottom:4px; border-bottom:1px solid rgba(47,107,94,0.2); }
        .eyalet-section p { font-family:'EB Garamond',serif; font-size:15px; line-height:1.65; color:#3d2b1f; }
        .eyalet-tag { display:inline-block; font-family:'Cinzel',serif; font-size:10px; letter-spacing:1px; padding:3px 8px; margin:2px 4px 2px 0; border:1px solid rgba(154,123,79,0.3); color:#6b4e37; background:rgba(154,123,79,0.05); }
        .eyalet-ornament { text-align:center; color:#9a7b4f; font-size:14px; letter-spacing:8px; margin:16px 0 4px; }
        .defter-period { margin-bottom:14px; }
        .defter-period-title { font-family:'Cinzel',serif; font-size:11px; letter-spacing:1px; color:#8b2500; margin-bottom:5px; font-weight:600; }
        .defter-table { width:100%; border-collapse:collapse; font-family:'EB Garamond',serif; font-size:13px; }
        .defter-table th { background:rgba(154,123,79,0.12); color:#3d2b1f; font-weight:600; padding:4px 6px; border:1px solid rgba(154,123,79,0.25); text-align:left; font-size:11px; font-family:'Cinzel',serif; letter-spacing:0.5px; }
        .defter-table td { padding:4px 6px; border:1px solid rgba(154,123,79,0.2); color:#6b4e37; height:24px; vertical-align:middle; }
        .defter-table td:empty::after { content:'\00a0'; }
        .defter-table th:nth-child(1), .defter-table td:nth-child(1) { width:24px; text-align:center; }
        .defter-table th:nth-child(4), .defter-table td:nth-child(4) { width:46px; text-align:center; }
        .defter-table th:nth-child(5), .defter-table td:nth-child(5) { width:40px; text-align:center; }
        .eyalet-tooltip { font-family:'Cinzel',serif !important; font-size:13px !important; letter-spacing:1px !important; color:#1a0f07 !important; background:#f4e8c1 !important; border:1.5px solid #9a7b4f !important; border-radius:0 !important; padding:5px 12px !important; box-shadow:2px 2px 6px rgba(61,43,31,0.3) !important; }
        #census-sidebar::-webkit-scrollbar { width:8px; }
        #census-sidebar::-webkit-scrollbar-track { background:rgba(154,123,79,0.1); }
        #census-sidebar::-webkit-scrollbar-thumb { background:#9a7b4f; }
        .leaflet-control-zoom a { background:#f4e8c1 !important; color:#3d2b1f !important; border-color:#9a7b4f !important; font-family:'Cinzel',serif !important; }
        .leaflet-control-zoom a:hover { background:#d4c4a0 !important; }
        .leaflet-control-zoom { border:2px solid #9a7b4f !important; border-radius:0 !important; }
        /* Kill focus outlines on map elements */
        #census-map .leaflet-interactive,
        #census-map .leaflet-interactive:focus,
        #census-map path.leaflet-interactive,
        #census-map path.leaflet-interactive:focus,
        #census-map svg:focus,
        #census-map .leaflet-container svg,
        #census-map .leaflet-overlay-pane svg,
        #census-map .leaflet-overlay-pane svg * { outline: none !important; box-shadow: none !important; }
        #census-map .leaflet-container { outline: none !important; }
        #census-map *:focus { outline: none !important; }
        @media (max-width: 600px) { #census-sidebar { width: 100%; } .census-map-wrap { height: 520px; } }

        /* Scroll to top button */
        .scroll-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 50px;
            height: 50px;
            background: var(--ottoman-gold);
            color: var(--ottoman-black);
            border: none;
            cursor: pointer;
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 999;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .scroll-top.visible { opacity: 1; }
        .scroll-top:hover { background: var(--ottoman-crimson); color: var(--text-light); transform: translateY(-5px); }

        /* Symposia Links */
        .external-links {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        .external-link-card {
            background: linear-gradient(135deg, var(--ottoman-dark), rgba(139, 38, 53, 0.2));
            border: 2px solid var(--ottoman-gold);
            padding: 3rem;
            text-align: center;
            transition: all 0.3s ease;
            text-decoration: none;
            display: block;
        }
        .external-link-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(201, 169, 97, 0.3); border-color: var(--ottoman-crimson); }
        .external-link-card h3 { color: var(--ottoman-gold); font-size: 1.5rem; margin-bottom: 1rem; font-weight: 300; }
        .external-link-card p { color: var(--text-muted); font-size: 0.9rem; }
        .external-link-card .year { display: block; margin-top: 1rem; color: var(--ottoman-crimson); font-size: 0.85rem; letter-spacing: 2px; }

.census-table-wrap::-webkit-scrollbar { height: 6px; }
                            .census-table-wrap::-webkit-scrollbar-track { background: rgba(201,169,97,0.08); }
                            .census-table-wrap::-webkit-scrollbar-thumb { background: var(--ottoman-gold); border-radius: 0; }

.bib-tabs { display: flex; gap: 0; justify-content: center; margin-bottom: 2.5rem; }
            .bib-tab {
                padding: 0.6rem 2.2rem; font-family: 'Cinzel', serif; font-size: 0.78rem;
                letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
                border: 1px solid rgba(201,169,97,0.35); color: var(--text-muted);
                background: transparent; transition: all 0.25s ease; user-select: none;
            }
            .bib-tab:first-child { border-right: none; }
            .bib-tab.active { background: rgba(201,169,97,0.12); color: var(--ottoman-gold); border-color: var(--ottoman-gold); }
            .bib-tab:hover:not(.active) { color: var(--ottoman-gold); border-color: rgba(201,169,97,0.6); }

            .bib-panel { display: none; }
            .bib-panel.active { display: block; }

            .bib-accordion {
                border: 1px solid rgba(201,169,97,0.2);
                margin-bottom: 0.4rem;
                transition: border-color 0.2s;
            }
            .bib-accordion:hover { border-color: rgba(201,169,97,0.45); }
            .bib-accordion-header {
                display: flex; justify-content: space-between; align-items: baseline;
                padding: 0.75rem 1.1rem; cursor: pointer; gap: 1rem;
            }
            .bib-accordion-author {
                color: var(--ottoman-gold); font-family: 'EB Garamond', serif;
                font-size: 0.92rem; font-weight: 600; white-space: nowrap;
                overflow: hidden; text-overflow: ellipsis; max-width: 55%;
            }
            .bib-accordion-preview {
                color: var(--text-muted); font-family: 'EB Garamond', serif;
                font-size: 0.85rem; font-style: italic; white-space: nowrap;
                overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: right;
            }
            .bib-accordion-chevron {
                color: rgba(201,169,97,0.5); font-size: 0.7rem; flex-shrink: 0;
                transition: transform 0.25s ease; margin-left: 0.6rem;
            }
            .bib-accordion.open .bib-accordion-chevron { transform: rotate(180deg); }
            .bib-accordion-body {
                display: none; padding: 0 1.1rem 0.9rem; border-top: 1px solid rgba(201,169,97,0.12);
            }
            .bib-accordion.open .bib-accordion-body { display: block; }
            .bib-accordion-body p {
                color: var(--text-muted); font-family: 'EB Garamond', serif;
                font-size: 0.9rem; line-height: 1.75; margin: 0.5rem 0 0;
            }
            .bib-accordion-body a { color: rgba(201,169,97,0.7); text-decoration: none; }
            .bib-accordion-body a:hover { color: var(--ottoman-gold); }

            .bib-stats {
                display: flex; gap: 2rem; justify-content: center; margin-bottom: 2rem;
                font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 2px;
                color: var(--text-muted); text-transform: uppercase;
            }
            .bib-stats span { color: var(--ottoman-gold); }
            /* ── Social media links ── */
            .contact-social {
                display: flex;
                gap: 1.2rem;
                justify-content: center;
                flex-wrap: wrap;
                margin-top: 2rem;
            }
            .contact-social a {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                color: var(--text-muted);
                text-decoration: none;
                font-family: 'Cinzel', serif;
                font-size: 0.78rem;
                letter-spacing: 1px;
                padding: 0.55rem 1rem;
                border: 1px solid rgba(201,169,97,0.2);
                border-radius: 4px;
                transition: color 0.2s, border-color 0.2s, background 0.2s;
            }
            .contact-social a:hover {
                color: var(--ottoman-gold);
                border-color: var(--ottoman-gold);
                background: rgba(201,169,97,0.07);
            }
            .contact-social svg {
                width: 16px; height: 16px;
                flex-shrink: 0;
            }

            /* Footer social icons */
            .footer-social {
                display: flex;
                gap: 0.75rem;
                margin-top: 1rem;
            }
            .footer-social a {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 32px; height: 32px;
                color: var(--text-muted);
                border: 1px solid rgba(201,169,97,0.2);
                border-radius: 4px;
                transition: color 0.2s, border-color 0.2s, background 0.2s;
                text-decoration: none;
            }
            .footer-social a:hover {
                color: var(--ottoman-gold);
                border-color: var(--ottoman-gold);
                background: rgba(201,169,97,0.07);
            }
            .footer-social svg {
                width: 15px; height: 15px;
            }