/* ==========================================================================
   PILOT COMMON — 2026-09-25. Opt-in usability layer for the four representative
   pages (chimney-inspection, plano, a prefab answer, contact). Loaded only by
   pages whose <body> carries class="lce-pilot", after skin.css. The other 77
   pages share skin.css/page.js and do not load this file, so they cannot change.
   The rules are the Home pilot's proven fixes, written without Home's section
   ids so they apply to whichever of these devices a page actually has.
   ========================================================================== */

/* The menu fixes (closed: visibility + inert; open: the panel ends above the console
   and scrolls inside itself) moved to the shared skin.css/page.js on 2026-09-25. */

/* The sticky-rail heading fix moved to the shared skin.css on 2026-09-25. */

/* --- Hero: Call and the appointment request in the first screen ----------- */
body.lce-pilot .hero-acts{ display:flex; flex-wrap:wrap; gap:10px; margin-top:clamp(16px,2vw,24px); }
body.lce-pilot .hero-acts .btn{ min-height:52px; }
@media (max-width:520px){
  body.lce-pilot .hero-acts{ flex-wrap:nowrap; gap:8px; }
  body.lce-pilot .hero-acts .btn-primary{ flex:0 0 auto; padding:0 14px; }
  body.lce-pilot .hero-acts [data-cb]{
    flex:1 1 0; min-width:0; white-space:normal; line-height:1.15;
    padding:4px 10px; text-align:center; text-wrap:balance;
  }
}
@media (max-width:374px){ body.lce-pilot .hero-acts .btn{ font-size:13px; padding:4px 10px; } }

/* The console's full-label opener and the orange row/city hover and focus moved to the shared
   skin.css on 2026-09-25. */

/* The Revision-D footer rules that stood here were removed on 2026-09-25: these pages now carry
   the site-wide footer v2 (footer-v2.css), and nothing here styles a footer. */

/* --- The hero photo's own label ("Illustrative photo") --------------------
   skin.css hides .hero-shot .cap below 960px and never positions it, so the
   label flowed under the photo and was clipped at every width. It now sits in
   a corner of the photograph: on a phone above the eyebrow, in a band opened
   for it; from 960px top-right, clear of the copy column. */
body.lce-pilot .hero-shot .cap{
  display:inline-flex; position:absolute; z-index:2;
  top:calc(var(--hdr-h) + 8px); left:var(--pad); right:auto; bottom:auto;
}
@media (max-width:959px){
  body.lce-pilot .hero--inner:has(.hero-shot .cap){ padding-top:calc(var(--hdr-h) + clamp(10px,2vw,26px) + 32px); }
}
@media (min-width:960px){
  body.lce-pilot .hero-shot .cap{ top:calc(var(--hdr-h) + 24px); left:auto; right:clamp(20px,2.2vw,32px); }
}
/* A longer hero label (smoke-chamber-repair, 2026-09-25: "Illustrative firebox photo. The smoke
   chamber is not shown."): it may take two lines, never be cut or hidden. Only a caption carrying
   .cap--long; the short "Illustrative photo" chips are untouched. */
body.lce-pilot .hero-shot .cap--long{
  white-space:normal; line-height:1.35; text-wrap:balance;
  max-width:calc(100vw - 2 * var(--pad));   /* 34ch forced three lines at 390 and touched the eyebrow */
}
@media (max-width:959px){
  body.lce-pilot .hero--inner:has(.hero-shot .cap--long){ padding-top:calc(var(--hdr-h) + clamp(10px,2vw,26px) + 54px); }
}
@media (min-width:960px){
  body.lce-pilot .hero-shot .cap--long{ max-width:calc(100% - 2 * clamp(20px,2.2vw,32px)); }
}

/* --- The request lead above an inline form (contact) ---------------------- */
body.lce-pilot .form-lead{ margin:0 0 10px; max-width:60ch; font-size:var(--t-meta); line-height:1.5; letter-spacing:var(--tr-meta); color:var(--grey); }

/* --- The visible note under the neutral comparison (Home's .cmp-note, for a pilot page that
   carries the Photo 1 / Photo 2 pair - frisco since 2026-09-25). Right under the slider. */
body.lce-pilot .cmp-note,
body.lce-pilot .sec > .wrap > .cmp + .cmp-note{
  margin-top:10px; max-width:52ch;
  font-size:var(--t-meta); line-height:1.5; letter-spacing:var(--tr-meta); color:var(--grey);
}
