/* The Daily readings card (js/readings.js): two cards side by side, a light one (title, SPACE guide, buttons) and a dark one (the calendar:
   the month and its arrows across the top, the days, and the day's readings at the foot), after the Contact 9 block of React Bits Pro the
   church pointed to (1 Dec 2026; 3 Dec 2026: the readings moved under the calendar, side by side, the "Calendar" pill and the Bible.com
   button left out, the card made shorter so neither side has empty space; the site's own code, no React Bits code). On a phone
   they stack. It floats over the home page, dimmed behind, as the registration forms do, and is also the page of readings.html (.is-page).
   Every rule is scoped to .rd-*, so nothing here changes the rest of the site.

   Colors are the site's: night #111330 and dusk #1B1D45 for the dark card, linen words on it, lavender #C7B9F2 for the picked day and today,
   and for the light card a warm white (#FBF9F5, from the linen), night words, #55566F quieter words and violet #6A4FBF, as in the registration
   forms. Newsreader, as the whole site. */
html.rd-open,html.rd-open body{overflow:hidden;overscroll-behavior:none}
.rd-stage{position:fixed;inset:0;z-index:2000;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(9,10,30,.68);
  font-family:var(--serif);font-size:16px;line-height:1.5;color:#111330;opacity:0;transition:opacity .22s ease;overscroll-behavior:contain}
.rd-stage.is-open{opacity:1}
.rd-stage.is-closing{pointer-events:none}
.rd-stage:focus{outline:none}
.rd-stage *,.rd-stage *::before,.rd-stage *::after{box-sizing:border-box}
.rd-stage :focus-visible{outline:2px solid #6A4FBF;outline-offset:2px}
.rd-win{position:relative;width:min(1180px,100%);height:min(640px,100%);min-height:0;transform:translateY(16px) scale(.985);transition:transform .34s cubic-bezier(.2,.7,.2,1)}
.rd-stage.is-open .rd-win{transform:none}
@media (prefers-reduced-motion:reduce){.rd-stage,.rd-win{transition:none}}
.rd-card{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:16px;height:100%}

/* ------------------------------------------------------------------ the light card */
.rd-left{display:flex;flex-direction:column;min-height:0;padding:clamp(18px,3.6vh,44px) clamp(24px,3.4vw,44px);overflow-y:auto;border:1px solid #E4DFEA;border-radius:28px;background:#FBF9F5;
  scrollbar-width:thin;scrollbar-color:rgba(17,19,48,.28) transparent}
.rd-title{margin:0;font-family:inherit;font-weight:500;font-size:clamp(34px,min(4.6vw,7vh),62px);line-height:1.02;letter-spacing:-.02em;color:#111330}
.rd-dim{color:#8B88A3}
.rd-lead{margin:clamp(8px,1.8vh,14px) 0 0;max-width:30em;font-size:clamp(14.5px,2.1vh,16px);line-height:1.5;color:#55566F}
.rd-label{margin:0 0 6px;font-family:inherit;font-size:14px;font-weight:400;line-height:1.4;color:#7A7790}
.rd-space,.rd-read{margin-top:clamp(12px,2.8vh,24px)}
.rd-space-list{margin:0;padding:0;list-style:none}
.rd-srow{display:flex;align-items:center;gap:12px;width:100%;min-height:clamp(34px,5vh,46px);margin:0;padding:clamp(2px,.8vh,6px) 0;border:0;border-top:1px solid #ECE8F1;background:transparent;color:#111330;font:inherit;font-size:16px;text-align:left;cursor:pointer}
.rd-space-list li:first-child .rd-srow{border-top:0}
.rd-k{font-weight:600;font-size:1.28em;line-height:1;color:#6A4FBF}
.rd-sname{flex:1 1 auto;min-width:0}
.rd-srow svg{flex:none;width:14px;height:14px;color:#7A7790;transition:transform .2s}
.rd-srow[aria-expanded=true] svg{transform:rotate(180deg)}
.rd-srow:hover .rd-sname{text-decoration:underline;text-underline-offset:3px;text-decoration-color:#C7B9F2}
.rd-q{margin:0 0 8px;font-size:15px;line-height:1.5;color:#55566F}
.rd-q[hidden]{display:none}
.rd-read-head{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.rd-date{font-size:19px;font-weight:600;line-height:1.3;color:#111330}
.rd-tag{padding:1px 10px;border-radius:999px;background:#E9E2FB;color:#43308C;font-size:13px;font-style:normal;font-weight:600;line-height:1.6}
.rd-tag[hidden]{display:none}
/* Morning and evening: each a tinted row with its sun or moon, so the two are told apart at a glance */
.rd-rows{display:flex;flex-direction:column;gap:clamp(5px,1vh,8px);margin-top:clamp(5px,1vh,8px)}
.rd-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:clamp(6px,1.25vh,10px) 14px;border-radius:14px;font-size:16px;line-height:1.4;background:#F3EFFB}
.rd-row.is-pm{background:#ECEAF6}
.rd-row-l{flex:none;display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:#43308C}
.rd-row-l svg{display:block;width:20px;height:20px;color:#6A4FBF}
.rd-row.is-pm .rd-row-l svg{color:#3A3F8F}
.rd-row-v{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 4px;min-width:0;font-weight:600;color:#111330;text-align:right}
.rd-row-v a{display:inline-flex;align-items:center;gap:4px;color:#111330;text-decoration:none}
.rd-row-v a:hover{color:#6A4FBF;text-decoration:underline;text-underline-offset:3px}
.rd-row-v svg{width:12px;height:12px;opacity:.55}
.rd-note{margin:0;padding:10px 14px;border-radius:14px;background:#F3EFFB;font-size:15.5px;color:#55566F}
.rd-actions{display:flex;flex-wrap:wrap;gap:10px;padding-top:clamp(10px,2.6vh,24px)}
.rd-actions[hidden]{display:none}
/* On a computer the SPACE guide's five rows share the light card's height down to its foot (3 Dec 2026, by request: no empty space),
   so its last row lines up with the readings at the foot of the dark card; an opened row's question takes its room from the others */
@media (min-width:861px){
  .rd-left .rd-space{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
  .rd-left .rd-space-list{flex:1 1 auto;display:flex;flex-direction:column}
  .rd-left .rd-space-list li{flex:1 1 auto;display:flex;flex-direction:column}
  .rd-left .rd-srow{flex:1 1 auto}
}
.rd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:clamp(42px,6vh,48px);padding:0 22px;border:1px solid #E4DFEA;border-radius:999px;background:#FFFFFF;color:#111330;
  font:inherit;font-size:15.5px;font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer;transition:background-color .18s,border-color .18s,transform .12s}
.rd-btn[hidden]{display:none}
.rd-btn svg{flex:none;width:18px;height:18px}
.rd-btn:hover{border-color:#C9C4D6;background:#F6F3FB}
.rd-btn:active{transform:translateY(1px)}
.rd-btn-go{border-color:#111330;background:#111330;color:#FFFFFF}
.rd-btn-go:hover{border-color:#26295E;background:#26295E}

/* ------------------------------------------------------------------ the dark card: the calendar */
.rd-cal{position:relative;display:flex;flex-direction:column;min-height:0;padding:clamp(16px,2.8vh,24px) clamp(18px,3vw,36px) clamp(20px,3.2vh,32px);overflow:hidden;border-radius:28px;color:#F5EFE6;box-shadow:0 0 0 1px rgba(245,239,230,.1);
  background:radial-gradient(120% 80% at 50% 0,#2A2D70 0,#1B1D45 52%,#14163A 100%)}
.rd-cal-main{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;min-height:0}
.rd-dow,.rd-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.rd-dow{margin-bottom:8px}
.rd-dow span{text-align:center;font-size:13.5px;color:rgba(245,239,230,.62)}
.rd-days{gap:8px 6px}
.rd-day{display:block;width:100%;height:clamp(34px,5.4vh,50px);margin:0;padding:0;border:1px solid transparent;border-radius:16px;background:rgba(245,239,230,.07);color:#F5EFE6;
  font:inherit;font-size:18px;font-variant-numeric:tabular-nums;cursor:pointer;transition:background-color .18s,color .18s,border-color .18s}
.rd-day:hover{background:rgba(245,239,230,.15)}
.rd-day.is-past{color:rgba(245,239,230,.72)}
.rd-day.is-today{border-color:#C7B9F2}
.rd-day.is-on{border-color:#C7B9F2;background:#C7B9F2;color:#111330;font-weight:600}
.rd-day:focus-visible{outline:2px solid #FFFFFF;outline-offset:2px}
.rd-hint{margin:clamp(10px,2.2vh,18px) 0 0;text-align:center;font-size:15px;color:rgba(245,239,230,.62)}

/* The month and its arrows, across the top: an arrow on each side of the month, centered, level with the close ring
   (the "Calendar" pill went 3 Dec 2026, by request: the month says what it is) */
.rd-topnav{flex:none;display:flex;align-items:center;justify-content:center;gap:clamp(10px,1.8vw,16px);margin:0 0 clamp(10px,2vh,18px);padding:0 52px}
.rd-bar-month{min-width:0;font-size:clamp(16px,2.2vh,18px);font-weight:600;color:#F5EFE6;white-space:nowrap}
.rd-today{flex:none;min-height:34px;margin:0;padding:0 12px;border:0;border-radius:999px;background:rgba(245,239,230,.12);color:#C7B9F2;font:inherit;font-size:14.5px;font-weight:600;cursor:pointer}
.rd-today:hover{background:rgba(245,239,230,.2)}
.rd-today[hidden]{display:none}
.rd-nav{flex:none;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:1px solid rgba(245,239,230,.26);border-radius:50%;background:rgba(245,239,230,.1);color:#F5EFE6;cursor:pointer;transition:background-color .18s,opacity .18s}
.rd-nav svg{display:block;width:18px;height:18px}
.rd-nav:hover{background:rgba(245,239,230,.2)}
.rd-nav-go{background:rgba(245,239,230,.1);color:#F5EFE6}
.rd-nav-go:hover{background:rgba(245,239,230,.2)}
.rd-nav[aria-disabled=true]{opacity:.35;cursor:default}

/* The day's readings, under the calendar (moved here 3 Dec 2026): light chips on the dark card, their heading and date in linen.
   Morning and evening sit side by side, so neither stretches the whole width; on a narrow card they stack. */
.rd-cal .rd-read{flex:none;margin-top:clamp(12px,2.2vh,20px);padding-top:clamp(12px,2vh,18px);border-top:1px solid rgba(245,239,230,.14)}
.rd-cal .rd-read .rd-label{color:rgba(245,239,230,.66)}
.rd-cal .rd-date{color:#F5EFE6}
.rd-cal .rd-rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.rd-cal .rd-row{flex-wrap:wrap;gap:2px 10px;padding-left:12px;padding-right:12px}
.rd-cal .rd-row-v{margin-left:auto}
.rd-cal .rd-row-v a{white-space:nowrap}
.rd-cal .rd-note{grid-column:1/-1}

/* Close: a ring on the dark card's corner, level with the month */
.rd-x{position:absolute;top:24px;right:24px;z-index:3;display:grid;place-items:center;width:38px;height:38px;margin:0;padding:0;border:1px solid rgba(245,239,230,.3);border-radius:50%;
  background:rgba(245,239,230,.1);color:#F5EFE6;cursor:pointer;text-decoration:none;transition:background-color .18s}
.rd-x:hover{background:rgba(245,239,230,.22)}
.rd-x svg{display:block;width:16px;height:16px}
.rd-stage .rd-x:focus-visible{outline-color:#FFFFFF}

/* ------------------------------------------------------------------ readings.html: the same card as the page */
.rd-stage.is-page{position:static;min-height:100vh;min-height:100dvh;background:radial-gradient(120% 70% at 50% 0,#262868 0,#161946 46%,#111330 100%);opacity:1;transition:none}
.rd-stage.is-page .rd-win{transform:none;transition:none}

/* ------------------------------------------------------------------ a phone or a narrow window: the cards stack, and the card scrolls */
/* A computer: the card is as tall as the calendar and its readings, no taller, so neither card has empty space; the light card
   matches it, the SPACE rows sharing what's left under the opening line (3 Dec 2026, by request: the opening line stays on short
   screens too, and no gaps). On a screen too short for the card, the dimmed page behind scrolls instead. */
@media (min-width:861px){
  .rd-stage{overflow-y:auto}
  .rd-win{height:auto;margin:auto}
  .rd-card{height:auto}
}
@media (max-width:860px){
  .rd-stage{padding:8px}
  .rd-win{width:100%;height:100%}
  .rd-card{display:flex;flex-direction:column;gap:0;overflow-y:auto;border:1px solid #E4DFEA;border-radius:22px;background:#FBF9F5;scrollbar-width:thin}
  .rd-left{display:contents}
  .rd-info{order:1;padding:28px 64px 0 20px}
  .rd-cal{order:2;flex:none;margin:20px 12px 0;padding:16px 14px 22px;border-radius:10px}
  .rd-space{order:4;margin:22px 20px 0;padding-bottom:28px}
  .rd-actions{order:5;margin:0;padding:0 20px 28px}
  .rd-days{gap:6px 4px}
  .rd-day{height:44px;border-radius:14px;font-size:17px}
  .rd-topnav{justify-content:space-between;gap:12px;margin:0 0 12px;padding:0}
  .rd-x{top:16px;right:16px;border-color:rgba(17,19,48,.16);background:rgba(17,19,48,.07);color:#111330}
  .rd-x:hover{background:rgba(17,19,48,.14)}
  .rd-stage.is-page .rd-win{height:auto;min-height:calc(100dvh - 16px)}
  .rd-stage.is-page .rd-card{overflow:visible}
}
@media print{
  html.rd-open,html.rd-open body{overflow:visible}
  .rd-stage{position:static;background:none;opacity:1}
  .rd-win{height:auto;transform:none}
}
/* In the site's night colours (4 Dec 2026, by request: "fix the color matching since it does not match the theme"). The two
   cards and their layout stay; the light card and the pale reading tiles take the dusk of the calendar card, so the pair
   reads as one piece with the rest of the site: linen words, quieter linen for the small ones, lavender for the SPACE
   letters, the icons and what is picked. Printing keeps dark words on white. */
.rd-stage{color:#F5EFE6}
.rd-stage :focus-visible{outline-color:#C7B9F2}
.rd-left{border-color:rgba(245,239,230,.1);background:radial-gradient(120% 80% at 0 0,#2A2D70 0,#1B1D45 52%,#14163A 100%);scrollbar-color:rgba(245,239,230,.3) transparent}
.rd-title,.rd-date,.rd-srow{color:#F5EFE6}
.rd-dim{color:#C7B9F2}
.rd-lead,.rd-q{color:rgba(245,239,230,.76)}
.rd-label{color:rgba(245,239,230,.66)}
.rd-srow{border-top-color:rgba(245,239,230,.14)}
.rd-k{color:#C7B9F2}
.rd-srow svg{color:rgba(245,239,230,.66)}
.rd-tag{background:rgba(199,185,242,.18);color:#DCD2F8}
.rd-row,.rd-row.is-pm,.rd-note{background:rgba(245,239,230,.08);box-shadow:inset 0 0 0 1px rgba(245,239,230,.1)}
.rd-note{color:rgba(245,239,230,.76)}
.rd-row-l{color:#DCD2F8}
.rd-row-l svg,.rd-row.is-pm .rd-row-l svg{color:#C7B9F2}
.rd-row.is-am .rd-row-l svg{color:#F6C27B}
.rd-row-v,.rd-row-v a{color:#F5EFE6}
.rd-row-v a:hover{color:#C7B9F2}
.rd-btn{border-color:rgba(245,239,230,.26);background:transparent;color:#F5EFE6}
.rd-btn:hover{border-color:#C7B9F2;background:rgba(199,185,242,.14)}
.rd-btn-go{border-color:#C7B9F2;background:#C7B9F2;color:#111330}
.rd-btn-go:hover{border-color:#D7CCF6;background:#D7CCF6}
@media (max-width:860px){
  .rd-card{border-color:rgba(245,239,230,.1);background:linear-gradient(180deg,#1E2050,#14163A)}
  .rd-x{border-color:rgba(245,239,230,.3);background:rgba(245,239,230,.1);color:#F5EFE6}
  .rd-x:hover{background:rgba(245,239,230,.22)}
}
@media print{
  .rd-left,.rd-cal,.rd-card{background:#FFF;box-shadow:none;border-color:#CCC}
  .rd-stage,.rd-stage *{color:#111330!important}
  .rd-row,.rd-row.is-pm,.rd-note,.rd-day,.rd-day.is-on{background:none}
}
/* The "SPACE guide" label over the five rows is not shown (4 Dec 2026, by request: "remove this"); the opening line already
   names the guide. It stays in the page for screen readers, and the first row takes a line above it in the label's place. */
#rd-space-h{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rd-space-list li:first-child .rd-srow{border-top:1px solid rgba(245,239,230,.14)}
/* The day's readings are buttons (4 Dec 2026, by request: "make this as button"): each tile is a pill with a lavender
   edge that fills under the pointer, and the whole of it opens the passage, not only the passage's name (the link is
   stretched over its tile). A reading of more than one passage keeps a link for each, inside the same pill. */
.rd-row,.rd-row.is-pm{position:relative;min-height:46px;box-sizing:border-box;padding-left:18px;padding-right:18px;border-radius:999px;background:rgba(199,185,242,.1);box-shadow:inset 0 0 0 1px rgba(199,185,242,.5);transition:background-color .2s,box-shadow .2s}
.rd-row:has(a):hover{background:rgba(199,185,242,.22);box-shadow:inset 0 0 0 1px #C7B9F2}
.rd-row:has(a:focus-visible){box-shadow:inset 0 0 0 2px #F5EFE6}
.rd-row-v a:only-child::after{content:"";position:absolute;inset:0;border-radius:inherit}
.rd-row-v a:only-child:focus-visible{outline:0}
.rd-row-v a,.rd-row-v a:hover{color:#F5EFE6;text-decoration:none}
.rd-row-v a:not(:only-child):hover{text-decoration:underline;text-underline-offset:3px}
.rd-row-v a svg{transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.rd-row:hover .rd-row-v a svg{transform:translate(2px,-2px)}
@media (prefers-reduced-motion: reduce){.rd-row,.rd-row-v a svg{transition:none}}
@media print{.rd-row,.rd-row.is-pm{box-shadow:none}}
