/* 99for1.AI v5.51 — layout fixes: the daily verse never crowds the label or the image subject;
   the first-visit banner keeps its words and button in the dark side of the picture. Loaded last. */

/* ---------- Today: daily verse card ---------- */
/* Size the words by length so long verses stay inside their space. */
.daily-experience.len-s .daily-immersive-copy{font-size:clamp(2.3rem,3.9vw,4.1rem)!important;line-height:1.02!important}
.daily-experience.len-m .daily-immersive-copy{font-size:clamp(2.2rem,3.4vw,3.7rem)!important;line-height:1.05!important}
.daily-experience.len-l .daily-immersive-copy{font-size:clamp(1.9rem,2.8vw,3.15rem)!important;line-height:1.08!important}
.daily-experience.len-xl .daily-immersive-copy{font-size:clamp(1.6rem,2.2vw,2.5rem)!important;line-height:1.12!important}

@media (min-width:1101px) and (pointer:fine){
  /* The card is a column: label row, then the words in the remaining space (never under the label). */
  .daily-experience{display:flex!important;flex-direction:column!important;min-height:620px!important}
  .daily-experience .daily-experience-top{flex:0 0 auto}
  .daily-experience .daily-experience-center{
    position:relative!important;inset:auto!important;flex:1 1 auto;display:flex!important;flex-direction:column!important;
    justify-content:center!important;padding:8px 5vw 56px!important;min-height:0!important
  }
  /* Keep the words in the negative space: the left 46% (or right 46%) of the picture. */
  .daily-experience.pos-left-center .daily-experience-center{padding-right:54%!important;align-items:flex-start!important;text-align:left!important}
  .daily-experience.pos-right-center .daily-experience-center{padding-left:54%!important;align-items:flex-end!important;text-align:right!important}
  .daily-experience.pos-center .daily-experience-center{padding-left:18%!important;padding-right:18%!important}
  .daily-experience .daily-immersive-copy,.daily-experience .daily-immersive-reference{max-width:100%!important}
  /* A slightly deeper scrim behind the words for contrast against bright skies. */
  .daily-experience.scrim-left .daily-experience-shade{background:linear-gradient(90deg,rgba(4,4,4,.9) 0%,rgba(4,4,4,.72) 34%,rgba(4,4,4,.25) 56%,rgba(4,4,4,.06) 100%),linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,0) 22%,rgba(0,0,0,0) 70%,rgba(0,0,0,.55))!important}
  .daily-experience.scrim-right .daily-experience-shade{background:linear-gradient(270deg,rgba(4,4,4,.9) 0%,rgba(4,4,4,.72) 34%,rgba(4,4,4,.25) 56%,rgba(4,4,4,.06) 100%),linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,0) 22%,rgba(0,0,0,0) 70%,rgba(0,0,0,.55))!important}
}
/* Phones and tablets: same length scaling, a little smaller. */
@media (max-width:1100px), (pointer:coarse){
  .daily-experience.len-l .daily-immersive-copy{font-size:clamp(1.5rem,5.8vw,2.2rem)!important}
  .daily-experience.len-xl .daily-immersive-copy{font-size:clamp(1.32rem,5vw,1.85rem)!important}
}

/* ---------- My first visit banner ---------- */
@media (min-width:901px){
  .first-visit-hero>div:first-child{display:flex;flex-direction:column;justify-content:center;padding:48px 44px!important;min-height:520px}
  .first-visit-hero>div:first-child>.eyebrow,
  .first-visit-hero>div:first-child>h1,
  .first-visit-hero>div:first-child>p{max-width:min(430px,45%)!important}
  .first-visit-hero>div:first-child>h1{font-size:clamp(2.4rem,3vw,3.3rem)!important;line-height:1!important}
  .first-visit-hero>div:first-child>p{font-size:1rem!important}
  .first-visit-hero>div:first-child>.btn{align-self:flex-start;width:auto!important;display:inline-flex!important;padding-left:26px!important;padding-right:26px!important}
  .first-visit-hero>div:first-child{background:linear-gradient(90deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.72) 36%,rgba(0,0,0,.22) 60%,rgba(0,0,0,.08) 100%),url('../img/next-steps/first-visit-jesus.webp') 48% center/cover no-repeat!important}
}
@media (max-width:900px){
  .first-visit-hero>div:first-child>.btn{width:auto!important;display:inline-flex!important}
}

/* v5.52 suggested voices (Review queue) and weekly ranks (Curated voices) */
.voice-cand-head{display:flex;gap:14px;align-items:flex-start}
.voice-cand-head img{width:150px;aspect-ratio:16/9;object-fit:cover;border-radius:6px;flex:none;background:#111}
.voice-approve{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;align-items:end}
.voice-approve label{display:flex;flex-direction:column;gap:4px;font-size:.78rem;color:#cdbfa8}
.voice-approve .wide{grid-column:1/-1}
.voice-approve textarea{min-height:64px}
.voice-approve .mod-actions{grid-column:1/-1}
@media(max-width:700px){.voice-approve{grid-template-columns:1fr}.voice-cand-head{flex-direction:column}.voice-cand-head img{width:100%}}
.voice-rank{display:inline-block;min-width:26px;padding:1px 6px;margin-right:6px;border-radius:4px;background:#d8ad5a;color:#120f0b;font-weight:800;font-size:.66rem;letter-spacing:.04em;text-align:center}
.voice-rank.top3{background:#d61918;color:#fff}
.voice-week{color:#f1cf8f}

/* ===== v5.53 — Ask the hard questions on iPhone / small screens ===== */
.apol-answer-visual{display:flex;align-items:flex-end;min-height:150px;margin:22px 0 0;padding:22px 24px;border:1px solid #3f3120;background-size:cover;background-repeat:no-repeat;scroll-margin-top:84px}
.apol-answer-visual>div{display:grid;gap:6px;max-width:620px}
.apol-answer-visual span{display:block;color:#d7ad61;font-size:.66rem;letter-spacing:.2em;font-weight:800}
.apol-answer-visual strong{display:block;font:700 1.7rem/1.1 "Cormorant Garamond",serif;color:#fff}
.field>label.check{display:flex;justify-content:flex-start;align-items:center;gap:10px;text-align:left;text-transform:none;letter-spacing:.02em;font-size:.95rem}
.field>label.check input{flex:0 0 auto;width:18px;height:18px;margin:0}
.field>label.check strong{flex:1 1 auto;text-align:left}
.ai-answer .topline{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:flex-start}
.ai-meta{white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.ai-answer>h2.serif{font-size:clamp(1.7rem,6.2vw,2.45rem)!important;line-height:1.12;overflow-wrap:break-word}
.ai-generated{overflow-wrap:break-word}
.ai-generated img,.ai-generated table{max-width:100%}
#apol-language{text-overflow:ellipsis}
@media(max-width:700px){
  .apol-answer-visual{min-height:118px;padding:16px 16px 18px;margin-top:16px}
  .apol-answer-visual strong{font-size:1.32rem}
  .apol-share-actions{gap:8px}
  .apol-share-actions .btn{min-height:50px;padding:10px 8px;font-size:.72rem;letter-spacing:.08em;line-height:1.15;white-space:nowrap;display:flex;align-items:center;justify-content:center}
  .apol-share-actions [data-apol-share="copylink"],.guest-save .apol-share-actions .btn{grid-column:1/-1}
  .ai-answer{padding:20px 16px}
  .ai-answer-shell{grid-template-columns:1fr!important}
  .tts-controls .tts-label,.tts-controls .tts-select,.tts-controls .speak-button{width:100%}
  .tts-select,#apol-language{font-size:16px}
  .scripture-quote p{font-size:1.08rem}
}
/* v5.53: the v5.29 phone rule stretched every input to 100%, which also stretched checkboxes and radio buttons
   (the "Bible — always on" row and the historical-perspective choices looked broken on iPhone). */
@media(max-width:900px){
  input[type=checkbox],input[type=radio]{width:20px!important;height:20px;min-width:20px;flex:0 0 20px;margin:0}
  label.check{display:flex;align-items:center;gap:10px;text-align:left}
}

/* ===== v5.54 — admin: Code updates ===== */
.cu-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0}
.cu-status span{display:block;text-transform:uppercase;letter-spacing:.12em}
.cu-status strong{display:block;font:600 1.35rem/1.2 "Cormorant Garamond",serif;margin-top:4px;overflow-wrap:anywhere}
.cu-upload form{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.cu-upload .input{max-width:460px}
.cu-release{margin-top:8px}
.cu-checks{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px}
.cu-check{padding:18px 20px;border-left:3px solid var(--line)}
.cu-check.pass{border-left-color:#4f8a63}.cu-check.warn{border-left-color:#d7a43a}.cu-check.fail{border-left-color:#d64036}.cu-check.pending{border-left-color:#6f6658}
.cu-check-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cu-check-head strong{font-size:1rem}
.cu-summary{margin:8px 0;color:#d8ccb9}
.cu-chip{display:inline-flex;align-items:center;padding:4px 9px;font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;border:1px solid}
.cu-chip.pass{color:#9fd7b0;border-color:#3f6e4f;background:#0f1b13}.cu-chip.warn{color:#f0cd7d;border-color:#7a5d22;background:#1d170b}
.cu-chip.fail{color:#ffb2a8;border-color:#8d302a;background:#24100e}.cu-chip.pending{color:#c7bba8;border-color:#4a4236;background:#14120f}
.cu-files{margin:8px 0 4px;padding-left:18px;font-size:.84rem;color:#c9bdaa;max-height:360px;overflow:auto}
.cu-files li{margin:3px 0;overflow-wrap:anywhere}.cu-files code{font-size:.8rem;white-space:pre-wrap}
.cu-check details summary{cursor:pointer;margin-top:4px}
.cu-ack{margin-top:10px;display:inline-flex}
.cu-final{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap}
.cu-final label{display:grid;gap:6px;font-size:.76rem;text-transform:uppercase;letter-spacing:.12em;color:#b9a98f;font-weight:700;min-width:260px}
.cu-final .btn[disabled],.cu-upload .btn[disabled]{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.cu-diff{background:#0b0a09;border:1px solid var(--line);padding:14px;overflow:auto;font-size:.8rem;line-height:1.45;max-height:75vh;white-space:pre}
.cu-diff .add{display:block;background:#0f2416;color:#bfe8cb}.cu-diff .del{display:block;background:#2a1110;color:#ffc4bc}
.cu-diff .ctx{display:block;color:#a89c8a}.cu-diff .gap{display:block;color:#6f6658;text-align:center}
.cu-history{display:grid;gap:8px}
.cu-hist-row{display:grid;grid-template-columns:minmax(120px,.6fr) minmax(120px,.5fr) 1.6fr auto;gap:12px;align-items:center;padding:14px 18px}
.cu-rollback{display:flex;gap:8px;align-items:center}.cu-rollback .input{width:180px;padding:9px 10px}
@media(max-width:900px){.cu-status{grid-template-columns:1fr}.cu-hist-row{grid-template-columns:1fr}.cu-rollback{flex-wrap:wrap}.cu-final label{min-width:0;width:100%}}

/* v5.55 — live (streamed) apologetics answers */
.apol-live{margin-top:6px}
.apol-live-status{min-height:1.3em;margin:4px 0 12px;color:#d7ad61;font-size:.84rem;letter-spacing:.03em}
.apol-live-status:not(:empty)::before{content:"";display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:#d7ad61;vertical-align:middle;animation:apolPulse 1.1s ease-in-out infinite}
.apol-live-status.error{color:#ffab9c}.apol-live-status.error::before{background:#ffab9c;animation:none}
.ai-generated.is-writing::after{content:"";display:inline-block;width:.45em;height:1.05em;margin-left:3px;background:#d7ad61;vertical-align:-.16em;animation:apolCaret 1s steps(2,start) infinite}
.ai-generated h3{margin:20px 0 6px;color:#e7d2af;font:700 1.02rem/1.25 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.ai-generated h3:first-child{margin-top:4px}
.ai-generated ul,.ai-generated ol{margin:8px 0 12px;padding-left:1.35em}.ai-generated li{margin:4px 0}
@keyframes apolPulse{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}
@keyframes apolCaret{to{visibility:hidden}}
@media(prefers-reduced-motion:reduce){.apol-live-status::before,.ai-generated.is-writing::after{animation:none}}

/* v5.56 — crisis help and Care alerts */
.care-help{margin:18px 0;padding:18px 20px;border:1px solid rgba(255,171,156,.45);border-left:4px solid #ffab9c;background:#1a1110;border-radius:4px}
.care-help .care-help-kicker{color:#ffab9c;font:700 .72rem/1 Inter,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;margin-bottom:8px}
.care-help h3{margin:0 0 10px;font-size:1.12rem;line-height:1.35;color:#fff}
.care-help ul{margin:0 0 12px;padding-left:1.2em}.care-help li{margin:5px 0}
.care-help-form{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.care-help-note{font-size:.82rem;color:#c9b995}
.care-help-sent{margin:0;color:#b7e4c7;font-weight:600}
.care-disclosure strong{color:#e7d2af}
.care-level{display:inline-block;padding:2px 8px;border-radius:3px;font:700 .7rem/1.4 Inter,system-ui,sans-serif;letter-spacing:.08em}
.care-imminent{background:#b3261e;color:#fff}.care-high{background:#e8590c;color:#fff}.care-moderate{background:#5c4a1e;color:#ffe6a8}.care-low,.care-none{background:#2b2b2b;color:#ccc}
.care-wants{color:#ffab9c;font-weight:700}
.care-question{margin:8px 0 12px;padding:12px 14px;border-left:3px solid #d7ad61;background:#141210;white-space:normal}
.care-alert-form{display:grid;gap:10px;max-width:640px;margin:14px 0}
.care-alert-tabs{margin:22px 0 8px}.care-alert-tabs a.active{font-weight:700;text-decoration:underline}
.care-alert-table tr.current td{background:#1b1712}
.care-nav-count{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:#e8590c;color:#fff;font-size:.72rem;line-height:18px;text-align:center}
