/* Backup power plan builder (phase 1). Page-scoped pb-* classes only. No outside requests. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html:not(.js) .pb-js{display:none!important}
.js .pb-nojs{display:none!important}
.js .pb-panel{display:none}
.js .pb-panel.is-current{display:block}
.pb-lead{font-size:1.05rem}
.pb-how{list-style:none;padding:0;margin:.75rem 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;counter-reset:how}
@media (max-width:900px){.pb-how{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.pb-how{grid-template-columns:1fr}}
.pb-how li{counter-increment:how;border:1px solid var(--border);border-radius:var(--radius-sm);background:#fafbfc;padding:.85rem .9rem;margin:0}
.pb-how li::before{content:counter(how);display:inline-flex;width:1.7rem;height:1.7rem;border-radius:999px;background:var(--primary);color:#fff;font-weight:800;align-items:center;justify-content:center;margin-bottom:.35rem}
.pb-how h3{margin:.1rem 0 .3rem!important;font-size:1rem}
.pb-how p{margin:0;font-size:.93rem}
.pb-src{font-size:.85rem;color:var(--muted)}
.pb-src a,a.pb-src{color:var(--primary)}
.pb-note{background:#f0f5ff;border:1px solid #c7d7f5;border-radius:10px;padding:.7rem .8rem;font-size:.93rem}
.pb-msg{background:#fef3c7;border:1px solid #fde68a;border-radius:10px;padding:.7rem .8rem;font-size:.93rem}
.pb-progress{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;padding:0;margin:.6rem 0 1rem;counter-reset:prog}
.pb-progress li{counter-increment:prog;margin:0;padding:.3rem .75rem;border:1px solid var(--border);border-radius:999px;font-size:.88rem;color:var(--muted);background:#fff}
.pb-progress li::before{content:counter(prog) ". "}
.pb-progress li[aria-current="step"]{border-color:var(--primary);color:var(--primary);font-weight:700;background:#f0f5ff}
.pb-panel{border:0;margin:0;padding:0;min-width:0}
.pb-panel legend{font-size:1.12rem;font-weight:700;padding:0;margin-bottom:.35rem}
.pb-table{min-width:560px}
.pb-table td.pb-chk,.pb-table th.pb-chk{width:2.4rem;text-align:center}
.pb-table input[type=checkbox]{width:1.25rem;height:1.25rem;margin:.15rem 0 0;accent-color:#0b6e4f}
.pb-table label{cursor:pointer}
.pb-layer{display:inline-block;min-width:1.6rem;text-align:center;border-radius:999px;background:#eef2f7;font-weight:700;font-size:.85rem;padding:0 .4rem}
.pb-custom{border:1px dashed #94a3b8;border-radius:var(--radius-sm);padding:.8rem .9rem;margin:.8rem 0;background:#fafbfc}
.pb-custom h3{margin:0 0 .4rem!important;font-size:1rem}
.pb-fields{display:flex;flex-wrap:wrap;gap:.6rem;align-items:flex-end}
.pb-field{display:flex;flex-direction:column;font-size:.9rem;font-weight:600}
.pb-field input{font:inherit;font-weight:400;min-height:44px;padding:.35rem .55rem;border:1px solid #94a3b8;border-radius:8px;width:11rem;max-width:100%}
.pb-field input[aria-invalid=true]{border-color:#b91c1c}
.pb-err{color:#b91c1c;font-size:.88rem;margin:.3rem 0 0;min-height:0}
.pb-customlist{list-style:none;padding:0;margin:.5rem 0 0}
.pb-customlist li{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.pb-sum{background:#ecfdf5;border:1px solid #bbf7d0;border-radius:10px;padding:.7rem .8rem;margin:.8rem 0;font-size:.95rem;color:#14532d}
.pb-sum p{margin:.15rem 0}
.pb-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin:.9rem 0 .3rem}
.pb-btn{font:inherit;font-weight:700;font-size:.92rem;min-height:44px;padding:.5rem 1rem;border-radius:999px;border:1px solid var(--primary);background:var(--primary);color:#fff;cursor:pointer}
.pb-btn:hover{background:#15396a}
.pb-btn--ghost{background:#fff;color:var(--primary)}
.pb-btn--ghost:hover{background:#f0f5ff}
.pb-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.75rem;margin:.6rem 0}
.pb-card{display:block;position:relative;border:2px solid var(--border);border-radius:var(--radius-sm);background:#fff;padding:.8rem .9rem .8rem 2.6rem;cursor:pointer;min-height:44px}
.pb-card input{position:absolute;left:.9rem;top:1rem;width:1.15rem;height:1.15rem;accent-color:#0b6e4f}
.pb-card strong{display:block}
.pb-card span{display:block;font-size:.9rem;color:#374151;margin-top:.2rem}
.pb-card:has(input:checked){border-color:#0b6e4f;box-shadow:0 0 0 3px rgba(11,110,79,.15)}
.pb-card .pb-stretchtag{color:#92400e;font-weight:600}
.pb-srcline{font-size:.85rem;margin:.2rem 0 .6rem}
:focus-visible{outline:3px solid #0b6e4f;outline-offset:2px}
.pb-steps{list-style:none;padding:0;margin:.7rem 0;counter-reset:st}
.pb-step{counter-increment:st;position:relative;border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:var(--radius-sm);background:#fff;padding:.7rem .85rem .7rem 3rem;margin:0 0 .55rem;break-inside:avoid}
.pb-step::before{content:counter(st);position:absolute;left:.8rem;top:.7rem;width:1.6rem;height:1.6rem;border-radius:999px;background:var(--primary);color:#fff;font-weight:800;font-size:.85rem;display:flex;align-items:center;justify-content:center}
.pb-step--safety{border-left-color:#b91c1c}
.pb-step--safety::before{background:#b91c1c}
.pb-step__text{margin:0 0 .3rem!important}
.pb-step__link{font-weight:700;font-size:.92rem}
.pb-scope{margin:.25rem 0 .4rem!important;font-size:.9rem;background:#f9fafb;border:1px solid var(--border);border-radius:8px;padding:.4rem .6rem}
.pb-scope__k{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:700}
.pb-stretch{background:#fef3c7;border:1px solid #fde68a;border-radius:10px;padding:.6rem .75rem;font-size:.93rem}
.pb-example{border:1px solid var(--border);border-radius:var(--radius);padding:.9rem 1rem;margin:.9rem 0;background:#fcfdff}
.pb-example h3{margin:.2rem 0 .25rem!important}
.pb-label{display:inline-block;font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#0b6e4f;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:999px;padding:.1rem .6rem}
.pb-meta{color:var(--muted);font-size:.92rem;margin:.2rem 0!important}
.pb-all-wrap>summary,.pb-plan>summary{cursor:pointer;font-weight:700;min-height:44px;display:list-item;padding:.6rem .2rem}
.pb-plan{border-top:1px solid var(--border);padding:0 .2rem}
.pb-plan>summary{font-weight:600}
.pb-result h3{margin-top:.2rem}
.pb-result h4{margin:1rem 0 .3rem;font-size:1.02rem}
.pb-rt{border:1px solid var(--border);border-radius:var(--radius-sm);padding:.8rem .9rem;background:#fafbfc;margin:1rem 0}
.pb-rt .table{min-width:480px}
.pb-status{color:var(--muted);font-size:.92rem}
.pb-ws{min-width:620px}
.pb-ws td.blank{height:2rem}
.pb-ck{list-style:none;padding-left:0}
.pb-ck li::before{content:"\2610";margin-right:.45rem}
.pb-url{font-size:.82rem;color:var(--muted);word-break:break-all}
.pb-print-only{display:none}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{
  @page{margin:14mm}
  body{background:#fff;font-size:11pt}
  .pb-print-only{display:block!important}
  .hero,.article-meta,#how-it-works,#specs-by-goal,#all-plans,#how-we-build,.pb-progress,.pb-actions,.pb-custom,.pb-nojs,.pb-msg,.pb-rt-input,.pb-sum-note{display:none!important}
  body:not(.pb-has-plan) #builder{display:none!important}
  body.pb-has-plan #example-plans{display:none!important}
  body.pb-has-plan #builder .pb-panel:not([data-step="plan"]){display:none!important}
  body.pb-has-plan #builder>h2{display:none!important}
  .card{border:0!important;padding:0!important}
  .pb-step{border:1px solid #999;border-left:4px solid #333;padding-left:2.6rem}
  .pb-step--safety{border-left-color:#b91c1c}
  .pb-step__link::after,a.pb-src::after{content:" (https://www.buyagenerator.com" attr(href) ")";font-weight:400;font-size:.8rem;word-break:break-all}
  .pb-ck-group,.pb-step,.pb-rt,table{break-inside:avoid}
  #print-sheets{break-before:page}
  a{color:#000!important;text-decoration:none}
}
/* ---- Nov 23 mobile trim (Wolf) + medical priority ---- */
.pb-check{display:flex;align-items:center;gap:.4rem;font-size:.9rem;font-weight:600;min-height:44px}
.pb-check input{width:1.15rem;height:1.15rem;accent-color:#0b6e4f}
.pb-medfirst,.pb-prio--med{font-weight:700;color:#7c2d12}
.pb-prio{margin:.3rem 0 .4rem}
.pb-prio li{margin-bottom:.15rem}
.pb-ex-steps>summary,.pb-math>summary,.pb-sheets>summary{cursor:pointer;font-weight:700;color:var(--primary);min-height:44px;display:list-item;padding:.55rem .1rem}
.pb-short li{margin-bottom:.3rem}
.js #pb-specs:not(.is-open) tr.pb-more{display:none}
#pb-specs-toggle{margin-top:.2rem}
@media (max-width:600px){
  .pb-lead{font-size:1rem}
  .hero p.pb-lead{line-height:1.55}
  .pb-how{gap:.5rem}
  .pb-how li{padding:.6rem .7rem;display:grid;grid-template-columns:auto 1fr;column-gap:.6rem;align-items:start}
  .pb-how li::before{grid-row:span 2;margin:0}
  .pb-how p{font-size:.9rem;line-height:1.45}
  .pb-table{min-width:0;font-size:.86rem}
  .pb-table th,.pb-table td{padding:.42rem .3rem}
  .pb-table .pb-usual{display:none}
  .pb-specs,.pb-specs tbody,.pb-specs tr,.pb-specs th,.pb-specs td{display:block;min-width:0}
  .pb-specs{min-width:0!important;font-size:.9rem}
  .pb-specs thead{display:none}
  .pb-specs tr{border:1px solid var(--border);border-radius:10px;margin:.5rem 0;padding:.2rem .1rem;background:#fff!important}
  .pb-specs th[scope=row]{background:transparent;font-size:.98rem;border-bottom:0;padding-bottom:.1rem}
  .pb-specs td{border-bottom:0;padding:.15rem .5rem .3rem}
  .pb-specs td::before{content:attr(data-label);display:block;font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}
  .js .pb-specs:not(.is-open) tr.pb-more{display:none}
  .pb-step{padding:.6rem .7rem .6rem 2.6rem}
  .pb-step::before{left:.6rem;top:.6rem}
  .pb-scope{font-size:.84rem}
  .pb-example{padding:.75rem .8rem}
  .card{padding-left:.85rem;padding-right:.85rem}
}
@media print{
  details::details-content{content-visibility:visible!important;display:block!important}
  details>summary{display:none!important}
  #pb-specs tr.pb-more{display:table-row!important}
  #pb-specs-toggle{display:none!important}
}
.pb-gaps>summary{cursor:pointer;font-weight:600;font-size:.92rem;color:var(--primary);min-height:44px;display:list-item;padding:.5rem .1rem}
@media (max-width:600px){
  main.page{line-height:1.5}
  .pb-table td,.pb-table th{line-height:1.3}
  .pb-table{table-layout:fixed;width:100%}
  .pb-table th.pb-chk,.pb-table td.pb-chk{width:30px;padding-left:0;padding-right:0}
  .pb-table thead th:nth-child(2){width:36%}
  .pb-table thead th:nth-child(5){width:44px}
  .pb-table thead th{font-size:.78rem}
  .pb-table th[scope=row]{font-weight:600}
  .pb-fields{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
  .pb-fields .pb-field:first-child,.pb-fields .pb-check,.pb-fields #pb-cadd{grid-column:1/-1}
  .pb-field input{width:100%}
  .pb-step__text{line-height:1.42;font-size:.94rem}
  #how-we-build li{line-height:1.45;font-size:.94rem}
  .pb-specs td{font-size:.88rem;line-height:1.42}
  .pb-scope{line-height:1.35}
  .hero{padding-top:1.1rem;padding-bottom:1.1rem}
}
@media print{.pb-gaps>summary{display:none!important}}
.pb-custom>summary{cursor:pointer;min-height:44px;display:list-item;padding:.3rem 0}
.pb-custom>summary h3{display:inline;margin:0!important}
.pb-custom[open]>summary{margin-bottom:.4rem}
