/* Cookie consent banner — sipi-v10 1.0.16
 * Palette: navy bg #0D2438, gold accent #B8973E, cream text #F4EBD0.
 * Type: Cormorant for headings, DM Sans for body (matches existing tokens).
 * Banner is bottom-fixed, accessible, ~3KB compiled. */

.sipi-cb {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: #0D2438;
    color: #F4EBD0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
    border-top: 2px solid #B8973E;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    padding: 0;
}
.sipi-cb[hidden] { display: none; }

.sipi-cb__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sipi-cb__head { display: flex; flex-direction: column; gap: 0.5rem; }

.sipi-cb__title {
    font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #F4EBD0;
    letter-spacing: 0.005em;
}

.sipi-cb__desc {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(244, 235, 208, 0.92);
}

.sipi-cb__link {
    color: #B8973E;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sipi-cb__link:hover,
.sipi-cb__link:focus-visible {
    color: #d4b25a;
    outline: none;
}

/* Options panel: collapsed by default */
.sipi-cb__options {
    border: 1px solid rgba(184, 151, 62, 0.3);
    border-radius: 4px;
    padding: 0.875rem 1rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.sipi-cb__options[hidden] { display: none; }

.sipi-cb__legend {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.0625rem;
    color: #B8973E;
    padding: 0 0.375rem;
    font-weight: 600;
}

.sipi-cb__opt {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    padding: 0.25rem 0;
}
.sipi-cb__opt input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: #B8973E;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}
.sipi-cb__opt input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.7; }
.sipi-cb__opt input[type="checkbox"]:focus-visible {
    outline: 2px solid #B8973E;
    outline-offset: 2px;
}
.sipi-cb__opt-label {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-size: 0.875rem;
}
.sipi-cb__opt-label strong {
    font-weight: 600;
    color: #F4EBD0;
    font-size: 0.9375rem;
}
.sipi-cb__opt-help {
    color: rgba(244, 235, 208, 0.7);
    font-size: 0.8125rem;
}

/* Action buttons */
.sipi-cb__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: flex-end;
    align-items: center;
}

.sipi-cb__btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 2px;
    border: 1px solid transparent;
    padding: 0.5625rem 1.125rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.sipi-cb__btn[hidden] { display: none; }

.sipi-cb__btn--primary {
    background: #B8973E;
    color: #0D2438;
    border-color: #B8973E;
}
.sipi-cb__btn--primary:hover,
.sipi-cb__btn--primary:focus-visible {
    background: #d4b25a;
    border-color: #d4b25a;
    outline: none;
}

.sipi-cb__btn--secondary {
    background: transparent;
    color: #F4EBD0;
    border-color: rgba(244, 235, 208, 0.5);
}
.sipi-cb__btn--secondary:hover,
.sipi-cb__btn--secondary:focus-visible {
    background: rgba(244, 235, 208, 0.08);
    border-color: #F4EBD0;
    outline: none;
}

.sipi-cb__btn--ghost {
    background: transparent;
    color: #B8973E;
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-right: auto;
}
.sipi-cb__btn--ghost:hover,
.sipi-cb__btn--ghost:focus-visible {
    color: #d4b25a;
    outline: none;
}
.sipi-cb__btn:focus-visible {
    outline: 2px solid #d4b25a;
    outline-offset: 2px;
}

/* Footer "Cookie settings" trigger */
.sipi-cb-trigger {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    padding: 0;
}
.sipi-cb-trigger:hover,
.sipi-cb-trigger:focus-visible {
    color: #B8973E;
    outline: none;
}

/* Responsive: stack actions on mobile */
@media (max-width: 640px) {
    .sipi-cb__inner { padding: 1rem 1rem; }
    .sipi-cb__title { font-size: 1.25rem; }
    .sipi-cb__actions { flex-direction: column; align-items: stretch; }
    .sipi-cb__btn--ghost { margin-right: 0; text-align: left; }
    .sipi-cb__btn { width: 100%; }
}


/* WCAG 2.5.5 touch targets (2026-06-03 launch a11y S4) - consent UI
 * controls measured sub-44px (btn 37h, link 20h, footer trigger 18h).
 * Consent actions in particular must be comfortably tappable. */
.sipi-cb__btn     { min-height: 44px; }
.sipi-cb__link    { min-height: 44px; display: inline-flex; align-items: center; }
.sipi-cb-trigger  { min-height: 44px; display: inline-flex; align-items: center; }