
.reading{max-width:760px;margin:20px auto 14px;padding:clamp(22px,5vw,54px);background:#fffefb;border:1px solid #d9e5e6;border-radius:24px;box-shadow:0 16px 50px #284b6310}.reading h1{font-size:clamp(27px,5vw,38px);margin:24px 0 10px}.reading h2{font-size:24px;margin:38px 0 22px}.reading-kicker{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#66817c;letter-spacing:.12em;font-size:12px}.reading-tabs{display:flex;background:#eef4f2;padding:5px;border-radius:14px;margin:24px 0;gap:5px}.reading-tabs a{flex:1;text-align:center;padding:10px;border-radius:10px;color:#41615a;text-decoration:none}.reading-tabs a[aria-current=page]{background:#fff;box-shadow:0 2px 8px #304d4a12}.reading-audio{padding:17px;background:#eff6f3;border-radius:16px;margin:24px 0 36px}.reading-audio audio{width:100%;height:42px;margin-top:10px}.reading-audio small{color:#60766f}.reading-verse{font-size:21px;line-height:2.1;letter-spacing:.025em}.reading-verse sup{font:12px sans-serif;color:#8c9b90;margin-right:12px}.reading-note{padding:20px 0;color:#7a8782;font-size:13px;line-height:1.8}.reading-links{display:flex;gap:10px;flex-wrap:wrap}.reading-links a{font-size:13px;color:#47736a}.daily-preview{display:block;padding:26px;text-decoration:none;background:linear-gradient(120deg,#f3faf4,#e6f2f0);border:1px solid #d3e5df;border-radius:20px;color:#224c43}.daily-preview h2{margin:8px 0;font-size:28px}.daily-preview p{margin:8px 0}.calendar{background:#fffefb;border:1px solid #dbe7e3;border-radius:20px;padding:24px;margin:26px 0}.calendar header{display:flex;justify-content:space-between;align-items:center}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin-top:20px;text-align:center}.calendar-grid a,.calendar-grid span{padding:12px 0;border-radius:10px;text-decoration:none;font-size:14px}.calendar-grid a{background:#dceee6;color:#285b4c;font-weight:700}.calendar-grid .day-today{background:#367466;color:white}.calendar-grid span{color:#a6b2ad}.calendar-grid small{font-size:11px;color:#84978e}.reading-verse{border:0;background:none;padding:0;box-shadow:none;border-radius:0}.reading-audio b{display:block;margin-bottom:5px}.reading-dialog{width:min(820px,96vw);max-width:96vw;height:90dvh;max-height:90dvh;padding:0;border:1px solid #d4e4df;border-radius:20px;background:#eaf6ff}.reading-dialog::backdrop{background:#102b3b88;backdrop-filter:blur(4px)}.reading-dialog header{display:flex;justify-content:space-between;align-items:center;padding:10px 18px;background:#fff}.reading-dialog button{border:0;background:#eef5f2;border-radius:50%;width:36px;height:36px;font-size:22px;cursor:pointer}.reading-dialog iframe{border:0;width:100%;height:calc(100% - 56px)}

.home-command{align-items:stretch}.home-command .home-daily,.home-command .home-companion{display:flex;min-width:0}.home-command .daily-preview,.home-command .dazi-tile{width:100%;height:100%;min-height:306px;border-radius:26px;box-sizing:border-box}.home-command .daily-preview{display:flex;flex-direction:column;position:relative;isolation:isolate;overflow:hidden;padding:27px 28px;color:#fff9e8;background:#1c4b53 url('/img/daily-bible.svg') center/cover no-repeat;box-shadow:0 18px 36px -26px #183e49a0;border:1px solid #b8cba344}.daily-preview::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#123540b8 0%,#173c4577 48%,transparent 85%)}.daily-preview small{max-width:75%;font-size:11px;letter-spacing:.07em;color:#e5dfba}.daily-preview h2{max-width:9em;font-family:var(--display);font-weight:400;font-size:clamp(27px,3.3vw,39px);line-height:1.35;margin:26px 0 10px;color:#fff9e8}.daily-preview p{max-width:65%;font-size:12px;line-height:1.7;color:#e2e7d9}.daily-preview p:last-child{margin-top:auto;padding-top:18px;font-size:13px;font-weight:600;color:#f3e4b7}.memory-section{border-top:1px solid #e0e8df;padding-top:27px;margin-top:30px}.memory-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;letter-spacing:.09em;color:#798f77}.memory-heading button{background:#edf4ec;border:1px solid #d9e5d6;border-radius:99px;padding:7px 12px;color:#4d7355;font-size:12px;cursor:pointer;flex:none}.memory-ref{color:#527362;font-size:13px;margin:20px 0 8px}.memory-section .reading-verse{margin:0;line-height:2;font-size:22px;color:#253b34;min-height:4em}.reading-verse.is-covered{color:transparent;text-shadow:0 0 15px #9fb3a9;user-select:none}.reading-verse.is-covered::selection{color:transparent}@media(max-width:700px){.home-command .daily-preview,.home-command .dazi-tile{min-height:240px;border-radius:23px}.home-command .daily-preview{padding:23px 22px;background-position:58% center}.daily-preview h2{margin-top:18px;font-size:30px;max-width:8em}.daily-preview p{max-width:62%}.daily-preview small{font-size:10px}.memory-section .reading-verse{font-size:21px}}

.home-command .daily-preview,.home-command .dazi-tile{height:306px;min-height:306px}.daily-preview h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.daily-preview p{margin-top:4px;margin-bottom:4px}@media(max-width:380px){.home-command .daily-preview,.home-command .dazi-tile{height:326px;min-height:326px}}
.home-command .daily-preview{background-position:right center}.daily-preview h2{line-height:1.3}
.reading-status{display:block;font-size:12px;color:#6d8177;margin-top:8px}.reading-audio audio[hidden]{display:none}.reading-source{display:inline-block;margin-top:14px;color:#426b5e}.reading-error{padding:18px;background:#f8f4e8;border-radius:12px;color:#746142}.calendar-nav{display:flex;align-items:center;gap:14px}.calendar-nav button{width:34px;height:34px;border:1px solid #d7e3dd;border-radius:50%;background:#fff;color:#49695c;cursor:pointer}.reading-verse{white-space:normal}.calendar-grid a:focus-visible{outline:3px solid #689c86}.reading-tabs a:focus-visible{outline:3px solid #689c86}

.reading-kicker time{margin-left:auto;flex:none;white-space:nowrap;text-align:right}.reading-editions{display:block;margin-top:12px}

/* Keep the two homepage entry cards side by side on phones; the lower tab bar remains the Buddies entry. */
@media(max-width:560px){.home-command{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:30px}.home-command .home-daily,.home-command .home-companion{min-width:0}.home-command .home-testimony{width:100%;height:306px;min-height:306px;border-radius:19px}.home-command .home-testimony-image{height:53%}.home-command .home-testimony-image img{object-position:68% 48%}.home-command .home-testimony-image::after{inset:15% 0 0;background:linear-gradient(180deg,transparent 0%,var(--paper) 100%)}.home-command .home-testimony-copy{height:100%;min-height:0;padding:103px 11px 11px}.home-command .home-testimony-label{padding:4px 6px;font-size:7px;letter-spacing:.02em}.home-command .home-testimony-copy strong{margin-top:6px;font-size:15px;line-height:1.32;-webkit-line-clamp:3}.home-command .home-testimony-summary{display:none}.home-command .home-testimony-cta{padding-top:6px;font-size:9px}}
@media(max-width:380px){.home-command .home-testimony{height:326px;min-height:326px}.home-command .home-testimony-copy{padding:97px 9px 10px}.home-command .home-testimony-copy strong{font-size:14px}}

/* Keep the Bible reading footer close to the reading card. */
.reading[data-reading-page]+.foot{padding-top:8px}


/* Homepage: give the selected testimony a clean image-and-copy split.
   Leave the daily Bible card's content and visual rules intact. */
.home-command{align-items:stretch}
.home-command .home-companion{display:flex;min-width:0}
.home-command .home-testimony{display:flex;min-width:0;height:100%;min-height:306px;flex-direction:column;border:1px solid #c6ddd5;border-radius:26px;color:#172c3b;background:#fff;box-shadow:0 16px 34px -26px rgba(22,84,76,.48);transition:transform .18s ease,box-shadow .18s ease}
.home-command .home-testimony:hover{transform:translateY(-2px);box-shadow:0 20px 38px -24px rgba(22,84,76,.45)}
.home-command .home-testimony-image{position:relative;inset:auto;display:block;flex:0 0 43%;height:43%;min-height:0;overflow:hidden;background:#dce8e4}
.home-command .home-testimony-image img{width:100%;height:100%;object-fit:cover;object-position:68% 46%}
.home-command .home-testimony-image::after{display:none}
.home-command .home-testimony-copy{display:flex;min-height:0;flex:1;flex-direction:column;padding:13px 18px 15px;color:#172c3b}
.home-command .home-testimony-label{padding:5px 9px;color:#155e4e;background:#e5f3ed;font-size:10px;line-height:1.35;letter-spacing:.02em}
.home-command .home-testimony-copy strong{margin-top:8px;color:#172c3b;font-size:clamp(17px,2vw,22px);line-height:1.38;-webkit-line-clamp:2}
.home-command .home-testimony-summary{margin-top:5px;color:#5b7280;font-size:11px;line-height:1.5;-webkit-line-clamp:2}
.home-command .home-testimony-cta{margin-top:auto;padding-top:8px;border-color:#e0ebe6;color:#145f50;font-size:12px}
@media(max-width:560px){
 .home-command .home-testimony{height:100%;min-height:306px;border-radius:19px}
 .home-command .home-testimony-image{flex-basis:47%;height:47%}
 .home-command .home-testimony-image img{object-position:68% 46%}
 .home-command .home-testimony-copy{padding:10px 11px 12px}
 .home-command .home-testimony-label{max-width:100%;padding:4px 6px;font-size:8px;white-space:nowrap}
 .home-command .home-testimony-copy strong{margin-top:6px;font-size:clamp(15px,4vw,17px);line-height:1.38;-webkit-line-clamp:3}
 .home-command .home-testimony-summary{display:none}
 .home-command .home-testimony-cta{padding-top:7px;font-size:10px}
}
@media(max-width:380px){
 .home-command .home-testimony{min-height:326px;border-radius:18px}
 .home-command .home-testimony-copy{padding:9px 9px 10px}
 .home-command .home-testimony-label{font-size:7px}
 .home-command .home-testimony-copy strong{font-size:15px}
 .home-command .home-testimony-cta{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.home-command .home-testimony{transition:none}.home-command .home-testimony:hover{transform:none}}


/* Homepage focus cards: stack them to make room for the selected testimony copy.
   Bible reading wording, artwork, and treatment remain intact. */
.home-command{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:14px}
.home-command .home-daily,.home-command .home-companion{display:flex;min-width:0;width:100%}
.home-command .daily-preview{width:100%;height:306px;min-height:306px}
.home-command .home-testimony{display:flex;width:100%;height:320px;min-height:320px;flex-direction:row;border:1px solid #c6ddd5;border-radius:26px;color:#172c3b;background:#fff;box-shadow:0 16px 34px -26px rgba(22,84,76,.48);transition:transform .18s ease,box-shadow .18s ease}
.home-command .home-testimony:hover{transform:translateY(-2px);box-shadow:0 20px 38px -24px rgba(22,84,76,.45)}
.home-command .home-testimony-image{position:relative;inset:auto;display:block;flex:0 0 37%;height:100%;min-height:0;overflow:hidden;background:#dce8e4}
.home-command .home-testimony-image img{width:100%;height:100%;object-fit:cover;object-position:68% 46%}
.home-command .home-testimony-image::after{display:none}
.home-command .home-testimony-copy{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column;align-items:flex-start;padding:22px 28px 20px;color:#172c3b}
.home-command .home-testimony-label{padding:5px 10px;color:#155e4e;background:#e5f3ed;font-size:10px;line-height:1.4;letter-spacing:.025em}
.home-command .home-testimony-copy strong{margin-top:10px;color:#172c3b;font-size:clamp(23px,3vw,31px);line-height:1.4;-webkit-line-clamp:2}
.home-command .home-testimony-summary{display:-webkit-box;margin-top:10px;color:#526b78;font-size:15px;line-height:1.75;-webkit-line-clamp:3}
.home-command .home-testimony-cta{margin-top:auto;padding-top:11px;border-color:#e0ebe6;color:#145f50;font-size:13px}
@media(max-width:560px){
 .home-command{grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:30px}
 .home-command .daily-preview{height:306px;min-height:306px}
 .home-command .home-testimony{height:auto;min-height:0;flex-direction:column;border-radius:20px}
 .home-command .home-testimony-image{flex:none;width:100%;height:clamp(190px,56vw,235px)}
 .home-command .home-testimony-image img{object-position:68% 44%}
 .home-command .home-testimony-copy{padding:17px 18px 16px}
 .home-command .home-testimony-label{max-width:100%;padding:5px 8px;font-size:9px}
 .home-command .home-testimony-copy strong{margin-top:9px;font-size:clamp(23px,6vw,28px);line-height:1.45;-webkit-line-clamp:3}
 .home-command .home-testimony-summary{display:block;margin-top:9px;font-size:14px;line-height:1.75;-webkit-line-clamp:unset}
 .home-command .home-testimony-cta{margin-top:13px;padding-top:10px;font-size:12px}
}
@media(max-width:380px){
 .home-command .daily-preview{height:326px;min-height:326px}
 .home-command .home-testimony-image{height:190px}
 .home-command .home-testimony-copy{padding:15px 15px 14px}
 .home-command .home-testimony-copy strong{font-size:22px}
 .home-command .home-testimony-summary{font-size:13px;line-height:1.7}
}
@media(prefers-reduced-motion:reduce){.home-command .home-testimony{transition:none}.home-command .home-testimony:hover{transform:none}}

/* Make the daily purpose and Beijing publication date readable at a glance. */
.home-command .daily-preview{height:auto;min-height:306px;gap:10px;padding:24px 26px}
.daily-preview .reading-home-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.reading-home-badge{display:inline-block;border:1px solid #f5df9e88;background:#f6e5af;color:#234844;border-radius:99px;padding:5px 12px;font-size:14px;line-height:1.4;font-weight:700}
.daily-preview .reading-home-top small{max-width:none;font-size:12px;letter-spacing:.04em;color:#eee8ce}
.reading-home-date-row{display:flex;align-items:baseline;gap:12px;min-width:0}
.reading-home-date-row time{font-family:var(--display);font-size:clamp(38px,8vw,52px);line-height:1.12;letter-spacing:.025em;font-weight:500;color:#fff8df;white-space:nowrap;text-shadow:0 2px 14px #12354066}
.reading-home-date-row>span{font-size:14px;color:#e5e7d3}
.daily-preview h2{display:block;max-width:100%;margin:0;font-size:clamp(21px,4.9vw,26px);line-height:1.4;letter-spacing:.02em;color:#f6df9c;-webkit-line-clamp:unset;overflow:visible}
.daily-preview p[data-reading-summary]{max-width:72%;font-size:13px;line-height:1.65;margin:0;color:#edf2e9}
.daily-preview p.reading-home-cta{display:flex;align-items:center;gap:9px;max-width:100%;width:fit-content;margin:2px 0 0;padding:8px 13px;border:1px solid #fff8df66;border-radius:99px;background:#e8f0dded;color:#234d45;font-size:14px;font-weight:700;line-height:1.5}
.daily-preview .reading-home-cta>span:first-child{font-size:12px}
.daily-preview:focus-visible{outline:3px solid #f0d277;outline-offset:4px}
@media(max-width:560px){.home-command .daily-preview{height:auto;min-height:306px;padding:21px 22px;gap:11px}.daily-preview p[data-reading-summary]{max-width:78%;font-size:12px}.reading-home-date-row time{font-size:clamp(36px,10vw,46px)}}

/* Match the prayer capsule visually while keeping reading playback independent. */
.reading-player{margin:24px 0 36px;padding:10px 12px 10px 10px;isolation:isolate}
.reading-player.is-started{position:sticky;top:calc(env(safe-area-inset-top,0px) + 66px);z-index:15;box-shadow:0 0 0 1px var(--line),0 10px 25px -12px #16375e66}
.reading-player audio{display:none!important}
.reading-player .hx-a-top{flex-wrap:wrap;row-gap:3px}
.reading-player .hx-a-top b{font-size:15px}
.reading-player .hx-a-top span{font-size:12px}
.reading-player .hx-a-bar{touch-action:none}
.reading-player .hx-a-bar::after{content:"";position:absolute;inset:-12px 0}
.reading-player .hx-a-bar:focus-visible{outline:3px solid var(--water);outline-offset:6px}
.reading-player .hx-play:disabled{opacity:.45;cursor:wait}
.reading-player .reading-status{margin:2px 5px 0}
.reading-player .reading-status:empty,.reading-player .reading-status[hidden]{display:none}
@media(max-width:380px){.reading-player{gap:8px;padding-right:8px}.reading-player .hx-play{width:44px;height:44px}.reading-player .hx-speed{min-width:40px;padding-inline:5px}.reading-player .hx-a-top b{font-size:14px}}
