/* Living Sermon's own front door. Reuses walk.css for tokens, fonts, base
   reset, the lamp glow and the .m/.chip/.btn chat primitives already built
   for "Ask this sermon"; this file only adds the page-level layout. */

#findShell{max-width:760px;margin:0 auto;padding:150px 24px 60px;position:relative;z-index:2}

#findHero{text-align:center;margin-bottom:48px}
#findHero .tag{font-size:.7rem;letter-spacing:.3em;text-transform:uppercase;color:var(--accent);display:block;margin-bottom:20px}
#findHero h1{font-family:var(--serif);font-weight:500;font-size:clamp(2.2rem,6vw,3.6rem);line-height:1.15;margin-bottom:20px}
#findHero p{color:var(--dim);max-width:36rem;margin:0 auto;font-size:1.02rem;line-height:1.7}

#howRow{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:40px}
.how-step{border:1px solid var(--line);border-radius:18px;padding:22px 20px;background:rgba(255,255,255,.02)}
.how-step .how-n{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--accent);color:#241d0b;font-family:var(--sans);font-weight:700;font-size:.8rem;margin-bottom:14px}
.how-step h3{font-family:var(--serif);font-weight:500;font-size:1.08rem;line-height:1.3;margin-bottom:8px;color:var(--fg)}
.how-step p{font-size:.85rem;color:var(--dim);line-height:1.6}

#entryRow{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:28px}
.entry-card{all:unset;cursor:pointer;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;border:1.5px solid var(--line);border-radius:18px;padding:22px 22px;background:rgba(255,255,255,.03);transition:.25s}
.entry-card:hover,.entry-card:focus-visible{border-color:var(--accent);background:rgba(255,255,255,.05)}
.entry-card .tag{font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);display:block;margin-bottom:10px}
.entry-card h4{font-family:var(--serif);font-weight:500;font-size:1.15rem;color:var(--fg);margin-bottom:6px}
.entry-card p{font-size:.85rem;color:var(--dim);line-height:1.5}

#chatWrap{border:1px solid var(--line);border-radius:24px;background:rgba(0,0,0,.22);backdrop-filter:blur(6px);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 30px 80px rgba(0,0,0,.35)}
#chatBody{max-height:min(52vh,520px);min-height:220px;overflow-y:auto;padding:26px 26px 10px;display:flex;flex-direction:column;gap:14px;scroll-behavior:smooth}
#chipRow{padding:0 22px 14px}
#chatFoot{display:flex;gap:10px;padding:16px 20px;border-top:1px solid var(--line)}
#chatFoot input{flex:1;padding:14px 18px;border:1.5px solid var(--line);border-radius:999px;font-size:.94rem;font-family:var(--sans);background:transparent;color:var(--fg)}
#chatFoot input:focus{outline:none;border-color:var(--accent)}
#chatFoot input::placeholder{color:var(--dim)}
#chatFoot .btn{padding:14px 26px;white-space:nowrap}

.result-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-top:2px;max-width:92%}
.result-card{all:unset;cursor:pointer;display:block;border:1px solid var(--line);border-radius:16px;padding:18px 20px;background:rgba(255,255,255,.03);transition:.25s;box-sizing:border-box}
.result-card:hover,.result-card:focus-visible{border-color:var(--accent)}
.result-card .rc-church{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);margin-bottom:6px}
.result-card h4{font-family:var(--serif);font-weight:500;font-size:1.12rem;margin-bottom:4px;color:var(--fg)}
.result-card .rc-passage{font-size:.78rem;color:var(--dim);margin-bottom:10px}
.result-card .rc-excerpt{font-size:.88rem;color:var(--fg);line-height:1.6;margin-bottom:10px}
.result-card .rc-link{font-size:.8rem;font-weight:600;color:var(--accent)}

.church-card{border:1px solid var(--line);border-radius:16px;padding:20px 22px;background:rgba(255,255,255,.03);max-width:92%;margin-top:2px}
.church-card h4{font-family:var(--serif);font-weight:500;font-size:1.15rem;margin-bottom:4px;color:var(--fg)}
.church-card .cc-meta{font-size:.78rem;color:var(--dim);margin-bottom:12px}
.church-card ul{list-style:none;display:flex;flex-direction:column;gap:7px}
.church-card ul a{font-size:.86rem;display:inline-block}

#trustLine{text-align:center;color:var(--dim);font-size:.8rem;max-width:34rem;margin:26px auto 0;line-height:1.7}

#findFoot{position:relative;z-index:2;text-align:center;padding:70px 24px 60px;color:var(--dim);font-size:.82rem}
#findFoot b{display:block;font-family:var(--serif);font-size:1.15rem;color:var(--fg);margin-bottom:10px;font-weight:500}
#findFoot p{max-width:30rem;margin:0 auto;line-height:1.8}
#findFoot p b{display:inline;font-family:var(--sans);font-size:inherit;color:var(--fg)}

@media(max-width:760px){
  #howRow{grid-template-columns:1fr}
  #entryRow{grid-template-columns:1fr}
}

@media(max-width:640px){
  #findShell{padding:126px 16px 40px}
  #findHero{margin-bottom:34px}
  #howRow{margin-bottom:28px;gap:12px}
  #entryRow{margin-bottom:22px;gap:12px}
  #chatBody{padding:20px 18px 6px}
  #chipRow{padding:0 16px 12px}
  #chatFoot{padding:12px 14px;gap:8px}
  #chatFoot .btn{padding:14px 18px}
  .result-grid,.church-card{max-width:100%}
}
