/* Help center (Centro assistenza) and news: public pages. Consumes the shared tokens of main.css. */
.hc-page {
    --hc-surface: rgba(255, 255, 255, 0.06);
    --hc-surface-2: rgba(255, 255, 255, 0.1);
    --hc-surface-hover: rgba(255, 255, 255, 0.14);
    --hc-border: rgba(255, 255, 255, 0.14);
    --hc-border-strong: rgba(255, 255, 255, 0.32);
    --hc-muted: var(--ntf-color-aaaaaa);
    --hc-accent: var(--ntf-color-fb1a3f);
    --hc-accent-soft: rgba(251, 26, 63, 0.16);
    --hc-radius: 16px;
    --hc-radius-sm: 10px;
    --hc-gap: 24px;
    --hc-sticky-top: calc(var(--nav-viewport-offset, 80px) + 20px);
    color: var(--text-color);
    background: var(--background-color);
}

body.light .hc-page {
    --hc-surface: rgba(0, 0, 0, 0.04);
    --hc-surface-2: rgba(0, 0, 0, 0.06);
    --hc-surface-hover: rgba(0, 0, 0, 0.09);
    --hc-border: rgba(0, 0, 0, 0.12);
    --hc-border-strong: rgba(0, 0, 0, 0.3);
    --hc-muted: #555555;
    --hc-accent-soft: rgba(251, 26, 63, 0.1);
}

.hc-section {
    padding: 40px 0;
}

.hc-section--flush {
    padding-top: 12px;
}

.hc-section__title {
    font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.hc-section__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hc-section__heading .hc-section__title {
    margin: 0;
}

.hc-section__text {
    margin: 0;
    color: var(--hc-muted);
    line-height: 1.5;
    max-width: 640px;
}

.hc-section__more {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Hero + search */
.hc-hero {
    padding: 72px 0 56px;
    background: radial-gradient(120% 100% at 50% 0%, var(--hc-accent-soft) 0%, transparent 60%);
    text-align: center;
}

.hc-hero--compact {
    padding: 40px 0 28px;
}

.hc-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hc-hero__title {
    font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
}

.hc-hero__text {
    margin: -6px 0 0;
    max-width: 640px;
    color: var(--hc-muted);
    line-height: 1.6;
}

.hc-search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 760px;
    border: 1px solid var(--hc-border-strong);
    border-radius: 14px;
    overflow: hidden;
    background: var(--hc-surface-2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.hc-search:focus-within {
    border-color: var(--hc-accent);
}

.hc-search__icon {
    padding: 0 0 0 18px;
    color: var(--hc-muted);
    font-size: 1.3rem;
    line-height: 1;
}

.hc-search__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px 16px;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font: inherit;
    font-size: 1.05rem;
}

.hc-search__input::placeholder {
    color: var(--placeholder-color);
}

.hc-search__input:focus {
    outline: none;
}

.hc-search__button {
    flex: 0 0 auto;
    align-self: stretch;
    padding: 0 28px;
    border: 0;
    background: var(--hc-accent);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.hc-search__button:hover,
.hc-search__button:focus-visible {
    filter: brightness(1.1);
}

.hc-search--compact {
    max-width: 440px;
    box-shadow: none;
    border-radius: 12px;
}

.hc-search--compact .hc-search__input {
    padding: 12px 12px;
    font-size: 0.95rem;
}

.hc-search--compact .hc-search__button {
    padding: 0 18px;
    font-size: 0.85rem;
}

/* Quick links */
.hc-quick-links {
    padding-top: 0;
}

.hc-quick-links__grid,
.hc-card-grid {
    display: grid;
    gap: var(--hc-gap);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hc-quick-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: var(--hc-surface);
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hc-quick-link:hover,
.hc-quick-link:focus-visible {
    background: var(--hc-surface-hover);
    border-color: var(--hc-border-strong);
    transform: translateY(-2px);
}

.hc-quick-link__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hc-accent-soft);
    color: var(--hc-accent);
    font-size: 1.5rem;
}

.hc-quick-link__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hc-quick-link__title {
    font-weight: 700;
}

.hc-quick-link__text {
    color: var(--hc-muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.hc-quick-link__arrow {
    margin-left: auto;
    color: var(--hc-muted);
    font-size: 1.4rem;
}

/* Category cards (home) */
.hc-categories__grid {
    display: grid;
    gap: var(--hc-gap);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hc-category-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: var(--hc-surface);
    overflow: hidden;
    transition: border-color 160ms ease, transform 160ms ease;
}

.hc-category-card:hover,
.hc-category-card:focus-within {
    border-color: var(--hc-border-strong);
    transform: translateY(-2px);
}

.hc-category-card__head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 22px 16px;
    color: var(--text-color);
    text-decoration: none;
}

.hc-category-card__icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--hc-accent-soft);
    color: var(--hc-accent);
    font-size: 1.6rem;
}

.hc-category-card__copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.hc-category-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
}

.hc-category-card__text {
    color: var(--hc-muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.hc-category-card__sections {
    list-style: none;
    margin: 0;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
}

.hc-category-card__sections li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: var(--hc-radius-sm);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.hc-category-card__sections li a:hover,
.hc-category-card__sections li a:focus-visible {
    background: var(--hc-surface-hover);
}

.hc-category-card__badge,
.hc-subnav__count {
    flex: 0 0 auto;
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--hc-surface-2);
    color: var(--hc-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
}

.hc-category-card__more a {
    color: var(--hc-muted);
    font-size: 0.88rem;
}

.hc-category-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 14px 22px 18px;
    border-top: 1px solid var(--hc-border);
    color: var(--text-color);
    text-decoration: none;
}

.hc-category-card__stats {
    color: var(--hc-muted);
    font-size: 0.88rem;
}

.hc-category-card__cta {
    color: var(--hc-accent);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Cards (promoted + news) */
.hc-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: var(--hc-surface);
    color: var(--text-color);
    text-decoration: none;
    overflow: hidden;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hc-card:hover,
.hc-card:focus-visible {
    background: var(--hc-surface-hover);
    border-color: var(--hc-border-strong);
    transform: translateY(-2px);
}

.hc-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hc-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    flex: 1 1 auto;
}

.hc-card__label {
    color: var(--hc-accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hc-card__title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.hc-card__excerpt {
    color: var(--hc-muted);
    line-height: 1.55;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hc-card__action {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.88rem;
    font-weight: 700;
}

/* Page heading + breadcrumbs */
.hc-page-heading {
    padding-bottom: 12px;
}

.hc-page-heading__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.hc-page-heading__main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 480px;
}

.hc-page-heading__icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--hc-accent-soft);
    color: var(--hc-accent);
    font-size: 2rem;
}

.hc-page-heading__copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.hc-page-heading__copy--wide {
    margin-top: 16px;
    max-width: 880px;
}

.hc-page-heading__eyebrow {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--hc-muted);
    font-size: 0.88rem;
}

.hc-page-heading__eyebrow a {
    color: var(--hc-muted);
}

.hc-page-heading__title {
    font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.hc-page-heading__text {
    color: var(--hc-muted);
    max-width: 720px;
    margin: 0;
    line-height: 1.6;
}

.hc-page-heading__lead {
    margin: 4px 0 0;
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--hc-muted);
}

.hc-page-heading__stats {
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.hc-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hc-muted);
    font-size: 0.9rem;
}

.hc-stat i {
    color: var(--hc-accent);
}

.hc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--hc-accent-soft);
    color: var(--hc-accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hc-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--hc-border);
    border-radius: 999px;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

a.hc-chip:hover,
a.hc-chip:focus-visible {
    border-color: var(--hc-border-strong);
    background: var(--hc-surface-hover);
}

.hc-chip--static {
    color: var(--hc-muted);
}

.hc-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.9rem;
    color: var(--hc-muted);
}

.hc-breadcrumbs li + li::before {
    content: "›";
    margin-right: 10px;
    color: var(--hc-muted);
}

.hc-breadcrumbs a {
    color: var(--hc-muted);
    text-decoration: none;
}

.hc-breadcrumbs a:hover,
.hc-breadcrumbs a:focus-visible {
    color: var(--text-color);
    text-decoration: underline;
}

.hc-breadcrumbs li[aria-current="page"] span {
    color: var(--text-color);
}

/* Two-column layout with side navigation */
.hc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.hc-layout__main {
    min-width: 0;
}

.hc-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--hc-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.hc-hint i {
    color: var(--hc-accent);
    font-size: 1.2rem;
    line-height: 1.3;
}

.hc-subnav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hc-subnav__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hc-subnav__title {
    margin: 0 0 4px;
    padding: 0 10px;
    color: var(--hc-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hc-subnav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hc-subnav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-left: 3px solid transparent;
    border-radius: var(--hc-radius-sm);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.35;
}

.hc-subnav__link:hover,
.hc-subnav__link:focus-visible {
    background: var(--hc-surface-hover);
}

.hc-subnav__item.is-active .hc-subnav__link {
    border-left-color: var(--hc-accent);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: var(--hc-surface);
    font-weight: 700;
}

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

.hc-subnav__icon {
    color: var(--hc-accent);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.hc-subnav__section {
    display: block;
    padding: 0 10px 6px;
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
}

.hc-subnav__home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 0 10px;
    color: var(--hc-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.hc-subnav__home:hover,
.hc-subnav__home:focus-visible {
    color: var(--text-color);
    text-decoration: underline;
}

/* Section cards with article rows */
.hc-section-card {
    padding: 22px 24px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: var(--hc-surface);
    scroll-margin-top: var(--hc-sticky-top);
}

.hc-section-card + .hc-section-card {
    margin-top: var(--hc-gap);
}

.hc-section-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hc-border);
}

.hc-section-card__index {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hc-accent);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
}

.hc-section-card__heading {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hc-section-card__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

.hc-section-card__title a {
    color: var(--text-color);
    text-decoration: none;
}

.hc-section-card__title a:hover,
.hc-section-card__title a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hc-section-card__text {
    margin: 0;
    color: var(--hc-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.hc-section-card__count {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--hc-surface-2);
    color: var(--hc-muted);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

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

.hc-row + .hc-row {
    border-top: 1px solid var(--hc-border);
}

.hc-row__link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 8px;
    margin: 0 -8px;
    border-radius: var(--hc-radius-sm);
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 140ms ease;
}

.hc-row__link:hover,
.hc-row__link:focus-visible {
    background: var(--hc-surface-hover);
}

.hc-row.is-current .hc-row__link {
    background: var(--hc-surface);
}

.hc-row__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--hc-surface-2);
    color: var(--hc-accent);
    font-size: 1.15rem;
}

.hc-row__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hc-row__label {
    color: var(--hc-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hc-row__title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
}

.hc-row__excerpt {
    color: var(--hc-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hc-row__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hc-muted);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.hc-row__action i {
    font-size: 1.3rem;
}

.hc-row__link:hover .hc-row__action,
.hc-row__link:focus-visible .hc-row__action {
    color: var(--hc-accent);
}

.hc-empty {
    color: var(--hc-muted);
    margin: 0;
    line-height: 1.6;
}

.hc-empty--inline {
    font-size: 0.9rem;
    padding-top: 12px;
}

/* Article page */
.hc-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* Below the desktop breakpoint the sidebar dissolves: the outline goes before the body, the rest after. */
.hc-article-side {
    display: contents;
}

.hc-toc {
    order: -1;
}

.hc-article-aside {
    order: 1;
}

.hc-toc {
    padding: 18px 20px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: var(--hc-surface);
}

.hc-toc__title,
.hc-aside-help__title {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hc-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hc-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: hc-toc;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hc-toc__link {
    display: flex;
    gap: 10px;
    align-items: baseline;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
}

.hc-toc__link::before {
    counter-increment: hc-toc;
    content: counter(hc-toc);
    flex: 0 0 auto;
    min-width: 1.4em;
    color: var(--hc-accent);
    font-weight: 800;
    font-size: 0.85rem;
}

.hc-toc__link:hover,
.hc-toc__link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hc-article {
    min-width: 0;
}

.hc-article__cover {
    margin: 0 0 28px;
    border-radius: var(--hc-radius);
    overflow: hidden;
}

.hc-article__cover img {
    display: block;
    width: 100%;
    height: auto;
}

.hc-article__body {
    font-size: 1.05rem;
    line-height: 1.75;
}

.hc-article__body > * + * {
    margin-top: 1em;
}

.hc-article__body h2,
.hc-article__body h3,
.hc-article__body h4 {
    margin-top: 1.8em;
    font-weight: 800;
    line-height: 1.3;
    scroll-margin-top: var(--hc-sticky-top);
}

.hc-article__body h2 {
    font-size: 1.45rem;
    padding-top: 1em;
    border-top: 1px solid var(--hc-border);
}

.hc-article__body h3 {
    font-size: 1.2rem;
}

.hc-article__body h4 {
    font-size: 1.05rem;
}

.hc-article__body a {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hc-article__body ul,
.hc-article__body ol {
    padding-left: 1.5em;
}

.hc-article__body li + li {
    margin-top: 0.55em;
}

.hc-article__body ol > li {
    list-style: decimal;
}

.hc-article__body ul > li {
    list-style: disc;
}

.hc-article__body ol > li::marker {
    color: var(--hc-accent);
    font-weight: 800;
}

.hc-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.hc-article__body blockquote {
    margin: 1.2em 0;
    padding: 12px 20px;
    border-left: 3px solid var(--hc-accent);
    background: var(--hc-surface);
    border-radius: 0 12px 12px 0;
}

.hc-article__body pre,
.hc-article__body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.95em;
}

.hc-article__body pre {
    padding: 16px;
    overflow-x: auto;
    background: var(--hc-surface);
    border-radius: 12px;
}

.hc-article__body table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.hc-article__body th,
.hc-article__body td {
    padding: 10px 12px;
    border: 1px solid var(--hc-border);
    text-align: left;
}

.hc-article__body hr {
    border: 0;
    border-top: 1px solid var(--hr-color);
}

.hc-prevnext {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--hc-border);
}

.hc-prevnext__link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: var(--hc-surface);
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.hc-prevnext__link:hover,
.hc-prevnext__link:focus-visible {
    background: var(--hc-surface-hover);
    border-color: var(--hc-border-strong);
}

.hc-prevnext__link--next {
    text-align: right;
    align-items: flex-end;
}

.hc-prevnext__label {
    color: var(--hc-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hc-prevnext__title {
    font-weight: 700;
    line-height: 1.35;
}

.hc-article-aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hc-aside-help {
    padding: 20px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: var(--hc-surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.hc-aside-help__title {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
}

.hc-aside-help__text {
    margin: 0 0 6px;
    color: var(--hc-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Search results */
.hc-results__title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 20px;
}

.hc-results__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hc-result__link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: var(--hc-surface);
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.hc-result__link:hover,
.hc-result__link:focus-visible {
    background: var(--hc-surface-hover);
    border-color: var(--hc-border-strong);
}

.hc-result__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    color: var(--hc-muted);
    font-size: 0.85rem;
}

.hc-result__title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
}

.hc-result__snippet {
    color: var(--hc-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.hc-result__snippet mark {
    background: var(--hc-accent-soft);
    color: var(--text-color);
    border-radius: 4px;
    padding: 0 3px;
}

.hc-result__action {
    color: var(--hc-accent);
    font-size: 0.88rem;
    font-weight: 700;
}

/* Pagination */
.hc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hc-pagination__link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hc-border);
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
}

.hc-pagination__link.is-current {
    background: var(--hc-accent);
    border-color: var(--hc-accent);
    color: #ffffff;
}

.hc-pagination__ellipsis {
    color: var(--hc-muted);
    padding: 0 4px;
}

/* Contact CTA */
.hc-cta {
    padding: 48px 0 72px;
}

.hc-cta__inner {
    padding: 40px 32px;
    border-radius: var(--hc-radius);
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hc-cta__icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hc-accent-soft);
    color: var(--hc-accent);
    font-size: 1.7rem;
    margin-bottom: 4px;
}

.hc-cta__title {
    font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
    font-weight: 800;
    margin: 0;
}

.hc-cta__text {
    margin: 0;
    color: var(--hc-muted);
}

.hc-cta__button {
    margin-top: 8px;
}

/* Desktop layouts */
@media (min-width: 960px) {
    .hc-layout {
        grid-template-columns: 272px minmax(0, 1fr);
        gap: 44px;
    }

    .hc-layout--single {
        grid-template-columns: minmax(0, 1fr);
    }

    .hc-subnav {
        position: sticky;
        top: var(--hc-sticky-top);
        max-height: calc(100vh - var(--hc-sticky-top) - 24px);
        overflow-y: auto;
        padding-right: 4px;
    }
}

@media (min-width: 1024px) {
    .hc-article-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 24px 48px;
    }

    .hc-article-side {
        display: flex;
        flex-direction: column;
        gap: 24px;
        position: sticky;
        top: var(--hc-sticky-top);
        align-self: start;
        max-height: calc(100vh - var(--hc-sticky-top) - 24px);
        overflow-y: auto;
        padding-right: 4px;
    }

    .hc-toc,
    .hc-article-aside {
        order: 0;
    }
}

/* Tablet and mobile */
@media (max-width: 959px) {
    .hc-subnav__list--categories,
    .hc-subnav__home {
        display: none;
    }

    .hc-subnav__group + .hc-subnav__group {
        display: none;
    }

    .hc-subnav__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hc-subnav__link {
        border: 1px solid var(--hc-border);
        border-radius: 999px;
        padding: 7px 12px;
        font-size: 0.88rem;
        background: var(--hc-surface);
    }

    .hc-subnav__item.is-active .hc-subnav__link {
        border-color: var(--hc-accent);
        border-radius: 999px;
        background: var(--hc-accent-soft);
    }

    .hc-search-results .hc-subnav__group + .hc-subnav__group {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hc-section {
        padding: 28px 0;
    }

    .hc-hero {
        padding: 48px 0 32px;
    }

    .hc-search {
        flex-wrap: wrap;
        border-radius: 12px;
    }

    .hc-search__button {
        flex: 1 1 100%;
        padding: 14px;
    }

    .hc-search--compact .hc-search__button {
        flex: 0 0 auto;
    }

    .hc-search--compact {
        flex-wrap: nowrap;
        max-width: none;
    }

    .hc-page-heading__icon {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        border-radius: 14px;
    }

    .hc-section-card {
        padding: 18px 16px;
    }

    .hc-section-card__header {
        flex-wrap: wrap;
    }

    .hc-row__link {
        gap: 12px;
        margin: 0 -4px;
        padding: 12px 4px;
    }

    .hc-row__action-label {
        display: none;
    }

    .hc-row__icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .hc-quick-link,
    .hc-card__body,
    .hc-category-card__head {
        padding: 18px;
    }

    .hc-prevnext__link--next {
        text-align: left;
        align-items: flex-start;
    }
}
