﻿: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;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

em {
    font-weight: bold;
    font-style: normal;
    color: var(--brand);
}

/* ── UNIFIED STICKY HEADER ── */
#sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#top-bar {
    background: var(--brand);
}

.top-bar-inner {
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.top-bar-inner .logo-img {
    height: clamp(2rem, 4vw, 3rem);
    flex-shrink: 0;
}

.top-bar-inner .hermes-img {
    height: clamp(3rem, 6vw, 5rem);
    width: clamp(3rem, 6vw, 5rem);
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.site-title {
    flex: 1;
    min-width: 0;
}

.site-title h1 {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.site-title p {
    font-size: clamp(0.75rem, 1.4vw, 0.95rem);
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.2rem;
}

.site-title a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.site-title a:hover {
    color: #fff;
    text-decoration: underline;
}

.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);
}

nav[aria-label="Site navigation"] {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

nav[aria-label="Site navigation"] a {
    padding: clamp(0.55rem, 1vw, 0.85rem) clamp(0.6rem, 1.2vw, 1.1rem);
    font-size: clamp(0.75rem, 1.2vw, 0.92rem);
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

nav[aria-label="Site navigation"] a:hover,
nav[aria-label="Site navigation"] a.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* ── MAIN ── */
main {
    margin: clamp(1rem, 3vw, 2rem) clamp(1rem, 5vw, 6rem);
    padding: clamp(1rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

main h2 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

main p {
    margin-bottom: 1rem;
}

main ul {
    margin: 0.5rem 0 1rem 1.25rem;
}

main li {
    margin-bottom: 0.4rem;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--accent);
}

/* ── FOOTER ── */
footer {
    margin: 0 clamp(1rem, 5vw, 6rem) 2rem;
    padding: 1.2rem clamp(1.25rem, 4vw, 3rem) 0;
    border-top: 1.5px solid #c8cce0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: clamp(1rem, 1.1vw, 0.82rem);
    color: var(--text-muted);
}

.footer-credits {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-credits a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-credits a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.footer-credits strong {
    font-weight: 600;
    color: var(--text);
}

.footer-twitter a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.footer-twitter a:hover {
    border-color: #1d9bf0;
    color: #1d9bf0;
}

.footer-twitter svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .top-bar-inner {
        flex-wrap: wrap;
    }

    .top-bar-right {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .top-nav {
        justify-content: flex-start;
    }
}

.footer-social-buttons {
    display: flex;
    gap: 10px;
    /* slightly more spacing */
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* more space between icon + text */
    padding: 10px 16px;
    /* bigger button */
    border: 1px solid var(--border);
    border-radius: 8px;
    /* slightly rounder */
    color: var(--text-muted);
    font-size: 0.9rem;
    /* larger text */
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, transform 0.1s;
}

.social-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Hover state */
.social-btn:hover {
    border-color: var(--brand);
    color: var(--accent);
    text-decoration: none;
    transform: translateY(-1px);
    /* subtle lift effect */
}

main img {
    float: right;
    width: 40%;
    max-width: 60%;
    height: auto;
    margin: 0 0 5% 5%;
    border-radius: 5%;
}

/* 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;
}


/* Map and calendar */

.calendar-container {
    display: flex;
    flex-direction: column;
    height: 80vh; /* Ensure the container takes up the maximum space needed */
    width: 100%;
}

.calendar {
    width: 100%;
    flex-grow: 1;
    min-height: 0; /* take up all available vertical space */
    border: 0; /* essential for flex items */
}

.map-container {
    display: flex;
    flex-direction: column;
    height: 30vh; 
    width: 40%;
}

.map {
    background-color: var(--bg);
    width: 100%;
    height: 100%; /* iframe must fill the container height */
    border: 0; 
}