/**
 * Public help centre — only what the design system does not already cover.
 *
 * Uses from shared.css / the component files:
 *   .container, .container--medium   page width
 *   .card, .card--interactive        the category cards
 *   .card__title, .card__sub         their title and count
 *   .btn, .btn--primary              the search button
 *   .field__input                    the search field
 *   .sec-eyebrow                     the hero eyebrow
 *   .sr-only                         the search label
 */

/* ── Hero ─────────────────────────────────────────────────────────── */

.hc-hero {
    background: var(--sam-light);
    padding: var(--s-7) 0 var(--s-6);
}

.hc-hero__title {
    margin: var(--s-2) 0 0;
    font-size: 2.5rem;
    line-height: 1.15;
    color: var(--sam-brown-dark);
}

.hc-hero__sub {
    margin: var(--s-3) 0 0;
    color: var(--sam-brown-dark);
    max-width: 42rem;
}

/* ── Search ───────────────────────────────────────────────────────── */

.hc-search {
    margin-top: var(--s-5);
    max-width: 34rem;
}

.hc-search__row {
    display: flex;
    gap: var(--s-2);
}

.hc-search__row .field__input {
    flex: 1 1 auto;
    min-width: 0;
}

/* ── Category cards ───────────────────────────────────────────────── */

/* The card itself is .card .card--interactive; this is only the grid it sits
   in. The shared .grid-cols-* are fixed counts, and five cards should reflow
   by available width rather than by breakpoint. */
.hc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: var(--s-4);
    margin: 0 0 var(--s-7);
    padding: 0;
    list-style: none;
}

.hc-card__peek {
    margin: var(--s-3) 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.hc-card__peek li {
    margin-top: var(--s-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Article lists ────────────────────────────────────────────────── */

.hc-body {
    padding-top: var(--s-6);
    padding-bottom: var(--s-8);
}

.hc-group + .hc-group {
    margin-top: var(--s-6);
}

.hc-group__title {
    font-size: 1.375rem;
    color: var(--sam-brown-dark);
    margin: 0 0 var(--s-3);
}

.hc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-default);
}

.hc-list__item {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--border-default);
}

/* Every red token resolves to #FF6D59, which is 2.36:1 on this background and
   below AA for text. The brand stays in the underline, the contrast in the ink. */
.hc-list__link,
.hc-related__link,
.hc-body-copy a {
    color: var(--sam-brown-dark);
    text-decoration: underline;
    text-decoration-color: var(--sam-red);
    text-underline-offset: 3px;
}

.hc-list__link {
    font-weight: 500;
}

.hc-list__link:hover,
.hc-list__link:focus-visible {
    text-decoration-thickness: 2px;
}

.hc-list__excerpt {
    margin: var(--s-1) 0 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.hc-empty {
    color: var(--text-secondary);
}

/* ── Breadcrumbs ──────────────────────────────────────────────────── */

.hc-crumbs {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--s-4);
}

.hc-crumbs__link {
    color: var(--text-secondary);
}

.hc-crumbs__sep {
    margin: 0 var(--s-2);
}

.hc-crumbs__current {
    color: var(--sam-dark);
}

/* ── Article ──────────────────────────────────────────────────────── */

.hc-article {
    padding-top: var(--s-6);
    padding-bottom: var(--s-8);
}

.hc-article__title {
    font-size: 2.25rem;
    line-height: 1.2;
    color: var(--sam-brown-dark);
    margin: 0 0 var(--s-5);
}

/* The body is imported HTML, so it is styled by element rather than by class. */
.hc-body-copy h2 {
    font-size: 1.5rem;
    color: var(--sam-brown-dark);
    margin: var(--s-6) 0 var(--s-3);
}

.hc-body-copy h3 {
    font-size: 1.1875rem;
    color: var(--sam-brown-dark);
    margin: var(--s-5) 0 var(--s-2);
}

.hc-body-copy p {
    margin: 0 0 var(--s-4);
    line-height: 1.7;
}

.hc-body-copy ul,
.hc-body-copy ol {
    margin: 0 0 var(--s-4) var(--s-5);
}

.hc-body-copy ul { list-style: disc; }
.hc-body-copy ol { list-style: decimal; }
.hc-body-copy li { margin-bottom: var(--s-1); line-height: 1.7; }

.hc-body-copy img {
    max-width: 100%;
    height: auto;
    margin: var(--s-5) 0;
    border-radius: var(--radius-md);
}

.hc-body-copy blockquote {
    border-left: 3px solid var(--sam-red);
    padding-left: var(--s-4);
    margin: var(--s-5) 0;
    color: var(--text-secondary);
}

.hc-body-copy iframe {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: var(--s-5) 0;
    border: 0;
}

.hc-updated {
    margin-top: var(--s-6);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.hc-related {
    margin-top: var(--s-7);
    padding-top: var(--s-5);
    border-top: 1px solid var(--border-default);
}

.hc-related__title {
    font-size: 1.125rem;
    color: var(--sam-brown-dark);
    margin: 0 0 var(--s-3);
}

.hc-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hc-related__list li + li {
    margin-top: var(--s-2);
}

@media (max-width: 767px) {
    .hc-hero__title { font-size: 1.875rem; }
    .hc-article__title { font-size: 1.75rem; }
    .hc-search__row { flex-wrap: wrap; }
    .hc-search__row .btn { width: 100%; }
}

.hc-contact {
    padding-bottom: var(--s-8);
}
