.lp-lekcjonarz {
    --lp-accent: #4668ff;
    --lp-border: #e7e7e7;
    --lp-text: #111111;
    --lp-muted: #666666;
    --lp-soft: #f6f6f6;
    --lp-liturgical: #008000;
    max-width: 920px;
    margin: 0 auto;
    color: var(--lp-text);
    background: #ffffff;
    line-height: 1.55;
    font-size: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.lp-lekcjonarz.lp-color-violet { --lp-liturgical: #800080; }
.lp-lekcjonarz.lp-color-pink   { --lp-liturgical: #FF5AAC; }
.lp-lekcjonarz.lp-color-red    { --lp-liturgical: #CF2929; }
.lp-lekcjonarz.lp-color-white  { --lp-liturgical: #b0b0b0; }
.lp-lekcjonarz.lp-color-green  { --lp-liturgical: #008000; }

.lp-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin: 0 0 28px;
    padding: 14px;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

.lp-nav,
.lp-today {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #111111;
    transition: .15s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.lp-nav:hover,
.lp-today:hover {
    border-color: #999999;
    color: #000000;
}

.lp-date-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: end;
    margin: 0;
    min-width: 0;
    width: 100%;
}

.lp-date-form label {
    margin: 0;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

.lp-date-form input[type="date"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 46px;
    padding: 9px 42px 9px 12px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff;
    color: #111111;
    font-size: 16px;
    box-sizing: border-box;
}

.lp-app-intro {
    margin: 0 0 22px;
}

.lp-editions {
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0 0 18px;
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    font-weight: 700;
    text-transform: uppercase;
}

.lp-edition {
    color: #8a8a8a;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    text-decoration: none !important;
    cursor: pointer;
}

.lp-edition.is-active {
    color: #111111;
    border-bottom-color: #111111;
}

.lp-edition:hover {
    color: #111111;
}

.lp-beta-note {
    max-width: 720px;
    padding-top: 12px;
    border-top: 2px solid #d8d8d8;
    color: #333333;
    font-size: 1rem;
    line-height: 1.35;
}

.lp-header {
    margin: 0 auto 26px;
    padding: 6px 0 0;
}

.lp-header-top {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin: 0 0 22px;
}

.lp-header-date {
    font-size: clamp(1.7rem, 4.8vw, 2.15rem);
    line-height: 1.1;
    font-weight: 400;
    color: #111111;
}

.lp-header-color {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: clamp(1.1rem, 3.2vw, 1.5rem);
    color: #222222;
}

.lp-header-color strong {
    color: var(--lp-liturgical);
    font-weight: 700;
}

.lp-header h2 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 6.5vw, 3.55rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: #1b1b1b;
}

.lp-header .lp-meta {
    font-size: 1rem;
    color: #444444;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lp-meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d9d9d9;
    background: #fafafa;
    font-size: .96rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    color: #333333;
}

.lp-meta-year {
    border-color: #d6defc;
    background: #eef2ff;
    color: #2e49c7;
}

.lp-divider {
    display: none;
}

.lp-reading {
    margin: 0 0 32px;
    padding: 0;
    border: 0;
}

.lp-reading h3 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 3.4vw, 1.9rem);
    line-height: 1.15;
    font-weight: 700;
    color: #4668ff;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.lp-section-sigla {
    font-weight: 700;
    text-transform: none;
}

.lp-motto {
    margin: 0 0 16px;
    color: #3b3b3b;
    font-style: italic;
    font-size: clamp(1.22rem, 3.5vw, 1.55rem);
    line-height: 1.34;
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

.lp-extra {
    display: block;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111111;
    font-weight: 700;
    font-size: 1.04rem;
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

.lp-text {
    font-size: clamp(1.45rem, 4.1vw, 1.7rem);
    line-height: 1.3;
    color: #202020;
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    letter-spacing: .002em;
}

.lp-note,
.lp-empty,
.lp-error {
    margin: 18px 0 24px;
    padding: 14px 16px;
    border: 1px solid #f0d7d7;
    border-left: 4px solid #cf2929;
    border-radius: 10px;
    background: #fff8f8;
    color: #222222;
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

.lp-note-bottom {
    margin-top: 28px;
}

@media (max-width: 980px) {
    .lp-toolbar {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .lp-date-form {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .lp-today {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .lp-nav-prev {
        grid-column: 1;
        grid-row: 3;
    }

    .lp-nav-next {
        grid-column: 2;
        grid-row: 3;
    }
}

@media (max-width: 760px) {
    .lp-lekcjonarz {
        font-size: 17px;
    }

    .lp-toolbar {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
        margin-bottom: 24px;
    }

    .lp-header-top {
        margin-bottom: 18px;
    }

    .lp-header h2 {
        margin-bottom: 10px;
    }

    .lp-editions {
        gap: 18px;
        justify-content: space-between;
    }

    .lp-text {
        line-height: 1.22;
    }
}

@media (max-width: 520px) {
    .lp-nav,
    .lp-today {
        font-size: .95rem;
    }

    .lp-beta-note {
        font-size: .95rem;
    }

    .lp-header-color {
        gap: 8px;
    }

    .lp-text {
        font-size: 1.28rem;
    }

    .lp-motto {
        font-size: 1.08rem;
    }

    .lp-reading h3 {
        font-size: 1.16rem;
    }
}

.lp-red {
    color: #cf2929;
}

.lp-marker {
    color: #cf2929;
    font-weight: 700;
}


/* v0.9.6 — wymuszone rozmiary elementów liturgicznych */
.lp-lekcjonarz .lp-reading h3 {
    font-size: 30px !important;
    line-height: 1.15 !important;
    margin: 0 0 14px !important;
    font-weight: 700 !important;
}

.lp-lekcjonarz .lp-reading .lp-extra {
    font-size: 22px !important;
    line-height: 1.35 !important;
    margin: 0 0 18px !important;
    font-weight: 700 !important;
}

.lp-lekcjonarz .lp-reading .lp-motto {
    font-size: 22px !important;
    line-height: 1.35 !important;
}

@media (max-width: 760px) {
    .lp-lekcjonarz .lp-reading h3 {
        font-size: 25px !important;
    }

    .lp-lekcjonarz .lp-reading .lp-extra {
        font-size: 20px !important;
    }

    .lp-lekcjonarz .lp-reading .lp-motto {
        font-size: 20px !important;
    }
}


/* v0.9.7 — tytuł Ewangelii zawsze tak duży jak pozostałe główne tytuły */
.lp-lekcjonarz .lp-reading-gospel h3 {
    font-size: 30px !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
}

@media (max-width: 520px) {
    .lp-lekcjonarz .lp-reading-gospel h3 {
        font-size: 25px !important;
    }
}
