/* ═══════════════════════════════════════════════════════════════════════════════════
   GLOBAL STYLES - MSI Risk Assessment Tool
   This stylesheet contains site-wide CSS for consistent styling across all pages.
   ═══════════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Global Typography using Adobe Kit */
    font-family: "proxima-nova", sans-serif;
}

:root,
body {
    font-family: "proxima-nova", sans-serif !important;
}

body {
    background-color: #f8f9fa;
    margin: 0;
    color: #333;
}

/* Ensure Web Awesome components inherit the font */
wa-input,
wa-button,
wa-checkbox,
wa-card {
    --wa-font-sans: "proxima-nova", sans-serif;
    font-family: "proxima-nova", sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */

.msi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEXT UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */

.bold {
    font-weight: 700 !important;
}

/* Special handling for Web Awesome buttons (Shadow DOM) */
wa-button.bold::part(base) {
    font-weight: 700;
}

.semi-bold {
    font-weight: 600 !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-muted {
    color: #6b7280 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VISIBILITY HELPERS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .hide-on-small {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .hide-on-medium {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .show-on-small-only {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .show-on-medium-only {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL SECONDARY BUTTON STYLING (neutral outline variant)
   White background, grey border, grey text (#545868)
   ═══════════════════════════════════════════════════════════════════════════ */

wa-button[variant="neutral"][outline] {
    --wa-color-neutral-600: #545868;
    --wa-color-neutral-700: #3d4150;
}

wa-button[variant="neutral"][outline]::part(base) {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #545868;
}

wa-button[variant="neutral"][outline]::part(base):hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #3d4150;
}

wa-button[variant="neutral"][outline]::part(base):active {
    background-color: #f3f4f6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL TEXT BUTTON STYLING (text variant)
   White background, grey border, grey text (#545868)
   ═══════════════════════════════════════════════════════════════════════════ */

wa-button[variant="text"] {
    --wa-color-neutral-600: #545868;
    --wa-color-neutral-700: #3d4150;
}

wa-button[variant="text"]::part(base) {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #545868;
}

wa-button[variant="text"]::part(base):hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #3d4150;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL CIRCULAR/ICON BUTTON STYLING
   Grey icon buttons for social links, etc.
   ═══════════════════════════════════════════════════════════════════════════ */

wa-button[circle] {
    --wa-color-neutral-600: #545868;
    --wa-color-neutral-700: #3d4150;
}

wa-button[circle]::part(base) {
    background-color: #f1f5f9;
    color: #545868;
    border: 1px solid #e2e8f0;
}

wa-button[circle]::part(base):hover {
    background-color: #e2e8f0;
    color: #3d4150;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LINK UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */

a.global-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

a.global-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

wa-button.wow-launch {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

wa-button.wow-launch:hover {
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER DARK THEME COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Dark Header Buttons (Glassy/Dark style) - specificity boosted */
wa-button.header-dark-btn::part(base) {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

wa-button.header-dark-btn::part(base):hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

wa-button.header-dark-btn::part(base):active {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

/* Dark Dropdown Panel - via CSS Variables (penetrates Shadow DOM) */
/* Dark Dropdown Panel - via CSS Variables (penetrates Shadow DOM) */
/* Dark Dropdown Panel */
wa-dropdown.header-dark-dropdown {
    --wa-color-surface-raised: #1f2937;
    --wa-color-surface-border: #374151;
    --wa-color-text-normal: #e5e7eb;
    --wa-shadow-m: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    color-scheme: dark;
    /* Force dark mode for component internals */
}

/* Force variables for all states to glassy/transparent */
wa-dropdown.header-dark-dropdown wa-dropdown-item {
    --wa-color-neutral-fill-hover: rgba(255, 255, 255, 0.1);
    --wa-color-neutral-text-hover: #ffffff;
    --wa-color-neutral-fill-active: rgba(255, 255, 255, 0.15);
    --wa-color-neutral-text-active: #ffffff;
    --wa-color-neutral-fill-focus: rgba(255, 255, 255, 0.1);
    --wa-color-neutral-text-focus: #ffffff;
    --wa-color-neutral-fill-checked: rgba(255, 255, 255, 0.1);
    --wa-color-neutral-text-checked: #ffffff;
    cursor: pointer;
}

/* Ensure Panel is Dark */
wa-dropdown.header-dark-dropdown::part(panel) {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

/* BASE ITEM STYLE: Default Text Color & Transparent Background */
wa-dropdown.header-dark-dropdown wa-dropdown-item::part(base) {
    color: #e5e7eb !important;
    background-color: transparent !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* INTERACTION STATES: Force Host Background + Part Background to Glassy */
wa-dropdown.header-dark-dropdown wa-dropdown-item:hover,
wa-dropdown.header-dark-dropdown wa-dropdown-item:focus-visible {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    outline: none !important;
}

wa-dropdown.header-dark-dropdown wa-dropdown-item::part(base):hover,
wa-dropdown.header-dark-dropdown wa-dropdown-item::part(base):focus-visible,
wa-dropdown.header-dark-dropdown wa-dropdown-item::part(base):active {
    background-color: inherit !important;
    /* Inherit form host */
    color: #ffffff !important;
}

/* Fix for all icons including fa-kit */
wa-dropdown.header-dark-dropdown wa-dropdown-item wa-icon,
wa-dropdown.header-dark-dropdown wa-dropdown-item i,
wa-dropdown.header-dark-dropdown wa-dropdown-item .fa-kit {
    color: #9ca3af !important;
    transition: color 0.15s ease;
}

wa-dropdown.header-dark-dropdown wa-dropdown-item:hover wa-icon,
wa-dropdown.header-dark-dropdown wa-dropdown-item:hover i,
wa-dropdown.header-dark-dropdown wa-dropdown-item:hover .fa-kit,
wa-dropdown.header-dark-dropdown wa-dropdown-item[checked] wa-icon,
wa-dropdown.header-dark-dropdown wa-dropdown-item[active] wa-icon {
    color: #ffffff !important;
}

wa-dropdown.header-dark-dropdown wa-divider {
    --color: #374151 !important;
    border-color: #374151 !important;
}