/* ============================================================
   /emergency/ pages, generated by scripts/emergency-pages/build.mjs.
   Layered on /trade.css, which supplies the tokens, masthead and footer.

   At the site root, never in /emergency/: netlify.toml rewrites every
   /emergency/<x> to a directory, the trap that shipped /tradies/ unstyled
   on 2026-09-21.

   These pages are read by somebody who may be standing in water or smelling
   gas, on a phone, maybe in the dark. So: one column, big type, numbers that
   are buttons, nothing that moves, nothing that waits for a script.
   ============================================================ */
.em .masthead{background:var(--ink);border-bottom:1px solid var(--ink-3)}
.em-page{padding:calc(76px + clamp(18px,4vw,40px)) 0 clamp(48px,8vw,96px)}
.em-wrap{max-width:760px;margin:0 auto;padding-inline:clamp(16px,5vw,32px)}

.em .crumbs{color:var(--steel)}
.em .crumbs a{color:var(--steel);text-decoration:underline;text-underline-offset:3px}
.em .crumbs a:hover{color:var(--ink)}
.em .crumbs li+li::before{color:var(--muted)}

.em h1{font-size:clamp(40px,8vw,72px);line-height:.95;margin-bottom:14px}
.em h2{font-size:clamp(26px,4.4vw,36px);line-height:1.02;margin:clamp(34px,6vw,48px) 0 14px}
.em-lede{font-size:clamp(17px,2.2vw,20px);line-height:1.5;color:var(--steel);max-width:58ch}
.em p{max-width:68ch}
.em section p + p{margin-top:12px}
.em a{text-underline-offset:3px}

/* 000 sits first and red, on every page. */
.em-000{
  margin-top:26px;display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;
  background:#B42318;color:#fff;border-radius:var(--r-md);padding:18px 20px;
}
.em-000 p{flex:1 1 280px;font-size:17px;line-height:1.45}
.em-000-call{
  flex:none;background:#fff;color:#B42318;font-weight:700;font-size:18px;
  padding:12px 22px;border-radius:var(--r-sm);text-decoration:none;
}
.em-000-call:hover{background:#FFE9E7}

.em-danger{
  margin-top:22px;border:2px solid #B42318;border-left-width:8px;background:#FFF5F4;
  border-radius:var(--r-md);padding:16px 20px 18px;
}
.em-danger h2{margin:0 0 8px;font-size:22px;color:#B42318;font-family:var(--sans);
  text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.em-danger p{font-size:18px;line-height:1.5;font-weight:500}

.em-steps{list-style:none;counter-reset:step;margin:0;padding:0;display:grid;gap:12px}
.em-steps li{
  counter-increment:step;position:relative;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-md);
  padding:16px 18px 16px 64px;font-size:18px;line-height:1.5;
}
.em-steps li::before{
  content:counter(step);position:absolute;left:16px;top:14px;
  width:34px;height:34px;border-radius:50%;background:var(--ink);color:var(--paper);
  font-family:var(--mono);font-weight:600;font-size:16px;
  display:flex;align-items:center;justify-content:center;
}

.em-note{color:var(--steel);margin-bottom:14px}
.em-nums{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.em-num{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:14px 18px}
.em-num-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.em-num-label{font-weight:700;font-size:17px}
.em-num-phone{
  font-family:var(--mono);font-weight:600;font-size:18px;white-space:nowrap;
  background:var(--ink);color:var(--paper);text-decoration:none;
  padding:9px 16px;border-radius:var(--r-sm);
}
.em-num-phone:hover{background:var(--ink-3)}
.em-num-when,.em-num-area{margin-top:6px;color:var(--steel);font-size:15.5px}

.em-cta{
  margin-top:clamp(40px,7vw,60px);background:var(--ink);color:var(--paper);
  border-radius:var(--r-lg);padding:clamp(22px,4vw,36px);
}
.em-cta h2{margin:0 0 12px;color:var(--paper)}
.em-cta p{color:var(--steel-dk)}
.em-cta .hero-cta{margin-top:22px}

.em-sources ul,.em-related ul{margin:0;padding-left:20px;display:grid;gap:8px}
.em-reviewed{color:var(--steel);margin-bottom:12px}
.em-sources a,.em-related a{color:var(--amber-ink)}

/* Hub */
.em-grid{list-style:none;margin:0;padding:0;display:grid;gap:10px;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.em-tile{
  display:flex;flex-direction:column;gap:6px;height:100%;text-decoration:none;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
  padding:16px 18px;transition:border-color .15s;
}
.em-tile:hover{border-color:var(--amber)}
.em-tile-t{font-family:var(--cond);font-weight:700;font-size:23px;line-height:1.05}
.em-tile-d{color:var(--steel);font-size:15px;line-height:1.45}

.em .foot ul{gap:7px}
@media (max-width:560px){
  .em-steps li{padding-left:56px;font-size:17px}
  .em-steps li::before{left:12px}
  .em-num-phone{width:100%;text-align:center}
}
@media print{
  .masthead,.em-cta,.foot,.em-related{display:none}
  .em-page{padding-top:0}
}
