.readings-page,
.readings-sidebar {
    background: #080707;
    color: #d9cdb0;
}

.readings-page {
    padding: clamp(42px, 7vw, 74px) 0 80px;
}

.readings-layout {
    width: min(1020px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 34px;
    align-items: start;
}

.readings-container {
    min-width: 0;
    border: 1px solid rgba(217, 184, 79, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(21, 17, 14, 0.92);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.readings-meta-header {
    padding: clamp(26px, 4vw, 42px) clamp(24px, 4vw, 46px) 24px;
    border-bottom: 1px solid rgba(217, 184, 79, 0.24);
    text-align: center;
}

.readings-context-label {
    margin: 0 0 12px;
    color: #eed37d;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.readings-day-title {
    margin: 0;
    color: #fff7dc;
    font-family: "Cardo", Georgia, serif;
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0.005em;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.readings-day-title,
.readings-day-title * {
    background: transparent !important;
    box-shadow: none !important;
}

.readings-day-title__main,
.readings-day-title__optional {
    display: block;
}

.readings-day-title__optional {
    margin-top: 8px;
    color: #d9cdb0;
    font-size: 0.62em;
    line-height: 1.22;
}

.readings-date-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    margin-top: 15px;
    color: #a99f8b;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.Universalis_number {
    display: none !important;
}

.readings-list {
    padding: 4px clamp(24px, 4vw, 46px) 18px;
}

.readings-section {
    padding: 30px 0;
    border-bottom: 1px solid rgba(217, 184, 79, 0.16);
    scroll-margin-top: 110px;
}

.readings-section:last-child {
    border-bottom: none;
}

.readings-conditional-hide {
    display: none;
}

.readings-static-title {
    margin: 0 0 8px;
    color: #d9b84f;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.readings-dynamic-heading {
    margin: 0 0 8px;
    color: #fff7dc;
    font-family: "Cardo", Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.14;
}

.readings-source {
    margin: 0 0 20px;
    color: #a99f8b;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 0.92rem;
    font-style: normal;
    font-weight: 700;
}

.readings-body {
    color: #e4dac5;
    font-family: "Cardo", Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.82;
}

.readings-body p {
    margin-bottom: 1.5em;
}

.readings-body i {
    color: #d9b84f;
    font-size: 0.75em;
    font-style: normal;
    margin-right: 5px;
    font-weight: 700;
    vertical-align: super;
}

.readings-page-nav {
    position: sticky;
    top: 110px;
    padding: 18px;
    border: 1px solid rgba(217, 184, 79, 0.24);
    background: rgba(21, 17, 14, 0.86);
}

.readings-page-nav h2 {
    margin: 0 0 14px;
    color: #fff7dc;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.readings-page-nav a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(217, 184, 79, 0.14);
    color: #d9cdb0;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.readings-page-nav a:hover,
.readings-page-nav a:focus {
    color: #fff7dc;
}

.article-with-readings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

.readings-sidebar {
    background: #15110e;
    border: 1px solid rgba(217, 184, 79, 0.18);
    padding: 1.25rem;
    border-radius: 8px;
    position: sticky;
    top: 110px;
}

.readings-sidebar-title {
    margin-bottom: 20px;
    border-left: 4px solid #d9b84f;
    padding-left: 12px;
    color: #fff7dc;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.reading-link-wrapper {
    text-decoration: none !important;
    display: block;
    margin-bottom: 12px;
}

.reading-block {
    display: none;
    background: #080707;
    border: 1px solid rgba(217, 184, 79, 0.18);
    border-radius: 6px;
    padding: 15px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.reading-link-wrapper:hover .reading-block {
    border-color: #d9b84f;
    background: rgba(217, 184, 79, 0.06);
    transform: translateX(5px);
}

.reading-static-title {
    margin-bottom: 6px;
    color: #d9b84f;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
}

.reading-dynamic-heading {
    color: #e4dac5;
    font-size: 0.95rem;
}

.reading-source {
    margin: 0;
    color: #a99f8b;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 0.75rem;
    font-style: normal;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .article-with-readings,
    .readings-layout {
        grid-template-columns: 1fr;
    }

    .readings-sidebar,
    .readings-page-nav {
        position: static;
    }

    .readings-page-nav {
        order: -1;
    }
}

@media (max-width: 700px) {
    .readings-page {
        padding: 3rem 0;
    }

    .readings-layout {
        width: min(100% - 28px, 1020px);
        gap: 20px;
    }

    .readings-body {
        font-size: 1.1rem;
        line-height: 1.75;
    }

    .readings-day-title {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }
}

html[data-theme="light"] .readings-page,
html[data-theme="light"] .readings-sidebar {
    background: #fbf6ec;
    color: #2b2419;
}

html[data-theme="light"] .sacrament-hero--todays-readings,
html[data-theme="light"] .sacrament-hero--sunday-readings {
    min-height: 300px;
    background:
        radial-gradient(circle at 50% 0%, rgba(226, 190, 86, 0.22), transparent 42%),
        linear-gradient(180deg, #fffaf0 0%, #f5f0e6 100%) !important;
}

html[data-theme="light"] .sacrament-hero--todays-readings::after,
html[data-theme="light"] .sacrament-hero--sunday-readings::after {
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.08), #fbf6ec 100%) !important;
}

html[data-theme="light"] .sacrament-hero--todays-readings .sacrament-hero__content,
html[data-theme="light"] .sacrament-hero--sunday-readings .sacrament-hero__content {
    padding: clamp(28px, 5vw, 54px) 20px;
}

html[data-theme="light"] .sacrament-hero--todays-readings h1,
html[data-theme="light"] .sacrament-hero--sunday-readings h1 {
    color: #241d14 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .sacrament-hero--todays-readings .section-kicker,
html[data-theme="light"] .sacrament-hero--sunday-readings .section-kicker {
    color: #8f6414 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .readings-container,
html[data-theme="light"] .readings-page-nav,
html[data-theme="light"] .readings-sidebar {
    border-color: rgba(143, 100, 20, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 240, 0.94));
    box-shadow: 0 18px 45px rgba(63, 45, 17, 0.12);
}

html[data-theme="light"] .readings-meta-header,
html[data-theme="light"] .readings-section,
html[data-theme="light"] .readings-page-nav a {
    border-color: rgba(143, 100, 20, 0.18);
}

html[data-theme="light"] .readings-meta-header {
    background: #fffaf0;
}

html[data-theme="light"] .readings-day-title,
html[data-theme="light"] .readings-dynamic-heading,
html[data-theme="light"] .readings-page-nav h2,
html[data-theme="light"] .readings-sidebar-title {
    color: #241d14 !important;
    text-shadow: none;
}

html[data-theme="light"] .readings-day-title,
html[data-theme="light"] .readings-day-title * {
    color: #241d14 !important;
}

html[data-theme="light"] .readings-day-title__optional,
html[data-theme="light"] .readings-date-row,
html[data-theme="light"] .readings-source,
html[data-theme="light"] .reading-source,
html[data-theme="light"] .readings-page-nav a {
    color: #6a5b45;
}

html[data-theme="light"] .readings-body,
html[data-theme="light"] .reading-dynamic-heading {
    color: #3d3327;
}

html[data-theme="light"] .readings-context-label,
html[data-theme="light"] .readings-static-title,
html[data-theme="light"] .readings-body i,
html[data-theme="light"] .reading-static-title {
    color: #8f6414;
}

html[data-theme="light"] .reading-block {
    background: #fffaf0;
    border-color: rgba(143, 100, 20, 0.20);
}

html[data-theme="light"] .reading-link-wrapper:hover .reading-block {
    border-color: rgba(143, 100, 20, 0.46);
    background: rgba(226, 190, 86, 0.14);
}
