/* FL Plumbing Tools — Premium Enhancement Module (Elite Phase B)
   Namespaced .elb-  •  same-origin  •  no external requests
   Additive & decoupled: does not depend on any calculator's internals. */

.elb-module{max-width:480px;margin:22px auto 0;padding:0 16px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:#E2E8F0;}
.elb-module *{box-sizing:border-box;}
.elb-h{font-size:1.15rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#5EEAD4;margin:0 0 4px;}
.elb-sub{font-size:.9rem;color:#94A3B8;margin:0 0 14px;}
.elb-panel{background:#0F1629;border:1px solid #1E2A44;border-radius:14px;padding:18px 16px;margin-bottom:16px;}
.elb-plan{border-top:3px solid #14B8A6;}
.elb-disclaimer{font-size:.85rem;line-height:1.5;color:#CBD5E1;background:#0A0E1A;border:1px dashed #2b3a57;border-radius:10px;padding:10px 12px;margin:2px 0 14px;}
.elb-disclaimer strong{color:#F4B942;}
.elb-cards{display:grid;grid-template-columns:1fr;gap:12px;}
.elb-card{background:#0A0E1A;border:1px solid #1E2A44;border-radius:12px;padding:14px;}
.elb-card h3{font-size:.98rem;font-weight:700;color:#E2E8F0;margin:0 0 8px;display:flex;align-items:center;gap:8px;}
.elb-card h3::before{content:"";width:8px;height:8px;border-radius:50%;background:#14B8A6;flex:0 0 auto;}
.elb-card ul{margin:0;padding-left:18px;}
.elb-card li{font-size:.88rem;line-height:1.55;color:#CBD5E1;margin:0 0 5px;}
.elb-card p{font-size:.88rem;line-height:1.55;color:#CBD5E1;margin:0 0 6px;}
.elb-card p:last-child{margin-bottom:0;}

/* Action bar */
.elb-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px;}
.elb-btn{flex:1 1 46%;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;
  background:#111c33;color:#E2E8F0;border:1px solid #24344f;border-radius:10px;padding:11px 12px;font-size:.9rem;font-weight:700;
  text-decoration:none;cursor:pointer;font-family:inherit;}
.elb-btn:hover{border-color:#14B8A6;color:#5EEAD4;}
.elb-btn:focus-visible{outline:3px solid #5EEAD4;outline-offset:2px;}
.elb-btn.elb-primary{background:#14B8A6;color:#062b28;border-color:#14B8A6;}
.elb-btn.elb-primary:hover{background:#5EEAD4;color:#062b28;}
.elb-btn.elb-save[aria-pressed="true"]{background:#183a34;color:#5EEAD4;border-color:#14B8A6;}
.elb-btn .elb-ic{font-size:1rem;line-height:1;}

/* Saved viewer */
.elb-saved{background:#0F1629;border:1px solid #1E2A44;border-radius:12px;padding:14px;margin:-4px 0 16px;}
.elb-saved h3{font-size:.95rem;margin:0 0 8px;color:#E2E8F0;}
.elb-saved ul{list-style:none;margin:0;padding:0;}
.elb-saved li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid #1E2A44;font-size:.86rem;}
.elb-saved li:last-child{border-bottom:0;}
.elb-saved a{color:#38BDF8;text-decoration:none;}
.elb-saved a:hover{text-decoration:underline;}
.elb-saved .elb-rm{background:none;border:0;color:#94A3B8;cursor:pointer;font-size:1.1rem;line-height:1;padding:2px 6px;font-family:inherit;}
.elb-saved .elb-rm:hover{color:#f87171;}
.elb-saved .elb-empty{color:#94A3B8;font-size:.86rem;margin:0;}

/* Recommendations */
.elb-recs{scroll-margin-top:80px;}
.elb-rec-group{margin:0 0 14px;}
.elb-rec-group:last-child{margin-bottom:0;}
.elb-rec-group h3{font-size:.95rem;font-weight:700;color:#5EEAD4;margin:0 0 7px;}
.elb-rec-group.elb-emergency h3{color:#FCA5A5;}
.elb-rec-group ul{list-style:none;margin:0;padding:0;}
.elb-rec-group li{margin:0 0 6px;}
.elb-rec-group a{display:block;color:#E2E8F0;text-decoration:none;background:#0A0E1A;border:1px solid #1E2A44;border-radius:9px;padding:9px 12px;font-size:.88rem;font-weight:600;}
.elb-rec-group a:hover{border-color:#14B8A6;color:#5EEAD4;}
.elb-rec-group.elb-emergency a:hover{border-color:#f87171;color:#FCA5A5;}

/* EEAT strip */
.elb-eeat{border-top:1px solid #1E2A44;padding-top:14px;margin-top:4px;}
.elb-eeat p{font-size:.8rem;line-height:1.5;color:#94A3B8;margin:0 0 5px;}
.elb-eeat p strong{color:#CBD5E1;}

/* Toast */
.elb-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(12px);
  background:#14B8A6;color:#062b28;font-weight:700;font-size:.9rem;padding:11px 18px;border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.4);z-index:9999;opacity:0;pointer-events:none;max-width:88vw;text-align:center;}
.elb-toast.elb-show{opacity:1;transform:translateX(-50%) translateY(0);}
@media (prefers-reduced-motion:no-preference){
  .elb-btn{transition:border-color .15s ease,color .15s ease,background .15s ease;}
  .elb-rec-group a{transition:border-color .15s ease,color .15s ease;}
  .elb-toast{transition:opacity .25s ease,transform .25s ease;}
}

@media (min-width:420px){.elb-cards{grid-template-columns:1fr 1fr;}}

/* Print: clean report — title + calculator/result + plan cards; hide chrome/ads. */
@media print{
  body{background:#fff!important;color:#111!important;padding:0!important;}
  .p2nav,.p2nav-menu,.tab-nav,.p2ft,.fl-p3-geo,.fl-p3-cta,.site-header .phone-link,
  .elb-actions,.elb-saved,.elb-toast,#p2-content,.quote-footer{display:none!important;}
  form#quote-form{display:none!important;}
  .site-header{position:static!important;border:0!important;background:#fff!important;}
  .site-header h1{color:#111!important;}
  #panel-calc,.tab-panel#panel-calc{display:block!important;}
  .elb-module{max-width:100%!important;color:#111!important;margin-top:8px!important;}
  .elb-panel,.elb-card{background:#fff!important;border:1px solid #ccc!important;color:#111!important;break-inside:avoid;}
  .elb-h,.elb-rec-group h3{color:#0f3d57!important;}
  .elb-card h3,.elb-card p,.elb-card li,.elb-disclaimer,.elb-eeat p{color:#222!important;}
  .elb-recs{display:none!important;}
  .card,.card-alt,.result-box{background:#fff!important;color:#111!important;border:1px solid #ccc!important;}
}

/* ── Elite Phase C — Mobile excellence & tap targets (WCAG 2.2 · additive) ──────────
   Scoped strictly to SHARED components (.p2nav*, .p2ft*, .elb*). No calculator
   selectors are touched. Loaded after the inline component CSS, so these win by
   source order at equal specificity. Purpose: ≥44px primary tap targets, comfortable
   footer targets, and no horizontal overflow from long tokens at 360–390px. */
.p2nav-toggle{width:44px;height:44px;}
.p2nav-link{min-height:44px;}
.p2nav-sub a{min-height:40px;display:flex;align-items:center;}
.p2ft-col a{padding-top:8px;padding-bottom:8px;}
.p2nav-brand,.p2nav-list,.p2nav-wrap,.p2ft-grid,.p2ft-wrap,.elb-module{max-width:100%;}
.p2nav-sub a,.p2ft-col a,.p2ft-disc,.p2ft-copy,.elb-card li,.elb-card p,.elb-rec-group a,.elb-saved li{overflow-wrap:anywhere;}
@media (max-width:400px){
  .elb-btn{min-height:44px;}
  .elb-actions{gap:8px;}
}
