/* Help center (/help) — views/help/*.ejs. Works inside the app layout (signed in) and the public layout (signed out).
   Logical properties only (LTR English / RTL Arabic). */
.hp { --hp-r: var(--dx-r-lg, 16px); color: var(--dx-text, #0f1b33); min-width: 0; }
.hp *, .hp *::before, .hp *::after { min-width: 0; }
.hp-card { background: #fff; border: 1px solid var(--dx-border, #e2e8f1); border-radius: var(--hp-r); box-shadow: 0 2px 14px rgba(10,26,58,.06); }

/* search */
.hp-search { padding: 1rem; margin-bottom: 1.25rem; }
.hp-search form { display: flex; gap: .5rem; }
.hp-search .form-control { border-radius: var(--dx-r-pill, 999px); padding-inline-start: 2.4rem; height: 46px; }
.hp-search .hp-s-in { position: relative; flex: 1 1 auto; }
.hp-search .hp-s-in > i { position: absolute; inset-inline-start: .95rem; top: 50%; transform: translateY(-50%); color: var(--dx-mute, #4a5566); }
.hp-search .btn { border-radius: var(--dx-r-pill, 999px); padding-inline: 1.2rem; height: 46px; white-space: nowrap; }
.hp-search .hp-s-hint { font-size: .8rem; color: var(--dx-mute, #4a5566); margin: .5rem .25rem 0; }

/* topic tiles with a cover screenshot */
.hp-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1.75rem; }
.hp-topic { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.hp-topic:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(10,26,58,.12); color: inherit; }
.hp-topic-img { position: relative; height: 96px; background: linear-gradient(135deg, #0a1a3a, #0b63d6); overflow: hidden; }
.hp-topic-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: .92; }
.hp-topic-ic { position: absolute; inset-inline-start: .6rem; bottom: -1px; width: 38px; height: 38px; border-radius: 11px 11px 0 0; background: #fff; display: grid; place-items: center; font-size: 1.15rem; color: var(--h, var(--dx-accent, #0b6fe0)); }
.hp-topic-b { padding: .6rem .75rem .75rem; }
.hp-topic-t { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.hp-topic-n { font-size: .78rem; color: var(--dx-mute, #4a5566); }

/* article cards inside a section */
.hp-sec { margin-bottom: 1.75rem; scroll-margin-top: 80px; }
.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.hp-art { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.hp-art:hover { border-color: var(--dx-accent, #0b6fe0); box-shadow: 0 4px 16px rgba(11,111,224,.12); color: inherit; }
.hp-art-ic { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: var(--dx-accent-soft, #eaf2fe); color: var(--dx-accent, #0b6fe0); }
.hp-art-t { font-weight: 700; line-height: 1.35; margin-bottom: .15rem; }
.hp-art-s { font-size: .85rem; color: var(--dx-mute, #4a5566); line-height: 1.5; margin: 0; }

/* extra cards (printable guide, support) */
.hp-extra { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; margin-bottom: 1.75rem; }

/* article */
.hp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 1200px) { .hp-layout.has-side { grid-template-columns: minmax(0, 1fr) 270px; } }
.hp-body { padding: 1.4rem 1.5rem; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.hp-body h2 { font-size: 1.2rem; font-weight: 800; margin: 1.8rem 0 .6rem; padding-bottom: .35rem; border-bottom: 1px solid var(--dx-border, #e2e8f1); }
.hp-body h2:first-child { margin-top: 0; }
.hp-body h3 { font-size: 1.05rem; font-weight: 700; margin: 1.3rem 0 .4rem; }
.hp-body p, .hp-body li { line-height: 1.85; }
.hp-body ol, .hp-body ul { padding-inline-start: 1.4rem; }
.hp-body li + li { margin-top: .2rem; }
.hp-body a { color: var(--dx-accent, #0b6fe0); }
.hp-body code { background: var(--dx-mute-soft, #eef1f5); padding: .05rem .35rem; border-radius: 6px; color: inherit; }
.hp-body strong { font-weight: 700; }
.hp-fig { margin: 1.1rem auto 1.4rem; max-width: 330px; text-align: center; }
.hp-fig.is-wide { max-width: 100%; }
.hp-fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--dx-border, #e2e8f1); box-shadow: 0 6px 24px rgba(10,26,58,.12); background: #f4f7fc; }
.hp-fig figcaption { font-size: .82rem; color: var(--dx-mute, #4a5566); margin-top: .5rem; }
.hp-zoom { display: block; cursor: zoom-in; }
.hp-body blockquote { margin: 1rem 0; padding: .75rem 1rem; border-radius: 12px; background: var(--dx-mute-soft, #eef1f5); border-inline-start: 4px solid var(--dx-border-strong, #cfd8e5); }
.hp-body blockquote p:last-child { margin-bottom: 0; }
.hp-call { position: relative; padding-inline-start: 2.6rem !important; }
.hp-call::before { font-family: 'bootstrap-icons'; position: absolute; inset-inline-start: .85rem; top: .7rem; font-size: 1.1rem; }
.hp-tip { background: var(--dx-ok-soft, #e1f4fc) !important; border-color: var(--dx-ok, #04709b) !important; }
.hp-tip::before { content: "\f46b"; color: var(--dx-ok, #04709b); }          /* bi-lightbulb */
.hp-note { background: var(--dx-info-soft, #edf0fb) !important; border-color: var(--dx-info, #3b4f8f) !important; }
.hp-note::before { content: "\f431"; color: var(--dx-info, #3b4f8f); }       /* bi-info-circle */
.hp-warning { background: var(--dx-warn-soft, #fff3df) !important; border-color: var(--dx-warn-line, #f0b44c) !important; }
.hp-warning::before { content: "\f33b"; color: var(--dx-warn, #8a4a00); }    /* bi-exclamation-triangle */
.hp-table { font-size: .9rem; margin: .5rem 0 1rem; }
.hp-table th { background: var(--dx-mute-soft, #eef1f5); white-space: nowrap; }
.hp-fallback { font-size: .85rem; }

.hp-side { padding: 1rem; align-self: start; }
@media (min-width: 1200px) { .hp-side { position: sticky; top: 76px; } }
.hp-side h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--dx-mute, #4a5566); font-weight: 700; margin: 0 0 .6rem; }
.hp-side ul { list-style: none; padding: 0; margin: 0; }
.hp-side li a { display: flex; gap: .5rem; align-items: center; padding: .4rem .5rem; border-radius: 8px; text-decoration: none; color: inherit; font-size: .9rem; line-height: 1.35; }
.hp-side li a:hover { background: var(--dx-accent-soft, #eaf2fe); }
.hp-side li a.on { background: var(--dx-accent-soft, #eaf2fe); color: var(--dx-accent-ink, #0a4fa8); font-weight: 700; }

.hp-pn { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.hp-pn a { display: block; padding: .8rem 1rem; text-decoration: none; color: inherit; }
.hp-pn a:hover { border-color: var(--dx-accent, #0b6fe0); color: inherit; }
.hp-pn small { display: block; color: var(--dx-mute, #4a5566); font-size: .78rem; }
.hp-pn b { display: block; line-height: 1.35; }
.hp-pn .is-next { text-align: end; grid-column: 2; }
.hp-help { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem 1.1rem; margin-top: 1rem; }
.hp-help .hp-help-t { flex: 1 1 220px; }

/* search results */
.hp-res { display: block; padding: 1rem 1.1rem; text-decoration: none; color: inherit; margin-bottom: .6rem; }
.hp-res:hover { border-color: var(--dx-accent, #0b6fe0); color: inherit; }
.hp-res-t { font-weight: 700; color: var(--dx-accent-ink, #0a4fa8); }
.hp-res-sec { font-size: .78rem; color: var(--dx-mute, #4a5566); }
.hp-res-s { font-size: .88rem; color: var(--dx-mute, #4a5566); margin: .25rem 0 0; }

/* public layout (signed out): the cards sit on the page background below the dark header */
body.pub .hp-search { margin-top: 0; }
@media (max-width: 575.98px) {
  .hp-body { padding: 1rem; font-size: .97rem; }
  .hp-search { padding: .75rem; }
  .hp-search .btn span { display: none; }
  .hp-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-topic-img { height: 84px; }
  .hp-pn { grid-template-columns: 1fr; }
  .hp-pn .is-next { grid-column: 1; }
}
@media print { .hp-search, .hp-side, .hp-pn, .hp-help { display: none !important; } .hp-fig { break-inside: avoid; } }
