/* =========================================================
   COOKIE CONSENT
   ========================================================= */
html.cs-lock,
body.cs-lock{ overflow:hidden; }
html.cs-lock{ scrollbar-gutter:stable; }
body.cs-lock{ overscroll-behavior:contain; }

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

/* Banner */
.cs-banner{
    position:fixed;
    top:50%;
    left:50%;
    z-index:1650;
    width:min(520px,calc(100vw - 2rem));
    max-height:calc(100vh - 2rem);
    max-height:calc(100dvh - 2rem);
    overflow-y:auto;
    padding:2rem;
    background:#0F1928;
    color:#F5F1EB;
    border:1px solid rgba(255,255,255,0.1);
    border-top:3px solid #C9A84C;
    border-radius:8px;
    box-shadow:0 24px 70px rgba(15,25,40,0.5);
    opacity:0;
    visibility:hidden;
    transform:translate(-50%,-47%) scale(0.98);
    transition:opacity 0.3s, transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.3s;
}
.cs-banner.cs-is-visible{
    opacity:1;
    visibility:visible;
    transform:translate(-50%,-50%) scale(1);
    transition:opacity 0.3s, transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0s;
}
.cs-banner:focus{ outline:none; }
.cs-banner__title{
    font-family:'Playfair Display',serif;
    font-size:1.15rem;
    font-weight:600;
    line-height:1.3;
    color:#F5F1EB;
    margin:0 0 0.6rem;
}
.cs-banner__text{
    font-size:0.875rem;
    line-height:1.6;
    color:rgba(245,241,235,0.78);
    margin:0 0 1.25rem;
}
.cs-banner__text a{
    color:#C9A84C;
    text-decoration:underline;
    text-underline-offset:3px;
}
.cs-banner__text a:hover{ color:#F5F1EB; }
.cs-banner__actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0.6rem;
}
.cs-banner__actions .cs-banner__manage{ grid-column:1 / -1; }

/* Overlay + modal */
.cs-overlay{
    position:fixed;
    inset:0;
    z-index:1600;
    background:rgba(15,25,40,0.6);
    opacity:0;
    visibility:hidden;
    transition:opacity 0.28s, visibility 0s linear 0.28s;
}
.cs-overlay.cs-is-open{
    opacity:1;
    visibility:visible;
    transition:opacity 0.28s, visibility 0s linear 0s;
}

.cs-modal{
    position:fixed;
    top:50%;
    left:50%;
    z-index:1700;
    display:flex;
    flex-direction:column;
    width:min(720px,calc(100vw - 2rem));
    max-height:calc(100vh - 2rem);
    max-height:calc(100dvh - 2rem);
    background:#ffffff;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 24px 70px rgba(15,25,40,0.4);
    opacity:0;
    visibility:hidden;
    transform:translate(-50%,-47%) scale(0.98);
    transition:opacity 0.3s, transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.3s;
}
.cs-modal.cs-is-open{
    opacity:1;
    visibility:visible;
    transform:translate(-50%,-50%) scale(1);
    transition:opacity 0.3s, transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0s;
}
.cs-modal:focus{ outline:none; }

.cs-modal__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:1.15rem 1.5rem;
    background:#0F1928;
    border-bottom:3px solid #C9A84C;
    flex-shrink:0;
}
.cs-modal__title{
    font-family:'Playfair Display',serif;
    font-size:1.2rem;
    font-weight:600;
    color:#F5F1EB;
    margin:0;
}
.cs-modal__close{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:36px;
    height:36px;
    padding:0;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.14);
    border-radius:4px;
    color:#F5F1EB;
    cursor:pointer;
    transition:background 0.18s;
}
.cs-modal__close:hover{ background:rgba(255,255,255,0.16); }
.cs-modal__close svg{ width:18px; height:18px; }

.cs-modal__body{
    flex:1;
    min-height:0;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    padding:1.25rem 1.5rem 1.5rem;
    background:#F5F1EB;
}
.cs-modal__intro{
    font-size:0.875rem;
    line-height:1.65;
    color:#4A3F30;
    margin:0 0 1.25rem;
}
.cs-modal__intro a{
    color:#1B3A5C;
    font-weight:600;
    text-decoration:underline;
    text-underline-offset:3px;
}
.cs-modal__intro a:hover{ color:#0F1928; }

.cs-modal__foot{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:0.6rem;
    padding:1rem 1.5rem;
    background:#ffffff;
    border-top:1px solid #D5CBBC;
    flex-shrink:0;
}

/* Categories */
.cs-cat{
    background:#ffffff;
    border:1px solid #D5CBBC;
    border-radius:6px;
    margin-bottom:0.75rem;
    transition:border-color 0.2s, box-shadow 0.2s;
}
.cs-cat:last-child{ margin-bottom:0; }
.cs-cat.cs-is-open{
    border-color:#B8A898;
    box-shadow:0 6px 18px rgba(15,25,40,0.06);
}
.cs-cat__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:1rem 1.1rem 0.5rem;
}
.cs-cat__btn{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:0.15rem 0.6rem;
    min-width:0;
    padding:0;
    background:none;
    border:0;
    font-family:'DM Sans',sans-serif;
    font-size:0.95rem;
    font-weight:700;
    text-align:left;
    color:#0F1928;
    cursor:pointer;
}
.cs-cat__btn:hover{ color:#1B3A5C; }
.cs-cat__chev{
    width:16px;
    height:16px;
    flex-shrink:0;
    color:#8A6A3E;
    transition:transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cs-cat.cs-is-open .cs-cat__chev{ transform:rotate(180deg); }
.cs-cat__count{
    font-size:0.75rem;
    font-weight:500;
    color:#8A7A6A;
}
.cs-cat__ctl{
    display:flex;
    align-items:center;
    gap:0.65rem;
    flex-shrink:0;
}
.cs-cat__state{
    font-size:0.75rem;
    font-weight:700;
    color:#8A6A3E;
}
.cs-cat__desc{
    font-size:0.85rem;
    line-height:1.6;
    color:#4A3F30;
    margin:0;
    padding:0 1.1rem 1rem;
}

.cs-cat__panel{
    max-height:0;
    overflow:hidden;
    visibility:hidden;
    transition:max-height 0.35s ease, visibility 0s linear 0.35s;
}
.cs-cat.cs-is-open .cs-cat__panel{
    max-height:80rem;
    visibility:visible;
    transition:max-height 0.4s ease, visibility 0s linear 0s;
}
.cs-cat__panel-inner > .cs-table-wrap{
    border-top:1px solid #E8E2D8;
    padding:0.25rem 1.1rem 0.75rem;
}

/* Cookie table */
.cs-table-wrap{ overflow-x:auto; }
.cs-table{
    width:100%;
    border-collapse:collapse;
    font-size:0.78rem;
    line-height:1.5;
    color:#2C2416;
}
.cs-table th{
    padding:0.7rem 0.75rem 0.5rem 0;
    font-size:0.68rem;
    font-weight:700;
    letter-spacing:0.12em;
    text-transform:uppercase;
    text-align:left;
    color:#8A6A3E;
    white-space:nowrap;
}
.cs-table td{
    padding:0.7rem 0.75rem 0.7rem 0;
    vertical-align:top;
    border-top:1px solid #E8E2D8;
}
.cs-table td:last-child,
.cs-table th:last-child{ padding-right:0; }
.cs-table__name{
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:0.76rem;
    font-weight:700;
    color:#0F1928;
    white-space:nowrap;
}
.cs-table__dom{
    display:block;
    color:#6B5E4E;
}

/* Switch */
.cs-switch{
    position:relative;
    display:inline-flex;
    align-items:center;
    flex-shrink:0;
    cursor:pointer;
}
.cs-switch input{
    position:absolute;
    inset:0;
    z-index:1;
    width:100%;
    height:100%;
    margin:0;
    opacity:0;
    cursor:pointer;
}
.cs-switch__track{
    position:relative;
    display:block;
    width:46px;
    height:26px;
    border-radius:26px;
    background:#B8A898;
    transition:background 0.25s;
}
.cs-switch__track::after{
    content:"";
    position:absolute;
    top:3px;
    left:3px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#ffffff;
    box-shadow:0 1px 3px rgba(15,25,40,0.3);
    transition:transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.cs-switch input:checked + .cs-switch__track{ background:#1B3A5C; }
.cs-switch input:checked + .cs-switch__track::after{ transform:translateX(20px); }
.cs-switch input:focus-visible + .cs-switch__track{
    outline:2px solid #C9A84C;
    outline-offset:2px;
}
.cs-switch input:disabled{ cursor:not-allowed; }
.cs-switch input:disabled + .cs-switch__track{ opacity:0.6; }

/* Buttons — self-contained so cookie consent works from any subfolder */
.cs-banner .btn,
.cs-modal .btn,
.cs-embed-notice .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:0.4rem;
    padding:0.6rem 1.15rem;
    font-family:'DM Sans',sans-serif;
    font-size:0.875rem;
    font-weight:600;
    line-height:1.2;
    letter-spacing:0.01em;
    text-align:center;
    text-decoration:none;
    white-space:nowrap;
    border:2px solid transparent;
    border-radius:4px;
    cursor:pointer;
    transition:background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
    -webkit-tap-highlight-color:transparent;
}

/* btn--gold */
.cs-banner .btn--gold,
.cs-modal .btn--gold,
.cs-embed-notice .btn--gold{
    background:#C9A84C;
    border-color:#C9A84C;
    color:#0F1928;
}
.cs-banner .btn--gold:hover,
.cs-modal .btn--gold:hover,
.cs-embed-notice .btn--gold:hover{
    background:#B8962F;
    border-color:#B8962F;
    color:#0F1928;
}

/* btn--primary */
.cs-banner .btn--primary,
.cs-modal .btn--primary,
.cs-embed-notice .btn--primary{
    background:#1B3A5C;
    border-color:#1B3A5C;
    color:#F5F1EB;
}
.cs-banner .btn--primary:hover,
.cs-modal .btn--primary:hover,
.cs-embed-notice .btn--primary:hover{
    background:#0F2840;
    border-color:#0F2840;
    color:#F5F1EB;
}

/* btn--outline (light — for dark backgrounds, e.g. banner) */
.cs-banner .btn--outline,
.cs-modal .btn--outline,
.cs-embed-notice .btn--outline{
    background:transparent;
    border-color:rgba(245,241,235,0.45);
    color:#F5F1EB;
}
.cs-banner .btn--outline:hover,
.cs-modal .btn--outline:hover,
.cs-embed-notice .btn--outline:hover{
    border-color:#F5F1EB;
    color:#F5F1EB;
}

/* btn--outline-dark (for light backgrounds, e.g. modal footer) */
.cs-banner .btn--outline-dark,
.cs-modal .btn--outline-dark,
.cs-embed-notice .btn--outline-dark{
    background:transparent;
    border-color:#1B3A5C;
    color:#1B3A5C;
}
.cs-banner .btn--outline-dark:hover,
.cs-modal .btn--outline-dark:hover,
.cs-embed-notice .btn--outline-dark:hover{
    background:#1B3A5C;
    border-color:#1B3A5C;
    color:#F5F1EB;
}

/* cs-btn--light (banner reject) */
.cs-banner .cs-btn--light,
.cs-modal .cs-btn--light,
.cs-embed-notice .cs-btn--light{
    background:#F5F1EB;
    border-color:#F5F1EB;
    color:#0F1928;
}
.cs-banner .cs-btn--light:hover,
.cs-modal .cs-btn--light:hover,
.cs-embed-notice .cs-btn--light:hover{
    background:#ffffff;
    border-color:#ffffff;
    color:#0F1928;
}

/* Blocked embeds */
.cs-embed-blocked{ display:none !important; }
.cs-embed-notice{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:1rem;
    width:100%;
    min-height:200px;
    aspect-ratio:16 / 9;
    padding:1.5rem;
    text-align:center;
    background:#EDE8E0;
    border:1px solid #D5CBBC;
    border-radius:6px;
}
.cs-embed-notice p{
    max-width:420px;
    margin:0;
    font-size:0.9rem;
    color:#4A3F30;
}
.cs-embed-notice__actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:0.6rem;
}

/* Focus */
.cs-banner a:focus-visible,
.cs-modal a:focus-visible,
.cs-banner .btn:focus-visible,
.cs-modal .btn:focus-visible,
.cs-embed-notice .btn:focus-visible,
.cs-cat__btn:focus-visible,
.cs-modal__close:focus-visible{
    outline:2px solid #C9A84C;
    outline-offset:2px;
}

/* Cookie consent responsive */
@media(max-width:600px){
    .cs-table thead{
        position:absolute;
        width:1px;
        height:1px;
        overflow:hidden;
        clip:rect(0,0,0,0);
    }
    .cs-table,
    .cs-table tbody,
    .cs-table tr,
    .cs-table td{ display:block; width:100%; }
    .cs-table tr{
        padding:0.7rem 0;
        border-top:1px solid #E8E2D8;
    }
    .cs-table tr:first-child{ border-top:0; }
    .cs-table td{
        padding:0.15rem 0;
        border-top:0;
    }
    .cs-table__name{
        white-space:normal;
        overflow-wrap:anywhere;
    }
    .cs-table td::before{
        content:attr(data-label);
        display:block;
        font-size:0.65rem;
        font-weight:700;
        letter-spacing:0.12em;
        text-transform:uppercase;
        color:#8A6A3E;
    }
}

@media(max-width:540px){
    .cs-banner{ padding:1.5rem 1.25rem; }

    .cs-modal{
        top:auto;
        bottom:0;
        left:0;
        width:100%;
        max-height:92vh;
        max-height:92dvh;
        border-radius:12px 12px 0 0;
        transform:translateY(100%);
    }
    .cs-modal.cs-is-open{ transform:translateY(0); }
    .cs-modal__head{ padding:1rem 1.25rem; }
    .cs-modal__body{ padding:1rem 1.25rem 1.25rem; }
    .cs-modal__foot{
        flex-direction:column;
        padding:1rem 1.25rem calc(1rem + env(safe-area-inset-bottom,0px));
    }
    .cs-modal__foot .btn{ width:100%; }

    .cs-cat__head{ padding:0.9rem 1rem 0.5rem; }
    .cs-cat__desc{ padding:0 1rem 0.9rem; }
    .cs-cat__panel-inner > .cs-table-wrap{ padding:0.25rem 1rem 0.75rem; }
}

@media(prefers-reduced-motion:reduce){
    .cs-banner,
    .cs-overlay,
    .cs-modal,
    .cs-cat,
    .cs-cat__panel,
    .cs-cat__chev,
    .cs-switch__track,
    .cs-switch__track::after{
        transition-duration:0.01ms !important;
        transition-delay:0s !important;
    }
}

    .mf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.mf-modal.is-open {
    display: flex;
}

.mf-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    animation: mfOverlayFadeIn 0.3s ease forwards;
}

.mf-modal.is-closing .mf-modal__overlay {
    animation: mfOverlayFadeOut 0.3s ease forwards;
}

.mf-modal__dialog {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px 30px 30px;
    opacity: 0;
    transform: scale(0.9);
    animation: mfDialogFadeIn 0.3s ease forwards;
}

.mf-modal.is-closing .mf-modal__dialog {
    animation: mfDialogFadeOut 0.3s ease forwards;
}

.mf-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333333;
}

.mf-modal__close:hover {
    color: #000000;
}

.mf-modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mf-modal__logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.mf-modal__intro {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #333333;
}

#mf_placeholder {
    width: 100%;
}

body.mf-modal-open {
    overflow: hidden;
}

@keyframes mfOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mfOverlayFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes mfDialogFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes mfDialogFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}

@media (max-width: 600px) {
    .mf-modal__dialog {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}