/* =========================================================
   d20-corporate.css — CONSOLIDATED VISUAL LAYER
   Exact pixel-perfect match with docentes20.com
   Scoped to .d20-shell--header and .d20-footer ONLY
   UTF-8, no BOM
   ========================================================= */

/* =========================================================
   1. CSS VARIABLES & RESET
   ========================================================= */
:root {
    --d20-radius: 16px;
    --d20-radius-sm: 12px;
    --d20-shadow: 0 10px 30px rgba(0,0,0,0.10);
    --d20-border: 1px solid rgba(0,0,0,0.08);
    --d20-surface: #ffffff;
    --d20-bg: #f6f6f8;
    --d20-purple: #3f264d;
    --d20-gold: #c9a227;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

.d20-shell--header *,
.d20-footer * {
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.d20-footer ul,
.d20-footer ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.d20-footer img {
    max-width: 100%;
    height: auto;
    border: none;
}

.d20-footer dl,
.d20-footer dt,
.d20-footer dd {
    margin: 0;
    padding: 0;
}

.d20-shell--header ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.d20-shell--header a {
    text-decoration: none;
}

/* =========================================================
   2. HEADER NAVBAR (desktop)
   ========================================================= */
.d20-shell--header {
    position: relative;
    z-index: 6000;
}

.d20-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1001;
    display: flex;
    align-items: center;
    transition: height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    height: 88px;
    background: rgba(15, 8, 20, 0.35) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

/* Gold divider line via ::after — hidden at top, visible on scroll */
.d20-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #FFC107;
    opacity: 0;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2;
}

.d20-navbar.d20-scrolled::after {
    opacity: 1;
}

/* Scrolled state: compact, solid */
.d20-navbar.d20-scrolled {
    height: 64px;
    background: rgba(8, 5, 10, 0.97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

/* Container */
.d20-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
    flex-wrap: nowrap;
    overflow: visible;
    width: 100%;
}

/* Logo */
.d20-brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    padding: 4px 0;
    text-decoration: none;
}

.d20-brand-logo img {
    max-height: calc(100% - 8px);
    height: auto;
    width: auto;
    display: block;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

/* Nav panel — wraps menu + user-actions */
.d20-nav-panel {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.d20-nav-panel .d20-nav-menu {
    flex: 1 1 auto;
}

.d20-nav-panel .d20-user-actions {
    flex-shrink: 0;
}

/* Nav menu */
.d20-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.d20-nav-menu > li {
    display: flex;
    align-items: center;
    height: 100%;
}

.d20-nav-menu > li > a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    height: auto;
    padding: 7px 16px;
    border-radius: 20px;
    line-height: 1.4;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.d20-nav-menu > li > a:hover,
.d20-nav-menu > li > a:focus,
.d20-nav-menu > li:hover > a,
.d20-nav-menu > li.active > a {
    color: #FFC107;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    outline: none;
}

.d20-nav-menu a {
    color: #fff;
    opacity: 0.92;
}

.d20-nav-menu a:hover,
.d20-nav-menu a:focus {
    color: #c9a227;
    opacity: 1;
}

/* Dropdown */
.d20-dropdown {
    position: relative;
    padding-bottom: 0;
}

/* Hover bridge — invisible zone between trigger and dropdown */
.d20-nav-menu > li.d20-dropdown > a {
    position: relative;
}

.d20-nav-menu > li.d20-dropdown > a::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 12px;
    background: transparent;
    display: block;
}

.d20-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(12, 8, 16, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0 0 10px 10px;
    padding: 10px 6px 8px 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1004;
    margin-top: -1px !important;
}

.d20-dropdown:hover .d20-dropdown-menu,
.d20-dropdown:focus-within .d20-dropdown-menu,
.d20-dropdown.open .d20-dropdown-menu,
.d20-dropdown.d20-open > .d20-dropdown-menu {
    display: block;
}

.d20-dropdown-menu li a {
    display: block;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 13px;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.d20-dropdown-menu li a:hover {
    background: rgba(255, 193, 7, 0.12);
    color: #FFC107;
}

/* Chevron arrows (animated) */
.d20-caret {
    display: none;
}

.d20-chevron {
    display: inline-flex;
    align-items: center;
    margin-left: 3px;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.d20-chevron svg {
    display: block;
    flex-shrink: 0;
}

.d20-dropdown.d20-open > a .d20-chevron,
.d20-dropdown:hover > a .d20-chevron,
.d20-dropdown:focus-within > a .d20-chevron {
    transform: rotate(180deg);
}

/* User actions (search + auth) */
.d20-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.d20-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.d20-search-form input[type="text"] {
    height: 32px;
    padding: 0 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 12px;
    width: 180px;
    outline: none;
    transition: border-color 0.2s;
}

.d20-search-form input[type="text"]:focus {
    border-color: rgba(255, 193, 7, 0.5);
}

.d20-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.d20-search-form button {
    height: 32px;
    padding: 0 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.d20-search-form button:hover {
    background: rgba(255, 193, 7, 0.18);
}

.d20-auth-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.d20-btn-auth {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    background: #FFC107;
    color: #101010;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: filter 0.2s;
}

.d20-btn-auth:hover {
    filter: brightness(0.92);
    text-decoration: none;
    color: #101010;
}

.d20-logout {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.d20-logout:hover {
    color: #fff;
}

/* Mobile toggle */
.d20-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 7px 9px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
}

.d20-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 2px;
    transition: all 0.25s;
}

/* Fallback text when no logo image is set */
.d20-site-name {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.d20-lang-toggle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.d20-register {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.d20-register:hover {
    color: #fff;
}

/* Nav overlay (mobile) */
.d20-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

#d20-nav-panel,
.d20-nav-panel {
    overflow-x: hidden;
}

/* =========================================================
   3. USER MENU (OJS integration)
   ========================================================= */
.d20-user-nav {
    display: flex;
    align-items: center;
}

.d20-user-nav a,
.d20-user-nav a:link,
.d20-user-nav a:visited {
    color: #fff !important;
    text-decoration: none !important;
}

/* The OJS-generated ul */
.d20-user-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Top-level li (profile item) */
.d20-user-menu > .d20-user-menu-item {
    position: relative;
}

/* Top-level link / username trigger — transparent, white text */
.d20-user-menu > .d20-user-menu-item > a,
.d20-user-menu > .d20-user-menu-item > a:link,
.d20-user-menu > .d20-user-menu-item > a:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: transparent !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.2s;
}

.d20-user-menu > .d20-user-menu-item > a:hover {
    color: #FFC107 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    filter: none;
    text-decoration: none;
}

/* Badge next to username (notification alert count) */
.d20-user-menu > .d20-user-menu-item > a .pkp_notification_alert,
.d20-user-menu > .d20-user-menu-item > a .pkp_notification_count,
.d20-user-menu > .d20-user-menu-item > a .pkp_nav_count,
.d20-user-menu > .d20-user-menu-item > a .notification_count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    padding: 0 5px !important;
    line-height: 1 !important;
}

/* OJS-generated submenu ul (inside the profile li) */
.d20-user-menu .d20-user-menu-item ul,
.d20-user-menu .d20-user-menu-item > ul {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    min-width: 200px !important;
    background: rgba(12, 8, 16, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 0 0 10px 10px !important;
    padding: 10px 6px 8px 6px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    z-index: 1003 !important;
    list-style: none !important;
    margin: 0 !important;
}

.d20-user-menu .d20-user-menu-item:hover > ul,
.d20-user-menu .d20-user-menu-item:focus-within > ul {
    display: block !important;
}

/* Submenu items */
.d20-user-menu .d20-user-menu-item ul li a,
.d20-user-menu .d20-user-menu-item ul li a:link,
.d20-user-menu .d20-user-menu-item ul li a:visited {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px 12px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 7px !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: background 0.15s, color 0.15s !important;
    white-space: nowrap !important;
}

.d20-user-menu .d20-user-menu-item ul li a:hover {
    background: rgba(255, 193, 7, 0.12) !important;
    color: #FFC107 !important;
    text-decoration: none !important;
}

/* Notification badge inside the submenu Dashboard link */
.d20-user-menu .d20-user-menu-item ul .pkp_nav_count,
.d20-user-menu .d20-user-menu-item ul .notification_count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    padding: 0 5px !important;
    margin-left: auto !important;
}

/* Login + Register links (logged-out state) */
.d20-user-menu > .d20-user-menu-item.login > a {
    background: #FFC107 !important;
    color: #101010 !important;
}

.d20-user-menu > .d20-user-menu-item.register > a {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.80) !important;
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.d20-user-menu > .d20-user-menu-item.register > a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    filter: none;
}

/* =========================================================
   4. HERO & CAROUSEL
   ========================================================= */
.d20-hero {
    position: relative;
    min-height: 640px;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Background */
.d20-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 600px at 30% 40%, rgba(180, 40, 20, 0.55) 0%, transparent 65%),
        radial-gradient(ellipse 700px 500px at 80% 60%, rgba(120, 20, 10, 0.40) 0%, transparent 60%),
        linear-gradient(180deg, #1a0505 0%, #0c0404 100%);
    z-index: 0;
    pointer-events: none;
}

/* Purple overlay */
.d20-hero-overlay-purple {
    position: absolute;
    inset: 0;
    background: rgba(50, 20, 60, 0.42);
    z-index: 1;
    pointer-events: none;
}

/* Particles */
#d20-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#d20-particles canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Content layer */
.d20-hero-overlay {
    position: relative;
    z-index: 3;
    padding: 60px 20px;
    max-width: 900px;
}

/* Hero title */
.d20-hero-title,
.d20-hero-title * {
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.07;
    margin: 0 0 16px 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    text-shadow: none;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
}

.d20-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.55;
    max-width: 680px;
    margin: 0 auto 24px auto;
    background: none;
    text-shadow: none;
}

.d20-hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* CTA Buttons */
.d20-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #FFC107;
    background: #FFC107;
    color: #101010;
    transition: filter 0.2s, background 0.2s;
}

.d20-btn-cta:hover {
    filter: brightness(0.92);
    text-decoration: none;
    color: #101010;
}

.d20-btn-cta--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.d20-btn-cta--ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    filter: none;
    color: #fff;
}

/* Hero divider — hidden, replaced by navbar ::after */
.d20-hero-divider {
    display: none;
}

/* Carousel */
.d20-hero .d20-carousel,
.d20-hero .carousel {
    position: relative;
    width: 100%;
    height: 640px;
    z-index: 2;
}

.d20-hero .d20-carousel .carousel-inner,
.d20-hero .carousel-inner {
    height: 640px;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.d20-hero .d20-carousel .item {
    min-height: 640px;
    height: 640px;
}

.d20-hero .d20-carousel .item.active,
.d20-hero .d20-carousel .item.next,
.d20-hero .d20-carousel .item.prev {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 88px;
    padding-bottom: 40px;
}

/* Prevent height-doubling during slide transition */
.d20-hero .d20-carousel .item.next,
.d20-hero .d20-carousel .item.prev {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Indicators (dots) */
.d20-hero .d20-indicators,
.d20-hero .carousel-indicators {
    bottom: 20px;
    z-index: 4;
}

.d20-hero .d20-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.25s;
}

.d20-hero .d20-indicators .active {
    background: #FFC107;
    border-color: #FFC107;
}

/* Pointer-events safety for hero layers */
.d20-hero .carousel,
.d20-hero .d20-carousel,
.d20-hero .carousel-inner,
.d20-hero .d20-carousel-inner,
.d20-hero .d20-hero-overlay,
.d20-hero .item {
    pointer-events: none;
}

/* Re-enable pointer events on interactive elements */
.d20-hero .d20-btn-cta,
.d20-hero .carousel-control,
.d20-hero .d20-ctrl,
.d20-hero .carousel-control *,
.d20-hero .d20-indicators,
.d20-hero .d20-indicators li,
.d20-hero .carousel-indicators,
.d20-hero .carousel-indicators li,
.d20-hero a,
.d20-hero button {
    pointer-events: auto;
}

/* =========================================================
   5. CHEVRON ARROWS (SVG carousel controls)
   ========================================================= */

/* Kill ALL Bootstrap 3 carousel control defaults */
.d20-hero .carousel-control,
.d20-hero .carousel-control.left,
.d20-hero .carousel-control.right,
.d20-hero .d20-ctrl {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    filter: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    width: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5;
}

/* Hover/focus — keep transparent */
.d20-hero .carousel-control:hover,
.d20-hero .carousel-control:focus {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    opacity: 1 !important;
}

/* Kill ::after from CSS chevron approach — replaced by SVG */
.d20-hero .carousel-control::after,
.d20-hero .carousel-control.left::after,
.d20-hero .carousel-control.right::after {
    display: none !important;
    content: none !important;
}

/* Kill Bootstrap glyphicons */
.d20-hero .carousel-control span.glyphicon,
.d20-hero .carousel-control .glyphicon,
.d20-hero .carousel-control .icon-prev,
.d20-hero .carousel-control .icon-next,
.d20-hero .carousel-control span[class*="glyphicon"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* D20 control button (fallback) */
.d20-hero .d20-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
}

.d20-hero .d20-ctrl:hover {
    text-decoration: none;
}

.d20-hero .d20-ctrl--prev {
    left: 20px;
}

.d20-hero .d20-ctrl--next {
    right: 20px;
}

/* SVG chevron icon */
.d20-ctrl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.d20-ctrl-icon svg {
    display: block;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
    transition: filter 0.2s;
}

.d20-ctrl-icon svg polyline {
    transition: stroke 0.2s;
}

.d20-hero .carousel-control:hover .d20-ctrl-icon svg {
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.7));
}

.d20-hero .carousel-control:hover .d20-ctrl-icon svg polyline,
.d20-hero .carousel-control:focus .d20-ctrl-icon svg polyline {
    stroke: #FFC107;
}

/* =========================================================
   6. FOOTER
   ========================================================= */
/* Override Bootstrap's footer[role="contentinfo"] { background: @gray-lighter } */
.d20-footer,
footer.d20-footer[role="contentinfo"] {
    background: #0a0009 !important;
    color: #bbb !important;
    border-top: 4px solid #FFC107 !important;
    border-bottom: none !important;
    padding: 0 !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    margin-top: 40px !important;
    position: relative;
    font-size: 14px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    overflow: visible;
    clear: both;
}

/* Glow effect */
.d20-footer-glow {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.06) 0%, rgba(106, 16, 0, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.d20-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    position: relative;
    z-index: 1;
}

/* Grid */
.d20-footer .d20-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 0;
    align-items: start;
}

.d20-footer .d20-col,
.d20-footer .d20-col * {
    min-width: 0;
}

.d20-footer a,
.d20-footer dd {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Brand col */
.d20-footer .d20-brand {
    margin: 0 0 15px 0;
}

.d20-footer .d20-brand img {
    width: 140px;
    display: block;
    height: auto;
}

.d20-footer .d20-small {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #777;
    max-width: 260px;
    margin-bottom: 20px;
}

/* Column headings */
.d20-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    display: inline-block;
    padding-bottom: 5px;
}

/* Links */
.d20-footer .d20-links li {
    margin-bottom: 0;
}

.d20-footer .d20-links a {
    color: #999;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}

.d20-footer .d20-links a:hover {
    color: #FFC107;
    transform: translateX(3px);
    text-decoration: none;
}

.d20-footer .d20-links a.highlight {
    color: #fff;
    font-weight: 500;
}

/* Social icons */
.d20-social {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.d20-footer .d20-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.d20-footer .d20-social a:hover {
    background: #FFC107;
    border-color: #FFC107;
    color: #000;
    transform: translateY(-3px);
    text-decoration: none;
}

.d20-footer .d20-social a svg {
    display: block;
}

/* Academic identifiers table */
.d20-ids {
    margin: 14px 0 18px 0;
    border-collapse: collapse;
    width: 100%;
}

.d20-ids th,
.d20-ids td {
    font-size: 11px;
    padding: 2px 8px 2px 0;
    line-height: 1.4;
    vertical-align: top;
    border: none;
    background: transparent;
    color: inherit;
}

.d20-ids th {
    color: #FFC107;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
    width: 62px;
}

.d20-ids td {
    color: #999;
}

.d20-ids td a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.d20-ids td a:hover {
    color: #FFC107;
}

/* Contacto DL block */
.d20-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 6px;
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 13px;
}

.d20-dl dt,
.d20-dl dd {
    margin: 0;
    padding: 0;
    line-height: inherit;
}

.d20-footer .d20-dl dt {
    font-weight: 700;
    color: #fff;
    display: inline;
    margin-right: 6px;
}

.d20-footer .d20-dl dd {
    display: inline;
    color: #999;
    margin: 0;
}

.d20-footer .d20-dl dd::after {
    content: "\A";
    white-space: pre;
}

.d20-footer .d20-dl a {
    color: #999;
    transition: color 0.2s;
}

.d20-footer .d20-dl a:hover {
    color: #FFC107;
}

.d20-footer .d20-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 16px 0;
}

/* PKP badge */
.d20-footer .d20-platform-box {
    margin-top: 8px;
}

.d20-footer .d20-platform-box .d20-small {
    margin-bottom: 8px;
    max-width: none;
}

.d20-footer .d20-platform-box a {
    display: inline-flex;
    align-items: center;
}

.d20-footer .d20-platform-box img {
    display: block !important;
    opacity: 1 !important;
    max-height: 44px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: none !important;
    background: transparent !important;
    transition: opacity 0.2s;
}

/* Bottom tier — copyright bar */
.d20-bottom {
    background: #0b0b0b;
    border-top: 1px solid #1a1a1a;
    width: 100%;
    padding: 18px 0;
    margin: 0;
    color: #666;
    font-size: 12px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: block;
    overflow: visible;
}

.d20-bottom .d20-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    flex-wrap: wrap;
    row-gap: 10px;
}

.d20-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.d20-bottomline {
    text-align: center;
    width: 100%;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
}

.d20-strong {
    color: #aaa;
    font-weight: 700;
}

.d20-bottom-sep {
    margin: 0 10px;
    color: #444;
}

/* =========================================================
   7. WHATSAPP FAB & BACK-TO-TOP
   ========================================================= */

/* WhatsApp FAB */
.d20-wa-fab,
.d20-wa-fab-container {
    z-index: 920 !important;
}

.d20-wa-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s;
}

.d20-wa-fab:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6), 0 3px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
    text-decoration: none;
}

.d20-wa-tooltip {
    position: absolute;
    right: 66px;
    background: rgba(10, 0, 9, 0.88);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s, transform 0.2s;
}

.d20-wa-fab:hover .d20-wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Back-to-Top — small subtle pill, bottom-right (above WhatsApp FAB) */
.d20-back-top,
a.d20-back-top,
a.d20-back-top:link,
a.d20-back-top:visited {
    position: fixed !important;
    bottom: 90px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(20, 20, 20, 0.75) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    z-index: 9998 !important;
    transition: background 0.2s, color 0.2s, opacity 0.2s !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    opacity: 0.7;
}

a.d20-back-top:hover,
a.d20-back-top:focus {
    background: rgba(30, 30, 30, 0.9) !important;
    color: #fff !important;
    opacity: 1;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.d20-back-top svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

.d20-back-top:hover svg {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.d20-back-top svg polyline {
    stroke: #ccc;
    transition: stroke 0.25s;
}

.d20-back-top:hover svg polyline {
    stroke: #000;
}

.d20-footer .d20-back-top {
    margin: 0;
}

/* =========================================================
   8. LIGHTBOX
   ========================================================= */
.d20-sidebar-lightbox {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.d20-sidebar-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.d20-sidebar-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    cursor: pointer;
}

.d20-sidebar-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 800px);
    max-height: 88vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.d20-sidebar-lightbox__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.d20-sidebar-lightbox__close:hover {
    background: rgba(0, 0, 0, 0.75);
}

.d20-sidebar-lightbox__figure {
    margin: 0;
    padding: 0;
    text-align: center;
}

.d20-sidebar-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    height: auto;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
}

.d20-sidebar-lightbox__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px auto 16px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #FFC107;
    color: #101010 !important;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: filter 0.2s;
}

.d20-sidebar-lightbox__cta:hover {
    filter: brightness(0.92);
    text-decoration: none !important;
    color: #101010 !important;
}

body.d20-lightbox-open {
    overflow: hidden !important;
}

/* =========================================================
   9. RESPONSIVE (desktop-first)
   ========================================================= */

/* --- Desktop >= 1024px --- */
@media (min-width: 1024px) {
    .d20-shell--header,
    .d20-navbar,
    .d20-container,
    .d20-nav-panel,
    .d20-user-actions {
        overflow: visible !important;
        max-height: none !important;
    }

    .d20-shell--header {
        position: relative;
        z-index: 6000;
    }

    .d20-navbar {
        height: auto !important;
        min-height: 64px !important;
    }

    .d20-navbar .d20-container {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        height: auto !important;
        min-height: 64px !important;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .d20-nav-panel {
        flex: 1 1 auto;
        min-width: 0;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .d20-nav-menu {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 18px !important;
        overflow: visible;
    }

    .d20-nav-menu > li > a {
        white-space: nowrap;
    }

    .d20-user-actions {
        flex: 0 0 auto !important;
        min-width: 0;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }

    .d20-dropdown {
        position: relative;
    }

    .d20-dropdown-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        min-width: 220px;
        display: none;
        z-index: 10000 !important;
    }

    .d20-dropdown:hover .d20-dropdown-menu,
    .d20-dropdown:focus-within .d20-dropdown-menu {
        display: block;
    }

    .d20-hero-bg,
    .d20-hero-overlay-purple {
        pointer-events: none !important;
    }
}

/* --- Desktop narrow 1024-1200 --- */
@media (min-width: 1024px) and (max-width: 1200px) {
    .d20-navbar .d20-container {
        gap: 10px !important;
    }

    .d20-nav-panel {
        gap: 10px !important;
    }

    .d20-nav-menu {
        gap: 2px !important;
    }

    .d20-nav-menu > li > a {
        font-size: 11px;
        padding: 6px 5px !important;
        white-space: normal !important;
        line-height: 1.25;
        text-align: center;
        max-width: 100px;
    }

    .d20-user-actions {
        min-width: 0;
        gap: 4px;
    }

    .d20-search-form input[type="text"] {
        width: 90px;
        font-size: 12px;
    }

    .d20-brand-logo img {
        max-height: 44px !important;
    }
}

/* --- Desktop medium 1200-1500 --- */
@media (min-width: 1201px) and (max-width: 1500px) {
    .d20-navbar .d20-container {
        gap: 12px !important;
    }

    .d20-nav-panel {
        gap: 12px !important;
    }

    .d20-nav-menu {
        gap: 4px !important;
    }

    .d20-nav-menu > li > a {
        font-size: 12px;
        padding: 6px 6px !important;
        white-space: normal !important;
        line-height: 1.3;
        text-align: center;
    }

    .d20-user-actions {
        min-width: 0;
        gap: 6px;
    }

    .d20-search-form input[type="text"] {
        width: 110px;
        font-size: 12px;
    }
}

/* --- Mobile <= 1023.98px (off-canvas nav) --- */
@media (max-width: 1023.98px) {
    .d20-shell--header .d20-mobile-toggle {
        display: inline-flex !important;
    }

    .d20-shell--header .d20-nav-panel .d20-nav-menu {
        display: block !important;
    }

    .d20-nav-panel,
    #d20-nav-panel {
        position: fixed;
        top: var(--d20-mobile-nav-top, 0px);
        right: 0;
        left: auto;
        width: min(86vw, 360px);
        height: calc(100vh - var(--d20-mobile-nav-top, 0px));
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        transform: translateX(110%);
        pointer-events: none;
    }

    body.d20-menu-open .d20-nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.d20-menu-open #d20-nav-panel,
    body.d20-menu-open .d20-nav-panel {
        transform: translateX(0);
        pointer-events: auto;
    }
}

/* --- Tablet 768-991 --- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .d20-footer .d20-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px 22px !important;
    }
}

/* --- Mobile <= 992px --- */
@media (max-width: 992px) {
    html, body {
        overflow-x: hidden !important;
    }

    body.d20-menu-open {
        overflow: hidden !important;
        height: 100vh !important;
        touch-action: none;
        overscroll-behavior: none;
    }

    .d20-shell--header .d20-navbar {
        z-index: 970 !important;
    }

    .d20-shell--header .d20-navbar .d20-container {
        height: 64px !important;
        min-height: 64px !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .d20-shell--header .d20-mobile-toggle {
        display: inline-flex !important;
        margin-left: auto;
        z-index: 981;
    }

    .d20-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        overflow: hidden;
        border: 0;
        opacity: 0;
        visibility: hidden;
        background: rgba(8, 5, 12, 0.52);
        backdrop-filter: blur(1.5px);
        transition: opacity 0.22s ease, visibility 0.22s ease;
        z-index: 975;
        cursor: pointer;
    }

    body.d20-menu-open .d20-nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    .d20-shell--header .d20-nav-panel {
        position: fixed;
        top: var(--d20-mobile-nav-top, 64px);
        right: 0;
        transform: translateX(100%);
        width: 320px;
        max-width: 86vw;
        height: calc(100vh - var(--d20-mobile-nav-top, 64px));
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 12px 14px 18px;
        background: rgba(21, 10, 26, 0.985);
        border-left: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: -14px 0 36px rgba(0, 0, 0, 0.34);
        transition: transform 0.26s ease;
        z-index: 980;
    }

    body.d20-menu-open .d20-shell--header .d20-nav-panel,
    .d20-shell--header .d20-nav-panel.is-open {
        transform: translateX(0);
    }

    body:not(.d20-menu-open) #d20-nav-panel,
    body:not(.d20-menu-open) .d20-nav-panel {
        overflow: hidden;
    }

    .d20-shell--header .d20-nav-menu,
    .d20-shell--header .d20-user-actions {
        display: block !important;
        float: none !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .d20-shell--header .d20-nav-menu {
        list-style: none;
        overflow: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100dvh - 230px) !important;
        padding-right: 2px !important;
    }

    .d20-shell--header .d20-nav-menu li {
        width: 100%;
        margin: 0 0 6px !important;
        padding: 0 !important;
        float: none !important;
        display: block !important;
        height: auto !important;
    }

    .d20-shell--header .d20-nav-menu > li > a,
    .d20-shell--header .d20-nav-menu a {
        display: block !important;
        width: 100%;
        padding: 12px 13px !important;
        min-height: 44px;
        border-radius: 12px;
        color: #fff !important;
        line-height: 1.22 !important;
        text-decoration: none !important;
        white-space: normal !important;
    }

    .d20-shell--header .d20-nav-menu > li > a:hover,
    .d20-shell--header .d20-nav-menu > li > a:focus {
        background: rgba(255, 255, 255, 0.08) !important;
    }

    .d20-shell--header .d20-dropdown,
    .d20-shell--header .d20-dropdown-menu {
        position: static !important;
    }

    .d20-shell--header .d20-dropdown-menu {
        display: none;
        width: 100%;
        margin: 4px 0 10px !important;
        padding: 8px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }

    .d20-shell--header .d20-dropdown.is-open > .d20-dropdown-menu,
    .d20-shell--header .d20-dropdown.d20-open > .d20-dropdown-menu {
        display: block !important;
    }

    .d20-shell--header .d20-user-actions {
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }

    .d20-shell--header .d20-search-form,
    .d20-shell--header .d20-search-form input[type="text"] {
        width: 100% !important;
    }

    .d20-shell--header .d20-user-nav,
    .d20-shell--header .d20-lang-toggle {
        width: 100%;
    }

    .d20-shell--header .d20-user-menu,
    .d20-shell--header .d20-user-menu > li {
        width: 100%;
    }

    .d20-shell--header .d20-user-menu > li > a {
        width: 100%;
        border-radius: 10px;
    }

    .d20-search-form input[type="text"] {
        width: 140px;
    }
}

/* --- Mobile <= 767.98px --- */
@media (max-width: 767.98px) {
    .d20-footer {
        margin-top: 32px !important;
        padding: 8px 0 calc(20px + env(safe-area-inset-bottom)) !important;
    }

    .d20-footer .d20-wrap,
    .d20-bottom .d20-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .d20-footer .d20-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .d20-footer .d20-brand img {
        max-width: min(88vw, 320px) !important;
        min-width: 0 !important;
        margin: 0 auto 15px;
    }

    .d20-footer .d20-small {
        margin: 0 auto 15px;
    }

    .d20-footer .d20-social {
        justify-content: center;
    }

    .d20-bottom {
        padding: 14px 0 !important;
    }

    .d20-bottom .d20-wrap {
        justify-content: center !important;
        text-align: center;
    }

    .d20-bottom .d20-bottomline {
        width: 100%;
        line-height: 1.45;
        white-space: normal;
    }

    .d20-back-top {
        position: static !important;
        margin: 4px auto 0 !important;
        transform: none !important;
        left: auto !important;
    }

    .d20-back-top:hover {
        transform: translateY(-2px) !important;
    }

    .d20-wa-fab {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        width: 52px;
        height: 52px;
    }

    .d20-wa-tooltip {
        display: none;
    }

    .d20-bottom .d20-wrap {
        flex-direction: column;
    }

    .d20-bottom-sep {
        display: none;
    }

    .d20-hero-title,
    .d20-hero-title * {
        font-size: 34px;
    }

    .d20-hero .d20-carousel .item.active,
    .d20-hero .d20-carousel .item.next,
    .d20-hero .d20-carousel .item.prev {
        min-height: 320px;
    }

    .d20-footer .d20-grid > .d20-col:nth-child(3) .d20-links a,
    .d20-footer .d20-grid > .d20-col:nth-child(4) .d20-links a {
        font-size: 1.04rem !important;
    }
}

/* --- Mobile <= 520px --- */
@media (max-width: 520px) {
    .d20-back-top {
        bottom: 18px !important;
        width: 36px !important;
        height: 36px !important;
    }
}

/* --- Mobile <= 480px --- */
@media (max-width: 480px) {
    /* Reserved for future refinements */
}

/* Footer col 3&4 links size (desktop) */
.d20-footer .d20-grid > .d20-col:nth-child(3) .d20-links a,
.d20-footer .d20-grid > .d20-col:nth-child(4) .d20-links a {
    font-size: 1.02rem;
    line-height: 1.45;
}

/* =========================================================
   10. OJS ADAPTER (from d20-corporate-ojs.css)
   ========================================================= */

/* Prevent Bootstrap/OJS navbar defaults from leaking into D20 shell */
.d20-shell--header .navbar,
.d20-shell--header .navbar-default,
.d20-shell--header .container-fluid {
    all: unset;
}

/* Keep admin bar and dropdown stacking sane */
.pkp_structure_head {
    z-index: 1000 !important;
}

/* Final stack safety: nav must remain above hero layers and clickable */
.d20-shell--header .d20-navbar,
.d20-shell--header .d20-container,
.d20-shell--header .d20-nav-panel,
.d20-shell--header .d20-user-actions {
    position: relative;
    z-index: 12;
}

/* Pointer-events safety for hero decoration layers */
.d20-shell--header .d20-hero-bg,
.d20-shell--header .d20-hero-overlay-purple,
.d20-shell--header #d20-particles {
    pointer-events: none !important;
}

/* Hide duplicate legacy OJS nav/header wrappers on frontend only */
body.d20-has-shell .pkp_structure_page > header.pkp_structure_head,
body.d20-has-shell .pkp_structure_page > .pkp_navigation_primary_wrapper,
body.d20-has-shell .pkp_structure_page > .pkp_navigation_user_wrapper,
body.d20-has-shell .pkp_structure_head .navbar,
body.d20-has-shell .pkp_structure_head .pkp_site_nav_menu,
body.d20-has-shell header.header_view {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

body.d20-has-shell:not(.pkp_page_user):not(.pkp_page_login) .pkp_structure_head > .pkp_site_name_wrapper,
body.d20-has-shell:not(.pkp_page_user):not(.pkp_page_login) .pkp_structure_head .pkp_navigation_primary_wrapper {
    display: none !important;
}

/* Neutralize Bootstrap glyphicons pseudo-icons in corporate header controls */
.d20-shell--header .glyphicon,
.d20-shell--header [class*="glyphicon-"]::before,
.d20-shell--header .carousel-control .icon-prev,
.d20-shell--header .carousel-control .icon-next {
    font-family: inherit !important;
}

/* Content padding */
.pkp_page_index .pkp_structure_main {
    padding-top: 0;
}

body:not(.pkp_page_index) .pkp_structure_main {
    padding-top: 88px;
}

.pkp_page_index .pkp_structure_content {
    margin-top: 0;
}

.pkp_structure_sidebar {
    padding-top: 27px !important;
}

/* OJS padding resets */
.pkp_structure_footer_wrapper,
.pkp_structure_footer {
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_structure_page,
.pkp_structure_footer_wrapper,
.pkp_structure_footer,
.pkp_structure_main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body > .pkp_structure_page {
    margin-bottom: 0 !important;
}

.pkp_structure_content .carousel,
.pkp_structure_content .item.active {
    z-index: 1;
}

/* =========================================================
   11. MOBILE NAV (from d20-mobile-nav-fix.css)
   ========================================================= */
body.d20-scroll-lock {
    overflow: hidden !important;
}

body.d20-menu-open {
    overflow: hidden !important;
    height: 100vh;
}

/* =========================================================
   12. ACCESSIBILITY
   ========================================================= */
.d20-mobile-toggle:focus-visible,
.d20-nav-panel a:focus-visible,
.d20-nav-panel button:focus-visible,
.d20-nav-panel input:focus-visible {
    outline: 2px solid var(--d20-gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .d20-hero *,
    .d20-hero-bg,
    .d20-shell--header *,
    .d20-footer * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   13. PREMIUM OVERRIDES (body.d20-premium)
   ========================================================= */
body.d20-premium .d20-shell--header {
    position: relative !important;
    z-index: 12000 !important;
    isolation: isolate;
}

body.d20-premium .d20-navbar,
body.d20-premium .d20-container,
body.d20-premium .d20-nav-panel,
body.d20-premium .d20-nav-menu,
body.d20-premium .d20-dropdown {
    overflow: visible !important;
}

body.d20-premium .d20-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
}

body.d20-premium .d20-nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

body.d20-premium .d20-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

body.d20-premium .d20-search-form input[type="text"] {
    max-width: 280px;
    width: min(280px, 36vw);
}

body.d20-premium .d20-dropdown {
    position: relative;
}

body.d20-premium .d20-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 2px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 13000 !important;
}

body.d20-premium .d20-brand-logo img {
    height: 56px !important;
    max-height: 56px !important;
    width: auto !important;
}

body.d20-premium .d20-hero-bg,
body.d20-premium .d20-hero-overlay-purple {
    pointer-events: none !important;
}

body.d20-premium .pkp_structure_content .carousel,
body.d20-premium .pkp_structure_content .carousel .item,
body.d20-premium .pkp_structure_content .carousel-inner,
body.d20-premium .d20-hero,
body.d20-premium .d20-carousel {
    position: relative;
    z-index: 1 !important;
}

body.d20-premium.d20-menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    overscroll-behavior: none;
}

body.d20-premium .d20-nav-overlay {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

@media (min-width: 1024px) {
    body.d20-premium .d20-nav-panel {
        position: static !important;
        width: auto !important;
        height: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
    }
}

@media (max-width: 1023.98px) {
    body.d20-premium #d20-nav-panel,
    body.d20-premium .d20-nav-panel {
        position: fixed;
        top: var(--d20-mobile-nav-top, 0px);
        right: 0;
        width: min(86vw, 360px);
        height: calc(100vh - var(--d20-mobile-nav-top, 0px));
        overflow-y: auto;
        overflow-x: hidden;
    }

    body.d20-premium.d20-nav-open,
    body.d20-premium.d20-menu-open {
        overflow: hidden !important;
        height: 100vh !important;
        overscroll-behavior: none;
    }
}
