/* ==========================================================================
   NEOCLASSICAL ARCHIVE - MASTER OVERRIDE STYLESHEET
   VERSION: 2.2.0 - Specific Link Overrides (Catalog & Media)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL SETUP & OVERRIDES
   -------------------------------------------------------------------------- */
html, body, .site, #page {
    overflow-x: clip !important;
}

html {
    scroll-behavior: smooth;
}

.site-header, 
#masthead, 
.main-navigation {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
}

/* Header Search Icon: Hover & Active (Absolute Override) */
#masthead a:hover, #masthead a:hover *, #masthead .ast-header-search:hover *,
#masthead .ast-search-icon:hover *, #masthead .ast-search-menu-icon:hover *,
#ast-desktop-header .ast-header-search:hover *, #ast-desktop-header .ast-search-icon:hover *,
#ast-desktop-header .ast-search-menu-icon:hover * {
    color: #0274be !important;
    fill: #0274be !important;
    stroke: #0274be !important;
}

#masthead .current-menu-item a, #masthead .current-menu-item a *,
#masthead .current_page_item a, #masthead .current_page_item a * {
    color: #0274be !important;
    fill: #0274be !important;
    stroke: #0274be !important;
}

body.page-id-5649 #masthead .ast-header-search *, body.page-id-5649 #masthead .ast-search-icon *,
body.page-id-5649 #masthead .ast-search-menu-icon *, body.page-id-5649 #masthead a[href*="index"] *,
body.page-id-5649 #masthead a[href*="search"] *, body.page-id-5649 #ast-desktop-header .ast-header-search *,
body.page-id-5649 #ast-desktop-header .ast-search-icon *, body.page-id-5649 #ast-desktop-header .ast-search-menu-icon * {
    color: #0274be !important;
    fill: #0274be !important;
    stroke: #0274be !important;
}

/* --------------------------------------------------------------------------
   2. ARCHIVAL NAVIGATION & JUMP MENUS
   -------------------------------------------------------------------------- */
#top-menu, #top-menu-concerts, #top-menu-media, #top-menu-audio, #top-menu-publications, #top-menu-contact, #contact {
    display: block !important;
    padding-top: 80px !important;
    margin-top: -40px !important;
    border-top: none !important;
    position: relative !important;
}

#top-menu::before, #top-menu-concerts::before, #top-menu-media::before, #top-menu-audio::before {
    content: "" !important;
    position: absolute !important;
    top: 40px !important;
    left: 0 !important;
    right: 0 !important;
    border-top: 1px solid #eee !important;
}

.era-return-wrapper {
    text-align: center !important;
    width: 100% !important;
    padding-top: 80px !important;
    margin-top: -40px !important;
    margin-bottom: 20px !important;
    position: relative !important;
    clear: both !important;
}

.year-anchor {
    display: block !important;
    padding-top: 80px !important;
    margin-top: -80px !important;  
    position: relative !important;
    visibility: hidden !important;
}

[id], .jump-header, .jump-header-first, #concerts {
    scroll-margin-top: 120px !important;
}

.jump-menu {
    display: block !important;
    text-align: center !important;
    margin: 40px auto 40px auto !important; 
    font-size: 0.9rem !important; 
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 25px 0 !important;
    border-top: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
    max-width: 950px !important;
    width: 100% !important;
}

.jump-menu a {
    display: inline-block !important;
    margin: 0 10px !important;
    color: #1a1a1a !important; 
    font-weight: 500 !important;
    text-decoration: none !important;
}

#top-menu-concerts a, #top-menu-media a, #top-menu-audio a {
    text-transform: none !important;
    letter-spacing: 0.05em !important;
}

.entry-content .jump-header-first {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-top: -20px !important; 
    padding-top: 30px !important; 
    margin-bottom: 15px !important;
    border-top: none !important;
    clear: both !important;
    width: 100% !important;
}

.entry-content .jump-header, .entry-content .year-header-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-top: -20px !important; 
    padding-top: 80px !important;
    margin-bottom: 15px !important;
    border-top: none !important; 
    position: relative !important;
    clear: both !important;
    width: 100% !important;
}

.entry-content .jump-header::before, .entry-content .year-header-container::before {
    content: "" !important;
    position: absolute !important;
    top: 20px !important; 
    left: 0 !important;
    right: 0 !important;
    border-top: 1px solid #f0f0f0 !important;
}

.entry-content .jump-header h2, .entry-content .jump-header-first h2, .entry-content .year-title {
    margin: 0 !important;
    font-family: serif !important;
    font-size: 2.2rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
    color: #1a1a1a !important;
    text-transform: uppercase !important;
}

.back-to-top-small {
    display: inline-block !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 0.7em !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #999 !important;
    border: 1px solid #eee !important;
    padding: 5px 12px !important;
    background-color: #fdfdfd !important;
    text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   3. GLOBAL LINK UNIFICATION (Step One)
   -------------------------------------------------------------------------- */
.catalog-container a, 
.catalog-permanent-link a,
.neoclassical-standard-link,
.pm-single-link,
.catalog-pm-link,
#pn-archive-section .program-note-container a,
.review-works-list a, 
.review-summary a, 
.review-free-text a, 
.review-link a,
.review-summary-container a, 
.review-read-more-link,
.archive-performances a.perf-title-link, 
.archive-performances-text a,
.performance-container a, 
.free-text-content a,
.media-discography a, 
.pub-link, 
.contact-link {
    color: #1a1a1a !important;
    text-decoration: underline !important;
    text-decoration-color: #1a1a1a !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    box-shadow: none !important;
}

.catalog-container a:hover, 
.catalog-permanent-link a:hover,
.neoclassical-standard-link:hover,
.pm-single-link:hover,
.catalog-pm-link:hover,
#pn-archive-section .program-note-container a:hover,
.review-works-list a:hover, 
.review-summary a:hover, 
.review-free-text a:hover, 
.review-link a:hover,
.review-summary-container a:hover, 
.review-read-more-link:hover,
.archive-performances a.perf-title-link:hover, 
.archive-performances-text a:hover,
.performance-container a:hover, 
.free-text-content a:hover,
.media-discography a:hover, 
.pub-link:hover, 
.contact-link:hover {
    color: #666 !important;
    text-decoration-color: #666 !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
}

/* PRESERVED EXCEPTIONS */
.jump-menu a {
    text-decoration: none !important;
}

.wp-block-image a,
.catalog-score-column a {
    text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   4. CATALOG & WORK STYLES
   -------------------------------------------------------------------------- */
.catalog-container { 
    max-width: 1240px;
    margin: 40px auto; 
    padding: 0; 
    text-align: left;
    color: var(--ast-global-color-3, #333);
    font-family: var(--ast-font-family-system, sans-serif) !important; 
    font-size: 1.0em !important;
}

.catalog-main-header { 
    margin-bottom: 7.5px;
    border-bottom: 3px solid var(--ast-global-color-0, #e53935) !important;
    padding-bottom: 20px;
    display: inline-block;
    width: 90px;
}

.catalog-main-title { 
    font-size: 2em;
    font-weight: 300; 
    margin: 0;
    white-space: nowrap;
    color: var(--ast-global-color-2, #1a1a1a);
}

.total-works-indicator { 
    display: block !important;
    color: var(--ast-global-color-3, #333);
    font-weight: bold; 
    margin-top: 22.5px;
    margin-bottom: 40px;
    line-height: 1;
}

.catalog-entry { margin-bottom: 30px !important; display: block; }

.catalog-entry summary { 
    list-style: none !important; 
    cursor: pointer !important; 
    outline: none !important;
}
.catalog-entry summary::-webkit-details-marker { display: none; }

.catalog-header-sandwich { 
    border-top: 1px solid var(--ast-border-color, #ddd);
    border-bottom: 1px solid var(--ast-border-color, #ddd);
    padding: 10px 0; 
    width: 100%; 
    line-height: 1.8 !important;
}

.catalog-arrow { 
    color: var(--ast-global-color-0, #e53935) !important;
    display: inline-block; 
    transition: transform 0.3s ease;
    font-size: 0.8em; 
    margin-left: 4px;
}
.catalog-entry[open] .catalog-arrow { transform: rotate(180deg); }

.catalog-vtext { 
    font-style: italic; 
    margin-left: 40px;
    margin-top: 0.2em !important;
    margin-bottom: 0 !important;
    line-height: 1.8 !important;
}

.catalog-content-area { 
    margin-top: 20px !important; 
    line-height: 1.6 !important;
    margin-left: 40px;
    animation: catalogFadeIn 0.3s ease-in-out;
}

@keyframes catalogFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.catalog-wd { margin-bottom: 4px; } 
.catalog-permanent-link { margin-bottom: 25px; display: block; }

.performance-materials ul { list-style: none; padding: 0; margin: 10px 0; }
.performance-materials li { position: relative; padding-left: 15px; margin-bottom: 4px; }
.performance-materials li::before { 
    content: "•"; 
    color: var(--ast-global-color-3, #333); 
    position: absolute; 
    left: 0; 
}

/* Programme Note Specificity Override */
#pn-archive-section .program-note-container {
    padding-left: 40px !important; 
    line-height: 1.5 !important;
}
#pn-archive-section .program-note-container h2, 
#pn-archive-section .program-note-container h3,
#pn-archive-section .program-note-container h4 {
    margin-left: -40px !important; 
    margin-top: 30px !important;
    margin-bottom: 20px !important; 
    display: block !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
#pn-archive-section .program-note-container p {
    margin-top: 0 !important;
    margin-bottom: 1.5em !important;
}

/* --------------------------------------------------------------------------
   5. REVIEWS & PERFORMANCES
   -------------------------------------------------------------------------- */
.archive-performances a.perf-title-link { font-weight: 600 !important; }
.review-summary a, .review-free-text a, .review-link a, .review-summary-container a, .archive-performances-text a, .free-text-content a { font-weight: normal !important; }

.performance-container { font-size: 1em; line-height: 1.6; color: #000; }
.work-list-container { list-style: none; padding-left: 1.5em !important; margin: 0; }
.work-list-item { position: relative; margin-bottom: 12px; line-height: 1.5; }
.work-dot { position: absolute; left: -1.2em; color: #000; font-weight: bold; }
.performance-label { text-transform: uppercase; font-size: 0.75em; letter-spacing: 1.5px; color: #999; margin-bottom: 15px; display: block; }
.work-meta-secondary { color: #666; font-size: 0.9em; }

.reviews-desktop { display: flex !important; gap: 50px !important; margin-top: 40px !important; margin-bottom: 60px !important; }
.review-column { flex: 1 !important; display: flex !important; flex-direction: column !important; }
.reviews-mobile { display: none !important; }
.review-item { margin-bottom: 35px !important; }
.review-item p { font-family: serif !important; font-size: 1.05rem !important; line-height: 1.6 !important; color: #1a1a1a !important; margin: 0 0 8px 0 !important; }
.review-source { display: inline-block !important; font-family: sans-serif !important; font-size: 0.75rem !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; }

.concert-disclaimer { max-width: 700px !important; margin: 0 auto 50px auto !important; text-align: center !important; font-family: sans-serif !important; font-size: 0.85rem !important; line-height: 1.6 !important; color: #666 !important; font-style: italic !important; }
.concert-disclaimer strong { font-family: serif !important; font-style: normal !important; color: #1a1a1a !important; font-size: 0.95rem !important; }
.concerts-desktop { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 40px !important; margin-top: 30px !important; margin-bottom: 20px !important; }
.concerts-mobile { display: none !important; }
.performance-item { display: block !important; margin-bottom: 15px !important; padding-bottom: 15px !important; border-bottom: 1px solid #f5f5f5 !important; text-decoration: none !important; transition: all 0.2s ease !important; }
.perf-row-main { font-family: serif !important; font-size: 1.1rem !important; color: #1a1a1a !important; line-height: 1.4 !important; margin-bottom: 3px !important; }
.perf-work-link { font-weight: 700 !important; }
.perf-ensemble { font-style: italic !important; color: #444 !important; }
.perf-date-inline { font-family: sans-serif !important; font-size: 0.75rem !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; color: #999 !important; }
.perf-row-sub { display: block !important; font-family: sans-serif !important; font-size: 0.75rem !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; color: #888 !important; line-height: 1.3 !important; }
.performance-item:hover .perf-work-link, .performance-item:hover .perf-row-main { color: #666 !important; }
.performance-item:hover .perf-row-sub { color: #bbb !important; }

/* --------------------------------------------------------------------------
   6. MEDIA (AUDIO/VIDEO)
   -------------------------------------------------------------------------- */
h3.media-sub-header { font-family: serif !important; font-size: 1.7rem !important; color: #1a1a1a !important; margin-top: 60px !important; margin-bottom: 25px !important; border-bottom: none !important; text-align: center !important; }

.youtube-category-header, .audio-category-header { margin-top: 30px !important; margin-bottom: 15px !important; font-size: 1.2rem !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; border-bottom: 1px solid #eee !important; padding-bottom: 5px !important; }
.youtube-work-list, .audio-work-list { list-style-type: none !important; padding-left: 0 !important; margin-bottom: 40px !important; }
.youtube-work-group, .audio-work-group { margin-bottom: 20px !important; line-height: 1.6 !important; color: #1a1a1a !important; }

/* Audio & Video Archive Links (NO UNDERLINE) */
.youtube-work-title-link, 
.audio-work-title-link,
.youtube-video-link, 
.audio-file-link {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    background: transparent !important;
    box-shadow: none !important;
}

.youtube-video-link, 
.audio-file-link {
    display: block !important;
    padding: 3px 0 3px 20px !important;
}

.youtube-work-title-link:hover, 
.audio-work-title-link:hover,
.youtube-video-link:hover, 
.audio-file-link:hover {
    color: #666 !important;
    text-decoration: none !important;
}

/* The Blue Triangle Lock */
.youtube-play-arrow, 
.audio-play-arrow {
    color: #0274be !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-right: 8px !important;
    transition: none !important;
}

.youtube-video-link:hover .youtube-play-arrow, 
.audio-file-link:hover .audio-play-arrow { 
    color: #0274be !important; 
}

.catalog-audio-wrapper { display: flex; align-items: center; gap: 0px 20px; flex-wrap: wrap; } 
.catalog-audio-player { height: 26px; width: 300px; margin: 0; vertical-align: middle; filter: grayscale(100%); }

/* --------------------------------------------------------------------------
   7. SEARCH CATALOG
   -------------------------------------------------------------------------- */
.catalog-search-wrapper { font-family: 'Old Standard TT', Georgia, serif; color: #111; max-width: 1000px; margin: 30px auto; padding: 0 15px; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; justify-content: center; }
.filter-btn { background: #fff; border: 1px solid #111; color: #111; font-family: 'Old Standard TT', Georgia, serif; font-size: 13px; padding: 5px 14px; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-btn:hover, .filter-btn.active { background: #111; color: #fff; }
.catalog-search-bar { position: relative; margin-bottom: 12px; }
#work-search-input { width: 100%; padding: 12px 40px 12px 14px; font-family: 'Old Standard TT', Georgia, serif; font-size: 16px; border: 1px solid #111; border-radius: 0; background: #fff; outline: none; box-sizing: border-box; }
#work-search-input:focus { border-color: #000; box-shadow: 0 0 0 1px #000; }
#work-search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: transparent; border: none; font-size: 22px; cursor: pointer; color: #666; line-height: 1; }
.catalog-search-status { font-size: 13px; font-style: italic; color: #666; border-bottom: 1px solid #111; padding-bottom: 8px; margin-bottom: 15px; display: flex; justify-content: space-between; }
.catalog-item { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #e8e8e8; gap: 20px; }
.catalog-item:hover { background: #fafafa; }
.item-main { flex: 1 1 auto; }
.item-title-row { margin-bottom: 3px; }

/* Search Catalog Specific Title Link */
.item-title {
    color: #1a1a1a !important;
    text-decoration: underline !important;
    text-decoration-color: #1a1a1a !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px;
    font-weight: 700;
}

.item-title:hover {
    color: #0274be !important;
    text-decoration-color: #0274be !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
}

.item-subtitle { font-size: 14px; font-style: italic; color: #444; margin-left: 6px; }
.item-version { font-size: 13px; font-style: italic; color: #666; display: block; margin-top: 2px; }
.item-inst { font-size: 13px; color: #333; margin-top: 4px; line-height: 1.4; }
.item-inst strong { font-weight: 700; }
.item-meta { text-align: right; flex: 0 0 auto; min-width: 140px; font-size: 13px; }
.item-year-dur { font-weight: 400; color: #111; }
.item-cat-op { font-size: 12px; color: #777; margin-top: 2px; }
.item-badges { margin-top: 5px; display: flex; gap: 4px; justify-content: flex-end; }
.badge { display: inline-block; font-size: 10px; padding: 1px 4px; border: 1px solid #111; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-parts { background: #111; color: #fff; }
.badge-rental { background: #fff; color: #111; }
.badge-ismn { font-size: 10px; color: #666; border: none; font-style: italic; }
.no-results { padding: 40px 0; text-align: center; font-style: italic; color: #777; }

/* --------------------------------------------------------------------------
   8. PRINT APPENDIX STYLES
   -------------------------------------------------------------------------- */
@page {
    size: A4 portrait;
    margin: 14mm 15mm; 
}

.print-content-area *, .print-content-area *::before, .print-content-area *::after { 
    box-sizing: border-box !important; 
}

.print-content-area {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media print {
    header, footer, nav, aside, #masthead, #colophon, #wpadminbar, 
    .site-header, .site-footer, .ast-mobile-header-wrap, .ast-main-header-wrap,
    .ast-mobile-menu-buttons { 
        display: none !important; 
    }
    body > *:not(.print-content-area) {
        display: none !important;
    }
    .print-content-area {
        page-break-after: avoid;
        page-break-before: avoid;
    }
    html, body { 
        margin: 0 !important; 
        padding: 0 !important; 
        background: #fff !important;
    }
    body {
        color: #000 !important;
        font-family: 'Old Standard TT', serif !important;
        font-size: 8.3pt !important;
        line-height: 1.55;
        -webkit-print-color-adjust: exact;
    }
}

/* --------------------------------------------------------------------------
   9. MOBILE OPTIMIZATIONS (Strictly < 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .entry-title { margin-top: 40px !important; }
    #top-menu, #top-menu-concerts, #top-menu-media, #top-menu-audio, #top-menu-publications, #top-menu-contact, #contact { margin-top: -60px !important; padding-top: 100px !important; }
    #top-menu::before, #top-menu-concerts::before, #top-menu-media::before, #top-menu-audio::before, #top-menu-publications::before { top: 60px !important; }
    [id], .jump-header, .jump-header-first, .era-return-wrapper, .year-anchor, #concerts { scroll-margin-top: 100px !important; }
    .entry-content .jump-header-first { margin-top: -40px !important; padding-top: 50px !important; }
    .entry-content .jump-header, .entry-content .year-header-container { margin-top: -40px !important; padding-top: 100px !important; }
    .entry-content .jump-header::before, .entry-content .year-header-container::before { top: 40px !important; }
    .reviews-desktop, .concerts-desktop { display: none !important; }
    .reviews-mobile, .concerts-mobile { display: block !important; margin-top: 30px !important; margin-bottom: 50px !important; }
    .ast-mobile-menu-buttons, .ast-button-wrap, .ast-site-identity { display: none !important; }
    .site-header-primary-helper, .ast-primary-header-bar { display: flex !important; flex-direction: row !important; justify-content: center !important; align-items: center !important; min-height: 0 !important; padding: 0 !important; }
    .ast-mobile-header-wrap .ast-mobile-header-content { display: flex !important; position: static !important; background: transparent !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
    .main-navigation ul { display: flex !important; flex-direction: row !important; justify-content: center !important; align-items: center !important; margin: 0 !important; padding: 0 !important; background: transparent !important; }
    .main-navigation li { width: auto !important; margin: 0 12px !important; border: none !important; }
    .main-navigation a { padding: 12px 0 !important; font-size: 0.85rem !important; text-transform: uppercase !important; letter-spacing: 0.08em !important; }
    .main-navigation { padding-bottom: 0 !important; margin-top: 0 !important; }
    .concert-jump-menu { overflow-x: auto !important; white-space: nowrap !important; display: block !important; padding: 15px !important; }
    .catalog-item { flex-direction: column; gap: 8px; }
    .item-meta { text-align: left; }
    .item-badges { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   10. PUBLICATION & CONTACT SPECIFIC STYLING
   -------------------------------------------------------------------------- */
.pub-list, .contact-list {
    list-style-type: disc !important;
    padding-left: 20px !important;
    margin-bottom: 40px !important;
}

.pub-list li, .contact-list li {
    line-height: 1.6 !important;
    color: #1a1a1a !important;
    margin-bottom: 25px !important;
    font-size: 1.05rem !important; 
}

#top-menu-publications .media-sub-header, 
#top-menu-contact .media-sub-header {
    margin-top: 10px !important; 
}

#contact.jump-header {
    margin-top: 10px !important; 
    margin-bottom: 45px !important;
}

.contact-section-text {
    max-width: 800px !important;
    margin: 0 auto 40px auto !important;
    text-align: center !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
}

.ensemble-meta {
    font-style: italic !important;
    color: #666 !important;
    margin-bottom: 10px !important;
    display: block !important;
}