/* Extracted from index.html */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-card h3 {
    margin: 10px 0 5px;
    font-size: 1.1em;
    color: #000;
}

.product-card p {
    margin: 0;
    font-size: 1em;
    color: #333;
}

.featured-carousel {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #F97316 #f0f0f0;
    
    /* WebKit (Chrome, Safari, newer Edge) handled by pseudo-elements below */
}

.featured-carousel::-webkit-scrollbar {
    height: 8px;
}

.featured-carousel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.featured-carousel::-webkit-scrollbar-thumb {
    background: #F97316;
    border-radius: 4px;
}

.featured-carousel::-webkit-scrollbar-thumb:hover {
    background: #FBBF24;
}

.featured-card {
    min-width: 250px;
    max-width: 250px;
    background: linear-gradient(135deg, #FBBF24 0%, #F97316 100%);
    border: 2px solid #F97316;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    scroll-snap-align: start;
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.5);
}

.featured-card img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.featured-card h3 {
    margin: 15px 0 10px;
    font-size: 1.1em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.featured-card p {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbars for chat */
.chat-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.chat-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.chat-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(107, 114, 128, 0.8);
    border-radius: 9999px;
}

/* Fullscreen mode for chat */
#chat-window.fullscreen {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    z-index: 9999;
}

/* --- Gold Cross --- */
#gold-cross {
    position: absolute;
    width: 60px;
    height: 120px;
    z-index: 1;
    pointer-events: none;
    background: #FFF8DC; /* Core color of the cross */
    /* The glow effect */
    box-shadow:
        0 0 10px var(--gold),
        0 0 20px var(--gold),
        0 0 40px #FFD700,
        0 0 60px #FFA500;
    /* Create the cross shape using clip-path */
    clip-path: polygon(
        24px 0, 36px 0, 36px 30px, 60px 30px, 60px 42px, 36px 42px,
        36px 120px, 24px 120px, 24px 42px, 0 42px, 0 30px, 24px 30px
    );
}

/* Blog subtab hover effects */
.blog-subtab:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
}

/* Active blog subtab */
.blog-subtab.active {
    background: #FBBF24 !important;
    color: #000000 !important;
}

/* Seek Eternity (Bible Study) Section Styling */
#BibleStudy h2, 
#BibleStudy h3, 
#BibleStudy h4,
.study-header {
    color: #FBBF24 !important; /* Yellow */
}

#BibleStudy p,
#BibleStudy div {
    color: #F97316; /* Orange */
}

#BibleStudy strong {
    color: #FBBF24; /* Yellow for emphasis within paragraphs */
}

.verse-section {
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Contacts Section Styling */
.contacts-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.contacts-container {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
}

.contacts-container h3 {
    color: #666;
    margin-bottom: 15px;
}

.contacts-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contacts-card p {
    color: #333;
    margin-bottom: 10px;
}

.legal-grid {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-item p {
    color: #333;
    margin: 0;
}

/* --- CONTACTS SECTION ENHANCEMENTS --- */
.contacts-section {
    position: relative;
    z-index: 5;
}

.contact-form-panel input:focus, 
.contact-form-panel textarea:focus {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.contact-form-panel input::placeholder, 
.contact-form-panel textarea::placeholder {
    color: #52525b;
}

/* Custom Checkbox Styling if needed beyond standard tailwind classes */
.contacts-section input[type="checkbox"] {
    cursor: pointer;
    appearance: none;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    padding: 9px;
    border-radius: 6px;
    display: inline-block;
    position: relative;
}

.contacts-section input[type="checkbox"]:checked {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.contacts-section input[type="checkbox"]:checked::after {
    content: '\2714';
    font-size: 14px;
    position: absolute;
    top: 0px;
    left: 4px;
    color: #000;
}

.contact-form-panel {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.8) 0%, rgba(9, 9, 11, 0.9) 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contacts-info-panel {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.6) 0%, rgba(9, 9, 11, 0.7) 100%);
}

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* --- Hero Slideshow --- */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #111;
}

.slide {
    display: none;
    position: relative;
}

.slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    opacity: 0.8;
}

.slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 8px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-left: 4px solid #FBBF24;
}

.slide-text h3 {
    margin: 0;
    color: #FBBF24;
    font-family: 'Orbitron', sans-serif;
}

.slide-text p {
    margin: 5px 0 0;
    color: #f97316;
}

.slide-dots {
    text-align: center;
    padding: 10px;
    position: absolute;
    bottom: 5px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot-active, .dot:hover, .dot-active {
    background-color: #FBBF24;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* --- Extracted from index.html --- */
.brand-link { text-decoration: none; display: inline-block; }
.text-gold { color: #FBBF24; }
.text-gray { color: #9CA3AF; }
.text-shadow-white { text-shadow: 0 0 2px white; color: #000000;}
.header-buttons { display: flex; align-items: center; gap: 15px; }
.avatar-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.avatar-ring { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(to right, #FBBF24, #F97316); padding: 2px; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #1F2937; }
.auth-container { display: flex; gap: 15px; align-items: center; }
.signup-btn { font-size: 0.75rem; color: transparent; background-image: linear-gradient(to right, #FBBF24, #F97316, #1F2937); text-decoration: none; padding: 4px 10px; border: 1px solid #333; border-radius: 4px; transition: all 0.2s; }
.login-btn { display: flex; align-items: center; justify-content: center; padding: 6px 18px; border-radius: 9999px; font-size: 0.75rem; line-height: 1rem; font-weight: 600; background-image: linear-gradient(to right, #FBBF24, #F97316, #1F2937); color: #FFFFFF; border: 1px solid rgba(253, 224, 71, 0.6); font-family: sans-serif; text-decoration: none; transition: all 0.2s; }

/* Utility Classes for JS Toggles */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }

/* Chat Section Styles moved to chatbot.css */

/* Section Styles */
.search-results-section { display: none; }
.server-section { display: none; } 
.featured-header { margin-bottom: 15px; color: #F97316; }
.featured-carousel-flex { display: flex; gap: 15px; overflow-x: auto; padding: 10px 0; scroll-snap-type: x mandatory; }

/* API Keys Section Styles */
.api-keys-container { padding-bottom: 300px; margin-bottom: 100px; }
.api-config-box { background: #f5f5f5; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.api-config-header { color: #666; margin-bottom: 15px; }
.api-inner-box { background: white; padding: 15px; border-radius: 8px; margin-bottom: 10px; }
.api-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.api-label { font-weight: 600; color: #666; }
.api-btn { padding: 8px 16px; background: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; }
.api-value-box { background: #000; color: #00ff00; padding: 15px; border-radius: 5px; font-family: monospace; word-break: break-all; }
.api-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.api-log-box { background: #000; color: #0f0; padding: 15px; border-radius: 8px; max-height: 400px; overflow-y: auto; font-family: monospace; font-size: 0.9em; }
.app-store-link { text-decoration: none; color: inherit; }

/* Bible Study Styles moved to biblestudy.css */

/* --- Legal Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container {
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-sidebar {
    width: 200px;
    background: #27272a;
    border-right: 1px solid #3f3f46;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.legal-nav-item {
    padding: 12px 20px;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.legal-nav-item:hover {
    background: #3f3f46;
    color: #fff;
}

.legal-nav-item.active {
    background: #FBBF24;
    color: #000;
    font-weight: 600;
}

.modal-close-sidebar {
    margin-top: auto;
    padding: 15px 20px;
    color: #ef4444;
    cursor: pointer;
    border-top: 1px solid #3f3f46;
    font-weight: 600;
}

.modal-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #18181b;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    color: #d4d4d8;
    line-height: 1.6;
}

.modal-body h2 {
    color: #FBBF24;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.modal-body h4 {
    color: #fff;
    margin: 20px 0 10px;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #3f3f46;
    display: flex;
    justify-content: flex-end;
}

/* --- Bible Study Enhancements moved to biblestudy.css --- */

/* --- Responsive Tabs -------------------------------------------------------
   No horizontal scrollbar anywhere. Above 768px the tabs wrap onto as many
   rows as they need and shrink fluidly with the viewport; at 768px and below
   the whole row becomes a slide-out side menu driven by the hamburger button.
   -------------------------------------------------------------------------- */

.tabs-container {
    flex-wrap: wrap;
    overflow: visible;
}

/* Fluid tab sizing: full size on wide screens, tightening as the page narrows.
   Two class levels so it beats the plain .tab-button media-query rules in
   adminlandingpage.css regardless of stylesheet order. */
.tabs-container .tab-button {
    padding: clamp(4px, 0.65vw, 4px) clamp(9px, 0.9vw, 15px);
    font-size: clamp(0.68rem, 1.15vw, 1rem);
    box-shadow: 2px 2px 0px rgba(251, 191, 36, 0.8);
}

@media (min-width: 1280px) {
    .tabs-container .tab-button {
        box-shadow: 3px 3px 0px rgba(251, 191, 36, 0.8);
    }
}

/* Accordion carets exist in the DOM at all sizes but only show in the drawer */
.drawer-caret {
    display: none;
}

/* --- Hamburger button (mobile only) --- */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 36px;
    padding: 0 8px;
    margin-right: 10px;
    background: transparent;
    border: 1px solid var(--dark-gray, #27272a);
    border-radius: 8px;
    cursor: pointer;
    flex: 0 0 auto;
    z-index: 400;
}

.mobile-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #FBBF24;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Bars morph into an X while the menu is open */
.mobile-nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 290;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.is-visible {
    opacity: 1;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }

    /* The tab row itself becomes the slide-out drawer — no cloned markup, so
       the role-based show/hide in index.js keeps working untouched. */
    .tabs-container {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(80vw, 320px);
        margin: 0;
        padding: 70px 14px 30px;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 8px;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        background: rgba(9, 9, 11, 0.98);
        border-right: 1px solid rgba(251, 191, 36, 0.25);
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.6);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 300;
    }

    .tabs-container.is-open {
        transform: translateX(0);
    }

    .mobile-nav-backdrop.is-visible {
        display: block;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .tab-dropdown {
        width: 100%;
        display: block;
    }

    .tabs-container .tab-button {
        width: 100%;
        text-align: left;
        padding: 11px 34px 11px 14px;
        font-size: 0.85rem;
        border-radius: 10px;
        box-shadow: none;
        white-space: normal;
    }

    /* Caret that expands a tab's dropdown in place (added by mobile-nav.js) */
    .drawer-caret {
        position: absolute;
        top: 50%;
        right: 6px;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #FBBF24;
        font-size: 0.7rem;
        line-height: 1;
        cursor: pointer;
        transition: transform 0.25s ease;
    }

    .tab-dropdown.is-expanded .drawer-caret {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Dropdowns become inline accordions instead of floating fixed panels */
    .tabs-container .dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        margin: 4px 0 2px;
        border: none;
        border-left: 2px solid rgba(251, 191, 36, 0.35);
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.35);
    }

    .tabs-container .dropdown-menu a {
        padding: 9px 14px;
        font-size: 0.8rem;
    }

    /* Nested submenus stack inline too, rather than flying out to the side */
    .tabs-container .submenu {
        position: static;
        min-width: 0;
        width: 100%;
        border: none;
        border-left: 2px solid rgba(251, 191, 36, 0.2);
        box-shadow: none;
        background: rgba(0, 0, 0, 0.3);
    }

    .tabs-container .dropdown-item.is-expanded .submenu {
        display: block;
    }
}

/* --- Save Shimmer Animation --- */
.save-shimmer {
    position: relative;
    overflow: hidden;
}
.save-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(251, 191, 36, 0.05) 45%,
        rgba(251, 191, 36, 0.2) 50%,
        rgba(251, 191, 36, 0.05) 55%,
        transparent 100%
    );
    transform: rotate(25deg);
    animation: shimmer-light 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 50;
}

@keyframes shimmer-light {
    from { transform: translate(-30%, -30%) rotate(25deg); }
    to { transform: translate(30%, 30%) rotate(25deg); }
}

/* --- Deep Dive Reports --- */
.deep-dive-btn {
    padding: 8px 16px;
    background: rgba(31, 58, 95, 0.4);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #9ca3af;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deep-dive-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fff;
}

.deep-dive-btn.active {
    background: #fbbf24;
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.deep-dive-content-area {
    animation: fadeIn 0.4s ease-out;
}

.scholarly-panel {
    transition: transform 0.2s ease;
}

.scholarly-panel:hover {
    transform: translateX(5px);
    background: rgba(31, 58, 95, 0.2);
}

/* Timeline Styles */
.timeline-container {
    padding-top: 10px;
}

.timeline-node {
    padding-bottom: 25px;
}

.timeline-node:last-child {
    padding-bottom: 0;
}

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

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* --- Search bar + searchsearcher results ---------------------------------
   The bar now sits under the hero slideshow instead of under the header, and
   results are rendered from the searchsearcher API: the top 3 as image cards,
   the remainder as compact rows.
   -------------------------------------------------------------------------- */

.search-container {
    border-bottom: none;
    background-color: transparent;
    padding: 24px 20px 8px;
}

#searchBar {
    width: 100%;
    max-width: 620px;
}

#searchResults {
    max-width: 1225px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.search-results-heading {
    color: #a1a1aa;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 18px 0 16px;
    text-align: center;
}

.search-status {
    width: 100%;
    text-align: center;
    color: #71717a;
    padding: 30px 0;
}

/* Level 10 clearance toggle — sits under the results heading */
.search-clearance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -6px 0 18px;
    font-size: 0.8rem;
    color: #a1a1aa;
    cursor: pointer;
    user-select: none;
}

.search-clearance input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #fbbf24;
    cursor: pointer;
}

/* Disabled reads as "not available to you yet", not as broken chrome. */
.search-clearance:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.65;
}

.search-clearance:has(input:disabled) input[type="checkbox"] {
    cursor: not-allowed;
}

.search-clearance-label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: #d4d4d8;
}

.search-clearance-note {
    color: #71717a;
    font-size: 0.72rem;
}

/* Top 3 — image-led when the page actually has an image of its own */
.search-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.search-featured-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.9) 0%, rgba(9, 9, 11, 0.95) 100%);
    border: 1px solid #27272a;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.search-featured-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #18181b;
}

/* No og:image on the page: keep the rank badge and the card proportions
   without inventing a picture to fill the space. */
.search-featured-media-empty {
    aspect-ratio: auto;
    min-height: 38px;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6), rgba(24, 24, 27, 0.9));
    border-bottom: 1px solid #27272a;
}

.search-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-featured-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.75);
    color: #FBBF24;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.search-featured-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.search-featured-category {
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #FBBF24;
    font-weight: 700;
}

.search-featured-body h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.3;
    color: #f4f4f5;
}

.search-featured-body p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #a1a1aa;
}

.search-featured-source {
    font-size: 0.66rem;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Results 4+ — compact rows */
#searchResults .button-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    max-width: none;
}

.search-result-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
        "category title"
        "category snippet"
        "category source";
    gap: 2px 14px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid #1f1f23;
    border-radius: 10px;
    background: rgba(24, 24, 27, 0.5);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-result-row:hover {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(39, 39, 42, 0.6);
}

.search-result-category {
    grid-area: category;
    align-self: center;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #FBBF24;
    font-weight: 700;
}

.search-result-title {
    grid-area: title;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e4e4e7;
}

.search-result-snippet {
    grid-area: snippet;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #8b8b93;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-source {
    grid-area: source;
    font-size: 0.64rem;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 640px) {
    .search-result-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "category"
            "title"
            "snippet"
            "source";
        gap: 4px;
    }

    .search-result-category {
        align-self: start;
    }
}
