/* eR33t analytics controls: shared public shell styling. */
:root {
    --er33t-analytics-bg: #030707;
    --er33t-analytics-surface: #0b120d;
    --er33t-analytics-fg: #f5f7f5;
    --er33t-analytics-muted: #c7d0c7;
    --er33t-analytics-signal: #9dff22;
    --er33t-analytics-ink: #071006;
    --er33t-analytics-border: rgba(157, 255, 34, .46);
    --er33t-analytics-display: 'Chakra Petch', 'Space Grotesk', system-ui, sans-serif;
    --er33t-analytics-body: 'Space Grotesk', system-ui, sans-serif;
}

.er33t-analytics-consent,
.er33t-analytics-preferences {
    font-family: var(--er33t-analytics-body) !important;
}

.er33t-analytics-consent {
    background: var(--er33t-analytics-surface) !important;
    color: var(--er33t-analytics-fg) !important;
    border: 1px solid var(--er33t-analytics-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .55) !important;
    line-height: 1.5 !important;
}

.er33t-analytics-consent strong {
    color: var(--er33t-analytics-fg);
    font-family: var(--er33t-analytics-display);
    font-size: 1rem;
    letter-spacing: -.015em;
}

.er33t-analytics-consent p {
    color: var(--er33t-analytics-muted);
}

.er33t-analytics-consent a {
    color: var(--er33t-analytics-signal) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.er33t-analytics-consent button,
.er33t-analytics-preferences {
    min-height: 44px;
    border: 1px solid var(--er33t-analytics-signal) !important;
    border-radius: 4px !important;
    padding: .6rem .85rem !important;
    background: transparent !important;
    color: var(--er33t-analytics-fg) !important;
    font-family: var(--er33t-analytics-body);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
}

.er33t-analytics-consent button[data-analytics-consent="grant"],
.er33t-analytics-preferences[data-analytics-preferences="grant"] {
    background: var(--er33t-analytics-signal) !important;
    color: var(--er33t-analytics-ink) !important;
}

.er33t-analytics-consent button:hover,
.er33t-analytics-consent button:focus-visible,
.er33t-analytics-preferences:hover,
.er33t-analytics-preferences:focus-visible {
    background: rgba(157, 255, 34, .16) !important;
    color: var(--er33t-analytics-fg) !important;
}

.er33t-analytics-consent button[data-analytics-consent="grant"]:hover,
.er33t-analytics-consent button[data-analytics-consent="grant"]:focus-visible,
.er33t-analytics-preferences[data-analytics-preferences="grant"]:hover,
.er33t-analytics-preferences[data-analytics-preferences="grant"]:focus-visible {
    background: #b7ff69 !important;
    color: var(--er33t-analytics-ink) !important;
}

.er33t-analytics-consent button:focus-visible,
.er33t-analytics-preferences:focus-visible {
    outline: 3px solid var(--er33t-analytics-signal) !important;
    outline-offset: 3px;
}

.er33t-analytics-preferences {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: .75rem 0 0;
    background: transparent !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .er33t-analytics-preferences {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .er33t-analytics-consent,
    .er33t-analytics-preferences {
        scroll-behavior: auto;
        transition: none !important;
    }
}
