:root {
    --udc-ink: #172033;
    --udc-navy: #00365f;
    --udc-blue: #004b87;
    --udc-soft-blue: #326b9f;
    --udc-red: #004b87;
    --udc-gold: #f2a900;
    --udc-green: #16835d;
    --udc-paper: #f7f8fb;
    --udc-line: rgba(23, 32, 51, 0.1);
    --udc-shadow: 0 24px 70px rgba(18, 55, 114, 0.14);
}

* {
    letter-spacing: 0;
}

body.udc-app-shell,
body.udc-public-home,
body.udc-auth-page {
    color: var(--udc-ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(244, 191, 47, 0.16), transparent 28rem),
        radial-gradient(circle at 92% 3%, rgba(0, 75, 135, 0.14), transparent 30rem),
        linear-gradient(180deg, #ffffff 0%, #f6f8fc 48%, #edf3f7 100%);
}

.dark body.udc-app-shell,
.dark body.udc-public-home,
.dark body.udc-auth-page,
body.udc-app-shell.dark,
body.udc-public-home.dark,
body.udc-auth-page.dark {
    color: #eef4ff;
    background:
        radial-gradient(circle at 18% 8%, rgba(244, 191, 47, 0.12), transparent 28rem),
        radial-gradient(circle at 88% 2%, rgba(0, 75, 135, 0.18), transparent 31rem),
        linear-gradient(180deg, #08111f 0%, #0f172a 56%, #111827 100%);
}

.udc-topbar {
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 14px 40px rgba(18, 55, 114, 0.08);
}

.dark .udc-topbar {
    background: rgba(9, 17, 31, 0.86) !important;
}

.udc-brand-mark {
    background: linear-gradient(135deg, var(--udc-navy), var(--udc-blue));
    box-shadow: 0 14px 34px rgba(0, 75, 135, 0.25);
}

.udc-sidebar {
    background:
        linear-gradient(180deg, rgba(18, 55, 114, 0.97), rgba(9, 27, 57, 0.98)) !important;
    color: #e9f3ff;
    border-right: 0 !important;
}

.udc-sidebar nav a {
    color: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid transparent;
}

.udc-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: translateX(3px);
}

.udc-sidebar .sidebar-item-active {
    background: rgba(244, 191, 47, 0.16) !important;
    color: #ffffff !important;
    border: 1px solid rgba(244, 191, 47, 0.38) !important;
    border-right: 0 !important;
    box-shadow: inset 4px 0 0 var(--udc-gold);
}

.udc-sidebar .border-t,
.udc-sidebar .border-slate-200,
.udc-sidebar .border-slate-700,
.udc-sidebar .border-slate-800 {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.udc-sidebar .bg-primary\/5,
.udc-sidebar .dark\:bg-primary\/10 {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.udc-main {
    background: transparent !important;
}

.udc-app-shell .bg-white,
.udc-app-shell .dark\:bg-slate-800,
.udc-app-shell .dark\:bg-gray-800 {
    box-shadow: 0 18px 55px rgba(18, 55, 114, 0.08);
}

.udc-app-shell input,
.udc-app-shell select,
.udc-app-shell textarea,
.udc-public-home input,
.udc-public-home select,
.udc-public-home textarea,
.udc-auth-page input,
.udc-auth-page select,
.udc-auth-page textarea {
    border-radius: 0.75rem !important;
}

.udc-app-shell button,
.udc-app-shell a,
.udc-public-home button,
.udc-public-home a,
.udc-auth-page button,
.udc-auth-page a {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.udc-app-shell main table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 1rem;
}

.udc-app-shell main thead {
    background: linear-gradient(90deg, rgba(18, 55, 114, 0.1), rgba(244, 191, 47, 0.13));
}

.udc-app-shell main th {
    color: var(--udc-navy);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dark .udc-app-shell main th {
    color: #bfdbfe;
}

.udc-app-shell main td,
.udc-app-shell main th {
    border-color: rgba(18, 55, 114, 0.09) !important;
}

.udc-app-shell main tbody tr {
    transition: background-color 160ms ease, transform 160ms ease;
}

.udc-app-shell main tbody tr:hover {
    background: rgba(0, 75, 135, 0.05);
}

.udc-app-shell main form,
.udc-app-shell main .overflow-x-auto,
.udc-app-shell main .bg-gray-50,
.udc-app-shell main .dark\:bg-gray-700\/50,
.udc-app-shell main .dark\:bg-slate-700\/50 {
    border-radius: 1.25rem;
}

.udc-app-shell main input:focus,
.udc-app-shell main select:focus,
.udc-app-shell main textarea:focus,
.udc-auth-page input:focus,
.udc-auth-page select:focus,
.udc-auth-page textarea:focus {
    border-color: rgba(0, 75, 135, 0.7) !important;
    box-shadow: 0 0 0 4px rgba(0, 75, 135, 0.12) !important;
}

.udc-app-shell main button[type="submit"],
.udc-app-shell main a[href*="create"],
.udc-app-shell main a[href*="edit"],
.udc-auth-page button[type="submit"] {
    box-shadow: 0 16px 36px rgba(18, 55, 114, 0.18);
}

.udc-auth-page .hero-gradient {
    background:
        linear-gradient(135deg, rgba(6, 18, 39, 0.9), rgba(0, 54, 95, 0.82) 52%, rgba(0, 75, 135, 0.58)),
        url("/public/uploads/avatars/main.png") !important;
    background-size: cover !important;
    background-position: center !important;
}

.udc-auth-page .hero-gradient::after {
    content: "";
    position: absolute;
    inset: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2rem;
    pointer-events: none;
}

.udc-auth-page .flex-1.bg-background-light,
.udc-auth-page .flex-1.dark\:bg-background-dark {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(18px);
}

.dark .udc-auth-page .flex-1.bg-background-light,
.dark .udc-auth-page .flex-1.dark\:bg-background-dark {
    background: rgba(15, 23, 42, 0.78) !important;
}

.udc-auth-page .max-w-md > form {
    border: 1px solid rgba(18, 55, 114, 0.09);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    padding: 1.25rem;
    box-shadow: 0 24px 70px rgba(18, 55, 114, 0.12);
}

.dark .udc-auth-page .max-w-md > form {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.72);
}

.udc-card,
.udc-admin-card,
.udc-action-card,
.udc-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(18, 55, 114, 0.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--udc-shadow);
}

.dark .udc-card,
.dark .udc-admin-card,
.dark .udc-action-card,
.dark .udc-panel {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.82);
}

.udc-card::before,
.udc-admin-card::before,
.udc-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(242, 169, 0, 0.13), transparent 34%, rgba(0, 75, 135, 0.1));
    opacity: 0;
    transition: opacity 220ms ease;
}

.udc-card:hover::before,
.udc-admin-card:hover::before,
.udc-panel:hover::before {
    opacity: 1;
}

.udc-card:hover,
.udc-admin-card:hover,
.udc-action-card:hover {
    transform: translateY(-4px);
}

.udc-gradient-text {
    color: transparent;
    background: linear-gradient(90deg, var(--udc-navy), var(--udc-blue), var(--udc-gold));
    -webkit-background-clip: text;
    background-clip: text;
}

.udc-hero-home {
    min-height: min(760px, calc(100vh - 72px));
    background-size: cover;
    background-position: center;
}

.udc-hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 18, 39, 0.88) 0%, rgba(0, 54, 95, 0.68) 52%, rgba(0, 75, 135, 0.22) 100%),
        linear-gradient(0deg, rgba(6, 18, 39, 0.72), transparent 45%);
}

.udc-hero-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.udc-public-home header {
    box-shadow: 0 14px 40px rgba(18, 55, 114, 0.08);
}

.udc-public-home section {
    scroll-margin-top: 96px;
}

.udc-ribbon {
    background: linear-gradient(90deg, var(--udc-blue), var(--udc-soft-blue), var(--udc-gold));
}

.udc-mobile-nav {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(18px);
}

.dark .udc-mobile-nav {
    background: rgba(9, 17, 31, 0.9) !important;
}

@media (max-width: 768px) {
    .udc-sidebar {
        width: min(88vw, 22rem) !important;
        box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
    }

    .udc-hero-home {
        min-height: 680px;
    }
}

/* Professional UI refinement */
:root {
    --udc-ink: #172033;
    --udc-navy: #00365f;
    --udc-blue: #004b87;
    --udc-soft-blue: #326b9f;
    --udc-red: #004b87;
    --udc-gold: #f2a900;
    --udc-green: #16835d;
    --udc-paper: #f4f6f8;
    --udc-line: #dfe4ea;
    --udc-shadow: 0 10px 30px rgba(20, 39, 68, 0.08);
}

body.udc-app-shell,
body.udc-public-home,
body.udc-auth-page {
    background: var(--udc-paper);
}

.dark body.udc-app-shell,
.dark body.udc-public-home,
.dark body.udc-auth-page,
body.udc-app-shell.dark,
body.udc-public-home.dark,
body.udc-auth-page.dark {
    background: #101722;
}

.udc-topbar {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: none;
    border-color: var(--udc-line) !important;
}

.udc-brand-mark {
    background: #fff;
    border: 1px solid var(--udc-line);
    box-shadow: none;
}

.udc-gradient-text {
    color: var(--udc-navy);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.udc-sidebar {
    width: 17rem !important;
    background: #00365f !important;
}

.udc-sidebar nav {
    padding: 1rem 0.75rem;
}

.udc-sidebar nav a {
    min-height: 2.75rem;
    border-radius: 6px !important;
    padding: 0.65rem 0.8rem !important;
    font-size: 0.875rem;
}

.udc-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: none;
}

.udc-sidebar .sidebar-item-active {
    background: #fff !important;
    color: var(--udc-navy) !important;
    border: 0 !important;
    box-shadow: inset 3px 0 0 var(--udc-gold);
}

.udc-main > .max-w-7xl,
.udc-main > .max-w-6xl,
.udc-main > .max-w-5xl {
    max-width: 90rem;
}

.udc-card,
.udc-admin-card,
.udc-action-card,
.udc-panel {
    border-color: var(--udc-line);
    border-radius: 8px !important;
    box-shadow: var(--udc-shadow);
}

.udc-card::before,
.udc-admin-card::before,
.udc-panel::before {
    display: none;
}

.udc-card:hover,
.udc-admin-card:hover,
.udc-action-card:hover {
    border-color: rgba(36, 90, 150, 0.3);
    box-shadow: 0 12px 34px rgba(20, 39, 68, 0.12);
}

.udc-page-intro {
    border-radius: 8px !important;
    background: #15365f !important;
    box-shadow: 0 12px 34px rgba(16, 43, 78, 0.2) !important;
}

.udc-page-intro > .absolute {
    display: none;
}

.udc-page-intro a,
.udc-page-intro .rounded-2xl {
    border-radius: 6px !important;
}

.udc-app-shell main table {
    border-radius: 8px;
    border: 1px solid var(--udc-line);
    background: #fff;
}

.udc-app-shell main thead {
    background: #f1f4f7;
}

.udc-app-shell main th {
    color: #526173;
    font-size: 0.7rem;
}

.udc-app-shell main td,
.udc-app-shell main th {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.udc-app-shell main input,
.udc-app-shell main select,
.udc-app-shell main textarea,
.udc-auth-page input,
.udc-auth-page select,
.udc-auth-page textarea {
    border-radius: 6px !important;
    border-color: #cfd6df !important;
}

.udc-app-shell main button,
.udc-app-shell main a[href*="create"],
.udc-app-shell main a[href*="edit"],
.udc-auth-page button {
    border-radius: 6px !important;
}

.udc-icon-button {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #526173;
}

.udc-icon-button:hover {
    background: #f1f4f7;
    border-color: var(--udc-line);
}

.udc-public-header {
    box-shadow: 0 4px 18px rgba(20, 39, 68, 0.06);
}

.udc-public-header nav a {
    letter-spacing: 0;
}

.udc-mobile-menu-link {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 6px;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 700;
}

.udc-mobile-menu-link:hover {
    background: #f1f4f7;
    color: var(--udc-navy);
}

.udc-auth-page .hero-gradient {
    background:
        linear-gradient(135deg, rgba(9, 29, 53, 0.92), rgba(21, 54, 95, 0.84)),
        url("/public/uploads/avatars/main.png") !important;
    background-size: cover !important;
    background-position: center !important;
}

.udc-auth-page .hero-gradient::after {
    inset: 1.5rem;
    border-radius: 8px;
}

.udc-auth-page .max-w-md > form {
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 14px 40px rgba(20, 39, 68, 0.1);
}

footer a:hover {
    text-decoration: none;
}

@media (max-width: 767px) {
    .udc-topbar .px-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .udc-topbar .gap-6 {
        gap: 0.5rem;
    }

    .udc-sidebar {
        width: min(88vw, 19rem) !important;
    }
}

/* Contact page */
.udc-contact-hero {
    background: linear-gradient(120deg, #00365f 0%, #004b87 68%, #326b9f 100%);
}

.udc-contact-office,
.udc-contact-form-wrap {
    border-radius: 8px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 12px 32px rgba(0, 54, 95, 0.1);
}

.udc-contact-office {
    background: #00365f;
    color: #fff;
}

.udc-contact-office > .material-symbols-outlined {
    color: #f2a900;
    font-size: 2.7rem;
}

.udc-contact-office h2,
.udc-contact-form-wrap h2 {
    margin-top: 0.8rem;
    font-family: Montserrat, sans-serif;
    font-size: 1.55rem;
    font-weight: 900;
}

.udc-contact-office strong,
.udc-contact-office span,
.udc-contact-office a {
    display: block;
}

.udc-contact-office strong {
    margin-bottom: 0.35rem;
    color: #f2c54d;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.udc-contact-office a {
    color: #fff !important;
}

.udc-contact-form-wrap {
    border: 1px solid #d7e0e8;
    background: #fff;
}

.udc-contact-form-wrap h2 {
    color: #004b87;
}

.udc-contact-form-wrap label {
    color: #26354a;
    font-weight: 800;
}

.udc-contact-form-wrap input,
.udc-contact-form-wrap textarea {
    width: 100%;
    margin-top: 0.5rem;
    border: 1px solid #bdcbd8;
    border-radius: 6px;
    background: #fff;
    color: #172033;
}

.udc-contact-form-wrap input:focus,
.udc-contact-form-wrap textarea:focus {
    border-color: #004b87;
    --tw-ring-color: rgba(0, 75, 135, 0.2);
}

.udc-contact-submit {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 6px;
    background: #004b87;
    padding: 0.85rem 1.5rem;
    color: #fff;
    font-weight: 900;
}

.udc-contact-submit:hover {
    background: #00365f;
}

html.dark .udc-contact-form-wrap {
    border-color: #34475c;
    background: #172535;
}

html.dark .udc-contact-form-wrap h2,
html.dark .udc-contact-form-wrap label {
    color: #f8fafc;
}

/* Shared color utilities for pages without a local Tailwind color config. */
.bg-primary { background-color: var(--udc-navy) !important; }
.bg-accent { background-color: var(--udc-blue) !important; }
.bg-gold, .bg-secondary { background-color: var(--udc-gold) !important; }
.text-primary { color: var(--udc-navy) !important; }
.text-accent { color: var(--udc-blue) !important; }
.text-gold, .text-secondary { color: var(--udc-gold) !important; }
.border-primary { border-color: var(--udc-navy) !important; }
.border-accent { border-color: var(--udc-blue) !important; }
.hover\:bg-primary:hover { background-color: var(--udc-navy) !important; }
.hover\:text-primary:hover { color: var(--udc-navy) !important; }
.focus\:ring-primary:focus { --tw-ring-color: rgba(24, 59, 107, 0.25) !important; }

.udc-action-navy,
.udc-action-red,
.udc-action-gold {
    color: #fff;
    transition: background-color 180ms ease, transform 180ms ease;
}

.udc-action-navy { background: #183b6b; }
.udc-action-red { background: #004b87; }
.udc-action-gold { background: #f2a900; color: #172033; }

.udc-action-navy:hover { background: #123055; }
.udc-action-red:hover { background: #00365f; }
.udc-action-gold:hover { background: #d99a00; }

.udc-action-gold .text-white\/80,
.udc-action-gold .text-white\/85,
.udc-action-gold .text-white\/60 {
    color: rgba(23, 32, 51, 0.78) !important;
}

.udc-official-page .udc-public-header {
    background: #101b28 !important;
    border-bottom: 1px solid rgba(125, 157, 190, 0.2);
    box-shadow: none;
}

.udc-official-page .udc-public-brand-title,
.udc-official-page .udc-public-brand-subtitle,
.udc-official-page .udc-primary-nav a {
    color: #eef6ff !important;
}

.udc-official-page .udc-brand-lockup::after {
    display: block;
    width: 1px;
    height: 58px;
    margin-left: 1.25rem;
    background: rgba(158, 183, 209, 0.32);
    content: "";
}

.udc-official-page .udc-theme-toggle,
.udc-official-page .udc-header-language,
.udc-official-page .udc-header-menu {
    min-width: 4.25rem;
    height: 4.25rem;
    border-color: rgba(158, 183, 209, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.udc-official-page .udc-theme-toggle .material-symbols-outlined {
    color: #f2c230;
}

.udc-official-page .udc-header-language {
    min-width: 6.8rem;
}

.udc-official-page .udc-header-menu .material-symbols-outlined,
.udc-official-page .udc-header-language .material-symbols-outlined {
    font-size: 2rem;
}

.udc-official-hero {
    background: #00406b;
}

.udc-official-hero-overlay {
    background:
        radial-gradient(circle at 74% 2%, rgba(65, 133, 185, 0.24), transparent 35rem),
        radial-gradient(circle at 12% 48%, rgba(18, 90, 143, 0.46), transparent 28rem),
        linear-gradient(135deg, #00456f 0%, #00406b 45%, #07395f 100%);
}

.udc-official-source-pill,
.udc-official-status-card {
    border: 1px solid rgba(191, 220, 244, 0.22);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.1);
}

.udc-official-status-card {
    backdrop-filter: blur(16px);
}

.udc-official-stat {
    background: rgba(191, 220, 244, 0.13);
}

.udc-official-search-wrap {
    margin-top: -3.75rem;
}

.udc-official-search-wrap::before {
    position: absolute;
    top: 3.75rem;
    right: 0;
    left: 0;
    height: 0.55rem;
    background: #f2b705;
    content: "";
}

.udc-official-search-panel {
    position: relative;
    border: 1px solid rgba(191, 220, 244, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(48, 96, 139, 0.22), transparent 28rem),
        #111c2b;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.udc-official-page .udc-card,
.udc-official-page .udc-panel {
    border-color: rgba(191, 220, 244, 0.18);
}

@media (max-width: 767px) {
    .udc-official-page .udc-brand-lockup::after {
        height: 50px;
        margin-left: 1rem;
    }

    .udc-official-page .udc-theme-toggle,
    .udc-official-page .udc-header-language,
    .udc-official-page .udc-header-menu {
        min-width: 3.5rem;
        height: 3.5rem;
        border-radius: 10px;
    }

    .udc-official-page .udc-header-language {
        min-width: 5.4rem;
    }
}

.udc-ribbon {
    background: var(--udc-navy);
    border-left: 6px solid var(--udc-red);
    border-right: 6px solid var(--udc-gold);
}

/* Keep operational pages neutral; reserve bright colors for meaning. */
.udc-app-shell main .bg-cyan-600,
.udc-app-shell main .bg-blue-600,
.udc-app-shell main .bg-indigo-600 {
    background-color: var(--udc-navy) !important;
}

.udc-app-shell main .hover\:bg-cyan-700:hover,
.udc-app-shell main .hover\:bg-blue-700:hover,
.udc-app-shell main .hover\:bg-indigo-700:hover {
    background-color: #102f57 !important;
}

.udc-app-shell main .text-cyan-600,
.udc-app-shell main .text-blue-600,
.udc-app-shell main .text-indigo-600,
.udc-app-shell main .text-purple-600,
.udc-app-shell main .text-violet-600 {
    color: var(--udc-navy) !important;
}

.udc-app-shell main .bg-cyan-100,
.udc-app-shell main .bg-blue-100,
.udc-app-shell main .bg-indigo-100,
.udc-app-shell main .bg-purple-100,
.udc-app-shell main .bg-violet-100 {
    background-color: #e8eef5 !important;
}

.udc-public-home footer,
.udc-public-home main > section:nth-last-of-type(even):not(.udc-hero-home) {
    border-color: var(--udc-line);
}

.dark .bg-primary { background-color: #2b5f98 !important; }
.dark .text-primary { color: #8eb8e4 !important; }
.dark .border-primary { border-color: #5687ba !important; }
.dark .udc-official-hero-overlay { background: #101f34; }

.dark .udc-app-shell main .bg-cyan-600,
.dark .udc-app-shell main .bg-blue-600,
.dark .udc-app-shell main .bg-indigo-600 {
    background-color: #2b5f98 !important;
}

/* Contrast contracts: foreground colors must remain legible on every surface. */
.udc-app-shell .bg-white,
.udc-public-home .bg-white,
.udc-auth-page .bg-white {
    color: #172033 !important;
}

.udc-app-shell .bg-primary,
.udc-public-home .bg-primary,
.udc-auth-page .bg-primary,
.udc-app-shell .bg-accent,
.udc-public-home .bg-accent,
.udc-auth-page .bg-accent,
.udc-app-shell .bg-slate-950,
.udc-public-home .bg-slate-950,
.udc-auth-page .bg-slate-950,
.udc-app-shell .bg-slate-900,
.udc-public-home .bg-slate-900,
.udc-auth-page .bg-slate-900 {
    color: #fff !important;
}

.udc-app-shell .bg-gold,
.udc-public-home .bg-gold,
.udc-auth-page .bg-gold,
.udc-app-shell .bg-secondary,
.udc-public-home .bg-secondary,
.udc-auth-page .bg-secondary {
    color: #172033 !important;
}

/* Tailwind CDN emits dark utilities after this file; explicitly lock both sides. */
.dark .udc-app-shell .dark\:bg-slate-700,
.dark .udc-public-home .dark\:bg-slate-700,
.dark .udc-auth-page .dark\:bg-slate-700,
.dark .udc-app-shell .dark\:bg-gray-700,
.dark .udc-public-home .dark\:bg-gray-700,
.dark .udc-auth-page .dark\:bg-gray-700 {
    background-color: #273244 !important;
    color: #f8fafc !important;
}

.dark .udc-app-shell .dark\:bg-slate-800,
.dark .udc-public-home .dark\:bg-slate-800,
.dark .udc-auth-page .dark\:bg-slate-800,
.dark .udc-app-shell .dark\:bg-gray-800,
.dark .udc-public-home .dark\:bg-gray-800,
.dark .udc-auth-page .dark\:bg-gray-800 {
    background-color: #1b2534 !important;
    color: #f8fafc !important;
}

.dark .udc-app-shell .dark\:bg-slate-900,
.dark .udc-public-home .dark\:bg-slate-900,
.dark .udc-auth-page .dark\:bg-slate-900,
.dark .udc-app-shell .dark\:bg-gray-900,
.dark .udc-public-home .dark\:bg-gray-900,
.dark .udc-auth-page .dark\:bg-gray-900 {
    background-color: #121b28 !important;
    color: #f8fafc !important;
}

.dark .udc-app-shell .dark\:text-white,
.dark .udc-public-home .dark\:text-white,
.dark .udc-auth-page .dark\:text-white {
    color: #fff !important;
}

.dark .udc-app-shell .dark\:text-slate-300,
.dark .udc-public-home .dark\:text-slate-300,
.dark .udc-auth-page .dark\:text-slate-300,
.dark .udc-app-shell .dark\:text-gray-300,
.dark .udc-public-home .dark\:text-gray-300,
.dark .udc-auth-page .dark\:text-gray-300 {
    color: #dbe3ec !important;
}

.dark .udc-app-shell .dark\:text-slate-400,
.dark .udc-public-home .dark\:text-slate-400,
.dark .udc-auth-page .dark\:text-slate-400,
.dark .udc-app-shell .dark\:text-gray-400,
.dark .udc-public-home .dark\:text-gray-400,
.dark .udc-auth-page .dark\:text-gray-400 {
    color: #bac6d4 !important;
}

.udc-app-shell input,
.udc-app-shell select,
.udc-app-shell textarea,
.udc-public-home input,
.udc-public-home select,
.udc-public-home textarea,
.udc-auth-page input,
.udc-auth-page select,
.udc-auth-page textarea {
    background-color: #fff;
    color: #172033 !important;
}

.dark .udc-app-shell input,
.dark .udc-app-shell select,
.dark .udc-app-shell textarea,
.dark .udc-public-home input,
.dark .udc-public-home select,
.dark .udc-public-home textarea,
.dark .udc-auth-page input,
.dark .udc-auth-page select,
.dark .udc-auth-page textarea {
    background-color: #202c3d !important;
    color: #f8fafc !important;
    border-color: #526173 !important;
}

.udc-card,
.udc-admin-card,
.udc-action-card,
.udc-panel {
    color: #172033;
}

.dark .udc-card,
.dark .udc-admin-card,
.dark .udc-action-card,
.dark .udc-panel {
    color: #f8fafc;
}

/* Public header and official-library contrast fixes. */
.udc-public-brand-title,
.udc-public-desktop-nav {
    color: #172033 !important;
}

.udc-public-brand-subtitle {
    color: #59687b !important;
}

.dark .udc-public-brand-title,
.dark .udc-public-desktop-nav {
    color: #f8fafc !important;
}

.dark .udc-public-brand-subtitle {
    color: #bac6d4 !important;
}

.udc-content-directory {
    background: #fff !important;
    color: #172033 !important;
}

.udc-content-directory-link {
    background: #eef2f6 !important;
    color: #253348 !important;
}

.udc-content-directory-link:hover {
    background: #e2e9f1 !important;
    color: var(--udc-navy) !important;
}

.udc-directory-label {
    color: #253348 !important;
}

.udc-directory-count {
    color: #526173 !important;
}

.dark .udc-content-directory {
    background: #1b2534 !important;
    color: #fff !important;
}

.dark .udc-content-directory-link {
    background: #111a28 !important;
}

.dark .udc-directory-label {
    color: #f8fafc !important;
}

.dark .udc-directory-count {
    color: #c0cad6 !important;
}

/* New shared public footer. */
.udc-site-footer {
    position: relative;
    margin-top: 3.5rem;
    background: #274d91;
    color: #fff !important;
    border-top: 5px solid var(--udc-gold);
}

.udc-footer-logo-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border: 4px solid #fff;
    border-radius: 50%;
    background: #274d91;
    box-shadow: 0 10px 28px rgba(10, 26, 52, 0.2);
}

.udc-footer-logo {
    width: 4.8rem;
    height: 4.8rem;
    object-fit: contain;
}

.udc-footer-title {
    margin-bottom: 1.25rem;
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 800;
}

.udc-footer-copy {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.75;
}

.udc-footer-copy a {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.udc-footer-input {
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.udc-footer-input::placeholder {
    color: rgba(255, 255, 255, 0.72) !important;
}

.udc-footer-button {
    margin-top: 0.75rem;
    min-height: 3rem;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    background: #fff;
    color: #183b6b;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.udc-footer-button:hover {
    background: #f1f4f7;
}

.udc-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 800;
}

.udc-footer-stat {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.udc-footer-stat dd {
    color: #fff;
    font-weight: 900;
}

.udc-site-footer > div,
.udc-site-footer p,
.udc-site-footer dt,
.udc-site-footer dd {
    color: inherit;
}

/* Sidebar owns its foreground palette; global utility colors must not leak in. */
.udc-sidebar {
    color: #f4f7fb !important;
}

.udc-sidebar nav a:not(.sidebar-item-active) {
    color: #c5d1df !important;
}

.udc-sidebar nav a:not(.sidebar-item-active) .material-symbols-outlined,
.udc-sidebar nav a:not(.sidebar-item-active) span {
    color: inherit !important;
}

.udc-sidebar nav a:not(.sidebar-item-active):hover {
    color: #fff !important;
}

.udc-sidebar nav .sidebar-item-active,
.udc-sidebar nav .sidebar-item-active span,
.udc-sidebar nav .sidebar-item-active .material-symbols-outlined {
    color: #183b6b !important;
}

.udc-sidebar nav p,
.udc-sidebar nav .text-slate-400,
.udc-sidebar nav .text-slate-500 {
    color: #92a8c0 !important;
}

.udc-sidebar > div:last-child {
    color: #f4f7fb !important;
}

.udc-sidebar > div:last-child > div {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.udc-sidebar > div:last-child p,
.udc-sidebar > div:last-child .text-primary,
.udc-sidebar > div:last-child .text-slate-500 {
    color: #e4ebf3 !important;
}

.udc-sidebar > div:last-child .bg-primary {
    background: #d9a928 !important;
}

.udc-sidebar > div:last-child > a {
    color: #c5d1df !important;
}

.udc-sidebar > div:last-child > a:hover {
    color: #fff !important;
}

/* Official UDC pages use the same visual language as the homepage. */
.udc-public-desktop-nav .udc-nav-active {
    position: relative;
    color: var(--udc-navy) !important;
}

.udc-news-button {
    min-height: 2.65rem;
    border-radius: 6px;
    background: var(--udc-blue);
    box-shadow: 0 8px 20px rgba(0, 75, 135, 0.18);
}

.udc-news-button:hover {
    background: var(--udc-navy);
    transform: translateY(-1px);
}

.udc-official-page .udc-news-button {
    box-shadow: inset 0 0 0 2px var(--udc-gold), 0 8px 20px rgba(0, 75, 135, 0.18);
}

.udc-public-desktop-nav .udc-nav-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.65rem;
    height: 3px;
    background: var(--udc-red);
}

.dark .udc-public-desktop-nav .udc-nav-active {
    color: #fff !important;
}

.udc-official-page main {
    background: #f4f6f8;
}

.dark .udc-official-page main {
    background: #101722;
}

.udc-official-hero,
.udc-official-detail-hero {
    background: #102b4e;
    border-bottom: 5px solid var(--udc-gold);
}

.udc-official-hero-overlay {
    background: linear-gradient(115deg, #09182b 0%, #00365f 72%, #326b9f 100%);
}

.udc-official-detail-hero > img {
    opacity: 0.3 !important;
}

.udc-official-detail-hero > .absolute:not(img) {
    background: linear-gradient(90deg, rgba(9, 24, 43, 0.98), rgba(0, 54, 95, 0.88), rgba(50, 107, 159, 0.52)) !important;
}

.udc-official-page .udc-panel,
.udc-official-page .udc-card {
    border: 1px solid #dfe4ea;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 39, 68, 0.08);
}

.udc-official-page .udc-panel:hover,
.udc-official-page .udc-card:hover {
    border-color: rgba(24, 59, 107, 0.28);
}

.udc-official-source-card {
    background: #102b4e;
    border-left: 5px solid var(--udc-gold);
    box-shadow: 0 12px 30px rgba(16, 43, 78, 0.18);
}

.udc-official-page input[type="search"] {
    background: #fff !important;
    color: #172033 !important;
    border-color: #cfd6df !important;
}

.udc-official-page article .text-accent,
.udc-official-page section .text-accent {
    color: var(--udc-red) !important;
}

.udc-official-page .prose a {
    color: var(--udc-navy);
    font-weight: 700;
}

.dark .udc-official-page .udc-panel,
.dark .udc-official-page .udc-card {
    border-color: #334155;
    background: #1b2534;
}

.dark .udc-official-page input[type="search"] {
    background: #202c3d !important;
    color: #f8fafc !important;
    border-color: #526173 !important;
}

@media (max-width: 1023px) {
    .udc-mobile-menu-link[href="/official"] {
        border-left: 3px solid var(--udc-red);
    }
}

.udc-app-shell .text-slate-400,
.udc-public-home .text-slate-400,
.udc-auth-page .text-slate-400 {
    color: #627084 !important;
}

.udc-app-shell .text-slate-500,
.udc-public-home .text-slate-500,
.udc-auth-page .text-slate-500,
.udc-app-shell .text-gray-500,
.udc-public-home .text-gray-500,
.udc-auth-page .text-gray-500 {
    color: #526173 !important;
}

.udc-app-shell .text-slate-600,
.udc-public-home .text-slate-600,
.udc-auth-page .text-slate-600,
.udc-app-shell .text-gray-600,
.udc-public-home .text-gray-600,
.udc-auth-page .text-gray-600 {
    color: #3f4b5a !important;
}

.dark .udc-app-shell .text-slate-400,
.dark .udc-public-home .text-slate-400,
.dark .udc-auth-page .text-slate-400,
.dark .udc-app-shell .text-gray-400,
.dark .udc-public-home .text-gray-400,
.dark .udc-auth-page .text-gray-400 {
    color: #c0cad6 !important;
}

.dark .udc-app-shell .text-slate-500,
.dark .udc-public-home .text-slate-500,
.dark .udc-auth-page .text-slate-500,
.dark .udc-app-shell .text-gray-500,
.dark .udc-public-home .text-gray-500,
.dark .udc-auth-page .text-gray-500 {
    color: #aeb9c7 !important;
}

.dark .udc-app-shell .text-slate-600,
.dark .udc-public-home .text-slate-600,
.dark .udc-auth-page .text-slate-600,
.dark .udc-app-shell .text-gray-600,
.dark .udc-public-home .text-gray-600,
.dark .udc-auth-page .text-gray-600 {
    color: #cbd5e1 !important;
}

.udc-app-shell .text-white\/60,
.udc-public-home .text-white\/60,
.udc-auth-page .text-white\/60,
.udc-app-shell .text-white\/65,
.udc-public-home .text-white\/65,
.udc-auth-page .text-white\/65 {
    color: rgba(255, 255, 255, 0.78) !important;
}

.udc-app-shell input::placeholder,
.udc-public-home input::placeholder,
.udc-auth-page input::placeholder,
.udc-app-shell textarea::placeholder,
.udc-public-home textarea::placeholder,
.udc-auth-page textarea::placeholder {
    color: #6b7788 !important;
    opacity: 1;
}

.dark .udc-app-shell input::placeholder,
.dark .udc-public-home input::placeholder,
.dark .udc-auth-page input::placeholder,
.dark .udc-app-shell textarea::placeholder,
.dark .udc-public-home textarea::placeholder,
.dark .udc-auth-page textarea::placeholder {
    color: #aeb9c7 !important;
}

/* Institutional charter baseline - V1.0, March 2024. */
:root {
    --udc-ink: #333333;
    --udc-navy: #004b87;
    --udc-blue: #004b87;
    --udc-red: #004b87;
    --udc-gold: #f2a900;
    --udc-paper: #f5f5f5;
    --udc-line: #d7dee5;
    --udc-shadow: 0 10px 28px rgba(0, 75, 135, 0.09);
}

body.udc-app-shell,
body.udc-public-home,
body.udc-auth-page {
    background: var(--udc-paper) !important;
    color: var(--udc-ink);
    font-family: Roboto, "Open Sans", Arial, sans-serif;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: Montserrat, Helvetica, Arial, sans-serif !important;
}

.bg-primary { background-color: var(--udc-blue) !important; }
.text-primary { color: var(--udc-blue) !important; }
.border-primary { border-color: var(--udc-blue) !important; }
.text-gold { color: var(--udc-gold) !important; }
.bg-gold { background-color: var(--udc-gold) !important; }

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--udc-gold) !important;
    outline-offset: 3px;
    box-shadow: none !important;
}

.udc-public-header {
    min-height: 96px;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 2px solid var(--udc-blue, #004b87) !important;
}

.udc-public-header img {
    filter: none !important;
    box-shadow: none !important;
}

.udc-theme-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dee5;
    border-radius: 8px;
    background: #ffffff;
    color: #004b87;
}

.udc-theme-toggle:hover {
    border-color: #004b87;
    background: #eef5fa;
}

.dark .udc-theme-toggle {
    border-color: #526173;
    background: #1b2534;
    color: #f2a900;
}

.udc-public-brand-title,
.udc-public-brand-subtitle,
.udc-public-desktop-nav a {
    color: #333333 !important;
}

.udc-public-desktop-nav a:hover,
.udc-mobile-menu-link:hover {
    color: var(--udc-blue) !important;
    text-decoration: underline;
    text-decoration-color: var(--udc-gold);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.udc-sidebar {
    background: var(--udc-blue) !important;
}

.udc-sidebar nav a:not(.sidebar-item-active),
.udc-sidebar nav p,
.udc-sidebar nav .text-slate-400,
.udc-sidebar nav .text-slate-500 {
    color: #ffffff !important;
}

.udc-sidebar .sidebar-item-active,
.udc-sidebar .sidebar-item-active span,
.udc-sidebar .sidebar-item-active .material-symbols-outlined {
    color: #00365f !important;
}

.udc-sidebar .sidebar-item-active {
    box-shadow: inset 4px 0 0 var(--udc-gold) !important;
}

.udc-card,
.udc-admin-card,
.udc-action-card,
.udc-panel,
.udc-app-shell main form,
.udc-app-shell main table {
    border-radius: 8px !important;
}

.udc-official-hero,
.udc-official-detail-hero,
.udc-official-source-card,
.udc-site-footer {
    background: var(--udc-blue) !important;
}

.udc-official-hero-overlay,
.udc-official-detail-hero > .absolute:not(img) {
    background: rgba(0, 54, 95, 0.82) !important;
}

.udc-site-footer {
    border-top-color: var(--udc-gold) !important;
}

.udc-footer-button {
    background: var(--udc-gold);
    color: #172033;
}

.udc-news-button {
    background: var(--udc-gold);
    color: #172033;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dashboard palette contract. Keep authenticated surfaces coherent in both modes. */
body.udc-app-shell {
    background: #f4f6f8 !important;
    color: #172033 !important;
}

.udc-app-shell .udc-main {
    background: #f4f6f8 !important;
}

.udc-app-shell .udc-sidebar {
    background: #004b87 !important;
    color: #ffffff !important;
}

.udc-app-shell .udc-sidebar nav a:not(.sidebar-item-active) {
    color: rgba(255, 255, 255, 0.88) !important;
}

.udc-app-shell .udc-sidebar nav a:not(.sidebar-item-active):hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.udc-app-shell .udc-sidebar .sidebar-item-active,
.udc-app-shell .udc-sidebar .sidebar-item-active span,
.udc-app-shell .udc-sidebar .sidebar-item-active .material-symbols-outlined {
    background: #ffffff !important;
    color: #00365f !important;
}

.udc-app-shell .udc-sidebar .sidebar-item-active {
    border: 0 !important;
    border-left: 4px solid #f2a900 !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14) !important;
}

.udc-dashboard-hero {
    border-radius: 8px !important;
    border-top: 4px solid #f2a900;
    background: #004b87 !important;
    box-shadow: 0 14px 34px rgba(0, 75, 135, 0.2);
}

html:not(.dark) .udc-app-shell .udc-card,
html:not(.dark) .udc-app-shell .udc-admin-card,
html:not(.dark) .udc-app-shell .udc-action-card,
html:not(.dark) .udc-app-shell .udc-panel {
    background: #ffffff !important;
    border-color: #d7dee5 !important;
    color: #172033 !important;
    box-shadow: 0 8px 24px rgba(0, 75, 135, 0.08);
}

html:not(.dark) .udc-app-shell main .bg-white,
html:not(.dark) .udc-app-shell main .dark\:bg-slate-800,
html:not(.dark) .udc-app-shell main .dark\:bg-gray-800 {
    background-color: #ffffff !important;
    color: #172033 !important;
}

html.dark body.udc-app-shell {
    background: #101722 !important;
    color: #f8fafc !important;
}

html.dark .udc-app-shell .udc-main {
    background: #101722 !important;
}

html.dark .udc-app-shell .udc-sidebar {
    background: #00365f !important;
}

html.dark .udc-app-shell .udc-card,
html.dark .udc-app-shell .udc-admin-card,
html.dark .udc-app-shell .udc-action-card,
html.dark .udc-app-shell .udc-panel {
    background: #1b2534 !important;
    border-color: #39475a !important;
    color: #f8fafc !important;
}

html.dark .udc-app-shell .udc-public-header {
    background: #121b28 !important;
}

html.dark .udc-app-shell .udc-public-brand-title,
html.dark .udc-app-shell .udc-public-brand-subtitle,
html.dark .udc-app-shell .udc-public-desktop-nav a {
    color: #f8fafc !important;
}

/* Shared public navigation: a compact institutional header with clear action hierarchy. */
.udc-public-header {
    min-height: 96px;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 2px solid #d7dee5 !important;
    box-shadow: 0 10px 32px rgba(16, 47, 82, 0.09);
}

.udc-header-shell {
    min-height: 96px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.udc-brand-lockup {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 1rem;
    color: #172033;
}

.udc-brand-lockup:hover {
    color: #004b87;
}

.udc-brand-emblem {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-right: 2px solid #d7dee5;
    padding-right: 0.85rem;
}

.udc-brand-emblem img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

.udc-public-brand-title {
    color: #172033 !important;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.udc-public-brand-subtitle {
    margin-top: 0.32rem;
    color: #526173 !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.udc-primary-nav {
    align-items: center;
    align-self: stretch;
    gap: 0.3rem;
    margin-left: clamp(1rem, 2.5vw, 2.5rem);
}

.udc-primary-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 0.95rem;
    color: #2c3e50 !important;
    font-family: Montserrat, Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    white-space: nowrap;
}

.udc-primary-nav a::after {
    position: absolute;
    right: 0.8rem;
    bottom: 0;
    left: 0.8rem;
    height: 3px;
    background: #f2a900;
    content: "";
    opacity: 0;
    transform: scaleX(0.45);
    transform-origin: center;
    transition: opacity 180ms ease, transform 180ms ease;
}

.udc-primary-nav a:hover,
.udc-primary-nav a.is-active {
    color: #004b87 !important;
}

.udc-primary-nav a:hover::after,
.udc-primary-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.udc-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.udc-header-language,
.udc-header-news,
.udc-header-search,
.udc-header-donate,
.udc-header-account {
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.udc-header-language {
    display: inline-flex;
    min-width: 58px;
    border: 1px solid #d7dee5;
    background: #ffffff;
    color: #415168;
    padding: 0 0.65rem;
}

.udc-header-language:hover {
    border-color: #8ca9c2;
    background: #f4f8fb;
    color: #004b87;
}

.udc-header-language .material-symbols-outlined,
.udc-header-news .material-symbols-outlined,
.udc-header-search .material-symbols-outlined,
.udc-header-donate .material-symbols-outlined,
.udc-header-account .material-symbols-outlined {
    font-size: 1.1rem;
}

.udc-language-menu {
    overflow: hidden;
    border: 1px solid #d7dee5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(16, 47, 82, 0.16);
}

.udc-language-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 0.85rem;
    color: #26354a;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
}

.udc-language-menu button:hover {
    background: #f4f8fb;
    color: #004b87;
}

.udc-nav-dropdown {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.udc-nav-dropdown-caret {
    margin-left: 2px;
    font-size: 1.1rem !important;
    transition: transform 160ms ease;
}

.udc-nav-dropdown:hover .udc-nav-dropdown-caret,
.udc-nav-dropdown:focus-within .udc-nav-dropdown-caret {
    transform: rotate(180deg);
}

.udc-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 220px;
    padding: 0.4rem;
    border: 1px solid #d7dee5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(16, 47, 82, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.udc-nav-dropdown:hover .udc-nav-dropdown-menu,
.udc-nav-dropdown:focus-within .udc-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.udc-nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    color: #2c3e50 !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
}

.udc-nav-dropdown-menu a .material-symbols-outlined {
    font-size: 1.15rem;
}

.udc-nav-dropdown-menu a:hover,
.udc-nav-dropdown-menu a.is-active {
    background: #f4f8fb;
    color: #004b87 !important;
}

.udc-header-portrait {
    height: 44px;
    width: 44px;
    flex-shrink: 0;
    margin-left: 0.35rem;
    object-fit: contain;
}

.udc-header-news {
    display: inline-flex;
    border: 1px solid #f2a900;
    background: #f2a900;
    color: #172033 !important;
    padding: 0 0.85rem;
    box-shadow: 0 5px 14px rgba(242, 169, 0, 0.18);
}

.udc-header-news:hover {
    background: #d99500;
    border-color: #d99500;
    box-shadow: 0 8px 18px rgba(242, 169, 0, 0.25);
    transform: translateY(-1px);
}

.udc-header-search {
    display: inline-flex;
    border: 1px solid #a9bfd2;
    color: #004b87 !important;
    padding: 0 0.85rem;
}

.udc-header-search:hover {
    border-color: #004b87;
    background: #eef5fa;
}

.udc-header-donate {
    display: inline-flex;
    background: #004b87;
    color: #ffffff !important;
    padding: 0 0.9rem 0 1rem;
    box-shadow: 0 6px 16px rgba(0, 75, 135, 0.22);
}

.udc-header-donate:hover {
    background: #00365f;
    box-shadow: 0 9px 20px rgba(0, 75, 135, 0.28);
    transform: translateY(-1px);
}

.udc-header-account {
    display: inline-flex;
    min-width: 42px;
    border: 1px solid #e4eaf0;
    background: #f5f7fa;
    color: #415168 !important;
    padding: 0 0.78rem;
}

.udc-header-account:hover {
    border-color: #c5d2de;
    background: #eaf0f5;
    color: #004b87 !important;
}

.udc-header-account-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.udc-header-account-name {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.udc-account-menu {
    overflow: hidden;
    border: 1px solid #d7dee5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(16, 47, 82, 0.16);
}

.udc-account-summary {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e4eaf0;
    color: #172033;
}

.udc-account-summary span {
    color: #627084;
    font-size: 0.72rem;
}

.udc-account-menu a,
.udc-account-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    color: #334155 !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
}

.udc-account-menu a:hover,
.udc-account-menu button:hover {
    background: #f4f8fb;
    color: #004b87 !important;
}

.udc-account-menu .material-symbols-outlined {
    font-size: 1.15rem;
}

.udc-header-menu {
    border-color: #d7dee5;
    background: #ffffff;
    color: #004b87;
}

.udc-header-menu:hover {
    border-color: #8ca9c2;
    background: #f4f8fb;
}

.udc-mobile-menu {
    border-top: 1px solid #d7dee5;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(16, 47, 82, 0.1);
}

.udc-mobile-menu .material-symbols-outlined {
    font-size: 1.15rem;
}

.udc-mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 44px;
    border-left: 3px solid transparent;
    border-radius: 6px;
    color: #334155 !important;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none !important;
}

.udc-mobile-menu-link:hover,
.udc-mobile-menu-link.is-active {
    border-left-color: #f2a900;
    background: #f4f8fb;
    color: #004b87 !important;
    text-decoration: none !important;
}

@media (min-width: 1536px) {
    .udc-public-header {
        position: sticky;
    }

    .udc-mobile-menu {
        position: absolute;
        top: calc(100% + 0.6rem);
        right: max(2rem, calc((100vw - 1440px) / 2 + 2rem));
        width: min(22rem, calc(100vw - 2rem));
        overflow: hidden;
        border: 1px solid #d7dee5;
        border-radius: 10px;
    }

    .udc-mobile-menu > div {
        padding: 0.55rem !important;
    }
}

html.dark .udc-public-header,
.dark .udc-public-header {
    background: #111b28 !important;
    border-bottom-color: #304154 !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

html.dark .udc-brand-emblem,
.dark .udc-brand-emblem {
    border-right-color: #304154;
}

html.dark .udc-public-brand-title,
.dark .udc-public-brand-title,
html.dark .udc-primary-nav a,
.dark .udc-primary-nav a {
    color: #f4f7fb !important;
}

html.dark .udc-public-brand-subtitle,
.dark .udc-public-brand-subtitle {
    color: #b9c6d5 !important;
}

html.dark .udc-primary-nav a:hover,
html.dark .udc-primary-nav a.is-active,
.dark .udc-primary-nav a:hover,
.dark .udc-primary-nav a.is-active {
    color: #f2c54d !important;
}

html.dark .udc-header-language,
html.dark .udc-header-account,
html.dark .udc-header-menu,
.dark .udc-header-language,
.dark .udc-header-account,
.dark .udc-header-menu {
    border-color: #394b60;
    background: #172535;
    color: #e5edf7 !important;
}

html.dark .udc-header-language:hover,
html.dark .udc-header-account:hover,
html.dark .udc-header-menu:hover,
.dark .udc-header-language:hover,
.dark .udc-header-account:hover,
.dark .udc-header-menu:hover {
    border-color: #6c8cad;
    background: #203247;
    color: #ffffff !important;
}

html.dark .udc-language-menu,
html.dark .udc-account-menu,
html.dark .udc-mobile-menu,
html.dark .udc-nav-dropdown-menu,
.dark .udc-language-menu,
.dark .udc-account-menu,
.dark .udc-mobile-menu,
.dark .udc-nav-dropdown-menu {
    border-color: #304154;
    background: #111b28;
}

html.dark .udc-account-summary,
.dark .udc-account-summary {
    border-bottom-color: #304154;
    color: #ffffff;
}

html.dark .udc-account-summary span,
.dark .udc-account-summary span {
    color: #aeb9c7;
}

html.dark .udc-account-menu a,
html.dark .udc-account-menu button,
.dark .udc-account-menu a,
.dark .udc-account-menu button {
    color: #e5edf7 !important;
}

html.dark .udc-account-menu a:hover,
html.dark .udc-account-menu button:hover,
.dark .udc-account-menu a:hover,
.dark .udc-account-menu button:hover {
    background: #1d3044;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .udc-header-account-name {
        display: none;
    }
}

html.dark .udc-language-menu button,
html.dark .udc-mobile-menu-link,
html.dark .udc-nav-dropdown-menu a,
.dark .udc-language-menu button,
.dark .udc-mobile-menu-link,
.dark .udc-nav-dropdown-menu a {
    color: #e5edf7 !important;
}

html.dark .udc-language-menu button:hover,
html.dark .udc-mobile-menu-link:hover,
html.dark .udc-mobile-menu-link.is-active,
html.dark .udc-nav-dropdown-menu a:hover,
html.dark .udc-nav-dropdown-menu a.is-active,
.dark .udc-language-menu button:hover,
.dark .udc-mobile-menu-link:hover,
.dark .udc-mobile-menu-link.is-active,
.dark .udc-nav-dropdown-menu a:hover,
.dark .udc-nav-dropdown-menu a.is-active {
    background: #1d3044;
    color: #ffffff !important;
}

/* The cart is a dark-theme surface in the app shell, so its text must remain
   explicit instead of inheriting the public page's muted link colors. */
.udc-cart-dropdown {
    overflow: hidden;
    border: 1px solid #d7dee5;
    background: #ffffff;
    color: #26354a;
}

.udc-cart-dropdown a {
    color: #26354a !important;
    text-decoration: none !important;
}

.udc-cart-dropdown .udc-cart-item:hover {
    background: #eef4f8 !important;
    color: #00365f !important;
}

.udc-cart-dropdown .udc-cart-view {
    border-color: #004b87;
    background: #ffffff;
    color: #004b87 !important;
}

.udc-cart-dropdown .udc-cart-view:hover {
    background: #e7f0f7 !important;
    color: #00365f !important;
}

.udc-cart-dropdown .udc-cart-checkout {
    background: #004b87;
    color: #ffffff !important;
}

.udc-cart-dropdown .udc-cart-checkout:hover {
    background: #00365f !important;
    color: #ffffff !important;
}

.udc-cart-dropdown .udc-cart-continue {
    color: #004b87 !important;
}

.udc-cart-dropdown .udc-cart-continue:hover {
    color: #00365f !important;
    text-decoration: underline !important;
}

.udc-cart-dropdown .text-slate-500 {
    color: #64748b !important;
}

html.dark .udc-cart-dropdown,
.dark .udc-cart-dropdown {
    border-color: #304154;
    background: #111b28;
    color: #f8fafc;
}

html.dark .udc-cart-dropdown a,
.dark .udc-cart-dropdown a {
    color: #f8fafc !important;
}

html.dark .udc-cart-dropdown .udc-cart-item:hover,
.dark .udc-cart-dropdown .udc-cart-item:hover {
    background: #1d3044 !important;
    color: #ffffff !important;
}

html.dark .udc-cart-dropdown .udc-cart-view,
.dark .udc-cart-dropdown .udc-cart-view {
    border-color: #7db8df;
    background: #172535;
    color: #bfe3ff !important;
}

html.dark .udc-cart-dropdown .udc-cart-view:hover,
.dark .udc-cart-dropdown .udc-cart-view:hover {
    background: #24445f !important;
    color: #ffffff !important;
}

html.dark .udc-cart-dropdown .udc-cart-checkout,
.dark .udc-cart-dropdown .udc-cart-checkout {
    background: #1671ad;
    color: #ffffff !important;
}

html.dark .udc-cart-dropdown .udc-cart-checkout:hover,
.dark .udc-cart-dropdown .udc-cart-checkout:hover {
    background: #2b8bc9 !important;
    color: #ffffff !important;
}

html.dark .udc-cart-dropdown .udc-cart-continue,
.dark .udc-cart-dropdown .udc-cart-continue {
    color: #bfe3ff !important;
}

html.dark .udc-cart-dropdown .udc-cart-continue:hover,
.dark .udc-cart-dropdown .udc-cart-continue:hover {
    color: #ffffff !important;
}

html.dark .udc-cart-dropdown .text-slate-500,
.dark .udc-cart-dropdown .text-slate-500 {
    color: #bfd0e2 !important;
}

/* Homepage surface contract. Keep theme background and foreground in sync. */
html:not(.dark) body.udc-public-home {
    background: #f5f5f5 !important;
    color: #172033 !important;
}

html:not(.dark) body.udc-public-home main {
    color: #172033;
}

html:not(.dark) body.udc-public-home main .text-slate-600 {
    color: #475569 !important;
}

html:not(.dark) body.udc-public-home main .text-slate-500 {
    color: #64748b !important;
}

html.dark body.udc-public-home,
.dark body.udc-public-home {
    background: #101722 !important;
    color: #f8fafc !important;
}

html.dark body.udc-public-home main,
.dark body.udc-public-home main {
    color: #f8fafc;
}

.udc-public-home img {
    max-width: 100%;
}

/* Copy placed directly on the homepage canvas must follow that canvas theme. */
html:not(.dark) .udc-public-home .udc-home-surface-copy {
    color: #172033 !important;
}

html:not(.dark) .udc-public-home .udc-home-surface-copy h1,
html:not(.dark) .udc-public-home .udc-home-surface-copy h2,
html:not(.dark) .udc-public-home .udc-home-surface-copy h3,
html:not(.dark) .udc-public-home .udc-home-surface-copy h4 {
    color: #004b87 !important;
}

html:not(.dark) .udc-public-home .udc-home-surface-copy .text-slate-600,
html:not(.dark) .udc-public-home .udc-home-surface-copy .text-slate-500 {
    color: #475569 !important;
}

html.dark .udc-public-home .udc-home-surface-copy,
.dark .udc-public-home .udc-home-surface-copy,
html.dark .udc-public-home .udc-home-surface-copy h1,
html.dark .udc-public-home .udc-home-surface-copy h2,
html.dark .udc-public-home .udc-home-surface-copy h3,
html.dark .udc-public-home .udc-home-surface-copy h4,
.dark .udc-public-home .udc-home-surface-copy h1,
.dark .udc-public-home .udc-home-surface-copy h2,
.dark .udc-public-home .udc-home-surface-copy h3,
.dark .udc-public-home .udc-home-surface-copy h4 {
    color: #f8fafc !important;
}

html.dark .udc-public-home .udc-home-surface-copy .text-slate-600,
html.dark .udc-public-home .udc-home-surface-copy .text-slate-500,
.dark .udc-public-home .udc-home-surface-copy .text-slate-600,
.dark .udc-public-home .udc-home-surface-copy .text-slate-500 {
    color: #cbd5e1 !important;
}

/* Platform review 2: one public palette and predictable contrast on every page. */
:root {
    --udc-ink: #172033;
    --udc-navy: #00365f;
    --udc-blue: #004b87;
    --udc-blue-soft: #326b9f;
    --udc-gold: #f2a900;
    --udc-paper: #f5f7fa;
    --udc-line: #d7e0e8;
}

.udc-public-home .text-accent,
.udc-official-page .text-accent {
    color: var(--udc-blue) !important;
}

.udc-public-home .bg-accent,
.udc-official-page .bg-accent {
    background-color: var(--udc-blue) !important;
}

.udc-primary-nav a::after,
.udc-mobile-menu-link:hover,
.udc-mobile-menu-link.is-active {
    border-color: var(--udc-gold) !important;
}

.udc-primary-nav a::after {
    background: var(--udc-gold) !important;
}

.udc-header-news {
    border-color: var(--udc-gold) !important;
    background: var(--udc-gold) !important;
    color: #172033 !important;
    box-shadow: 0 5px 14px rgba(242, 169, 0, 0.2);
}

.udc-header-news:hover {
    border-color: #d99400 !important;
    background: #d99400 !important;
    color: #172033 !important;
}

.udc-brand-emblem {
    width: 72px;
    height: 68px;
    flex-basis: 72px;
}

.udc-brand-emblem img {
    max-width: 62px;
    max-height: 62px;
}

.udc-public-header,
.udc-header-shell {
    min-height: 104px;
}

.udc-official-page .udc-public-header {
    background: rgba(255, 255, 255, 0.98) !important;
}

.udc-official-page .udc-public-brand-title,
.udc-official-page .udc-primary-nav a {
    color: var(--udc-ink) !important;
}

.udc-official-page .udc-public-brand-subtitle {
    color: #526173 !important;
}

.udc-official-page .udc-theme-toggle,
.udc-official-page .udc-header-language,
.udc-official-page .udc-header-menu {
    border-color: var(--udc-line) !important;
    background: #fff !important;
    color: var(--udc-blue) !important;
}

.udc-official-page .udc-header-language .material-symbols-outlined,
.udc-official-page .udc-header-menu .material-symbols-outlined {
    color: var(--udc-blue) !important;
}

.udc-official-hero,
.udc-official-detail-hero,
.udc-official-source-card {
    background: var(--udc-blue) !important;
}

.udc-official-hero-overlay,
.udc-official-detail-hero > .absolute:not(img) {
    background: linear-gradient(120deg, #00365f 0%, #004b87 62%, #326b9f 100%) !important;
}

.udc-official-page .udc-content-directory-link.is-active,
.udc-official-page .udc-content-directory-link:hover {
    background: #e8f1f7 !important;
    color: var(--udc-navy) !important;
}

#media-results {
    scroll-margin-top: 120px;
}

.udc-home-program {
    scroll-margin-top: 120px;
}

.udc-home-mobile-social .udc-home-social-card {
    width: min(100%, 42rem);
    margin-inline: auto;
}

.udc-cookie-consent {
    border: 1px solid rgba(242, 169, 0, 0.45);
    background: #00365f;
    color: #fff;
}

.udc-cookie-consent .udc-cookie-primary {
    background: var(--udc-gold);
    color: var(--udc-navy);
}

.udc-cookie-consent .udc-cookie-primary:hover {
    background: #d99400;
}

.udc-cookie-consent .udc-cookie-secondary {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.udc-cookie-consent .udc-cookie-secondary:hover {
    border-color: var(--udc-gold);
    background: rgba(242, 169, 0, 0.14);
}

.udc-footer-input {
    border-color: rgba(255, 255, 255, 0.62) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.udc-footer-input::placeholder {
    color: rgba(255, 255, 255, 0.76) !important;
    opacity: 1;
}

/* Convention */
.udc-convention-page {
    background: var(--udc-paper);
    color: var(--udc-ink);
}

.udc-convention-hero {
    background: linear-gradient(120deg, var(--udc-navy) 0%, var(--udc-blue) 68%, var(--udc-blue-soft) 100%);
}

.udc-convention-card {
    overflow: hidden;
    border: 1px solid var(--udc-line);
    border-top: 4px solid var(--udc-gold);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 54, 95, 0.08);
}

.udc-convention-card > div > span {
    color: var(--udc-blue);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.udc-convention-card h2 {
    margin-top: 0.7rem;
    color: var(--udc-navy);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.25;
}

.udc-convention-card p {
    margin-top: 0.8rem;
    color: #526173;
    font-weight: 600;
    line-height: 1.7;
}

.udc-convention-card > div > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.1rem;
    color: var(--udc-blue) !important;
    font-weight: 900;
}

.udc-empty-state {
    display: grid;
    min-height: 260px;
    place-items: center;
    align-content: center;
    gap: 1rem;
    border: 1px dashed #9badbc;
    border-radius: 8px;
    background: #fff;
    color: #526173;
    text-align: center;
}

.udc-empty-state .material-symbols-outlined {
    color: var(--udc-blue);
    font-size: 3rem;
}

.udc-empty-state h2 {
    font-weight: 800;
}

html.dark .udc-convention-page,
.dark .udc-convention-page {
    background: #101722;
    color: #f8fafc;
}

html.dark .udc-convention-card,
html.dark .udc-empty-state {
    border-color: #34475c;
    background: #172535;
}

html.dark .udc-convention-card h2 {
    color: #f8fafc;
}

html.dark .udc-convention-card p,
html.dark .udc-empty-state {
    color: #cbd5e1;
}

/* About page */
.udc-about-hero {
    background: linear-gradient(120deg, #00365f 0%, #004b87 68%, #326b9f 100%);
}

.udc-section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(242, 169, 0, 0.55);
    border-radius: 999px;
    background: rgba(242, 169, 0, 0.13);
    padding: 0.48rem 0.8rem;
    color: #f2c54d;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.udc-section-pill .material-symbols-outlined {
    font-size: 1rem;
}

.udc-button-gold,
.udc-button-outline-light {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0.8rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.udc-button-gold {
    background: var(--udc-gold);
    color: #172033 !important;
}

.udc-button-gold:hover {
    background: #d99400;
}

.udc-button-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.udc-button-outline-light:hover {
    background: rgba(255, 255, 255, 0.18);
}

.udc-about-nav {
    position: sticky;
    top: 104px;
    z-index: 35;
    border-bottom: 1px solid var(--udc-line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(0, 54, 95, 0.08);
    backdrop-filter: blur(12px);
}

.about-nav-link {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
    color: #3f4b5a !important;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.about-nav-link:hover,
.about-nav-link.is-active {
    background: var(--udc-blue);
    color: #fff !important;
}

.udc-about-section {
    scroll-margin-top: 170px;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.udc-about-band {
    background: #edf3f7;
}

.udc-about-section h2 {
    margin-top: 1.1rem;
    color: var(--udc-blue);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.08;
}

.udc-about-lead {
    max-width: 62rem;
    margin-block: 1.1rem 2.5rem;
    color: #475569;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.8;
}

.udc-about-subtitle {
    margin-bottom: 1.25rem;
    color: var(--udc-navy);
    font-size: 1.35rem;
    font-weight: 900;
}

.udc-about-card {
    border: 1px solid var(--udc-line);
    border-top: 4px solid var(--udc-gold);
    border-radius: 8px;
    background: #fff;
    padding: 1.6rem;
    box-shadow: 0 10px 28px rgba(0, 54, 95, 0.08);
}

.udc-about-card > .material-symbols-outlined {
    color: var(--udc-blue);
    font-size: 2.2rem;
}

.udc-about-card h3,
.udc-about-feature h3,
.udc-presidency h3 {
    margin-top: 0.8rem;
    color: var(--udc-navy);
    font-size: 1.15rem;
    font-weight: 900;
}

.udc-about-card p,
.udc-about-feature p,
.udc-presidency p {
    margin-top: 0.65rem;
    color: #526173;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.75;
}

.udc-about-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #475569;
    font-weight: 700;
}

.udc-about-card li .material-symbols-outlined {
    color: var(--udc-gold);
    font-size: 1.15rem;
}

.udc-about-feature,
.udc-representation {
    border-radius: 8px;
    background: var(--udc-blue);
    padding: 2rem;
    color: #fff;
}

.udc-about-feature > .material-symbols-outlined {
    color: var(--udc-gold);
    font-size: 2.5rem;
}

.udc-about-feature h3,
.udc-about-feature p,
.udc-representation h3 {
    color: #fff;
}

.udc-about-feature a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.2rem;
    color: #f2c54d !important;
    font-weight: 900;
}

.udc-election-type {
    display: grid;
    min-height: 120px;
    place-items: center;
    gap: 0.5rem;
    border: 1px solid var(--udc-line);
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    color: var(--udc-blue);
    text-align: center;
}

.udc-representation > div > div {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.15rem;
}

.udc-representation strong,
.udc-representation span {
    display: block;
}

.udc-representation strong {
    color: var(--udc-gold);
    font-size: 2rem;
    font-weight: 900;
}

.udc-representation span {
    margin-top: 0.3rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.udc-year-badge {
    display: inline-flex;
    border-radius: 999px;
    background: #e8f1f7;
    padding: 0.35rem 0.7rem;
    color: var(--udc-blue);
    font-size: 0.75rem;
    font-weight: 900;
}

.udc-presidency {
    display: grid;
    align-items: center;
    gap: 2rem;
    border: 1px solid var(--udc-line);
    border-top: 5px solid var(--udc-gold);
    border-radius: 8px;
    background: #fff;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 12px 32px rgba(0, 54, 95, 0.09);
}

.udc-convention-badge {
    display: grid;
    gap: 0.45rem;
    border-radius: 8px;
    background: var(--udc-blue);
    padding: 1.5rem;
    color: #fff;
    text-align: center;
}

.udc-convention-badge .material-symbols-outlined {
    color: var(--udc-gold);
    font-size: 2.5rem;
}

.udc-about-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
    background: var(--udc-navy);
    padding: clamp(1.5rem, 4vw, 3rem);
    color: #fff;
}

.udc-about-cta h3 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
}

.udc-about-cta p {
    max-width: 42rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

html.dark .udc-official-page .udc-public-header {
    background: #111b28 !important;
}

html.dark .udc-official-page .udc-public-brand-title,
html.dark .udc-official-page .udc-primary-nav a {
    color: #f4f7fb !important;
}

html.dark .udc-about-nav,
html.dark .udc-about-card,
html.dark .udc-election-type,
html.dark .udc-presidency {
    border-color: #34475c;
    background: #172535;
}

html.dark .udc-about-band {
    background: #111b28;
}

html.dark .udc-about-section h2,
html.dark .udc-about-card h3,
html.dark .udc-presidency h3,
html.dark .udc-election-type {
    color: #f8fafc;
}

html.dark .udc-about-lead,
html.dark .udc-about-card p,
html.dark .udc-presidency p,
html.dark .udc-about-card li {
    color: #cbd5e1;
}

@media (min-width: 900px) {
    .udc-presidency {
        grid-template-columns: 1fr 260px;
    }
}

@media (max-width: 767px) {
    .udc-public-header,
    .udc-header-shell {
        min-height: 88px;
    }

    .udc-brand-emblem {
        width: 60px;
        height: 58px;
        flex-basis: 60px;
    }

    .udc-brand-emblem img {
        max-width: 52px;
        max-height: 52px;
    }

    .udc-about-nav {
        top: 88px;
    }

    .udc-about-section {
        scroll-margin-top: 150px;
    }
}

/* Public review pass: one palette, no red active states, stronger light-mode contrast. */
:root {
    --udc-ink: #172033;
    --udc-navy: #00365f;
    --udc-blue: #004b87;
    --udc-blue-soft: #326b9f;
    --udc-gold: #f2a900;
    --udc-red: #004b87;
    --udc-paper: #f5f7fa;
    --udc-line: #d7dee5;
}

.udc-public-header {
    background: #ffffff !important;
    border-bottom-color: #d7dee5 !important;
}

html.dark .udc-public-header,
.dark .udc-public-header {
    background: #111b28 !important;
    border-bottom-color: #34475c !important;
}

.udc-brand-emblem {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
}

.udc-brand-emblem img {
    max-width: 58px;
    max-height: 58px;
}

.udc-primary-nav a::after {
    background: var(--udc-gold) !important;
}

.udc-mobile-menu-link:hover,
.udc-mobile-menu-link.is-active {
    border-left-color: var(--udc-gold) !important;
    background: #eef4f8 !important;
    color: var(--udc-navy) !important;
}

.udc-header-news,
.udc-button-gold,
.udc-footer-button,
.udc-cookie-primary {
    background: var(--udc-gold) !important;
    border-color: var(--udc-gold) !important;
    color: #172033 !important;
}

.udc-header-news:hover,
.udc-button-gold:hover,
.udc-footer-button:hover,
.udc-cookie-primary:hover {
    background: #d99500 !important;
    border-color: #d99500 !important;
    color: #172033 !important;
}

a.bg-\[\#F2A900\],
button.bg-\[\#F2A900\],
a.bg-\[\#f2a900\],
button.bg-\[\#f2a900\],
a.bg-\[\#F2A900\]:hover,
button.bg-\[\#F2A900\]:hover,
a.bg-\[\#f2a900\]:hover,
button.bg-\[\#f2a900\]:hover {
    color: #172033 !important;
}

.udc-ribbon {
    background: var(--udc-blue) !important;
    border-left: 0 !important;
    border-right: 5px solid var(--udc-gold) !important;
}

.udc-home-surface-copy > p,
.udc-official-page .text-accent,
.udc-contact-hero p,
.udc-about-page .udc-section-pill,
.udc-official-source-pill {
    color: var(--udc-gold) !important;
}

.udc-home-program {
    scroll-margin-top: 115px;
}

.udc-home-social-section {
    background: var(--udc-paper);
}

.udc-home-social-section .udc-home-social-card {
    width: min(100%, 520px);
    margin: 0 auto;
    background: #101722 !important;
    border: 1px solid #34475c;
}

.udc-home-mobile-social {
    background: var(--udc-paper);
}

.udc-footer-input,
.udc-site-footer input,
.udc-site-footer input[type="email"] {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.udc-footer-input::placeholder,
.udc-site-footer input::placeholder {
    color: rgba(255, 255, 255, 0.78) !important;
}

.udc-official-hero,
.udc-official-detail-hero,
.udc-about-hero,
.udc-contact-hero,
.udc-convention-hero,
.udc-shop-hero {
    background: linear-gradient(120deg, #00365f 0%, #004b87 100%) !important;
}

.udc-official-hero-overlay {
    background: linear-gradient(120deg, rgba(0, 54, 95, 0.98), rgba(0, 75, 135, 0.95)) !important;
}

.udc-official-search-panel,
.udc-official-status-card,
.udc-official-stat {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.udc-content-directory-link.is-active,
.udc-content-directory-link:hover {
    background: #e8f1f7 !important;
    color: var(--udc-navy) !important;
    box-shadow: inset 4px 0 0 var(--udc-gold);
}

.udc-about-nav {
    position: sticky;
    top: 96px;
    z-index: 30;
    border-bottom: 1px solid var(--udc-line);
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
}

html.dark .udc-about-nav {
    background: rgba(17, 27, 40, 0.96) !important;
}

.about-nav-link {
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--udc-blue) !important;
    font-weight: 900;
    white-space: nowrap;
}

.about-nav-link:hover,
.about-nav-link.is-active {
    border-color: var(--udc-gold) !important;
    background: var(--udc-blue) !important;
    color: #ffffff !important;
}

.udc-about-section .udc-section-pill {
    border: 1px solid #9fb7cc !important;
    background: #e8f1f7 !important;
    color: var(--udc-navy) !important;
}

.udc-about-card,
.udc-presidency,
.udc-contact-form-wrap,
.udc-contact-office {
    border-color: var(--udc-line) !important;
    border-top-color: var(--udc-gold) !important;
}

.udc-about-card h3,
.udc-presidency h3,
.udc-contact-form-wrap h2,
.udc-contact-office h2 {
    color: var(--udc-blue) !important;
}

.udc-year-badge {
    background: #e8f1f7 !important;
    color: var(--udc-navy) !important;
}

.udc-contact-office {
    background: var(--udc-navy) !important;
    color: #ffffff !important;
}

.udc-contact-office h2,
.udc-contact-office strong,
.udc-contact-office a,
.udc-contact-office span {
    color: #ffffff !important;
}

.udc-contact-submit {
    background: var(--udc-blue) !important;
    color: #ffffff !important;
}

.udc-contact-submit:hover {
    background: var(--udc-navy) !important;
}

.udc-official-page .rounded-full.bg-primary\/10,
.udc-official-page .bg-\[\#fff2c7\] {
    background: #e8f1f7 !important;
    color: var(--udc-navy) !important;
}

.udc-official-page .udc-card,
.udc-official-page .udc-panel,
.udc-about-page .udc-about-card,
.udc-contact-page .udc-contact-form-wrap {
    box-shadow: 0 12px 30px rgba(0, 75, 135, 0.08) !important;
}

/* Convention page readability: keep content surfaces light even when dark mode is toggled. */
body.udc-convention-page,
html.dark body.udc-convention-page,
.dark body.udc-convention-page {
    background: #f5f7fa !important;
    color: #172033 !important;
}

body.udc-convention-page main,
html.dark body.udc-convention-page main,
.dark body.udc-convention-page main {
    background: #f5f7fa !important;
}

body.udc-convention-page .udc-convention-hero {
    background: linear-gradient(120deg, #00365f 0%, #004b87 100%) !important;
}

body.udc-convention-page .udc-convention-card,
html.dark body.udc-convention-page .udc-convention-card,
.dark body.udc-convention-page .udc-convention-card,
body.udc-convention-page .udc-empty-state,
html.dark body.udc-convention-page .udc-empty-state,
.dark body.udc-convention-page .udc-empty-state {
    border-color: #d7dee5 !important;
    border-top-color: #f2a900 !important;
    background: #ffffff !important;
    color: #172033 !important;
    box-shadow: 0 12px 30px rgba(0, 75, 135, 0.1) !important;
}

body.udc-convention-page .udc-convention-card h2,
html.dark body.udc-convention-page .udc-convention-card h2,
.dark body.udc-convention-page .udc-convention-card h2 {
    color: #00365f !important;
}

body.udc-convention-page .udc-convention-card p,
html.dark body.udc-convention-page .udc-convention-card p,
.dark body.udc-convention-page .udc-convention-card p,
body.udc-convention-page .udc-empty-state,
html.dark body.udc-convention-page .udc-empty-state,
.dark body.udc-convention-page .udc-empty-state {
    color: #526173 !important;
}

body.udc-convention-page .udc-convention-card > div > span,
html.dark body.udc-convention-page .udc-convention-card > div > span,
.dark body.udc-convention-page .udc-convention-card > div > span,
body.udc-convention-page .udc-convention-card > div > a,
html.dark body.udc-convention-page .udc-convention-card > div > a,
.dark body.udc-convention-page .udc-convention-card > div > a {
    color: #004b87 !important;
}

body.udc-convention-page .udc-mobile-menu,
html.dark body.udc-convention-page .udc-mobile-menu,
.dark body.udc-convention-page .udc-mobile-menu,
body.udc-convention-page .udc-nav-dropdown-menu,
html.dark body.udc-convention-page .udc-nav-dropdown-menu,
.dark body.udc-convention-page .udc-nav-dropdown-menu {
    border-color: #d7dee5 !important;
    background: #ffffff !important;
    color: #172033 !important;
}

body.udc-convention-page .udc-mobile-menu-link,
html.dark body.udc-convention-page .udc-mobile-menu-link,
.dark body.udc-convention-page .udc-mobile-menu-link,
body.udc-convention-page .udc-nav-dropdown-menu a,
html.dark body.udc-convention-page .udc-nav-dropdown-menu a,
.dark body.udc-convention-page .udc-nav-dropdown-menu a {
    color: #172033 !important;
}

body.udc-convention-page .udc-mobile-menu-link:hover,
body.udc-convention-page .udc-mobile-menu-link.is-active,
html.dark body.udc-convention-page .udc-mobile-menu-link:hover,
html.dark body.udc-convention-page .udc-mobile-menu-link.is-active,
.dark body.udc-convention-page .udc-mobile-menu-link:hover,
.dark body.udc-convention-page .udc-mobile-menu-link.is-active,
body.udc-convention-page .udc-nav-dropdown-menu a:hover,
body.udc-convention-page .udc-nav-dropdown-menu a.is-active,
html.dark body.udc-convention-page .udc-nav-dropdown-menu a:hover,
html.dark body.udc-convention-page .udc-nav-dropdown-menu a.is-active,
.dark body.udc-convention-page .udc-nav-dropdown-menu a:hover,
.dark body.udc-convention-page .udc-nav-dropdown-menu a.is-active {
    background: #e8f1f7 !important;
    color: #00365f !important;
    box-shadow: inset 4px 0 0 #f2a900 !important;
}

@media (max-width: 767px) {
    .udc-brand-emblem {
        width: 72px;
        height: 70px;
        flex-basis: 72px;
    }

    .udc-brand-emblem img {
        max-width: 64px;
        max-height: 64px;
    }

    .udc-about-nav {
        top: 88px;
    }

    .udc-home-program {
        padding-top: 3rem !important;
        padding-bottom: 3.5rem !important;
    }

    .udc-home-program h2 {
        font-size: clamp(2.2rem, 12vw, 3.4rem) !important;
    }
}
