/* The help centre (owner, 2026-12-02: mock-up v1,
 * https://claude.ai/artifact/SDYG5cz93zzoBtfU4M8iAb).
 *
 * Loaded only by templates/public/help_index.html, help_group.html and
 * help_article.html, after site.css, whose tokens and shared parts (.wrap,
 * .sec, .h1/.h2, .lead, .btn, .tag, .frame, .page-hero) it builds on. Every
 * rule names one of these pages' own classes (`hc-`) or hooks (`data-hc-`),
 * so it restyles nothing elsewhere. static/js/help.js adds the search and
 * marks the part of an article being read; without it every page is
 * complete (the search box is served `hidden`).
 */

.hc-ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* An article's tile: a channel by its real mark, everything else a line icon. */
.hc-tile { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--panel); color: var(--text); flex: none; }
.hc-tile .hc-ic { width: 19px; height: 19px; }
.hc-tile.hc-mark { background: #ffffff; border: 1px solid rgba(29, 43, 63, .10); padding: 6px; }
.hc-tile.hc-mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hc-tile.hc-dark { background: var(--ink); color: var(--on-ink); }

/* ── the search box and its results ── */
.hc-hero { overflow: visible; z-index: 5; }
.hc-search { position: relative; z-index: 6; width: 100%; max-width: 600px; margin-top: 30px; text-align: left; }
.hc-search label { position: relative; display: block; }
.hc-search input { width: 100%; height: 56px; padding: 0 20px 0 52px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; font-size: 16px; box-shadow: var(--shadow); outline: none; transition: border-color .2s, box-shadow .2s; }
.hc-search input::placeholder { color: var(--faint); }
.hc-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent), var(--shadow); }
.hc-search label > .hc-ic { position: absolute; left: 20px; top: 50%; margin-top: -9px; color: var(--muted); pointer-events: none; }
.hc-search kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 12px var(--body); color: var(--faint); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.hc-search input:not(:placeholder-shown) ~ kbd { display: none; }
.hc-search.hc-small { max-width: 340px; margin: 0; }
.hc-search.hc-small input { height: 42px; font-size: 14.5px; padding-left: 42px; box-shadow: none; }
.hc-search.hc-small label > .hc-ic { left: 15px; width: 16px; height: 16px; margin-top: -8px; }
.hc-search.hc-small kbd { display: none; }
.hc-hint { margin-top: 10px; font-size: 13.5px; color: var(--faint); }
.hc-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(440px, 60vh); overflow: auto; padding: 6px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.hc-small .hc-results { min-width: min(420px, calc(100vw - 2 * var(--gutter))); right: auto; }
.hc-results a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.hc-results a:hover, .hc-results a[aria-selected="true"] { background: var(--soft); }
.hc-results a > .hc-tile { grid-row: span 2; }
.hc-results b { font-weight: 600; font-size: 15px; }
.hc-results small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-results mark { background: var(--blue-pale); color: inherit; border-radius: 3px; padding: 0 1px; }
.hc-results p { padding: 16px; color: var(--muted); font-size: 14.5px; text-align: center; }

/* ── group chips ── */
.hc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.hc-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; color: var(--muted); transition: color .18s, border-color .18s, background .18s; }
.hc-chips a:hover { color: var(--text); border-color: var(--line-2); }
.hc-chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.hc-chips b { font-weight: 600; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.hc-chips a[aria-current="page"] b { color: inherit; opacity: .7; }
.hc-chips.hc-left { justify-content: flex-start; }

/* ── "help in two places" ── */
.hc-two { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .hc-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hc-two > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-content: start; padding: clamp(20px, 3vw, 30px); }
.hc-two > div + div { border-top: 1px solid var(--line); }
@media (min-width: 820px) { .hc-two > div + div { border-top: 0; border-left: 1px solid var(--line); } }
.hc-two .hc-tile { grid-row: span 2; }
.hc-two h2 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.hc-two p { color: var(--muted); font-size: 15px; }
.hc-two .hc-appbar { grid-column: 1 / -1; margin-top: 16px; }

/* A small drawing of Prekio's top bar with its „Pagalba“ button. */
.hc-appbar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 13px; color: var(--muted); min-width: 0; }
.hc-appbar .hc-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--panel); color: var(--faint); white-space: nowrap; overflow: hidden; }
.hc-appbar .hc-q .hc-ic { width: 14px; height: 14px; }
.hc-appbar .hc-help { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.hc-appbar .hc-help .hc-ic { width: 15px; height: 15px; }
.hc-appbar .hc-av { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-pale); flex: none; }

/* ── the groups on the front page ── */
.hc-groups { display: grid; gap: clamp(44px, 6vw, 72px); }
.hc-group { scroll-margin-top: 96px; }
.hc-ghead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hc-ghead .h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.hc-ghead p { margin-top: 6px; color: var(--muted); max-width: 560px; }
.hc-more { display: inline-flex; align-items: center; gap: 6px; padding-block: 4px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.hc-more .hc-ic { width: 16px; height: 16px; transition: transform .2s; }
.hc-more:hover .hc-ic { transform: translateX(3px); }
.hc-list { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .hc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.hc-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 3px 14px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.hc-list a > .hc-tile { grid-row: span 2; align-self: start; }
.hc-list a b { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.hc-list a span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.hc-list a > .hc-go { grid-row: 1 / 3; grid-column: 3; color: var(--faint); transition: transform .2s, color .2s; }
.hc-list a:hover > .hc-go { transform: translateX(3px); color: var(--text); }
.hc-list a:hover b { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }

/* ── the slim bar on group and article pages ── */
.hc-bar { border-bottom: 1px solid var(--line); background: var(--soft); position: relative; z-index: 5; }
.hc-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.hc-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--muted); min-width: 0; }
.hc-crumbs a { padding-block: 4px; }
.hc-crumbs a:hover { color: var(--text); }
.hc-crumbs .hc-ic { width: 14px; height: 14px; color: var(--faint); }
.hc-crumbs [aria-current] { color: var(--text); font-weight: 500; }
@media (max-width: 700px) { .hc-bar .hc-search.hc-small { max-width: none; width: 100%; } .hc-crumbs .hc-cur { display: none; } }

/* ── a group's own page ── */
.hc-gtop { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(24px, 3vw, 36px); }
.hc-gtop .h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: 16px; }
.hc-gtop .lead { margin-top: 14px; max-width: 640px; }
.hc-cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 760px) { .hc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hc-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); transition: border-color .2s, box-shadow .2s; }
.hc-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.hc-card .hc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hc-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.hc-card p { color: var(--muted); font-size: 15px; }
.hc-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.hc-card li { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.hc-meta { font-size: 13px; color: var(--faint); }

/* ── an article: the group's list, the text, the contents ── */
.hc-art { display: grid; gap: 40px; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 1000px) { .hc-art { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; } }
@media (min-width: 1240px) { .hc-art { grid-template-columns: 220px minmax(0, 1fr) 200px; } }
.hc-side, .hc-toc { display: none; }
@media (min-width: 1000px) { .hc-side { display: block; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; } }
@media (min-width: 1240px) { .hc-toc { display: block; position: sticky; top: 96px; align-self: start; } }
.hc-side h2, .hc-toc h2 { font-size: 12.5px; font-weight: 600; color: var(--faint); letter-spacing: .02em; margin-bottom: 10px; }
.hc-side ol, .hc-toc ol { display: grid; gap: 1px; border-left: 1px solid var(--line); }
.hc-side ol a, .hc-toc a { display: block; margin-left: -1px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .18s, border-color .25s; }
.hc-side ol a:hover, .hc-toc a:hover { color: var(--text); }
.hc-side a[aria-current="page"], .hc-toc a.hc-on { color: var(--text); font-weight: 600; border-color: var(--ink); }
.hc-others { margin-top: 26px; display: grid; gap: 6px; }
.hc-others a { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.hc-others a:hover { color: var(--text); }
.hc-others .hc-ic { width: 14px; height: 14px; }

.hc-body { max-width: 700px; min-width: 0; }
.hc-body .hc-meta { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.hc-body h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: -.025em; margin-top: 16px; text-wrap: balance; }
.hc-sum { margin-top: 16px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.hc-section { scroll-margin-top: 96px; padding-top: clamp(34px, 4vw, 46px); }
.hc-section h2 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.3; letter-spacing: -.015em; }
.hc-section h2 a { margin-left: 8px; color: var(--faint); font-size: 1rem; opacity: 0; transition: opacity .2s; }
.hc-section h2:hover a, .hc-section h2 a:focus-visible { opacity: 1; }
.hc-section p { margin-top: 14px; font-size: 16.5px; line-height: 1.75; color: color-mix(in srgb, var(--text) 86%, var(--muted)); text-wrap: pretty; }
.hc-steps { margin-top: 18px; display: grid; counter-reset: hc-step; }
.hc-steps li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; font-size: 16px; line-height: 1.65; }
.hc-steps li::before { counter-increment: hc-step; content: counter(hc-step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font: 600 13.5px var(--body); font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.hc-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: 2px; width: 1px; background: var(--line-2); }
.hc-steps li span { padding-top: 3px; }
.hc-section .hc-note { margin-top: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--blue-tint); border: 1px solid color-mix(in srgb, var(--blue) 16%, transparent); font-size: 15px; line-height: 1.65; color: var(--text); }
.hc-note .hc-ic { width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }

.hc-tocm { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.hc-tocm summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; font-weight: 600; font-size: 15px; }
.hc-tocm summary::-webkit-details-marker { display: none; }
.hc-tocm summary .hc-ic { transition: transform .2s; }
.hc-tocm[open] summary .hc-ic { transform: rotate(180deg); }
.hc-tocm ol { padding: 0 18px 14px 36px; list-style: decimal; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.hc-tocm a { display: inline-block; padding-block: 2px; }
.hc-tocm a:hover { color: var(--text); }
@media (min-width: 1240px) { .hc-tocm { display: none; } }

/* „Visi žingsniai – jūsų Prekio sistemoje“ */
.hc-inapp { margin-top: 28px; }
.hc-inapp .frame-in { padding: clamp(18px, 2.6vw, 26px); display: grid; gap: 14px; }
.hc-inapp h2 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.hc-inapp p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.hc-inapp .btn { justify-self: start; }

/* previous / next, related, the group on a phone */
.hc-pn { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(44px, 5vw, 60px); padding-top: 28px; border-top: 1px solid var(--line); }
.hc-pn a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.hc-pn a:hover { border-color: var(--line-2); }
.hc-pn small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); }
.hc-pn small .hc-ic { width: 14px; height: 14px; }
.hc-pn b { font-weight: 600; font-size: 15px; line-height: 1.35; }
.hc-pn .hc-next { text-align: right; grid-column: 2; }
.hc-pn .hc-next small { justify-content: flex-end; }
@media (max-width: 560px) { .hc-pn { grid-template-columns: minmax(0, 1fr); } .hc-pn .hc-next { grid-column: 1; } }
.hc-rel { margin-top: 44px; }
.hc-rel > h2 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.hc-rel .hc-list { margin-top: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hc-ingroup { display: none; } }

/* "Didn't find an answer?" */
.hc-nf-sec { padding-bottom: clamp(48px, 6vw, 80px); }
.hc-nf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 20px; align-items: center; padding: clamp(20px, 3vw, 30px); }
.hc-nf h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.hc-nf p { margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .hc-nf { grid-template-columns: auto minmax(0, 1fr); } .hc-nf .btn { grid-column: 1 / -1; justify-self: start; } }
