:root {
    --brand: #762124;
    --accent: #a01e07;
    --text: #1a1a2e;
    --text-muted: #555577;
    --bg: #f5f6fa;
    --surface: #ffffff;
    --border: #dde1f0;
    --footer-line: #c8cce0;
    --radius: 8px;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    --icon-size: 3.5rem;
    /*Yes they are all Sans, but uni guidelines dont include serif fonts*/
    --font-serif: Calibri;
    --font-mono: Myriad;
    --font-sans: Myriad;
}


.lang-toggle {
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.88);
    padding: clamp(4px, 0.5vw, 7px) clamp(8px, 1vw, 14px);
    border-radius: 5px;
    font-size: clamp(1rem, 1.1vw, 1rem);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.lang-toggle:hover {
    background: var(--text);
}

.lang-toggle a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.lang-toggle a:hover {
    color: #fff;
    text-decoration: none;
}

.top-nav {
    display: flex;
    gap: 0.1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-nav a {
    padding: 4px 9px;
    font-size: clamp(0.68rem, 1.1vw, 0.82rem);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.top-nav a:hover,
.top-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* ── MAIN ── */

/* Collapsibles */

/* ── COLLAPSIBLE SECTION ── */
details.collapsible {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 1em;
}

details.collapsible summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    font-size: clamp(0.75rem, 1.2vw, 0.92rem);
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    user-select: none;
    gap: 1rem;
    border-bottom: 2px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

details.collapsible summary::-webkit-details-marker {
    display: none;
}

details.collapsible summary:hover {
    background: var(--bg);
    border-bottom-color: var(--accent);
}

details.collapsible[open] summary {
    border-bottom: 2px solid var(--accent);
    background: var(--bg);
}

.collapsible-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    color: var(--brand);
    flex-shrink: 0;
    font-size: .75rem;
    line-height: 1;
    transition: transform 0.2s, border-color 0.2s;
}

details.collapsible[open] .collapsible-icon {
    transform: rotate(180deg);
    border-color: var(--brand);
}

.collapsible-body {
    padding: 1rem 1.25rem;
}

#sent-dialog {
    margin: auto;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--surface);
    color: var(--text);
    max-width: 24rem;
}

#sent-dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

#sent-dialog button {
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    font: inherit;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}