/* KJT Local Bible - Today's readings (4.7.0) */
.kjtb-lect{max-width:760px;margin:14px 0 18px;padding:14px 16px 16px;background:#fffdf6;color:#172033;border:1px solid #e3d3a0;border-top:5px solid #c9a227;border-radius:16px;box-shadow:0 6px 18px rgba(23,32,51,.08);font:400 1rem/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
.kjtb-lect *{box-sizing:border-box}
.kjtb-lect__head{display:flex;align-items:center;gap:10px}
.kjtb-lect__mid{flex:1;min-width:0;text-align:center}
.kjtb-lect__kicker{margin:0;color:#6b4423;font-weight:800;font-size:.95rem;letter-spacing:.02em}
.kjtb-lect__date{margin:2px 0 0;font-size:.85rem;color:#5b6475}
.kjtb-lect__nav{flex:0 0 auto;width:2.4rem;height:2.4rem;border:1px solid #e3d3a0;background:#fff;color:#3e093f;border-radius:999px;font:700 1.4rem/1 Georgia,serif;cursor:pointer}
.kjtb-lect__nav:hover,.kjtb-lect__nav:focus-visible{background:#fff3c4;outline:2px solid #3e093f;outline-offset:1px}
.kjtb-lect__today{display:block;margin:6px auto 0;border:0;background:none;color:#3e093f;text-decoration:underline;font-weight:700;cursor:pointer}
.kjtb-lect__title{margin:12px 0 2px;text-align:center;color:#3e093f;font:700 1.3rem/1.3 Georgia,"Times New Roman",serif}
.kjtb-lect__title.is-great{color:#8a1c1c}
.kjtb-lect__saints{margin:2px 0 6px;text-align:center;font-size:.85rem;color:#5b6475}
.kjtb-lect__fast{margin:4px 0 8px;text-align:center;font-size:.85rem;color:#2f6b3a}
.kjtb-lect__list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.kjtb-lect__item{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:10px 12px;background:#fff;border:1px solid #eee3c0;border-radius:12px}
.kjtb-lect__src{flex:0 0 auto;min-width:6.5rem;font-weight:800;color:#6b4423;font-size:.9rem}
.kjtb-lect__ref{flex:1 1 auto;color:#172033;font-weight:600;text-decoration:none}
a.kjtb-lect__ref:hover,a.kjtb-lect__ref:focus-visible{text-decoration:underline;color:#3e093f}
.kjtb-lect__go{flex:0 0 auto;margin-inline-start:auto;padding:.3rem .8rem;background:#3e093f;color:#fff!important;border-radius:999px;font-weight:700;font-size:.85rem;text-decoration:none}
.kjtb-lect__go:hover{background:#5a1a5b}
.kjtb-lect__more{margin-top:10px}
.kjtb-lect__more summary{cursor:pointer;color:#3e093f;font-weight:700;padding:6px 2px}
.kjtb-lect__more .kjtb-lect__item{background:#fffaf0}
.kjtb-lect__empty,.kjtb-lect__loading{margin:12px 0 0;text-align:center;color:#5b6475;font-style:italic}
.kjtb-lect__note{margin:8px 0 0;font-size:.8rem;color:#5b6475;text-align:center}
.kjtb-lect__mark{display:block;margin:12px auto 0;border:1.5px solid #3e093f;background:#fff;color:#3e093f;border-radius:999px;padding:.5rem 1.1rem;font-weight:700;cursor:pointer}
.kjtb-lect__mark.is-done{background:#e8f5e9;border-color:#2f6b3a;color:#2f6b3a;cursor:default}
.kjtb-lect[dir=rtl] .kjtb-lect__src{min-width:5rem}
@media(max-width:520px){.kjtb-lect{padding:12px}.kjtb-lect__title{font-size:1.15rem}.kjtb-lect__src{min-width:0;width:100%}.kjtb-lect__go{margin-inline-start:0}}
.kjtb-lect__cal{margin:12px 0 0;text-align:center;font-size:.85rem;color:#5b6475}
.kjtb-lect__cal select{margin-inline-start:4px;max-width:100%;padding:.25rem .4rem;border:1px solid #e3d3a0;border-radius:8px;background:#fff;color:#172033;font-size:.85rem}
/* 4.8.0: coming feasts */
.kjtb-feasts{padding:14px 16px 16px;background:#fffdf6;color:#172033;border:1px solid #e3d3a0;border-top:5px solid #c9a227;border-radius:16px;font:400 .95rem/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}
.kjtb-feasts__title{margin:0 0 8px;color:#3e093f;font:700 1.15rem/1.3 Georgia,"Times New Roman",serif}
.kjtb-feasts__list{list-style:none;margin:0;padding:0;max-height:22rem;overflow-y:auto}
.kjtb-feasts__item{display:grid;grid-template-columns:4.2rem 1fr auto;gap:8px;align-items:baseline;padding:7px 2px;border-bottom:1px solid #f0e6c8}
.kjtb-feasts__item:last-child{border-bottom:0}
.kjtb-feasts__date{font-weight:800;color:#6b4423;font-size:.85rem}
.kjtb-feasts__name{font-weight:600}
.kjtb-feasts__when{font-size:.78rem;color:#5b6475;white-space:nowrap}
.kjtb-feasts__item.is-today{background:#fff3c4;border-radius:8px;padding-inline:6px}
.kjtb-feasts__item.is-today .kjtb-feasts__when{color:#8a1c1c;font-weight:800}
.kjtb-feasts__cal{margin:8px 0 0;font-size:.78rem;color:#5b6475;text-align:center}
.kjtb-feasts__item.is-fast .kjtb-feasts__name{color:#2f6b3a}
.kjtb-feasts__item.is-fast .kjtb-feasts__date{color:#2f6b3a}
.kjtb-feasts__item.is-now{background:#e8f5e9;border-radius:8px;padding-inline:6px}
.kjtb-feasts__item.is-now .kjtb-feasts__when{color:#2f6b3a;font-weight:800;white-space:normal;text-align:end}
.kjtb-feasts__range{display:block;font-size:.75rem;font-weight:400;color:#5b6475}
/* 4.8.2: icons and legend */
.kjtb-feasts__ic{display:inline-block;width:1.4em;text-align:center;margin-inline-end:.3em;font-size:.95em}
.kjtb-feasts__item.is-lord .kjtb-feasts__name{color:#6b1c1c}
.kjtb-feasts__item.is-theotokos .kjtb-feasts__name{color:#1d4e89}
.kjtb-feasts__item.is-pascha .kjtb-feasts__name{color:#8a1c1c;font-weight:800}
.kjtb-feasts__range{padding-inline-start:1.7em}
.kjtb-feasts__legend{list-style:none;margin:10px 0 0;padding:8px 0 0;border-top:1px solid #f0e6c8;display:flex;flex-wrap:wrap;gap:4px 14px;justify-content:center;font-size:.78rem;color:#5b6475}
.kjtb-feasts__legend li{display:inline-flex;align-items:center}
.kjtb-feasts__cal{margin-top:4px}
@media(max-width:520px){.kjtb-feasts__item{grid-template-columns:3.4rem 1fr;row-gap:2px}.kjtb-feasts__when{grid-column:2;white-space:normal}.kjtb-feasts__item.is-now .kjtb-feasts__when{text-align:start}}
/* 4.8.4: on the Holy Bible page the card is centred and compact */
.kjtb-lect[data-kjtb-lect="bible"]{max-width:640px;margin:12px auto 16px;padding:10px 14px 12px;scroll-margin-top:6rem}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__nav{width:2rem;height:2rem;font-size:1.15rem}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__date{display:none}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__title{margin:6px 0 0;font-size:1.08rem}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__saints{margin:0 0 2px;font-size:.78rem;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__fast{margin:0 0 4px;font-size:.78rem}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__list{margin-top:6px;gap:6px}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__item{padding:6px 10px}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__src{min-width:5.5rem;font-size:.82rem}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__go{padding:.2rem .65rem;font-size:.8rem}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__more{margin-top:6px}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__more summary{padding:2px;font-size:.88rem}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__mark{display:inline-block;margin:8px 6px 0;padding:.35rem .9rem;font-size:.85rem}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__cal{display:inline-block;margin:8px 6px 0}
.kjtb-lect[data-kjtb-lect="bible"]{text-align:center}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__item{text-align:start}
@media(min-width:700px){.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__list{grid-template-columns:1fr 1fr}.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__src{min-width:0;width:100%}}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__cal label{display:inline-flex!important;align-items:center;gap:6px;font-weight:400!important}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__cal select{width:auto!important;display:inline-block!important;min-width:0;margin:0!important}
/* 4.9.0: tick each reading */
.kjtb-lect__tick{flex:0 0 auto;width:1.6rem;height:1.6rem;border:2px solid #c9a227;border-radius:.45rem;background:#fff;color:#2f6b3a;font-weight:900;line-height:1;cursor:pointer;padding:0}
.kjtb-lect__tick:hover{background:#fff3c4}
.kjtb-lect__tick.is-done{background:#e8f5e9;border-color:#2f6b3a;cursor:default}
.kjtb-lect__item.is-done{background:#f3faf3}
/* 4.9.2: the calendar menu never makes the page wider than a phone screen */
.kjtb-lect select{max-width:100%}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__cal{display:block;max-width:100%}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__cal label{display:flex!important;flex-wrap:wrap;justify-content:center;max-width:100%}
.kjtb-lect[data-kjtb-lect="bible"] .kjtb-lect__cal select{max-width:100%!important;flex:0 1 auto}
.kjtb-lect,.kjt-today{max-width:100%;box-sizing:border-box}
