/* ============================================================
   WellServe — ranger.css
   The WellServe Ranger mascot. Loaded after responsive.css on
   pages that show him. Images live in /img/ranger/.
   ============================================================ */

/* ---- Hero stage: Ranger in front of the publication fan ----
   Flat, matt treatment: solid navy-soft disc behind him (no glow),
   flat ground shadow, Ranger image graded/matt-baked in the file. */
.ranger-stage{ position:relative; width:400px; height:372px; flex-shrink:0; align-self:flex-start; margin-top:24px; }
.ranger-stage::before{
  content:""; position:absolute; left:58%; top:46%; width:330px; height:330px; transform:translate(-50%,-50%);
  background:#2B3953; border-radius:50%; pointer-events:none;
}
.ranger-stage::after{
  content:""; position:absolute; left:58%; bottom:3px; width:200px; height:16px; transform:translateX(-50%);
  background:rgba(10,15,24,0.45); border-radius:50%; z-index:3; pointer-events:none;
}
.ranger-stage .pub-fan{ position:absolute; left:0; top:22px; opacity:.7; transform:scale(.9); transform-origin:top left; }
.ranger-stage .ranger-hero-img{
  position:absolute; left:58%; top:0; width:310px; height:auto; z-index:4; transform:translateX(-50%);
  filter:none;
}
.ranger-stage .ranger-hero-img[src*="reading"]{ width:250px; }
.hero-tagline{ font-family:var(--font-display); font-weight:600; font-size:1.25rem; color:#9FD8D0; margin:-.2em 0 .9em; }

/* ---- Small guide: Ranger + speech bubble ---- */
.ranger-guide{ display:flex; align-items:flex-end; gap:14px; margin:0 0 1.6rem; }
.ranger-guide img{ width:96px; height:auto; flex:0 0 auto; filter:drop-shadow(0 4px 3px rgba(26,35,50,0.12)); }
.ranger-guide.ranger-guide-lg img{ width:128px; }
.ranger-says{
  position:relative; background:var(--paper); border:1.5px solid var(--color-border); border-radius:var(--radius);
  padding:12px 16px; margin-bottom:18px; font-size:.95rem; color:var(--navy); max-width:560px;
  box-shadow:var(--shadow-sm);
}
.ranger-says::before{
  content:""; position:absolute; left:-9px; bottom:16px; width:14px; height:14px; background:var(--paper);
  border-left:1.5px solid var(--color-border); border-bottom:1.5px solid var(--color-border); transform:rotate(45deg);
}
.ranger-says strong{ display:block; font-family:var(--font-mono); font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; color:var(--teal-dark); margin-bottom:2px; font-weight:500; }
.ranger-says p{ margin:0; }
.spec-box .ranger-guide{ margin:18px 0 0; gap:10px; }
.spec-box .ranger-guide img{ width:70px; }
.spec-box .ranger-says{ font-size:.86rem; padding:10px 12px; margin-bottom:10px; box-shadow:none; }

/* ---- Builder call-out: pointing Ranger on the left ---- */
.builder-cta .bc-ranger{ width:76px; height:auto; flex:0 0 auto; margin:-6px 0 -12px; filter:drop-shadow(0 4px 3px rgba(26,35,50,0.12)); }

/* ---- Ranger's tip box (guides, light) ---- */
.ranger-tip{
  display:flex; gap:16px; align-items:flex-start; background:rgba(42,157,143,0.08);
  border-left:4px solid var(--teal); border-radius:6px; padding:16px 20px; margin:1.8em 0;
}
.ranger-tip .rt-face{
  width:56px; height:56px; flex:0 0 auto; border-radius:50%; background:#DCEFEC; overflow:hidden;
  border:2px solid var(--teal);
}
.ranger-tip .rt-face img{ width:56px; height:auto; display:block; margin-top:2px; }
.ranger-tip p{ margin:0; color:var(--navy); }
.ranger-tip .rt-label{ display:block; font-family:var(--font-mono); font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--teal-dark); margin-bottom:3px; }

/* ---- Thanks / 404 hero with the Ranger ---- */
.hero .container.ranger-hero-row{ display:flex; align-items:center; justify-content:space-between; gap:40px; max-width:960px; }
.ranger-hero-row .rh-copy{ flex:1; min-width:260px; }
.ranger-hero-row .rh-img{ width:200px; height:auto; flex:0 0 auto; filter:drop-shadow(0 6px 4px rgba(0,0,0,0.22)); margin:-30px 0 -60px; }
.nf-links{ display:flex; flex-wrap:wrap; gap:12px; margin-top:1.4rem; }

/* ---- About the Ranger (why-wellserve) ---- */
.ranger-about{ display:flex; gap:24px; align-items:center; background:var(--paper); border:1.5px solid var(--color-border); border-radius:var(--radius-large); padding:22px 26px; margin:2.4rem 0; }
.ranger-about img{ width:140px; height:auto; flex:0 0 auto; }
.ranger-about h2{ margin-top:0; font-size:1.4rem; }
.ranger-about p:last-child{ margin-bottom:0; }

/* ---- Tablet ---- */
@media (max-width: 900px){
  .ranger-stage{ align-self:center; width:340px; height:300px; margin-top:0; }
  .ranger-stage::before{ width:260px; height:260px; }
  .ranger-stage::after{ width:165px; height:13px; bottom:3px; }
  .ranger-stage .pub-fan{ top:14px; transform:scale(.8); }
  .ranger-stage .ranger-hero-img{ width:250px; }
  .ranger-stage .ranger-hero-img[src*="reading"]{ width:205px; }
  .ranger-hero-row .rh-img{ width:170px; margin:0; }
}

/* ---- Mobile ---- */
@media (max-width: 600px){
  .hero.hero-xl .container.hero-flex{ gap:22px; }
  .ranger-stage{ order:-1; align-self:center; width:220px; height:204px; margin:-28px 0 10px; }
  .ranger-stage::before{ left:50%; top:46%; width:184px; height:184px; }
  .ranger-stage::after{ left:50%; width:116px; height:10px; bottom:4px; }
  .ranger-stage .ranger-hero-img{ left:50%; width:168px; }
  .ranger-stage .ranger-hero-img[src*="reading"]{ width:140px; }
  .hero-tagline{ font-size:1.1rem; }
  .ranger-guide img{ width:78px; }
  .ranger-guide.ranger-guide-lg img{ width:92px; }
  .ranger-says{ font-size:.9rem; }
  .builder-cta .bc-ranger{ width:60px; margin:0; }
  .hero .container.ranger-hero-row{ flex-direction:column-reverse; align-items:flex-start; gap:12px; }
  .ranger-hero-row .rh-img{ width:130px; margin:0; }
  .ranger-tip{ padding:14px 16px; gap:12px; }
  .ranger-tip .rt-face{ width:46px; height:46px; }
  .ranger-tip .rt-face img{ width:46px; }
  .ranger-about{ flex-direction:column; align-items:flex-start; padding:20px; }
  .ranger-about img{ width:110px; }
}
