/* Help (portal) — the field crew guide on a phone.
   Palette, --font/--mono, --r and the safe-area vars come from portal.css, which loads
   first. Nothing here redefines :root; this file only styles the Help page.
   ⚠ Must stay FLAT in portal/styles/ — the precacheGlob is `styles/*`, one level only, and
   assembly FAILS on a subdirectory (scripts/static-apps.json). */

/* Back chevron in the Help header — 44px hit area, thumb-sized, per the iPad/phone mandate. */
.hp-back{
  width:44px;height:44px;flex-shrink:0;margin-left:-10px;
  display:flex;align-items:center;justify-content:center;
  background:transparent;border:0;color:var(--text2);
  font-family:var(--font);font-size:30px;line-height:1;cursor:pointer;
}
.hp-back:active{color:var(--text);}

.hp-intro{color:var(--text2);font-size:14px;line-height:1.55;margin-bottom:10px;}
.hp-hint{
  font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text3);margin-bottom:14px;
}

/* ── Accordion ─────────────────────────────────────────────────────────────
   Collapsed by default. Thirteen sections is too many to scroll on a phone, and the
   reader almost always wants exactly one of them. */
.hp-sec{border-bottom:1px solid var(--border);}
.hp-sec-btn{
  width:100%;display:flex;align-items:center;gap:11px;
  padding:15px 2px;background:transparent;border:0;cursor:pointer;
  font-family:var(--font);color:var(--text);text-align:left;
}
.hp-sec-num{
  font-family:var(--mono);font-size:11px;color:var(--blue);
  flex-shrink:0;min-width:26px;
}
.hp-sec-title{flex:1;font-size:15px;font-weight:600;line-height:1.25;}
.hp-chev{
  color:var(--text3);font-size:20px;line-height:1;flex-shrink:0;
  transition:transform .18s ease;
}
.hp-sec-btn.hp-open .hp-chev{transform:rotate(90deg);}
.hp-sec-flagged .hp-sec-num{color:var(--red);}

.hp-sec-body{padding:2px 0 18px;}
.hp-sec-body p{font-size:14.5px;line-height:1.6;color:var(--text);margin-bottom:11px;}
.hp-sec-body p:last-child{margin-bottom:0;}
.hp-h4{font-size:13px;font-weight:700;color:var(--text2);margin:16px 0 7px;
  text-transform:uppercase;letter-spacing:.05em;}

.hp-list{padding-left:19px;margin-bottom:12px;}
.hp-list li{font-size:14.5px;line-height:1.6;margin-bottom:6px;}

.hp-steps{list-style:none;counter-reset:hps;margin-bottom:13px;
  display:flex;flex-direction:column;gap:10px;}
.hp-steps li{
  counter-increment:hps;display:grid;grid-template-columns:23px 1fr;gap:10px;
  align-items:start;font-size:14.5px;line-height:1.6;
}
.hp-steps li::before{
  content:counter(hps);
  font-family:var(--mono);font-size:11px;font-weight:600;color:#fff;
  background:var(--blue);border-radius:6px;
  width:22px;height:22px;display:grid;place-items:center;margin-top:2px;
}

/* Words that appear on the worker's own screen, so they can be matched exactly. */
.hp-ui{
  font-family:var(--mono);font-size:.86em;
  background:var(--bg3);border:1px solid var(--border);border-radius:5px;
  padding:1px 5px;white-space:nowrap;
}

/* Tables become definition rows — a real table on a 390px screen either scrolls
   sideways or shrinks past readable. */
.hp-defs{display:flex;flex-direction:column;gap:1px;margin-bottom:13px;
  background:var(--border);border-radius:var(--r);overflow:hidden;}
.hp-def{background:var(--card);padding:11px 13px;}
.hp-def-k{font-size:13.5px;font-weight:600;margin-bottom:3px;}
.hp-def-v{font-size:13.5px;line-height:1.55;color:var(--text2);}

.hp-call{border-left:3px solid var(--text3);background:var(--card);
  padding:12px 14px;margin-bottom:13px;border-radius:0 var(--r) var(--r) 0;}
.hp-call p{font-size:14px;}
.hp-call-lab{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--text3);margin-bottom:6px;}
.hp-call-caution{border-left-color:var(--amber);background:rgba(232,150,15,.10);}
.hp-call-caution .hp-call-lab{color:var(--amber);}
.hp-call-stop{border-left-color:var(--red);background:rgba(214,59,59,.10);}
.hp-call-stop .hp-call-lab{color:var(--red);}

.hp-quote{border-left:3px solid var(--blue);background:var(--card2);
  padding:11px 14px;margin-bottom:12px;border-radius:0 var(--r) var(--r) 0;
  font-size:14px;font-weight:600;}

.hp-owed{border:1px dashed var(--text3);border-radius:var(--r);padding:14px;
  background:var(--card);}
.hp-owed-lab{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--red);margin-bottom:8px;}
.hp-blank{margin-top:12px;}
.hp-blank span{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--text3);margin-bottom:3px;}
.hp-blank::after{content:"";display:block;height:1px;background:var(--text3);opacity:.55;}

.hp-foot{font-size:12.5px;line-height:1.55;color:var(--text3);
  margin:26px 0 10px;padding-top:16px;border-top:1px solid var(--border);}

/* Help entry point in the home header, beside the avatar — the portal's equivalent of the
   office nav's Help-next-to-the-bell. 40px so it stays a comfortable tap target without
   crowding the avatar. */
.help-btn{
  width:40px;height:40px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:var(--card);border:1px solid var(--border);border-radius:50%;
  color:var(--text2);font-family:var(--font);font-size:17px;font-weight:700;
  cursor:pointer;
}
.help-btn:active{background:var(--bg3);color:var(--text);}
