/* btw… brand layer (App Brand Spec v1, October 2026).
   Logo, type and shapes apply in every look; colors marked html[data-look="btw"] are the default look only. */

:root{--font-logo:'Urbanist',sans-serif;--font-display:'Young Serif',Georgia,serif;--font-ui:'DM Sans',system-ui,sans-serif;
  --radius-card:20px;--radius-photo:24px;--radius-bubble:18px 18px 18px 6px;--radius-reply:18px 18px 6px 18px;
  --dot-blue:#0a60a2;--dot-coral:#e56330;--dot-gold:#ebc35f;--dot-blue-dark:#6fb3ea;--dot-coral-dark:#f08a5d}
/* Young Serif has one weight: never fake a bold or an italic. */
html{font-synthesis:none}
.intro h1 em,.kids-top h1 em,.fb-head h1 em,.kc-top h1 em{font-style:normal}

/* ---------- logo ---------- */
.brand{display:flex!important;align-items:center;text-decoration:none;color:var(--ink)}
.btw-logo{display:inline-flex;flex-direction:column;gap:5px}
.btw-word{font-family:var(--font-logo);font-weight:900;font-size:40px;letter-spacing:-.055em;line-height:.82;color:var(--ink);white-space:nowrap}
.btw-dots{display:inline-flex;gap:.09em;margin-left:.07em;vertical-align:baseline}
.btw-dots i{display:inline-block;width:.15em;height:.15em;border-radius:50%;background:var(--dot-blue)}
.btw-dots i:nth-child(2){background:var(--dot-coral)}.btw-dots i:nth-child(3){background:var(--dot-gold)}
.btw-tag{font-family:var(--font-logo);font-weight:600;font-size:12px;color:var(--muted);padding-left:3px;letter-spacing:0}
aside .brand{margin:0 0 6px 6px}
.crumb-logo{display:none;text-decoration:none}
.crumb-logo .btw-word{font-size:26px}
@media(max-width:1150px){aside .btw-word{font-size:34px}}
@media(max-width:760px){
  aside .brand{display:none!important}
  .breadcrumb .crumb-home,.breadcrumb .crumb-sep,.breadcrumb #crumb{display:none}
  .crumb-logo{display:inline-block}
}
@media(min-width:761px){.breadcrumb .crumb-home{display:inline}}
/* three-dot loading / "typing" indicator */
.btw-typing{display:inline-flex;gap:6px;align-items:center}
.btw-typing i{width:9px;height:9px;border-radius:50%;background:var(--dot-blue);animation:btwPulse 1.2s infinite}
.btw-typing i:nth-child(2){background:var(--dot-coral);animation-delay:.3s}.btw-typing i:nth-child(3){background:var(--dot-gold);animation-delay:.6s}
@keyframes btwPulse{0%,60%,100%{transform:scale(.7);opacity:.45}30%{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.btw-typing i{animation:none}}

/* ---------- shapes (all looks) ---------- */
.card{border-radius:var(--radius-card);box-shadow:none}
.primary,.outline{border-radius:999px;min-height:44px;font-weight:700;padding:11px 20px}
.top-actions .primary{min-height:0}
.tabs button,.cal-views button{border-radius:999px}
dialog{border-radius:24px}
input,select,textarea{border-radius:12px}
.photo-board,.photo-board>img{border-radius:var(--radius-photo)}

/* ---------- btw… colors (default look) ---------- */
html[data-look="btw"] body{background:var(--bg);color:var(--ink)}
html[data-look="btw"] aside{background:#ffffff;border-right:1px solid var(--line)}
html[data-look="btw"] nav button{color:#4a4f57;border-radius:999px}
html[data-look="btw"] nav button:hover{background:#fbf7f0}
html[data-look="btw"] nav button.active{background:var(--primary);color:#fff;box-shadow:none}
html[data-look="btw"] .nav-group,html[data-look="btw"] .family-tag{color:#1e7b79}
html[data-look="btw"] .card{background:#fff;border:1px solid var(--line)}
html[data-look="btw"] .outline{background:#fff;color:var(--ink);border:1.5px solid #d9cdb8}
html[data-look="btw"] .outline:hover{border-color:var(--primary);color:var(--primary)}
html[data-look="btw"] .outline.chosen{background:var(--teal-tint);border-color:var(--teal);color:#155e5c}
html[data-look="btw"] .textbtn{color:var(--primary);font-weight:600}
html[data-look="btw"] .eyebrow{color:var(--teal-text);font-weight:700;letter-spacing:.14em}
html[data-look="btw"] .tabs button{background:#f3ebdd;color:var(--ink)}
html[data-look="btw"] .tabs button.active{background:var(--primary);color:#fff}
html[data-look="btw"] .task-row.done .check,html[data-look="btw"] .todo-row.done .check{background:var(--teal);border-color:var(--teal);color:#fff}
html[data-look="btw"] .check{border-color:#d9cdb8}
html[data-look="btw"] .count{background:var(--sky);color:var(--navy)}
html[data-look="btw"] .person.selected,html[data-look="btw"] .person[aria-pressed="true"]{background:#fff;border-color:#d9cdb8;color:var(--ink)}
html[data-look="btw"] .person{color:#4a4f57}
html[data-look="btw"] dialog{border-color:var(--line)}
html[data-look="btw"] input:not([type=checkbox]):not([type=radio]),html[data-look="btw"] select,html[data-look="btw"] textarea{background:#fbf7f0;border-color:#e4d8c4}
html[data-look="btw"] :focus-visible{outline:3px solid #6fb3ea;outline-offset:2px}
html[data-look="btw"] .breadcrumb b{color:var(--ink)}
html[data-look="btw"] .dinner{background:var(--coral-tint);border-color:#f3cdb9}
html[data-look="btw"] .dinner .eyebrow,html[data-look="btw"] .dinner .textbtn{color:#8c3413}
html[data-look="btw"] .tchip.repeat,html[data-look="btw"] .todo-repeat{background:var(--teal-tint);color:#155e5c}
html[data-look="btw"] .tchip.high{background:var(--coral-tint);color:#8c3413}
html[data-look="btw"] .tchip.remind{background:var(--sky);color:var(--navy)}
html[data-look="btw"] .tchip.due{background:var(--gold-tint);color:#6e5310}
@media(max-width:760px){
  html[data-look="btw"] aside{background:#ffffffee;border-top:1px solid var(--line)}
  html[data-look="btw"] nav button.active{background:transparent;color:var(--primary);font-weight:700}
  html[data-look="btw"] nav button{color:#5b6068;border-radius:0}
}

/* ---------- today's faith moment: the passage in a btw bubble over a time-of-day scene ---------- */
.btw-moment{position:relative;border-radius:var(--radius-photo);overflow:hidden;min-height:260px;display:flex;flex-direction:column;justify-content:flex-end;gap:12px;padding:26px;isolation:isolate;border:0!important;background:var(--scene-bg)}
.btw-scene{position:absolute;inset:0;z-index:-1;overflow:hidden}
.btw-scene i{position:absolute;display:block;border-radius:58% 42% 55% 45%/48% 60% 40% 52%}
.btw-bubble{align-self:flex-start;max-width:min(640px,92%);background:#fff;color:var(--ink);border-radius:var(--radius-bubble);padding:16px 20px 14px;display:flex;flex-direction:column;gap:6px;box-shadow:0 14px 30px -18px rgba(46,50,56,.45)}
.btw-bubble-label{font-size:11.5px;font-weight:700;color:#c24e22;letter-spacing:.01em}
.btw-passage{margin:0;font-family:var(--font-display);font-size:19px;line-height:1.5;color:var(--ink)}
.btw-bubble-sub{font-size:12.5px;color:var(--muted)}
.btw-bubble-sub b{color:var(--ink);font-weight:700}
.btw-moment-actions{display:flex;gap:10px;flex-wrap:wrap}
.btw-moment-actions .open-faith{background:#fff;color:var(--primary);border-radius:999px;padding:10px 18px;font-weight:700;font-size:13px;min-height:44px;display:inline-flex;align-items:center;gap:6px;border:0;cursor:pointer}
/* morning: linen, a gold sun rising, warm soft shapes */
.scene-morning{--scene-bg:#f3e3c3}
.scene-morning .s1{width:190px;height:190px;border-radius:50%!important;background:#ebc35f;right:7%;top:-40px}
.scene-morning .s2{width:340px;height:200px;background:#fbe1d5;left:-80px;bottom:-110px}
.scene-morning .s3{width:260px;height:150px;background:#fbf7f0;right:-60px;bottom:-60px}
.scene-morning .s4{width:46px;height:44px;background:#e56330;right:34%;top:34px}
.scene-morning .s5{width:22px;height:22px;border-radius:50%!important;background:#0a60a2;right:4%;top:150px}
/* midday: sky, clouds, a teal hill */
.scene-midday{--scene-bg:#d4e8f8}
.scene-midday .s1{width:240px;height:110px;background:#fff;right:6%;top:26px}
.scene-midday .s2{width:150px;height:72px;background:#fff;right:28%;top:-20px;opacity:.85}
.scene-midday .s3{width:420px;height:210px;background:#d7eeec;right:-120px;bottom:-120px}
.scene-midday .s4{width:84px;height:84px;border-radius:50%!important;background:#ebc35f;right:3%;top:-24px}
.scene-midday .s5{width:30px;height:28px;background:#e56330;left:46%;bottom:22px}
/* evening: coral tint, a low sun, long warm shapes */
.scene-evening{--scene-bg:#fbe1d5}
.scene-evening .s1{width:230px;height:230px;border-radius:50%!important;background:#e56330;right:8%;bottom:-120px}
.scene-evening .s2{width:380px;height:150px;background:#f7ecc7;right:-90px;top:-50px}
.scene-evening .s3{width:300px;height:130px;background:#f3e3c3;left:-90px;bottom:-80px}
.scene-evening .s4{width:40px;height:38px;background:#ebc35f;right:36%;top:30px}
.scene-evening .s5{width:20px;height:20px;border-radius:50%!important;background:#0f3554;right:5%;top:40px}
/* night: navy, a crescent moon, gold and sky stars */
.scene-night{--scene-bg:#0f3554}
.scene-night .s1{width:120px;height:120px;border-radius:50%!important;background:#f7ecc7;right:9%;top:28px;box-shadow:-34px -6px 0 0 #0f3554 inset}
.scene-night .s2{width:420px;height:200px;background:#154670;right:-120px;bottom:-120px}
.scene-night .s3{width:10px;height:10px;border-radius:50%!important;background:#ebc35f;right:32%;top:40px;box-shadow:120px 70px 0 -1px #6fb3ea,-60px 110px 0 -2px #ebc35f,200px 150px 0 -2px #f08a5d,-180px 20px 0 -2px #6fb3ea}
.scene-night .s4{width:240px;height:110px;background:#0a4876;left:-70px;bottom:-70px}
.scene-night .s5{width:8px;height:8px;border-radius:50%!important;background:#fff;right:4%;top:170px;opacity:.8}
@media(max-width:760px){.btw-moment{min-height:300px;padding:18px}.btw-bubble{max-width:100%}.btw-passage{font-size:17px}}

/* passage reference sits inside the reading box */
.reading-ref-in{display:flex;align-items:center;gap:8px;font:700 13px var(--font-ui);color:var(--ink);margin:4px 0 6px}
.reading-ref-in svg{width:18px;height:18px}

/* ---------- Kids' Board: Urbanist numbers, small corner wordmark ---------- */
.kc-kid-count,.kc-goal-text b,.kids-clock,.kc-ev-time,.ring-num,.star-balance{font-family:var(--font-logo);font-weight:900;letter-spacing:-.02em}
.kc-corner-logo{position:absolute;right:22px;bottom:14px;opacity:.9}
.kc-corner-logo .btw-word{font-size:22px}
.kids-board{position:relative}
/* fixes: breadcrumb spans and button colors */
.breadcrumb .crumb-home{margin:0}
.breadcrumb .crumb-logo span{margin:0;color:inherit}
@media(max-width:760px){.breadcrumb .crumb-logo .btw-word{display:inline-block!important;color:var(--ink)}.breadcrumb .crumb-logo .btw-dots{display:inline-flex!important}.breadcrumb .crumb-logo .btw-dots i{display:inline-block}}

/* no left-border accent cards (brand rule): readings and events use soft fills */
html[data-look="btw"] .scripture-reading{border-left:0;border-radius:16px;background:#fbf7f0;border:1px solid var(--line)}
html[data-look="btw"] .scripture-reading p{color:var(--ink);font-family:var(--font-display);font-size:18px}
html[data-look="btw"] .scripture-reading sup{color:var(--muted)}
html[data-look="btw"] .reading-reference{background:var(--sky);color:var(--navy);border-radius:999px;padding:10px 16px;font-size:12px;font-weight:600}
html[data-look="btw"] .cal-event{border-left:0;border-radius:12px}
html[data-look="btw"] .cal-agenda-event{border-left:0;border-radius:16px}
html[data-look="btw"] .cal-account{border-left:0}
html[data-look="btw"] .kids-board{background:#fbf7f0}
/* readable small text in the default look */
html[data-look="btw"] .breadcrumb,html[data-look="btw"] .breadcrumb .crumb-home,html[data-look="btw"] .breadcrumb .crumb-sep{color:#5b6068}
html[data-look="btw"] .demo-dot,html[data-look="btw"] .local-note,html[data-look="btw"] .memory-storage-note,html[data-look="btw"] .info{color:#5b6068}
html[data-look="btw"] .sectionhead .count,html[data-look="btw"] .count{background:var(--sky);color:var(--navy)}
html[data-look="btw"] .star-balance,html[data-look="btw"] .picture-stars{color:#8a6a12}
html[data-look="btw"] .notice{color:#c24e22}
html[data-look="btw"] .picture-stars{color:#6e5310}
html[data-look="btw"] .meal-day .eyebrow,html[data-look="btw"] .eyebrow{color:#1a6e6c}
html[data-look="btw"] .dinner p{color:#6b2a10}
html .btw-moment.card{background:var(--scene-bg)!important}
/* ---------- live app: sign-in and setup screens ---------- */
#btwGate{display:none}
html.btw-gate #btwGate{display:grid;position:fixed;inset:0;z-index:1000;place-items:center;padding:24px 16px;overflow-y:auto;background:#0f3554}
html.btw-gate body{overflow:hidden}
#btwGate::before{content:'';position:fixed;width:420px;height:380px;right:-140px;top:-140px;background:#154670;border-radius:58% 42% 55% 45%/48% 60% 40% 52%}
.gate-card{position:relative;width:min(440px,100%);background:#fff;color:var(--ink);border-radius:24px;padding:32px 28px;display:flex;flex-direction:column;gap:14px;font-family:var(--font-ui)}
.gate-logo{margin-bottom:6px}.gate-logo .btw-word{font-size:52px}
.gate-card h1{font:400 30px var(--font-display);margin:4px 0 0}
.gate-lead{margin:0;color:#4a4f57;font-size:15px;line-height:1.5}
.gate-card form{display:flex;flex-direction:column;gap:12px}
.gate-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.gate-card input:not([type=radio]):not([type=checkbox]){font:inherit;font-size:16px;padding:12px 14px;border:1.5px solid #e4d8c4;border-radius:12px;background:#fbf7f0}
.gate-card .primary{width:100%;min-height:48px;font-size:15px}
.gate-card .textbtn{color:var(--primary);font-weight:600;font-size:13px;align-self:flex-start;padding:6px 0;background:none;border:0;cursor:pointer}
.gate-note{margin:0;font-size:13px;color:#5b6068;line-height:1.5}
.gate-note[role=alert]{color:#8c3413;background:#fbe1d5;border-radius:10px;padding:8px 12px}
.gate-start{border:0;padding:0;margin:0;display:grid;gap:8px}.gate-start legend{font-size:13px;font-weight:600;margin-bottom:6px}
.gate-start .approval-toggle{flex-direction:row;font-weight:400;align-items:flex-start;gap:10px;line-height:1.45}
.gate-loading{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 0}.gate-loading p{margin:0;color:#5b6068}
.invite-form{display:flex;flex-direction:column;gap:10px;margin-top:14px;border-top:1px solid var(--line);padding-top:14px}
.invite-form h3{margin:0;font:700 15px var(--font-ui)}
.demo-dot.offline{color:#8c3413}
.gate-code summary{cursor:pointer;font-size:13px;color:var(--primary);font-weight:600}.gate-code form{margin-top:10px}
@media(max-width:760px){aside{height:calc(74px + env(safe-area-inset-bottom))!important}main{padding-bottom:calc(96px + env(safe-area-inset-bottom))}}
.btw-signout-side{margin-top:4px}
.btw-signout-side svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.more-account{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:10px;font-size:13px;color:var(--muted)}
.more-account span{overflow-wrap:anywhere}
/* events from connected calendars */
.ext-event h2{font:400 26px var(--font-display);margin:6px 0}
.ext-when{font-weight:600;margin:0 0 6px}.ext-where{margin:0 0 6px;color:var(--muted)}
.ext-who{display:flex;align-items:center;gap:8px;margin:8px 0}
.ext-dot{width:10px;height:10px;border-radius:50%}
.cal-status.ok{background:var(--teal-tint,#d7eeec);color:#155e5c}
