@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('material-symbols-outlined.woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.lucide {
    width: 1em;
    height: 1em;
    stroke-width: 2;
    flex: 0 0 auto;
}

/* Brand cyan is the accessible accent on deep navy surfaces. */
.bg-primary .text-tertiary,
.bg-secondary .text-tertiary,
.bg-surface-container .text-tertiary,
.bg-surface-container-high .text-tertiary,
.bg-surface-container-highest .text-tertiary {
    color: #0CC0DF;
}

.bg-primary .text-on-surface-variant,
.bg-secondary .text-on-surface-variant,
.bg-surface-container .text-on-surface-variant,
.bg-surface-container-high .text-on-surface-variant,
.bg-surface-container-highest .text-on-surface-variant {
    color: #CBD5E1;
}

.mobile-menu-icon {
    display: grid;
    gap: 4px;
    width: 24px;
    height: 20px;
    align-content: center;
}

.mobile-menu-icon > span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.isometric-grid {
    background-image:
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}
.machined-etch {
    box-shadow: inset 0 0 0 1px rgba(12, 192, 223, 0.2);
}
#mobile-nav {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
#mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    display: block !important;
}

/* Cookie Consent Banner */
#cookie-banner {
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 1000;
    width: min(960px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem - env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(12, 192, 223, 0.45);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, calc(100% + 3rem));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.35s;
}

#cookie-banner.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-banner-content {
    position: relative;
    overflow-y: auto;
    padding: 1.25rem 3.5rem 1rem 1.25rem;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(17, 17, 17, 0.98);
}

.cookie-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
}

.cookie-btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: all 0.2s;
}

@media (max-width: 639px) {
    #cookie-banner { width: calc(100% - 1rem); bottom: max(0.5rem, env(safe-area-inset-bottom)); }
    .cookie-actions { flex-direction: column-reverse; }
    .cookie-btn { width: 100%; }
}

/* Global Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #E83000;
    outline-offset: 2px;
    border-color: #E83000;
}

.bg-primary :focus-visible,
.bg-secondary :focus-visible,
.bg-surface-container :focus-visible,
.bg-surface-container-high :focus-visible,
.bg-surface-container-highest :focus-visible {
    outline-color: #0CC0DF;
    border-color: #0CC0DF;
}

/* Cross-site interaction and responsive safeguards. */
*, *::before, *::after {
    letter-spacing: 0 !important;
}

button,
[role="button"],
select,
input:not([type="checkbox"]):not([type="radio"]),
textarea {
    min-height: 44px;
}

button,
[role="button"] {
    overflow-wrap: anywhere;
}

#mobile-nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#mobile-nav {
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
}

.rounded-3xl,
.rounded-2xl {
    border-radius: 8px !important;
}

@media (max-width: 767px) {
    #phone-link-button,
    #phone-link-result {
        display: none !important;
    }

    footer a,
    footer button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .reference-nav {
        position: sticky;
        top: 64px;
        z-index: 20;
        max-height: 45dvh;
        overflow: auto;
        padding: 1rem;
        background: #fff;
        border: 1px solid #e2e8f0;
    }

    .reference-contents {
        max-height: 45dvh;
        overflow: auto;
    }
}
