* { 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;
}

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

.sidebar-search-item:hover {
    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;
}

#sidebar-content.page-custom-sidebar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    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-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;
}
