/*style*/

    /* --- DESIGN UTILITY SYSTEM --- */
    :root {
        --bg-main: #f4f7fa;
        --bg-card: #ffffff;
        --text-main: #333333;
        --text-muted: #4d5156;
        --accent-blue: #1a73e8;
        --accent-hover: #1557b0;
        --link-color: #1a0dab;
        --url-color: #006621;
        --border-color: #dadce0;
        --shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    @media (prefers-color-scheme: dark) {
        :root {
            --bg-main: #0f0f10;
            --bg-card: #171719;
            --text-main: #e8eaed;
            --text-muted: #9aa0a6;
            --accent-blue: #8ab4f8;
            --accent-hover: #669df6;
            --link-color: #8ab4f8;
            --url-color: #34a853;
            --border-color: #3c4043;
            --shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
    }

 /* --- BASE ELEMENTS --- */
body {
       font-family: system-ui, -apple-system, "Proxima Nova", Roboto, sans-serif; 
        /* font-family: Consolas, "Courier New", monospace; */
        max-width: 100%; 
        margin: 0; 
        padding: 0; 
        line-height: 1.6; 
        background-color: var(--bg-main); 
        color: var(--text-main);
        font-size: 15px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .container {
        max-width: 900px; 
        margin: 20px auto; 
        background: var(--bg-card); 
        padding: 25px; 
        border-radius: 16px; 
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
    }

    h1, h2 { text-align: center; color: var(--accent-blue); margin-top: 0; }
    .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 25px; font-size: 14px; }
    
    /* --- SEAMLESS SEARCH BAR CONFIGURATION --- */
    .search-container { 
        margin-bottom: 30px; 
        text-align: center;
    }
    .search-box { 
        display: flex; 
        gap: 10px; 
        max-width: 700px; 
        margin: 0 auto 12px auto; 
    }
    .search-box input[type="text"] { 
        flex: 1; 
        padding: 12px 20px; 
        font-size: 16px; 
        border: 1px solid var(--border-color); 
        border-radius: 40px;
        background-color: var(--bg-card);
        color: var(--text-main);
        outline: none;
    }
    .search-box input[type="text"]:focus {
        border-color: var(--accent-blue);
        box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
    }
    .search-box button { 
        padding: 12px 28px; 
        font-size: 16px; 
        background-color: var(--accent-blue); 
        color: #fff; 
        border: none; 
        border-radius: 40px; 
        cursor: pointer; 
        font-weight: bold; 
        transition: background-color 0.2s;
    }
    .search-box button:hover { background-color: var(--accent-hover); }

    .options-box { 
        font-size: 13px; 
        display: inline-flex; 
        align-items: center; 
        gap: 8px; 
        color: var(--text-muted);
        padding: 4px 12px; 
        border: 1px solid var(--border-color);
        border-radius: 20px;
    }

    /* --- SEARCH COMPONENT ITEMS --- */
    .result-item { 
        margin-bottom: 25px; 
        padding-bottom: 20px; 
        border-bottom: 1px solid var(--border-color); 
    }
    .result-item a { 
        font-size: 19px; 
        color: var(--link-color); 
        text-decoration: none; 
        display: inline-block; 
        margin-bottom: 2px; 
    }
    .result-item a:hover { text-decoration: underline; }
    
    .result-url { 
        color: var(--url-color); 
        font-size: 14px; 
        display: block; 
        margin-bottom: 4px;
        word-break: break-all;
    }
    .result-snippet { 
        color: var(--text-muted); 
        margin: 0; 
        font-size: 15px; 
    }
    
    /* --- BOLD KEYWORD HIGHLIGHTING STYLES --- */
    .result-item b, .result-snippet b { 
        color: #d93025; 
        background-color: rgba(217, 48, 37, 0.08); 
        padding: 0 3px; 
        border-radius: 3px;
        font-weight: bold;
    }
    
  /* --- SEARCH ADVICE SUGGESTION BANNER --- */
.suggestion-banner {
    background-color: rgba(26, 115, 232, 0.05);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue);
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.suggestion-banner i {
    color: var(--accent-blue);
}


    /* --- PAGINATION INTERFACE LINKS --- */
    .pagination { 
        margin-top: 40px; 
        display: flex; 
        gap: 8px; 
        justify-content: center; 
        flex-wrap: wrap; 
    }
    .pagination a, .pagination span { 
        padding: 10px 16px; 
        border: 1px solid var(--border-color); 
        text-decoration: none; 
        color: var(--link-color); 
        border-radius: 6px; 
        background: var(--bg-card);
    }
    .pagination .active { 
        background: var(--accent-blue); 
        color: #fff; 
        border-color: var(--accent-blue); 
        font-weight: bold;
    }
    .pagination a:hover:not(.active) { background-color: var(--border-color); }

    /* --- RESPONSIVE MOBILE SCALING --- */
    @media (max-width: 768px) {
        body { padding: 10px; }
        .container { padding: 15px; margin: 10px auto; }
        .search-box { flex-direction: column; gap: 8px; }
        .search-box input[type="text"] { width: 100%; box-sizing: border-box; }
        .search-box button { width: 100%; }
        .result-item a { font-size: 17px; }
    }
  

.did-you-mean {
    background-color: #e8f0fe;
    border-left: 5px solid #1a73e8;
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 15px;
    color: #202124;
}
.did-you-mean a {
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
}
.did-you-mean a:hover {
    text-decoration: underline;
}
.did-you-mean strong {
    color: #34a853;
}


  /* --- LIVE REQUISITE TICKER BADGE --- */
 .ticker-badge {
    display: inline-flex !important; /* Forces layout parsing for inside elements */
    align-items: center !important;  /* Centers the text and the dot horizontally */
    background-color: rgba(26, 115, 232, 0.08); 
    color: #1a73e8;
    margin: 1px 0 20px 0; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 13px; 
    font-weight: bold;
}
/* Placed globally without a strict parent container requirement */
.pulse-dot {
    display: inline-block !important; /* CRUCIAL: Span tags cannot scale/glow without block definitions */
    width: 10px !important; 
    height: 10px !important; 
    background-color: #34a853 !important; 
    border-radius: 50% !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;        /* Prevents flexbox layouts from crushing the dot */
    animation: pulse 1.8s infinite linear !important;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(52, 168, 83, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 168, 83, 0); }
}




/* Blink anything styling */
.blink {
    animation: blinker 1s linear infinite;
}
@keyframes blinker {
    50% { opacity: 0; }
}


/* Authority badge styling - Kept at root level */
.authority-badge {
    display: inline-block !important; /* Overrides layout collapsing constraints */
    font-size: 10px;
    background: #2a2a3a;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    color: #88ff88;
    white-space: nowrap; /* Prevents the text from splitting inside the badge */
}

.result-item {
    margin-bottom: 24px;
    font-family: Arial, sans-serif;
}
/* Forces title link and star badge to live on the exact same row safely */
.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.result-title-link {
    font-size: 18px;
    color: #1a0dab;
    text-decoration: none;
}
.result-title-link:hover {
    text-decoration: underline;
}
/* Ensure the URL starts cleanly on a fresh line block under the title row */
.result-url {
    display: block; 
    font-size: 14px;
    color: #006621;
    margin-bottom: 4px;
    word-break: break-all; /* Prevents overflow layouts if subdirectories are long */
}
.result-snippet {
    font-size: 14px;
    color: #545454;
    line-height: 1.4;
    margin: 0;
}
