.lh-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 16px 96px;
    color: var(--color-text, #172033);
    box-sizing: border-box;
}

.lh-page *,
.lh-page *::before,
.lh-page *::after {
    box-sizing: border-box;
}

html.lh-autoscroll-active,
html.lh-autoscroll-active body,
html.lh-autoscroll-active #app,
html.lh-autoscroll-active #app-main {
    scroll-behavior: auto !important;
}

.lh-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin: 4px 0 16px;
    padding: 24px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
        linear-gradient(135deg, color-mix(in srgb, var(--color-primary, #0055a5) 12%, transparent), rgba(46,125,50,.10));
    border: 1px solid rgba(220, 228, 240, .9);
    box-shadow: 0 18px 44px rgba(20, 40, 80, .1);
}

.lh-eyebrow {
    margin: 0 0 8px;
    color: var(--color-primary, #0055a5);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lh-hero h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 56px);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: 0;
}

.lh-hero p:last-child {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--color-text-muted, #5f6f86);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 650;
}

.lh-date-card {
    min-width: 150px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(210, 220, 235, .9);
    box-shadow: 0 10px 24px rgba(20, 40, 80, .08);
}

.lh-date-card span {
    display: block;
    color: var(--color-text-muted, #667085);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.lh-date-card strong {
    font-size: 24px;
    font-weight: 950;
}

.lh-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
    margin: 0 0 14px;
}

.lh-day-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(190, 202, 220, .72);
    background: rgba(255,255,255,.86);
    color: var(--color-text, #172033);
    text-decoration: none;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.1;
    box-shadow: 0 10px 24px rgba(20,40,80,.08);
}

.lh-day-link:hover {
    text-decoration: none;
}

.lh-day-link--today {
    background: linear-gradient(145deg, var(--color-primary, #0055a5), var(--color-primary-dark, #003a75));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 26px color-mix(in srgb, var(--color-primary, #0055a5) 28%, transparent);
}

.lh-week-strip {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 10px;
    align-items: center;
    margin: 0 0 16px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(218, 226, 238, .9);
    box-shadow: 0 12px 30px rgba(20,40,80,.08);
}

.lh-week-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(58px, 1fr));
    gap: 6px;
    min-width: 0;
}

.lh-week-arrow,
.lh-week-day {
    border: 0;
    background: #fff;
    color: var(--color-text, #172033);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(20,40,80,.08);
}

.lh-week-arrow {
    width: 52px;
    height: 48px;
    border-radius: 999px;
    color: var(--color-primary, #0055a5);
    font-size: 26px;
    font-weight: 950;
    line-height: 1;
}

.lh-week-day {
    min-height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;
}

.lh-week-day span,
.lh-week-day em {
    color: #6b7280;
    font-style: normal;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.lh-week-day em {
    color: var(--color-primary, #0055a5);
    font-size: 7.5px;
}

.lh-week-day strong {
    font-size: 19px;
    font-weight: 950;
    line-height: 1;
}

.lh-week-day.is-active {
    outline: 1.5px solid var(--color-primary, #0055a5);
    outline-offset: -2px;
    color: var(--color-primary, #0055a5);
}

.lh-week-day.is-today:not(.is-active) strong,
.lh-week-day.is-today:not(.is-active) span {
    color: var(--color-primary, #0055a5);
}

.lh-week-day.is-disabled {
    opacity: .46;
    filter: grayscale(.45) blur(.15px);
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255,255,255,.42);
    box-shadow: none;
}

.lh-week-day.is-disabled span,
.lh-week-day.is-disabled em,
.lh-week-day.is-disabled strong {
    color: #9ca3af !important;
}

.lh-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-width: 0;
}

.lh-hours {
    position: sticky;
    top: 14px;
    min-width: 0;
}

.lh-hour-strip {
    display: grid;
    gap: 8px;
}

.lh-hour-arrow {
    display: none;
}

.lh-hour-tabs {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(218, 226, 238, .9);
}

.lh-hour-tab {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--color-text, #172033);
    text-align: left;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
}

.lh-hour-tab.is-active {
    background: var(--color-primary, #0055a5);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 85, 165, .22);
}

.lh-hour-tabs.is-placeholder .lh-hour-tab {
    opacity: .58;
    cursor: default;
}

.lh-reader {
    min-height: 520px;
    padding: 24px;
    border-radius: 22px;
    background: #fffdf4;
    border: 1px solid rgba(226, 214, 166, .9);
    box-shadow: 0 18px 44px rgba(90, 68, 22, .1);
    min-width: 0;
    overflow: hidden;
}

.lh-reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: -4px 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(190, 155, 72, .18);
    max-width: 100%;
}

.lh-font-tools,
.lh-reader-toolbar > button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(190,155,72,.22);
    background: rgba(255,255,255,.76);
    box-shadow: 0 8px 20px rgba(90,68,22,.08);
}

.lh-font-tools {
    gap: 6px;
    padding: 5px 7px 5px 14px;
}

.lh-font-tools span {
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
    margin-right: 4px;
}

.lh-font-tools button,
.lh-reader-toolbar > button {
    min-width: 42px;
    height: 42px;
    border: 1px solid rgba(190,155,72,.18);
    border-radius: 999px;
    background: #fff;
    color: var(--color-primary-dark, #003a75);
    font-size: 15px;
    font-weight: 950;
}

.lh-reader-toolbar > button {
    padding: 0 18px;
}

.lh-reader-toolbar [data-lh-share] {
    background: linear-gradient(145deg, var(--color-primary, #0055a5), var(--color-primary-dark, #003a75));
    color: #fff;
    border-color: transparent;
}

.lh-day-meta {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(190, 155, 72, .25);
}

.lh-date-title {
    margin: 0 0 8px;
    color: #8a6424;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.lh-day-meta h2 {
    margin: 0;
    color: #bd2b2b;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;
}

.lh-day-meta p:last-child {
    margin: 8px 0 0;
    color: #5f5036;
    font-weight: 750;
}

.lh-sections {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.lh-section h3 {
    margin: 0 0 12px;
    color: #c52f2f;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: 0;
}

.lh-section-body {
    color: #242424;
    font-size: var(--lh-reader-font, 18px);
    line-height: 1.72;
    font-weight: 720;
    overflow-wrap: anywhere;
    word-break: normal;
}

.lh-section-body p,
.lh-section-body div {
    margin-top: 0;
}

.lh-section-body .pre {
    display: inline-block;
    min-width: 118px;
    color: #c52f2f;
    font-weight: 950;
}

.lh-section-body sup {
    display: inline-block;
    min-width: 0;
    margin-right: 0;
    color: #e00000;
    font-size: .58em;
    font-weight: 950;
    line-height: 1;
    vertical-align: super;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lh-section-body .lh-verse-num {
    min-width: 1.35em;
    margin-right: .16em;
}

.lh-section-body b,
.lh-section-body strong {
    font-weight: 950;
}

.lh-section-body i,
.lh-section-body em {
    font-weight: 820;
}

.lh-section-body .antiphon {
    margin: 12px 0;
    color: #9a6a19;
}

.lh-empty,
.lh-loading,
.lh-empty-small {
    padding: 18px;
    border-radius: 14px;
    background: rgba(0, 85, 165, .08);
    color: var(--color-text-muted, #667085);
    font-weight: 750;
}

[data-theme="dark"] .lh-page {
    color: #f5f7fb;
}

[data-theme="dark"] .lh-hero,
[data-theme="dark"] .lh-hour-tabs,
[data-theme="dark"] .lh-date-card,
[data-theme="dark"] .lh-day-link {
    background: rgba(24, 31, 48, .86);
    border-color: rgba(255,255,255,.12);
    color: #f5f7fb;
}

[data-theme="dark"] .lh-reader {
    background: #181615;
    border-color: rgba(226, 214, 166, .18);
}

[data-theme="dark"] .lh-section-body {
    color: #f3ead8;
}

[data-theme="dark"] .lh-reader-toolbar {
    border-bottom-color: rgba(255,255,255,.1);
}

[data-theme="dark"] .lh-font-tools,
[data-theme="dark"] .lh-reader-toolbar > button {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}

[data-theme="dark"] .lh-font-tools button {
    background: rgba(255,255,255,.08);
    color: #f5f7fb;
}

body.lh-reading-mode .lh-hero,
body.lh-reading-mode .lh-week-strip,
body.lh-reading-mode .lh-hours,
body.lh-reading-mode #app-header,
body.lh-reading-mode #app-nav,
body.lh-reading-mode .footer-quick-links {
    display: none !important;
}

body.lh-reading-mode .lh-page {
    max-width: 840px;
    padding-top: 16px;
}

body.lh-reading-mode .lh-layout {
    display: block;
}

body.lh-reading-mode .lh-reader {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
}

[data-theme="dark"] .lh-week-strip {
    background: rgba(24, 31, 48, .78);
    border-color: rgba(255,255,255,.12);
}

[data-theme="dark"] .lh-week-arrow,
[data-theme="dark"] .lh-week-day,
[data-theme="dark"] .lh-hour-arrow {
    background: rgba(255,255,255,.08);
    color: #f5f7fb;
}

.lh-autoscroll-control {
    position: fixed !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    top: 50dvh !important;
    z-index: 2147483000;
    display: grid;
    gap: 7px;
    transform: translate3d(0, -50%, 0);
    padding: 8px 6px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--color-primary, #0055a5) 18%, rgba(255,255,255,.76));
    background: rgba(255,255,255,.9);
    box-shadow: 0 16px 36px rgba(15,23,42,.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.lh-autoscroll-control button,
.lh-autoscroll-control span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--color-primary, #0055a5) 14%, transparent);
    background: color-mix(in srgb, var(--color-primary, #0055a5) 7%, white);
    color: var(--color-primary-dark, #003a75);
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}

.lh-autoscroll-control .lh-autoscroll-play {
    background: linear-gradient(145deg, var(--color-primary, #0055a5), var(--color-primary-dark, #003a75));
    color: #fff;
    border-color: transparent;
}

.lh-autoscroll-control.is-running {
    border-color: color-mix(in srgb, var(--color-primary, #0055a5) 38%, white);
    box-shadow: 0 18px 42px color-mix(in srgb, var(--color-primary-dark, #003a75) 24%, transparent);
}

.lh-autoscroll-control span {
    height: 24px;
    background: transparent;
    border-color: transparent;
    color: #64748b;
    font-size: 11px;
    cursor: default;
}

[data-theme="dark"] .lh-autoscroll-control {
    background: rgba(24,31,48,.9);
    border-color: rgba(255,255,255,.12);
}

@media (max-width: 820px) {
    .lh-page {
        width: 100%;
        max-width: 100%;
        padding: 12px 12px 88px;
        overflow-x: hidden;
    }

    .lh-hero {
        grid-template-columns: 1fr;
        padding: 18px;
        margin-top: 0;
        border-radius: 20px;
    }

    .lh-hero h1 {
        font-size: 30px;
    }

    .lh-hero p:last-child {
        font-size: 14px;
    }

    .lh-date-card {
        min-width: 0;
        width: 100%;
    }

    .lh-layout {
        grid-template-columns: 1fr;
    }

    .lh-hours {
        position: static;
    }

    .lh-hour-strip {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 6px;
        align-items: center;
        padding: 6px;
        border-radius: 14px;
        background: rgba(255,255,255,.72);
        border: 1px solid rgba(218,226,238,.9);
    }

    .lh-hour-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 48px;
        border: 0;
        border-radius: 999px;
        background: #fff;
        color: var(--color-primary, #0055a5);
        font-size: 24px;
        font-weight: 950;
        box-shadow: 0 8px 18px rgba(20,40,80,.08);
    }

    .lh-hour-tabs {
        display: flex;
        overflow-x: auto;
        padding: 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        border: 0;
        background: transparent;
        border-radius: 0;
    }

    .lh-hour-tabs::-webkit-scrollbar {
        display: none;
    }

    .lh-hour-tab {
        flex: 0 0 auto;
        width: auto;
        min-width: 118px;
        max-width: 152px;
        min-height: 48px;
        text-align: center;
        scroll-snap-align: start;
        font-size: 13px;
        white-space: nowrap;
    }

    .lh-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .lh-day-link {
        min-height: 48px;
        padding: 0 8px;
        font-size: 13px;
    }

    .lh-week-strip {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 4px;
        margin-bottom: 12px;
        padding: 6px;
        border-radius: 14px;
        overflow: hidden;
    }

    .lh-week-days {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 4px;
        overflow: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .lh-week-days::-webkit-scrollbar {
        display: none;
    }

    .lh-week-arrow {
        width: 34px;
        height: 48px;
        font-size: 24px;
    }

    .lh-week-day {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 0 2px;
    }

    .lh-week-day strong {
        font-size: 17px;
    }

    .lh-week-day span {
        font-size: 8.5px;
    }

    .lh-week-day em {
        font-size: 6px;
    }

    .lh-reader {
        padding: 18px 16px;
        border-radius: 18px;
        min-height: 480px;
    }

    .lh-day-meta h2 {
        font-size: 28px;
    }

    .lh-section-body {
        font-size: var(--lh-reader-font, 18px);
        line-height: 1.72;
        font-weight: 720;
    }

    .lh-reader-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-content: stretch;
        gap: 8px;
        overflow: visible;
        flex-wrap: initial;
        scrollbar-width: auto;
        margin-left: -2px;
        margin-right: -2px;
    }

    .lh-reader-toolbar::-webkit-scrollbar {
        display: none;
    }

    .lh-font-tools {
        min-width: 0;
        justify-content: space-between;
    }

    .lh-font-tools {
        padding-left: 10px;
    }

    .lh-font-tools span {
        font-size: 13px;
    }

    .lh-font-tools button,
    .lh-reader-toolbar > button {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .lh-reader-toolbar > button {
        padding: 0 14px;
    }

    .lh-reader-toolbar [data-lh-reading-mode] {
        grid-column: 1 / 2;
        grid-row: 2;
        justify-self: start;
    }

    .lh-reader-toolbar [data-lh-share] {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        justify-self: end;
        max-width: 92px;
        padding: 0 12px;
    }

    .lh-section-body .pre {
        min-width: 0;
        margin-right: 10px;
    }

    .lh-autoscroll-control {
        right: max(8px, env(safe-area-inset-right)) !important;
        padding: 7px 5px;
    }

    .lh-autoscroll-control button,
    .lh-autoscroll-control span {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }
}
