* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ============================================================
   GLOBAL UTILITY CLASSES (Only those used on this page)
   ============================================================ */

.auto-style2 {
    font-size: small;
    text-align: center;
}

.auto-style4 {
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.3); /* Subtle color */
  text-decoration-thickness: 2px;
  text-underline-offset: 4px; /* Space between text and line */}

.job-desc {
  display: inline-block;
  max-width: 75%;
}

.td-center {
    text-align: center;
}

/* Improve readability for documentation-style bullet lists in content pages. */
.page-custom-sidebar #left-content .content-pad ul,
.page-custom-sidebar #left-content .content-pad ol {
    margin: 10px 0 14px 24px;
    padding-left: 14px;
}

.page-custom-sidebar #left-content .content-pad li {
    margin-bottom: 6px;
}

.quote-points-list {
    margin-left: 40px;
}

/* Anchor offset for in-page links */
a[id]:target::before {
    content: "";
    display: block;
    height: 150px;
    margin-top: -150px;
}


/* ============================================================
   BREADCRUMB NAVIGATION
   ============================================================ */

.breadcrumb {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
}

.breadcrumb a {
    color: #2b6dcc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 4px;
    color: #999;
}

.breadcrumb-current {
    color: #555;
    font-weight: 600;
}

.century-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.century-title-back-row {
    margin-left: auto;
}

.century-title-back-row .back-nav-btn {
    margin: 0;
}

.alpha-filter-wrap {
    text-align: center;
    margin: 6px 0 10px;
}

.alpha-filter-label {
    display: inline-block;
    margin-right: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2b3f62;
}

.alpha-filter-select {
    min-width: 220px;
    padding: 5px 10px;
    border: 1px solid #7ea4dd;
    border-radius: 6px;
    background: #ffffff;
    color: #1f4fb6;
    font-size: 14px;
    box-sizing: border-box;
}

.alpha-filter-count {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    color: #475a76;
    min-width: 70px;
    text-align: left;
}

.pope-filter-dropdown-wrap {
    position: relative;
    display: inline-block;
    margin: 2px auto 0;
}

.pope-filter-toggle {
    min-width: 140px;
    padding: 5px 14px;
    border: 1px solid #7ea4dd;
    border-radius: 6px;
    background: #ffffff;
    color: #1f4fb6;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.pope-filter-toggle:hover {
    background: #eef5ff;
    border-color: #2b6dcc;
}

.pope-filter-toggle[aria-expanded="true"] {
    background: #eef5ff;
    border-color: #2b6dcc;
}

.pope-filter-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1600;
    width: max-content;
    max-width: 356px;
    background: #ffffff;
    border: 1px solid #7ea4dd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    padding: 10px 14px 8px;
    box-sizing: border-box;
    column-count: 3;
    column-gap: 16px;
}

.page-custom-sidebar #year-filter-menu[aria-label="Filter by person"] {
    column-count: 4;
    max-width: 520px;
}

.pope-filter-option {
    display: flex;
    align-items: center;
    margin: 0 0 6px;
    font-size: 12px;
    color: #2b3f62;
    white-space: nowrap;
    line-height: 1.3;
    cursor: pointer;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.pope-filter-option input {
    margin: 0 3px 0 0;
}

/* Accessibility: highly visible keyboard focus ring for controls and links */
#left-content a:focus-visible,
#left-content button:focus-visible,
#left-content select:focus-visible,
#left-content input:focus-visible,
#left-content [tabindex]:focus-visible {
    outline: 3px solid #f2a900;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(31, 79, 182, 0.18);
}

/* Keep focus rings clean on mouse interactions in supporting browsers */
#left-content a:focus:not(:focus-visible),
#left-content button:focus:not(:focus-visible),
#left-content select:focus:not(:focus-visible),
#left-content input:focus:not(:focus-visible),
#left-content [tabindex]:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}


/* ============================================================
   FIND ON THIS PAGE — FIND BOX SYSTEM
   ============================================================ */

.find-box-wrap {
    text-align: center;
}

.person-name-filter-wrap {
    position: relative;
}

.person-filter-display {
    cursor: pointer;
}

.find-box-wrap.person-name-popup-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    z-index: 1700;
    text-align: left;
}

.find-box-wrap.person-name-popup-menu.is-open {
    display: block;
}

.find-box-wrap.person-name-popup-menu > strong,
.find-box-wrap.person-name-popup-menu > br {
    display: none;
}

.find-box-wrap.person-name-popup-menu .find-box-shell {
    display: block;
}

.find-box-wrap.person-name-popup-menu .find-box {
    width: 100%;
    max-height: min(46vh, 320px);
    height: auto;
}

.century-top-tools-row {
    display: flex;
    flex-direction: column; /* Stacks the Find a Name box and Links row vertically */
    align-items: center;    /* Centers both elements horizontally */
    gap: 15px;              /* Clean spacing between the box and the links */
}

.century-controls-wrap {
    text-align: center;
}

.century-controls-title {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #2b3f62;
}

.century-controls-shell {
    width: 314px;
}

.century-controls-box {
    min-height: 218px;
    border: 1px solid #2b6dcc;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 12px 14px;
    box-sizing: border-box;
}

.century-controls-group + .century-controls-group {
    margin-top: 10px;
}

.century-controls-label {
    margin-bottom: 4px;
    font-size: 14px;
    color: #2b3f62;
}

.century-controls-box .view-toggle {
    margin-top: 0;
}

.century-controls-box .view-btn {
    min-width: 122px;
    text-align: center;
}

.century-controls-box .page-btn {
    min-width: 90px;
}

.century-controls-box .view-status {
    margin-top: 12px;
    font-size: 13px;
    color: #475a76;
}

.century-controls-box .quotes-print-wrap {
    margin-top: 14px;
}

.find-box-shell {
    display: inline-block;
    padding: 6px;
    border: 1px solid #506689;
    border-radius: 10px;
    background: #f7f9fc;
    box-shadow: 0 0 0 1px #ffffff inset, 0 2px 7px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

.find-box {
    width: 300px;
    height: 218px;
    border: 1px solid #2b6dcc;
    overflow-y: auto;
    margin: 0 auto;
    text-align: center;
    padding: 5px 6px;
    box-sizing: border-box;
    background: #ffffff;
}

.find-box .find-letter-divider {
    font-weight: bold;
    margin: 4px 0 1px 0;
}

.find-box a {
    display: block;
    margin: 0;
    line-height: 1.25;
}

.find-box.find-box-passive a {
    cursor: pointer;
}

.find-box.find-box-passive a.is-selected {
    background: #e7f0ff;
    color: #1f4fb6;
    border-radius: 4px;
}

.find-box br {
    display: none;
}

.az-selector {
    margin: 22px 0 28px;
    line-height: 1.7;
}

.az-selector-floating {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1300;
    /* base white + right-edge fade hint so users know it scrolls */
    background:
        linear-gradient(to left, rgba(255,255,255,0.97) 0%, transparent 36px) right center / 36px 100% no-repeat,
        rgba(255, 255, 255, 0.96);
    border: 1px solid #7ea4dd;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    padding: 3px 12px;
    line-height: 1.5;
    white-space: nowrap;
    max-width: calc(100vw - 26px);
    overflow-x: auto;
    overflow-y: hidden;
}

.az-selector-floating.is-visible {
    display: block;
}

.az-selector-floating a {
    font-weight: 600;
}

.az-selector-floating::-webkit-scrollbar {
    height: 4px;
}

.az-selector-floating::-webkit-scrollbar-thumb {
    background: #9ab9e4;
    border-radius: 10px;
}

.az-selector + .alpha-letter {
    margin-top: 26px;
}

.alpha-letter {
    margin-bottom: 22px;
    text-align: left;
}

.alpha-letter::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 8px;
    background-image: linear-gradient(to right, transparent, #C0C0C0, #C0C0C0, #C0C0C0, transparent);
}

.alpha-back-top {
    display: inline-block;
    margin: -8px 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #2b6dcc !important;
    text-decoration: none;
}

.alpha-back-top:hover {
    text-decoration: underline;
}

@media (max-width: 420px) {
    .century-controls-shell {
        width: min(100%, 94vw);
        max-width: 94vw;
    }

    .alpha-filter-label {
        display: block;
        margin: 0 0 6px;
    }

    .alpha-filter-select {
        width: min(100%, 300px);
        min-width: 0;
    }

    .alpha-filter-count {
        display: block;
        text-align: center;
        margin: 6px 0 0;
    }

    .find-box-shell {
        width: min(100%, 94vw);
        max-width: 94vw;
    }
    .find-box {
        width: 100%;
        max-width: none;
    }

    .az-selector-floating {
        padding: 2px 8px;
    }
}

@media (max-width: 640px) {
    .century-top-tools-row {
        gap: 16px;
    }

    .az-selector a,
    .az-selector-floating a,
    .alpha-back-top,
    .quotes-print-btn,
    .ea-all-toggle,
    .alpha-filter-apply-btn,
    .alpha-filter-reset-btn {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .az-selector a,
    .az-selector-floating a {
        padding: 0 6px;
    }

    .alpha-back-top {
        padding: 0 10px;
    }

    .quotes-print-btn,
    .ea-all-toggle,
    .alpha-filter-apply-btn,
    .alpha-filter-reset-btn {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .century-controls-box .view-btn {
        width: min(100%, 220px);
    }
}

@media (max-width: 540px) {
    .az-selector-floating.show-scroll-hint::after {
        content: "Swipe for more";
        position: absolute;
        right: 10px;
        top: calc(100% + 5px);
        font-size: 11px;
        font-weight: 600;
        color: #4b5f82;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid #b9c9e6;
        border-radius: 999px;
        padding: 2px 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
        white-space: nowrap;
    }
}

/* Compact floating A-Z bar on mid-size phones */
@media (max-width: 540px) {
    .az-selector-floating {
        font-size: 0.82em;
        padding: 2px 6px;
        letter-spacing: -0.01em;
    }

    .az-selector a,
    .az-selector-floating a {
        min-width: 22px;
        padding: 0 4px;
    }
}

/* Hide floating A-Z bar on very small screens — static A-Z row still works */
@media (max-width: 360px) {
    .az-selector-floating {
        display: none !important;
    }
}

/* Alphabetical Divider Marker */
.century-marker {
    margin: 20px 0 6px;
    font-size: 1.03em;
    font-weight: 700;
    text-align: left;
    color: #1f2f49;
    scroll-margin-top: 140px; /* Offset for fixed header when jumping to letter sections */
}

.century-marker::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 8px;
    background-image: linear-gradient(to right, #b8c6dc, #d6deeb 55%, transparent);
}

.year-back-top {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #2b6dcc;
    text-decoration: none;
}

.year-back-top:hover {
    text-decoration: underline;
}


/* ============================================================
   VIEW MODE TOGGLE BUTTONS (Alphabetical / Chronological)
   ============================================================ */

.view-toggle {
    margin-top: 10px;
    text-align: center;
}

.view-btn {
    display: inline-block;
    background: #2b6dcc;
    padding: 6px 10px;
    margin: 4px 4px;
    border: 1px solid #1f5ab0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.82em;
    font-weight: bold;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.22);
    position: relative;
    vertical-align: middle;
}

.view-btn-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.view-btn.view-btn-active {
    border: 2px solid red;
}

.view-btn:hover {
    background: #1f5ab0;
}

.view-btn-active {
    background: #8a8a8a;
    border-color: #6f6f6f;
}

.view-btn-active:hover {
    background: #8a8a8a;
}

/* Arrow indicators */
.view-btn-active.alpha-btn::after {
    content: "◀";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    color: #cc0000;
    font-size: 1.1em;
    font-weight: bold;
}

.view-btn-active.chrono-btn::before {
    content: "▶";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    color: #cc0000;
    font-size: 1.1em;
    font-weight: bold;
}

.view-status {
    display: none !important;
}


/* ============================================================
   SIDEBAR SITE SEARCH (Top Right)
   ============================================================ */

.sidebar-search-wrapper.page-custom-sidebar {
    background: #f0f4ff;
    border: 1px solid #2b6dcc;
    border-radius: 6px;
    margin-bottom: 18px;
    overflow: hidden;
}

.sidebar-search-title {
    background: #2b6dcc;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 8px 10px;
    line-height: 1.25;
}

.sidebar-search-inner {
    background: #ffffff;
    border: 1px solid #2b6dcc;
    border-radius: 6px;
    margin: 12px;
    padding: 12px;
}

.sidebar-search-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

#sidebar-search-input {
    width: 100%;
    flex: 1 1 auto;
    box-sizing: border-box;
    border: 1px solid #2b6dcc;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 16px;
}

.sidebar-search-clear-btn {
    border: 1px solid #2b6dcc;
    background: #f0f4ff;
    color: #1f4fb6;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
    padding: 8px 10px;
    white-space: nowrap;
    cursor: pointer;
}

.sidebar-search-clear-btn:hover {
    background: #e3ecff;
}

.sidebar-search-clear-btn:focus {
    outline: 2px solid #2b6dcc;
    outline-offset: 1px;
}

#sidebar-search-results {
    margin-top: 8px;
    max-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

#sidebar-search-results::-webkit-scrollbar {
    width: 10px;
}

#sidebar-search-results::-webkit-scrollbar-track {
    background: #f0f4ff;
    border-radius: 4px;
}

#sidebar-search-results::-webkit-scrollbar-thumb {
    background: #2b6dcc;
    border-radius: 4px;
    border: 1px solid #ffffff;
}

#sidebar-search-results::-webkit-scrollbar-thumb:hover,
#sidebar-search-results::-webkit-scrollbar-thumb:active {
    background: #1f4fb6;
}

.sidebar-search-item {
    display: block;
    text-decoration: none;
    color: #1f4fb6;
    font-size: 14px;
    line-height: 1.3;
    padding: 8px 6px;
    border-radius: 4px;
}

.sidebar-search-item:hover,
.sidebar-search-item:active {
    background: #f0f4ff;
    text-decoration: underline;
}


/* ============================================================
   QUICK LINKS BOX (Right Sidebar)
   ============================================================ */

.quick-links {
    background: #f0f4ff;
    border: 1px solid #2b6dcc;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 18px;
}

.quick-links b {
    display: block;
    background: #2b6dcc;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 8px 10px;
    border-radius: 6px 6px 0 0;
    margin: -12px -12px 12px -12px;
}

.quick-links-inner {
    background: #ffffff;
    border: 1px solid #2b6dcc;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

#sidebar-content .quick-links-inner .view-btn {
    width: 160px;
    text-align: center;
    display: inline-block;
}

/* Navigation Return Button - Used for Back to Select buttons on Pope/Saint/Calendar pages */
.back-nav-btn {
    display: block;
    margin: 0 auto 5px;
    width: fit-content;
    background: #2b6dcc;
    padding: 0 46px 0 14px;
    border: 1px solid #1f5ab0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.84em;
    font-weight: bold;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.22);
    position: relative;
    text-align: center;
    line-height: 1;
    min-height: 40px;
    box-sizing: border-box;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-nav-btn:hover {
    background: #1f5ab0;
}

/* Arrow circle for back-nav-btn */
.back-nav-btn .arrow-circle-right {
    position: absolute;
    right: 8px;
    top: 46%;
    transform: translateY(-52%);
    width: 20px;
    height: 20px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    font-weight: 700;
    line-height: 0.9;
    color: #ffffff;
}

.back-nav-btn .arrow-circle-right::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 57%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================================
   SIDEBAR TOGGLE BUTTONS (FINAL SYSTEM — CLEAN + MODERN)
   ============================================================ */

.sidebar-toggle.ea-toggle {
    display: block;
    width: 248px !important;
    background: #2b6dcc;
    color: #ffffff;
    border: none;
    padding: 10px 8px !important;
    margin: 0 auto 12px auto;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    position: relative;
    box-sizing: border-box !important;
    padding-left: 4px !important;
}

.sidebar-toggle.ea-toggle .label {
    margin-left: 18px !important;
}

.sidebar-toggle.ea-toggle .label::before {
    content: "▸";
    display: inline-block;
    margin-right: 5px !important;
    font-size: 28px !important;
    vertical-align: middle;
    line-height: 0.8;
}

.sidebar-toggle.ea-toggle:not(.collapsed) .label::before {
    content: "▾";
}

.sidebar-toggle.ea-toggle .arrow {
    display: none !important;
}


/* ============================================================
   SIDEBAR HEIGHT SYNC + FADE
   ============================================================ */

#sidebar-content {
    position: relative;
}

#sidebar-content.page-custom-sidebar {
    max-height: var(--main-content-height) !important;
    overflow-y: hidden !important;
    position: relative;
}

:root {
    --main-content-height: 0px;
}

/* Fade only when sidebar content is actually taller than the main column */
#sidebar-content.page-custom-sidebar::after {
    content: none;
}

#sidebar-content.page-custom-sidebar.sidebar-is-fading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
}


/* ============================================================
   SAINT CARDS (Right Sidebar)
   ============================================================ */

#saint-profile-box.page-custom-sidebar {
    background: #f0f4ff !important;
    border: 1px solid #2b6dcc;
    border-radius: 6px;
    padding: 12px !important;
    margin-bottom: 18px;
    overflow: hidden;
}

#saint-profile-box.page-custom-sidebar .sidebar-textarea.sidebar-text {
    background: #ffffff;
    border: 1px solid #2b6dcc;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 18px;
}

#saint-profile-box .sidebar-title {
    background: none !important;
    color: #000 !important;
    padding: 0 !important;
    border: none !important;
}

#saint-profile-box .saint-name {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    margin-bottom: 4px;
}

#saint-profile-box .saint-subtitle {
    display: block;
    font-size: 14px;
    color: #000000;
    opacity: 0.9;
    margin-bottom: 10px;
}

#saint-profile-box.page-custom-sidebar .sidebar-image {
    display: block;
    margin: 10px auto 12px auto;
    max-width: 85%;
    height: auto;
    border-radius: 4px;
}


/* ============================================================
   RIGHT SIDEBAR — BENEFITS BOX (BLUE WRAPPER + WHITE INNER)
   ============================================================ */

.page-custom-sidebar #benefits-box {
    background: #f0f4ff !important;
    border: 1px solid #2b6dcc !important;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 18px;
    overflow: hidden;
}

.page-custom-sidebar #benefits-box .sidebar-textarea {
    background: #ffffff !important;
    border-radius: 4px;
    padding: 10px 0;
    margin-bottom: 12px;
}

.page-custom-sidebar #benefits-box .sidebar-image {
    display: block;
    margin: 0 auto 12px auto;
    max-width: 100%;
    height: auto;
}

.page-custom-sidebar #benefits-box iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    display: block;
}


/* ============================================================
   POPULAR QUOTES BOX (Right Sidebar)
   ============================================================ */

.page-custom-sidebar .sidebar-filler-box {
    background: #f0f4ff !important;
    border: 1px solid #2b6dcc !important;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 18px;
}

.page-custom-sidebar .sidebar-section-content .sidebar-filler-box {
    margin-top: 10px;
}

.page-custom-sidebar .sidebar-filler-title {
    background: #2b6dcc;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 8px 10px;
    border-radius: 6px 6px 0 0;
    margin: -12px -12px 12px -12px;
}

.page-custom-sidebar .sidebar-filler-content p {
    text-align: left !important;
    font-family: "Open Sans", arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: normal !important;   /* quotes NOT bold */
    color: #000 !important;
    line-height: 1.35 !important;
    margin-bottom: 14px !important;
}

/* NAME — match scroll-item (13px, bold) */
.page-custom-sidebar .sidebar-filler-content p strong {
    display: block;
    margin-top: 4px;
    font-family: "Open Sans", arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;      /* names ARE bold */
    color: #000 !important;
}

.page-custom-sidebar .sidebar-quote-separator {
    border-bottom: 1px solid #000080;
    margin-top: 1px;
}

/* WHITE INNER BOX FOR POPULAR QUOTES */
.page-custom-sidebar .sidebar-filler-content {
    background: #ffffff !important;
    border: 1px solid #2b6dcc !important;
    padding: 14px 16px !important;
    border-radius: 6px !important;
}


/* ============================================================
   WEEKLY QUOTES — SIMPLE, STABLE, MATCHES POPULAR QUOTES
   ============================================================ */

/* Rotator lives INSIDE .sidebar-filler-box (blue box comes from template) */
#weekly-quotes-rotator {
    height: 200px !important;      /* MUST match JS ITEM_HEIGHT */
    overflow: hidden !important;
    position: relative !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;       /* no extra blue border */
}

/* Inner white box — same padding as Popular Quotes, NO border */
#weekly-quotes-inner-box {
    background: #ffffff !important;
    padding: 14px 16px !important; /* match Popular Quotes inner padding */
    height: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #2b6dcc !important;
    border-radius: 6px !important;
    margin: 0 !important;
}

/* Stacking container for items */
#weekly-quotes-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Each rotating item */
.wq-item {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0;                        /* JS will set top = index * ITEM_HEIGHT */
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Typography */
#weekly-quotes-inner-box,
#weekly-quotes-inner-box * {
    font-family: "Open Sans", arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #000 !important;
}

/* Saint name */
.wq-name {
    font-weight: bold !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid #ccc !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Quote text */
.wq-quote {
    margin-top: 0 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
}

/* Placeholder */
.wq-empty {
    opacity: 1 !important;
}

.wq-quote-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
    padding-bottom: 24px;
}

.wq-readmore {
    position: absolute;
    bottom: -12px;
    right: 0;
    z-index: 4;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    color: #1e56a8 !important;
    text-decoration: none !important;
    border: 1px solid #7ea4dd;
    border-radius: 999px;
    background: #eef4ff;
    padding: 2px 7px;
    line-height: 1.2;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.wq-readmore:hover {
    background: #2b6dcc;
    border-color: #2b6dcc;
    color: #ffffff !important;
}

.wq-controls {
    position: absolute;
    left: 12px;
    bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.wq-ctrl-btn {
    width: 20px;
    height: 20px;
    border: 1px solid #7ea4dd;
    border-radius: 999px;
    background: #eef4ff;
    color: #1e56a8 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.wq-ctrl-btn:hover {
    background: #2b6dcc;
    border-color: #2b6dcc;
    color: #ffffff !important;
}


/* ============================================================
   MAIN PAGE QUOTE TOGGLES
   ============================================================ */

.ea-toggle {
    display: inline-block;
    background: #f0f4ff;
    border: 1px solid #2b6dcc;
    border-radius: 5px;
    color: #2b6dcc;
    font-size: 0.82em;
    font-weight: bold;
    padding: 3px 10px;
    margin-left: 8px;
    margin-top: 4px;
    cursor: pointer;
    line-height: 1.2;
    float: none;
    position: static;
    width: auto;
    max-width: 100%;
    vertical-align: baseline;
}

.ea-toggle:not(.sidebar-toggle) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.ea-toggle:hover {
    background: #2b6dcc;
    color: #fff;
}

.ea-quote-body { 
    display: none; 
}

.ea-quote-body.ea-quote-open { 
    display: block; 
}


/* ============================================================
   EXPAND ALL QUOTES + PRINT QUOTES
   ============================================================ */

.ea-all-btn-wrap {
    text-align: center;
    margin: 6px 0 4px;
}

.ea-all-toggle {
    display: inline-block;
    margin: 6px 0 0 0;
    cursor: pointer;
    background: #f0f4ff;
    border: 1px solid #2b6dcc;
    border-radius: 5px;
    color: #2b6dcc;
    font-size: 0.82em;
    font-weight: bold;
    padding: 3px 10px;
    width: 150px;
    min-height: 29px;
    line-height: 1.2;
    box-sizing: border-box;
}

.ea-all-toggle:hover {
    background: #2b6dcc;
    color: #fff;
}

.quotes-print-wrap {
    text-align: center;
    margin: 6px 0 4px;
}

.quotes-print-btn {
    display: inline-block;
    background: #f0f4ff;
    padding: 3px 10px;
    margin: 6px 0 16px 0;
    border: 1px solid #2b6dcc;
    border-radius: 5px;
    font-size: 0.82em;
    font-weight: bold;
    color: #2b6dcc;
    cursor: pointer;
    width: 150px;
    min-height: 29px;
    line-height: 1.2;
    box-sizing: border-box;
}

.quotes-print-btn:hover {
    background: #2b6dcc;
    color: #fff;
}

/* Action panel button styles (Expand All / Print) */
#left-content .quotes-print-wrap,
#left-content .ea-all-btn-wrap {
    margin: 6px 0 2px;
    text-align: center;
}

#left-content .ea-all-btn-wrap .ea-all-toggle {
    width: 156px;
    background: #2b6dcc;
    border-color: #1f5ab0;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

#left-content .ea-all-btn-wrap .ea-all-toggle:hover {
    background: #1f5ab0;
    border-color: #174688;
    color: #ffffff;
}

#left-content #print-quotes-only.quotes-print-btn {
    width: 156px;
    background: #f8fbff;
    border: 1px solid #7ea4dd;
    color: #1f5ab0;
}

#left-content #print-quotes-only.quotes-print-btn::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 8px;
    margin-right: 6px;
    border: 1px solid currentColor;
    border-top-width: 3px;
    border-radius: 1px;
    vertical-align: middle;
    transform: translateY(-1px);
}

#left-content #print-quotes-only.quotes-print-btn:hover {
    background: #eaf2ff;
    border-color: #2b6dcc;
    color: #1a4a98;
}

/* ============================================================
   POPULAR QUOTES — MATCH BENEFITS FONT + WHITE INNER BOX
   ============================================================ */

/* White inner box */
.page-custom-sidebar .sidebar-filler-content {
    background: #ffffff !important;
    border: 1px solid #2b6dcc !important;
    padding: 14px 16px !important;
    border-radius: 6px !important;
    text-align: left !important;
}

/* QUOTE TEXT — match .scroll-title (16px normal) */
.page-custom-sidebar .sidebar-filler-content p {
    font-family: "Open Sans", arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: normal !important;
    color: #000 !important;
    line-height: 1.35 !important;
    margin-bottom: 14px !important;
}

/* NAME — match .scroll-item (13px bold) */
.page-custom-sidebar .sidebar-filler-content p strong {
    display: block;
    margin-top: 4px;
    font-family: "Open Sans", arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #000 !important;
}

/* Popular Quotes — match Benefits text sizes */

/* Quotes: bigger text (like .scroll-title: 16px) */
.page-custom-sidebar .sidebar-filler-content p {
    font-family: "Open Sans", arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: normal !important;   /* quotes NOT bold */
    color: #000000 !important;
    line-height: 1.35 !important;
    margin-bottom: 14px !important;
    margin-top: 14px !important;
}

/* Names: smaller, bold (like .scroll-item: 13px) */
.page-custom-sidebar .sidebar-filler-content p b {
    display: block;
    margin-top: 4px;
    font-family: "Open Sans", arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}


/* ============================================================
   ALPHABETICAL AND CHRONOLOGICAL FLOATING BANNER
   ============================================================ */

#chronological-view-banner {
	position: fixed;
	top: 128px; /* just below menu/header */
	left: 50%;
	transform: translateX(-50%);
	background: rgba(43, 109, 204, 0.60); /* site blue, more transparent */
	color: #fff;
		font-size: 0.85em;
		font-weight: bold;
		padding: 2px 10px;
		border-radius: 14px;
		box-shadow: 0 2px 12px rgba(0,0,0,0.10);
		z-index: 100;
		min-width: 60px;
		max-width: 400px;
	text-align: center;
	pointer-events: none;
	white-space: pre-line;
}

body.alpha-banner-style #chronological-view-banner {
    background: rgba(71, 112, 126, 0.76);
    border: 1px solid rgba(34, 72, 84, 0.96);
    box-shadow: 0 3px 12px rgba(19, 56, 109, 0.22);
    letter-spacing: 0.02em;
}

#floating-letter-links-banner {
    position: fixed;
    top: 156px; /* positioned immediately under the existing floating banner */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(43, 109, 204, 0.90); /* matches site blue, slightly more solid for readability */
    color: #fff;
    padding: 3px 10px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px 3px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#floating-letter-links-banner.is-visible {
    opacity: 1;
    visibility: visible;
}

#floating-letter-links-banner .letter-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    padding: 1px 3px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#floating-letter-links-banner .letter-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

#floating-letter-links-banner .letter-sep {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    -webkit-user-select: none;
    user-select: none;
}

@media (max-width: 600px) {
    #chronological-view-banner,
    #floating-letter-links-banner {
        display: none !important;
    }
}


/* ============================================================
   CENTER NEWS SCROLLER TITLE
   ============================================================ */

.news_scroll-title {
    text-align: center;
}

/* ============================================================
   TWO-PANEL CONTROL AREA (Option A layout)
   ============================================================ */

.ctrl-back-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 15px 0;
}

.ctrl-back-row-bottom {
    margin: 20px 0 10px 0;
}

.ctrl-back-row .back-nav-btn {
    margin: 0;
}

.back-to-hub-btn {
    min-width: 200px !important;
    width: auto !important;
    padding: 0 46px 0 14px !important;
    background: #2b6dcc !important;
    color: #ffffff !important;
    border-color: #1f5ab0 !important;
}

.back-to-hub-btn:hover {
    background: #1f5ab0 !important;
    color: #ffffff !important;
}

.ctrl-panel-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    margin: 0 0 16px;
    flex-wrap: wrap;
    width: 320px; /* Force width to match Pope controls single-column layout */
    margin-left: auto;
    margin-right: auto;
}

.ctrl-panel {
    display: flex;
    flex-direction: column;
}

.ctrl-panel-title {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    margin-bottom: 4px;
    color: #2b3f62;
}

.ctrl-find-panel .find-box-shell,
.ctrl-actions-panel .find-box-shell {
    display: block;
}

.ctrl-actions-shell {
    padding: 8px;
}

.ctrl-actions-box {
    width: 300px;
    height: 213px;
    border: 1px solid #2b6dcc;
    border-radius: 6px;
    background: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 8px 8px;
}

.ctrl-actions-box.pope-filters-inline {
    height: auto;
    min-height: 0;
}

.ctrl-actions-box.single-name-mode {
    height: auto;
    min-height: 0;
}

.ctrl-actions-box.single-name-mode .person-name-filter-wrap {
    width: 100%;
    margin: 0 0 8px;
}

.ctrl-actions-box.single-name-mode .person-name-filter-wrap .alpha-filter-label {
    margin-bottom: 4px;
}

.ctrl-actions-box.single-name-mode #person-filter-select.alpha-filter-select {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.ctrl-actions-box.single-name-mode .person-filter-display.alpha-filter-select {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 8px auto 0;
}

.ctrl-actions-box.single-name-mode .pope-filter-and-or {
    margin: 0 0 8px;
    color: #2c4f80;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ctrl-actions-box.single-name-mode .pope-page-search-wrap {
    width: 100%;
    margin: 0 0 8px;
}

.ctrl-actions-box.single-name-mode .pope-page-search-row {
    width: 100%;
}

.ctrl-actions-shell .alpha-filter-wrap {
    margin: 0;
}

.ctrl-actions-shell .alpha-filter-label {
    display: block;
    margin: 0 0 2px;
}

.ctrl-actions-shell .alpha-filter-select {
    display: block;
    width: min(100%, 240px);
    margin: 8px auto 0;
    min-width: 180px;
}

.ctrl-actions-shell .alpha-filter-count {
    display: inline-block;
    margin: 0 0 0 8px;
    text-align: left;
    min-width: 0;
    vertical-align: baseline;
}

.alpha-filter-actions-wrap {
    text-align: center;
    margin: 4px 0 4px;
}

.alpha-filter-actions-wrap button + button {
    margin-left: 8px;
}

.alpha-filter-apply-wrap {
    display: none;
}

.alpha-filter-empty {
    min-height: 16px;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #8d2d2d;
    text-align: center;
}

.ctrl-actions-divider {
    width: 74%;
    height: 1px;
    min-height: 1px;
    flex-shrink: 0;
    margin: 4px auto 0;
    background-image: linear-gradient(to right, transparent, #9ca8bb, #9ca8bb, #9ca8bb, transparent);
}

.ctrl-actions-bottom {
    margin-top: auto;
    width: 100%;
}

.ctrl-actions-bottom .ea-all-btn-wrap,
.ctrl-actions-bottom .quotes-print-wrap {
    margin: 4px 0 0;
}

.ctrl-actions-bottom .view-status {
    margin-top: 3px;
}

.pope-jp2-page .ctrl-actions-box,
.pope-benedict-page .ctrl-actions-box,
.pope-francis-page .ctrl-actions-box,
.pope-leo-page .ctrl-actions-box {
    height: auto;
    min-height: 0;
}

.alpha-filter-apply-btn {
    display: inline-block;
    background: linear-gradient(180deg, #3f83e0 0%, #2b6dcc 100%);
    color: #ffffff;
    border: 1px solid #1e56a8;
    border-radius: 6px;
    padding: 4px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 1px 4px rgba(18, 53, 112, 0.28);
    transition: background 0.15s, transform 0.12s, box-shadow 0.12s;
    box-sizing: border-box;
}

.alpha-filter-reset-btn {
    display: inline-block;
    background: #ffffff;
    color: #1f5ab0;
    border: 1px solid #7ea4dd;
    border-radius: 6px;
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.alpha-filter-apply-btn:hover {
    background: linear-gradient(180deg, #2f73d2 0%, #1f5ab0 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 2px 6px rgba(18, 53, 112, 0.36);
    transform: translateY(-1px);
}

.alpha-filter-apply-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.alpha-filter-apply-btn:focus-visible {
    outline: 2px solid #f3a300;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(243, 163, 0, 0.24), 0 1px 0 rgba(255, 255, 255, 0.28) inset;
}
.alpha-filter-apply-btn.accept-has-pending {
    background: linear-gradient(180deg, #e8b760 0%, #ce9130 100%);
    border-color: #8f5f1a;
    color: #2a1b04;
    box-shadow: 0 0 0 3px rgba(206, 145, 48, 0.30), 0 1px 0 rgba(255, 255, 255, 0.30) inset;
    animation: acceptPendingPulse 3.8s ease-in-out infinite;
}

@keyframes acceptPendingPulse {
    0%, 72%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 3px rgba(206, 145, 48, 0.30), 0 1px 0 rgba(255, 255, 255, 0.30) inset;
    }
    78% {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 0 0 6px rgba(206, 145, 48, 0.48), 0 1px 0 rgba(255, 255, 255, 0.30) inset;
    }
    84% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 4px rgba(206, 145, 48, 0.36), 0 1px 0 rgba(255, 255, 255, 0.30) inset;
    }
    90% {
        transform: translateY(-1px) scale(1.025);
        box-shadow: 0 0 0 5px rgba(206, 145, 48, 0.42), 0 1px 0 rgba(255, 255, 255, 0.30) inset;
    }
}

.alpha-filter-reset-btn:hover {
    background: #eef5ff;
    border-color: #2b6dcc;
}

.alpha-filter-apply-btn:disabled {
    background: #b8c8e6;
    border-color: #a3b7dc;
    color: #f5f8ff;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 640px) {
    .ctrl-panel-row {
        flex-direction: column;
        align-items: center;
    }
    .ctrl-find-panel,
    .ctrl-actions-panel {
        width: min(100%, 94vw);
    }

    .ctrl-find-panel .find-box-shell,
    .ctrl-actions-panel .find-box-shell {
        width: 100%;
        max-width: none;
    }

    .ctrl-find-panel .find-box,
    .ctrl-actions-panel .ctrl-actions-box {
        width: 100%;
        max-width: none;
    }

    .ctrl-actions-box {
        width: 100%;
    }

    .century-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .century-title-back-row {
        margin-left: 0;
    }

    .find-box-wrap.person-name-popup-menu .find-box {
        max-height: min(50vh, 340px);
    }
}

@media (max-width: 480px) {
    .pope-filter-toggle {
        min-width: 124px;
        padding: 4px 10px;
    }

    .pope-filter-menu {
        width: min(92vw, 340px);
        max-width: 92vw;
        column-count: 2;
        column-gap: 12px;
        padding: 8px 10px 6px;
    }
}

@media (max-width: 360px) {
    .pope-filter-toggle {
        min-width: 116px;
        padding: 4px 9px;
    }

    .pope-filter-menu {
        width: min(94vw, 280px);
        max-width: 94vw;
        column-count: 1;
        column-gap: 0;
        padding: 8px 10px 6px;
    }
}

/* Letter Links Row */
.letter-links-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px auto 10px;
    padding: 8px 12px;
    background-color: #f7f9fc;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    max-width: 820px; /* Widened from 720px to give more horizontal space */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.letter-links-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #5c6f84;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px; /* Reduced margin to tighten vertical spacing */
}

.letter-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 4px; /* Reduced gap from 4px 6px to tighten layout */
}

.letter-link {
    font-size: 0.95rem; /* Slightly reduced font size from 1rem */
    font-weight: 700;
    color: #2b6dcc;
    text-decoration: none;
    padding: 1px 4px; /* Reduced padding from 2px 6px */
    border-radius: 4px;
    transition: all 0.2s ease;
}

.letter-link:hover {
    background-color: #e8f0fe;
    color: #1f2f49;
    text-decoration: underline;
}

.letter-sep {
    font-size: 0.8rem;
    color: #b8c6dc;
    -webkit-user-select: none;
    user-select: none;
}

/* ============================================================
   DEVOTIONAL FOCUS MODE STYLES
   ============================================================ */

/* 1. Elements to Hide completely in Devotional Mode */
body.devotional-active #fixed-header,
body.devotional-active #header-fix-space,
body.devotional-active #floating-letter-links-banner,
body.devotional-active #sidebar-content,
body.devotional-active .breadcrumb,
body.devotional-active .century-title-row,
body.devotional-active p.title,
body.devotional-active .page-splits,
body.devotional-active .ctrl-back-row,
body.devotional-active .century-top-tools-row,
body.devotional-active .letter-links-row,
body.devotional-active .find-box-wrap,
body.devotional-active .find-on-page-box,
body.devotional-active #chronological-view-banner,
body.devotional-active .divclear,
body.devotional-active .year-back-top,
body.devotional-active .century-marker,
body.devotional-active .scrollToTop,
body.devotional-active .dashboard-bottom-nav,
body.devotional-active.daily-quotes-page .dailyq-muted,
body.devotional-active.daily-quotes-page .dailyq-status,
body.devotional-active.daily-quotes-page .dailyq-links,
body.devotional-active .no-results-card,
body.devotional-active #FTmenu,
body.devotional-active .footer-copyright,
body.devotional-active .pope-leo-title-row,
body.devotional-active .pope-francis-title-row,
body.devotional-active .pope-benedict-title-row,
body.devotional-active .pope-jp2-title-row,
body.devotional-active .jp2-top-row,
body.devotional-active .jp2-top-row.printhide,
body.devotional-active.pope-leo-page .jp2-top-row.printhide,
body.devotional-active.pope-francis-page .jp2-top-row.printhide,
body.devotional-active.pope-benedict-page .jp2-top-row.printhide,
body.devotional-active.pope-jp2-page .jp2-top-row.printhide,
body.devotional-active .pope-dashboard-title,
body.devotional-active .pope-dashboard-title-placeholder,
body.devotional-active .pope-leo-intro,
body.devotional-active .pope-francis-intro,
body.devotional-active .pope-benedict-intro,
body.devotional-active .pope-jp2-intro,
body.devotional-active .pope-quick-bar,
body.devotional-active .source-type-legend,
body.devotional-active .source-type-summary,
body.devotional-active .current-filter-state,
body.devotional-active .pre-leo-summary-nav,
body.devotional-active.pre-leo-page .jp2-top-row.printhide,
body.devotional-active #pope-live-preview,
body.devotional-active .pope-live-preview,
body.devotional-active .pre-leo-century-marker,
body.devotional-active .pope-floating-reset,
body.devotional-active .pre-leo-explain-source,
body.devotional-active .year-section[data-year="explain"],
body.devotional-active:not(.pope-leo-page):not(.pope-francis-page):not(.pope-benedict-page):not(.pope-jp2-page):not(.pre-leo-page):not(.hardon-page):not(.mother-teresa-page):not(.fulton-sheen-page):not(.pope-sheen-page):not(.padre-pio-page):not(.faustina-page):not(.dina-belanger-page):not(.john-bosco-page):not(.peter-eymard-page):not(.john-vianney-page):not(.alphonsus-liguori-page):not(.margaret-alacoque-page):not(.vatican-docs):not(.ecumenical-councils-page):not(.century-21st-page):not(.century-20th-page):not(.century-19th-page):not(.century-18th-page):not(.century-17th-page):not(.century-16th-page):not(.century-15th-page):not(.century-14th-page):not(.century-13th-page):not(.century-early-page) .ea-toggle:not(.sidebar-toggle),
body.devotional-active .year-back-to-top,
body.devotional-active .pope-controls,
body.devotional-active .saint-controls,
body.devotional-active .saint-top-intro {
    display: none !important;
}

/* Quiet Prayer Mode: reveal filtered-away sections (so Prayer Mode isn't limited to one selection) */
body.devotional-active .year-section[hidden],
body.devotional-active .year-section .td-center[hidden],
body.devotional-active .year-section .year-row[hidden],
body.devotional-active .source-entry[hidden],
body.devotional-active .pope-search-sub-hidden {
    display: block !important;
}

/* Quote pages: expand all quote bodies for reading */
body.devotional-active:not(.pope-leo-page):not(.pope-francis-page):not(.pope-benedict-page):not(.pope-jp2-page):not(.pre-leo-page):not(.hardon-page):not(.mother-teresa-page):not(.fulton-sheen-page):not(.pope-sheen-page):not(.padre-pio-page):not(.faustina-page):not(.dina-belanger-page):not(.john-bosco-page):not(.peter-eymard-page):not(.john-vianney-page):not(.alphonsus-liguori-page):not(.margaret-alacoque-page):not(.vatican-docs):not(.ecumenical-councils-page):not(.century-21st-page):not(.century-20th-page):not(.century-19th-page):not(.century-18th-page):not(.century-17th-page):not(.century-16th-page):not(.century-15th-page):not(.century-14th-page):not(.century-13th-page):not(.century-early-page) .year-section .ea-quote-body[hidden],
body.devotional-active:not(.pope-leo-page):not(.pope-francis-page):not(.pope-benedict-page):not(.pope-jp2-page):not(.pre-leo-page):not(.hardon-page):not(.mother-teresa-page):not(.fulton-sheen-page):not(.pope-sheen-page):not(.padre-pio-page):not(.faustina-page):not(.dina-belanger-page):not(.john-bosco-page):not(.peter-eymard-page):not(.john-vianney-page):not(.alphonsus-liguori-page):not(.margaret-alacoque-page):not(.vatican-docs):not(.ecumenical-councils-page):not(.century-21st-page):not(.century-20th-page):not(.century-19th-page):not(.century-18th-page):not(.century-17th-page):not(.century-16th-page):not(.century-15th-page):not(.century-14th-page):not(.century-13th-page):not(.century-early-page) .ea-quote-body,
body.devotional-active:not(.pope-leo-page):not(.pope-francis-page):not(.pope-benedict-page):not(.pope-jp2-page):not(.pre-leo-page):not(.hardon-page):not(.mother-teresa-page):not(.fulton-sheen-page):not(.pope-sheen-page):not(.padre-pio-page):not(.faustina-page):not(.dina-belanger-page):not(.john-bosco-page):not(.peter-eymard-page):not(.john-vianney-page):not(.alphonsus-liguori-page):not(.margaret-alacoque-page):not(.vatican-docs):not(.ecumenical-councils-page):not(.century-21st-page):not(.century-20th-page):not(.century-19th-page) .ea-quote-body.ea-quote-open {
    display: block !important;
}

/* Pre-Leo / saint quote pages: keep Show/Hide and respect collapsed/expanded state */
body.devotional-active.pope-leo-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.pope-francis-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.pope-benedict-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.pope-jp2-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.century-21st-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.century-20th-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.century-19th-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.century-18th-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.century-17th-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.century-16th-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.century-15th-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.century-14th-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.century-13th-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.century-early-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.pre-leo-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.hardon-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.mother-teresa-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.fulton-sheen-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.pope-sheen-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.padre-pio-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.faustina-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.dina-belanger-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.john-bosco-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.peter-eymard-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.john-vianney-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.alphonsus-liguori-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.margaret-alacoque-page .ea-toggle:not(.sidebar-toggle),
body.devotional-active.vatican-docs .ea-toggle:not(.sidebar-toggle),
body.devotional-active.ecumenical-councils-page .ea-toggle:not(.sidebar-toggle) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1f2937 !important;
    border: 1px solid #6b7280 !important;
    color: #e5e7eb !important;
    box-shadow: none !important;
}

body.devotional-active.pre-leo-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.hardon-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.mother-teresa-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.fulton-sheen-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.pope-sheen-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.padre-pio-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.faustina-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.dina-belanger-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.john-bosco-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.peter-eymard-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.john-vianney-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.alphonsus-liguori-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.margaret-alacoque-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.vatican-docs .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.century-21st-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.century-20th-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.century-19th-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.century-18th-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.century-17th-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.century-16th-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.century-15th-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.century-14th-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.century-13th-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.century-early-page .ea-toggle:not(.sidebar-toggle):hover,
body.devotional-active.ecumenical-councils-page .ea-toggle:not(.sidebar-toggle):hover {
    background: #374151 !important;
    color: #ffffff !important;
}

body.devotional-active.pre-leo-page .ea-quote-body,
body.devotional-active.hardon-page .ea-quote-body,
body.devotional-active.mother-teresa-page .ea-quote-body,
body.devotional-active.fulton-sheen-page .ea-quote-body,
body.devotional-active.pope-sheen-page .ea-quote-body,
body.devotional-active.padre-pio-page .ea-quote-body,
body.devotional-active.faustina-page .ea-quote-body,
body.devotional-active.dina-belanger-page .ea-quote-body,
body.devotional-active.john-bosco-page .ea-quote-body,
body.devotional-active.peter-eymard-page .ea-quote-body,
body.devotional-active.john-vianney-page .ea-quote-body,
body.devotional-active.alphonsus-liguori-page .ea-quote-body,
body.devotional-active.margaret-alacoque-page .ea-quote-body,
body.devotional-active.vatican-docs .ea-quote-body,
body.devotional-active.century-21st-page .ea-quote-body,
body.devotional-active.century-20th-page .ea-quote-body,
body.devotional-active.century-19th-page .ea-quote-body,
body.devotional-active.century-18th-page .ea-quote-body,
body.devotional-active.century-17th-page .ea-quote-body,
body.devotional-active.century-16th-page .ea-quote-body,
body.devotional-active.century-15th-page .ea-quote-body,
body.devotional-active.century-14th-page .ea-quote-body,
body.devotional-active.century-13th-page .ea-quote-body,
body.devotional-active.century-early-page .ea-quote-body,
body.devotional-active.ecumenical-councils-page .ea-quote-body {
    display: none !important;
}

body.devotional-active.pre-leo-page .ea-quote-body.ea-quote-open,
body.devotional-active.pre-leo-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.hardon-page .ea-quote-body.ea-quote-open,
body.devotional-active.hardon-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.mother-teresa-page .ea-quote-body.ea-quote-open,
body.devotional-active.mother-teresa-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.fulton-sheen-page .ea-quote-body.ea-quote-open,
body.devotional-active.fulton-sheen-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.pope-sheen-page .ea-quote-body.ea-quote-open,
body.devotional-active.pope-sheen-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.padre-pio-page .ea-quote-body.ea-quote-open,
body.devotional-active.padre-pio-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.faustina-page .ea-quote-body.ea-quote-open,
body.devotional-active.faustina-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.dina-belanger-page .ea-quote-body.ea-quote-open,
body.devotional-active.dina-belanger-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.john-bosco-page .ea-quote-body.ea-quote-open,
body.devotional-active.john-bosco-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.peter-eymard-page .ea-quote-body.ea-quote-open,
body.devotional-active.peter-eymard-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.john-vianney-page .ea-quote-body.ea-quote-open,
body.devotional-active.john-vianney-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.alphonsus-liguori-page .ea-quote-body.ea-quote-open,
body.devotional-active.alphonsus-liguori-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.margaret-alacoque-page .ea-quote-body.ea-quote-open,
body.devotional-active.margaret-alacoque-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.vatican-docs .ea-quote-body.ea-quote-open,
body.devotional-active.vatican-docs .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.century-21st-page .ea-quote-body.ea-quote-open,
body.devotional-active.century-21st-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.century-20th-page .ea-quote-body.ea-quote-open,
body.devotional-active.century-20th-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.century-19th-page .ea-quote-body.ea-quote-open,
body.devotional-active.century-19th-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.century-18th-page .ea-quote-body.ea-quote-open,
body.devotional-active.century-18th-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.century-17th-page .ea-quote-body.ea-quote-open,
body.devotional-active.century-17th-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.century-16th-page .ea-quote-body.ea-quote-open,
body.devotional-active.century-16th-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.century-15th-page .ea-quote-body.ea-quote-open,
body.devotional-active.century-15th-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.century-14th-page .ea-quote-body.ea-quote-open,
body.devotional-active.century-14th-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.century-13th-page .ea-quote-body.ea-quote-open,
body.devotional-active.century-13th-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.century-early-page .ea-quote-body.ea-quote-open,
body.devotional-active.century-early-page .ea-quote-body.ea-quote-open[hidden],
body.devotional-active.ecumenical-councils-page .ea-quote-body.ea-quote-open,
body.devotional-active.ecumenical-councils-page .ea-quote-body.ea-quote-open[hidden] {
    display: block !important;
}

/* Keep the How-to / Explanation section out of Quiet Prayer Mode even if unhidden by filters */
body.devotional-active .pre-leo-explain-source[hidden],
body.devotional-active .year-section[data-year="explain"][hidden],
body.devotional-active .pre-leo-explain-source,
body.devotional-active .year-section[data-year="explain"] {
    display: none !important;
}

/* 2. Page layout adjustment to make it full width and centered */
body.devotional-active #pagewrapper {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #121212 !important;
}

body.devotional-active .pagebox {
    background: #121212 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

body.devotional-active #contentbox-outer {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    border: none !important;
    background: #121212 !important;
    padding: 0 !important;
}

body.devotional-active #contentbox {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: #121212 !important;
}

body.devotional-active #left-content {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: #121212 !important;
}

body.devotional-active .content-pad {
    padding: 40px 20px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    background: #121212 !important;
}

/* 3. Immersive Dark Background & Text Colors */
html:has(body.devotional-active) {
    background-color: #121212 !important;
    background-image: none !important;
}

body.devotional-active {
    background-color: #121212 !important;
    background-image: none !important;
    color: #e0e0e0 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body.devotional-active .outer-background {
    background-color: #121212 !important;
    background-image: none !important;
}

/* Devotional Mode Elegant Header Title */
.devotional-title {
    display: none !important;
}

body.devotional-active .devotional-title {
    display: block !important;
    text-align: center !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    color: #f3f4f6 !important;
    margin: 15px auto 30px auto !important;
    border-bottom: 1px solid #2b2b2b !important;
    padding-bottom: 12px !important;
    max-width: 800px !important;
    width: 100% !important;
    line-height: 1.35 !important;
}

@media (max-width: 600px) {
    body.devotional-active .devotional-title {
        font-size: 1.3rem !important;
        margin: 10px auto 20px auto !important;
        padding-bottom: 8px !important;
    }
}

body.devotional-active div,
body.devotional-active p,
body.devotional-active span,
body.devotional-active strong,
body.devotional-active b,
body.devotional-active i {
    color: #d1d5db !important;
}

/* Titles: Saint names and descriptions */
body.devotional-active .auto-style4 strong {
    font-size: 1.25rem !important;
    color: #f3f4f6 !important;
    display: block;
    margin-top: 30px;
    border-bottom: 1px solid #2b2b2b;
    padding-bottom: 8px;
}

body.devotional-active .auto-style4 a {
    color: #ffffff !important;
    text-decoration: none !important;
    pointer-events: none !important; /* disable index clicking */
}

body.devotional-active .job-desc i {
    color: #9ca3af !important;
    font-size: 0.92rem !important;
    display: block;
    margin-top: 4px;
    margin-bottom: 12px;
}

/* Sources/Citations */
body.devotional-active .auto-style2,
body.devotional-active .auto-style2 a {
    color: #6b7280 !important;
    font-size: 0.82rem !important;
    text-decoration: none !important;
}

/* Daily Quotes: drop white cards in Quiet Prayer so light text is readable */
body.devotional-active.daily-quotes-page .dailyq-shell,
body.devotional-active.daily-quotes-page .dailyq-results {
    background: transparent !important;
}

body.devotional-active.daily-quotes-page .dailyq-card {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #2b2b2b !important;
    box-shadow: none !important;
    padding: 0 0 1.25rem !important;
    margin: 0 0 1.5rem !important;
}

body.devotional-active.daily-quotes-page .dailyq-card,
body.devotional-active.daily-quotes-page .dailyq-card p,
body.devotional-active.daily-quotes-page .dailyq-card span,
body.devotional-active.daily-quotes-page .dailyq-card div,
body.devotional-active.daily-quotes-page .dailyq-card li,
body.devotional-active.daily-quotes-page .dailyq-card i,
body.devotional-active.daily-quotes-page .dailyq-card em {
    color: #d1d5db !important;
}

body.devotional-active.daily-quotes-page .dailyq-card h3,
body.devotional-active.daily-quotes-page .dailyq-card h3 a,
body.devotional-active.daily-quotes-page .dailyq-card .auto-style4,
body.devotional-active.daily-quotes-page .dailyq-card .auto-style4 a,
body.devotional-active.daily-quotes-page .dailyq-card .auto-style4 strong,
body.devotional-active.daily-quotes-page .dailyq-card .title,
body.devotional-active.daily-quotes-page .dailyq-card .title a {
    color: #f3f4f6 !important;
}

body.devotional-active.daily-quotes-page .dailyq-card .dailyq-source,
body.devotional-active.daily-quotes-page .dailyq-card .dailyq-source a,
body.devotional-active.daily-quotes-page .dailyq-card .auto-style2,
body.devotional-active.daily-quotes-page .dailyq-card .auto-style2 a {
    color: #9ca3af !important;
}

/* 4. Elegant floating toggle button for Exiting Quiet Mode */
#devotional-exit-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    background: rgba(30, 30, 30, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

#devotional-exit-btn:hover {
    background: rgba(50, 50, 50, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.03);
}

/* ============================================================
   DASHBOARD CONTROLS CARD (PROPOSAL A)
   ============================================================ */
.dashboard-controls-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    background-color: #ffffff;
    border: 1px solid #d2dbe5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 760px;
    width: 100%;
    margin: 15px auto;
    overflow: hidden;
    box-sizing: border-box;
}

.dashboard-column {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.dashboard-left-col {
    border-right: 1px solid #e2ebf5;
    background-color: #fafbfc;
}

.dashboard-right-col {
    background-color: #ffffff;
    justify-content: flex-start;
}

.dashboard-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f355c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #e1e8ed;
    padding-bottom: 6px;
}

/* Dashboard Navigation Links list */
.dashboard-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: auto;
}

/* A single unified style for both anchor link and button elements */
.dashboard-link {
    display: flex;
    align-items: center;
    background-color: #f0f4fc;
    border: 1px solid #d0dfef;
    border-radius: 8px;
    padding: 10px 14px;
    color: #2b6dcc !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    outline: none;
}

/* Specific resets for button-based dashboard-link */
button.dashboard-link {
    font-family: inherit;
    font-size: 0.9rem;
    -webkit-appearance: none;
    appearance: none;
}

.dashboard-link:hover, .dashboard-link:focus {
    background-color: #2b6dcc;
    color: #ffffff !important;
    border-color: #1f5ab0;
    box-shadow: 0 2px 6px rgba(43, 109, 204, 0.2);
    transform: translateY(-1px);
}

.dashboard-link:active {
    transform: translateY(0);
}

.dashboard-link-icon {
    font-size: 1.1rem;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.dashboard-link:hover .dashboard-link-icon {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* Help text at bottom of columns */
.dashboard-column p.td-center {
    margin: 12px 0 0 0;
    line-height: 1.2;
}

/* Responsive Stacking on Mobile Screens */
@media (max-width: 767px) {
    .dashboard-controls-card {
        flex-direction: column;
        max-width: 320px; /* Match standard mobile panels */
        border-radius: 8px;
    }
    
    .dashboard-left-col {
        border-right: none;
        border-bottom: 1px solid #e2ebf5;
    }
    
    .dashboard-column {
        padding: 15px;
    }
}

/* Widening the inner Search & Jump List box to expand to the right */
.dashboard-left-col .find-box-shell {
    display: block !important;
    width: 100% !important;
    max-width: 330px; /* Widened from 300px to expand border box beautifully to the right */
    margin: 0 auto;   /* Centers it inside the Left Column */
}

.dashboard-left-col .ctrl-actions-box {
    width: 100% !important;  /* Forces the inner box to stretch and fill the wider shell */
    height: auto !important;  /* Allows height to adapt naturally and cleanly */
    min-height: 213px;
}

.dashboard-left-col .alpha-filter-select {
    width: 100% !important;
    max-width: 280px !important; /* Widens the select/jump input box to match the new width */
}

.dashboard-left-col .pope-page-search-wrap {
    width: 100% !important;
    max-width: 280px !important; /* Widens the search input box to match the new width */
}

/* ============================================================
   RE-DESIGNED SIDEBAR POPULAR LINKS (IMPROVEMENT 1)
   ============================================================ */
.sidebar-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #ffffff;
    border: 1px solid #c5d5ec;
    border-radius: 6px;
    padding: 8px 0; /* Vertical padding only, let items stretch horizontally */
    text-align: left; /* Text align left for modern list style */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #2b6dcc !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 3px solid transparent; /* Elegant left highlight bar */
    box-sizing: border-box;
}

.sidebar-nav-link:hover, .sidebar-nav-link:focus {
    background-color: #f0f4fc;
    color: #1f4fb6 !important;
    border-left-color: #2b6dcc; /* Reveal highlight bar on hover */
    padding-left: 20px; /* Elegant slide-right effect on hover */
}

.sidebar-nav-icon {
    font-size: 1rem;
    color: #8fa0be;
    margin-right: 8px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.sidebar-nav-link:hover .sidebar-nav-icon {
    color: #2b6dcc;
    transform: translateX(2px);
}

/* ============================================================
   RE-DESIGNED DECADE JUMP TAGS (IMPROVEMENT 3)
   ============================================================ */
.letter-links-row .letter-sep {
    display: none !important; /* Hide separating dots for decade pills */
}

.letter-links-row .letter-links-container {
    gap: 8px 10px; /* Comfortable gap between decade badges */
    margin-top: 5px;
}

.letter-links-row .letter-link {
    font-size: 0.88rem !important;
    font-weight: bold !important;
    color: #2b6dcc !important;
    background-color: #f0f4fc;
    border: 1px solid #cfdfef;
    padding: 6px 14px !important; /* Touch-friendly size */
    border-radius: 20px !important; /* Soft pill shape */
    transition: all 0.2s ease !important;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    text-decoration: none !important;
}

.letter-links-row .letter-link:hover,
.letter-links-row .letter-link:focus {
    background-color: #2b6dcc;
    color: #ffffff !important;
    border-color: #1f5ab0;
    box-shadow: 0 2px 5px rgba(43, 109, 204, 0.2);
    transform: translateY(-1px);
}

.letter-links-row .letter-link:active {
    transform: translateY(0);
}

/* ============================================================
   CONSOLIDATED DASHBOARD SEARCH (SOLUTIONS A & B)
   ============================================================ */
.dashboard-left-col .alpha-filter-label,
.dashboard-left-col .pope-page-search-label {
    display: none !important; /* Hide old plain labels */
}

.dashboard-search-section {
    width: 100%;
    box-sizing: border-box;
}

.dashboard-search-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #4a5d78;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
    text-align: left;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.dashboard-search-divider {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8fa0be;
    margin: 12px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-search-divider::before,
.dashboard-search-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2ebf5;
    margin: 0 10px;
    max-width: 50px;
}

/* Pad action buttons row inside search panel */
.dashboard-left-col .alpha-filter-actions-wrap {
    margin-top: 10px !important;
    margin-bottom: 8px !important;
}

/* Sidebar Search Hiding utility */
.hidden-sidebar-search {
    display: none !important;
}

/* ============================================================
   RE-DESIGNED BOTTOM NAVIGATION ROW (IMPROVEMENT 4)
   ============================================================ */
.dashboard-bottom-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px auto 15px auto;
    max-width: 760px;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-bottom-link {
    display: flex;
    align-items: center;
    background-color: #f0f4fc;
    border: 1px solid #d0dfef;
    border-radius: 8px;
    padding: 10px 18px;
    color: #2b6dcc !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.dashboard-bottom-link:hover, .dashboard-bottom-link:focus {
    background-color: #2b6dcc;
    color: #ffffff !important;
    border-color: #1f5ab0;
    box-shadow: 0 4px 10px rgba(43, 109, 204, 0.22);
    transform: translateY(-1.5px);
}

.dashboard-bottom-link:active {
    transform: translateY(0);
}

.dashboard-bottom-icon {
    font-size: 1.05rem;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.dashboard-bottom-link:hover .dashboard-bottom-icon {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* On small mobile layouts, stack the bottom links neatly */
@media (max-width: 540px) {
    .dashboard-bottom-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .dashboard-bottom-link {
        width: 100%;
        max-width: 280px; /* Match standard mobile panels */
        justify-content: flex-start;
    }
}

/* ============================================================
   SEARCH FALLBACK ASSISTANCE CARD (RE-DESIGN REVIEW)
   ============================================================ */
.no-results-card {
    background-color: #f7f9fc;
    border: 1.5px dashed #b1c4d9;
    border-radius: 10px;
    padding: 15px 12px;
    margin: 15px 0 0 0;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    animation: fadeInFallback 0.25s ease;
}

/* Placed below the dashboard so it does not stretch the Page Navigation column */
.no-results-card.pope-fallback-below-dashboard {
    margin: 10px auto 22px auto;
    max-width: 520px;
    width: 100%;
}

@keyframes fadeInFallback {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fallback-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fallback-card-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    animation: pulseSearchIcon 2s infinite ease-in-out;
}

@keyframes pulseSearchIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.no-results-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f355c;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.no-results-card p {
    font-size: 0.83rem;
    color: #4a5d78;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.no-results-card strong {
    color: #2b6dcc;
    font-weight: 700;
}

.fallback-search-btn {
    background-color: #2b6dcc;
    color: #ffffff;
    border: 1px solid #1f5ab0;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 0.88rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(43, 109, 204, 0.25);
    transition: all 0.2s ease;
    outline: none;
}

.fallback-search-btn:hover, .fallback-search-btn:focus {
    background-color: #1f5ab0;
    transform: translateY(-1.5px);
    box-shadow: 0 5px 12px rgba(43, 109, 204, 0.35);
}

.fallback-search-btn:active {
    transform: translateY(0);
}

/* Invisible split element to prevent collapsible quotes from hiding bottom navigation */
#invisible-bottom-split {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    border: none !important;
    background: none !important;
}

/* ============================================================
   POPE LEO XIV PAGE LAYOUT REORGANIZATION & REFINEMENTS
   ============================================================ */

/* Beautiful Quick Jump & Shortcuts Toolbar
   Always 2 rows (Jump to Year, then Source Types), left-aligned */
.pope-quick-bar {
    background: #f4f8fc;
    border: 1px solid #d4e2f5;
    border-radius: 10px;
    padding: 12px 18px;
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.pope-quick-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

.pope-quick-label {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #1a365d;
    flex: 0 0 auto;
}

.pope-quick-links,
.pope-quick-bar .source-type-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.pope-quick-links a,
.pope-quick-bar .source-type-legend a {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 12.5px;
    color: #2b6dcc !important;
    text-decoration: none !important;
    font-weight: bold;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    display: inline-block;
}

.pope-quick-links a:hover,
.pope-quick-bar .source-type-legend a:hover,
.pope-quick-bar .source-type-legend .source-type-chip:hover {
    background: #eef4fc;
    color: #1f5ab0 !important;
    border-color: #bcd4f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(43, 109, 204, 0.1);
}

/* Vertical separator not used in the 2-row layout */
.pope-quick-separator {
    display: none;
}

/* Modern Header and Button Layout for Pope Leo, Pope Francis, Pope Benedict XVI & Pope John Paul II Pages */
.pope-leo-page .pope-leo-title-row,
.pope-francis-page .pope-francis-title-row,
.pope-benedict-page .pope-benedict-title-row,
.pope-jp2-page .pope-jp2-title-row {
    border-bottom: 1px solid #d4e2f5 !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
}

/* Three-column Dashboard Layout on Desktop */
@media (min-width: 981px) {
    .pope-leo-page .jp2-top-row.printhide,
    .pope-francis-page .jp2-top-row.printhide,
    .pope-benedict-page .jp2-top-row.printhide,
    .pope-jp2-page .jp2-top-row.printhide {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important; /* Stretches columns so borders match exactly */
        justify-content: center !important;
        gap: 20px !important;
        margin: 20px auto 25px !important;
        max-width: 1000px !important;
        width: 100% !important;
        position: relative !important;
    }
    
    /* Layout columns wrapper style */
    .pope-leo-page .pope-dashboard-col,
    .pope-francis-page .pope-dashboard-col,
    .pope-benedict-page .pope-dashboard-col,
    .pope-jp2-page .pope-dashboard-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        position: relative !important;
    }
    
    .pope-leo-page .pope-dashboard-col.portrait-col,
    .pope-francis-page .pope-dashboard-col.portrait-col,
    .pope-benedict-page .pope-dashboard-col.portrait-col,
    .pope-jp2-page .pope-dashboard-col.portrait-col,
    .pre-leo-page .pope-dashboard-col.portrait-col {
        flex: 0 0 auto !important; /* Shrinks and grows precisely to fit portrait image shell */
        width: auto !important;
    }
    
    .pope-leo-page .pope-dashboard-col.search-col,
    .pope-francis-page .pope-dashboard-col.search-col,
    .pope-benedict-page .pope-dashboard-col.search-col,
    .pope-jp2-page .pope-dashboard-col.search-col,
    .pre-leo-page .pope-dashboard-col.search-col {
        flex: 0 0 320px !important;
        width: 320px !important;
    }
    
    .pope-leo-page .pope-dashboard-col.nav-col,
    .pope-francis-page .pope-dashboard-col.nav-col,
    .pope-benedict-page .pope-dashboard-col.nav-col,
    .pope-jp2-page .pope-dashboard-col.nav-col,
    .pre-leo-page .pope-dashboard-col.nav-col {
        flex: 0 0 240px !important; /* Narrower as requested to accommodate wider portrait */
        width: 240px !important;
        align-items: center !important;
    }

    /* Column Titles (Above the boxes) */
    .pope-leo-page .pope-dashboard-title,
    .pope-francis-page .pope-dashboard-title,
    .pope-benedict-page .pope-dashboard-title,
    .pope-jp2-page .pope-dashboard-title,
    .pre-leo-page .pope-dashboard-title {
        font-family: inherit !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #1f355c !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        text-align: center !important;
        margin-bottom: 12px !important;
        height: 22px !important;
        line-height: 22px !important;
        width: 100% !important;
    }

    .pope-leo-page .pope-dashboard-title-placeholder,
    .pope-francis-page .pope-dashboard-title-placeholder,
    .pope-benedict-page .pope-dashboard-title-placeholder,
    .pope-jp2-page .pope-dashboard-title-placeholder,
    .pre-leo-page .pope-dashboard-title-placeholder {
        height: 22px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }

    /* Portrait Image Shell (Perfect matching height and proportional sizing) */
    .pope-leo-page .jp2-top-row.printhide .jp2-photo-shell,
    .pope-francis-page .jp2-top-row.printhide .jp2-photo-shell,
    .pope-benedict-page .jp2-top-row.printhide .jp2-photo-shell,
    .pope-jp2-page .jp2-top-row.printhide .jp2-photo-shell,
    .pre-leo-page .jp2-top-row.printhide .jp2-photo-shell {
        position: relative !important;
        left: auto !important;
        top: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .pope-leo-page .jp2-top-row.printhide .jp2-photo,
    .pope-francis-page .jp2-top-row.printhide .jp2-photo,
    .pope-benedict-page .jp2-top-row.printhide .jp2-photo,
    .pope-jp2-page .jp2-top-row.printhide .jp2-photo,
    .pre-leo-page .jp2-top-row.printhide .jp2-photo {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Center Find & Search Box (Exactly 290px high, aligning perfectly with Portrait top & bottom borders) */
    .pope-leo-page .jp2-top-row.printhide .ctrl-panel-row,
    .pope-francis-page .jp2-top-row.printhide .ctrl-panel-row,
    .pope-benedict-page .jp2-top-row.printhide .ctrl-panel-row,
    .pope-jp2-page .jp2-top-row.printhide .ctrl-panel-row {
        position: relative !important;
        width: 320px !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        height: auto !important;
        transform: none !important;
    }

    .pope-leo-page .jp2-top-row.printhide .ctrl-panel-row .ctrl-actions-panel,
    .pope-francis-page .jp2-top-row.printhide .ctrl-panel-row .ctrl-actions-panel,
    .pope-benedict-page .jp2-top-row.printhide .ctrl-panel-row .ctrl-actions-panel,
    .pope-jp2-page .jp2-top-row.printhide .ctrl-panel-row .ctrl-actions-panel {
        width: auto !important;
    }

    /* Right Navigation Box (Exactly 290px high, aligning perfectly with Portrait top & bottom borders) */
    .pope-leo-page .pope-nav-panel,
    .pope-francis-page .pope-nav-panel,
    .pope-benedict-page .pope-nav-panel,
    .pope-jp2-page .pope-nav-panel {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* Centers the links inside the 290px box vertically */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: 100% !important;
        height: 100% !important; /* Stretch to the full column height of Search column */
        align-items: center !important;
    }

    .pope-nav-panel .pope-nav-outer-shell {
        display: block !important;
        width: 100% !important;
        max-width: 240px !important; /* Narrower as requested to accommodate wider portrait */
        margin: 0 auto !important;
        background-color: #f7f9fc !important;
        border: 1px solid #506689 !important;
        border-radius: 10px !important;
        padding: 6px !important; /* Exact match to search's find-box-shell padding */
        box-shadow: 0 0 0 1px #ffffff inset, 0 2px 7px rgba(0, 0, 0, 0.18) !important;
        box-sizing: border-box !important;
        height: 100% !important; /* Stretch to match search's outer border height */
    }

    .pope-nav-panel .pope-nav-inner-box {
        background: #ffffff !important;
        border: 1px solid #2b6dcc !important;
        border-radius: 6px !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important; /* Stretch to match search's inner border height */
        justify-content: center !important;
    }
    
    .pope-nav-panel .dashboard-links-list {
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
}

/* Stacking and Centering for Mobile / Tablet Screens */
@media (max-width: 980px) {
    .pope-leo-page .jp2-top-row.printhide,
    .pope-francis-page .jp2-top-row.printhide,
    .pope-benedict-page .jp2-top-row.printhide,
    .pope-jp2-page .jp2-top-row.printhide {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .pope-leo-page .pope-dashboard-col,
    .pope-francis-page .pope-dashboard-col,
    .pope-benedict-page .pope-dashboard-col,
    .pope-jp2-page .pope-dashboard-col {
        width: 100% !important;
        max-width: 320px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .pope-leo-page .pope-dashboard-title,
    .pope-francis-page .pope-dashboard-title,
    .pope-benedict-page .pope-dashboard-title,
    .pope-jp2-page .pope-dashboard-title,
    .pre-leo-page .pope-dashboard-title {
        font-family: inherit !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: #1f355c !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        text-align: center !important;
        margin-bottom: 8px !important;
    }

    .pope-leo-page .pope-dashboard-title-placeholder,
    .pope-francis-page .pope-dashboard-title-placeholder,
    .pope-benedict-page .pope-dashboard-title-placeholder,
    .pope-jp2-page .pope-dashboard-title-placeholder,
    .pre-leo-page .pope-dashboard-title-placeholder {
        display: none !important;
    }

    .pope-leo-page .jp2-top-row.printhide .jp2-photo-shell,
    .pope-francis-page .jp2-top-row.printhide .jp2-photo-shell,
    .pope-benedict-page .jp2-top-row.printhide .jp2-photo-shell,
    .pope-jp2-page .jp2-top-row.printhide .jp2-photo-shell {
        position: static !important;
        width: 220px !important;
        height: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        margin: 0 auto 40px !important;
        box-sizing: border-box !important;
    }

    .pope-leo-page .jp2-top-row.printhide .jp2-photo,
    .pope-francis-page .jp2-top-row.printhide .jp2-photo,
    .pope-benedict-page .jp2-top-row.printhide .jp2-photo,
    .pope-jp2-page .jp2-top-row.printhide .jp2-photo {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .pope-leo-page .jp2-top-row.printhide .ctrl-panel-row,
    .pope-francis-page .jp2-top-row.printhide .ctrl-panel-row,
    .pope-benedict-page .jp2-top-row.printhide .ctrl-panel-row,
    .pope-jp2-page .jp2-top-row.printhide .ctrl-panel-row {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        transform: none !important;
        height: auto !important;
    }

    .pope-leo-page .pope-nav-panel,
    .pope-francis-page .pope-nav-panel,
    .pope-benedict-page .pope-nav-panel,
    .pope-jp2-page .pope-nav-panel {
        display: flex !important;
        flex-direction: column !important;
        background-color: #ffffff !important;
        border: 1px solid #d2dbe5 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        padding: 16px 20px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
}

/* Refined Dropdown Selector Labels inside Card */
.pope-leo-page .ctrl-actions-box.pope-filters-inline .alpha-filter-wrap .alpha-filter-label,
.pope-francis-page .ctrl-actions-box.pope-filters-inline .alpha-filter-wrap .alpha-filter-label,
.pope-benedict-page .ctrl-actions-box.pope-filters-inline .alpha-filter-wrap .alpha-filter-label,
.pope-jp2-page .ctrl-actions-box.pope-filters-inline .alpha-filter-wrap .alpha-filter-label {
    white-space: normal !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #1a365d !important;
    margin-bottom: 6px !important;
    height: 2.8em !important;
    display: flex !important;
    align-items: flex-end !important;
}

/* Hide these elements in Devotional Mode */
body.devotional-active .pope-quick-bar,
body.devotional-active .source-type-summary {
    display: none !important;
}

/* ============================================================
   POPE PAGE DESIGN POLISHES
   ============================================================ */

/* Styling for the dynamically generated and/or divider on Pope pages */
.pope-leo-page .ctrl-panel-row .pope-filter-and-or,
.pope-francis-page .ctrl-panel-row .pope-filter-and-or,
.pope-benedict-page .ctrl-panel-row .pope-filter-and-or,
.pope-jp2-page .ctrl-panel-row .pope-filter-and-or,
.pope-dashboard-col .pope-filter-and-or {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #2c4f80 !important;
    margin: 2px 0 !important;
    text-align: center !important;
    text-transform: lowercase !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
    height: auto !important;
}

.pope-leo-page .ctrl-panel-row .pope-filter-and-or::before,
.pope-leo-page .ctrl-panel-row .pope-filter-and-or::after,
.pope-francis-page .ctrl-panel-row .pope-filter-and-or::before,
.pope-francis-page .ctrl-panel-row .pope-filter-and-or::after,
.pope-dashboard-col .pope-filter-and-or::before,
.pope-dashboard-col .pope-filter-and-or::after {
    content: none !important;
}

/* Subtle hover transition to the portrait frame */
.pope-leo-page .jp2-top-row.printhide .jp2-photo-shell,
.pope-francis-page .jp2-top-row.printhide .jp2-photo-shell,
.pope-benedict-page .jp2-top-row.printhide .jp2-photo-shell,
.pope-jp2-page .jp2-top-row.printhide .jp2-photo-shell {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.pope-leo-page .jp2-top-row.printhide .jp2-photo-shell:hover,
.pope-francis-page .jp2-top-row.printhide .jp2-photo-shell:hover,
.pope-benedict-page .jp2-top-row.printhide .jp2-photo-shell:hover,
.pope-jp2-page .jp2-top-row.printhide .jp2-photo-shell:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(43, 109, 204, 0.12) !important;
    border-color: #2b6dcc !important;
}

/* Update Print Quotes button to printer emoji instead of simple outline */
#left-content #print-quotes-only.quotes-print-btn::before {
    content: "🖨️" !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin-right: 6px !important;
    border: none !important;
    border-top-width: 0 !important;
    border-radius: 0 !important;
    vertical-align: middle !important;
    transform: none !important;
    font-size: 1rem !important;
}

/* ============================================================
   PRINT MEDIA OVERRIDES (Restores Clean Quotes Printout)
   ============================================================ */
@media print {
    /* Explicitly hide the entire dynamic top dashboard on Pope Leo XIV, Pope Francis, Pope Benedict XVI & Pope John Paul II pages */
    .pope-leo-page .jp2-top-row.printhide,
    .pope-francis-page .jp2-top-row.printhide,
    .pope-benedict-page .jp2-top-row.printhide,
    .pope-jp2-page .jp2-top-row.printhide,
    .pope-leo-page .pope-dashboard-col,
    .pope-francis-page .pope-dashboard-col,
    .pope-benedict-page .pope-dashboard-col,
    .pope-jp2-page .pope-dashboard-col,
    .pope-leo-page .pope-nav-panel,
    .pope-francis-page .pope-nav-panel,
    .pope-benedict-page .pope-nav-panel,
    .pope-jp2-page .pope-nav-panel,
    .pope-leo-page .pope-nav-panel .pope-nav-outer-shell,
    .pope-francis-page .pope-nav-panel .pope-nav-outer-shell,
    .pope-benedict-page .pope-nav-panel .pope-nav-outer-shell,
    .pope-jp2-page .pope-nav-panel .pope-nav-outer-shell,
    .pope-leo-page .pope-nav-panel .pope-nav-inner-box,
    .pope-francis-page .pope-nav-panel .pope-nav-inner-box,
    .pope-benedict-page .pope-nav-panel .pope-nav-inner-box,
    .pope-jp2-page .pope-nav-panel .pope-nav-inner-box,
    .pope-leo-page .ctrl-panel-row,
    .pope-francis-page .ctrl-panel-row,
    .pope-benedict-page .ctrl-panel-row,
    .pope-jp2-page .ctrl-panel-row,
    .pope-leo-page .pope-quick-bar,
    .pope-francis-page .pope-quick-bar,
    .pope-benedict-page .pope-quick-bar,
    .pope-jp2-page .pope-quick-bar,
    .pope-leo-page .pope-dashboard-title,
    .pope-francis-page .pope-dashboard-title,
    .pope-benedict-page .pope-dashboard-title,
    .pope-jp2-page .pope-dashboard-title,
    .pope-leo-page .pope-dashboard-title-placeholder,
    .pope-francis-page .pope-dashboard-title-placeholder,
    .pope-benedict-page .pope-dashboard-title-placeholder,
    .pope-jp2-page .pope-dashboard-title-placeholder,
    .pope-leo-page .pope-leo-title-row,
    .pope-francis-page .pope-francis-title-row,
    .pope-benedict-page .pope-benedict-title-row,
    .pope-jp2-page .pope-jp2-title-row,
    .pope-leo-page .jp2-photo-shell,
    .pope-francis-page .jp2-photo-shell,
    .pope-benedict-page .jp2-photo-shell,
    .pope-jp2-page .jp2-photo-shell,
    .pope-leo-page .jp2-photo-shell::after,
    .pope-francis-page .jp2-photo-shell::after,
    .pope-benedict-page .jp2-photo-shell::after,
    .pope-jp2-page .jp2-photo-shell::after,
    .pope-leo-page .pope-leo-intro,
    .pope-francis-page .pope-francis-intro,
    .pope-benedict-page .pope-benedict-intro,
    .pope-jp2-page .pope-jp2-intro {
        display: none !important;
    }

    /* Force crisp black text on white backgrounds when printing in Nocturnal Dark Mode */
    body.dark-mode,
    body.dark-mode #pagewrapper,
    body.dark-mode #pagebox,
    body.dark-mode .inner-background,
    body.dark-mode #contentbox-outer,
    #pagewrapper,
    #pagebox,
    .inner-background,
    #contentbox-outer {
        background-color: #ffffff !important;
        background-image: none !important;
        color: #000000 !important;
    }

    body.dark-mode,
    body.dark-mode p,
    body.dark-mode span,
    body.dark-mode span:not(.breadcrumb-sep),
    body.dark-mode li,
    body.dark-mode td,
    body.dark-mode div,
    body.dark-mode div:not(.sidebar-search-title):not(.pope-dashboard-title):not(.sidebar-filler-title),
    body.dark-mode h1,
    body.dark-mode h2,
    body.dark-mode h3,
    body.dark-mode h4,
    body.dark-mode font,
    body.dark-mode small,
    body.dark-mode blockquote,
    body.dark-mode strong,
    body.dark-mode .smalltext,
    body.dark-mode .auto-style2,
    body.dark-mode .dailyq-muted,
    body.dark-mode .source-type-summary,
    p,
    span,
    li,
    td,
    div,
    h1,
    h2,
    h3,
    h4,
    font,
    small,
    blockquote {
        color: #000000 !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    body.dark-mode a[href],
    body.dark-mode a[href]:link,
    body.dark-mode a[href]:visited,
    a[href],
    a[href]:link,
    a[href]:visited {
        color: #000080 !important; /* Dark navy for print links to distinguish them */
        text-decoration: underline !important;
    }

    /* Prevent non-href anchor targets (destination name/id anchors) from getting colored or underlined */
    body.dark-mode a:not([href]),
    a:not([href]) {
        color: inherit !important;
        text-decoration: none !important;
    }

    body.dark-mode .page-splits {
        border-bottom-color: #d6d6d6 !important;
    }

    /* Print support for other dark-mode elements */
    body.dark-mode .ea-entry-card,
    body.dark-mode .source-entry,
    body.dark-mode .year-section {
        background-color: #ffffff !important;
        border-color: #cccccc !important;
        box-shadow: none !important;
        color: #000000 !important;
    }

    body.dark-mode .ea-quote-body {
        background-color: transparent !important;
        color: #333333 !important;
    }
}

/* ============================================================
   NOCTURNAL "HOLY HOUR" DARK MODE GLOBAL STYLES
   ============================================================ */

/* 0. Header Icon Positioning */
.header-ico3 {
    width: 36px;
    height: 36px;
    background-color: transparent;
    text-align: center;
    position: absolute;
    right: 79px;
    top: 7px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}
.ico3-img {
    width: 36px;
    height: 36px;
    display: block;
    margin: 0 auto;
}

/* 1. Base Layout Backgrounds & Main Content */
body.dark-mode, 
body.dark-mode .outer-background {
    background-color: #0b0f19 !important;
    background-image: none !important;
}

body.dark-mode #pagebox,
body.dark-mode .inner-background,
body.dark-mode #contentbox-outer {
    background-color: #121824 !important;
    background-image: none !important;
    border-color: #1e293b !important;
    color: #e2e8f0 !important;
}

/* 2. Top Header */
body.dark-mode #headerdiv {
    background-color: #080c16 !important;
    border-bottom: 1px solid #1e293b !important;
}

/* 3. Global Text Colors */
body.dark-mode,
body.dark-mode p,
body.dark-mode span:not(.breadcrumb-sep),
body.dark-mode li,
body.dark-mode td,
body.dark-mode div:not(.sidebar-search-title):not(.pope-dashboard-title):not(.sidebar-filler-title),
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode font,
body.dark-mode small,
body.dark-mode blockquote {
    color: #e2e8f0 !important;
}

/* Muted/citation text */
body.dark-mode .smalltext,
body.dark-mode .auto-style2,
body.dark-mode .dailyq-muted,
body.dark-mode .source-type-summary {
    color: #94a3b8 !important;
}

body.dark-mode .pope-ctrl-toast,
body.dark-mode .current-filter-state,
body.dark-mode .selection-scroll-cue {
    background: #1a2333 !important;
    background-image: none !important;
    border-color: #334155 !important;
    color: #ffd54f !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* 4. Global Links */
body.dark-mode a {
    color: #ffd54f !important;
    text-decoration: none !important;
}
body.dark-mode a:hover {
    color: #ffe58a !important;
    text-decoration: underline !important;
}

/* Link underline borders */
body.dark-mode .sidebar-nav-link {
    border-bottom-color: #1e293b !important;
    color: #e2e8f0 !important;
}
body.dark-mode .sidebar-nav-link:hover {
    background-color: #1e293b !important;
    color: #ffd54f !important;
}

/* 5. Saint/Pope Dashboard & Panels */
body.dark-mode .jp2-top-row,
body.dark-mode .dashboard-controls-card,
body.dark-mode .ctrl-panel,
body.dark-mode .pope-nav-panel,
body.dark-mode .pope-filter-dropdown-wrap,
body.dark-mode .pope-nav-outer-shell,
body.dark-mode .pope-nav-inner-box {
    background: #182235 !important;
    border-color: #2e3d56 !important;
}

body.dark-mode .pope-dashboard-title {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border-bottom: 2px solid #2e3d56 !important;
}

body.dark-mode .pope-filter-toggle {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark-mode .pope-filter-menu {
    background: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-mode .pope-filter-option {
    color: #e2e8f0 !important;
    border-bottom-color: #1e293b !important;
}
body.dark-mode .pope-filter-option:hover {
    background-color: #1e293b !important;
}

/* 6. Sidebar Styling */
body.dark-mode #sidebar-content,
body.dark-mode .SB-background {
    background-color: #0f1420 !important;
    border-left: 1px solid #1e293b !important;
    box-sizing: border-box !important;
}

body.dark-mode #sidebar-content.page-custom-sidebar.sidebar-is-fading::after {
    background: linear-gradient(to bottom, rgba(15, 20, 32, 0), #0f1420) !important;
}

body.dark-mode .sidebar-box,
body.dark-mode .sidebar-section,
body.dark-mode .sidebar-filler-box,
body.dark-mode .sidebar-search-wrapper {
    background-color: #182235 !important;
    border: 1px solid #2e3d56 !important;
    color: #e2e8f0 !important;
}

body.dark-mode.contact-page .sidebar-image {
    display: none !important;
}

body.dark-mode .sidebar-search-title {
    background: #0f172a !important;
    color: #ffd54f !important;
    border-bottom: 2px solid #2e3d56 !important;
}

body.dark-mode .sidebar-search-inner {
    background: #131b2e !important;
    border: 1px solid #2e3d56 !important;
}

body.dark-mode #sidebar-search-input {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
}

body.dark-mode #sidebar-search-input::placeholder {
    color: #64748b !important;
}

body.dark-mode .sidebar-search-clear-btn {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .sidebar-search-clear-btn:hover {
    background-color: #334155 !important;
    color: #ffd54f !important;
}

/* 7. Dropdown Top Navigation Menu (menu.js / JQuery Menu) */
body.dark-mode #rwdmenu ul ul {
    background-color: #131b2e !important;
    background-image: none !important;
    border-top: #ffd54f 10px solid !important;
    border-right: #2e3d56 1px solid !important;
    border-bottom: #ffd54f 10px solid !important;
    border-left: #2e3d56 1px solid !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
}
body.dark-mode #rwdmenu ul ul a {
    color: #e2e8f0 !important;
    background-color: transparent !important;
}
body.dark-mode #rwdmenu ul ul a:hover {
    background-color: #1e293b !important;
    color: #ffd54f !important;
}
body.dark-mode #rwdmenu > ul > li:hover {
    background-color: #1e293b !important;
}
@media handheld and (max-width: 640px),
   screen and (max-device-width: 640px),
   screen and (max-width: 640px) {
    body.dark-mode #rwdmenu ul ul {
        background-color: #131b2e !important;
        border: none !important;
        border-top: 1px solid #2e3d56 !important;
        border-bottom: 1px solid #2e3d56 !important;
    }
    body.dark-mode #rwdmenu > ul > li {
        border-bottom: 1px solid #2e3d56 !important;
    }
}

/* 7.5 Quick Links Page (quick-links.htm Layout) */
body.dark-mode .eaq-quick-links-section {
    background-color: #131b2e !important;
    border-color: #2e3d56 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .eaq-quick-links-title {
    color: #ffd54f !important;
    border-bottom: 1px solid #2e3d56 !important;
    padding-bottom: 4px;
}
body.dark-mode .eaq-quick-links-title a {
    color: #ffd54f !important;
}
body.dark-mode .eaq-quick-links-title a:hover {
    color: #ffe58a !important;
    text-decoration: underline !important;
}
body.dark-mode .eaq-quick-links-tree a {
    color: #ffd54f !important;
}
body.dark-mode .eaq-quick-links-tree a:hover {
    color: #ffe58a !important;
    text-decoration: underline !important;
}
body.dark-mode .eaq-quick-links-tree li {
    color: #64748b !important; /* Bullet point colors */
}

body.dark-mode .pope-quick-bar {
    background-color: #131b2e !important;
    border-color: #2e3d56 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .pope-quick-label {
    color: #ffd54f !important;
}

body.dark-mode .pope-quick-links a,
body.dark-mode .pope-quick-bar .source-type-legend a {
    background-color: #1e293b !important;
    color: #ffd54f !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .pope-quick-links a:hover,
body.dark-mode .pope-quick-bar .source-type-legend a:hover,
body.dark-mode .pope-quick-bar .source-type-legend .source-type-chip:hover {
    background-color: #334155 !important;
    color: #ffe58a !important;
    border-color: #ffd54f !important;
    box-shadow: 0 2px 5px rgba(255, 213, 79, 0.1) !important;
}

body.dark-mode .pope-quick-bar .source-type-legend .source-type-chip.source-chip-active {
    background-color: #ffd54f !important;
    color: #121824 !important;
    border-color: #ffd54f !important;
}

/* 7.5. Popes & Saints Pages Top Dashboard and Controls in Dark Mode */
body.dark-mode .pope-leo-title-row,
body.dark-mode .pope-francis-title-row,
body.dark-mode .pope-benedict-title-row,
body.dark-mode .pope-jp2-title-row {
    border-bottom-color: #2e3d56 !important;
}

body.dark-mode .jp2-photo-shell {
    background-color: #131b2e !important;
    border-color: #2e3d56 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .jp2-photo {
    border-color: #2e3d56 !important;
}

body.dark-mode .find-box-shell.ctrl-actions-shell,
body.dark-mode .find-box-shell {
    background-color: #131b2e !important;
    border-color: #2e3d56 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .ctrl-actions-box,
body.dark-mode .find-box {
    background-color: #1a2333 !important;
    border-color: #2e3d56 !important;
}

body.dark-mode .alpha-filter-label {
    color: #ffffff !important;
}

body.dark-mode .pope-filter-toggle {
    background-color: #1e293b !important;
    color: #ffd54f !important;
    border-color: #334155 !important;
}

body.dark-mode .pope-filter-toggle:hover {
    background-color: #334155 !important;
    border-color: #ffd54f !important;
}

body.dark-mode .pope-filter-menu {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .pope-filter-option {
    color: #e2e8f0 !important;
}

body.dark-mode .pope-filter-option:hover {
    background-color: #334155 !important;
    color: #ffd54f !important;
}

body.dark-mode .pope-page-search-wrap {
    background: #1a2333 !important;
    border-color: #334155 !important;
}

body.dark-mode .pope-page-search-label {
    color: #ffd54f !important;
}

body.dark-mode .pope-page-search-input {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark-mode.pope-leo-page .ctrl-actions-box.pope-filters-inline .alpha-filter-wrap .alpha-filter-label,
body.dark-mode.pope-francis-page .ctrl-actions-box.pope-filters-inline .alpha-filter-wrap .alpha-filter-label,
body.dark-mode.pope-benedict-page .ctrl-actions-box.pope-filters-inline .alpha-filter-wrap .alpha-filter-label,
body.dark-mode.pope-jp2-page .ctrl-actions-box.pope-filters-inline .alpha-filter-wrap .alpha-filter-label {
    color: #ffffff !important;
}

body.dark-mode.pope-leo-page .ctrl-panel-row .pope-filter-and-or,
body.dark-mode.pope-francis-page .ctrl-panel-row .pope-filter-and-or,
body.dark-mode.pope-benedict-page .ctrl-panel-row .pope-filter-and-or,
body.dark-mode.pope-jp2-page .ctrl-panel-row .pope-filter-and-or,
body.dark-mode .pope-dashboard-col .pope-filter-and-or {
    color: #94a3b8 !important;
}

body.dark-mode.pope-leo-page .jp2-top-row.printhide .jp2-photo-shell::after,
body.dark-mode.pope-francis-page .jp2-top-row.printhide .jp2-photo-shell::after,
body.dark-mode.pope-benedict-page .jp2-top-row.printhide .jp2-photo-shell::after,
body.dark-mode.pope-jp2-page .jp2-top-row.printhide .jp2-photo-shell::after,
body.dark-mode.pre-leo-page .jp2-top-row.printhide .jp2-photo-shell::after,
body.dark-mode.pope-leo-page .jp2-top-row.printhide .jp2-photo-shell[data-pope-nameplate]::after,
body.dark-mode.pope-jp2-page .jp2-top-row.printhide .jp2-photo-shell[data-pope-nameplate]::after {
    background: #1e293b !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #2e3d56 !important;
    text-shadow: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode #left-content .ea-all-btn-wrap .ea-all-toggle {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #ffd54f !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode #left-content .ea-all-btn-wrap .ea-all-toggle:hover {
    background: #334155 !important;
    border-color: #ffd54f !important;
    color: #ffe58a !important;
}

body.dark-mode #left-content #print-quotes-only.quotes-print-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #ffd54f !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode #left-content #print-quotes-only.quotes-print-btn:hover {
    background: #334155 !important;
    border-color: #ffd54f !important;
    color: #ffe58a !important;
}

body.dark-mode .alpha-filter-apply-btn {
    background: linear-gradient(180deg, #ffd54f 0%, #ffca28 100%) !important;
    color: #121824 !important;
    border-color: #ffb300 !important;
}

body.dark-mode .alpha-filter-apply-btn:hover {
    background: #ffe58a !important;
}

body.dark-mode .alpha-filter-reset-btn {
    background-color: #1e293b !important;
    color: #ffd54f !important;
    border-color: #334155 !important;
}

body.dark-mode .alpha-filter-reset-btn:hover {
    background-color: #334155 !important;
    border-color: #ffd54f !important;
    color: #ffe58a !important;
}

body.dark-mode .pope-nav-panel {
    background-color: #131b2e !important;
    border-color: #2e3d56 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .pope-nav-panel .pope-nav-outer-shell {
    background-color: #131b2e !important;
    border-color: #2e3d56 !important;
    box-shadow: 0 0 0 1px #1d2b40 inset, 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .pope-nav-panel .pope-nav-inner-box {
    background-color: #1a2333 !important;
    border-color: #2e3d56 !important;
}

body.dark-mode .dashboard-link {
    background-color: #1e293b !important;
    color: #ffd54f !important;
    border-color: #334155 !important;
}

body.dark-mode .dashboard-link:hover,
body.dark-mode .dashboard-link:focus {
    background-color: #334155 !important;
    color: #ffe58a !important;
    border-color: #ffd54f !important;
    box-shadow: 0 2px 6px rgba(255, 213, 79, 0.2) !important;
}

body.dark-mode .dashboard-link span {
    color: inherit !important;
}

/* Pre-Leo Popes Page */
body.dark-mode .summary-nav-current {
    background-color: #1e293b !important;
    color: #ffd54f !important;
    border-color: #334155 !important;
}

body.dark-mode .summary-nav-mode-box {
    background-color: #1a2333 !important;
    border-color: #334155 !important;
}

body.dark-mode .summary-nav-mode-option {
    color: #ffd54f !important;
}

body.dark-mode .summary-nav-btn {
    background: linear-gradient(180deg, #1e293b 0%, #111827 100%) !important;
    color: #ffd54f !important;
    border-color: #334155 !important;
}

body.dark-mode .summary-nav-btn:hover {
    background: #334155 !important;
    border-color: #ffd54f !important;
}

/* 8. Quotes, Entry Cards & Interactive Highlights */
body.dark-mode .ea-entry-card,
body.dark-mode .source-entry,
body.dark-mode .year-section {
    background: #182235 !important;
    border-color: #2e3d56 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .ea-quote-body {
    background-color: #131b2e !important;
    border-left-color: #2b6dcc !important;
}

body.dark-mode .auto-style8 {
    color: #ffd54f !important; /* Gold titles for books */
}

/* Search hit highlights */
body.dark-mode mark.ea-search-hit {
    background-color: #6d5004 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #ffd54f !important;
}

/* Quiet Prayer Mode (Black theme exception) */
body.dark-mode.devotional-active {
    background-color: #000000 !important;
}
body.dark-mode.devotional-active .inner-background,
body.dark-mode.devotional-active #pagebox {
    background-color: #000000 !important;
}

/* Selector Cards (Articles/Videos hubs) */
body.dark-mode .selector-card {
    background: #182235 !important;
    border-color: #2e3d56 !important;
}
body.dark-mode .selector-card:hover {
    border-color: #2b6dcc !important;
    background: #1e2c45 !important;
}
body.dark-mode .selector-card-title {
    color: #ffd54f !important;
}
body.dark-mode .selector-card-desc {
    color: #94a3b8 !important;
}
body.dark-mode .selector-card-action,
body.dark-mode .selector-card-action span {
    background: #1e293b !important;
    color: #ffd54f !important;
}
body.dark-mode .selector-card:hover .selector-card-action,
body.dark-mode .selector-card:hover .selector-card-action span {
    background: #ffd54f !important;
    color: #121824 !important;
}

/* Daily Quotes Cards */
body.dark-mode .dailyq-card {
    background: #182235 !important;
    border-color: #2e3d56 !important;
}

/* ============================================================
   9. HOME PAGE DYNAMIC FIND INDEX & FRIENDLY PANELS
   ============================================================ */
body.dark-mode .friendly-panel {
    background-color: #182235 !important;
    border-color: #2e3d56 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .friendly-panel h2 {
    color: #ffd54f !important;
}

body.dark-mode #friendly-index input[type=search] {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
}

body.dark-mode #friendly-index input[type=search]::placeholder {
    color: #64748b !important;
}

body.dark-mode .friendly-actions button,
body.dark-mode .friendly-jumps button {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
    border-radius: 4px !important;
}

body.dark-mode .friendly-actions button:hover,
body.dark-mode .friendly-jumps button:hover {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #ffd54f !important;
}

body.dark-mode .friendly-group summary {
    color: #f1f5f9 !important;
}

body.dark-mode .friendly-group li {
    border-bottom-color: #2e3d56 !important;
}

body.dark-mode .friendly-group li a {
    color: #ffd54f !important;
}

body.dark-mode .friendly-group li a:hover {
    color: #ffe58a !important;
    text-decoration: underline !important;
}

/* ============================================================
   10. NOCTURNAL DARK MODE SIDEBAR WIDGETS & FOOTER
   ============================================================ */
/* Quick Links / Popular Links container */
body.dark-mode .quick-links {
    background: #182235 !important;
    border-color: #2e3d56 !important;
}

body.dark-mode .quick-links b {
    background: #0f172a !important;
    border-bottom: 2px solid #2e3d56 !important;
    color: #ffd54f !important;
}

/* Sidebar Nav Links */
body.dark-mode .sidebar-nav-list {
    background: #131b2e !important;
    border-color: #2e3d56 !important;
}

body.dark-mode .sidebar-nav-link {
    color: #e2e8f0 !important;
    border-bottom-color: #2e3d56 !important;
}

body.dark-mode .sidebar-nav-link:hover {
    background-color: #1e293b !important;
    color: #ffd54f !important;
    border-left-color: #ffd54f !important;
}

body.dark-mode .sidebar-nav-icon {
    color: #64748b !important;
}

body.dark-mode .sidebar-nav-link:hover .sidebar-nav-icon {
    color: #ffd54f !important;
}

/* Saints Of This Week weekly scroller content */
body.dark-mode .sidebar-filler-title {
    background: #0f172a !important;
    color: #ffd54f !important;
    border-bottom: 2px solid #2e3d56 !important;
}

body.dark-mode .sidebar-filler-content {
    background: #131b2e !important;
    border-color: #2e3d56 !important;
}

body.dark-mode .sidebar-filler-content p,
body.dark-mode .sidebar-filler-content p a {
    color: #e2e8f0 !important;
}

body.dark-mode .sidebar-filler-content p a:hover {
    color: #ffd54f !important;
    text-decoration: underline !important;
}

body.dark-mode #weekly-quotes-inner-box {
    background: #131b2e !important;
    border-color: #2e3d56 !important;
}

/* Typography override for the weekly scroller content in dark mode */
body.dark-mode #weekly-quotes-inner-box,
body.dark-mode #weekly-quotes-inner-box * {
    color: #e2e8f0 !important;
}

body.dark-mode .wq-name {
    border-bottom-color: #2e3d56 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .wq-quote {
    color: #e2e8f0 !important;
}

body.dark-mode .wq-readmore {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #ffd54f !important;
}

body.dark-mode .wq-readmore:hover {
    background: #ffd54f !important;
    border-color: #ffd54f !important;
    color: #121824 !important;
}

body.dark-mode .wq-ctrl-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .wq-ctrl-btn:hover {
    background: #ffd54f !important;
    border-color: #ffd54f !important;
    color: #121824 !important;
}

/* Show Adoration Benefits Toggle button */
body.dark-mode .sidebar-toggle.ea-toggle {
    background-color: #1e293b !important;
    color: #ffd54f !important;
    border: 1px solid #334155 !important;
}

body.dark-mode .sidebar-toggle.ea-toggle span {
    color: inherit !important;
}

body.dark-mode .sidebar-toggle.ea-toggle:hover {
    background-color: #334155 !important;
    border-color: #ffd54f !important;
    color: #ffe58a !important;
}

body.dark-mode .sidebar-toggle.ea-toggle:hover span {
    color: inherit !important;
}

/* Footer & Bottom Navigation Menu */
body.dark-mode #FTmenu {
    background-color: #0f1420 !important;
    border-color: #2e3d56 !important;
}

body.dark-mode #FTmenu a {
    color: #ffd54f !important;
}

body.dark-mode #FTmenu a:hover {
    color: #ffe58a !important;
    text-decoration: underline !important;
}

body.dark-mode .footer-copyright {
    background-color: #080c16 !important;
    background-image: none !important;
    border-color: #1e293b !important;
    color: #94a3b8 !important;
}

body.dark-mode .footer-copyright a {
    color: #ffd54f !important;
}

body.dark-mode .footer-copyright a:hover {
    color: #ffe58a !important;
    text-decoration: underline !important;
}

/* 7.6 Website Guide Page (website-guide.css Layout) */
body.dark-mode.website-guide-page .guide-hero,
body.dark-mode .website-guide-page .guide-hero {
    background: linear-gradient(180deg, #182235 0%, #131b2e 100%) !important;
    border-color: #2e3d56 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode.website-guide-page .guide-eyebrow,
body.dark-mode .website-guide-page .guide-eyebrow {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #ffd54f !important;
}
body.dark-mode.website-guide-page .guide-title,
body.dark-mode .website-guide-page .guide-title {
    color: #ffd54f !important;
}
body.dark-mode.website-guide-page .guide-subtitle,
body.dark-mode .website-guide-page .guide-subtitle {
    color: #cbd5e1 !important;
}
body.dark-mode.website-guide-page .guide-card,
body.dark-mode .website-guide-page .guide-card {
    background-color: #131b2e !important;
    border-color: #2e3d56 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode.website-guide-page .guide-card h2,
body.dark-mode.website-guide-page .guide-card h3,
body.dark-mode .website-guide-page .guide-card h2,
body.dark-mode .website-guide-page .guide-card h3 {
    color: #ffd54f !important;
}
body.dark-mode.website-guide-page .guide-card p,
body.dark-mode.website-guide-page .guide-mini-list,
body.dark-mode .website-guide-page .guide-card p,
body.dark-mode .website-guide-page .guide-mini-list {
    color: #cbd5e1 !important;
}
body.dark-mode.website-guide-page .guide-note,
body.dark-mode .website-guide-page .guide-note {
    background-color: #0f172a !important;
    border-left-color: #ffd54f !important;
    color: #cbd5e1 !important;
}
body.dark-mode.website-guide-page .guide-link-btn,
body.dark-mode .website-guide-page .guide-link-btn {
    background: linear-gradient(180deg, #1e293b 0%, #131b2e 100%) !important;
    border-color: #334155 !important;
    color: #ffd54f !important;
}
body.dark-mode.website-guide-page .guide-link-btn:hover,
body.dark-mode .website-guide-page .guide-link-btn:hover {
    border-color: #ffd54f !important;
    box-shadow: 0 8px 18px rgba(255, 213, 79, 0.15) !important;
}
body.dark-mode.website-guide-page .diagram-step,
body.dark-mode .website-guide-page .diagram-step {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #2e3d56 !important;
}
body.dark-mode.website-guide-page .diagram-step strong,
body.dark-mode .website-guide-page .diagram-step strong {
    color: #ffd54f !important;
}
body.dark-mode.website-guide-page .diagram-arrow,
body.dark-mode .website-guide-page .diagram-arrow {
    color: #ffd54f !important;
}
body.dark-mode.website-guide-page .guide-faq details,
body.dark-mode .website-guide-page .guide-faq details {
    border-color: #2e3d56 !important;
    background-color: #0f172a !important;
}
body.dark-mode.website-guide-page .guide-faq summary,
body.dark-mode .website-guide-page .guide-faq summary {
    color: #ffd54f !important;
}
body.dark-mode.website-guide-page .guide-footer-note,
body.dark-mode .website-guide-page .guide-footer-note {
    background-color: #0f172a !important;
    border-color: #2e3d56 !important;
    color: #cbd5e1 !important;
}


/* ============================================================
   DARK MODE OVERRIDES FOR ADORATION BENEFITS SIDEBAR BOX
   ============================================================ */
body.dark-mode .page-custom-sidebar #benefits-box {
    background: #182235 !important;
    border: 1px solid #2e3d56 !important;
}

body.dark-mode .page-custom-sidebar #benefits-box .sidebar-textarea {
    background: #131b2e !important;
    border: none !important;
}

body.dark-mode .news_scroll-title,
body.dark-mode .page-custom-sidebar #benefits-box .news_scroll-title {
    background: #0f172a !important;
    color: #ffd54f !important;
    border-bottom: 2px solid #2e3d56 !important;
}

body.dark-mode .page-custom-sidebar #benefits-box iframe {
    background: transparent !important;
    background-color: transparent !important;
}


/* ============================================================
   DARK MODE OVERRIDES FOR SAINT PROFILE / PICS & QUOTES BOX
   ============================================================ */
body.dark-mode #saint-profile-box.page-custom-sidebar {
    background: #182235 !important;
    border: 1px solid #2e3d56 !important;
}

body.dark-mode #saint-profile-box.page-custom-sidebar .sidebar-textarea.sidebar-text {
    background: #131b2e !important;
    border: 1px solid #2e3d56 !important;
}

body.dark-mode #saint-profile-box .saint-name {
    color: #ffd54f !important;
}

body.dark-mode #saint-profile-box .saint-subtitle {
    color: #94a3b8 !important;
}

body.dark-mode #saint-profile-box .sidebar-title p,
body.dark-mode #saint-profile-box .sidebar-title p.auto-style2 {
    color: #e2e8f0 !important;
}

body.dark-mode #saint-profile-box.page-custom-sidebar .sidebar-image {
    border: 1px solid #2e3d56 !important;
}


/* ============================================================
   DARK MODE OVERRIDES FOR SEARCH FALLBACK BOX (NO RESULTS)
   ============================================================ */
body.dark-mode .video-feature-card {
    background-color: #182235 !important;
    border: 1px solid #2e3d56 !important;
}

body.dark-mode .video-feature-card:hover {
    background-color: #1c2a42 !important;
    border-color: #ffd54f !important;
}

body.dark-mode .video-badge-most {
    background-color: #2c1a04 !important;
    color: #ffd54f !important;
    border: 1px solid #5a3c0d !important;
}

body.dark-mode .video-badge-new {
    background-color: #062f13 !important;
    color: #4ade80 !important;
    border: 1px solid #0f5c22 !important;
}

body.dark-mode .video-feature-desc-wrap,
body.dark-mode .video-feature-desc-wrap .selector-card-desc,
body.dark-mode .video-feature-desc-wrap p {
    color: #94a3b8 !important;
}

body.dark-mode .video-feature-title {
    color: #ffffff !important;
}

body.dark-mode .video-category {
    color: #ffd54f !important;
    border-bottom: 2px solid #2e3d56 !important;
}

body.dark-mode .video-thumb {
    border-color: #2e3d56 !important;
    background-color: #131b2e !important;
}


/* ============================================================
   DARK MODE OVERRIDES FOR SEARCH FALLBACK BOX (NO RESULTS)
   ============================================================ */
body.dark-mode .no-results-card {
    background-color: #131b2e !important;
    border: 1.5px dashed #334155 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .no-results-card h3 {
    color: #ffd54f !important;
}

body.dark-mode .no-results-card p {
    color: #94a3b8 !important;
}

body.dark-mode .no-results-card strong {
    color: #e2e8f0 !important;
}

body.dark-mode .fallback-search-btn {
    background-color: #1e293b !important;
    color: #ffd54f !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .fallback-search-btn:hover,
body.dark-mode .fallback-search-btn:focus {
    background-color: #334155 !important;
    color: #ffe58a !important;
    border-color: #ffd54f !important;
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.15) !important;
}


/* ============================================================
   DARK MODE OVERRIDES FOR PRE-LEO XIII POPES PAGE SPECIALS
   ============================================================ */
body.dark-mode .jp2-photo-shell.pope-photo-frame .pope-photo-name-strip {
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .jp2-photo-shell.pope-photo-frame .pope-photo-placeholder {
    background: #131b2e !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

body.dark-mode.pre-leo-page .pope-live-preview,
body.dark-mode .pre-leo-page .pope-live-preview {
    background: #131b2e !important;
    border-color: #2e3d56 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode.pre-leo-page .pope-live-preview-empty,
body.dark-mode .pre-leo-page .pope-live-preview-empty {
    color: #94a3b8 !important;
}

body.dark-mode.pre-leo-page .pope-live-preview .pope-live-preview-title,
body.dark-mode .pre-leo-page .pope-live-preview .pope-live-preview-title {
    color: #ffd54f !important;
}

body.dark-mode.pre-leo-page .pope-live-preview .pope-live-preview-content,
body.dark-mode .pre-leo-page .pope-live-preview .pope-live-preview-content {
    color: #e2e8f0 !important;
}

body.dark-mode.pre-leo-page .pope-live-preview .pope-live-preview-content a:link,
body.dark-mode.pre-leo-page .pope-live-preview .pope-live-preview-content a:visited,
body.dark-mode.pre-leo-page .pope-live-preview .pope-live-preview-content a:active,
body.dark-mode .pre-leo-page .pope-live-preview .pope-live-preview-content a:link,
body.dark-mode .pre-leo-page .pope-live-preview .pope-live-preview-content a:visited,
body.dark-mode .pre-leo-page .pope-live-preview .pope-live-preview-content a:active {
    color: #60a5fa !important;
}

body.dark-mode.pre-leo-page .pope-live-preview .pope-live-preview-content a:hover,
body.dark-mode .pre-leo-page .pope-live-preview .pope-live-preview-content a:hover {
    color: #ffd54f !important;
    text-decoration: underline !important;
}

/* Ensure the portrait image container box is perfectly aligned with search/navigation boxes on desktop in Dark Mode */
@media (min-width: 981px) {
    body.dark-mode.pope-leo-page .jp2-top-row.printhide .jp2-photo-shell,
    body.dark-mode .pope-leo-page .jp2-top-row.printhide .jp2-photo-shell,
    body.dark-mode.pope-francis-page .jp2-top-row.printhide .jp2-photo-shell,
    body.dark-mode .pope-francis-page .jp2-top-row.printhide .jp2-photo-shell,
    body.dark-mode.pope-benedict-page .jp2-top-row.printhide .jp2-photo-shell,
    body.dark-mode .pope-benedict-page .jp2-top-row.printhide .jp2-photo-shell,
    body.dark-mode.pope-jp2-page .jp2-top-row.printhide .jp2-photo-shell,
    body.dark-mode .pope-jp2-page .jp2-top-row.printhide .jp2-photo-shell,
    body.dark-mode.pre-leo-page .jp2-top-row.printhide .jp2-photo-shell,
    body.dark-mode .pre-leo-page .jp2-top-row.printhide .jp2-photo-shell {
        margin-top: 34px !important;
    }

    body.dark-mode.pope-leo-page .pope-dashboard-title-placeholder,
    body.dark-mode .pope-leo-page .pope-dashboard-title-placeholder,
    body.dark-mode.pope-francis-page .pope-dashboard-title-placeholder,
    body.dark-mode .pope-francis-page .pope-dashboard-title-placeholder,
    body.dark-mode.pope-benedict-page .pope-dashboard-title-placeholder,
    body.dark-mode .pope-benedict-page .pope-dashboard-title-placeholder,
    body.dark-mode.pope-jp2-page .pope-dashboard-title-placeholder,
    body.dark-mode .pope-jp2-page .pope-dashboard-title-placeholder,
    body.dark-mode.pre-leo-page .pope-dashboard-title-placeholder,
    body.dark-mode .pre-leo-page .pope-dashboard-title-placeholder {
        display: none !important;
    }
}


/* ============================================================
   11. 21ST CENTURY CHRONO & ALPHA PAGES DARK MODE OVERRIDES
   ============================================================ */
/* Decade Jump Tags (letter-links-row) */
body.dark-mode .letter-links-row {
    background-color: #131b2e !important;
    border-color: #2e3d56 !important;
}

body.dark-mode .letter-links-label {
    color: #94a3b8 !important;
}

body.dark-mode .letter-links-row .letter-link {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #ffd54f !important;
}

body.dark-mode .letter-links-row .letter-link:hover,
body.dark-mode .letter-links-row .letter-link:focus {
    background-color: #334155 !important;
    border-color: #ffd54f !important;
    color: #ffe58a !important;
    box-shadow: 0 2px 6px rgba(255, 213, 79, 0.15) !important;
}

body.dark-mode .letter-links-row .letter-link:active {
    background-color: #ffd54f !important;
    color: #121824 !important;
}

/* Dashboard Controls Card (Find & Search and Page Navigation) */
body.dark-mode .dashboard-controls-card {
    background: #182235 !important;
    border-color: #2e3d56 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .dashboard-left-col {
    background-color: #131b2e !important;
    border-right-color: #2e3d56 !important;
}

body.dark-mode .dashboard-right-col {
    background-color: #182235 !important;
}

body.dark-mode .dashboard-panel-title {
    color: #ffd54f !important;
}

body.dark-mode .dashboard-search-label {
    color: #e2e8f0 !important;
}

body.dark-mode .dashboard-search-divider {
    color: #94a3b8 !important;
}

body.dark-mode .dashboard-search-divider::before,
body.dark-mode .dashboard-search-divider::after {
    background: #334155 !important;
}

body.dark-mode .dashboard-left-col p.td-center .smalltext,
body.dark-mode .dashboard-right-col p.td-center .smalltext {
    color: #94a3b8 !important;
}

/* Breadcrumbs (high contrast in Dark Mode) */
body.dark-mode .breadcrumb {
    color: #94a3b8 !important;
}

body.dark-mode .breadcrumb a {
    color: #60a5fa !important;
}

body.dark-mode .breadcrumb a:hover {
    color: #93c5fd !important;
    text-decoration: underline !important;
}

body.dark-mode .breadcrumb-sep {
    color: #475569 !important;
}

body.dark-mode .breadcrumb-current {
    color: #ffd54f !important;
}

/* Alphabetical Jump List and Find a Name Boxes */
body.dark-mode .find-box-wrap {
    color: #e2e8f0 !important;
}

body.dark-mode .find-box-wrap strong {
    color: #ffd54f !important;
}

body.dark-mode .find-box-shell {
    background-color: #131b2e !important;
    border-color: #2e3d56 !important;
}

body.dark-mode .find-box {
    background-color: #1a2333 !important;
    border-color: #2e3d56 !important;
}

body.dark-mode .find-box b {
    color: #ffd54f !important;
    border-bottom: 1px solid #2e3d56 !important;
}

body.dark-mode .find-box.find-box-passive a {
    color: #e2e8f0 !important;
}

body.dark-mode .find-box.find-box-passive a:hover {
    background-color: #334155 !important;
    color: #ffd54f !important;
}

body.dark-mode .find-box.find-box-passive a.is-selected {
    background-color: #ffd54f !important;
    color: #121824 !important;
}

body.dark-mode .find-box-wrap.person-name-popup-menu {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

/* Floating Chronological Title & Floating Decade Links Banners */
body.dark-mode #chronological-view-banner {
    background: rgba(15, 23, 42, 0.9) !important; /* Dark Slate Blue, highly readable */
    border: 1px solid #334155 !important;
    color: #ffd54f !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode #floating-letter-links-banner {
    background: rgba(19, 27, 46, 0.95) !important; /* Rich Dark Navy */
    border: 1px solid #2e3d56 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode #floating-letter-links-banner .letter-link {
    color: #ffd54f !important;
}

body.dark-mode #floating-letter-links-banner .letter-link:hover {
    background-color: #334155 !important;
    color: #ffe58a !important;
}

body.dark-mode #floating-letter-links-banner .letter-sep {
    color: #475569 !important;
}

/* Bottom Navigation Links (dashboard-bottom-link) */
body.dark-mode .dashboard-bottom-link {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #ffd54f !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .dashboard-bottom-link:hover,
body.dark-mode .dashboard-bottom-link:focus {
    background-color: #334155 !important;
    color: #ffe58a !important;
    border-color: #ffd54f !important;
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.2) !important;
}

body.dark-mode .dashboard-bottom-link:active {
    background-color: #ffd54f !important;
    color: #121824 !important;
}

body.dark-mode .dashboard-bottom-icon {
    background-color: #131b2e !important;
    border-color: #2e3d56 !important;
}

body.dark-mode .dashboard-bottom-link:hover .dashboard-bottom-icon {
    background-color: transparent !important;
}


/* ============================================================
   12. 2026 CALENDAR DARK MODE OVERRIDES
   ============================================================ */
body.dark-mode .calendar-2026-shell .cal26-table {
    border-color: #2e3d56 !important;
    background-color: #131b2e !important;
}

body.dark-mode .calendar-2026-shell .cal26-table th,
body.dark-mode .calendar-2026-shell .cal26-table td {
    border-color: #2e3d56 !important;
}

body.dark-mode .calendar-2026-shell .cal26-head-cell {
    background: #182235 !important;
    color: #ffd54f !important;
}

body.dark-mode .calendar-2026-shell .cal26-empty {
    background: #0f172a !important;
}

body.dark-mode .calendar-2026-shell .cal26-day {
    background-color: #131b2e !important;
}

body.dark-mode .calendar-2026-shell .cal26-day-number {
    color: #94a3b8 !important;
}

body.dark-mode .calendar-2026-shell .cal26-day-content {
    color: #e2e8f0 !important;
}

body.dark-mode .calendar-2026-shell .cal26-day-content hr {
    border: 0 !important;
    border-top: 1px solid #2e3d56 !important;
    margin: 4px 0 !important;
}

/* Day content secondary text (Saints, Feast names, etc) */
body.dark-mode .calendar-2026-shell .cal26-day-content strong {
    color: #ffd54f !important;
}

body.dark-mode .calendar-2026-shell .auto-style2 {
    color: #94a3b8 !important;
}

/* Links inside calendar cells */
body.dark-mode .calendar-2026-shell .cal26-day-content a {
    color: #38bdf8 !important; /* Elegant light blue for high contrast */
}

body.dark-mode .calendar-2026-shell .cal26-day-content a:hover {
    color: #7dd3fc !important;
    text-decoration: underline !important;
}

/* Back to Top links */
body.dark-mode .cal26-back {
    color: #ffd54f !important;
}

body.dark-mode .cal26-back:hover {
    color: #ffe58a !important;
}


/* Image margins for wrapped text in articles */
.img-space {
    margin-right: 20px !important;
    margin-bottom: 15px !important;
}


/* ============================================================
   DARK MODE PRINT OVERRIDES (Ensures clean light printouts)
   ============================================================ */
@media print {
    body.dark-mode,
    body.dark-mode #pagewrapper,
    body.dark-mode #pagebox,
    body.dark-mode .inner-background,
    body.dark-mode #contentbox-outer,
    body.dark-mode #contentbox,
    body.dark-mode #left-content,
    body.dark-mode .content-pad,
    body.dark-mode .year-section {
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
    }

    body.dark-mode p,
    body.dark-mode span,
    body.dark-mode span:not(.breadcrumb-sep),
    body.dark-mode li,
    body.dark-mode td,
    body.dark-mode div,
    body.dark-mode div:not(.sidebar-search-title):not(.pope-dashboard-title):not(.sidebar-filler-title),
    body.dark-mode h1,
    body.dark-mode h2,
    body.dark-mode h3,
    body.dark-mode h4,
    body.dark-mode font,
    body.dark-mode small,
    body.dark-mode blockquote,
    body.dark-mode strong,
    body.dark-mode .pre-leo-century-title,
    body.dark-mode .auto-style14,
    body.dark-mode .auto-style14 strong,
    body.dark-mode .smalltext,
    body.dark-mode .auto-style2,
    body.dark-mode .dailyq-muted,
    body.dark-mode .source-type-summary {
        color: #000000 !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    body.dark-mode a[href],
    body.dark-mode a[href]:link,
    body.dark-mode a[href]:visited,
    body.dark-mode .auto-style14 strong a[href] {
        color: #000080 !important; /* Muted print blue for links */
        text-decoration: underline !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    body.dark-mode a:not([href]),
    body.dark-mode .auto-style14 strong a:not([href]) {
        color: inherit !important;
        text-decoration: none !important;
    }
}


