/* Lion Tracker — single hand-written stylesheet, no build step. */

:root {
    --ink: #1a2330;
    --muted: #5b6676;
    --line: #e2e6ec;
    --accent: #c8102e; /* Lion red */
    --bg: #f4f6f9;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    /* Full-page world-map background with a dark overlay for legibility.
       --bg is the fallback colour while the image loads / if it 404s. */
    background:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        var(--bg) url("/img/world-background.jpg") center center / cover no-repeat fixed;
}

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.masthead { text-align: center; padding: 1rem 0 1.5rem; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.logo { max-height: 64px; width: auto; }

.brand-name { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.02em; }

.search { margin: 1rem 0 2rem; }

#track-form {
    display: flex;
    gap: 0.5rem;
}

#track-form input {
    flex: 1 1 auto;
    padding: 0.85rem 1rem;
    font-size: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

#track-form input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

#track-form button {
    flex: 0 0 auto;
    padding: 0.85rem 1.4rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

#track-form button:hover { filter: brightness(0.93); }

.intro { text-align: center; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }

.card {
    /* The result/no-result panels sit on the dark page, so the card is an
       opaque white surface with its own dark text. */
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.card-title {
    margin: 0 0 1rem;
    font-size: 1.3rem;
}

.details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.25rem;
    margin: 0;
}

.details dt { color: var(--muted); font-weight: 600; }
.details dd { margin: 0; }

.note {
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.contact {
    margin-top: 2.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 0.95rem;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
    .details { grid-template-columns: 1fr; gap: 0.15rem 0; }
    .details dd { margin-bottom: 0.6rem; }
    #track-form { flex-direction: column; }
}
