/* Interactive Rosary */
.ir { --ir-ink: #16305c; --ir-gold: #c9962b; --ir-line: #d5dbe8; --ir-soft: #f3f6fb; --ir-fs: 19px; margin: 0 0 28px; color: #1b2233; font-size: 17px; line-height: 1.5; }
.ir[data-size="0"] { --ir-fs: 17px; } .ir[data-size="2"] { --ir-fs: 22px; } .ir[data-size="3"] { --ir-fs: 25px; }
.ir *, .ir *::before, .ir *::after { box-sizing: border-box; }
.ir-card { background: #fff; border: 1px solid var(--ir-line); border-top: 4px solid var(--ir-ink); border-radius: 12px; padding: 16px; box-shadow: 0 2px 10px rgba(22, 48, 92, .08); }
.ir-top { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; }
.ir-top select { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 6px 10px; border: 1px solid #93a0bb; border-radius: 8px; background: #fff; color: var(--ir-ink); font: inherit; font-weight: 600; }
.ir button { font: inherit; cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.ir-size { flex: 0 0 44px; min-height: 44px; padding: 0; border: 1px solid #93a0bb; border-radius: 8px; background: #fff; color: var(--ir-ink); font-weight: 700; }
.ir-size:hover { background: var(--ir-soft); color: var(--ir-ink); }
.ir button:focus-visible, .ir select:focus-visible, .ir input:focus-visible { outline: 3px solid var(--ir-gold); outline-offset: 2px; }
.ir-prayer:focus, .ir-done h3:focus { outline: none; }
.ir-today { margin: 0 0 14px; font-size: 20px; line-height: 1.3; color: var(--ir-ink); }
.ir-field { display: block; margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #2d3a55; }
.ir-field input[type="text"] { display: block; width: 100%; min-height: 46px; margin: 4px 0 0; padding: 8px 12px; border: 1px solid #93a0bb; border-radius: 8px; font: inherit; font-size: 17px; font-weight: 400; color: #1b2233; background: #fff; }
.ir-check { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; font-size: 16px; }
.ir-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ir-ink); }
.ir-btn { display: block; width: 100%; min-height: 54px; margin: 0 0 10px; padding: 12px 18px; border: 1px solid var(--ir-ink); border-radius: 10px; background: var(--ir-ink); color: #fff; font-size: 19px; font-weight: 700; line-height: 1.2; }
.ir-btn:hover { background: #21427c; color: #fff; }
.ir-btn:disabled { opacity: .45; cursor: default; }
.ir-ghost { background: #fff; color: var(--ir-ink); border-color: #93a0bb; font-weight: 600; }
.ir-ghost:hover { background: var(--ir-soft); color: var(--ir-ink); }
.ir-small { margin: 6px 0 0; font-size: 14px; color: #55617c; }
.ir-small:empty { display: none; }
.ir-decades { display: flex; gap: 5px; margin: 0 0 8px; }
.ir-decades span { flex: 1 1 0; height: 7px; border-radius: 4px; background: linear-gradient(to right, var(--ir-gold) var(--ir-fill, 0%), #e3e8f2 var(--ir-fill, 0%)); }
.ir-decades span.ir-full { background: var(--ir-ink); }
.ir-where { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #55617c; }
.ir-for { margin: 2px 0 0; font-size: 14px; color: #55617c; font-style: italic; overflow-wrap: anywhere; }
.ir-beads { --ir-gap: 5px; display: flex; align-items: center; justify-content: center; gap: var(--ir-gap); min-height: 66px; margin: 6px 0 12px; }
/* the beads, the crucifix and the medal are the pieces of the site's first rosary drawing (assets/img); a bead lights up once it is prayed */
.ir-bead { position: relative; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: url(../img/bead-hail.svg) center / contain no-repeat; opacity: .3; transition: transform .15s ease, opacity .2s ease; }
.ir-bead + .ir-bead::before { content: ""; position: absolute; right: 100%; top: 50%; width: var(--ir-gap); height: 2px; margin-top: -1px; background: #b3b7c3; }
.ir-big { width: 30px; height: 30px; background-image: url(../img/bead-our.svg); }
.ir-cross { width: 32px; height: 62px; border-radius: 0; background-image: url(../img/crucifix.svg); }
.ir-medal { width: 46px; height: 46px; background-image: url(../img/medal.svg); }
.ir-said { opacity: 1; }
.ir-now { opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--ir-gold); z-index: 1; }
.ir-cross.ir-now { transform: none; box-shadow: none; filter: drop-shadow(0 0 5px var(--ir-gold)) drop-shadow(0 0 1px var(--ir-gold)); }
.ir-prayer { min-height: 230px; padding: 16px; border: 1px solid var(--ir-line); border-radius: 10px; background: #fbfcfe; }
.ir-in { animation: ir-in .18s ease; }
@keyframes ir-in { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ir-kicker { margin: 0 0 4px; font-size: 14px; font-weight: 700; letter-spacing: .03em; color: #7a5600; }
.ir .ir-title { margin: 0 0 10px; font-size: 24px; line-height: 1.2; color: var(--ir-ink); }
.ir-count { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 12px; background: #eaf0fa; font-size: 15px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.ir-text p { margin: 0 0 10px; font-size: var(--ir-fs); line-height: 1.5; }
.ir-text p:last-child { margin-bottom: 0; }
.ir-text .ir-med { font-size: calc(var(--ir-fs) + 1px); }
.ir-text .ir-meta { font-size: 16px; color: #2d3a55; }
.ir-text .ir-hint { font-size: 15px; color: #55617c; }
.ir-nav { display: flex; gap: 10px; margin: 0 0 12px; }
.ir-nav .ir-btn { margin: 0; }
.ir-nav [data-act="back"] { flex: 0 0 34%; }
.ir-nav [data-act="next"] { flex: 1 1 auto; min-height: 60px; font-size: 21px; }
.ir-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; margin: 12px 0 0; font-size: 14px; color: #55617c; }
.ir-link { padding: 0; border: 0; background: none; color: #7a3b00; font-weight: 600; text-decoration: underline; min-height: 0; }
.ir-link:hover { background: none; color: var(--ir-ink); }
.ir-done { text-align: center; padding: 10px 0; }
.ir-done h3 { margin: 0 0 8px; font-size: 26px; color: var(--ir-ink); }
.ir-done p { margin: 0 0 12px; }
.ir-done ul { margin: 16px 0 0; padding: 0; list-style: none; text-align: left; }
.ir-done li { margin: 0 0 8px; }
.ir-done a { color: #7a3b00; font-weight: 600; text-decoration: underline; }
.ir-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ir[data-view="pray"] .ir-top select { font-weight: 400; }
@media (max-width: 360px) { .ir-bead { width: 17px; height: 17px; } .ir-big { width: 26px; height: 26px; } .ir-cross { width: 29px; height: 56px; } .ir-medal { width: 40px; height: 40px; } .ir-beads { --ir-gap: 4px; } }
@media (min-width: 700px) {
    .ir-card { padding: 24px 28px; }
    .ir-bead { width: 26px; height: 26px; } .ir-big { width: 38px; height: 38px; } .ir-cross { width: 38px; height: 74px; } .ir-medal { width: 56px; height: 56px; } .ir-beads { --ir-gap: 9px; min-height: 78px; }
    .ir-prayer { padding: 22px 26px; }
}
@media (prefers-reduced-motion: reduce) { .ir-in { animation: none; } .ir-bead { transition: none; } }
.ir [hidden] { display: none !important; }
/* the controls sit above the prayer so they stay in view when a tall anchor ad covers the bottom of the screen */
.ir { scroll-margin-top: 64px; }
