/*
 * The help centre (templates/support/): hub, category and article pages. Lives inside .lp, so it uses the
 * landing tokens (css/landing.css: --paper, --ink, --accent, ...) and Outfit. Everything is scoped to .hc.
 */
.hc { padding: 0 var(--m) var(--section); }
.hc a { text-decoration: none; }
.hc-article :where(p, li, td) a, .hc-empty a, .hc-link { color: var(--accent-press); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hc-article :where(p, li, td) a:hover, .hc-empty a:hover, .hc-link:hover { color: var(--ink); }
.hc-wrap { max-width: 1180px; margin: 0 auto; }

/* ---------- Hero with search ---------- */
.hc-hero {
    margin: 0 calc(var(--m) * -1); padding: clamp(40px, 6vw, 84px) var(--m) clamp(36px, 5vw, 64px);
    background: radial-gradient(120% 140% at 85% 0%, var(--stage) 0%, var(--paper) 62%);
}
.hc-hero__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center; }
.hc-kicker { font-size: var(--t-small); font-weight: 600; color: var(--accent-press); letter-spacing: 0.04em; text-transform: uppercase; }
.hc-hero h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.hc-hero__lead { color: var(--soft); font-size: var(--t-m); line-height: 1.4; max-width: 34ch; }

.hc-search { display: flex; width: 100%; max-width: 620px; padding: 6px; border-radius: 999px; background: var(--surface); box-shadow: 0 18px 40px -24px rgba(23, 33, 26, 0.45), 0 0 0 1px var(--line); }
.hc-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font: inherit; font-size: 17px; color: var(--ink); outline: none; }
.hc-search input::placeholder { color: #8a948b; }
.hc-search:focus-within { box-shadow: 0 18px 40px -24px rgba(23, 33, 26, 0.45), 0 0 0 3px var(--accent); }
.hc-search .lp-btn { min-height: 48px; padding: 0 24px; }

.hc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hc-chips__label { width: 100%; font-size: var(--t-small); color: var(--soft); }
.hc-chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
    background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: var(--t-small); font-weight: 600;
    transition: box-shadow 160ms ease, background-color 160ms ease;
}
.hc-chip:hover { box-shadow: 0 0 0 1px var(--accent); }
.hc-chip[aria-current="true"] { background: var(--ink); color: var(--on-deep); box-shadow: none; }

/* ---------- Sections and cards ---------- */
.hc-section { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; }
.hc-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hc-h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.03em; }

.hc-popular { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hc-popular a {
    display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px 18px; border-radius: 16px;
    background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; line-height: 1.3;
    transition: box-shadow 160ms ease, transform 160ms ease;
}
.hc-popular a:hover { box-shadow: 0 0 0 2px var(--accent); transform: translateY(-2px); }
.hc-popular .lp-icon { color: var(--accent-press); margin-left: auto; }

.hc-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hc-cat { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.hc-cat__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--stage); color: var(--accent-press); font-size: 20px; }
.hc-cat h3 { font-size: 21px; line-height: 1.2; }
.hc-cat h3 a { color: var(--ink); }
.hc-cat h3 a:hover { color: var(--accent-press); }
.hc-cat__desc { color: var(--soft); font-size: var(--t-small); line-height: 1.45; }
.hc-cat__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.hc-cat__list a { display: block; padding: 7px 0; color: var(--ink); font-size: 16px; line-height: 1.35; border-top: 1px solid var(--line); }
.hc-cat__list a:hover { color: var(--accent-press); }
.hc-cat__all { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--t-small); color: var(--accent-press); }
.hc-cat__all .lp-icon { width: 16px; height: 16px; }

/* Article lists (search results, a category's page) */
.hc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hc-list a {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 18px 22px;
    border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink);
    transition: box-shadow 160ms ease;
}
.hc-list a:hover { box-shadow: 0 0 0 2px var(--accent); }
.hc-list__title { font-weight: 600; font-size: 19px; line-height: 1.3; }
.hc-list__summary { grid-column: 1; color: var(--soft); font-size: var(--t-small); line-height: 1.45; }
.hc-list__cat { grid-column: 1; font-size: 13px; font-weight: 600; color: var(--accent-press); text-transform: uppercase; letter-spacing: 0.04em; }
.hc-list .lp-icon { grid-column: 2; grid-row: 1 / span 3; color: var(--accent-press); }

.hc-empty { padding: 32px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- "Still need help?" band ---------- */
.hc-help {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 28px;
    padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--deep); color: var(--on-deep);
}
.hc-help__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 24px; }
.hc-help h2 { font-size: 24px; line-height: 1.2; color: #fff; }
.hc-help p { color: var(--soft-on-deep); margin-top: 4px; }

/* ---------- Tickets ---------- */
.hc-tickets { display: flex; flex-direction: column; gap: 10px; }
.hc-ticket { border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.hc-ticket summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; }
.hc-ticket summary::-webkit-details-marker { display: none; }
.hc-ticket__subject { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-ticket__date { color: var(--soft); font-size: var(--t-small); }
.hc-ticket__status { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--field); }
.hc-ticket__status--OPEN { background: #fff1c2; }
.hc-ticket__status--IN_PROGRESS { background: #d6ecff; }
.hc-ticket__status--RESOLVED { background: var(--stage); color: var(--accent-press); }
.hc-ticket__body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.hc-ticket__msg { padding: 14px 16px; border-radius: 12px; background: var(--paper); }
.hc-ticket__reply { padding: 14px 16px; border-radius: 12px; background: var(--stage); }

/* ---------- Breadcrumb ---------- */
.hc-crumbs { list-style: none; padding: 24px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--t-small); color: var(--soft); }
.hc-crumbs li + li::before { content: '/'; margin-right: 6px; color: #a5aea6; }
.hc-crumbs a { color: var(--soft); }
.hc-crumbs a:hover { color: var(--accent-press); }

/* ---------- Category and article layout ---------- */
.hc-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 28px; }
.hc-page__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.hc-page__head h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.035em; }
.hc-page__lead { color: var(--soft); font-size: var(--t-m); line-height: 1.4; }
.hc-meta { font-size: var(--t-small); color: var(--soft); }

.hc-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 10px; }
.hc-side h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); }
.hc-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.hc-side a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-size: 16px; line-height: 1.3; }
.hc-side a:hover { background: var(--surface); }
.hc-side a[aria-current="page"] { background: var(--stage); color: var(--accent-press); font-weight: 600; }
.hc-side i { width: 18px; text-align: center; color: var(--accent-press); }

/* ---------- Article body ---------- */
.hc-article { max-width: 760px; font-size: 18px; line-height: 1.65; }
.hc-article > * + * { margin-top: 18px; }
.hc-article h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; margin-top: 40px; }
.hc-article h3 { font-size: 20px; line-height: 1.3; }
.hc-article :is(ul, ol):not(.hc-steps) { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.hc-article strong { font-weight: 600; }

.hc-ui {
    display: inline-block; padding: 0 9px; border-radius: 8px; background: var(--ink); color: var(--on-deep);
    font-size: 0.86em; font-weight: 600; line-height: 1.6; white-space: nowrap; vertical-align: 0.06em;
}

.hc-steps { list-style: none; padding: 0; counter-reset: hc-step; display: flex; flex-direction: column; gap: 0; }
.hc-steps > li { counter-increment: hc-step; position: relative; padding: 0 0 34px 62px; }
.hc-steps > li::before {
    content: counter(hc-step); position: absolute; left: 0; top: -4px; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 18px;
}
.hc-steps > li:not(:last-child)::after {
    content: ''; position: absolute; left: 20px; top: 46px; bottom: 6px; width: 2px;
    background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px);
}
.hc-steps > li > * + * { margin-top: 10px; }
.hc-steps h3 { font-size: 20px; line-height: 1.3; padding-top: 4px; }

.hc-shot { margin: 14px 0 0; }
.hc-shot img { width: auto; max-width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -28px rgba(23, 33, 26, 0.5); background: var(--surface); }
.hc-shot figcaption { margin-top: 8px; font-size: var(--t-small); color: var(--soft); }
.hc-shot--missing { padding: 24px; border: 2px dashed #e0a800; border-radius: 14px; font-size: var(--t-small); color: #8a6d00; }

.hc-note { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--stage); font-size: 17px; line-height: 1.55; }
.hc-note > i { margin-top: 4px; color: var(--accent-press); }
.hc-note--warning { background: #fff4d6; }
.hc-note--warning > i { color: #b07800; }
.hc-note--info { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.hc-note__label { font-weight: 700; }

.hc-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.hc-table th, .hc-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.hc-table th { font-weight: 600; background: var(--surface); }

.hc-related { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 1000px) {
    .hc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hc-page { grid-template-columns: minmax(0, 1fr); }
    .hc-side { position: static; order: 2; }
}
@media (max-width: 640px) {
    .hc { padding-left: 16px; padding-right: 16px; }
    .hc-hero { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
    .hc-cats { grid-template-columns: minmax(0, 1fr); }
    .hc-search input { padding: 0 12px; font-size: 16px; }
    .hc-search .lp-btn { padding: 0 18px; }
    .hc-help { grid-template-columns: minmax(0, 1fr); }
    .hc-help__icon { display: none; }
    .hc-steps > li { padding-left: 52px; }
    .hc-steps > li::before { width: 36px; height: 36px; font-size: 16px; }
    .hc-steps > li:not(:last-child)::after { left: 17px; top: 40px; }
    .hc-article { font-size: 17px; }
    .hc-ticket summary { flex-wrap: wrap; }
}
