/* Help Center (13/11/2026; list-item counter so a list continued after a print keeps its numbers, 19/11/2026): /ajuda pages (public) + the "Ajuda" link in the panel top bar. Theme tokens from admin.css. */
.help-link .lbl{margin-left:4px}
@media (max-width:760px){.help-link .lbl{display:none}}

/* the panel shell (opera.css) sets body{overflow:hidden} and scrolls inside .body; the public Help pages have no shell, so the page itself scrolls (19/11/2026) */
body.help-page{overflow:auto;height:auto;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--txt);font-family:var(--font)}
.help-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:14px;padding:12px 24px;background:var(--card);border-bottom:1px solid var(--line)}
.help-brand{display:flex;align-items:center;gap:10px;color:var(--txt);text-decoration:none;font-weight:700;white-space:nowrap}
.help-brand b{font-weight:600;color:var(--mut);margin-left:4px}
.help-srch{flex:1;display:flex;align-items:center;gap:8px;max-width:560px;margin:0 auto;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.help-srch input{flex:1;border:0;background:transparent;padding:9px 0;color:var(--txt);font:inherit;min-width:0}
.help-srch input:focus{outline:none}
.help-srch:focus-within{border-color:var(--acc)}
.help-act{display:flex;align-items:center;gap:8px}
.help-main{flex:1;width:100%;max-width:1120px;margin:0 auto;padding:28px 24px 48px}
/* footer (19/11/2026): brand + one line, links, copyright */
.help-foot{background:var(--card);border-top:1px solid var(--line);color:var(--mut);font-size:13.5px}
.help-foot-in{max-width:1120px;margin:0 auto;padding:26px 24px 14px;display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap}
.help-foot-brand{max-width:420px}
.help-foot-brand p{margin:8px 0 0;line-height:1.5}
.help-foot-links{display:flex;flex-wrap:wrap;gap:8px 22px}
.help-foot-links a{color:var(--txt);text-decoration:none;padding:4px 0}
.help-foot-links a:hover{color:var(--acc);text-decoration:underline}
.help-foot-copy{max-width:1120px;margin:0 auto;padding:12px 24px 22px;border-top:1px solid var(--line);font-size:12px;letter-spacing:.02em}
.help-hero{text-align:center;margin:8px 0 26px}
.help-hero h1{font-size:30px;margin:0 0 6px}
.help-hero p{color:var(--mut);margin:0}
.help-here{margin-bottom:18px;border-color:var(--acc-line)}
.help-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.help-topic{display:flex;flex-direction:column;gap:2px}
.help-th{display:flex;align-items:flex-start;gap:12px;margin-bottom:8px}
.help-th>div{flex:1;min-width:0}
.help-th h2{display:inline;font-size:17px;margin:0}
.help-th p{margin:4px 0 0}
.help-th .step-n{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--acc-soft);color:var(--acc);font-size:12px;font-weight:700;margin-right:8px;vertical-align:2px}
.help-art{display:flex;align-items:center;gap:10px;padding:10px 8px;border-radius:10px;color:var(--txt);text-decoration:none;border-top:1px solid var(--line)}
.help-art:hover{background:var(--acc-bg)}
.help-art .num{flex:none;width:24px;text-align:right;color:var(--mut);font-weight:700;font-size:13px}
.help-art .t{flex:1;min-width:0;display:flex;flex-direction:column}
.help-art .t small{color:var(--mut);font-size:12.5px;margin-top:2px}
.help-art svg.i{flex:none;width:16px;height:16px;color:var(--mut)}
.help-crumbs{margin-bottom:12px}
.help-crumbs a{color:var(--mut)}
.help-cols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.help-cols>.help-article:only-child{grid-column:1/-1;max-width:860px}
.help-article h1{font-size:26px;margin:0 0 8px}
.help-article p{line-height:1.6}
.help-lead{font-size:16px;color:var(--mut);margin:0 0 18px}
.help-h{font-size:18px;margin:26px 0 8px}
.help-steps{padding-left:0;list-style:none;margin:14px 0}
.help-steps li{position:relative;padding:10px 12px 10px 48px;margin:8px 0;border:1px solid var(--line);border-radius:12px;background:var(--bg);line-height:1.5}
.help-steps li::before{content:counter(list-item);position:absolute;left:12px;top:9px;width:26px;height:26px;border-radius:50%;background:var(--acc);color:var(--on-acc);font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center}
.help-note{margin:14px 0}
.help-fig{margin:18px 0}
.help-fig{text-align:center}
.help-fig img{display:inline-block;max-width:100%;height:auto;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.help-fig-hint{display:none}
/* phones (19/11/2026): a desktop print squeezed to 360 px was ~58 px tall and unreadable — show it at its real size and let it scroll sideways */
@media (max-width:760px){
  .help-fig>a{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border-radius:12px}
  .help-fig img{max-width:none;width:auto}
  .help-fig-hint{display:block;margin-top:6px;font-size:12px;color:var(--mut);text-align:left}
}
.help-fig figcaption{text-align:left;font-size:13px;color:var(--mut);margin-top:8px;line-height:1.5}
.help-open{margin:22px 0 6px}
.help-pn{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.help-pn .btn{max-width:100%;white-space:normal;text-align:left}
.help-related{position:sticky;top:80px}
.help-sr-t{font-size:20px;margin:0 0 14px}
@media (max-width:900px){
  .help-topics{grid-template-columns:1fr}
  .help-cols{grid-template-columns:1fr}
  .help-related{position:static}
}
@media (max-width:640px){
  .help-top{flex-wrap:wrap;padding:10px 16px;gap:10px}
  .help-brand{flex:1}
  .help-srch{order:3;flex-basis:100%;max-width:none}
  .help-act .lang{display:none}
  .help-main{padding:18px 16px 36px}
  .help-hero h1{font-size:24px}
  .help-article h1{font-size:22px}
  .help-foot-in{flex-direction:column;gap:16px;padding:22px 16px 12px}
  .help-foot-links{display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;width:100%}
  .help-foot-copy{padding:12px 16px 20px}
}
/* 26/11/2026: link to a section / step, "Este artigo ajudou?", most viewed */
.help-h,.help-steps li{scroll-margin-top:90px}
/* the li must stay display:list-item: its number is counter(list-item) (a flex li showed 0) */
.help-steps li{padding-right:44px}
.help-steps li>.help-cp{position:absolute;right:8px;top:7px;margin:0}
.help-cp{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin:-3px -4px -3px 0;border-radius:8px;color:var(--mut);opacity:.55;text-decoration:none}
.help-h .help-cp{margin-left:6px;vertical-align:middle}
.help-cp svg.i{width:15px;height:15px}
.help-cp:hover,.help-cp:focus-visible,.help-cp.copied{opacity:1;background:var(--acc-bg);color:var(--acc)}
.help-cp-tip{position:absolute;right:0;bottom:calc(100% + 4px);white-space:nowrap;font-size:12px;font-weight:600;padding:3px 8px;border-radius:6px;background:var(--txt);color:var(--bg);pointer-events:none}
.help-fb-link .help-cp-tip{right:auto;left:0}
.help-steps li:target,.help-h:target{outline:2px solid var(--acc);outline-offset:3px}
.help-fb{margin:22px 0 0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.help-fb-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.help-fb-btns{display:inline-flex;gap:8px}
.help-fb-btns button[aria-pressed=true]{border-color:var(--acc);color:var(--acc);background:var(--acc-bg)}
.help-fb-link{position:relative;margin-left:auto}
.help-fb-form{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.help-fb-form label{font-weight:600}
.help-fb-form textarea{width:100%;resize:vertical;min-height:72px}
.help-fb-done{margin:10px 0 0;display:flex;align-items:center;gap:6px}
.help-fb-done[hidden],.help-fb[hidden],.help-fb-form[hidden]{display:none}
.help-popular{margin-top:22px}
.help-article .help-popular{padding-top:16px;border-top:1px solid var(--line)}
.help-pop-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}
@media (max-width:640px){
  .help-pop-grid{grid-template-columns:1fr}
  .help-fb-link{margin-left:0}
  .help-cp{opacity:.8}
}
/* 26/11/2026 (idea 2.18): print / save as PDF for team training — only the article, prints at full width, a step or a
   print never split across pages, the article's address at the top */
.help-tools{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.help-tools[hidden]{display:none}
.help-print-url{display:none}
@media print{
  @page{size:A4;margin:14mm 12mm}
  html,body.help-page{background:#fff!important;color:#111!important;overflow:visible!important;height:auto!important;display:block!important}
  .help-top,.help-foot,footer,.help-related,.help-fb,.help-pn,.help-popular,.help-crumbs,.help-open,.help-cp,.help-fig-hint,.help-tools button{display:none!important}
  .help-main{padding:0!important;max-width:none!important}
  .help-cols{display:block!important}
  .card,.help-article{border:0!important;box-shadow:none!important;padding:0!important;background:#fff!important;max-width:none!important}
  .help-tools{display:block!important;margin:0 0 10px}
  .help-print-url{display:block;font-size:10pt;color:#555}
  .help-article h1{font-size:20pt}
  .help-steps li{break-inside:avoid;page-break-inside:avoid;border-color:#ccc!important;background:#fff!important;padding-right:12px}
  .help-steps li::before{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .help-fig{break-inside:avoid;page-break-inside:avoid}
  .help-fig>a{overflow:visible!important}
  .help-fig img{max-width:100%!important;width:auto!important;height:auto!important}
  .help-h{break-after:avoid;page-break-after:avoid}
  .alert{break-inside:avoid;border:1px solid #bbb!important;background:#fff!important;color:#111!important}
  a{color:#111!important;text-decoration:none!important}
}
/* 26/11/2026 (idea 2.16): incident banner under the top bar, from the platform status */
.help-incident{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:10px 24px;font-size:14px;border-bottom:1px solid var(--line)}
.help-incident[hidden]{display:none}
.help-incident.is-down{background:#3a1414;color:#ffc9c9;border-color:#6b2424}
.help-incident.is-degraded{background:#3a2c0c;color:#ffe2a3;border-color:#6b5317}
.help-incident small{opacity:.85}
:root[data-theme="light"] .help-incident.is-down{background:#fdecec;color:#8a1c1c;border-color:#f3b4b4}
:root[data-theme="light"] .help-incident.is-degraded{background:#fff6e0;color:#7a4b00;border-color:#f1d48a}
@media (max-width:640px){.help-incident{padding:10px 16px}}
@media print{.help-incident{display:none!important}}
/* 26/11/2026 (idea 2.6): "Ainda com dúvida?" — articles first, then the e-mail to support */
.help-contact{box-sizing:border-box;width:calc(100% - 48px);max-width:860px;margin:0 auto 28px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.help-contact h2{font-size:18px;margin:0 0 8px}
.help-contact-form{display:flex;flex-direction:column;gap:6px}
.help-contact-form[hidden],.help-contact-res[hidden],.help-contact [hidden]{display:none}
.help-contact-form label{font-weight:600}
.help-contact-form textarea{width:100%;resize:vertical;min-height:72px}
.help-contact-res{margin-top:14px}
.help-contact-lead{font-weight:600;margin:0 0 6px}
.help-contact-mail{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 0 0}
@media (max-width:640px){.help-contact{width:calc(100% - 32px);margin:0 auto 24px;padding:16px}}
@media print{.help-contact{display:none!important}}
/* 26/11/2026 (idea 2.13): articles of a screen outside the visitor's plan / role */
.help-mark{display:inline-flex;align-items:center;gap:4px;margin:4px 0 2px;font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:999px;width:max-content;max-width:100%}
.help-mark svg.i{width:12px;height:12px}
.help-mark-plan{background:var(--acc-bg);color:var(--acc)}
.help-mark-role{background:rgba(127,127,127,.15);color:var(--mut)}
.help-art.is-marked .t>b{opacity:.8}
/* 27/11/2026 (idea 2.1): the AI answer on top of the search results */
.help-answer{margin-bottom:16px;border-color:var(--acc)}
.help-answer[hidden],.help-answer [hidden]{display:none}
.help-answer-text p{margin:6px 0;line-height:1.55}
.help-answer-src{margin:10px 0 4px}
.help-answer-note{margin:8px 0 0}
