/* 99for1.AI v5.26 — daily-card controls, curated voices browser, restored mobile layer */

/* Daily inspiration: keep content inside the visual, controls outside. */
.daily-experience{margin-bottom:0!important;border-bottom:0!important}
.daily-experience-bottom{display:none!important}
.daily-experience-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 18px 15px;border:1px solid rgba(224,178,91,.30);border-top:0;background:linear-gradient(90deg,#0b0a09,#12100d);margin:0 0 32px;color:#b8aa96}
.daily-experience-controls>div{display:flex;align-items:baseline;gap:12px;min-width:0}.daily-experience-controls span{font-size:.62rem;text-transform:uppercase;letter-spacing:.15em;color:#827868}.daily-experience-controls strong{font:600 1.08rem/1 "Cormorant Garamond",serif;color:#e9d2a7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.daily-new-button{color:#f22d25!important;border:0!important;background:rgba(3,3,3,.42)!important;padding:7px 10px!important;font-weight:950!important;letter-spacing:.12em!important;text-shadow:0 0 20px rgba(242,45,37,.28);box-shadow:none!important}.daily-new-button:hover{color:#ff5a50!important;background:rgba(0,0,0,.74)!important;transform:translateY(-1px)}

/* Curated voices — center preview + complete randomized roster. */
.voice-browser{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.72fr);gap:18px;margin-top:24px;min-height:620px}
.voice-feature{border:1px solid #49361f;background:#080808;display:grid;grid-template-rows:minmax(330px,1.15fr) auto;overflow:hidden;min-width:0}
.voice-feature-media{position:relative;min-height:340px;background:#050505;overflow:hidden}.voice-feature-media>img{width:100%;height:100%;object-fit:contain;display:block;filter:none!important;transform:none!important;background:#050505}.voice-feature-placeholder{height:100%;display:grid;place-items:center;font:700 8rem/1 "Cormorant Garamond",serif;color:#c89442}.voice-feature-shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 48%,rgba(0,0,0,.76))}.voice-feature-badge{position:absolute;left:18px;bottom:16px;font-size:.61rem;font-weight:800;letter-spacing:.16em;color:#f1cf8f;background:rgba(0,0,0,.78);border:1px solid rgba(224,178,91,.45);padding:8px 10px}
.voice-feature-copy{padding:26px 28px 28px}.voice-feature-copy h2{font-size:clamp(2.6rem,4.2vw,4.8rem);line-height:.88;margin:6px 0 10px}.voice-feature-copy h3{margin:0 0 13px;color:#e4b75f;font-size:1rem}.voice-feature-copy p{max-width:820px;color:#b9ad9b}.voice-feature-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 7px}
.voice-roster{border:1px solid #45331d;background:#0b0a09;display:flex;flex-direction:column;min-height:0}.voice-roster-head{display:flex;align-items:center;justify-content:space-between;padding:15px 15px 12px;border-bottom:1px solid #322617;font-size:.62rem;letter-spacing:.14em;color:#ba9f71}.voice-roster-head strong{font-size:.85rem;color:#f1d296}.voice-roster-list{overflow:auto;max-height:760px;scrollbar-color:#745329 #0a0908}.voice-roster-item{width:100%;border:0;border-bottom:1px solid #282016;background:#0c0b0a;color:#eee5d8;padding:10px;display:grid;grid-template-columns:64px minmax(0,1fr) 18px;gap:11px;align-items:center;text-align:left;cursor:pointer;transition:.18s;background}.voice-roster-item:hover,.voice-roster-item.active{background:#17120d}.voice-roster-item.active{box-shadow:inset 3px 0 #e01f19}.voice-roster-thumb{width:64px;aspect-ratio:16/10;overflow:hidden;background:#050505;display:grid;place-items:center}.voice-roster-thumb img{width:100%;height:100%;object-fit:cover;filter:none!important;transform:none!important}.voice-roster-thumb b{font:700 2rem/1 "Cormorant Garamond",serif;color:#dda84e}.voice-roster-copy{min-width:0;display:grid;gap:2px}.voice-roster-copy small{font-size:.53rem;letter-spacing:.1em;color:#a88753;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.voice-roster-copy strong{font:600 1.06rem/1.05 "Cormorant Garamond",serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.voice-roster-copy em{font-style:normal;color:#8f8578;font-size:.67rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.voice-roster-arrow{font-size:1.45rem;color:#8d6a32}.voice-source-note{margin-top:18px}

/* Restore a durable responsive/mobile layer regardless of user-agent detection. */
@media(max-width:980px){
  .wrap{width:min(100% - 28px,1500px)}
  .nav-inner{gap:12px}.nav-links{display:none}
  .parchment-grid,.section-heading,.ask-grid,.letters-grid,.apparel-grid,.story-grid,.feminine-section,.nature-grid-section{grid-template-columns:1fr!important}
  .stats-grid,.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .feminine-image,.nature-bike,.nature-jesus{min-height:380px}
  .voice-browser{grid-template-columns:1fr;min-height:0}.voice-roster-list{max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.voice-roster-head{grid-column:1/-1}
  .voice-roster-item{border-right:1px solid #282016}
}

@media(max-width:760px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:#080808}
  body{overflow-x:hidden} input,textarea,select{font-size:16px!important}.btn{min-height:44px;touch-action:manipulation}
  .wrap{width:min(100% - 24px,1500px)}
  .app-top{position:sticky;top:0;z-index:90;background:rgba(5,5,5,.97);backdrop-filter:blur(18px)}
  .app-top .nav-inner{min-height:58px}.brand-logo-img{width:128px!important;max-width:43vw!important}.brand-tagline{display:none!important}.header-profile-link span{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .app-layout{display:block!important;min-height:auto!important}.side{position:sticky!important;top:58px!important;z-index:80!important;height:auto!important;display:flex!important;gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:7px 8px!important;border-right:0!important;border-bottom:1px solid var(--line)!important;background:rgba(8,7,6,.97)!important;backdrop-filter:blur(16px);scrollbar-width:none;-webkit-overflow-scrolling:touch}.side::-webkit-scrollbar{display:none}.side a{white-space:nowrap!important;min-height:42px!important;padding:10px 12px!important;display:flex!important;align-items:center!important}
  .main{padding:20px 13px max(28px,env(safe-area-inset-bottom,0px))!important;max-width:none!important;min-width:0!important}.main h1{font-size:clamp(2.45rem,11vw,3.4rem)!important}
  .kpis,.grid-2,.grid-3,.grid-4,.stats-grid,.team-grid,.resource-grid{grid-template-columns:1fr!important}.card,.form-card,.testimony,.list-item{padding:18px!important}
  .today-title-row,.section-heading-row,.church-results-heading,.podcast-heading-row{align-items:flex-start!important;flex-direction:column!important;gap:12px!important}.profile-daily-link{width:100%}
  .daily-experience{min-height:74svh!important;background-position:var(--daily-bg-position,center center)!important;background-size:cover!important}.daily-experience-top{padding:14px!important}.daily-experience .daily-experience-center{inset:auto 0 0!important;min-height:58%!important;padding:70px 20px 56px!important;justify-content:flex-end!important;align-items:flex-start!important;text-align:left!important;background:linear-gradient(180deg,transparent,rgba(0,0,0,.14) 12%,rgba(0,0,0,.82) 70%,rgba(0,0,0,.92))!important}.daily-experience .daily-immersive-copy{font-size:clamp(2.1rem,9.2vw,3.2rem)!important;max-width:94%!important;line-height:1!important}.daily-experience .daily-immersive-reference{max-width:94%!important}.daily-experience .daily-immersive-actions{justify-content:flex-start!important}.daily-experience-controls{align-items:flex-start;flex-direction:column;padding:13px}.daily-experience-controls .btn{width:100%}
  .next-step-strip{grid-auto-columns:86%!important;overflow-x:auto!important}.resource-grid{display:grid!important}
  .voice-feature{grid-template-rows:240px auto}.voice-feature-media{min-height:240px}.voice-feature-copy{padding:20px}.voice-feature-copy h2{font-size:3rem}.voice-feature-actions{display:grid}.voice-feature-actions .btn{width:100%}.voice-roster-list{grid-template-columns:1fr}.voice-roster-item{grid-template-columns:70px minmax(0,1fr) 18px;padding:9px}.voice-roster-thumb{width:70px}
  .theme-choice-grid,.church-result-grid,.doctrine-grid,.church-search-options,.church-location-actions{grid-template-columns:1fr!important}.theme-choice-card{grid-template-rows:145px auto auto!important}.church-search-shell{padding:19px 14px!important}.church-search-options .btn{width:100%!important;grid-column:auto!important}
  .tts-controls{display:grid!important;grid-template-columns:1fr!important;width:100%!important}.tts-select{width:100%!important;max-width:none!important}
  .feminine-copy,.nature-copy{padding:42px 22px!important}.gallery-card{padding:32px 22px!important;min-height:560px}.apparel-copy{padding-right:0!important}.apparel-image{min-height:360px}.letters-grid h2,.nature-copy h2,.gallery-copy h2{font-size:clamp(3rem,12vw,4.4rem)!important}
  .public-brand .brand-logo-img{width:135px!important}.nav .btn-sm{padding:10px 11px!important;font-size:.58rem!important}.retheme-hero{min-height:0!important;padding-top:56.3vw!important;background-color:#080808!important;background-image:url('../img/hero-return-mobile.webp')!important;background-size:100% auto!important;background-position:center top!important;background-repeat:no-repeat!important}.retheme-hero:before{background:linear-gradient(180deg,rgba(0,0,0,.01) 0%,rgba(0,0,0,.05) 34vw,rgba(8,8,8,.74) 49vw,#080808 58vw,#080808 100%)!important}.hero-grid{min-height:0!important;display:block!important}.hero-copy{padding:16px 0 46px!important}.hero-copy h1{font-size:clamp(3.2rem,15vw,5rem)!important;line-height:.82!important}.hero-copy p{font-size:1.12rem!important}.hero-note{display:none!important}.hero-actions{display:grid!important}.hero-actions .btn{width:100%!important}.micro-row{gap:10px 14px!important}
}

/* iPhone/iPad safe areas when device.js identifies iOS. */
html.device-ios body{padding-bottom:env(safe-area-inset-bottom,0px)}
html.device-ios .nav,html.device-ios .app-top{padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
html.device-ios.device-portrait .retheme-hero{padding-top:calc(56.3vw + env(safe-area-inset-top,0px))!important}
html.device-ios.device-portrait .side{top:calc(58px + env(safe-area-inset-top,0px))!important}
