:root{--green:#3f5830;--dark:#26371f;--soft:#eef2e8;--paper:#fbfaf6;--ink:#23261f;--muted:#70756b;--line:#e5e6df;--gold:#ba922d;--shadow:0 14px 34px rgba(28,43,22,.09)}
*{box-sizing:border-box}html{background:#e9eae5}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--paper)}button,a{font:inherit}.app{max-width:720px;margin:auto;min-height:100vh;background:var(--paper);padding-bottom:92px}.topbar{height:70px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:rgba(251,250,246,.94);backdrop-filter:blur(20px);border-bottom:1px solid var(--line)}.brand{border:0;background:none;display:flex;align-items:center;gap:9px;text-align:left;color:var(--ink);padding:0}.brand img{width:42px;height:42px;border-radius:11px}.brand span{display:flex;flex-direction:column}.brand strong{font-size:16px}.brand small{font-size:11px;color:var(--muted)}.install{border:0;border-radius:999px;background:var(--green);color:white;padding:9px 13px;font-weight:750}.screen{display:none;padding:18px 16px 28px}.screen.active{display:block}.hero{height:200px;border-radius:25px;overflow:hidden;background:white;display:grid;place-items:center;border:1px solid var(--line);box-shadow:var(--shadow)}.hero img{width:100%;height:100%;object-fit:contain;padding:14px}.kicker{margin:24px 0 4px;text-transform:uppercase;letter-spacing:.11em;color:var(--green);font-size:11px;font-weight:850}.screen h1{font-family:Georgia,"Times New Roman",serif;font-size:34px;line-height:1.05;margin:0 0 10px}.lead{color:var(--muted);font-size:16px;line-height:1.5;margin:0 0 18px}.next{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;border:1px solid var(--line);border-radius:19px;background:white;padding:14px;box-shadow:0 8px 22px rgba(30,40,25,.05)}.date{width:58px;height:62px;border-radius:14px;background:var(--soft);display:grid;place-items:center;align-content:center;color:var(--dark)}.date span{font-size:10px;font-weight:900;letter-spacing:.08em}.date strong{font-size:24px}.next small{font-size:10px;color:var(--green);font-weight:900}.next h2{font-size:17px;margin:3px 0}.next p{margin:0;font-size:13px;color:var(--muted)}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.tile{display:flex;flex-direction:column;gap:3px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:17px;padding:15px;color:var(--ink);text-decoration:none}.tile>span{width:35px;height:35px;border-radius:11px;background:var(--soft);color:var(--dark);display:grid;place-items:center;margin-bottom:4px;font-weight:900}.tile strong{font-size:14px}.tile small{font-size:12px;color:var(--muted)}.highlight{margin-top:14px;background:#f3eedf;border:1px solid #e4d7ae;border-radius:20px;padding:19px}.highlight .kicker{margin:0 0 4px;color:#755a1c}.highlight h2{font-family:Georgia,serif;margin:0 0 7px;font-size:21px}.highlight p{color:#5c594f}.highlight button{border:0;border-radius:11px;background:var(--dark);color:white;padding:10px 13px;font-weight:750}.biglink{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;background:var(--dark);color:white;text-decoration:none;border-radius:19px;padding:15px;margin-bottom:14px}.biglink span:nth-child(2){display:flex;flex-direction:column}.biglink small{color:#ced6c9;font-size:12px}.play{width:42px;height:42px;background:white;color:var(--dark);border-radius:50%;display:grid;place-items:center}.cards{display:grid;gap:10px}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:17px}.card>small{font-size:10px;font-weight:850;color:var(--green);letter-spacing:.07em}.card h2{font-family:Georgia,serif;font-size:20px;margin:5px 0}.card p{color:var(--muted);margin:0}.schedule>div{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:12px 0;border-top:1px solid var(--line)}.schedule>div:first-child{border-top:0}.schedule span{font-weight:800;color:var(--dark)}.schedule small{grid-column:1/-1;color:var(--muted)}.event{display:grid;grid-template-columns:62px 1fr;gap:13px;background:#faf6e9;border:1px solid #e0d4af;border-radius:18px;padding:14px;margin-top:12px}.event-date{border-radius:13px;background:var(--soft);display:grid;place-items:center;align-content:center;color:var(--dark)}.event-date span{font-size:9px;font-weight:900}.event-date strong{font-size:23px}.event h2{font-size:17px;margin:3px 0}.event p{font-size:13px;color:var(--muted);margin:0}.actions{display:flex;gap:8px;flex-wrap:wrap}.primary,.secondary{display:inline-flex;padding:10px 13px;border-radius:11px;text-decoration:none;font-weight:750}.primary{background:var(--green);color:white}.secondary{background:white;border:1px solid var(--line);color:var(--dark)}.verse{background:var(--dark);color:white;border-radius:20px;padding:21px;margin-top:12px}.verse p{font-family:Georgia,serif;font-size:20px;line-height:1.4;margin:0 0 10px}.verse strong{color:#d8be6f;font-size:12px}.nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(720px,100%);display:grid;grid-template-columns:repeat(4,1fr);z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(20px);border-top:1px solid var(--line);padding:7px 8px calc(7px + env(safe-area-inset-bottom))}.nav button{border:0;background:none;color:#858a80;display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px}.nav button span{font-size:20px}.nav button small{font-size:10px}.nav button.active{color:var(--dark);font-weight:850}dialog{width:min(92%,430px);border:0;border-radius:22px;padding:20px;box-shadow:0 30px 70px rgba(0,0,0,.22);color:var(--ink)}dialog::backdrop{background:rgba(0,0,0,.35);backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;font-size:19px}.dialog-head button{border:0;background:var(--soft);width:34px;height:34px;border-radius:50%;font-size:22px}.dialog-head+div{color:var(--muted);line-height:1.55}.dialog-head+div p{color:var(--ink);font-weight:750}.note{font-size:13px;color:var(--muted);background:var(--soft);padding:11px;border-radius:12px}@media(min-width:600px){.screen{padding-left:28px;padding-right:28px}.hero{height:300px}.grid{grid-template-columns:repeat(4,1fr)}}

/* Google Calendar */
.calendar-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 8px 22px rgba(30,40,25,.05)}
.google-calendar{display:block;width:100%;height:620px;border:0;background:#fff}
.calendar-open{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--dark);color:#fff;text-decoration:none;border-radius:14px;padding:13px 15px;font-weight:750}
.calendar-open span{font-size:20px}
@media(max-width:480px){.agenda-screen{padding-left:10px;padding-right:10px}.agenda-screen>.kicker,.agenda-screen>h1,.agenda-screen>.lead{margin-left:6px;margin-right:6px}.google-calendar{height:610px}}
@media(min-width:600px){.google-calendar{height:680px}}

/* Calendar-driven appointment cards */
.calendar-preview{margin-top:16px;background:#fff;border:1px solid var(--line);border-radius:19px;overflow:hidden;box-shadow:0 8px 22px rgba(30,40,25,.05)}
.calendar-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 10px}
.calendar-preview-head small{font-size:10px;color:var(--green);font-weight:900;letter-spacing:.08em}
.calendar-preview-head h2{font-size:18px;margin:3px 0 0}
.calendar-preview-head button{border:0;background:var(--soft);color:var(--dark);border-radius:10px;padding:9px 11px;font-weight:800}
.home-calendar{height:280px;border-top:1px solid var(--line)}
.button-reset{border:0;cursor:pointer}
@media(max-width:480px){.home-calendar{height:300px}}

/* Embedded videos retain a usable minimum height on phones. */
.video-frame{display:block;width:100%;aspect-ratio:16/9;min-height:200px;border:0;border-radius:12px;background:#111;margin:12px 0}
.video-section h3,.video-card h2{overflow-wrap:anywhere}
.video-card{margin:16px 0}.video-card time{font-size:.85rem;color:#596454}
#refresh-videos{margin-bottom:12px}.video-status{font-size:.9rem}

/* EBBC original artwork, framed in warm ivory and olive. */
.hero{height:auto;min-height:250px;display:flex;flex-direction:column;justify-content:center;gap:22px;padding:26px 20px 24px;background:linear-gradient(145deg,#fffef9 0%,#f7f5e9 65%,#edf1e4 100%);border:1px solid #e3e2d2;border-top:3px solid #ba922d;border-radius:24px;box-shadow:0 12px 30px rgba(48,64,33,.07)}
.hero img{display:block;width:min(100%,470px);height:auto;object-fit:contain;padding:0;flex:none}
.hero-location{color:#596344;font-size:9px;font-weight:700;letter-spacing:.19em;text-align:center}
.hero-signature{color:#536047;font-family:Georgia,"Times New Roman",serif;font-size:14px;line-height:1.5;text-align:center;padding-top:15px;border-top:1px solid #d9d7bd;width:100%;max-width:350px}
@media(min-width:600px){.hero{min-height:330px;padding:30px 38px;gap:24px}.hero-location{font-size:10px}.hero-signature{font-size:16px}}

/* Prayer requests and five accessible bottom navigation destinations. */
.nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.nav button{min-height:44px;min-width:0}
.prayer-form{display:flex;flex-direction:column;gap:12px}
.prayer-form label{font-weight:700;font-size:15px}
.prayer-form label span{font-weight:400;color:var(--muted);font-size:13px}
.prayer-form input,.prayer-form textarea{width:100%;font:inherit;font-size:16px;line-height:1.5;color:var(--ink);background:var(--paper);border:1px solid #b7beae;border-radius:12px;padding:12px}
.prayer-form textarea{resize:vertical;min-height:170px}
.prayer-form input:focus-visible,.prayer-form textarea:focus-visible,.nav button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.prayer-form .prayer-help{font-size:13px;line-height:1.55;margin:0 0 6px}
.prayer-help a{color:var(--green);overflow-wrap:anywhere}
.prayer-form button{justify-content:center;min-height:48px}
#prayer-status{font-size:14px;line-height:1.5}

.nav{grid-template-columns:repeat(6,minmax(0,1fr))}
.daily-entry{margin-top:16px}.daily-entry .primary{margin-top:16px}
.daily-entry p{line-height:1.6}.resource-note{font-size:13px;line-height:1.6;color:var(--muted);margin-top:12px!important}
.podcast-heading{margin:28px 0 16px}.podcast-heading h2{font:26px Georgia,serif;margin:6px 0}.podcast-heading p{line-height:1.5}
.podcast-card audio{display:block;width:100%;margin-top:14px}.podcast-card h3{font:21px Georgia,serif;line-height:1.3;margin:8px 0;overflow-wrap:anywhere}.podcast-card time{font-size:12px;color:var(--muted)}
#podcast-status{font-size:14px;line-height:1.5}.resource-note a{color:var(--green)}

/* Seven separate sections, readable labels on narrow screens. */
.nav{display:flex;overflow-x:auto;justify-content:space-between;scrollbar-width:thin;overscroll-behavior-x:contain}
.nav button{flex:1 0 70px}.nav button small{white-space:nowrap}.nav button[data-go="devotional"]{flex-basis:82px}
.meditation-frame{display:block;width:100%;height:72vh;min-height:480px;border:1px solid var(--line);border-radius:14px;background:#fff;margin:16px 0}
.church-hours,.faith-section{margin-top:16px}.church-hours .secondary{margin-top:12px}
.faith-article{border-top:1px solid var(--line);margin-top:12px}.faith-article summary{padding:16px 0;cursor:pointer;font-weight:700;line-height:1.4}.faith-article p{font-size:16px;line-height:1.75;margin:0 0 16px;overflow-wrap:anywhere}
.faith-article summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:360px){.church-hours .schedule>div{grid-template-columns:1fr}}

.podcast-logo{display:block;width:min(100%,350px);height:auto;margin:20px auto;border-radius:20px}
.meditation-reading{margin:16px 0}.meditation-reading h2{font-size:26px;line-height:1.25;margin:12px 0 18px}.meditation-reading time{color:var(--muted);font-size:14px}
#meditation-text p{font-family:Georgia,serif;font-size:19px;line-height:1.8;margin:0 0 18px;color:var(--ink);overflow-wrap:anywhere}
#meditation-audio{width:100%;margin:0 0 20px}#meditation-content[hidden],#meditation-audio[hidden]{display:none}
