        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            /* Greek-optimized fallback stack */
            font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
            line-height: 1.6;
            background-color: #F7F7F5;
            color: #2D3748;
        }
        
        .navbar {
            background: #3D4852;
            color: #E2E8F0;
            padding: 20px 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .navbar-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            position: relative;
        }
        
        .nav-links {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: flex-start;
        }
        
        .nav-links a {
            color: #E2E8F0;
            text-decoration: none;
            font-size: 1.1em;
            transition: color 0.3s;
        }
        
        .nav-links a:hover {
            color: white;
        }
        
        .home-link {
            color: #E2E8F0;
            text-decoration: none;
            font-weight: 300;
            font-size: 3.75em;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
            line-height: 1;
        }
        
        .logo-phi {
            font-family: 'Source Sans Pro', sans-serif;
            font-size: 1em;
            font-weight: 400;
            display: inline-block;
        }
        
        .home-link:hover {
            opacity: 0.8;
        }
        
        .navbar-subtitle {
            color: #E2E8F0;
            font-size: 0.9em;
            margin-top: 0px;
            padding-left: 2.7em;
            font-weight: 400;
            letter-spacing: 0.5px;
            text-align: center;
            line-height: 1.4;
        }

        .nav-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .desktop-only {
            display: block;
        }

        .mobile-only {
            display: none;
        }

        .nav-tabs {
            display: flex;
            justify-content: center;
            gap: 0;
            margin-top: 8px;
        }

        .nav-tab {
            color: #CBD5E0;
            text-decoration: none;
            font-size: 1em;
            padding: 8px 18px;
            border-bottom: 2px solid transparent;
            font-family: 'Source Sans Pro', sans-serif;
            transition: color 0.2s, border-color 0.2s;
        }

        .nav-tab:hover {
            color: white;
            border-bottom-color: #9A8555;
        }

        .hamburger-menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: space-around;
            width: 44px;
            height: 44px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 10px;
            z-index: 350;
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
        }

        .hamburger-line {
            width: 24px;
            height: 3px;
            background-color: #E2E8F0;
            border-radius: 2px;
            transition: all 0.3s ease;
            transform-origin: center;
        }

        .hamburger-menu-toggle:hover .hamburger-line {
            background-color: white;
        }

        .hamburger-menu-toggle.active .hamburger-line:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger-menu-toggle.active .hamburger-line:nth-child(2) {
            opacity: 0;
        }

        .hamburger-menu-toggle.active .hamburger-line:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        .hamburger-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 250;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .hamburger-menu-overlay.visible {
            display: block;
            opacity: 1;
        }

        .hamburger-menu-panel {
            position: fixed;
            top: 0;
            left: 0;
            width: 280px;
            height: 100vh;
            background: #3D4852;
            box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
            z-index: 300;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            overflow-y: auto;
            padding: 20px;
        }

        .hamburger-menu-panel.open {
            transform: translateX(0);
        }

        .menu-section {
            margin-bottom: 30px;
        }

        .menu-section:last-child {
            margin-bottom: 0;
        }

        .menu-section-title {
            color: #E2E8F0;
            font-size: 0.75em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .menu-link {
            display: block;
            color: #E2E8F0;
            text-decoration: none;
            padding: 12px 0;
            font-size: 1em;
            transition: color 0.3s;
        }

        .menu-link:hover {
            color: white;
        }
        
        .github-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 10px;
            background: #4A5568;
            color: #E2E8F0;
            text-decoration: none;
            border-radius: 6px;
            font-size: 0.85em;
            font-weight: 500;
            transition: all 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.15);
            position: absolute;
            right: 10px;
            top: -10px;
        }
        
        .github-btn:hover {
            background: #5A6A78;
            border-color: rgba(255, 255, 255, 0.4);
            transform: translateY(-1px);
        }
        
        .github-icon {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }
        
        .container {
            max-width: 1200px;
            margin: 10px auto;
            padding: 0 20px;
        }
        
        .content-wrapper {
            background-color: #FFFFFF;
            padding: 20px 35px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            position: relative;
        }
        
        h1 {
            color: #2D3748;
            border-bottom: 3px solid #9A8555;
            padding-bottom: 10px;
            margin-bottom: 15px;
            margin-top: 30px;
            font-size: 2em;
            text-align: center;
        }

        .index-intro {
            color: #2D3748;
            font-size: 1.08em;
            line-height: 1.65;
            margin: 0 auto 10px;
            max-width: 860px;
            text-align: center;
        }

        .search-section {
            background: #FFFFFF;
            padding: 8px 15px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 8px;
        }
        
        .search-boxes {
            display: flex;
            justify-content: center;
            margin-bottom: 0;
        }

        .search-boxes .search-box {
            width: 100%;
            max-width: 520px;
        }
        
        .search-box {
            position: relative;
        }
        
        .search-box label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: #2D3748;
            font-size: 1.15em;
            text-align: center;
        }
        
        .search-box input {
            width: 100%;
            padding: 10px 15px;
            padding-right: 40px;
            font-size: 0.95em;
            border: 2px solid #E2E8F0;
            border-radius: 8px;
            transition: border-color 0.3s;
        }
        
        .search-box input:focus {
            outline: none;
            border-color: #9A8555;
        }
        
        .search-box-input-wrapper {
            position: relative;
        }
        
        .search-box .clear-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #999;
            cursor: pointer;
            font-size: 1.2em;
            padding: 5px 8px;
            line-height: 1;
            display: none;
            transition: color 0.3s;
        }
        
        .search-box .clear-btn.visible {
            display: block;
        }
        
        .search-box .clear-btn:hover {
            color: #7A6A45;
        }
        
        .search-box .clear-btn.visible {
            display: block;
        }
        
        #searchResults {
            margin-top: 10px;
        }
        
        .result-item {
            background: #FFFFFF;
            padding: 12px;
            margin: 8px 0;
            border-radius: 6px;
            border: 1px solid #E2E8F0;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .result-item:hover {
            background: #F0F0EC;
            transform: translateX(5px);
        }
        
        .result-author {
            font-weight: bold;
            color: #2D3748;
            font-size: 1.1em;
        }
        
        .result-work {
            color: #2D3748;
            margin-top: 5px;
        }
        
        .result-rows {
            font-size: 0.85em;
            color: #718096;
        }
        
        .letter-section {
            margin-bottom: 20px;
        }
        
        .letter-header {
            background: #4A5568;
            color: #E2E8F0;
            padding: 10px 15px;
            font-size: 1.8em;
            font-weight: 700;
            margin: 0 0 10px;
            border-radius: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .letter-count {
            font-size: 0.6em;
            font-weight: 400;
            opacity: 0.9;
        }

        /* During active search, suppress alphabetical chrome so results read as
           a flat list (letter bars + desktop column headers). Higher specificity
           than the base .letter-header (display: flex) and .author-table thead. */
        #authorIndex.author-search-active .letter-header,
        #authorIndex.author-search-active .author-table thead {
            display: none;
        }

        .author-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 10px;
        }
        
        .author-table thead {
            background-color: #FAFAF8;
            border-bottom: 2px solid #E2E8F0;
        }
        
        .author-table th {
            padding: 8px 4px;
            text-align: left;
            font-weight: 600;
            color: #2D3748;
            font-size: 1.1em;
        }
        
        .author-table th:first-child {
            padding-left: calc(4px + 1.2em);
        }
        
        .author-table th:nth-child(3) {
            text-align: center;
        }
        
        .author-table td:nth-child(2) {
            padding-right: 1em;
        }
        
        .author-table td:nth-child(3) {
            padding-left: 1em;
            padding-right: 1em;
        }
        
        .author-table td:nth-child(4) {
            padding-left: 0;
            padding-top: 6px;
            padding-bottom: 6px;
            vertical-align: top;
        }
        
        .author-table td:nth-child(5) {
            padding: 6px 4px;
            text-align: left;
        }
        
        .author-table th:nth-child(5) {
            padding: 8px 4px;
            text-align: left;
        }
        
        .author-table td:nth-child(6) {
            padding: 6px 4px;
            text-align: left;
        }
        
        .author-table th:nth-child(6) {
            padding: 8px 4px;
            text-align: left;
        }
        
        .author-table td {
            padding: 6px 4px;
            border-bottom: 1px solid #E2E8F0;
            vertical-align: top;
        }
        
        .author-table tr:hover {
            background-color: #F0F0EC;
        }
        
        .author-name {
            font-weight: 600;
            color: #2D3748;
            font-size: 1.05em;
            margin: 0;
            padding: 0 0 0 1.2em;
        }

        .author-name-primary {
            color: #2D3748;
            font-size: 1.2em;
            font-weight: 600;
        }

        .author-name-greek {
            color: #718096;
            font-size: 0.95em;
            margin-top: 2px;
        }
        
        .author-name a {
            color: #2D3748;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .author-name a:hover {
            color: #7A6A45;
            text-decoration: underline;
        }
        
        .author-category {
            color: #718096;
            font-size: 0.9em;
            font-style: italic;
            margin: 0;
            padding: 0;
        }
        
        .author-location {
            color: #718096;
            font-size: 0.9em;
        }
        
        .author-date {
            color: #718096;
            font-size: 0.9em;
            white-space: nowrap;
        }
        
        .work-count {
            color: #2D3748;
            font-weight: 600;
            text-align: center;
        }
        
        .work-list {
            margin-top: 0;
            padding-top: 0;
            vertical-align: top;
        }
        
        .work-item {
            padding: 0;
            margin: 0;
            display: block;
        }
        
        .work-item:not(:first-child) {
            margin-top: 5px;
        }
        
        .work-item a {
            color: #9A8555;
            text-decoration: none;
            font-size: 0.95em;
            display: block;
        }

        .work-item a:hover {
            color: #7A6A45;
        }
        
        .work-item a:hover {
            text-decoration: underline;
        }
        
        .passage-count {
            color: #718096;
            font-size: 0.85em;
        }
        
        .works-inner-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .works-inner-table td {
            padding: 2px 4px;
            vertical-align: top;
        }
        
        .work-title-cell {
            width: 60%;
        }
        
        .work-ref-cell {
            width: 25%;
            color: #718096;
            font-size: 0.95em;
            font-style: italic;
            white-space: nowrap;
        }
        
        .work-passages-cell {
            width: 15%;
            color: #718096;
            font-weight: 600;
            font-size: 0.9em;
            white-space: nowrap;
        }
        
        .work-row-greek a:hover {
            text-decoration: underline;
        }
        
        .work-row-english a:hover {
            text-decoration: underline;
        }
        
        .footer {
            text-align: center;
            padding: 15px 20px;
            color: #718096;
            font-size: 0.9em;
        }
        
        .footer a {
            color: #9A8555;
            text-decoration: none;
        }
        
        .footer a:hover {
            color: #7A6A45;
            text-decoration: underline;
        }
        
        .icon-inline {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            vertical-align: middle;
        }
        
        .icon-inline svg {
            width: 1em;
            height: 1em;
            stroke-width: 2;
        }
        
        @media (max-width: 768px) {
            .navbar {
                padding: 15px 0;
            }

            .navbar-content {
                padding: 0 15px;
            }

            .hamburger-menu-toggle {
                display: flex;
            }

            .desktop-only {
                display: none !important;
            }

            .mobile-only {
                display: block;
            }

            .nav-center {
                width: 100%;
            }

            .nav-links {
                display: none;
            }

            .container {
                margin: 5px auto;
                padding: 0 10px;
            }
            
            .home-link {
                font-size: 2.2em;
                gap: 6px;
            }
            
            .navbar-subtitle {
                padding-left: 0;
                font-size: 0.9em;
            }
            
            .content-wrapper {
                padding: 20px;
            }
            
            h1,
            .index-intro {
                display: none;
            }
            
            .search-section {
                padding: 8px 12px;
                margin-bottom: 8px;
            }
            
            .letter-header {
                font-size: 2em;
                padding: 12px 15px;
            }
            
            .author-table {
                font-size: 1.05em;
                display: block;
                line-height: 1.7;
            }
            
            .author-name {
                font-size: 1.2em !important;
            }
            
            .author-category {
                font-size: 1em;
            }
            
            .author-location {
                font-size: 1em;
            }
            
            .author-date {
                font-size: 1em;
            }
            
            .author-table thead {
                display: none;
            }
            
            .author-table tbody {
                display: block;
            }
            
            .author-table tr {
                display: block;
                background: #fff;
                border: 1px solid #E2E8F0;
                border-radius: 6px;
                margin-bottom: 12px;
                padding: 12px;
                box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            }
            
            .author-table td {
                display: block;
                padding: 6px 0;
                border: none;
                border-bottom: 1px solid #E2E8F0;
            }
            
            .author-table td:last-child {
                border-bottom: none;
            }
            
            .author-table td:nth-child(1)::before {
                content: "Author: ";
                font-weight: 600;
                color: #2D3748;
                display: inline-block;
                min-width: 80px;
            }
            
            .author-table td:nth-child(2)::before {
                content: "Identifier: ";
                font-weight: 600;
                color: #2D3748;
                display: inline-block;
                min-width: 80px;
            }
            
            .author-table td:nth-child(3)::before {
                content: "Works: ";
                font-weight: 600;
                color: #2D3748;
                display: inline-block;
                min-width: 80px;
            }
            
            .author-table td:nth-child(4)::before {
                content: "Available Works: ";
                font-weight: 600;
                color: #2D3748;
                display: block;
                margin-bottom: 8px;
            }
            
            .author-table td:nth-child(5)::before {
                content: "Work Reference: ";
                font-weight: 600;
                color: #2D3748;
                display: block;
                margin-bottom: 8px;
            }
            
            .author-table td:nth-child(6)::before {
                content: "Passages: ";
                font-weight: 600;
                color: #2D3748;
                display: block;
                margin-bottom: 8px;
            }
            
            /* Remove ::before labels from nested table cells */
            .author-table .works-inner-table td::before {
                content: none !important;
            }
            
            .author-name {
                padding: 0 !important;
            }
            
            .author-name a {
                display: inline;
                padding-left: 0 !important;
            }
            
            .author-category {
                display: inline;
            }
            
            .work-count {
                display: inline;
                text-align: left !important;
            }
            
            .work-list {
                margin-top: 8px;
            }
            
            .work-item {
                margin-top: 6px !important;
                padding-left: 0;
            }
            
            .work-passage-count {
                text-align: left !important;
            }
            
            .author-table td:nth-child(2),
            .author-table td:nth-child(3),
            .author-table td:nth-child(4),
            .author-table td:nth-child(5),
            .author-table td:nth-child(6) {
                padding-left: 0;
                padding-right: 0;
            }
            
            /* Ensure nested table cells don't get the ::before labels */
            .author-table .works-inner-table td::before {
                content: none !important;
            }
            
            /* Ensure works inner table displays properly on mobile */
            .works-inner-table {
                display: block;
                width: 100%;
            }
            
            .works-inner-table tbody {
                display: block;
            }
            
            .work-row-greek,
            .work-row-english {
                display: block;
                width: 100%;
            }
            
            .work-row-greek td,
            .work-row-english td {
                display: inline;
                padding: 0;
                border: none;
            }
            
            /* Greek title row styling */
            .work-row-greek {
                margin-top: 12px;
            }
            
            .work-row-greek .work-title-cell {
                display: block;
                width: 100%;
                margin-bottom: 4px;
            }
            
            .work-row-greek .work-ref-cell,
            .work-row-greek .work-passages-cell {
                display: inline;
                margin-right: 12px;
            }
            
            /* English title row styling - ensure it's visible */
            .work-row-english {
                display: block !important;
                margin-bottom: 8px;
                padding-bottom: 8px;
            }
            
            .work-row-english td {
                display: block !important;
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .home-link {
                font-size: 1.9em;
            }

            .navbar-subtitle {
                font-size: 0.85em;
            }

            .content-wrapper {
                padding: 16px;
            }

            .letter-header {
                font-size: 1.75em;
                padding: 10px 12px;
            }

            .author-table {
                font-size: 1em;
            }

            .author-name {
                font-size: 1.15em !important;
            }
        }
