/* DataInvoices Help Center (14 Nov 2026) - on top of /site.css (design G tokens: --brand, --ink, --text, --cta, --blue, --line,
   --tint, --soft ...). Static, no web fonts, no inline styles (strict CSP). Copied to deploy/site-interim/help/help.css by
   scripts/help/build-help.mjs - edit THIS file (scripts/help/help.css), never the copy. */
.help { background: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the strip under the header: breadcrumbs + search */
.hc-top { background: linear-gradient(180deg, var(--tint), #fff); border-bottom: 1px solid var(--line); }
.hc-top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--lav2); }
.crumbs a { color: var(--brand); text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.hc-search { position: relative; flex: 0 1 380px; min-width: 240px; }
.hc-search input { width: 100%; height: 42px; padding: 0 16px 0 40px; border: 1px solid var(--lav2); border-radius: 999px; font: inherit; font-size: 15px;
  color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236E6883' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 15px center; }
.hc-search input:focus { outline: 3px solid #FFD84D; outline-offset: 1px; border-color: var(--brand); }
.hc-results { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 70vh; overflow: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.hc-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14px; line-height: 1.45; }
.hc-results a b { display: block; color: var(--ink); font-size: 15px; }
.hc-results a small { color: var(--blue-text); font-weight: 600; }
.hc-results a:hover, .hc-results a[aria-selected="true"] { background: var(--soft); }
.hc-results p { margin: 0; padding: 12px; font-size: 14px; }
.hc-results mark { background: #FFE9A8; color: inherit; border-radius: 3px; }

/* layout: sidebar + main */
.hc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 72px; }
.help--home .hc { grid-template-columns: minmax(0, 1fr); }
.hc-side { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 116px); overflow: auto; font-size: 14px; }
.hc-nav, .hc-nav ul { list-style: none; margin: 0; padding: 0; }
.hc-nav > li > a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.hc-nav ul { margin: 2px 0 8px 12px; padding-left: 10px; border-left: 2px solid var(--lav); }
.hc-nav ul a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; line-height: 1.4; }
.hc-nav a:hover { background: var(--tint); color: var(--brand); }
.hc-nav a[aria-current="page"] { background: var(--soft); color: var(--brand); font-weight: 700; }
.hc-toggle { display: none; }

/* article */
.hc-main { min-width: 0; }
.doc { max-width: 780px; color: var(--text); font-size: 16.5px; line-height: 1.7; }
.doc h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 96px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; scroll-margin-top: 96px; }
.doc p { margin: 0 0 14px; }
.doc__lede { font-size: 18px; color: var(--muted); }
.doc__where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; margin: 18px 0 8px; background: var(--tint);
  border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.doc__where > span { font-weight: 700; color: var(--ink); }
.menu { display: inline; padding: 1px 8px; border-radius: 6px; background: var(--soft); color: var(--brand); font-weight: 700; white-space: normal; }
.doc ol, .doc ul { margin: 0 0 18px; padding-left: 26px; }
.doc li { margin: 6px 0; }
.doc li > ol, .doc li > ul { margin: 6px 0 4px; }
.doc > ol { counter-reset: step; list-style: none; padding-left: 0; }
.doc > ol > li { counter-increment: step; position: relative; padding-left: 46px; margin: 14px 0; }
.doc > ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.doc code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .9em; background: var(--tint); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.doc strong { color: var(--ink); }
.doc a { text-underline-offset: 3px; }
.doc__toc { margin: 18px 0 8px; padding: 14px 18px; border-left: 3px solid var(--lav2); font-size: 15px; }
.doc__toc b { color: var(--ink); } .doc__toc ul { margin: 6px 0 0; padding-left: 18px; }
.shot { margin: 14px 0 18px; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(58,46,102,.10); }
.shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.callout { margin: 16px 0 20px; padding: 14px 18px; border-radius: 12px; font-size: 15.5px; border: 1px solid; }
.callout--tip { background: #EFFAF6; border-color: #BFE9DA; } .callout--tip b:first-child { color: #00805A; }
.callout--note { background: var(--tint); border-color: var(--lav); } .callout--note b:first-child { color: var(--blue-text); }
.callout--important { background: #FFF4F1; border-color: #FFD3C9; } .callout--important b:first-child { color: var(--link-hot); }
.table { overflow-x: auto; margin: 14px 0 20px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); background: var(--tint); }
.doc__related { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc__related h2 { font-size: 20px; margin-top: 18px; }
.doc__foot { margin-top: 32px; font-size: 15px; color: var(--muted); }

/* section page + home: cards */
.sec-head { max-width: 780px; margin-bottom: 18px; } .sec-head h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 10px; }
.sec-intro p { font-size: 17px; }
.sec-group h2 { font-size: 20px; margin: 30px 0 12px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card-link { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: var(--text); background: #fff; transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease; }
.card-link b { color: var(--ink); font-size: 16.5px; line-height: 1.35; }
.card-link span { font-size: 14.5px; line-height: 1.55; }
.card-link em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--blue-text); }
.card-link:hover { transform: translateY(-2px); border-color: var(--lav2); box-shadow: var(--shadow); color: var(--text); }
.hc-hero { text-align: center; padding: 18px 0 8px; } .hc-hero .lede { margin: 12px auto 0; max-width: 620px; font-size: 18px; }
.hc-start { margin: 34px auto 10px; max-width: 880px; padding: 24px 28px; border-radius: var(--r-card); background: linear-gradient(135deg, var(--soft), var(--tint)); }
.hc-start h2 { font-size: 22px; margin-bottom: 12px; }
.path { margin: 0 0 16px; padding-left: 22px; columns: 2; column-gap: 32px; } .path li { margin: 0 0 10px; break-inside: avoid; }
.hc-topics h2 { font-size: 24px; margin: 40px 0 16px; }

/* phones / tablets */
@media (max-width: 900px) {
  .bar .nav { display: none; }
  .hc { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 18px; }
  .hc-toggle { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 9px 16px; border: 1px solid var(--lav2); border-radius: 999px;
    background: #fff; color: var(--brand); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
  .hc-toggle::after { content: "▾"; }
  .hc-toggle[aria-expanded="true"]::after { content: "▴"; }
  .js .hc-side { display: none; }
  .js .hc-side.is-open { display: block; }
  .hc-side { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
  .hc-search { flex-basis: 100%; }
  .path { columns: 1; }
}
@media (max-width: 560px) {
  .bar__btns .link-login { display: none; }
  .doc { font-size: 16px; }
  .doc > ol > li { padding-left: 40px; }
  .hc-start { padding: 20px; }
}

/* print: the article only */
@media print {
  .bar, .hc-top, .hc-side, .hc-toggle, .foot, .doc__toc, .doc__foot, .skip { display: none !important; }
  .hc { display: block; padding: 0; }
  .doc { max-width: none; font-size: 12pt; color: #000; }
  .doc a { color: #000; }
  .shot img { box-shadow: none; max-height: 120mm; width: auto; }
  .doc > ol > li::before { background: none; color: #000; border: 1px solid #000; }
  .menu { background: none; border: 1px solid #999; color: #000; }
}

/* right-to-left (Urdu / Arabic, later) */
[dir="rtl"] .doc > ol > li { padding-left: 0; padding-right: 46px; }
[dir="rtl"] .doc > ol > li::before { left: auto; right: 0; }
[dir="rtl"] .hc-nav ul { margin: 2px 12px 8px 0; padding-left: 0; padding-right: 10px; border-left: 0; border-right: 2px solid var(--lav); }
[dir="rtl"] .crumbs li + li::before { content: "‹"; margin-right: 0; margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .card-link { transition: none; } .card-link:hover { transform: none; } }
