/* ==========================================================================
   ULTRA-PREMIUM SPATIAL UI (BENTO GRID + GLASSMORPHISM)
   ========================================================================== */

/* 1. Original Core Brand Variables */
:root {
    --clr-bg: #fffaf0; 
    --clr-text: #4b1d24; 
    --clr-text-secondary: #8a6a6a;
    --clr-headings: var(--clr-primary);
    --clr-primary: #800000; 
    --clr-primary-hover: #b22222;
    --clr-accent: #ffd700; 
    --clr-surface: rgba(255, 255, 255, 0.7); /* Glassy White */
    --clr-surface-solid: #ffffff;
    --clr-nav-text: #ffffff;
    
    /* Soft Colored Shadows */
    --clr-shadow: rgba(128, 0, 0, 0.08);
    --clr-shadow-strong: rgba(128, 0, 0, 0.15);
    
    /* High-End Tech Typography */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    /* Spatial UI Corners */
    --radius: 24px; 
    --radius-sm: 16px;
    --radius-pill: 100px;
}

body.dark-mode {
    --clr-bg: #0d0909; 
    --clr-text: #f0e6e6;
    --clr-text-secondary: #a39595;
    --clr-headings: #ffffff;
    --clr-primary: #800000;
    --clr-surface: rgba(30, 15, 15, 0.6); /* Glassy Dark */
    --clr-surface-solid: #1c1010;
    --clr-nav-text: #ffffff;
    
    --clr-shadow: rgba(0, 0, 0, 0.5);
    --clr-shadow-strong: rgba(255, 215, 0, 0.05); /* Very subtle gold shadow glow */
}

/* 2. Reset & Ambient Base */
/* FIXED: Aggressively prevent horizontal scrollbar bugs (empty boxes) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; max-width: 100vw; overflow-x: hidden; }
html { scroll-padding-top: 140px; scroll-behavior: smooth; } 
body { font-family: var(--font-primary); background-color: var(--clr-bg); color: var(--clr-text); line-height: 1.6; transition: background-color 0.5s ease; }
body.body-no-scroll { overflow: hidden; height: 100vh; touch-action: none; }

/* Ambient Glowing Background Orbs */
.ambient-glow { position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.4; pointer-events: none; animation: float 15s infinite ease-in-out alternate; }
.glow-1 { width: 40vw; height: 40vw; background: var(--clr-primary); top: -10%; left: -10%; animation-delay: 0s; }
.glow-2 { width: 35vw; height: 35vw; background: var(--clr-accent); bottom: -10%; right: -10%; opacity: 0.15; animation-delay: -5s; }
.glow-3 { width: 30vw; height: 30vw; background: var(--clr-primary-hover); top: 40%; left: 50%; opacity: 0.2; animation-delay: -10s; }
body.dark-mode .ambient-glow { opacity: 0.2; }
body.dark-mode .glow-2 { opacity: 0.05; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 50px) scale(1.1); } }

/* App Wrapper for scale effects */
#app-wrapper { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.5s; background: transparent; transform-origin: top center; width: 100%; min-height: 100vh; }
body.modal-open #app-wrapper { transform: scale(0.97) translateY(10px); border-radius: var(--radius); overflow: hidden; pointer-events: none; opacity: 0.6; filter: blur(2px); }

/* 3. Floating Pill Navigation */
.nav-wrapper { position: fixed; top: 20px; left: 0; width: 100%; display: flex; justify-content: center; z-index: 1000; pointer-events: none; }
.navbar.floating-pill {
    pointer-events: auto; display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 1.5rem; background-color: rgba(128, 0, 0, 0.85); 
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-pill); box-shadow: 0 10px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
    width: 95%; max-width: 1000px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.4s ease;
}
.logo img { height: 40px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.nav-links li { position: relative; }
.nav-links a, .dropbtn {
    text-decoration: none; color: var(--clr-nav-text); font-weight: 500; padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill); cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none; background: transparent; font-family: var(--font-primary); font-size: 0.95rem;
}
.nav-links a:hover, .dropbtn:hover { background-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }
.nav-toggle { display: none; background: none; border: none; color: var(--clr-nav-text); font-size: 1.5rem; cursor: pointer; }
.dark-mode-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; border: none; cursor: pointer; transition: 0.3s; }
.dark-mode-toggle:hover { background: var(--clr-accent); color: var(--clr-primary); transform: rotate(15deg) scale(1.1); }

/* Dropdown Glassmorphism */
.dropdown-content, .submenu {
    position: absolute; top: 120%; left: 50%; transform: translateX(-50%) translateY(15px);
    background-color: rgba(128, 0, 0, 0.85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-radius: var(--radius-sm); box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1); min-width: 240px; opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); padding: 0.5rem;
}
.dropdown-content a { padding: 0.8rem 1rem; border-radius: 8px; font-weight: 500; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.dropdown-content a:hover { background: rgba(255,255,255,0.15); transform: translateX(5px); }
.nav-links li:hover > .dropdown-content, .nav-links li:focus-within > .dropdown-content { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu { top: 0; left: 105%; transform: translateX(15px); }
.has-submenu:hover > .submenu { opacity: 1; visibility: visible; transform: translateX(0); }

/* 4. Modern Buttons & Icons */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-hover));
    color: #fff; text-decoration: none; font-weight: 600; border-radius: var(--radius-pill);
    box-shadow: 0 8px 20px var(--clr-shadow-strong); border: none; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 25px rgba(128, 0, 0, 0.3); }
.icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(128,0,0,0.1); color: var(--clr-primary); border-radius: 50%; font-size: 0.9rem; transition: 0.3s; flex-shrink: 0; }
body.dark-mode .icon-circle { background: rgba(255,255,255,0.1); color: var(--clr-accent); }

/* 5. Hero Slider Section */
/* FIXED: Used var(--clr-bg) to smoothly blend the hero video into the page background */
.hero-slider-section { 
    position: relative; width: 100%; height: 80vh; overflow: hidden; 
    border-radius: 0 0 40px 40px; box-shadow: 0 20px 40px var(--clr-shadow); 
    margin-bottom: 5rem; z-index: 2; display: block; clear: both;
    background-color: var(--clr-bg); 
}
.hero-slider { width: 100%; height: 100%; }
.hero-media { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay-gradient { 
    position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; 
    background: linear-gradient(to top, var(--clr-bg) 0%, transparent 100%); 
    z-index: 5; pointer-events: none; 
}
.intro-text { position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); z-index: 10; width: 90%; text-align: center; }
.typewriter-text { color: #fff; font-family: var(--font-secondary); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.swiper-button-prev, .swiper-button-next { color: #fff; width: 50px; height: 50px; background: rgba(255,255,255,0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 50%; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.2); }
.swiper-button-prev:hover, .swiper-button-next:hover { background: var(--clr-primary); transform: scale(1.1); }
.swiper-pagination-bullet { background: #fff; opacity: 0.5; width: 8px; height: 8px; transition: 0.3s; }
.swiper-pagination-bullet-active { background: var(--clr-accent); width: 24px; border-radius: 10px; opacity: 1; box-shadow: 0 0 15px var(--clr-accent); }

/* 6. General Sections & Typography */
.section { padding: 4rem 2rem; max-width: 1250px; margin: 0 auto; position: relative; z-index: 1; clear: both; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-family: var(--font-secondary); color: var(--clr-headings); font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.1; letter-spacing: -1px; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.15rem; color: var(--clr-text-secondary); }

/* 7. Bento Grid System & Glass Cards */
/* FIXED: Removed the featured-bento class logic completely so all 3 cards stay identical in size */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; align-items: stretch; }
.bento-card {
    background: var(--clr-surface); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px var(--clr-shadow); display: flex; flex-direction: column;
    text-decoration: none; color: var(--clr-text); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; height: 100%; overflow: hidden; /* Prevent inner text from bleeding */
}
body.dark-mode .bento-card { border-color: rgba(255,255,255,0.05); }
.bento-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 30px 60px var(--clr-shadow-strong); border-color: rgba(255,255,255,0.8); z-index: 2; }
.bento-card__image-wrapper { position: relative; padding: 1.5rem 1.5rem 0; width: 100%; overflow: hidden; flex-shrink: 0; }
.bento-card__image-wrapper img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius-sm); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); display: block; }
.bento-card:hover .bento-card__image-wrapper img { transform: scale(1.05); }
.bento-card__category { position: absolute; top: 2.5rem; left: 2.5rem; background: rgba(255,255,255,0.95); color: var(--clr-primary); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; padding: 0.5rem 1rem; border-radius: var(--radius-pill); box-shadow: 0 4px 15px rgba(0,0,0,0.1); z-index: 5; }
.bento-card__content { padding: 1.5rem 2rem; display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; }
.bento-card__content h3 { font-family: var(--font-secondary); font-size: 1.5rem; color: var(--clr-headings); line-height: 1.3; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bento-card__content p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; margin-bottom: auto; }
.bento-card__footer { display: flex; justify-content: space-between; align-items: center; padding: 0 2rem 2rem; font-weight: 600; font-size: 0.9rem; color: var(--clr-text-secondary); margin-top: auto; flex-shrink: 0; }
.bento-card:hover .icon-circle { background: var(--clr-primary); color: #fff; transform: translateX(5px); }

/* 8. Video Highlights */
.video-player-wrapper { width: 100%; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 15px 35px var(--clr-shadow); max-width: 100%; }
.main-video-player { display: block; width: 100%; aspect-ratio: 16 / 9; border: none; object-fit: cover; }
.video-card .bento-card__image-wrapper { padding: 0; height: 260px; }
.video-card .bento-card__image-wrapper img { height: 100%; width: 100%; border-radius: 0; object-fit: cover; }
.video-card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 260px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); transition: 0.4s; z-index: 5; }
.play-button { width: 70px; height: 70px; background: rgba(255,255,255,0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; transition: 0.4s; border: 1px solid rgba(255,255,255,0.5); }
.video-card:hover .play-button { background: var(--clr-accent); color: var(--clr-primary); transform: scale(1.1); border-color: transparent; }

/* 9. Content & Staff Styles */
.glass-panel { background: var(--clr-surface); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 15px 40px var(--clr-shadow); padding: 3rem; overflow: hidden; }
body.dark-mode .glass-panel { border-color: rgba(255,255,255,0.05); }
.content-with-image { display: flex; flex-wrap: wrap; gap: 4rem; align-items: center; max-width: 1000px; margin: 0 auto; }
.content-with-image img { width: 100%; max-width: 320px; border-radius: var(--radius-sm); box-shadow: 0 20px 40px var(--clr-shadow-strong); }
.content-with-image h3 { font-family: var(--font-secondary); font-size: 2.5rem; color: var(--clr-headings); margin-bottom: 1.5rem; line-height: 1.1; }
.content-with-image > div { flex: 1; min-width: 250px; }

/* FIXED: Centered Constitution Document */
.constitution-content { max-width: 800px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.constitution-content p { margin-bottom: 2rem; font-size: 1.1rem; }

.staff-group-header { margin: 4rem 0 2rem; grid-column: 1 / -1; }
.staff-group-header h3 { font-family: var(--font-secondary); font-size: 2rem; color: var(--clr-primary); }

.staff-card { cursor: pointer; }
.staff-card .bento-card__image-wrapper { padding: 1rem 1rem 0; width: 100%; display: flex; justify-content: center; overflow: hidden; flex-shrink: 0; }
.staff-card img { width: 100%; height: 320px; border-radius: var(--radius-sm); object-fit: cover; object-position: center top; display: block; transition: opacity 0.6s ease; }
.staff-photo-hover { position: absolute; top: 1rem; left: 1rem; opacity: 0; width: calc(100% - 2rem) !important; height: calc(100% - 1rem); }
.staff-card:hover .staff-photo-hover { opacity: 1; }
.staff-card:hover .staff-photo-main { opacity: 0; }
.staff-card__content { text-align: center; padding: 1.5rem; width: 100%; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.staff-card h3 { font-family: var(--font-secondary); font-size: 1.4rem; color: var(--clr-headings); margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-card p { color: var(--clr-primary); font-weight: 600; font-size: 0.9rem; }

.adviser-wrapper { display: flex; justify-content: center; margin-top: 2rem; width: 100%; }
.adviser-wrapper .staff-card { max-width: 350px; width: 100%; }
.adviser-wrapper .staff-card img { height: 380px; } 

/* 10. Photo Gallery */
.bento-gallery { column-count: 4; column-gap: 1.5rem; }
.gallery-item { break-inside: avoid; margin-bottom: 1.5rem; border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; transform: scale(1); transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 10px 30px var(--clr-shadow); }
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 20px 40px var(--clr-shadow-strong); z-index: 2; }
.gallery-item__image { width: 100%; height: auto; display: block; }

/* 11. Overlays & Modals */
.article-overlay, .team-overlay, .gallery-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.85); -webkit-backdrop-filter: blur(30px) saturate(200%); backdrop-filter: blur(30px) saturate(200%);
    z-index: 4000; visibility: hidden; opacity: 0; overflow-y: auto; overflow-x: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}
body.dark-mode .article-overlay, body.dark-mode .team-overlay, body.dark-mode .gallery-lightbox { background: rgba(15,10,10,0.85); }
.is-visible { visibility: visible; opacity: 1; transition: opacity 0.4s ease, visibility 0s 0s; }

.article-overlay__close, .team-overlay__close, .gallery-lightbox__close {
    position: fixed; top: 30px; right: 40px; background: rgba(128,0,0,0.1); color: var(--clr-primary);
    width: 50px; height: 50px; border-radius: 50%; border: none; font-size: 2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; z-index: 4005; transition: 0.3s;
}
body.dark-mode .article-overlay__close, body.dark-mode .team-overlay__close, body.dark-mode .gallery-lightbox__close { background: rgba(255,255,255,0.1); color: #fff; }
.article-overlay__close:hover, .team-overlay__close:hover, .gallery-lightbox__close:hover { background: var(--clr-primary); color: #fff; transform: rotate(90deg) scale(1.1); }

.article-header-full { width: 100%; height: 70vh; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; padding: 5rem 4rem; position: relative; border-radius: 0 0 40px 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); overflow: hidden; }
.article-header-full::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); border-radius: 0 0 40px 40px; }
.article-header-full h2, .article-header-full .article-meta { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; width: 100%; color: #fff; }
.article-header-full h2 { font-family: var(--font-secondary); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 1rem; }
.article-body-content { max-width: 900px; margin: 0 auto; padding: 5rem 2rem; font-size: 1.15rem; }
.article-body-content h3 { font-family: var(--font-secondary); font-size: 2.2rem; color: var(--clr-headings); margin: 3rem 0 1.5rem; }

/* 12. Modal Specifics */
.modal-overlay, .adviser-overlay__backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal-content, .adviser-overlay__content { position: relative; z-index: 3001; margin: auto; max-width: 1000px; width: 90%; border-radius: var(--radius); overflow: hidden; animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.adviser-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 4500; display: flex; align-items: center; justify-content: center; padding: 2rem; visibility: hidden; opacity: 0; transition: opacity 0.4s ease; }
.adviser-overlay.is-visible { visibility: visible; opacity: 1; }
.adviser-overlay__content { display: flex; flex-direction: row; height: 80vh; max-height: 700px; padding: 0; align-items: stretch; background: var(--clr-surface-solid); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.adviser-overlay__photo-container { width: 45%; flex-shrink: 0; background: #000; overflow: hidden; }
.adviser-overlay__photo-container img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.adviser-overlay__text-container { width: 55%; padding: 4rem; overflow-y: auto; flex-grow: 1; }
.adviser-overlay__text-container h2 { font-family: var(--font-secondary); font-size: 3rem; color: var(--clr-headings); line-height: 1.1; margin-bottom: 0.5rem; }
.adviser-title { color: var(--clr-primary); font-weight: 700; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 1px; }
.adviser-overlay__close { position: absolute; top: 20px; right: 30px; background: none; border: none; font-size: 3rem; font-weight: 300; color: #fff; cursor: pointer; line-height: 1; z-index: 4502; transition: transform 0.3s ease; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.adviser-overlay__close:hover { transform: scale(1.1) rotate(90deg); color: var(--clr-accent); }

/* FIXED: Guaranteed absolute removal of hidden modals from DOM flow to stop empty boxes */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.active { display: flex; }
.modal:not(.active),
.adviser-overlay:not(.is-visible),
.article-overlay:not(.is-visible),
.team-overlay:not(.is-visible),
.gallery-lightbox:not(.is-visible) { display: none !important; }
#templates { display: none !important; width: 0; height: 0; visibility: hidden; position: absolute; }

/* 13. Footer - FIXED: max-width 100% and overflow hidden to strictly kill horizontal scrolling */
.site-footer { background: var(--clr-surface-solid); padding: 6rem 2rem 2rem; border-top: 1px solid rgba(128,0,0,0.1); position: relative; overflow: hidden; margin-top: 4rem; clear: both; width: 100%; max-width: 100%; }
body.dark-mode .site-footer { border-top: 1px solid rgba(255,255,255,0.05); }
.footer-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; max-width: 1200px; margin: 0 auto; padding-bottom: 4rem; }
.footer-logo { height: 60px; margin-bottom: 1.5rem; }
.footer-column h3 { font-family: var(--font-secondary); font-size: 1.5rem; color: var(--clr-headings); margin-bottom: 1.5rem; }
.footer-contact p { display: flex; align-items: center; gap: 15px; margin-bottom: 1rem; }
.footer-contact a { color: var(--clr-text); text-decoration: none; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: rgba(128,0,0,0.05); color: var(--clr-primary); border-radius: 50%; transition: 0.3s; }
body.dark-mode .social-icons a { background: rgba(255,255,255,0.05); color: #fff; }
.social-icons a:hover { background: var(--clr-primary); color: #fff; transform: translateY(-3px); }

/* FIXED: Footer Text Alignment - Centered Copyright */
.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding-top: 2rem; max-width: 1200px; margin: 0 auto; color: var(--clr-text-secondary); font-size: 0.95rem; text-align: center; border-top: 1px solid rgba(128,0,0,0.1); }
body.dark-mode .footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); }
.footer-stats { display: flex; gap: 2rem; align-items: center; justify-content: center; flex-wrap: wrap; }
#visitor-count { color: var(--clr-primary); font-weight: 700; }
body.dark-mode #visitor-count { color: var(--clr-accent); }

/* Scroll Top */
.scroll-top { position: fixed; bottom: 30px; right: 30px; background: var(--clr-surface); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--clr-primary); border: 1px solid rgba(128,0,0,0.1); height: 50px; width: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 10px 20px var(--clr-shadow); z-index: 998; }
body.dark-mode .scroll-top { color: var(--clr-accent); border-color: rgba(255,255,255,0.1); }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-5px); background: var(--clr-primary); color: #fff; border-color: transparent; }

/* 14. Responsive - Ensuring Overlays and Grids don't break */
@media (max-width: 950px) {
    .nav-toggle { display: block; }
    .navbar.floating-pill { width: 90%; border-radius: 20px; padding: 1rem; }
    .main-nav { position: absolute; top: 110%; left: 0; width: 100%; background: rgba(128,0,0,0.95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 20px; max-height: 0; overflow: hidden; transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(255,255,255,0.1); }
    body.dark-mode .main-nav { background: rgba(30,15,15,0.95); }
    .main-nav.nav-visible { max-height: 80vh; padding: 1rem 0; box-shadow: 0 20px 40px rgba(0,0,0,0.3); overflow-y: auto; }
    .nav-links { flex-direction: column; align-items: flex-start; gap: 0; }
    .nav-links > li { width: 100%; }
    .nav-links a, .nav-links .dropbtn { width: 100%; padding: 1.2rem 2rem; border-radius: 0; justify-content: space-between; }
    .dropdown-content, .submenu { position: static; transform: none; min-width: 100%; box-shadow: none; border: none; background: rgba(0,0,0,0.1); border-radius: 0; padding: 0; max-height: 0; opacity: 1; visibility: visible; }
    .dropdown button.active + .dropdown-content { max-height: 500px; padding: 0.5rem 0; }
    .dropdown-content a { padding: 1rem 3rem; }
    .hero-slider-section { height: 70vh; border-radius: 0 0 24px 24px; margin-bottom: 3rem; }
    .typewriter-text { font-size: 3rem; }
}

@media (max-width: 900px) {
    .adviser-overlay__content { flex-direction: column; height: 90vh; }
    .adviser-overlay__photo-container { width: 100%; height: 45%; }
    .adviser-overlay__text-container { width: 100%; height: 55%; padding: 2.5rem; }
    .adviser-overlay__text-container h2 { font-size: 2.5rem; }
    
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .footer-contact p { justify-content: center; }
    .social-icons { justify-content: center; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 1.5rem; }
    .section-header h2 { font-size: 2.8rem; }
    .bento-grid { grid-template-columns: 1fr; }
    
    .content-with-image { gap: 2rem; }
    .content-with-image img { width: 100%; max-width: 400px; margin: 0 auto; }
    .gallery-grid { column-count: 3; }
    
    .adviser-wrapper .staff-card img { height: 320px; }
}

@media (max-width: 480px) {
    .section-header h2 { font-size: 2.2rem; }
    .typewriter-text { font-size: 2.2rem; }
    .gallery-grid { column-count: 2; }
    .article-header-full { padding: 3rem 1.5rem; border-radius: 0 0 24px 24px; min-height: 350px; }
    .article-body-content { padding: 3rem 1.5rem; }
    .adviser-overlay__text-container { padding: 1.5rem; }
    .adviser-overlay__text-container h2 { font-size: 2rem; }
    .team-overlay__content { padding: 5rem 1rem 3rem; }
    
    .staff-card img { height: 280px; }
    .adviser-wrapper .staff-card img { height: 300px; }
    
    .bento-card__image-wrapper { padding: 1rem 1rem 0; }
    .bento-card__content { padding: 1rem 1.5rem; }
    .bento-card__footer { padding: 0 1.5rem 1.5rem; }
}

/* ==========================================================================
   ENHANCEMENTS: interaction, accessibility & polish layer
   ========================================================================== */

/* Keyboard access */
:focus-visible { outline: 3px solid var(--clr-accent); outline-offset: 3px; }
main:focus { outline: none; }
.skip-link { position: fixed; top: -80px; left: 1rem; z-index: 6000; background: var(--clr-accent); color: var(--clr-primary); font-weight: 700; padding: 0.7rem 1.3rem; border-radius: var(--radius-pill); text-decoration: none; transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.skip-link:focus { top: 1rem; }

/* Reading progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1100; transform-origin: left; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent)); pointer-events: none; }

/* Navigation: compact on scroll, current-section highlight, hover-gap bridges */
.navbar.floating-pill.is-scrolled { padding-top: 0.5rem; padding-bottom: 0.5rem; box-shadow: 0 14px 44px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.1); }
.nav-links a.is-current, .dropbtn.is-current { background: rgba(255,255,255,0.18); }
.nav-links > li > a.is-current { position: relative; }
.nav-links > li > a.is-current::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--clr-accent); }
.dropdown-content::before { content: ''; position: absolute; top: -24px; left: 0; width: 100%; height: 24px; }
.submenu::before { content: ''; position: absolute; top: 0; left: -24px; width: 24px; height: 100%; }

/* Section reveal (your JS already added .active; the styles were missing) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.active { opacity: 1; transform: none; }

/* Hero typewriter caret */
.typewriter-text::after { content: ''; display: inline-block; width: 3px; height: 0.85em; margin-left: 6px; vertical-align: -0.05em; background: var(--clr-accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Footer contact rows (fixes invalid <p><div> nesting) */
.footer-contact .contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 1rem; }
.icon-circle.small { width: 30px; height: 30px; font-size: 0.75rem; }

@media (max-width: 950px) {
    .nav-links > li > a.is-current::after, .dropdown-content::before, .submenu::before { display: none; }
    .nav-links a.is-current { background: rgba(255,255,255,0.12); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   ARTICLE READER: clean reading layout for News, Features & Event Coverage
   ========================================================================== */
.article-overlay, body.dark-mode .article-overlay { background: var(--clr-bg); }
.article-overlay.is-visible .article-overlay__content-wrapper { animation: articleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes articleIn { from { opacity: 0; transform: translateY(24px); } }
.article-overlay__progress { position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 4006; transform-origin: left; transform: scaleX(var(--read, 0)); background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent)); pointer-events: none; }
.article-overlay .article-overlay__close:not(:hover), body.dark-mode .article-overlay .article-overlay__close:not(:hover) { background: rgba(0,0,0,0.45); color: #fff; border: 1px solid rgba(255,255,255,0.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Header */
.article-header-full { height: auto; min-height: min(58vh, 520px); padding: 8rem 2rem 3.5rem; background-color: #3d0a10; border-radius: 0 0 32px 32px; }
.article-header-full::before { border-radius: 0 0 32px 32px; background: linear-gradient(to top, rgba(20,4,6,0.92) 5%, rgba(20,4,6,0.35) 60%, rgba(20,4,6,0.25)); }
.article-kicker { position: relative; z-index: 2; width: 100%; max-width: 760px; margin: 0 auto 1.2rem; }
.article-kicker span { display: inline-block; background: var(--clr-accent); color: var(--clr-primary); font-weight: 700; font-size: 0.8rem; padding: 0.4rem 1rem; border-radius: var(--radius-pill); }
.article-header-full h2 { max-width: 760px; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.15; text-wrap: balance; margin-bottom: 1.5rem; }
.article-header-full .article-meta { max-width: 760px; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.6rem; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.article-meta__item i { margin-right: 0.5rem; color: var(--clr-accent); }
.article-meta__author { font-weight: 700; color: #fff; }

/* Body */
.article-body-content { max-width: 720px; padding: 4rem 1.5rem 3rem; font-size: 1.125rem; line-height: 1.85; }
.article-body-content p { margin-bottom: 1.5rem; }
.article-body-content .article-lead { font-size: 1.3rem; line-height: 1.7; font-weight: 500; }
.article-body-content h3 { position: relative; font-size: 1.7rem; line-height: 1.25; margin: 3rem 0 1rem; padding-top: 1.4rem; text-wrap: balance; }
.article-body-content h3::before { content: ''; position: absolute; top: 0; left: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--clr-accent); }
.article-body-content blockquote { margin: 2rem 0; padding: 0.3rem 0 0.3rem 1.5rem; border-left: 4px solid var(--clr-accent); font-family: var(--font-secondary); font-style: italic; font-size: 1.3rem; line-height: 1.55; color: var(--clr-headings); }
.article-body-content img { display: block; width: 100%; height: auto; margin: 2rem 0; border-radius: var(--radius-sm); box-shadow: 0 20px 40px var(--clr-shadow); }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.article-gallery img { margin: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.article-body-content .btn { margin-top: 1rem; }
.content-with-image p { white-space: pre-line; }

/* More stories */
.article-more { max-width: 1100px; margin: 2rem auto 0; padding: 3rem 1.5rem 5rem; border-top: 1px solid rgba(128,0,0,0.12); }
body.dark-mode .article-more { border-top-color: rgba(255,255,255,0.08); }
.article-more h3 { font-family: var(--font-secondary); font-size: 1.8rem; color: var(--clr-headings); margin-bottom: 1.5rem; }
.article-more__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.more-card { display: flex; flex-direction: column; padding: 0; text-align: left; font: inherit; color: var(--clr-text); background: var(--clr-surface-solid); border: 1px solid rgba(128,0,0,0.1); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s; }
body.dark-mode .more-card { border-color: rgba(255,255,255,0.08); }
.more-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px var(--clr-shadow-strong); }
.more-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.more-card__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem 1.2rem; }
.more-card__cat { font-size: 0.8rem; font-weight: 700; color: var(--clr-primary); }
body.dark-mode .more-card__cat { color: var(--clr-accent); }
.more-card__title { font-family: var(--font-secondary); font-size: 1.05rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 768px) {
    .article-header-full { min-height: 50vh; padding: 6.5rem 1.25rem 2.5rem; border-radius: 0 0 24px 24px; }
    .article-header-full::before { border-radius: 0 0 24px 24px; }
    .article-body-content { padding: 2.5rem 1.25rem 2rem; font-size: 1.05rem; }
    .article-body-content .article-lead, .article-body-content blockquote { font-size: 1.15rem; }
    .article-overlay__close { top: 16px; right: 16px; }
}
/* Targeted repairs: original colors, fonts, cards and floating navigation are unchanged. */
[hidden] { display: none !important; }
.bento-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.bento-grid > *, .content-with-image > div { min-width: 0; }
.article-card, .video-card { cursor: pointer; }
.bento-card__footer { gap: 1rem; }
.bento-card__footer > span { min-width: 0; overflow-wrap: anywhere; }
html.popup-open { scroll-behavior: auto; overflow: hidden; }
body.body-no-scroll { position: fixed; top: var(--popup-scroll-y, 0px); left: 0; width: 100%; height: auto; touch-action: auto; overflow: hidden; }
.article-overlay, .team-overlay, .gallery-lightbox { height: 100dvh; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.article-overlay.is-visible, .team-overlay.is-visible, .gallery-lightbox.is-visible { opacity: 1; visibility: visible; }
.article-overlay__content-wrapper { min-height: 100%; padding-bottom: 1px; }
.article-body-content { overflow-wrap: break-word; }
.article-body-content p { white-space: normal; }
.article-body-content .btn { white-space: normal; }
.team-overlay__content { padding: 4rem 0; }
.gallery-swiper { width: 100%; height: 100dvh; padding: 80px 65px 35px; }
.gallery-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; }
.gallery-swiper img { max-width: 100%; max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain; }
.modal { height: 100dvh; }
.modal-content { max-height: calc(100dvh - 2rem); overflow-y: auto; }
.modal-body h2 { font-family: var(--font-secondary); color: var(--clr-headings); margin: 0 2rem 1.5rem 0; line-height: 1.25; }
.modal-video { display: block; width: 100%; max-height: 65dvh; background: #000; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.modal-close { position: absolute; top: 12px; right: 16px; width: 40px; height: 40px; border: 0; background: var(--clr-surface-solid); color: var(--clr-headings); border-radius: 50%; font-size: 2rem; cursor: pointer; z-index: 2; }
.media-unavailable { margin: 1rem 0; }
.visitor-retry { margin-left: .6rem; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.dropdown.is-open > .dropdown-content { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-submenu.is-open > .submenu, .has-submenu:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateX(0); }
.swiper-fallback > .swiper-wrapper { display: block; transform: none !important; }
.swiper-fallback > .swiper-wrapper > .swiper-slide { display: none; height: 100%; }
.swiper-fallback > .swiper-wrapper > .swiper-slide.fallback-current { display: block; }
.swiper-fallback.gallery-swiper .swiper-slide.fallback-current { display: flex; }
.swiper-fallback .swiper-button-prev::after { content: '‹'; font: 32px/1 sans-serif; }
.swiper-fallback .swiper-button-next::after { content: '›'; font: 32px/1 sans-serif; }
@media (max-width: 950px) {
    .main-nav.nav-visible { max-height: calc(100dvh - 120px); }
    .nav-links a, .nav-links .dropbtn { display: flex; align-items: center; }
    .dropdown-content, .submenu { display: none; max-height: none !important; transform: none !important; overflow: visible; }
    .dropdown.is-open > .dropdown-content, .has-submenu.is-open > .submenu { display: block; transform: none; }
    .submenu { padding-left: 1rem; }
    .dropdown-content a { font-size: .9rem; }
}
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: minmax(0, 1fr); }
    .section-header { margin-bottom: 2.5rem; }
    .content-with-image > div { flex-basis: 100%; }
    .gallery-swiper { padding: 75px 20px 30px; }
    .gallery-swiper .swiper-button-prev, .gallery-swiper .swiper-button-next { top: auto; bottom: 18px; }
    .article-overlay__close, .team-overlay__close, .gallery-lightbox__close { right: 16px; top: 16px; width: 44px; height: 44px; }
    .modal-content.glass-panel { padding: 2rem 1.25rem; width: 100%; }
    .adviser-overlay { padding: 1rem; }
    .adviser-overlay__content { height: calc(100dvh - 2rem); }
}
/* Keep tap targets stable while menus open; preserve their final appearance. */
.dropdown-content, .submenu { list-style: none; transition-property: opacity, visibility; }
.navbar.floating-pill { transition-property: background-color, box-shadow, border-color; }
@media (max-width: 950px) { .main-nav { transition: opacity .2s ease; } }

/* Separate staff groups within the original team popup. */
.team-intro.section { padding-top: 1.5rem; padding-bottom: 1rem; }
.team-intro .section-header { margin-bottom: 2rem; }
.team-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.team-tab { border: 1px solid var(--clr-primary); border-radius: var(--radius-pill); padding: .9rem 1.6rem; color: var(--clr-primary); background: var(--clr-surface-solid); font: 600 .95rem/1.5 var(--font-primary); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.team-tab[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-hover)); box-shadow: 0 8px 20px var(--clr-shadow-strong); }
.team-tab:hover { box-shadow: 0 8px 20px var(--clr-shadow); }
body.dark-mode .team-tab:not([aria-selected="true"]) { color: var(--clr-accent); border-color: rgba(255,215,0,.35); }
.staff-panel.section { padding-top: 2rem; }
.staff-panel > h2 { color: var(--clr-headings); font-family: var(--font-secondary); font-size: clamp(1.8rem,4vw,2.5rem); line-height: 1.2; }
.staff-year { color: var(--clr-text-secondary); margin: .6rem 0 2rem; }

/* Native on-page publication dialog; the book's own viewer supplies page-turn animation. */
.publication-overlay { position: fixed; inset: 0; margin: auto; width: min(1440px,calc(100vw - 2rem)); height: calc(100dvh - 2rem); max-width: none; max-height: none; padding: 0; border: 1px solid var(--clr-shadow-strong); border-radius: var(--radius); background: var(--clr-surface-solid); color: var(--clr-text); overflow: hidden; box-shadow: 0 25px 90px rgba(0,0,0,.35); }
.publication-overlay[open] { display: flex; flex-direction: column; animation: publicationEnter .3s cubic-bezier(.16,1,.3,1); }
.publication-overlay:not([open]) { display: none; }
.publication-overlay::backdrop { background: rgba(20,5,8,.65); backdrop-filter: blur(8px); }
@keyframes publicationEnter { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.publication-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: none; padding: 1rem 1.25rem 1rem 1.5rem; border-bottom: 1px solid var(--clr-shadow-strong); background: var(--clr-surface-solid); }
.publication-heading { min-width: 0; }
.publication-kicker { color: var(--clr-text-secondary); font: 600 .6rem/1.5 var(--font-primary); letter-spacing: 1.2px; }
.publication-heading h2 { color: var(--clr-headings); font: 700 clamp(1.3rem,2.5vw,2rem)/1.2 var(--font-secondary); margin-top: .2rem; }
.publication-tools { display: flex; align-items: center; gap: 1rem; }
.publication-issue-label { display: flex; align-items: center; gap: .6rem; font: 500 .75rem/1.5 var(--font-primary); color: var(--clr-text-secondary); }
.publication-issue-label select { max-width: 260px; min-width: 0; border: 1px solid var(--clr-shadow-strong); border-radius: 10px; padding: .6rem .75rem; font: 500 .8rem/1.4 var(--font-primary); color: var(--clr-text); background: var(--clr-bg); }
.publication-original { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 0; color: var(--clr-headings); font: 600 .75rem/1.5 var(--font-primary); text-decoration: none; white-space: nowrap; }
.publication-original:hover { text-decoration: underline; text-underline-offset: 4px; }
.publication-overlay__close { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 50%; color: var(--clr-headings); background: var(--clr-bg); font-size: 2rem; line-height: 1; cursor: pointer; }
.publication-overlay__close:hover { color: #fff; background: var(--clr-primary); }
.publication-stage { position: relative; flex: 1; min-height: 0; background: var(--clr-bg); }
.publication-frame-host, .publication-frame-host iframe { display: block; width: 100%; height: 100%; border: 0; }
.publication-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; color: var(--clr-text-secondary); background: var(--clr-bg); font: 500 .9rem/1.5 var(--font-primary); pointer-events: none; }
.publication-spinner { width: 32px; height: 32px; border: 3px solid var(--clr-shadow-strong); border-top-color: var(--clr-primary); border-radius: 50%; animation: publicationSpin 1s linear infinite; }
@keyframes publicationSpin { to { transform: rotate(360deg); } }
.publication-footer { flex: none; padding: .65rem 1.5rem; border-top: 1px solid var(--clr-shadow-strong); font: .7rem/1.6 var(--font-primary); color: var(--clr-text-secondary); }
@media (max-width: 768px) {
    .team-tabs { gap: .75rem; }
    .team-tab { width: 100%; padding: .85rem 1rem; font-size: .9rem; }
    .team-intro.section { padding-top: 1rem; }
    .publication-overlay { width: calc(100vw - 1rem); height: calc(100dvh - 1rem); border-radius: var(--radius-sm); }
    .publication-toolbar { align-items: flex-start; flex-wrap: wrap; gap: .75rem; padding: 1rem; }
    .publication-heading { padding-right: 44px; width: 100%; }
    .publication-kicker { font-size: .5rem; letter-spacing: .8px; }
    .publication-tools { width: 100%; justify-content: space-between; gap: .6rem; }
    .publication-overlay__close { position: absolute; right: .75rem; top: .75rem; width: 38px; height: 38px; }
    .publication-issue-label { gap: .4rem; font-size: .7rem; min-width: 0; flex: 1; }
    .publication-issue-label select { width: 100%; max-width: 240px; font-size: .7rem; padding: .55rem; }
    .publication-original { font-size: .65rem; gap: .3rem; }
    .publication-footer { padding: .55rem 1rem; font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) { .publication-overlay[open], .publication-spinner { animation: none; } }
.publication-unavailable { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: 2rem; text-align: center; }
.publication-unavailable h3 { color: var(--clr-headings); font: 700 clamp(1.5rem,4vw,2.4rem)/1.2 var(--font-secondary); max-width: 600px; }
.publication-unavailable p { color: var(--clr-text-secondary); max-width: 450px; }
.publication-unavailable .btn { font: 600 .85rem/1.5 var(--font-primary); }
