/* ==========================================================================
   UCE App Shell – Global nav, full-width layout, mobile drawer, footer
   Ivory / Navy / Burgundy / Teal US Coin aesthetic.
   ========================================================================== */

/* ---- Reset / base for standalone app pages ---- */
body.uce-app-page {
    margin: 0;
    padding: 0;
    background: #fdf6e6;
    color: #0d1b2a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.uce-app-page *,
body.uce-app-page *::before,
body.uce-app-page *::after {
    box-sizing: border-box;
}

body.uce-nav-open { overflow: hidden; }

/* Hide theme chrome when we take over */
body.uce-app-page #wpadminbar { position: fixed; }
body.uce-app-page .uce-hide-adminbar #wpadminbar { display: none; }

/* Skip link */
.uce-skip-link {
    position: absolute;
    top: -999px; left: 50%; transform: translateX(-50%);
    background: #b8922d; color: #fdf6e6;
    padding: 8px 20px; font-weight: 700; font-size: 14px;
    border-radius: 0 0 8px 8px; z-index: 99999;
    text-decoration: none;
    transition: top 0.1s;
}
.uce-skip-link:focus { top: 0; }

/* ==========================================================================
   App Shell Wrapper
   ========================================================================== */
.uce-app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fdf6e6;
}

/* ==========================================================================
   Ticker Bar (above nav)
   ========================================================================== */
.uce-ticker-bar {
    position: sticky;
    top: 0;
    z-index: 990;
    width: 100%;
}

.uce-ticker-bar-inner {
    max-width: 100%;
}

.uce-ticker-bar .usce-ticker {
    background: #fdf6e6;
    border-bottom: 1px solid rgba(13, 27, 42, 0.10);
    height: 32px;
    padding: 0 24px;
    justify-content: center;
    gap: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.admin-bar .uce-ticker-bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .uce-ticker-bar { top: 46px; } }
@media (max-width: 600px) {
    .uce-ticker-bar { height: auto; min-height: 28px; }
    .uce-ticker-bar .usce-ticker { height: auto; min-height: 28px; padding: 4px 10px; gap: 4px 14px; font-size: 11px; flex-wrap: wrap; justify-content: center; white-space: normal; }
}

/* ---------- Fade animation ---------- */
.uce-ticker-bar.uce-sticky-anim--fade,
.uce-events-ticker-bar.uce-sticky-anim--fade {
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.uce-ticker-bar.uce-sticky-anim--fade.is-hidden-down,
.uce-events-ticker-bar.uce-sticky-anim--fade.is-hidden-down {
    opacity: 0;
    pointer-events: none;
}

/* ---------- Slide animation (ticker) ---------- */
.uce-ticker-bar.uce-sticky-anim--slide,
.uce-events-ticker-bar.uce-sticky-anim--slide {
    transition: transform 0.28s ease;
}
.uce-ticker-bar.uce-sticky-anim--slide.is-hidden-down,
.uce-events-ticker-bar.uce-sticky-anim--slide.is-hidden-down {
    transform: translateY(-100%);
}

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */
.uce-top-nav {
    position: sticky;
    top: 32px;
    z-index: 989;
    width: 100%;
    background: rgba(253, 246, 230, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(13, 27, 42, 0.08);
    transition: box-shadow 0.2s ease, background 0.2s ease;
    height: 60px;
}

.uce-top-nav.is-scrolled {
    background: rgba(253, 246, 230, 0.98);
    box-shadow: 0 4px 32px rgba(13, 27, 42, 0.1);
    border-bottom-color: rgba(107, 30, 63, 0.15);
}

/* Admin bar offset - nav sits below ticker (32px) + admin bar */
body.admin-bar .uce-top-nav { top: calc(32px + 32px); }
@media (max-width: 782px) { body.admin-bar .uce-top-nav { top: calc(32px + 46px); } }
/* No admin bar: nav sits below ticker */
body:not(.admin-bar) .uce-top-nav { top: 32px; }

/* ---------- Admin edit button ---------- */
.uce-admin-edit-btn {
    position: fixed;
    top: 194px;
    right: 20px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(13, 27, 42, 0.5);
    background: rgba(253, 246, 230, 0.7);
    border: 1px solid rgba(13, 27, 42, 0.12);
    border-radius: 8px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0.45;
    transition: opacity 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
    pointer-events: auto;
}
.uce-admin-edit-btn:hover {
    opacity: 1;
    color: var(--uce-accent, #b8922d);
    background: rgba(253, 246, 230, 0.9);
    border-color: rgba(107, 30, 63, 0.35);
}
.uce-admin-edit-btn svg { flex-shrink: 0; }
body.admin-bar .uce-admin-edit-btn { top: calc(194px + 32px); }
@media (max-width: 782px) { body.admin-bar .uce-admin-edit-btn { top: calc(194px + 46px); } }
@media (max-width: 600px) { body.admin-bar .uce-admin-edit-btn { top: 194px; } }

/* ---------- Nav fade animation ---------- */
.uce-top-nav.uce-sticky-anim--fade {
    transition: box-shadow 0.2s ease, background 0.2s ease, opacity 0.28s ease, transform 0.28s ease;
}
.uce-top-nav.uce-sticky-anim--fade.is-hidden-down {
    opacity: 0;
    pointer-events: none;
}

/* ---------- Nav slide animation ---------- */
.uce-top-nav.uce-sticky-anim--slide {
    transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.3s ease;
}
.uce-top-nav.uce-sticky-anim--slide.is-hidden-down {
    transform: translateY(-100%);
}

.uce-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
}

/* Logo */
.uce-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 32px;
}

.uce-nav-logo-icon {
    width: 32px; height: 32px;
    color: #b8922d;
    flex-shrink: 0;
}

.uce-nav-logo-icon svg { width: 100%; height: 100%; }

.uce-nav-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: #0d1b2a;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.uce-nav-logo-custom {
    display: flex;
    align-items: center;
}

.uce-nav-logo-img {
    display: block;
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

/* Desktop nav links */
.uce-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.uce-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.uce-nav-link:hover {
    color: #0d1b2a;
    background: rgba(13, 27, 42, 0.06);
}

.uce-nav-link--active {
    color: #b8922d;
    background: rgba(107, 30, 63, 0.08);
}

.uce-nav-link--active:hover {
    color: #d4a932;
    background: rgba(107, 30, 63, 0.12);
}

.uce-nav-link-icon {
    width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8;
}
.uce-nav-link-icon svg { width: 100%; height: 100%; }

/* Right actions */
.uce-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 0;
}

/* CTA button */
.uce-nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #b8922d, #d4a932);
    color: #fdf6e6;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 12px rgba(107, 30, 63, 0.25);
    white-space: nowrap;
    touch-action: manipulation;
}

@media (hover: hover) {
    .uce-nav-cta { transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s; }
    .uce-nav-cta:hover {
        opacity: 0.9;
        transform: translateY(-1px);
        box-shadow: 0 4px 18px rgba(107, 30, 63, 0.35);
    }
}

.uce-nav-cta svg { width: 14px; height: 14px; }

/* Login link */
.uce-nav-login {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    padding: 7px 14px;
    border: 1px solid rgba(13, 27, 42, 0.15);
    border-radius: 8px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
    height: 34px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.uce-nav-login:hover {
    color: #0d1b2a;
    border-color: rgba(13, 27, 42, 0.25);
    background: rgba(13, 27, 42, 0.04);
}

/* Register button */
.uce-nav-register {
    font-size: 13px;
    font-weight: 600;
    color: #fdf6e6;
    text-decoration: none;
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #b8922d, #d4a932);
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
    height: 34px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}
.uce-nav-register:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Avatar / user menu */
.uce-nav-user-menu { position: relative; }

.uce-nav-avatar-btn {
    background: none;
    border: 2px solid rgba(107, 30, 63, 0.3);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
    width: 38px; height: 38px;
    margin-top: 11px;
    touch-action: manipulation;
}
@media (hover: hover) {
    .uce-nav-avatar-btn { transition: border-color 0.15s, transform 0.1s; }
    .uce-nav-avatar-btn:hover { border-color: #b8922d; transform: scale(1.04); }
}

.uce-nav-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Dropdown */
.uce-nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid rgba(13, 27, 42, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(13, 27, 42, 0.15);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 2000;
}

.uce-nav-user-menu.is-open .uce-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.uce-nav-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.08);
    margin-bottom: 4px;
}
.uce-nav-dropdown-avatar {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
}
.uce-nav-dropdown-name {
    font-size: 13px; font-weight: 600; color: #0d1b2a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 130px;
}

.uce-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}
.uce-nav-dropdown-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.uce-nav-dropdown-item:hover { background: rgba(13, 27, 42, 0.06); color: #0d1b2a; }
.uce-nav-dropdown-item--danger:hover { background: rgba(239,68,68,0.08); color: #dc2626; }

.uce-nav-dropdown-divider {
    height: 1px;
    background: rgba(13, 27, 42, 0.08);
    margin: 4px 0;
}

/* Hamburger */
.uce-nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: auto;
    height: 34px;
    padding: 0 10px;
    background: none;
    border: 1px solid rgba(13, 27, 42, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
    align-self: center;
}
.uce-nav-hamburger:hover {
    border-color: rgba(13, 27, 42, 0.3);
    background: rgba(13, 27, 42, 0.04);
}
.uce-nav-hamburger span {
    display: block;
    width: 18px; height: 2px;
    background: #4a5568;
    border-radius: 2px;
    transition: background 0.15s;
}
.uce-nav-hamburger:hover span { background: #0d1b2a; }

body.uce-app-page .uce-app-shell .uce-nav-actions > .uce-nav-login,
body.uce-app-page .uce-app-shell .uce-nav-actions > .uce-nav-hamburger {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.uce-app-page .uce-app-shell .uce-nav-actions > .uce-nav-hamburger {
    width: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #4a5568 0%, #3d4654 100%) !important;
    border-color: rgba(74,85,104,0.45) !important;
    color: #ffffff !important;
}

body.uce-app-page .uce-app-shell .uce-nav-actions > .uce-nav-hamburger span {
    background: #ffffff !important;
    opacity: 1 !important;
}

body.uce-app-page .uce-app-shell .uce-nav-actions > .uce-nav-hamburger:hover,
body.uce-app-page .uce-app-shell .uce-nav-actions > .uce-nav-hamburger:focus-visible {
    background: linear-gradient(135deg, #3d4654 0%, #2d3748 100%) !important;
    border-color: rgba(74,85,104,0.7) !important;
}

body.uce-app-page .uce-app-shell .uce-nav-actions > .uce-nav-hamburger:hover span,
body.uce-app-page .uce-app-shell .uce-nav-actions > .uce-nav-hamburger:focus-visible span {
    background: #ffffff !important;
}

/* ==========================================================================
   Mobile Navigation Drawer
   ========================================================================== */
.uce-mobile-nav {
    position: fixed;
    top: 32px; right: 0;
    width: min(320px, 85vw);
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    background: #fdf6e6;
    border-left: 1px solid rgba(13, 27, 42, 0.1);
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}
body.admin-bar .uce-mobile-nav { top: calc(32px + 32px); height: calc(100vh - 32px - 32px); height: calc(100dvh - 32px - 32px); }
@media (max-width: 782px) { body.admin-bar .uce-mobile-nav { top: calc(32px + 46px); height: calc(100vh - 32px - 46px); height: calc(100dvh - 32px - 46px); } }
@media (max-width: 600px) { body.admin-bar .uce-mobile-nav { top: 32px; height: calc(100vh - 32px); height: calc(100dvh - 32px); } }

.uce-mobile-nav.is-open { transform: translateX(0); }

.uce-mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.35);
    backdrop-filter: blur(4px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.uce-mobile-nav-overlay.is-visible { opacity: 1; visibility: visible; }

.uce-mobile-nav-inner { padding: 0 16px 32px; flex: 1; }

.uce-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.1);
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    background: #fdf6e6;
    z-index: 5;
}

.uce-mobile-nav-title {
    font-size: 15px; font-weight: 700; color: #0d1b2a;
}

.uce-mobile-nav-close {
    background: rgba(13, 27, 42, 0.06);
    border: 1px solid rgba(13, 27, 42, 0.12);
    width: 36px; height: 36px;
    min-width: 36px; min-height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    color: #0d1b2a;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
    flex-shrink: 0;
}
.uce-mobile-nav-close:hover,
.uce-mobile-nav-close:active { background: rgba(13, 27, 42, 0.1); border-color: rgba(13, 27, 42, 0.2); color: #0d1b2a; }
.uce-mobile-nav-close svg { width: 20px; height: 20px; stroke: #0d1b2a; stroke-width: 2.5; pointer-events: none; }

.uce-mobile-nav-links { display: flex; flex-direction: column; gap: 2px; }

.uce-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}
.uce-mobile-nav-link:hover { background: rgba(13, 27, 42, 0.06); color: #0d1b2a; }
.uce-mobile-nav-link--highlight {
    background: rgba(107, 30, 63, 0.08);
    color: #b8922d;
    font-weight: 700;
}
.uce-mobile-nav-link--highlight:hover {
    background: rgba(107, 30, 63, 0.14);
    color: #d4a932;
}
.uce-mobile-nav-link--muted { color: #718096; }

.uce-mobile-nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.uce-mobile-nav-icon svg { width: 100%; height: 100%; }

.uce-mobile-nav-divider {
    height: 1px;
    background: rgba(13, 27, 42, 0.08);
    margin: 8px 0;
}

/* ==========================================================================
   Main Content Area – Full Width
   ========================================================================== */
.uce-app-main {
    flex: 1;
    width: 100%;
    background: #fdf6e6;
}

.uce-app-content {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px 72px;
    background: #fdf6e6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.uce-app-footer {
    margin-top: auto;
}

.uce-footer-main {
    background: #0d1b2a;
    border-top: 1px solid rgba(13, 27, 42, 0.15);
    padding: 56px 24px 48px;
}

.uce-footer-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(120px, 0.8fr) minmax(140px, 0.8fr) minmax(220px, 1fr);
    gap: 48px;
    align-items: start;
}

.uce-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-right: 24px;
}

.uce-footer-logo {
    font-size: 17px;
    font-weight: 700;
    color: #fdf6e6;
    letter-spacing: -0.01em;
}

.uce-footer-logo-link {
    display: inline-block;
    line-height: 0;
}

.uce-footer-logo-img {
    display: block;
    width: auto;
    object-fit: contain;
}

.uce-footer-tagline {
    font-size: 13px;
    color: rgba(253, 246, 230, 0.5);
    line-height: 1.5;
    max-width: 280px;
}

.uce-footer-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uce-footer-col-heading {
    font-size: 11px;
    font-weight: 700;
    color: rgba(253, 246, 230, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
    padding: 0;
}

.uce-footer-nav-link {
    font-size: 13px;
    color: rgba(253, 246, 230, 0.45);
    text-decoration: none;
    padding: 5px 0;
    touch-action: manipulation;
    line-height: 1.4;
}
@media (hover: hover) {
    .uce-footer-nav-link { transition: color 0.2s; }
    .uce-footer-nav-link:hover { color: #fdf6e6; }
}

/* Sub-footer */
.uce-sub-footer {
    background: #091525;
    border-top: 1px solid rgba(253, 246, 230, 0.06);
    padding: 20px 24px;
}

.uce-sub-footer-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.uce-footer-copy {
    font-size: 12px;
    color: rgba(253, 246, 230, 0.3);
    margin: 0;
}

.uce-footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.uce-footer-legal-link {
    font-size: 12px;
    color: rgba(253, 246, 230, 0.3);
    text-decoration: none;
    white-space: nowrap;
    touch-action: manipulation;
}
@media (hover: hover) {
    .uce-footer-legal-link { transition: color 0.2s; }
    .uce-footer-legal-link:hover { color: #fdf6e6; }
}

.uce-footer-legal-sep {
    font-size: 10px;
    color: rgba(253, 246, 230, 0.15);
}

.uce-footer-ad-col {
    align-self: end;
    justify-self: end;
    width: min(100%, 340px);
}

.uce-footer-ad-placement {
    margin: 0;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.uce-footer-ad-placement.uce-ad-strip--cards .uce-ad-strip-label {
    padding: 0;
    margin: 0 0 10px;
    color: rgba(253,246,230,0.42);
    text-align: right;
}

.uce-footer-ad-placement .uce-ad-strip-cards-inner {
    padding: 0;
    justify-content: flex-end;
}

.uce-footer-ad-placement .uce-ad-card {
    flex: 0 1 340px;
    max-width: 340px;
    min-width: 0;
    width: 100%;
    padding: 10px;
    gap: 12px;
    background: rgba(253,246,230,0.055);
    border-color: rgba(253,246,230,0.12);
    color: #fdf6e6;
}

.uce-footer-ad-placement .uce-ad-card:hover {
    background: rgba(253,246,230,0.085);
    border-color: rgba(184,146,45,0.45);
}

.uce-footer-ad-placement .uce-ad-card-img {
    width: 112px;
    height: 64px;
    border-radius: 6px;
}

.uce-footer-ad-placement .uce-ad-card-title {
    color: #fdf6e6;
    font-size: 13px;
}

.uce-footer-ad-placement .uce-ad-card-desc {
    color: rgba(253,246,230,0.58);
    font-size: 12px;
}

/* ==========================================================================
   Full-width layout overrides
   Remove sidebar/container max-width constraints from theme
   ========================================================================== */
body.uce-app-page #page,
body.uce-app-page #content,
body.uce-app-page .site,
body.uce-app-page .site-content,
body.uce-app-page main.site-main,
body.uce-app-page .wp-site-blocks {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.uce-app-page .sidebar,
body.uce-app-page #secondary,
body.uce-app-page .widget-area,
body.uce-app-page aside.primary-sidebar {
    display: none !important;
}

/* Submission form – centered narrow layout */
.uce-submission-page .uce-app-content {
    max-width: 860px;
}

/* Membership page – wider centered */
.uce-membership-page .uce-app-content {
    max-width: 1100px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .uce-nav-links { gap: 0; }
    .uce-nav-link { padding: 6px 10px; font-size: 13px; }
    .uce-nav-cta span { display: none; }
    .uce-nav-cta { padding: 8px; border-radius: 8px; width: 36px; height: 36px; justify-content: center; }
    .uce-nav-cta svg { width: 16px; height: 16px; margin: 0; }
    .uce-footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
    .uce-footer-brand { grid-column: 1 / -1; padding-right: 0; }
    .uce-footer-ad-col { justify-self: start; align-self: start; width: min(100%, 360px); }
    .uce-footer-ad-placement.uce-ad-strip--cards .uce-ad-strip-label { text-align: left; }
    .uce-footer-ad-placement .uce-ad-strip-cards-inner { justify-content: flex-start; }
}

/* Mobile – hide desktop nav, show hamburger */
@media (max-width: 768px) {
    .uce-nav-links { display: none; }
    .uce-nav-hamburger { display: flex; }
    .uce-nav-cta { display: none; }
    .uce-nav-register { display: none; }
    .uce-nav-logo-text { font-size: 15px; }
    .uce-nav-inner { padding: 0 16px; gap: 12px; }
    .uce-nav-logo { margin-right: auto; min-width: 0; overflow: hidden; }
    .uce-nav-logo-custom { min-width: 0; max-width: min(58vw, 260px); overflow: hidden; }
    .uce-nav-logo-img { max-height: 42px !important; max-width: 100%; }
    .uce-nav-actions { gap: 8px; margin-left: 0; flex: 0 0 auto; }
    .uce-nav-actions > .uce-nav-login,
    .uce-nav-actions > .uce-nav-hamburger {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        border-radius: 10px !important;
    }
    .uce-nav-actions > .uce-nav-login {
        min-width: 82px;
        padding: 0 16px;
    }
    .uce-nav-actions > .uce-nav-hamburger {
        width: 52px !important;
        min-width: 52px !important;
    }
    .uce-app-content { padding: 0 16px 56px; }
    .uce-footer-main { padding: 40px 16px 36px; }
    .uce-sub-footer { padding: 16px; }
    .uce-sub-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
    .uce-app-content { padding: 0 12px 48px; }
    .uce-top-nav { height: 56px; }
    .uce-nav-inner { height: 56px; padding: 0 12px; gap: 8px; }
    .uce-nav-logo-icon { width: 26px; height: 26px; }
    .uce-nav-logo-text { font-size: 14px; }
    .uce-nav-logo-custom { max-width: min(48vw, 190px); }
    .uce-nav-logo-img { max-height: 34px !important; }
    .uce-nav-actions { gap: 6px; }
    .uce-nav-actions > .uce-nav-login,
    .uce-nav-actions > .uce-nav-hamburger {
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
    }
    .uce-nav-actions > .uce-nav-login {
        min-width: 72px;
        padding: 0 12px;
        font-size: 12.5px;
    }
    .uce-nav-actions > .uce-nav-hamburger {
        width: 44px !important;
        min-width: 44px !important;
    }
    .uce-footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .uce-footer-brand { grid-column: auto; }
    .uce-footer-main { padding: 32px 16px 28px; }
    .uce-footer-ad-col { width: 100%; }
    .uce-footer-ad-placement .uce-ad-card { max-width: 100%; }
}

@media (max-width: 380px) {
    .uce-nav-logo-custom { max-width: 42vw; }
    .uce-nav-logo-img { max-height: 30px !important; }
    .uce-nav-actions > .uce-nav-login {
        min-width: 64px;
        padding: 0 10px;
    }
    .uce-nav-actions > .uce-nav-hamburger {
        width: 40px !important;
        min-width: 40px !important;
    }
}

/* ==========================================================================
   Shared Page Hero – overrides for full-width layout
   ========================================================================== */
body.uce-app-page .uce-archive-hero {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    padding: 64px 24px 56px;
}

body.uce-app-page .uce-single-hero {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
}

@media (max-width: 768px) {
    body.uce-app-page .uce-archive-hero {
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
        padding: 48px 16px 40px;
    }
    body.uce-app-page .uce-single-hero {
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
    }
}

@media (max-width: 480px) {
    body.uce-app-page .uce-archive-hero {
        width: calc(100% + 24px);
        margin-left: -12px;
        margin-right: -12px;
        padding: 40px 12px 32px;
    }
    body.uce-app-page .uce-single-hero {
        width: calc(100% + 24px);
        margin-left: -12px;
        margin-right: -12px;
    }
}

/* ==========================================================================
   Submission Form – Centered Card Layout
   ========================================================================== */
.uce-submission-form-wrap {
    max-width: 800px;
    margin: 40px auto;
}

.uce-form-header {
    text-align: center;
    padding: 0 0 32px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.1);
    margin-bottom: 32px;
}

.uce-form-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #0d1b2a;
    margin: 0 0 8px;
}

.uce-form-subtitle {
    color: #4a5568;
    font-size: 15px;
    margin: 0;
}

/* ==========================================================================
   Membership Plans Page – Full Width Centered
   ========================================================================== */
.uce-membership-plans-wrap {
    padding: 48px 0;
}

.uce-plans-header {
    text-align: center;
    padding-bottom: 40px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .uce-top-nav, .uce-mobile-nav, .uce-mobile-nav-overlay,
    .uce-app-footer, .uce-nav-hamburger { display: none !important; }
    body.uce-app-page .uce-app-main { padding-top: 0; }
    body.uce-app-page { background: #fff; color: #000; }
}
