/* permanent-lighting.html page styles: the instant estimate (assets/js/permanent-calculator.js)
   and the measure-from-above window (assets/js/roof-measure.js). Site tokens only, so a theme
   published in admin reaches them. */

/* ---- The calculator ------------------------------------------------------ */
.pl-calc{max-width:720px}
.pl-q{border:0;margin:0;padding:0;min-width:0}
.pl-q legend{font-family:var(--font-ui);font-weight:700;font-size:1.05rem;color:var(--navy);margin-bottom:10px;padding:0}
.pl-pills{display:flex;flex-wrap:wrap;gap:8px}
.pl-pill{position:relative;margin:0}
.form-grid .pl-pill{margin-bottom:0}
.pl-pill input{position:absolute;opacity:0;width:1px;height:1px}
.pl-pill span{display:flex;flex-direction:column;justify-content:center;min-height:44px;padding:9px 16px;border:1.5px solid var(--field-border);border-radius:12px;background:#fff;color:var(--navy);font-family:var(--font-ui);font-weight:700;font-size:.95rem;cursor:pointer}
.pl-pill span small{font-weight:500;font-size:.8rem;color:var(--muted)}
.pl-pill input:checked+span{border-color:var(--blue-dark);background:var(--band);box-shadow:0 0 0 2px var(--blue-dark) inset}
.pl-pill input:focus-visible+span{outline:3px solid var(--blue-dark);outline-offset:2px}
.pl-panel{margin-top:14px}
.pl-panel[hidden]{display:none}
.pl-panel input[type=number]{max-width:200px}
.pl-sub{margin:14px 0 8px;font-family:var(--font-ui);font-weight:700;font-size:.9rem;color:var(--navy)}
.pl-hint{margin:8px 0 0;font-size:.9rem;color:var(--muted)}
.pl-est{padding:18px 20px;border-radius:12px;background:var(--band);border-left:4px solid var(--blue)}
.pl-range{margin:0;font-family:var(--font-ui);font-weight:700;font-size:1.9rem;color:var(--navy)}
.pl-err{color:#b3261e;font-weight:700}
.pl-ok{color:var(--blue-dark);font-weight:700}
.pl-msg:empty{display:none}
.pl-msg{margin:0}
.pl-link{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--blue-dark);text-decoration:underline;cursor:pointer}
.pl-contact[hidden]{display:none}
.pl-trap{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* ---- Measure from above (a modal <dialog>) -------------------------------- */
html.rm-modal{overflow:hidden}
.rm-dlg{margin:auto;width:min(760px,calc(100vw - 32px));height:min(900px,calc(100dvh - 32px));max-width:none;max-height:none;padding:0;border:0;border-radius:16px;background:#fff;color:var(--navy);box-shadow:0 24px 60px rgba(var(--navy-deep-rgb),.45);font-family:var(--font-ui)}
.rm-dlg::backdrop{background:rgba(var(--navy-deep-rgb),.6)}
.rm-in{display:flex;flex-direction:column;gap:6px;height:100%;padding:12px 16px calc(12px + env(safe-area-inset-bottom));box-sizing:border-box;overflow:hidden}
.rm-in>*{flex:none}
.rm-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rm-t{margin:0;font:700 1.05rem var(--font-ui);color:var(--navy)}
.rm-x{width:44px;height:44px;border:0;border-radius:50%;background:var(--band);color:var(--navy);font:400 1.7rem/1 var(--font-ui);cursor:pointer}
.rm-x:focus-visible,.rm-zoom button:focus-visible{outline:3px solid var(--blue-dark);outline-offset:2px}
.rm-find{display:flex;align-items:flex-end;gap:8px}
.rm-addr{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px;font-size:.8rem;font-weight:600}
.rm-addr input{width:100%;box-sizing:border-box;padding:9px 10px;border:1.5px solid var(--field-border);border-radius:9px;font:500 1rem var(--font-ui);color:var(--navy)}
.rm-btn{min-height:42px;padding:.55em 1.1em}
.rm-hint{margin:0;font-size:.8rem;color:var(--muted)}
.rm-msg:empty{display:none}
.rm-msg{margin:0;font-size:.88rem;font-weight:600}
.rm-choices{display:flex;flex-direction:column;gap:6px}
.rm-tool{min-height:34px;padding:6px 12px;border:1.5px solid var(--line);border-radius:9px;background:#fff;color:var(--navy);font:600 .86rem var(--font-ui);cursor:pointer;text-align:left}
.rm-choices .rm-tool{min-height:44px}
.rm-link{background:none;border:0;padding:4px 0;min-height:32px;flex:none;font:700 .84rem var(--font-ui);color:var(--blue-dark);text-decoration:underline;cursor:pointer}
.rm-in>.rm-stage{flex:1 1 0;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
.rm-pic{position:relative;flex:none;width:60px;height:60px}
.rm-canvas{display:block;width:100%;height:100%;border-radius:10px;touch-action:none;cursor:crosshair;background:var(--band)}
.rm-zoom{position:absolute;right:8px;top:8px;display:flex;flex-direction:column;gap:6px}
.rm-zoom button{width:40px;height:40px;border-radius:10px;border:1.5px solid rgba(255,255,255,.6);background:rgba(var(--navy-deep-rgb),.7);color:#fff;font:700 1.3rem/1 var(--font-ui);cursor:pointer}
.rm-where{display:flex;align-items:center;gap:10px;margin:0;font-size:.84rem;font-weight:600;min-width:0}
.rm-where span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rm-use{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rm-len{margin:0;font-size:.95rem;min-width:0}
.rm-acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.rm-credit{margin:0;font-size:.68rem;line-height:1.3;color:var(--muted)}
@media (max-width:640px){
  .rm-dlg{width:100vw;height:100dvh;border-radius:0}
  .rm-in{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
}
