@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@500;600;700;800&display=swap");
:root{--paper:#f7f5f0;--card:#fffefa;--sage:#e3e6e0;--blue:#7e93ab;--taupe:#827974;--ink:#393f4a;--line:#deded8;--muted:#646b70}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.65 system-ui,-apple-system,Segoe UI,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #486d8c;outline-offset:3px}a{color:#375b77}h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.18}h1{font-size:clamp(2.4rem,6vw,4.3rem);margin:.35em 0}h2{font-size:2.1rem;margin:.3em 0}h3{font-size:1.45rem;margin:.25em 0}p{margin:.75em 0}header{border-bottom:1px solid var(--line);background:var(--card)}.wrap{width:min(100% - 36px,1040px);margin:auto}.top{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:86px}.brand{font-family:Georgia,serif;font-size:1.2rem;line-height:1.15;text-decoration:none;color:var(--ink);max-width:260px}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.83rem;font-weight:700;color:var(--taupe)}nav{display:flex;flex-wrap:wrap;gap:10px}.navbtn,.btn,.chip{border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);padding:10px 16px;min-height:44px}.navbtn[aria-current=page],.chip.active{background:var(--sage);border-color:#c3c9bf}.btn.primary{background:var(--ink);color:white;border-color:var(--ink)}.btn:hover,.navbtn:hover,.chip:hover{border-color:var(--taupe)}main{padding:30px 0 70px}.hero{padding:42px 0 30px;max-width:790px}.hero p{max-width:600px;font-size:1.13rem}.hero-art{height:150px;border-radius:22px;background:linear-gradient(145deg,#d7ddd6 0%,#aebfb9 38%,#879eaa 68%,#e8e3d9 100%);position:relative;overflow:hidden;margin-bottom:25px}.hero-art:after{content:"";position:absolute;inset:30% -10% -80%;border-radius:50% 50% 0 0;background:linear-gradient(130deg,#dfe2d9,#b5c0b3);transform:rotate(-7deg)}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:clamp(22px,4vw,38px);margin:18px 0;box-shadow:0 7px 25px #393f4a08}.reading{max-width:740px}.scripture{color:var(--taupe);font-size:.95rem}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.deep{background:#f0f1ec;border-radius:14px;padding:20px;margin-top:18px}.deep h3{margin-top:0}.topics{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.grid .card{margin:0}.muted{color:var(--muted)}.small{font-size:.9rem}.empty{padding:35px;background:var(--sage);border-radius:15px}label{display:block;font-weight:650;margin:18px 0 5px}input,textarea,select{width:100%;background:white;border:1px solid #a9ada9;border-radius:9px;padding:12px;color:var(--ink)}textarea{min-height:110px;resize:vertical}.hint{font-size:.85rem;color:var(--muted);margin:3px 0 10px}.notice{padding:14px 17px;border-radius:10px;background:var(--sage);margin:16px 0}.warning{background:#f7e9db}.footer{border-top:1px solid var(--line);padding:30px 0;font-size:.86rem;color:var(--muted)}.hidden{display:none!important}.flex{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.admin-list{display:grid;gap:10px}.admin-item{padding:15px;border:1px solid var(--line);border-radius:10px;display:flex;justify-content:space-between;gap:12px;align-items:center}.reading p{white-space:pre-line}body.large{font-size:20px}body.dark{--paper:#20282b;--card:#2a3335;--sage:#394743;--ink:#f0eee8;--line:#4d5959;--taupe:#c6b8a6;--muted:#c0c9c8}body.dark input,body.dark textarea,body.dark select{background:#283234;color:var(--ink)}body.dark .deep{background:#34403d}body.dark .btn.primary{background:#dbe3df;color:#20282b}body.dark a{color:#bed7ed}body.dark .warning{background:#534437}@media(max-width:650px){.top{display:block;padding:18px 0}.brand{display:block;margin-bottom:16px}nav{gap:5px}.navbtn{padding:8px 12px;font-size:.87rem}.hero{padding-top:18px}.hero-art{height:115px}.card{padding:22px}main{padding-top:15px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Version 4.4: Reflection button uses the sage theme accent */
.btn.reflection-btn{background:var(--sage);color:var(--ink);border-color:var(--sage);font-weight:600}
.btn.reflection-btn:hover{filter:brightness(.96);border-color:var(--taupe)}
.btn.reflection-btn:focus-visible{outline:3px solid #486d8c;outline-offset:3px}

/* Foggy mountain logo in public header */
header .brand{display:block;flex:0 1 auto;max-width:none;line-height:0}
header .header-logo{display:block;width:clamp(138px,20vw,215px);height:auto;max-width:100%}
header .top{min-height:112px}
@media(max-width:540px){header .top{gap:8px;min-height:92px}header .header-logo{width:clamp(125px,34vw,175px)}header nav{gap:3px}header .navbtn{padding:8px 10px;font-size:.85rem}}

/* Header correction: compact logo and plain-text navigation */
header .top{display:flex;align-items:center;justify-content:space-between;min-height:76px;gap:12px;padding:7px 0}
header .brand{display:block;flex:0 0 auto;line-height:0;margin:0;max-width:none}
header .header-logo{display:block;width:132px;max-width:100%;height:auto}
header nav{display:flex;align-items:center;flex-wrap:wrap;gap:20px}
header .navbtn,header .navbtn[aria-current=page]{appearance:none;background:none;border:0;border-radius:0;box-shadow:none;padding:4px 0;min-height:0;color:var(--ink);font-size:.92rem;font-weight:500;text-decoration:none}
header .navbtn:hover{background:none;border:0;text-decoration:underline;text-underline-offset:5px}
header .navbtn[aria-current=page]{text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--taupe)}
@media(max-width:650px){header .top{display:flex;padding:8px 0;gap:8px;min-height:68px}header .brand{margin:0}header .header-logo{width:108px}header nav{gap:12px}header .navbtn,header .navbtn[aria-current=page]{font-size:.8rem;padding:3px 0}}
@media(max-width:380px){header .header-logo{width:94px}header nav{gap:9px}header .navbtn,header .navbtn[aria-current=page]{font-size:.76rem}}

/* Homepage refresh: remove decorative block and soften the main heading */
.hero-art{display:none!important}
.hero h1{font-family:"Nunito Sans",system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:700;letter-spacing:-.035em;line-height:1.15}

/* Table of contents homepage: compact, accessible, and mobile friendly */
.home-hero{max-width:810px;padding-bottom:22px}.home-hero h1{font-size:clamp(2.05rem,5.5vw,3.65rem)}
.home-topics{margin:4px 0 50px}.home-section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:15px}.home-section-heading h2{margin:6px 0}.home-all-link{border:0;background:none;color:var(--ink);padding:7px 0;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.home-topic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:11px}
.home-topic{position:relative;min-height:104px;padding:19px 33px 16px 18px;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:14px;color:var(--ink);display:flex;flex-direction:column;justify-content:center;gap:7px;cursor:pointer;box-shadow:0 4px 15px #393f4a06}
.home-topic:hover{border-color:var(--taupe);background:var(--sage)}.home-topic-title{font-family:"Nunito Sans",system-ui,sans-serif;font-weight:750;font-size:1.06rem;line-height:1.2}.home-topic-count{color:var(--muted);font-size:.75rem}.home-topic-arrow{position:absolute;right:15px;top:16px;color:var(--taupe)}.home-reading{margin-top:30px}.home-more{margin-top:40px}
@media(max-width:540px){.home-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.home-topic{padding:15px 22px 13px 12px;min-height:106px}.home-topic-title{font-size:.94rem}.home-topic-count{font-size:.7rem}.home-topic-arrow{right:8px;top:10px}.home-hero{padding-top:25px}}

/* Homepage simplicity + consistent heading typography */
h1,h2,h3,.home-topic-title,.card h2,.card h3,.reading h2,.reading h3{font-family:"Nunito Sans",system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:700;letter-spacing:-.025em;line-height:1.2}
.home-topics{margin:0 0 38px;max-width:680px}
.home-topics h2{margin:8px 0 4px}
.home-topics p{margin:4px 0 16px;color:var(--muted)}
.home-explore-button{background:var(--sage);border-color:var(--line);font-weight:750;padding:11px 20px}
.home-explore-button:hover{border-color:var(--taupe);filter:brightness(.98)}
body.dark .home-explore-button{background:var(--sage);color:var(--ink)}

/* Reading progress is stored privately on this device/browser. */
.read-badge{display:inline-block;font-size:.8rem;color:#526b5d;margin:.25rem 0 .5rem;font-weight:700}
.read-toggle[aria-pressed="true"]{border-color:#799786;background:rgba(121,151,134,.12)}

/* Reading History navigation and cards */
.read-badge{font-variant-numeric:tabular-nums}
@media(max-width:650px){header nav{gap:10px}header .navbtn,header .navbtn[aria-current=page]{font-size:.76rem}}
@media(max-width:400px){header .top{flex-wrap:wrap}header nav{width:100%;justify-content:space-between;gap:6px}}

/* Add space beneath the Today's Pick banner */
.todays-pick-banner {
  margin-bottom: 36px;
}

/* Make the Day and Topic label more prominent */
.home-reading .eyebrow,
.home-reading .devotional-meta {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}

.whdc-author-credit{margin:1.7rem 0 .6rem;padding-top:1rem;border-top:1px solid rgba(108,125,110,.22);font-size:.84rem;color:var(--muted,#66736b);text-align:center;letter-spacing:.01em}

/* Compact featured banner on Devotional of the Day page */
.today-featured-heading{margin:0 0 1rem;text-align:center}
.today-featured-banner{display:block;width:100%;max-width:650px;height:auto;margin:0 auto;border-radius:14px}
@media(max-width:650px){.today-featured-heading{margin-bottom:.75rem}.today-featured-banner{max-width:100%;border-radius:12px}}

/* Published devotional preview uses the actual reader and its styles. */
body.whdc-published-preview .hero,body.whdc-published-preview main.wrap>h2,body.whdc-published-preview main.wrap>.grid{display:none!important}
body.whdc-published-preview .reading{margin-top:22px}

/* Main Scripture is centered within the short devotional card. */
.whdc-main-verse{text-align:center;max-width:640px;margin:0 auto 1.8rem;padding:0.35rem 0 0.9rem;}
.whdc-main-verse p{text-align:center!important;white-space:normal;}
.whdc-main-verse-reference{margin-top:0.55rem;color:var(--muted);}

/* Home announcement: hidden elements must not reserve any space. */
.whdc-announcement{box-sizing:border-box;max-width:960px;margin:0 auto 28px;padding:clamp(20px,4vw,38px);background:#7f9991;color:#fff;border-radius:14px;box-shadow:0 8px 22px rgba(45,67,62,.10);text-align:center}
.whdc-announcement[hidden]{display:none!important}
.whdc-announcement h2{color:#fff;margin:0 0 14px;font-size:clamp(1.5rem,3vw,2.1rem);letter-spacing:.04em}
.whdc-announcement p{color:#fff;line-height:1.75;margin:0 0 12px}
.whdc-announcement p:last-child{margin-bottom:0}

/* Announcement formatting controls in Admin Dashboard. */
.whdc-format-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
.whdc-format-toolbar button{min-width:38px;padding:6px 12px}
.whdc-announcement strong{font-weight:700}
.whdc-announcement em{font-style:italic}

/* Devotional Scripture in Context: Bible Reader-inspired continuous reading */
.whdc-context-passage + .whdc-context-passage{margin-top:2rem;padding-top:1.4rem;border-top:1px solid var(--line)}
.whdc-context-passage h4{font:700 1.1rem "Nunito Sans",system-ui,sans-serif;color:var(--ink);margin:0 0 .8rem}
.whdc-context-text{font-family:inherit;font-size:inherit;line-height:inherit;letter-spacing:inherit}
.reading .whdc-context-text p{margin:0 0 1.1em;white-space:normal}
.whdc-context-verse{font:normal .61em system-ui,sans-serif;vertical-align:super;color:#758981;margin-right:.26em;user-select:none}
.whdc-context-chapter{display:inline-block;font:700 .82em system-ui,sans-serif;color:#637f75;background:#edf3ee;border-radius:5px;padding:0 .4em;margin:0 .35em 0 .15em}
body.dark .whdc-context-chapter{background:#3c514b;color:#e1eee7}
body.dark .whdc-context-verse{color:#b1c8be}

/* Reader preferences */
.reading .card>p,.reading .card>.whdc-main-verse,.reading .deep p,.reading .whdc-context-text{font-size:calc(1rem * var(--whdc-reading-scale,1));line-height:1.7}
.whdc-reading-settings fieldset{border:0;padding:0;margin:20px 0}
.whdc-reading-settings legend{font-weight:700;margin-bottom:8px}
.whdc-reading-settings .whdc-appearance-option{display:flex;align-items:center;gap:10px;font-weight:400;margin:10px 0}
.whdc-reading-settings input[type=radio]{width:auto;accent-color:#738f85}
.whdc-reading-settings output{min-width:54px;text-align:center;font-variant-numeric:tabular-nums}
.whdc-reading-settings button:disabled{opacity:.45;cursor:not-allowed}
body.dark .whdc-nav,body.dark .whdc-nav .navbtn,body.dark .whdc-nav .navbtn:nth-child(even){background:#2a3335;color:#f0eee8}
body.dark .whdc-nav .navbtn:hover,body.dark .whdc-nav .navbtn:focus-visible,body.dark .whdc-nav .navbtn[aria-current="page"]{background:#50665e;color:#fff}

/* Live Settings text size sample */
.whdc-reading-preview{margin-top:16px;padding:15px 18px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.whdc-reading-preview .whdc-preview-label{font-size:.85rem}
.whdc-reading-preview #readingPreviewText{font-family:inherit;line-height:1.7;margin:8px 0 0;font-size:100%;overflow-wrap:anywhere}

/* Keep the public app header visible while scrolling. */
body > #app > header{position:sticky;top:0;z-index:1100;isolation:isolate;}

/* Mobile accessibility improvements */
html{scroll-padding-top:105px}body{overflow-wrap:break-word}img,video,svg{max-width:100%}button,a,input,select,textarea{touch-action:manipulation}header .whdc-menu-button{min-width:44px;min-height:44px}header .whdc-nav .navbtn{min-height:44px}header .whdc-nav .navbtn:focus-visible{outline:3px solid #284f67;outline-offset:-3px}.reading,.card,.deep{min-width:0}.reading p,.reading .whdc-context-text{overflow-wrap:anywhere}@media(max-width:650px){.actions .btn,.actions button{min-height:44px}.card{max-width:100%}}

/* Mobile app uses the five-item bottom navigation instead of the top header.
   This applies only to the main devotional app; desktop and backend remain unchanged. */
@media (max-width: 650px) {
  body > #app > header { display: none !important; }
  html { scroll-padding-top: 16px; }
}

/* Notification preferences: compact, touch-friendly layout */
.whdc-notification-prefs{min-width:0;max-width:100%;box-sizing:border-box;padding:16px;border:1px solid var(--border,#d9dbd6);border-radius:12px}
.whdc-notification-prefs legend{padding:0 6px;max-width:100%}
.whdc-notification-choice{display:flex;align-items:center;gap:10px;margin:12px 0;font-weight:600;line-height:1.4}
.whdc-notification-choice input{flex:none;margin:0;width:20px;height:20px}
.whdc-reminder-label{display:block;margin:18px 0 6px;font-weight:600}
.whdc-notification-prefs .whdc-reminder-time{display:block;width:100%;max-width:260px;box-sizing:border-box;margin:0;padding:8px 12px}
.whdc-reminder-days-title{margin:16px 0 8px}
.whdc-reminder-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;max-width:440px}
.whdc-reminder-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;padding:6px 0;cursor:pointer;font-size:13px;line-height:1.2;text-align:center}
.whdc-reminder-day input{width:20px;height:20px;margin:0;flex:none}
.whdc-notification-actions{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:600px){
 .whdc-notifications{min-width:0;padding:16px!important;box-sizing:border-box}
 .whdc-notifications #pushEnable{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
 .whdc-notification-prefs{padding:12px 10px}
 .whdc-notification-prefs legend{font-size:1rem}
 .whdc-notification-choice{font-size:.95rem;gap:9px}
 .whdc-reminder-days{max-width:100%;gap:2px}
 .whdc-reminder-day{font-size:12px;padding:5px 0}
 .whdc-notification-actions{flex-direction:column;align-items:stretch}
 .whdc-notification-actions .btn{width:100%;max-width:100%;white-space:normal}
}


/* WHDC dark appearance accessibility: maintain legibility on mobile and desktop.
   Only applies when the app has enabled its dark appearance. */
body.dark { color-scheme:dark; --text:#f0eee8; --border:#62706d; }
body.dark .card,body.dark .whdc-settings-collapsible,body.dark .whdc-reading-preview,
body.dark details,body.dark fieldset { color:var(--ink); border-color:var(--line); }
body.dark .whdc-settings-collapsible>summary { color:var(--ink); background:var(--card); }
body.dark .whdc-settings-collapsible[open]>.card { background:var(--card); color:var(--ink); }
body.dark .muted,body.dark .small.muted,body.dark .help,
body.dark .whdc-preview-label { color:#cbd4d1; }
body.dark input:not([type=checkbox]):not([type=radio]),body.dark textarea,body.dark select {
  background:#263234; color:#f4f4ef; border-color:#81938e; -webkit-text-fill-color:#f4f4ef;
}
body.dark input::placeholder,body.dark textarea::placeholder { color:#bfcac7; opacity:1; }
body.dark input[type=checkbox],body.dark input[type=radio] { accent-color:#a7c5b8; }
body.dark button:not(.primary):not(.whdc-alert-bell),body.dark .btn:not(.primary) { border-color:#758782; }
body.dark button:disabled,body.dark .btn:disabled { opacity:.65; }
body.dark .whdc-announcement { background:#34403d; color:#f0eee8; border-color:#6b8076; }
body.dark .whdc-announcement h2,body.dark .whdc-announcement p { color:#f0eee8; }
body.dark .read-badge,body.dark .read-toggle[aria-pressed=true] { color:#f0eee8; }
body.dark .whdc-context-text,body.dark .whdc-main-verse,body.dark .deep,
body.dark .reading,body.dark .whdc-reading-preview { color:var(--ink); }
body.dark .whdc-alert-panel { background:#fff; color:#111; color-scheme:light; }
body.dark .whdc-alert-panel a,body.dark .whdc-alert-panel button,
body.dark .whdc-alert-panel .whdc-alert-row { color:#111; }
body.dark .whdc-alert-panel button { background:#fff; border-color:#b7b7b7; }
body.dark .whdc-alert-panel .muted { color:#454545; }
body.dark a:focus-visible,body.dark button:focus-visible,
body.dark input:focus-visible,body.dark select:focus-visible { outline-color:#c5e2fa; }

/* Keep the logo and notification trigger visible against dark header surfaces. */
body.dark header .brand:has(.header-logo){background:#fffefa;border-radius:9px;padding:5px 7px;display:inline-flex;align-items:center}
body.dark .whdc-alert-wrap{background:#fffefa!important;color:#202c2a!important;border-color:#b6c4be!important}
body.dark .whdc-alert-bell,body.dark .whdc-alert-bell svg{color:#202c2a!important;stroke:#202c2a!important;opacity:1!important}
body.dark .whdc-alert-panel{background:#fff!important;color:#111!important}

/* Accessible, responsive homepage feature accordions */
.whdc-home-features{max-width:850px;margin:2rem auto 2.5rem}.whdc-home-features>h2{margin-bottom:.4rem}.whdc-home-features>p{margin-top:0;margin-bottom:1.3rem}.whdc-home-feature{background:var(--card,#fff);color:var(--text,inherit);border:1px solid var(--border,#d5dbd8);border-radius:13px;margin:0 0 11px;overflow:hidden}.whdc-home-feature>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;cursor:pointer;list-style:none;min-height:52px}.whdc-home-feature>summary::-webkit-details-marker{display:none}.whdc-home-feature>summary:focus-visible{outline:3px solid #7e93ab;outline-offset:-3px}.whdc-home-feature-label{display:flex;flex-direction:column;gap:4px}.whdc-home-feature-label strong{font-size:1.05rem}.whdc-home-feature-label small{font-size:.9rem;opacity:.76}.whdc-home-feature-chevron{font-size:1.6rem;line-height:1;transition:transform .15s ease}.whdc-home-feature[open] .whdc-home-feature-chevron{transform:rotate(180deg)}.whdc-home-feature-body{padding:4px 20px 18px;border-top:1px solid var(--border,#d5dbd8)}.whdc-home-feature-body p{margin:13px 0 0}.home-closing{max-width:850px;margin:2.5rem auto;padding:0 4px}@media(max-width:600px){.whdc-home-feature>summary{padding:14px 15px}.whdc-home-feature-body{padding:4px 15px 16px}}@media(prefers-reduced-motion:reduce){.whdc-home-feature-chevron{transition:none}}

/* Accessible, compact homepage choices and a prominent mobile Our Choice action. */
.whdc-home-start{max-width:850px;margin:1.5rem auto 2rem}
.whdc-home-start .whdc-start-actions{display:flex;flex-wrap:nowrap;align-items:stretch;gap:7px;margin-top:12px}
.whdc-home-start .whdc-start-actions .btn{flex:1 1 0;min-width:0;padding:9px 7px;font-size:clamp(10px,2.5vw,13px);line-height:1.2;white-space:nowrap;text-align:center;display:inline-flex;justify-content:center;align-items:center}
.whdc-our-choice-row{display:flex;justify-content:center;margin:0 0 18px}
.whdc-our-choice-button{min-width:min(260px,100%);padding:12px 22px;font-weight:700}
@media(max-width:600px){.whdc-home-start .whdc-start-actions{gap:5px}.whdc-home-start .whdc-start-actions .btn{padding:10px 3px;font-size:clamp(9px,2.7vw,12px)}.whdc-our-choice-row{justify-content:stretch}.whdc-our-choice-button{width:100%}}


/* WHDC refined warm-charcoal dark mode (light mode remains unchanged). */
body.dark{
  color-scheme:dark;
  --paper:#171c22;
  --card:#232b34;
  --sage:#303b3a;
  --blue:#a8b7c9;
  --taupe:#A2B3A5;
  --ink:#e9e8e3;
  --line:#465362;
  --muted:#bdc6cf;
  --text:#e9e8e3;
  --border:#465362;
  background:var(--paper);
  color:var(--ink);
}
body.dark header,body.dark .whdc-nav{
  background:#202832;
  border-color:var(--line);
}
body.dark .card,body.dark .whdc-settings-collapsible,body.dark details,body.dark fieldset,
body.dark .whdc-reading-preview{
  background:var(--card);
  color:var(--ink);
  border-color:var(--line);
}
body.dark .deep,body.dark .whdc-announcement,
body.dark .whdc-context-chapter{background:#2d3742;color:var(--ink);border-color:var(--line)}
body.dark .muted,body.dark .small.muted,body.dark .help,
body.dark .whdc-preview-label{color:#bdc6cf}
body.dark a{color:#b9d3ed}
body.dark a:hover{color:#e1eaf5}
body.dark .whdc-context-verse{color:#A2B3A5}
body.dark .whdc-main-verse{color:#e9e8e3}
body.dark input:not([type=checkbox]):not([type=radio]),body.dark textarea,body.dark select{
 background:#2d3742;color:#f0efec;-webkit-text-fill-color:#f0efec;border-color:#657384;
}
body.dark input::placeholder,body.dark textarea::placeholder{color:#c3cbd2}
body.dark input[type=checkbox],body.dark input[type=radio]{accent-color:#A2B3A5}
body.dark .btn.primary{background:#A2B3A5;color:#171c22;border-color:#A2B3A5}
body.dark .btn.primary:hover{background:#A2B3A5;color:#171c22}
body.dark button:not(.primary):not(.whdc-alert-bell),body.dark .btn:not(.primary){
 border-color:#657384;
}
body.dark .btn.reflection-btn,body.dark .home-explore-button{
 background:#33423e;color:#f0efec;border-color:#60766d;
}
body.dark .whdc-nav .navbtn,body.dark .whdc-nav .navbtn:nth-child(even){
 background:#202832;color:#d4dce3;
}
body.dark .whdc-nav .navbtn:hover,body.dark .whdc-nav .navbtn:focus-visible,
body.dark .whdc-nav .navbtn[aria-current="page"]{
 background:#35404a;color:#A2B3A5;
}
body.dark :is(button,a,input,select,textarea):focus-visible{outline-color:#A2B3A5}
body.dark .whdc-alert-panel{background:#fff!important;color:#111!important;color-scheme:light}


/* Unified devotional section buttons: match Read Scripture in both themes. */
#readScripture.btn, #deeper.btn, #reflectionToggle.btn {
  background:var(--card);
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow:none;
}
#readScripture.btn:hover, #deeper.btn:hover, #reflectionToggle.btn:hover {
  border-color:var(--blue);
  background:var(--sage);
}
#readScripture.btn:focus-visible, #deeper.btn:focus-visible, #reflectionToggle.btn:focus-visible {
  outline:2px solid var(--blue);
  outline-offset:2px;
}
body.dark #readScripture.btn, body.dark #deeper.btn, body.dark #reflectionToggle.btn {
  background:#2D3742;
  color:#E9E8E3;
  border-color:#657384;
}
body.dark #readScripture.btn:hover, body.dark #deeper.btn:hover, body.dark #reflectionToggle.btn:hover {
  background:#35453f;
  border-color:#A2B3A5;
}
/* Shared mobile bottom navigation follows the same charcoal / sage palette. */
@media(max-width:800px){
 body.dark .whdc-nav{
   background:#202832!important;
   border-top:1px solid #465362!important;
   color:#E9E8E3!important;
 }
 body.dark .whdc-nav .navbtn,
 body.dark .whdc-nav .navbtn:nth-child(even){
   background:#202832!important;
   color:#D4DCE3!important;
   border-color:transparent!important;
 }
 body.dark .whdc-nav .navbtn:hover,
 body.dark .whdc-nav .navbtn:focus-visible,
 body.dark .whdc-nav .navbtn[aria-current="page"]{
   background:#35453F!important;
   color:#A2B3A5!important;
 }
 body.dark .whdc-nav .navbtn svg{
   color:inherit!important;
   stroke:currentColor!important;
 }
}

/* WHDC Accessibility preferences */
.whdc-accessibility-settings fieldset{min-width:0;max-width:100%}
.whdc-accessibility-settings .whdc-accessibility-toggle{display:flex!important;align-items:flex-start;justify-content:flex-start;gap:12px;min-width:0;max-width:100%;width:100%;font-weight:600;line-height:1.5;white-space:normal;overflow-wrap:anywhere;margin:10px 0 4px}
.whdc-accessibility-settings .whdc-accessibility-toggle input[type=checkbox]{display:block!important;flex:0 0 22px!important;width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;margin:2px 0 0!important;padding:0!important;position:static!important}
.whdc-accessibility-settings .whdc-dyslexia-controls{min-width:0}
.whdc-accessibility-settings .whdc-dyslexia-options{max-width:100%;min-width:0}
.whdc-accessibility-settings .whdc-dyslexia-options select,.whdc-accessibility-settings .whdc-dyslexia-options input[type=range]{max-width:100%;min-width:0}
html.whdc-reduce-motion *,html.whdc-reduce-motion *::before,html.whdc-reduce-motion *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
html.whdc-reduce-motion{scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
html.whdc-high-contrast body:not(.dark){--ink:#171b20;--muted:#3b424b;--line:#555f6b;--border:#555f6b}
html.whdc-high-contrast body.dark{--ink:#fff;--muted:#f0f1f2;--line:#9eabb9;--border:#9eabb9}
html.whdc-high-contrast body :is(.muted,.small.muted,.help){color:var(--muted)!important}
html.whdc-high-contrast body :is(input,textarea,select,.btn,button,fieldset){border-color:var(--line)}
html.whdc-high-contrast body.dark :is(input,textarea,select,.btn,button){color:#fff}
html.whdc-high-contrast body.dark a{color:#c7e0fa}
html.whdc-simplified-reading body .devotional-content,html.whdc-simplified-reading body .devotional-body,html.whdc-simplified-reading body .go-deeper,html.whdc-simplified-reading body .reading-content{max-width:68ch;margin-inline:auto}
html.whdc-simplified-reading body .devotional-content p,html.whdc-simplified-reading body .devotional-body p,html.whdc-simplified-reading body .go-deeper p{line-height:1.85;text-align:left;hyphens:none}
body :is(button,a,input,select,textarea,[role=button]):focus-visible{outline:3px solid #657e9b;outline-offset:3px}
body.dark :is(button,a,input,select,textarea,[role=button]):focus-visible{outline-color:#A2B3A5}
@media(pointer:coarse){.whdc-settings-collapsible summary,.whdc-accessibility-settings .whdc-accessibility-toggle{min-height:44px}.whdc-accessibility-settings input[type=checkbox]{min-height:22px}}
@media(max-width:600px){.whdc-accessibility-settings{min-width:0;width:100%;box-sizing:border-box}.whdc-accessibility-settings .whdc-dyslexia-toggle{min-width:0;max-width:100%;width:100%}}


/* Minimal, accessible audio controls: quiet outline treatment in both themes. */
#listen, #deeperListen, #scriptureListen {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  min-height:44px;
  padding:8px 13px !important;
  border:1px solid var(--border, #aab4ae) !important;
  border-radius:999px !important;
  background:transparent !important;
  color:inherit !important;
  box-shadow:none !important;
  font-size:.85rem !important;
  font-weight:600;
  line-height:1.2;
  letter-spacing:0;
  transition:background-color .15s ease,border-color .15s ease;
}
#listen:hover, #deeperListen:hover, #scriptureListen:hover {
  background:rgba(162,179,165,.14) !important;
  border-color:#A2B3A5 !important;
}
#listen:focus-visible, #deeperListen:focus-visible, #scriptureListen:focus-visible {
  outline:3px solid #A2B3A5 !important;
  outline-offset:3px;
}
#listen:disabled, #deeperListen:disabled, #scriptureListen:disabled {
  opacity:.5;cursor:not-allowed;
}
@media(prefers-reduced-motion:reduce){
  #listen,#deeperListen,#scriptureListen{transition:none}
}

/* Compact devotional narration controls */
#quoteSelectableDevotional .whdc-devotional-audio-header {
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  position:relative;min-height:48px;padding-right:0;
}
#quoteSelectableDevotional .whdc-devotional-audio-header #whdcPlayAll {
  margin-left:auto;order:10;
}
#quoteSelectableDevotional .whdc-icon-listen {
  display:inline-flex!important;align-items:center;justify-content:center;
  width:44px!important;min-width:44px!important;height:44px!important;
  min-height:44px!important;padding:0!important;border-radius:999px!important;
  font-size:0!important;line-height:1!important;white-space:nowrap;
}
#quoteSelectableDevotional .whdc-icon-listen::before {
  content:'';display:block;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 9v6h4l5 4V5L7 9H3Zm12.5-1.5a6 6 0 0 1 0 9l-1.4-1.4a4 4 0 0 0 0-6.2l1.4-1.4Zm2.8-2.8a10 10 0 0 1 0 14.6l-1.4-1.4a8 8 0 0 0 0-11.8l1.4-1.4Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
#quoteSelectableDevotional .whdc-icon-listen[data-playing="true"]::before {content:'';width:17px;height:17px;mask:none;background:currentColor;border-radius:3px;}
#quoteSelectableDevotional .whdc-icon-listen:focus-visible {outline:3px solid #A2B3A5!important;outline-offset:3px;}
#quoteSelectableDevotional .whdc-icon-listen:disabled {opacity:.5;}

/* The first speaker opens the accessible two-choice audio menu. */
#quoteSelectableDevotional .whdc-short-audio-menu[hidden]{display:none!important}
#quoteSelectableDevotional .whdc-short-audio-menu{position:absolute;z-index:30;top:calc(100% + 4px);left:0;display:flex;flex-direction:column;gap:4px;min-width:min(280px,calc(100vw - 48px));max-width:calc(100vw - 32px);padding:8px;border:1px solid var(--border, #aaa);border-radius:12px;background:var(--card, var(--surface, #fff));box-shadow:0 8px 24px #0002}
#quoteSelectableDevotional .whdc-short-audio-menu .btn{display:block;text-align:left;min-height:44px;width:100%;white-space:normal;font-size:.95rem;padding:10px 12px}
#quoteSelectableDevotional .whdc-short-audio-menu .btn:focus-visible{outline:3px solid #A2B3A5;outline-offset:1px}

/* Compact two-choice audio menu */
#quoteSelectableDevotional .whdc-short-audio-menu{min-width:148px;max-width:min(190px,calc(100vw - 32px));padding:4px;gap:0;border-radius:10px}
#quoteSelectableDevotional .whdc-short-audio-menu .btn{padding:9px 12px;font-size:.9rem;min-height:44px;white-space:nowrap}

/* Topics reading session: persistent, accessible icon-only close control. */
#whdcTopicClose{position:fixed;top:calc(env(safe-area-inset-top,0px) + 62px);right:12px;z-index:3100;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid var(--border,#b6c2ba);border-radius:50%;background:var(--card,#fff);color:var(--text,#273632);font-size:27px;line-height:1;box-shadow:0 2px 12px #0002;cursor:pointer}
#whdcTopicClose:focus-visible{outline:3px solid #A2B3A5;outline-offset:3px}
@media(min-width:768px){#whdcTopicClose{top:82px;right:24px}}

/* Home: unobtrusive, accessible share action */
.home-hero{position:relative;padding-right:60px!important}
.whdc-home-share-icon{position:absolute;right:12px;top:12px;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line,#b9c3bc);border-radius:50%;background:var(--card,#fff);color:var(--ink,inherit);cursor:pointer}
.whdc-home-share-icon:focus-visible{outline:3px solid #A2B3A5;outline-offset:3px}
@media(max-width:600px){.home-hero{padding-right:58px!important}.whdc-home-share-icon{right:8px;top:8px}}

/* Recorded narration paused/interrupted: play triangle instead of speaker. */
#quoteSelectableDevotional .whdc-icon-listen[data-paused="true"]::before{content:"";width:20px;height:20px;border-radius:0;background:currentColor;mask:none;clip-path:polygon(20% 8%,90% 50%,20% 92%)}

.whdc-resource-jump{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0}
.whdc-resource-jump a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:12px 3px;border:1px solid #aaa;border-radius:12px;text-decoration:none;color:inherit;font-size:.8rem}
.whdc-resource-jump svg{width:26px;height:26px}
.whdc-resources label{display:block;margin:14px 0 6px}
.whdc-resources input,.whdc-resources select{width:100%;padding:11px;border:1px solid #aaa;border-radius:9px;background:transparent;color:inherit}
.whdc-resource-section{scroll-margin-top:24px;margin:28px 0}
.whdc-resource-card{width:100%;text-align:left;display:flex;flex-direction:column;gap:9px;cursor:pointer;color:inherit;font:inherit}
.whdc-resource-card img,.whdc-resource-cover{width:100%;max-height:240px;object-fit:cover;border-radius:8px}
.whdc-resource-article{line-height:1.8;margin:22px 0}
@media(max-width:480px){.whdc-resource-jump{gap:5px}.whdc-resource-jump a{font-size:.7rem;padding:9px 2px}}

.whdc-book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,155px));justify-content:start;align-items:start;gap:20px 15px}
.whdc-book-tile{border:0;background:transparent;color:inherit;text-align:left;display:flex;flex-direction:column;gap:6px;padding:0;cursor:pointer;font:inherit}
.whdc-book-tile:focus-visible{outline:3px solid currentColor;outline-offset:4px}
.whdc-book-cover{width:100%;aspect-ratio:2/3;object-fit:contain;background:rgba(127,127,127,.12);border-radius:5px}
.whdc-book-placeholder{display:grid;place-items:center;font-size:40px}
.whdc-book-tile strong{font-size:.92rem;line-height:1.35}
.whdc-book-author{font-size:.85rem;opacity:.8}
.whdc-book-overlay{position:fixed;inset:0;z-index:99999;background:#0009;display:flex;justify-content:center;align-items:center;padding:15px}
.whdc-book-dialog{position:relative;box-sizing:border-box;width:min(540px,100%);max-height:calc(100dvh - 30px);overflow-y:auto;background:var(--card,#fff);color:var(--text,#273532);border-radius:14px;padding:28px 24px;box-shadow:0 18px 60px #0005}
.whdc-book-close{position:absolute;right:12px;top:8px;border:0;background:transparent;color:inherit;font-size:30px;cursor:pointer}
.whdc-book-dialog-cover{display:block;width:auto;max-width:175px;max-height:250px;object-fit:contain;margin:0 auto 20px}
.whdc-book-dialog h2{margin:0 30px 6px 0}
.whdc-book-body{line-height:1.7;margin:18px 0}
@media(max-width:420px){.whdc-book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Center book captions beneath each cover; keep the bookshelf left aligned. */
.whdc-book-grid .whdc-book-tile{text-align:center;align-items:stretch}
.whdc-book-grid .whdc-book-tile strong,.whdc-book-grid .whdc-book-author{text-align:center;display:block;width:100%}

/* Rich text controls for WHDC writing and resource editors */
.whdc-rich-toolbar{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 5px}.whdc-rich-toolbar button{font:inherit;font-size:.84rem;padding:6px 10px;border:1px solid #9baea3;border-radius:6px;cursor:pointer}.whdc-rich-preview{border:1px solid #9baea3;border-radius:8px;padding:14px;margin:8px 0 16px;line-height:1.65;overflow-wrap:anywhere}.whdc-rich-preview[hidden]{display:none}.whdc-rich-preview p{margin:0 0 .7em}

/* Desktop navigation uses the normal website font; mobile hamburger remains unchanged. */
@media(min-width:900px){
  header .whdc-header-top{width:min(100% - 36px,1200px);max-width:1200px;flex-wrap:nowrap}
  header .whdc-menu-button{display:none!important}
  header #mainMenu.whdc-nav,header #mainMenu.whdc-nav[hidden]{display:flex!important;position:static!important;visibility:visible!important;opacity:1!important;transform:none!important;box-shadow:none!important;background:transparent!important;border:0!important;padding:0!important;width:auto!important;max-width:none!important;flex:1;justify-content:flex-end;align-items:center;flex-wrap:nowrap;gap:clamp(10px,1.5vw,23px)}
  header #mainMenu .navbtn{font-family:inherit!important;font-size:clamp(.78rem,1vw,.94rem)!important;font-weight:600!important;letter-spacing:normal!important;text-transform:none!important;white-space:nowrap;border:0!important;border-radius:0!important;background:transparent!important;padding:6px 0!important;min-height:0!important;color:var(--ink)!important}
  header #mainMenu .navbtn:hover,header #mainMenu .navbtn[aria-current=page]{text-decoration:underline;text-underline-offset:5px}
  .whdc-explore-dropdown{position:relative;display:flex;align-items:center}
  .whdc-explore-dropdown-list:not([hidden]){display:flex;position:absolute;top:calc(100% + 10px);left:-18px;z-index:200;min-width:205px;padding:9px 14px;flex-direction:column;align-items:stretch;gap:2px;background:var(--card);border:1px solid var(--line);border-radius:11px;box-shadow:0 12px 35px #0002}
  header #mainMenu .whdc-explore-dropdown-list .navbtn{display:block;text-align:left;width:100%;padding:7px 5px!important}
}
@media(min-width:768px) and (max-width:899px){header #mainMenu .whdc-desktop-menu-only{display:none!important}header #mainMenu .whdc-mobile-menu-only{display:block!important}}

/* Fix desktop header: keep main links on one horizontal line. */
@media (min-width:900px){
  body #app > header > .top.whdc-header-top{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;width:min(calc(100% - 36px),1400px)!important;max-width:1400px!important}
  body #app > header #mainMenu.whdc-nav{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:clamp(10px,1.35vw,22px)!important;position:static!important;width:auto!important;min-width:0!important}
  body #app > header #mainMenu > .whdc-desktop-menu-only{display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;width:auto!important;margin:0!important}
  body #app > header #mainMenu > .whdc-mobile-menu-only{display:none!important}
  body #app > header #mainMenu .whdc-explore-dropdown-list[hidden]{display:none!important}
  body #app > header #mainMenu .whdc-explore-dropdown-list:not([hidden]){display:flex!important;flex-direction:column!important;align-items:stretch!important}
  body #app > header #mainMenu .whdc-explore-dropdown-list .whdc-explore-link{display:block!important;width:100%!important;text-align:left!important}
}

/* Center the home introduction block, keeping its text alignment unchanged. */
main.wrap > .home-hero{margin-left:auto;margin-right:auto;width:100%;}
/* Display a visible label next to the home share icon. */
.home-hero .whdc-home-share-icon{width:auto;min-width:88px;height:44px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:999px;font-size:.9rem;font-weight:600;white-space:nowrap;}
.home-hero{padding-right:110px!important;}
@media(max-width:600px){.home-hero{padding-right:104px!important;}.home-hero .whdc-home-share-icon{right:8px;top:8px;}}

/* Keep Explore uppercase in the desktop top navigation only. */
@media (min-width:900px){header #mainMenu .whdc-explore-dropdown > .navbtn{text-transform:uppercase!important}}

/* Fixed-width resource cards on desktop, even when a section has one item. */
@media (min-width:900px){
  .whdc-resources .whdc-resource-section > .grid{
    grid-template-columns:repeat(3,minmax(0,260px))!important;
    justify-content:start;
    align-items:stretch;
  }
  .whdc-resources .whdc-resource-section .whdc-resource-card{
    box-sizing:border-box;
    width:260px!important;
    min-width:0;
    height:310px;
    max-height:310px;
    overflow:hidden;
    padding:18px;
  }
  .whdc-resources .whdc-resource-card img{
    width:100%;height:115px;min-height:115px;max-height:115px;
    object-fit:cover;flex:0 0 115px;
  }
  .whdc-resources .whdc-resource-card strong{
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .whdc-resources .whdc-resource-card p{
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  }
}
/* Consistent hover and keyboard-focus feedback for all desktop top links. */
@media (min-width:900px){
  body #app > header #mainMenu > .navbtn,
  body #app > header #mainMenu > .whdc-explore-dropdown > .whdc-explore-trigger{
    border-radius:7px!important;padding:8px 10px!important;
    transition:background-color .15s ease,color .15s ease;
  }
  body #app > header #mainMenu > .navbtn:hover,
  body #app > header #mainMenu > .navbtn:focus-visible,
  body #app > header #mainMenu > .whdc-explore-dropdown > .whdc-explore-trigger:hover,
  body #app > header #mainMenu > .whdc-explore-dropdown > .whdc-explore-trigger:focus-visible,
  body #app > header #mainMenu > .whdc-explore-dropdown:has(.whdc-explore-dropdown-list:not([hidden])) > .whdc-explore-trigger{
    background:var(--sage)!important;color:var(--ink)!important;
    text-decoration:none!important;
  }
  body #app > header #mainMenu .whdc-explore-dropdown-list{
    top:100%!important;
  }
  body #app > header #mainMenu .whdc-explore-dropdown-list .navbtn:hover,
  body #app > header #mainMenu .whdc-explore-dropdown-list .navbtn:focus-visible{
    background:var(--sage)!important;color:var(--ink)!important;
    text-decoration:none!important;border-radius:6px!important;
  }
}

/* Embedded Bible: the site's own header and bottom navigation remain authoritative. */
.whdc-embedded-bible{width:100%;max-width:1200px;margin:auto}
.whdc-embedded-bible iframe{display:block;width:100%;height:calc(100dvh - 145px);min-height:650px;border:0;background:transparent}
@media(max-width:800px){.whdc-embedded-bible iframe{height:calc(100dvh - 150px);min-height:550px}}
@media(min-width:900px){
.whdc-resources .whdc-resource-section>.grid{grid-template-columns:repeat(3,minmax(0,260px))!important;justify-content:start!important}
.whdc-resources .whdc-resource-section .whdc-resource-card{width:260px!important;height:390px!important;max-height:390px!important;box-sizing:border-box;overflow:hidden}
.whdc-resources .whdc-resource-card strong{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.whdc-resources .whdc-resource-card .whdc-resource-description{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
}
.whdc-resource-card img{object-fit:cover}
.whdc-resource-article table{border-collapse:collapse;width:100%;display:block;overflow-x:auto}
.whdc-resource-article td,.whdc-resource-article th{border:1px solid currentColor;padding:8px 12px}
.whdc-resource-article img{max-width:100%}

/* Home page: Meet the Creator. The original image remains unchanged; the browser clips it into a circle. */
.whdc-meet-creator{display:flex;align-items:center;gap:clamp(18px,4vw,38px);max-width:850px;margin:2.5rem auto;padding:clamp(18px,3vw,30px);border-radius:18px;background:var(--card,rgba(127,127,127,.06));}
.whdc-creator-photo{width:144px;height:144px;flex:0 0 144px;object-fit:cover;object-position:center;border-radius:50%;display:block;background:transparent;}
.whdc-creator-copy{min-width:0;flex:1;}
.whdc-creator-copy h2{margin:0 0 .6rem;}
.whdc-creator-copy p{margin:0 0 1rem;line-height:1.55;}
@media(max-width:560px){.whdc-meet-creator{gap:14px;padding:18px;}.whdc-creator-photo{width:96px;height:96px;flex-basis:96px;}.whdc-creator-copy h2{font-size:1.2rem;}}

/* Share control floats above the hero content rather than narrowing its text. */
.home-hero{padding-right:inherit!important;margin-top:48px!important;position:relative}
.home-hero .whdc-home-share-icon{position:absolute!important;right:0!important;top:-48px!important;z-index:3;display:flex;gap:7px;width:auto;min-width:104px;border-radius:999px;padding:0 12px}
@media(max-width:600px){.home-hero{padding-right:16px!important;margin-top:58px!important}.home-hero .whdc-home-share-icon{top:-53px!important;right:0!important}}

/* WHDC iPhone/PWA content safe area: shared Home, Today, Explore, Settings
   and Explore subpages. Keep the separately managed Bible Reader unchanged. */
@media (max-width: 700px) {
  body #app > main.wrap {
    padding-top: calc(env(safe-area-inset-top, 0px) + 28px);
  }
  html {
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
  }
}


/* Resources listing: the main PWA uses shared/styles.css, not resources.css.
   Keep image-first cards and prevent the title from shrinking under the author. */
.whdc-resources .whdc-resource-section .whdc-resource-card > .whdc-resource-card-title{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:4!important;
  overflow:hidden!important;
  flex:0 0 auto!important;
  min-height:0!important;
  max-height:5.2em!important;
  line-height:1.3!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  font-weight:700;
  text-align:left;
}
.whdc-resources .whdc-resource-section .whdc-resource-card > img{
  flex-shrink:0!important;
}
.whdc-resources .whdc-resource-section .whdc-resource-card > .whdc-resource-card-title + span:not(.whdc-resource-short-description){
  flex:0 0 auto!important;
  text-align:left;
}
.whdc-resources .whdc-resource-section .whdc-resource-card > .whdc-resource-short-description{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:6!important;
  overflow:hidden!important;
  flex:0 1 auto!important;
  min-height:0!important;
  font-style:italic!important;
  line-height:1.45;
  text-align:left;
}
.whdc-resources .whdc-resource-section .whdc-resource-link .whdc-resource-short-description{
  font-style:italic!important;
}
