/* ============================================================
   BASE TYPOGRAPHY & SCALING (Your original settings preserved)
   ============================================================ */

body {
    height: 100%;
    min-height: calc(100vh - 2em);
    font-family: Roboto, sans-serif;
    font-size: 2.6vw;
    margin: 1em;
    background: linear-gradient(180deg, #f5f5f7, #e8e8ec);
    color: #111;
}

@media screen and (min-width: 750px) {
    body { font-size: 20px; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: Roboto, sans-serif;
    font-weight: 900;
    color: #000;
}

/* ============================================================
   APPLE GLASS EFFECTS
   ============================================================ */

.glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(1.2em) saturate(1.8);
    -webkit-backdrop-filter: blur(1.2em) saturate(1.8);
    border-radius: 1.2em;
    border: 0.08em solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0.4em 1.4em rgba(0,0,0,0.12);
    padding: 1.4em;
}

/* ============================================================
   NAVIGATION (Home | AI | Skirbunk.com)
   ============================================================ */

nav {
    display: flex;
    gap: 1.2em;
    margin-bottom: 1.6em;
}

nav a {
    font-size: 1em;
    text-decoration: none;
    color: #333;
    padding: 0.3em 0.6em;
    border-radius: 0.6em;
    transition: background 0.2s, color 0.2s;
}

nav a:hover {
    background: rgba(255,255,255,0.7);
    color: #007aff;
}

/* ============================================================
   SEARCH BOX + SUGGESTIONS
   ============================================================ */

#searchBox {
    width: 25em;
    padding: 0.5em;
    font-size: 0.8em;
    border-radius: 0.8em;
    border: 0.08em solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(1em);
    transition: box-shadow 0.2s, background 0.2s;
}

#searchBox:focus {
    outline: none;
    background: rgba(255,255,255,0.75);
    box-shadow: 0 0 1.2em rgba(0,122,255,0.35);
}

.suggest-box {
    margin-bottom: 1.2em;
}

.suggest-btn {
    display: inline-block;
    padding: 0.4em 0.8em;
    margin: 0.3em;
    background: rgba(255,255,255,0.6);
    border: 0.08em solid rgba(0,0,0,0.2);
    border-radius: 0.6em;
    text-decoration: none;
    color: #000;
    font-size: 0.7em;
    transition: background 0.2s, box-shadow 0.2s;
}

.suggest-btn:hover {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 0 0.6em rgba(0,0,0,0.15);
}

/* ============================================================
   RESULT LIST (Apple‑clean, subtle separators)
   ============================================================ */

.result-item {
    padding: 0.6em 0;
    border-bottom: 0.08em solid rgba(0,0,0,0.1);
}

.result-title {
    font-size: 1em;
    margin-bottom: 0.2em;
    font-weight: 600;
    color: #000;
}

.result-url {
    font-size: 0.7em;
    margin-bottom: 0.43em;
    color: #007aff;
}

.result-snippet {
    font-size: 0.7em;
    color: #444;
}

.result-score {
    font-size: 0.6em;
    color: #666;
    margin-top: 0.32em;
}

.result-source {
    font-size: 0.56em;
    color: #555;
    margin-top: 0.32em;
}

/* ============================================================
   LINKS
   ============================================================ */

a:hover {
    color: #ff3b30;
}

/* ============================================================
   CHECKBOX (Apple-style)
   ============================================================ */

input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    accent-color: #007aff;
    cursor: pointer;
    transform: scale(1);
}

/* ============================================================
   STATUS LINE (Loaded: Library (68) Links (1))
   ============================================================ */

.status {
    margin-top: 1em;
    font-size: 0.8em;
    color: #333;
    opacity: 0.85;
}

/* #linksTable:empty {
    display: none;
} */

#results:empty::before {
    display: none;
}