
/* ==========================================================================
   v35 - Torah portion label on Genesis through Deuteronomy
   ========================================================================== */

.torah-portion-banner {
    margin-top: 12px;
    width: min(620px, 100%);
    border: 1px solid #d6bd79;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 253, 245, 0.98),
            rgba(248, 235, 196, 0.95)
        );
    box-shadow: 0 6px 18px rgba(70, 49, 15, 0.08);
    overflow: hidden;
}

.torah-portion-label {
    display: block;
    padding: 7px 12px 6px;
    background: rgba(176, 119, 25, 0.10);
    color: #966213;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.torah-portion-list {
    display: grid;
}

.torah-portion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
}

.torah-portion-item + .torah-portion-item {
    border-top: 1px solid rgba(174, 128, 50, 0.20);
}

.torah-portion-names {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.torah-portion-hebrew {
    color: #173f65;
    font-family: "Times New Roman", "Noto Serif Hebrew", serif;
    font-size: 1.08rem;
    font-weight: 700;
}

.torah-portion-separator {
    color: #b27c22;
}

.torah-portion-english {
    color: #173f65;
    font-size: 0.96rem;
}

.torah-portion-range {
    flex: 0 0 auto;
    color: #76561f;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.chapter-title-block .torah-portion-banner {
    margin-left: auto;
    margin-right: auto;
    width: min(520px, calc(100vw - 130px));
    text-align: left;
}

@media (max-width: 720px) {
    .torah-portion-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .torah-portion-range {
        white-space: normal;
    }

    .chapter-title-block .torah-portion-banner {
        width: min(520px, calc(100vw - 116px));
    }
}
