/* ==========================================================================
   GovSavi Help Center Theme
   Bootstrap 5 loaded first — this file keeps only brand-specific overrides.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    --hc-purple-900: #2a1340;
    --hc-purple-800: #351950;
    --hc-purple-700: #3e1d5c;
    --hc-purple-600: #462064;
    --hc-purple-500: #5a2d80;
    --hc-lavender-100: #efe8f4;
    --hc-lavender-50: #f5f2f8;

    --hc-ink: #1a1035;
    --hc-body: #55556b;
    /* 4.9:1 on the white/lavender surfaces - the lighter grey in the design
       comp only reached 3.3:1, below the WCAG 2.1 AA minimum for body text. */
    --hc-muted: #6e6e84;
    --hc-line: #e9e5f0;

    --hc-white: #fff;
    --hc-surface: var(--hc-white);

    --hc-radius-sm: 8px;
    --hc-radius: 12px;
    --hc-radius-lg: 16px;
    --hc-radius-pill: 999px;

    --hc-shadow-sm: 0 1px 2px rgba(26, 16, 53, .06);
    --hc-shadow: 0 4px 16px rgba(26, 16, 53, .07);
    --hc-shadow-lg: 0 12px 32px rgba(26, 16, 53, .10);

    --hc-container: 1120px;
    --hc-header-h: 68px;

    --hc-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base (Bootstrap Reboot overrides)
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--hc-lavender-50);
    color: var(--hc-body);
    font-family: var(--hc-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--hc-ink);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
}

p {
    margin: 0;
}

img,
svg {
    max-width: 100%;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: var(--hc-purple-500);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Visible focus ring on every interactive element. Never removed. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--hc-purple-500);
    outline-offset: 2px;
    border-radius: var(--hc-radius-sm);
}

/* On the purple hero a light ring keeps 3:1 contrast against the background. */
.hc-hero a:focus-visible,
.hc-hero button:focus-visible,
.hc-hero input:focus-visible {
    outline-color: var(--hc-white);
}

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.hc-container {
    width: 100%;
    max-width: var(--hc-container);
    margin: 0 auto;
}

.hc-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 12px 20px;
    background-color: var(--hc-purple-700);
    color: var(--hc-white);
    border-radius: 0 0 var(--hc-radius) var(--hc-radius);
    font-weight: 600;
}

.hc-skip-link:focus {
    top: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.hc-btn {
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: var(--hc-radius-pill);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.hc-btn:hover {
    text-decoration: none;
}

.hc-btn--primary {
    background-color: var(--hc-purple-700);
    color: var(--hc-white);
}

.hc-btn--primary:hover {
    background-color: var(--hc-purple-800);
    box-shadow: var(--hc-shadow);
}

.hc-btn--dark {
    background-color: var(--hc-purple-800);
    color: var(--hc-white);
    padding: 14px 26px;
    font-size: 15px;
}

.hc-btn--dark:hover {
    background-color: var(--hc-purple-900);
    box-shadow: var(--hc-shadow-lg);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.hc-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: var(--hc-white);
    border-bottom: 1px solid var(--hc-line);
}

.hc-header__inner {
    gap: 24px;
    min-height: var(--hc-header-h);
}

.hc-brand {
    gap: 10px;
    color: var(--hc-ink);
}

.hc-brand:hover {
    text-decoration: none;
}

.hc-brand__logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: contain;
}

.hc-brand__name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.hc-brand__suffix {
    color: var(--hc-muted);
    font-size: 14px;
    font-weight: 500;
}

.hc-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hc-nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hc-nav__link {
    color: #3f3f56;
    font-size: 15px;
    font-weight: 500;
}

.hc-nav__link:hover,
.hc-nav__link[aria-current="page"] {
    color: var(--hc-purple-600);
    text-decoration: none;
}

.hc-nav__link[aria-current="page"] {
    font-weight: 600;
}

/* Mobile menu toggle - hidden on desktop, shown under 900px. */
.hc-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background-color: transparent;
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-sm);
    color: var(--hc-ink);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hc-hero {
    position: relative;
    padding: 64px 0 0;
    background-color: var(--hc-purple-800);
    background-image: radial-gradient(120% 130% at 68% 8%, #5a2d80 0%, #462064 48%, #351950 100%);
}

.hc-hero__eyebrow {
    padding: 7px 16px;
    background-color: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--hc-radius-pill);
    color: var(--hc-white);
    font-size: 13px;
    font-weight: 600;
}

.hc-hero__title {
    margin: 20px 0 0;
    color: var(--hc-white);
    font-size: clamp(32px, 5vw, 46px);
    letter-spacing: -.03em;
}

.hc-hero__lead {
    max-width: 620px;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
}

/* Search ------------------------------------------------------------------ */
.hc-search {
    max-width: 560px;
    margin: 32px auto 0;
}

.hc-search__field {
    background-color: var(--hc-white);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow-lg);
}

.hc-search__icon {
    position: absolute;
    left: 18px;
    width: 18px;
    height: 18px;
    color: var(--hc-muted);
    pointer-events: none;
}

.hc-search__input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--hc-radius);
    color: var(--hc-ink);
    font-family: inherit;
    font-size: 15px;
}

.hc-search__input::placeholder {
    color: var(--hc-muted);
}

.hc-search__input:focus {
    outline: none;
    border-color: var(--hc-purple-500);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .35);
}

/* Popular terms ----------------------------------------------------------- */
.hc-popular {
    gap: 10px;
    margin-top: 18px;
}

.hc-popular__label {
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

.hc-popular__link {
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--hc-radius-pill);
    color: var(--hc-white);
    font-size: 13px;
    font-weight: 600;
    transition: background-color .18s ease;
}

.hc-popular__link:hover {
    background-color: rgba(255, 255, 255, .26);
    text-decoration: none;
}

/* The hero's lower half is painted in the page colour so the category cards
   can straddle the boundary exactly as in the design. */
.hc-hero__fold {
    height: 96px;
    margin-top: 112px;
    background-color: var(--hc-lavender-50);
}

/* --------------------------------------------------------------------------
   7. Category cards (overlap the hero fold)
   -------------------------------------------------------------------------- */
.hc-categories {
    position: relative;
    z-index: 2;
    margin-top: -152px;
}

.hc-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.hc-card {
    padding: 22px;
    background-color: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
}

.hc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hc-shadow-lg);
}

.hc-card__tile {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.hc-card__title {
    margin: 18px 0 0;
    font-size: 18px;
    font-weight: 700;
}

.hc-card__text {
    margin: 8px 0 0;
    color: #6b6b80;
    font-size: 14px;
    line-height: 1.55;
}

.hc-card__link {
    /* Pushed to the bottom so links line up across cards of unequal height. */
    margin-top: auto;
    padding-top: 16px;
    font-size: 13px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. Sections
   -------------------------------------------------------------------------- */
.hc-section {
    padding: 56px 0 0;
}

.hc-section__head {
    gap: 12px;
    margin-bottom: 22px;
}

.hc-section__title {
    font-size: 24px;
}

.hc-section__note {
    color: var(--hc-muted);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   9. Essentials banner
   -------------------------------------------------------------------------- */
.hc-essentials {
    gap: 28px;
    margin-top: 46px;
    padding: 36px 40px;
    background-color: var(--hc-lavender-100);
    border: 1px solid #e3dbf5;
    border-radius: var(--hc-radius-lg);
}

.hc-essentials__body {
    flex: 1 1 440px;
}

.hc-essentials__eyebrow {
    margin: 0;
    color: var(--hc-purple-500);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hc-essentials__title {
    margin: 8px 0 0;
    font-size: 26px;
}

.hc-essentials__text {
    max-width: 620px;
    margin: 10px 0 0;
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   10. Article list
   -------------------------------------------------------------------------- */
.hc-articles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hc-article {
    gap: 14px;
    padding: 16px 18px;
    background-color: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow-sm);
    color: var(--hc-ink);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hc-article:hover {
    transform: translateY(-2px);
    border-color: #d9cffa;
    box-shadow: var(--hc-shadow);
    text-decoration: none;
}

.hc-article__icon {
    width: 34px;
    height: 34px;
    background-color: #ede9fe;
    border-radius: 9px;
    color: var(--hc-purple-500);
    font-size: 13px;
}

.hc-article__body {
    min-width: 0;
}

.hc-article__title {
    font-size: 15px;
    font-weight: 700;
}

.hc-article__meta {
    margin-top: 2px;
    color: var(--hc-muted);
    font-size: 13px;
}

.hc-article__arrow {
    color: var(--hc-muted);
    font-size: 16px;
}

.hc-article:hover .hc-article__arrow {
    color: var(--hc-purple-500);
}

/* --------------------------------------------------------------------------
   11. Inner page scaffolding (breadcrumb + page header)
   -------------------------------------------------------------------------- */
.hc-page {
    padding: 36px 0 80px;
}

.hc-breadcrumb {
    margin-bottom: 26px;
    font-size: 14px;
}

.hc-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hc-breadcrumb__sep {
    color: var(--hc-muted);
}

.hc-breadcrumb__current {
    color: var(--hc-ink);
    font-weight: 600;
}

.hc-page-head {
    gap: 22px;
}

.hc-page-head__tile {
    width: 52px;
    height: 52px;
    margin-top: 4px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}

.hc-page-head__title {
    font-size: clamp(28px, 4vw, 36px);
    letter-spacing: -.025em;
}

.hc-page-head__sub {
    margin-top: 6px;
    font-size: 16px;
}

.hc-page-head--plain .hc-page-head__title {
    margin-bottom: 6px;
}

.hc-count {
    margin: 22px 0 16px;
    color: var(--hc-muted);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   12. Document cards (category article listing)
   -------------------------------------------------------------------------- */
.hc-docs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hc-doc {
    gap: 14px;
    min-height: 180px;
    padding: 20px;
    background-color: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow-sm);
    color: var(--hc-ink);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hc-doc:hover {
    transform: translateY(-2px);
    border-color: #d9cffa;
    box-shadow: var(--hc-shadow);
    text-decoration: none;
}

.hc-doc__icon {
    width: 34px;
    height: 34px;
    background-color: #ede9fe;
    border-radius: 9px;
    color: var(--hc-purple-500);
    font-size: 13px;
}

.hc-doc__body {
    min-width: 0;
}

.hc-doc__head {
    gap: 12px;
}

.hc-doc__title {
    font-size: 17px;
    font-weight: 700;
}

.hc-doc__arrow {
    color: var(--hc-muted);
    font-size: 16px;
}

.hc-doc:hover .hc-doc__arrow {
    color: var(--hc-purple-500);
}

.hc-doc__text {
    margin-top: 6px;
    color: #6b6b80;
    font-size: 14px;
    line-height: 1.55;
}

.hc-doc__meta {
    margin-top: 14px;
    color: var(--hc-muted);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   13. Two column layout (release notes + article)
   -------------------------------------------------------------------------- */
.hc-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   14. Release notes
   -------------------------------------------------------------------------- */
.hc-filters {
    gap: 10px;
    margin: 24px 0 26px;
}

.hc-filter {
    padding: 9px 20px;
    background-color: var(--hc-white);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-pill);
    color: var(--hc-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.hc-filter:hover {
    border-color: #cdbdf0;
}

/* Selection is carried by aria-pressed so it is exposed to assistive tech,
   not just painted. */
.hc-filter[aria-pressed="true"] {
    background-color: var(--hc-purple-900);
    border-color: var(--hc-purple-900);
    color: var(--hc-white);
}

.hc-release-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--hc-radius-lg);
}

.hc-release-link:hover,
.hc-release-link:focus-visible {
    text-decoration: none;
    color: inherit;
}

.hc-release-link:hover .hc-release,
.hc-release-link:focus-visible .hc-release {
    transform: translateY(-3px);
    box-shadow: var(--hc-shadow-lg);
}

.hc-release-link + .hc-release-link {
    margin-top: 22px;
}

.hc-release {
    padding: 24px 28px;
    background-color: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow);
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
}

.hc-release + .hc-release {
    margin-top: 22px;
}

#hc-release-list .list-group {
    gap: 22px;
}

#hc-release-list .list-group-item {
    padding: 0;
    border: none;
    background: none;
}

.hc-release__meta {
    gap: 14px;
}

.hc-version {
    padding: 5px 11px;
    background-color: var(--hc-purple-700);
    border-radius: 7px;
    color: var(--hc-white);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
}

.hc-release__date {
    color: var(--hc-body);
    font-size: 14px;
    font-weight: 600;
}

.hc-chip {
    padding: 4px 11px;
    background-color: #ede9fe;
    border-radius: var(--hc-radius-pill);
    color: var(--hc-purple-600);
    font-size: 12px;
    font-weight: 600;
}

.hc-release__title {
    margin: 16px 0 18px;
    font-size: 20px;
}

.hc-change {
    gap: 14px;
}

.hc-change + .hc-change {
    margin-top: 12px;
}

.hc-tag {
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}

.hc-tag--new {
    background-color: #dcfce7;
    color: #15803d;
}

.hc-tag--improved {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.hc-tag--fixed {
    background-color: #fef3c7;
    color: #92400e;
}

.hc-change__text {
    color: #3f3f56;
    font-size: 15px;
    line-height: 1.5;
}

/* Subscribe panel ---------------------------------------------------------- */
.hc-subscribe {
    padding: 26px;
    background-color: #f3eefb;
    border: 1px solid #e6def7;
    border-radius: var(--hc-radius-lg);
}

.hc-subscribe__icon {
    width: 40px;
    height: 40px;
    background-color: var(--hc-purple-700);
    border-radius: 10px;
    color: var(--hc-white);
}

.hc-subscribe__title {
    margin-top: 18px;
    font-size: 18px;
}

.hc-subscribe__text {
    margin-top: 8px;
    font-size: 14px;
}

.hc-subscribe__input {
    width: 100%;
    margin-top: 18px;
    padding: 12px 14px;
    background-color: var(--hc-white);
    border: 1px solid #ddd4ee;
    border-radius: var(--hc-radius-sm);
    color: var(--hc-ink);
    font-family: inherit;
    font-size: 14px;
}

.hc-subscribe__input::placeholder {
    color: var(--hc-muted);
}

.hc-subscribe__submit {
    width: 100%;
    margin-top: 12px;
    border-radius: var(--hc-radius-sm);
    padding: 13px 20px;
}

.hc-subscribe__note {
    margin-top: 12px;
    color: var(--hc-muted);
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.hc-contact-head {
    max-width: 640px;
    margin: 0 auto;
}

.hc-contact-head__title {
    font-size: clamp(28px, 4vw, 36px);
    letter-spacing: -.025em;
}

.hc-contact-head__sub {
    margin-top: 10px;
    font-size: 17px;
}

.hc-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 700px;
    margin: 36px auto 0;
}

.hc-contact-card {
    padding: 32px 24px;
    background-color: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-sm);
}

.hc-contact-card__icon {
    width: 48px;
    height: 48px;
    background-color: #ede9fe;
    border-radius: 12px;
    color: var(--hc-purple-600);
}

.hc-contact-card__label {
    margin-top: 18px;
    color: var(--hc-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hc-contact-card__value {
    margin-top: 8px;
    color: var(--hc-ink);
    font-size: 20px;
    font-weight: 700;
}

.hc-contact-card__note {
    margin-top: 10px;
    color: var(--hc-muted);
    font-size: 14px;
}

.hc-contact-cta {
    max-width: 700px;
    margin: 28px auto 0;
    padding: 22px;
    background-color: #f3eefb;
    border: 1px solid #e6def7;
    border-radius: var(--hc-radius);
    font-size: 16px;
}

.hc-contact-cta a {
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   16. Article
   -------------------------------------------------------------------------- */
.hc-doc-head__title {
    font-size: clamp(28px, 4vw, 36px);
    letter-spacing: -.025em;
}

.hc-doc-head__sub {
    margin-top: 10px;
    font-size: 17px;
}

.hc-doc-head__meta {
    margin-top: 14px;
    color: var(--hc-muted);
    font-size: 13px;
}

.hc-rule {
    height: 1px;
    margin: 28px 0;
    background-color: var(--hc-line);
    border: 0;
}

.hc-prose {
    color: #3f3f56;
    font-size: 16px;
    line-height: 1.75;
}

.hc-prose p + p {
    margin-top: 18px;
}

.hc-prose h2 {
    margin: 34px 0 16px;
    font-size: 22px;
}

.hc-prose ol {
    margin: 0;
    padding-left: 22px;
    list-style: decimal;
}

.hc-prose li + li {
    margin-top: 12px;
}

.hc-tip {
    margin: 28px 0;
    padding: 16px 20px;
    background-color: #f3eefb;
    border-left: 3px solid var(--hc-purple-500);
    border-radius: 0 var(--hc-radius-sm) var(--hc-radius-sm) 0;
    font-size: 15px;
}

.hc-tip__label {
    margin-right: 10px;
    color: var(--hc-purple-600);
    font-weight: 700;
}

.hc-feedback {
    gap: 12px;
}

.hc-feedback__label {
    margin-right: 6px;
    color: var(--hc-ink);
    font-size: 15px;
    font-weight: 700;
}

.hc-feedback__btn {
    padding: 9px 28px;
    background-color: var(--hc-white);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-pill);
    color: var(--hc-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.hc-feedback__btn:hover {
    border-color: #cdbdf0;
    background-color: #faf8fe;
}

.hc-feedback__thanks {
    color: var(--hc-purple-600);
    font-size: 15px;
    font-weight: 600;
}

/* Sidebar ------------------------------------------------------------------ */
.hc-side-card {
    padding: 22px;
    background-color: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow-sm);
}

.hc-side-card__title {
    margin-bottom: 6px;
    color: var(--hc-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hc-side-list li {
    border-bottom: 1px solid var(--hc-line);
}

.hc-side-list li:last-child {
    border-bottom: 0;
}

.hc-side-list a {
    display: block;
    padding: 13px 0;
    color: var(--hc-ink);
    font-size: 15px;
    font-weight: 600;
}

.hc-side-list a:hover {
    color: var(--hc-purple-600);
    text-decoration: none;
}

.hc-help-card {
    margin-top: 20px;
    padding: 24px;
    background-color: var(--hc-purple-600);
    border-radius: var(--hc-radius);
    color: rgba(255, 255, 255, .8);
}

.hc-help-card__title {
    color: var(--hc-white);
    font-size: 17px;
}

.hc-help-card__text {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
}

.hc-help-card__btn {
    width: 100%;
    margin-top: 18px;
    padding: 12px 20px;
    background-color: var(--hc-white);
    border-radius: var(--hc-radius-sm);
    color: var(--hc-purple-800);
}

.hc-help-card__btn:hover {
    background-color: #f0eaff;
    text-decoration: none;
}

.hc-help-card a:focus-visible,
.hc-help-card__btn:focus-visible {
    outline-color: var(--hc-white);
}

/* --------------------------------------------------------------------------
   17. Responsive (inner pages)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hc-docs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hc-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .hc-docs,
    .hc-contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hc-page-head {
        gap: 16px;
    }

    .hc-release {
        padding: 20px;
    }

    .hc-change {
        flex-direction: column;
        gap: 6px;
    }

    .hc-tag {
        align-self: flex-start;
    }
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.hc-footer {
    margin-top: 18px;
    padding: 48px 0 28px;
    background-color: var(--hc-purple-900);
    color: rgba(255, 255, 255, .72);
}

.hc-footer a {
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

.hc-footer a:hover {
    color: var(--hc-white);
}

.hc-footer a:focus-visible {
    outline-color: var(--hc-white);
}

.hc-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 32px;
}

.hc-footer__brand .hc-brand__name,
.hc-footer__title {
    color: var(--hc-white);
}

.hc-footer__title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hc-footer__tagline {
    max-width: 300px;
    margin-top: 14px;
    font-size: 14px;
}

.hc-footer__links li + li {
    margin-top: 10px;
}

.hc-footer__bottom {
    gap: 12px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   19. Responsive (home page)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hc-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hc-categories {
        margin-top: -140px;
    }

    .hc-articles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hc-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hc-nav-toggle {
        display: inline-flex;
    }

    .hc-nav {
        display: none;
        position: absolute;
        top: var(--hc-header-h);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 24px 22px;
        background-color: var(--hc-white);
        border-bottom: 1px solid var(--hc-line);
        box-shadow: var(--hc-shadow);
    }

    .hc-nav.is-open {
        display: flex;
    }

    .hc-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .hc-nav__link {
        display: block;
        padding: 10px 0;
    }

    .hc-nav .hc-btn {
        justify-content: center;
        margin-top: 8px;
    }

    .hc-header__inner {
        position: relative;
    }
}

@media (max-width: 640px) {
    .hc-hero {
        padding-top: 44px;
    }

    .hc-hero__fold {
        height: 72px;
        margin-top: 72px;
    }

    .hc-categories {
        margin-top: -110px;
    }

    .hc-categories__grid,
    .hc-articles,
    .hc-footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hc-essentials {
        padding: 28px 24px;
    }

}

/* --------------------------------------------------------------------------
   20. Search results page
   -------------------------------------------------------------------------- */

/* Search form variant used on the search results page (wider, no shadow). */
.hc-search--page {
    max-width: 100%;
    margin: 24px 0 0;
}

.hc-search--page .hc-search__field {
    box-shadow: var(--hc-shadow-sm);
    border: 1px solid var(--hc-line);
}

.hc-search__btn {
    position: absolute;
    right: 6px;
    border-radius: var(--hc-radius-sm);
    padding: 10px 22px;
}

/* Result count */
.hc-search-count {
    margin: 24px 0 4px;
    color: var(--hc-muted);
    font-size: 14px;
}

/* Results list */
.hc-search-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

/* Individual result card */
.hc-search-result {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background-color: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow-sm);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hc-search-result:hover {
    transform: translateY(-2px);
    border-color: #d9cffa;
    box-shadow: var(--hc-shadow);
}

.hc-search-result__body {
    flex: 1 1 0%;
    min-width: 0;
}

.hc-search-result__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.hc-search-result__title a {
    color: var(--hc-ink);
}

.hc-search-result__title a:hover {
    color: var(--hc-purple-600);
    text-decoration: underline;
}

.hc-search-result__excerpt {
    margin-top: 6px;
    color: var(--hc-body);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hc-search-result__excerpt mark,
.hc-search-result__excerpt em {
    background-color: #ede9fe;
    color: var(--hc-purple-600);
    font-style: normal;
    padding: 1px 3px;
    border-radius: 3px;
}

.hc-search-result__category {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background-color: var(--hc-lavender-100);
    border-radius: var(--hc-radius-pill);
    color: var(--hc-purple-600);
    font-size: 12px;
    font-weight: 600;
}

.hc-search-result__category:hover {
    background-color: #e3dbf5;
    text-decoration: none;
}

.hc-search-result__arrow {
    margin-top: 4px;
    color: var(--hc-muted);
    font-size: 16px;
}

.hc-search-result:hover .hc-search-result__arrow {
    color: var(--hc-purple-500);
}

/* Empty state */
.hc-no-results {
    text-align: center;
    padding: 60px 20px;
}

.hc-no-results__icon {
    width: 64px;
    height: 64px;
    color: var(--hc-muted);
    margin-bottom: 18px;
}

.hc-no-results__title {
    font-size: 22px;
    margin-bottom: 8px;
}

.hc-no-results__text {
    color: var(--hc-muted);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   21. Search pager
   -------------------------------------------------------------------------- */
.pager.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
}

.pager.pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-sm);
    background-color: var(--hc-surface);
    color: var(--hc-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.pager.pagination li a:hover {
    background-color: var(--hc-lavender-50);
    border-color: var(--hc-purple-500);
    color: var(--hc-purple-600);
}

.pager.pagination li.disabled a,
.pager.pagination li.disabled a:hover {
    opacity: .4;
    pointer-events: none;
    cursor: default;
}
