/* ── Variables ────────────────────────────────────────────── */
:root {
    --mc-red:         #8d0000;
    --mc-red-dark:    #630000;
    --mc-sand:        #837056;
    --mc-sand-dark:   #5c4f3d;
    --mc-white:       #ffffff;
    --mc-black:       #1a1a1a;
    --mc-col:         600px;
    --mc-2col:        calc(var(--mc-col) * 1.41421356); /* col × √2 */
    --mc-gap:         2rem;
    --mc-max-width:   calc(var(--mc-2col) + var(--mc-gap)); /* outer wrap = 2col + gap */
    --mc-font-size:   1rem; /* 16px — change here to scale all rem values */
    --mc-header-height: 4rem;
    --mc-sand-light:     #ccb59a;
}

html {
    scrollbar-gutter: stable;
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--mc-font-size);
    line-height: 1.6;
    color: var(--mc-black);
    background: var(--mc-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

iframe {
    border: 0;
}

.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;
}

/* ── Links ───────────────────────────────────────────────── */
a {
    color: var(--mc-red);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    color: var(--mc-red-dark);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 1rem;
}

* + h1, * + h2, * + h3,
* + h4, * + h5, * + h6 {
    margin-top: 2rem;
}

h1 + h2, h2 + h3, h3 + h4,
h4 + h5, h5 + h6 {
    margin-top: 0.5rem;
}

h1 { font-size: 2.5rem;  }
h2 { font-size: 2rem;    }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem;  }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; font-weight: 400; }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ── Constrained wrapper ──────────────────────────────────── */
.mc-wrap {
    max-width: var(--mc-max-width);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ── Header ───────────────────────────────────────────────── */
#mc-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: var(--mc-white);
    border-bottom: 1px solid #e0e0e0;
}

#mc-header .mc-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--mc-header-height);
}

/* ── Logo ─────────────────────────────────────────────────── */
#mc-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

#mc-logo img {
    height: 1.25rem;
    width: auto;
}

/* ── Nav toggle (hamburger, mobile only) ─────────────────────── */
#mc-nav-toggle {
    display: none;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

#mc-nav-toggle .mc-nav-toggle-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: var(--mc-black);
    transition: transform 0.2s ease;
}

#mc-nav-toggle .mc-nav-toggle-bar-top {
    transform: translate(-50%, -50%) translateY(-5px);
}

#mc-nav-toggle .mc-nav-toggle-bar-bottom {
    transform: translate(-50%, -50%) translateY(5px);
}

body.mc-nav-open #mc-nav-toggle .mc-nav-toggle-bar-top {
    transform: translate(-50%, -50%) rotate(45deg);
}

body.mc-nav-open #mc-nav-toggle .mc-nav-toggle-bar-bottom {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ── Navigation ───────────────────────────────────────────── */

#mc-nav {
    display: flex;
    align-self: stretch;
}

#mc-nav ul {
    display: flex;
    gap: 0;
    list-style: none;
}

#mc-nav ul li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: .5rem 1rem;

    color: var(--mc-black);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
}

#mc-nav ul li > a:hover {
    color: var(--mc-red);
}

#mc-nav ul li.current > a,
#mc-nav ul li.active > a {
    color: var(--mc-red);
}

#mc-nav .mod-menu__sub {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    justify-content: center;
    padding: 1.5rem;
    background: var(--mc-white);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    opacity: 0;
    transition: opacity 0.2s ease, display 0.2s ease allow-discrete;
}

#mc-nav li.deeper:hover > .mod-menu__sub {
    display: flex;
    opacity: 1;
}

@starting-style {
    #mc-nav li.deeper:hover > .mod-menu__sub {
        opacity: 0;
    }
}

#mc-nav .mod-menu__sub a {
    color: var(--mc-black);
    text-transform: none;
    font-weight: 500;
}

#mc-nav .mc-nav-panel-title {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding-right: 2rem;
    border-right: 1px solid #e0e0e0;

    color: var(--mc-black);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: right;
}

#mc-nav .mc-nav-panel-children {
    padding-left: 2rem;
}

#mc-nav .mc-nav-panel-children-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
#mc-hero {
    width: 100%;
}

.mc-hero-inner {
    position: relative;
    padding: 6rem 1.5rem;
    background-size: cover;
    background-position: center;
    color: var(--mc-white);
    text-align: center;
}

.mc-hero-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.mc-hero-inner > * {
    position: relative;
    z-index: 1;
}

.mc-hero-inner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mc-hero-inner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.mc-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--mc-white);
    color: var(--mc-sand);
    text-decoration: none;
    font-weight: bold;
}

.mc-btn:hover {
    opacity: 0.85;
}

/* ── Main ─────────────────────────────────────────────────── */
#mc-main {
    background: var(--mc-white);
    padding-block: 2rem;
}

/* ── Article ──────────────────────────────────────────────── */
.com-content-article {
    display: grid;
    grid-template-columns: 1fr min(var(--mc-col), 100%) 1fr;
}

.com-content-article > * {
    grid-column: 2;
}

/* body spans full width and repeats the grid so .wide children can break out */
.com-content-article__body {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr min(var(--mc-col), 100%) 1fr;
}

.com-content-article__body > * {
    grid-column: 2;
}

.com-content-article__body > .wide {
    grid-column: 1 / -1;
}

/* ── FAQ accordion ───────────────────────────────────────────────── */
.com-content-article__body details.mc-faq {
    border-bottom: 1px solid #e0e0e0;
}

.com-content-article__body details.mc-faq > summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem 1rem 0;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.com-content-article__body details.mc-faq > summary::-webkit-details-marker {
    display: none;
}

.com-content-article__body details.mc-faq > summary::before,
.com-content-article__body details.mc-faq > summary::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 14px;
    height: 2px;
    background: var(--mc-black);
    transform: translate(0, -50%);
    transition: transform 0.2s ease;
}

.com-content-article__body details.mc-faq > summary::after {
    transform: translate(0, -50%) rotate(90deg);
}

.com-content-article__body details.mc-faq[open] > summary::after {
    transform: translate(0, -50%) rotate(0deg);
}

.com-content-article__body details.mc-faq > summary + * {
    overflow: hidden;
    margin: 0;
    padding-bottom: 1rem;
}

/* ── Language switcher ────────────────────────────────────── */
.mc-lang-switcher ul {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mc-lang-switcher img {
    display: block;
    width: 28px;
    height: 21px;
    border-radius: 2px;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.mc-lang-switcher li.active img,
.mc-lang-switcher a:hover img {
    opacity: 1;
}

.mc-lang-switcher a {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 5px solid transparent;
    transition: border-color 0.15s;
}

.mc-lang-switcher li.active a,
.mc-lang-switcher a:hover {
    border-bottom-color: var(--mc-white);
}

/* ── Footer ───────────────────────────────────────────────── */
#mc-footer {
    flex: 1;
    min-height: 50vh;
    background-color: var(--mc-sand);
    background-image: url('../images/contours_light_transparent.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 50% 100%;
    color: var(--mc-white);
    padding-block: 2.5rem;
}

#mc-footer a {
    color: var(--mc-white);
}

/* ── Credit bar ───────────────────────────────────────────── */
#mc-credit {
    background: var(--mc-sand-dark);
    color: var(--mc-white);
    font-size: 0.8rem;
    text-align: center;
}

#mc-credit .mc-wrap {
    padding-block: 0.75rem;
}

#mc-credit a {
    color: var(--mc-white);
}

/* ── Two-column grid (each col = 300√2 px, total = 600√2 px) ─ */
.mc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: var(--mc-gap);
    max-width: calc(var(--mc-2col) + var(--mc-gap));
    margin-inline: auto;
}

/* ── Embeds ───────────────────────────────────────────────── */
.video-on-page-embed-container {
    width: 100%;
    max-width: calc(var(--mc-2col) + var(--mc-gap));
    margin-inline: auto;
    aspect-ratio: 16 / 9;
}

.video-on-page-embed {
    width: 100%;
    height: 100%;
}

/* ── Mobile (below the two-column breakpoint) ─────────────── */
@media (max-width: 900px) {
    .mc-grid-2 {
        grid-template-columns: 1fr;
        max-width: var(--mc-col);
    }

    /* Hamburger becomes visible */
    #mc-nav-toggle {
        display: block;
    }

    /* Nav becomes a full-height white drawer below the header */
    #mc-nav {
        position: fixed;
        inset: var(--mc-header-height) 0 0 0;
        background: var(--mc-white);
        border-top: 1px solid #e0e0e0;
        overflow-y: auto;
        display: none;
        opacity: 0;
        transition: opacity 0.2s ease, display 0.2s ease allow-discrete;
    }

    body.mc-nav-open #mc-nav {
        display: flex;
        opacity: 1;
    }

    @starting-style {
        body.mc-nav-open #mc-nav {
            opacity: 0;
        }
    }

    body.mc-nav-open {
        overflow: hidden;
    }

    #mc-nav ul {
        flex-direction: column;
        width: 100%;
    }

    /* Only top-level items get a divider — a nested li's own border
       would sit right against its parent's and look doubled-up. */
    #mc-nav > ul > li {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #e0e0e0;
    }

    #mc-nav ul li > a {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    /* Submenu: always shown below its parent, no toggle/animation */
    #mc-nav .mod-menu__sub {
        position: static;
        display: flex;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: none;
        border: 0;
        padding: 0;
        flex-direction: column;
    }

    #mc-nav .mc-nav-panel-title {
        display: none;
    }

    #mc-nav .mc-nav-panel-children {
        padding-left: 0;
    }

    #mc-nav .mc-nav-panel-children-list a {
        padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    }
}

/* ── Icons ────────────────────────────────────────────────── */
.mc-i {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--mc-i) center / contain no-repeat;
            mask: var(--mc-i) center / contain no-repeat;
}

.mc-i-brand-facebook  { --mc-i: url("../icons/brand-facebook.svg"); }
.mc-i-brand-instagram { --mc-i: url("../icons/brand-instagram.svg"); }

/* ── Sponsors ─────────────────────────────────────────────── */
#mc-sponsors {
    padding-block: 3rem;
}

#mc-sponsors .mc-wrap {
    max-width: var(--mc-max-width);
}

div.mc-lined {
    display: flex;
    align-items: center;
    margin: 2rem 0 1rem;
}

div.mc-lined::before,
div.mc-lined::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--mc-sand-light);
}

span.mc-lined {
    color: var(--mc-sand);
    font-size: 0.7rem;
    padding: 0 0.5rem;
}

.mc-sponsor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 1.5rem;
}

.mc-sponsor-platinum { --mc-sponsor-cols: 6; }
.mc-sponsor-gold     { --mc-sponsor-cols: 7; }
.mc-sponsor-silver   { --mc-sponsor-cols: 8; }
.mc-sponsor-bronze   { --mc-sponsor-cols: 9; }

.mc-sponsor > * {
    display: grid;
    place-items: center;
    flex: 0 0 calc(100% / var(--mc-sponsor-cols));
    aspect-ratio: 2 / 1;
}

.mc-sponsor > * > img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
}

/* ── Map ──────────────────────────────────────────────────── */
.mc-map {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 320px;
}

.mc-map-label {
    --mc-map-label-r: 12px;
    position: relative;
    height: calc(var(--mc-map-label-r) * 2);
}

.mc-map-label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: var(--mc-map-label-r);
    height: var(--mc-map-label-r);
    background: var(--mc-red);
    transform: translate(calc(var(--mc-map-label-r) * (1 - 1.41421356) / 2), -50%) rotate(45deg);
}

.mc-map-label-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    background: var(--mc-red);
    color: var(--mc-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0 0.75rem 0 0.75rem;
    border-radius: 999px;
}

.mc-map-label-body:hover {
    color: var(--mc-white);
}
