/* AL-HARAMEEN — «طبيب الأعطال» / the Troubleshooter of the support centre (assets/js/hrm-helpdesk.js, round 12). */
.hd { margin: 26px 0 8px; scroll-margin-top: 90px; }
.hd-app { position: relative; background: linear-gradient(160deg, #0B3D26 0%, #0E5B38 60%, #0F7A44 100%); color: #fff; border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 10px 30px rgba(11, 61, 38, .18); overflow: hidden; }
.hd-app::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 165, 68, .28), transparent 70%); pointer-events: none; }
.hd-loading { min-height: 180px; opacity: .85; }
.hd-head { position: relative; z-index: 1; }
.hd-title { margin: 0; font-size: clamp(21px, 3vw, 27px); font-weight: 800; color: #fff; }
.hd-lead { margin: 6px 0 0; color: #CFE6D7; font-size: 14.5px; line-height: 1.7; max-width: 760px; }
.hd-form { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 16px; align-items: stretch; }
.hd-text { flex: 1; min-width: 0; font: inherit; font-size: 16px; line-height: 1.5; padding: 12px 14px; border: 0; border-radius: 14px; resize: vertical; min-height: 54px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 2px transparent; }
.hd-text:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold-500); }
.hd-go { flex: none; font: inherit; font-weight: 800; font-size: 16px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--gold-500); color: #1C1606; cursor: pointer; min-height: 54px; }
.hd-go:hover { background: var(--gold-300); }
.hd-model { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.hd-model-lab { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #E8F3EC; }
.hd-model-in { font: inherit; font-size: 15px; width: 150px; padding: 7px 11px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .95); color: var(--ink); text-transform: uppercase; }
.hd-model-in::placeholder { text-transform: none; color: #7C8A80; }
.hd-fam { font-size: 13px; color: var(--gold-300); font-weight: 700; }
.hd-hint { flex-basis: 100%; margin: 0; font-size: 12.5px; color: #B9D6C4; }
.hd-hint.hd-warn { color: #FFD9A0; font-weight: 700; }
.hd-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; }
.hd-chips-lab { font-size: 13px; color: #CFE6D7; font-weight: 700; }
.hd-chip { font: inherit; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; text-align: start; }
.hd-chip:hover, .hd-chip:focus-visible { background: rgba(255, 255, 255, .2); outline: none; }
.hd-all { flex-basis: 100%; }
.hd-all summary { cursor: pointer; font-size: 13px; color: var(--gold-300); font-weight: 700; width: fit-content; }
.hd-all-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.hd-out { position: relative; z-index: 1; }
.hd-out:empty { display: none; }
.hd-none { margin: 14px 0 0; color: #FFE7B8; font-weight: 700; }
.hd-card, .hd-maybe { margin-top: 16px; background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.hd-maybe { display: grid; gap: 8px; }
.hd-crumb { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.6; }
.hd-crumb b { color: var(--green-700); }
.hd-q { margin: 2px 0 10px; font-weight: 800; font-size: 16.5px; color: var(--green-900); }
.hd-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.hd-opt { font: inherit; font-size: 15px; font-weight: 700; text-align: start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper, #F7F6F1); color: var(--ink); cursor: pointer; line-height: 1.45; }
.hd-opt:hover, .hd-opt:focus-visible { border-color: var(--green-600); background: var(--green-100); outline: none; }
.hd-maybe .hd-opt { width: 100%; }
.hd-ed { display: grid; gap: 4px; }
.hd-ed span { font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.hd-badge { display: inline-block; font-size: 12px; font-weight: 800; color: #7A5B0B; background: #F6EBC8; border-radius: 999px; padding: 3px 10px; }
.hd-ct { margin: 8px 0 6px; font-size: 19px; font-weight: 800; color: var(--green-900); }
.hd-why { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink); }
.hd-faq { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-soft); border-inline-start: 3px solid var(--gold-500); padding-inline-start: 10px; }
.hd-ctx:empty { display: none; }
.hd-ctx { margin-top: 12px; background: var(--green-100); border-radius: 14px; padding: 10px 14px; }
.hd-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; line-height: 1.6; }
.hd-facts li::before { content: "• "; color: var(--green-600); }
.hd-facts .hd-alert { font-weight: 800; color: #7A3D00; }
.hd-facts .hd-alert::before { content: ""; }
.hd-code { margin: 6px 0 0; font-size: 14px; }
.hd-code b { font-family: ui-monospace, Consolas, monospace; font-size: 15px; color: var(--green-700); unicode-bidi: isolate; }
.hd-times { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.hd-times li { display: flex; justify-content: space-between; gap: 8px; background: #fff; border-radius: 10px; padding: 6px 10px; font-size: 13.5px; }
.hd-times b { font-variant-numeric: tabular-nums; }
.hd-times b .ap { font-size: 11px; margin-inline-start: 2px; color: var(--ink-soft); }
.hd-pick { margin-top: 6px; }
.hd-fix { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.hd-sub { margin: 4px 0 6px; font-size: 14px; font-weight: 800; color: var(--green-700); }
.hd-steps { margin: 4px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: 15px; line-height: 1.65; }
.hd-steps li::marker { color: var(--green-600); font-weight: 800; }
.hd-note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); background: #FBF7EA; border-radius: 10px; padding: 7px 10px; }
.hd-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hd-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 800; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--green-600); background: #fff; color: var(--green-700); text-decoration: none; cursor: pointer; }
.hd-btn:hover { background: var(--green-100); }
.hd-btn-v { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.hd-btn-v:hover { background: var(--green-600); }
.hd-wa { background: #1FA855; border-color: #1FA855; color: #fff; }
.hd-wa:hover { background: #17924A; }
.hd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.hd-tools-lab { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.hd-tool { font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--green-100); color: var(--green-700); text-decoration: none; }
.hd-tool:hover { background: #D2E8DA; }
.hd-tool-gold { background: #F6EBC8; color: #6E5208; }
.hd-feedback { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hd-ok, .hd-no { font: inherit; font-size: 15px; font-weight: 800; padding: 11px 16px; border-radius: 12px; cursor: pointer; border: 0; }
.hd-ok { background: var(--green-700); color: #fff; }
.hd-ok:hover { background: var(--green-600); }
.hd-no { background: #F3EFE4; color: #6B4A12; }
.hd-no:hover { background: #ECE4CF; }
.hd-nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.hd-link { font: inherit; font-size: 13.5px; font-weight: 700; color: var(--green-700); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hd-solved p { margin: 0; font-size: 17px; font-weight: 800; color: var(--green-700); }
.hd-case { margin: 12px 0 0; white-space: pre-wrap; font-family: inherit; font-size: 13.5px; line-height: 1.7; background: #F7F6F1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; max-height: 300px; overflow: auto; }
.hd-dlg { position: fixed; inset: 0; margin: auto; border: 0; padding: 0; background: transparent; width: min(94vw, 900px); max-height: 92vh; }
.hd-dlg::backdrop { background: rgba(4, 20, 12, .82); }
.hd-dlg video { width: 100%; max-height: calc(92vh - 64px); border-radius: 14px; background: #000; display: block; }
.hd-dlg-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; color: #fff; font-weight: 700; font-size: 14px; }
.hd-dlg-bar button { min-height: 42px; padding: 8px 18px; border-radius: 12px; border: 0; font: inherit; font-weight: 800; background: #fff; color: #0b3d26; cursor: pointer; }
/* the city chooser inside a cause (hrm-citypick.js) — the same look as the tool pages */
.hd .hcp-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.hd .hcp-input { flex: 1; min-width: 180px; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.hd .hcp-geo { font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--green-700); cursor: pointer; }
.hd .hcp-list { margin-top: 6px; max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.hd .hcp-list:empty { display: none; }
.hd .hcp-item { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; width: 100%; text-align: start; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; }
.hd .hcp-item:hover, .hd .hcp-item:focus { background: var(--green-100); outline: none; }
.hd .hcp-city { font-weight: 700; }
.hd .hcp-country { grid-row: 2; font-size: 12.5px; color: var(--ink-soft); }
.hd .hcp-code { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--green-700); unicode-bidi: isolate; }
.hd .hcp-msg { font-size: 12.5px; color: var(--ink-faint); min-height: 1.2em; margin-top: 4px; }
@media (max-width: 640px) {
  .hd-app { padding: 18px 14px 14px; border-radius: 18px; }
  .hd-form { flex-direction: column; }
  .hd-go { min-height: 48px; }
  .hd-card, .hd-maybe { padding: 14px; }
  .hd-opts { grid-template-columns: 1fr; }
}

/* the troubleshooter is built by hrm-helpdesk.js after its data loads: until then the empty box keeps the room it
   will take, so the banners and the tools below do not jump down (desktop CLS 0.25-0.53, audit 4 Nov 2026).
   The app first writes a small shell and grows: the room is kept always, at the smallest final height. Measured: 424 px desktop, 669-789 px on a phone. */
.hd-app { min-height: 424px; }
@media (max-width: 640px) { .hd-app { min-height: 669px; } }
@media (min-width: 641px) and (max-width: 900px) { .hd-app { min-height: 463px; } html[lang="ur"] .hd-app { min-height: 424px; } html[lang="fr"] .hd-app, html[lang="ru"] .hd-app { min-height: 488px; } }
