/* ===== APPOINTED launch updates (Nov 18, 2026) =====
   Loaded after theme.css. Adds: the reading-first Today layout, the certificate
   preview, the framed-certificate notice, and the book button, card and screen.
   Everything here is new classes; no existing rule is edited. */

/* ---- Today: daily reading first ---- */
.today-grid.tdy{display:block!important}
.tdy-body{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin-top:18px;max-width:1200px}
.tdy-main,.tdy-rail{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-content:start;min-width:0}
.tdy-main>*,.tdy-rail>*,.tdy-main>#daily-host>.card{margin:0!important}
.tdy-main>.section-head{margin:10px 0 -6px!important}
.tdy-main>#daily-host:empty{display:none}
.tdy-reading>h2{line-height:1.2}
.tdy-main .tdy-reading .reader{columns:auto!important;max-width:none}
@media(min-width:1180px){
  .tdy-body{grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);gap:24px;align-items:start}
}

/* this month (Today rail) */
.tdy-month h2{font:500 24px var(--serif);margin:8px 0 2px;color:#172744}
.tdy-month p{color:#77766f;font-size:13px;line-height:1.6;margin:0 0 14px}

/* folds: closed until asked for (share today; month and tribe on day 1) */
details.tdy-fold{padding-top:0!important;padding-bottom:0!important}
details.tdy-fold>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 0}
details.tdy-fold>summary::-webkit-details-marker{display:none}
details.tdy-fold>summary .eyebrow{font-size:12px;letter-spacing:1.8px;line-height:1.5}
details.tdy-fold>summary:focus-visible{outline:2px solid #b99b4e;outline-offset:4px;border-radius:8px}
.tdy-chev{width:30px;height:30px;border-radius:50%;border:1px solid rgba(185,155,78,.55);position:relative;flex:none;transition:transform .25s ease}
.tdy-chev::before{content:"";position:absolute;left:50%;top:45%;width:8px;height:8px;border-right:2px solid #9c7c2c;border-bottom:2px solid #9c7c2c;transform:translate(-50%,-50%) rotate(45deg)}
details.tdy-fold[open] .tdy-chev{transform:rotate(180deg)}
details.tdy-fold[open]{padding-bottom:20px!important}
details.tdy-fold>.conf-chips{margin-top:0}
.tdy-share .intro{margin-bottom:12px}
.tdy-share #todayshare>div>div{width:100%!important;max-width:360px}
.tdy-share #todayshare>button{margin-bottom:18px!important}

/* ---- Certificate preview ---- */
.cert-teaser{background:#fffdf9;border:1px solid #d9c48a;border-radius:20px;padding:22px 20px;margin:18px 0;text-align:center}
.cert-teaser>.eyebrow{margin-bottom:6px}
.cert-teaser>h2{font:500 24px/1.2 var(--serif);margin:0 0 6px;color:#172744}
.cert-teaser>.intro{margin:0 auto 16px;max-width:44ch}
/* the top of the real certificate: same ivory, gold double rule and type; it runs off the bottom edge */
.cert-mini{all:unset;box-sizing:border-box;display:block;width:100%;max-width:400px;margin:0 auto;cursor:pointer;position:relative;background:#FBF6EA;padding:8px 8px 0;border-radius:3px;box-shadow:0 6px 22px rgba(23,39,68,.14);overflow:hidden;text-align:center}
.cert-mini:focus-visible{outline:2px solid #b99b4e;outline-offset:3px}
.cert-mini-in{display:block;border:2px solid #B08D3E;border-bottom:0;padding:3px 3px 0}
.cm-frame{display:block;border:1px solid rgba(176,141,62,.55);border-bottom:0;padding:22px 14px 46px}
.cm-brand{display:block;font:700 9px var(--sans);letter-spacing:5px;color:#8A6E30}
.cm-title{display:block;font:700 20px/1.25 'Frank Ruhl Libre',Georgia,serif;letter-spacing:1px;color:#1B3060;margin-top:8px}
.cm-rule{display:block;width:120px;height:1px;background:#B08D3E;margin:12px auto}
.cm-line{display:block;font:400 11.5px/1.5 var(--sans);color:#6B655A}
.cm-name{display:block;font:700 28px/1.2 'Frank Ruhl Libre',Georgia,serif;color:#1B3060;margin:8px 4px;overflow-wrap:anywhere}
.cm-name.cm-ph{color:#B3A583;font-weight:500;font-style:italic}
.cm-born{display:block;font:400 13px var(--sans);color:#3a3832;margin-top:10px}
.cm-hdate{display:block;font:700 19px var(--sans);color:#1B3060;margin-top:4px}
.cm-heb{display:block;font:400 24px 'Frank Ruhl Libre',Georgia,serif;color:#7A2520;margin-top:2px}
.cert-mini-fade{position:absolute;left:0;right:0;bottom:0;height:44px;background:linear-gradient(180deg,rgba(251,246,234,0),#FBF6EA 92%);pointer-events:none}
.cert-actions{display:grid;gap:10px;max-width:400px;margin:16px auto 0}
.cert-actions .primary{margin:0;width:100%}
.cert-soon{border:1px dashed #cdb777;background:transparent;color:#7a6532;border-radius:14px;min-height:46px;padding:10px 14px;font:600 13px var(--sans);cursor:pointer}
.cert-soon:hover{background:#fbf6ea}
.cert-today .cm-frame{padding-top:18px}

/* the framed certificate (certificate screen) */
.framed-card{text-align:center;border-color:#d9c48a!important}
.framed-card h2{font:500 24px var(--serif);margin:8px 0 6px;color:#172744}
.framed-card p{color:#5f5d57;font-size:14px;line-height:1.65;max-width:46ch;margin:0 auto 16px}
.framed-soon{border:1px dashed #cdb777;background:#fbf6ea;color:#7a6532;border-radius:14px;min-height:50px;padding:12px 18px;font:600 14px var(--sans);width:100%;max-width:400px;cursor:default}

/* ---- The book ---- */
.book-card{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:center;text-align:center}
.book-art{aspect-ratio:2/3;width:132px;margin:0 auto;box-sizing:border-box;padding:14px 10px;background:linear-gradient(180deg,#070E1F 0%,#12264A 64%,#1B3060 100%);border:1px solid rgba(201,168,76,.55);border-radius:3px 7px 7px 3px;color:#F3EAD3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;box-shadow:0 8px 20px rgba(13,30,56,.22)}
.book-art .ba-sun{width:70px;height:auto;margin-bottom:8px}
.book-art .ba-t{font:700 12px/1.35 'Frank Ruhl Libre',Georgia,serif;letter-spacing:2px;text-transform:uppercase}
.book-art .ba-s{font:600 10px var(--sans);letter-spacing:4px;text-transform:uppercase;color:#E8CD7E}
.book-art .ba-a{font:400 8.5px var(--sans);letter-spacing:2px;text-transform:uppercase;opacity:.75;margin-top:10px}
/* the real front cover: a flat image with a short shadow beneath it only — no glow around the book */
img.book-cover{width:132px;height:auto;margin:0 auto;display:block;border-radius:2px;box-shadow:0 1px 2px rgba(13,30,56,.3),0 12px 16px -12px rgba(13,30,56,.5)}
.book-card-lg img.book-cover,.book-card-lg .book-art{width:210px}
.book-info .verse{margin:6px 0 18px!important}
.book-info h2{font:500 26px/1.15 var(--serif);margin:8px 0 6px;color:#172744}
.book-info p{color:#5f5d57;font-size:14px;line-height:1.65;margin:0 0 16px}
.book-btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:52px;padding:12px 24px;border-radius:14px;background:linear-gradient(180deg,#E8CD7E,#C9A84C);color:#0D1E38;font:700 14px var(--sans);letter-spacing:.3px;text-decoration:none;border:0;cursor:pointer;box-shadow:0 5px 14px rgba(140,108,30,.28)}
.book-btn-lg{min-height:58px;font-size:16px;padding:14px 28px;width:100%;max-width:400px}
.book-btn-soon{background:#fbf6ea;color:#7a6532;border:1px dashed #cdb777;box-shadow:none;cursor:default;padding-left:12px;padding-right:12px;font-size:15px}
a.book-btn:hover{filter:brightness(1.05)}
a.book-btn:focus-visible{outline:2px solid #1B3060;outline-offset:3px}
@media(min-width:560px){
  .book-card{grid-template-columns:132px minmax(0,1fr);gap:26px;text-align:left}
  .book-card-lg{grid-template-columns:230px minmax(0,1fr);gap:36px}
  .book-card-lg img.book-cover,.book-card-lg .book-art{width:230px}
  .book-art,img.book-cover{margin:0}
}

/* sidebar (desktop): the book button sits after Profile, larger than a menu row */
.sidebar{overflow-y:auto}
.side-book{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:14px 4px 6px;padding:13px 16px;border:0;border-radius:10px;background:linear-gradient(180deg,#E8CD7E,#C9A84C);color:#0D1E38;font:700 15px var(--sans);cursor:pointer;text-align:left;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.side-book small{font:500 11px var(--sans);opacity:.82}
.side-book:hover{filter:brightness(1.06)}
.side-book:focus-visible{outline:2px solid #F3EAD3;outline-offset:2px}

/* tab bar (phone): six tabs share the width; the Book tab is gold */
.tabbar .tab{min-width:0!important;flex:1 1 0}
.tab-book svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tabbar .tab.tab-book{color:#E8CD7E!important;font-weight:700}

/* ===== APPOINTED updates (Nov 20, 2026) =====
   Behind the certificate (the short reading), the full report as one list,
   the next volume on the Book screen. */

/* ---- Behind the certificate: the reverse of the same sheet ---- */
#result{scroll-margin-top:76px}
.behind-cert{background:#FBF6EA;border-radius:3px;padding:8px;margin:18px auto;max-width:720px;box-shadow:0 6px 22px rgba(23,39,68,.12);scroll-margin-top:76px;text-align:left}
.behind-in{border:2px solid #B08D3E;padding:3px}
.behind-frame{border:1px solid rgba(176,141,62,.55);padding:24px 18px 22px}
.behind-cert .eyebrow{text-align:center;margin:0 0 6px}
.behind-cert h2{font:700 21px/1.25 'Frank Ruhl Libre',Georgia,serif;letter-spacing:.5px;color:#1B3060;text-align:center;margin:0 0 4px}
.bh-intro{text-align:center;font:400 13.5px/1.6 var(--sans);color:#6B655A;margin:0 auto;max-width:40ch}
.bh-rule{width:120px;height:1px;background:#B08D3E;margin:14px auto 2px}
.bh-row{padding:15px 0;border-bottom:1px solid rgba(176,141,62,.3)}
.bh-row[hidden]{display:none}
.bh-k{font:700 10px var(--sans);letter-spacing:3px;text-transform:uppercase;color:#8A6E30}
.bh-v{font:700 18px/1.3 var(--sans);color:#1B3060;margin:3px 0 0;overflow-wrap:anywhere}
.bh-v [lang=he]{font:400 21px 'Frank Ruhl Libre',Georgia,serif;color:#7A2520;margin-right:4px}
.bh-t{font:400 15.5px/1.72 var(--sans);color:#33312c;margin:6px 0 0}
.bh-q{font:italic 500 17px/1.6 var(--serif);color:#1B3060;margin:6px 0 0}
.bh-top{border-bottom:0;padding-bottom:4px}
.bh-top .bh-t{font-weight:600;color:#1B3060}
.bh-top .text-button{margin-top:8px}
.bh-actions{display:grid;gap:10px;max-width:400px;margin:18px auto 0}
.bh-actions .primary,.bh-actions .secondary{margin:0;width:100%}
.cert-jump{display:inline-block;margin:6px 0 2px}
@media(min-width:760px){.behind-frame{padding:30px 34px 26px}.bh-t{font-size:16px}}

/* ---- The full report: one list of titles, in the order the certificate prints them ---- */
.rep-head{text-align:center;margin:30px auto 10px;max-width:720px;scroll-margin-top:76px}
.rep-head h2{font:500 26px/1.2 var(--serif);color:#172744;margin:4px 0 6px;scroll-margin-top:76px}
.rep-head .intro{margin:0 auto;max-width:44ch}
.rep-list{max-width:720px;margin:0 auto}
.rep-list>section,.rep-list>.nm-block{margin-top:12px!important;margin-bottom:0!important}
.rep-list .ap-acc-t{line-height:1.45}

/* ---- The next volume on the Book screen ---- */
.book-next{margin-top:18px}
.book-next .book-info p{margin-bottom:6px}

/* ---- Join the list, on the reveal ---- */
.join-card{max-width:720px;margin:22px auto 6px;padding:20px 18px;background:#fffdf9;border:1px solid #d9c48a;border-radius:20px;text-align:center}
.join-card p{color:#5f5d57;font-size:14.5px;line-height:1.6;margin:6px auto 12px;max-width:44ch}
.join-card form{display:grid;gap:10px;max-width:400px;margin:0 auto}
.join-card input{box-sizing:border-box;width:100%;min-height:48px;padding:10px 14px;border:1px solid #cdbf9c;border-radius:12px;background:#fff;font:400 16px var(--sans);color:#172744}
.join-card input:focus-visible{outline:2px solid #b99b4e;outline-offset:2px}
.join-card .primary{margin:0;width:100%}
.join-card .notice{margin:10px 0 0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* desktop: the certificate, the reading, the report and share-and-save share one column width */
#result>.cert-teaser.cert-reveal,#result>.ap-acc-wrap{max-width:720px;margin-left:auto;margin-right:auto}
#result>.text-button{display:inline-block}

/* ---- The reading as it goes into the certificate PDF: no frame, no buttons, a little tighter ---- */
.behind-cert.bh-print{background:#fff;padding:0;box-shadow:none;border-radius:0}
.bh-print .behind-in,.bh-print .behind-frame{border:0;padding:0}
.bh-print .behind-frame{padding:6px 4px 0}
.bh-print .bh-actions,.bh-print .text-button{display:none!important}
.bh-print .bh-row{padding:12px 0}
.bh-print .bh-t{font-size:16px;line-height:1.62}

/* ---- The full report as it goes into the certificate PDF: plain upright sheets ---- */
.pdf-busy{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;background:#1B3060;color:#F3EAD3;font:600 14px var(--sans);padding:12px 20px;border-radius:999px;box-shadow:0 8px 24px rgba(23,39,68,.3)}
.pdf-report{background:#fff;color:#2b2a26;font:400 15.5px/1.62 var(--sans);text-align:left}
.pdf-report .pr-page{background:#fff;width:100%;overflow:hidden}
.pdf-report .pr-unit{padding:0 2px 11px}
.pdf-report .pr-head{padding-top:16px;border-top:1px solid rgba(176,141,62,.5);margin-top:6px}
.pdf-report .pr-page>.pr-unit:first-child{border-top:0;margin-top:0;padding-top:2px}
.pdf-report .pr-top{text-align:center;padding-bottom:16px}
.pdf-report .pr-top .eyebrow{margin:0 0 4px}
.pdf-report .pr-top h1{font:700 26px/1.2 'Frank Ruhl Libre',Georgia,serif;color:#1B3060;margin:0 0 4px}
.pdf-report .pr-top p{margin:0;color:#6B655A;font-size:14px}
.pdf-report .pr-k{font:700 10.5px var(--sans);letter-spacing:3px;text-transform:uppercase;color:#8A6E30;margin-bottom:8px}
.pdf-report h2{font:600 22px/1.25 var(--serif);color:#1B3060;margin:0 0 6px}
.pdf-report p{margin:0;color:#2b2a26;font-size:15.5px;line-height:1.62}
.pdf-report p.intro{color:#4b4a45;max-width:none}
.pdf-report .heb-date,.pdf-report [lang=he]{color:#7A2520}
.pdf-report .heb-date{font:400 26px 'Frank Ruhl Libre',Georgia,serif;margin:0}
.pdf-report .chips{margin:0 0 6px}
.pdf-report .verse,.pdf-report blockquote{margin:0;padding:6px 0 6px 14px;border:0;border-left:3px solid #C9A84C;background:none;border-radius:0;box-shadow:none;text-align:left}
.pdf-report .verse blockquote{border:0;padding:0;font:italic 500 17px/1.55 var(--serif);color:#1B3060}
.pdf-report .verse cite,.pdf-report cite{display:block;font:600 12px var(--sans);letter-spacing:1px;color:#8A6E30;font-style:normal;margin-top:4px}
.pdf-report .pairing-note,.pdf-report .src{font-size:13px;color:#6B655A;font-style:italic}
.pdf-report .decl{font-size:16px}
.pdf-report .camp-svgwrap{max-width:420px;margin:0 auto}
.pdf-report .camp-svgwrap svg{width:100%;height:auto;display:block}
.pdf-report .hist-row{padding:0 0 8px}
.pdf-report .nm-cols{display:block}
.pdf-report .nm-line{margin:0 0 6px}
.pdf-report .nm-verse{font:italic 500 15px/1.55 var(--serif);color:#1B3060;margin-top:8px}

/* ---- Time of birth on the Discover form: before or after 6 PM ---- */
.born-when{border:0;padding:0;margin:0 0 4px;min-width:0}
.born-when legend{padding:0;float:none;width:auto}
.bw-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bw-opt{position:relative;display:block;margin:0;cursor:pointer}
.bw-opt input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.bw-opt span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:4px 10px;border:1px solid #e8e3d8;border-radius:10px;background:#fff;font:600 14px var(--sans);color:#17233d;text-align:center;transition:background .15s,color .15s,border-color .15s}
.bw-opt input:checked+span{background:#1b2b49;border-color:#1b2b49;color:#fff}
.bw-opt input:focus-visible+span{outline:2px solid #b99b4e;outline-offset:2px}
.notice.bw-note{margin:8px 0 16px}

/* ---- Today: the line that says when the day turns ---- */
.tdy-turn{font-size:12px!important;letter-spacing:.3px;margin-top:6px!important;opacity:.85}

/* ---- Today's graphic: a post-sized image of the date and verse ---- */
.tdy-post .tp-row{display:flex;gap:16px;align-items:center;margin-top:12px}
.tdy-post canvas{width:116px;height:145px;flex:none;border-radius:6px;background:#FDFBF3;box-shadow:0 6px 18px rgba(23,39,68,.18)}
.tdy-post .tp-side{min-width:0;flex:1}
.tdy-post h2{font:500 22px var(--serif);margin:0 0 4px;color:#172744}
.tdy-post p{color:#77766f;font-size:13px;line-height:1.55;margin:0 0 12px}
.tdy-post .tp-btns{display:flex;flex-wrap:wrap;gap:8px}
.tdy-post .tp-btns button{width:auto;flex:1 1 110px;min-height:44px;margin:0;padding:0 16px}
.tdy-post .tp-btns button[disabled]{opacity:.55;cursor:default}
.tdy-post .text-button{margin:10px 0 0;padding:0}

/* ---- Appointed days: the date on Today in gold ---- */
.tg-hero .hero h1.day-gold{color:#E8CD7E!important;text-shadow:none!important;background:linear-gradient(180deg,#F8EBB8 0%,#E3C76E 50%,#BC9840 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

/* ---- Did you know? One finding a day from Hidden Treasures (Today) ---- */
.tdy-dyk h2{font:500 22px/1.25 var(--serif);margin:6px 0 8px;color:#172744}
.tdy-dyk .conf-chips{margin:0 0 10px}
.tdy-dyk .dyk-body{font-size:15px;line-height:1.65;color:#33302A;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}
.tdy-dyk.open .dyk-body{display:block;-webkit-line-clamp:unset;overflow:visible}
.tdy-dyk .dyk-more{display:block;margin:6px 0 0;padding:6px 0}
.tdy-dyk .dyk-more[hidden]{display:none}
.tdy-dyk .dyk-open{width:auto;min-height:44px;margin:12px 0 0;padding:0 18px}
