/* frost-patch.css — load AFTER entry.css and entry-per.css.
   Uses the --cyan/--line/etc. variables defined in entry.css. */

/* ---------- Background glow (adds depth to the flat navy) ---------- */
body {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(70, 203, 247, 0.10), transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(91, 124, 255, 0.07), transparent 50%),
        var(--crust);
    background-attachment: fixed;
}

/* ---------- Fonts (optional: delete this block to keep the old look) ---------- */
body {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Noto Serif", "DejaVu Serif", serif;
}
.box h4,
.title-sub-text {
    font-family: ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
}

/* ---------- Portrait: dark frame instead of white ---------- */
.content .wiki-img-right {
    background: var(--mantle);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 0 24px rgba(70, 203, 247, 0.12);
}
.content .wiki-img-right img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.content .wiki-img-right .caption {
    color: var(--subtext);
    font-size: 0.8rem;
    text-align: center;
    padding-top: 6px;
}
.content .wiki-img-right .caption b {
    color: var(--ice);
}

/* ---------- Sidebar: even spacing + dimmed "coming soon" ---------- */
.box br {
    display: none;            /* the <br>s were doubling the gaps between links */
}
.box a {
    margin-bottom: 8px;
}
.box a:last-child {
    margin-bottom: 2px;
}
.box a[href="#"] {
    color: var(--overlay);
    font-style: italic;
    font-weight: normal;
    pointer-events: none;     /* no more jumping to the top of the page */
}

/* ---------- Facts list ---------- */
.wiki-section h3 {
    font-size: 1rem;
    margin: 1.2em 0 0.4em;
}
.wiki-section ol {
    padding-left: 1.6em;
    margin-bottom: 1em;
}
.wiki-section li {
    margin-bottom: 0.45em;
    padding-left: 0.2em;
}
.wiki-section li::marker {
    color: var(--orange);
    font-weight: bold;
}

/* ---------- Nav: current page ---------- */
.nav a[aria-current="page"] {
    color: var(--cyan);
    box-shadow: inset 0 -2px 0 var(--orange);
}
.nav a[aria-current="page"]:hover {
    color: var(--crust);      /* keep text readable on the cyan hover pill */
    box-shadow: none;
}

/* ---------- Desktop layout ---------- */
@media (min-width: 801px) {
    /* centre the nav over the content instead of hugging the right edge */
    .nav {
        justify-content: center;
        padding: 8px 20px;
    }

    /* stay centred on wide screens, but never slide under the fixed sidebar */
    .content {
        margin-left: max(16.5rem, calc((100vw - 900px) / 2));
        margin-right: 1.5rem;
    }
}
