/* ==========================================================================
   Printerval Support Center (/help)
   Standalone stylesheet — these pages do not reuse the site header/footer,
   so everything they need lives here. All classes are `hc-` prefixed.
   ========================================================================== */

:root {
    --hc-primary: #F2551B;
    --hc-primary-soft: #FF7A3D;
    --hc-blue: #2F6BFF;
    --hc-ink: #16192C;
    --hc-body: #5A6072;
    --hc-muted: #8A90A2;
    --hc-line: #EDEFF4;
    --hc-line-soft: #F4F6F9;
    --hc-peach: #FDF1E7;
    --hc-peach-2: #FFF4EC;
    --hc-blue-tint: #F1F6FF;
    --hc-band: #F5F8FD;
    --hc-radius: 14px;
    --hc-radius-lg: 20px;
    --hc-shadow: 0 2px 8px rgba(20, 25, 60, .04);
    --hc-shadow-lg: 0 12px 32px rgba(20, 25, 60, .08);
}

.add2basket-wrapper,
#mini-cart-header {
    display: none !important;
}

.hc-page,
.hc-page * {
    box-sizing: border-box;
}

.hc-page {
    margin: 0;
    background: #fff;
    color: var(--hc-ink);
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.hc-page img {
    max-width: 100%;
}

.hc-page a {
    color: inherit;
    text-decoration: none;
}

.hc-container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.hc-script {
    font-family: 'Caveat', 'Square Peg', 'Segoe Script', 'Bradley Hand', cursive;
    color: var(--hc-primary);
    font-weight: 700;
    line-height: 1.15;
}

.hc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --------------------------------------------------------------- buttons */

.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.hc-btn svg {
    flex: none;
}

.hc-page .hc-btn--primary {
    background: linear-gradient(180deg, var(--hc-primary-soft) 0%, var(--hc-primary) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(242, 85, 27, .24);
}

.hc-page .hc-btn--blue {
    background: var(--hc-blue);
    color: #fff;
    box-shadow: 0 6px 16px rgba(47, 107, 255, .24);
}

.hc-btn--ghost {
    background: #fff;
    color: var(--hc-ink);
    border: 1px solid var(--hc-line);
}

.hc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(20, 25, 60, .14);
}

.hc-btn--lg {
    padding: 13px 26px;
    font-size: 15px;
}

.hc-btn--block {
    width: 100%;
}

/* ---------------------------------------------------------------- header */

.hc-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--hc-line);
}

.hc-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.hc-logo {
    display: flex;
    align-items: center;
    flex: none;
}

.hc-logo img {
    display: block;
    height: 40px;
    width: auto;
}

.hc-header__label {
    flex: none;
    padding-left: 16px;
    margin-left: 2px;
    border-left: 1px solid var(--hc-line);
    font-size: 16px;
    font-weight: 500;
    color: var(--hc-ink);
}

.hc-header__search {
    flex: 1 1 auto;
    max-width: 380px;
    margin-left: 12px;
}

.hc-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    flex: none;
}

.hc-header__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    color: var(--hc-body);
}

.hc-header__link:hover {
    color: var(--hc-primary);
}

.hc-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--hc-body);
}

.hc-burger {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    padding: 6px;
    color: var(--hc-ink);
    cursor: pointer;
}

/* ------------------------------------------------------- drawer (mobile) */

.hc-menu-open {
    overflow: hidden;
}

.hc-drawer-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    background: rgba(16, 18, 36, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.hc-menu-open .hc-drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

.hc-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: 330px;
    max-width: 86vw;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 18px 24px;
    background: #fff;
    box-shadow: -12px 0 32px rgba(20, 25, 60, .14);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .26s ease, visibility .26s ease;
}

.hc-menu-open .hc-drawer {
    transform: translateX(0);
    visibility: visible;
}

.hc-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hc-drawer__head .hc-logo img {
    height: 28px;
}

.hc-drawer__close {
    flex: none;
    display: inline-flex;
    border: 0;
    background: none;
    padding: 6px;
    color: var(--hc-ink);
    cursor: pointer;
}

.hc-drawer__nav {
    display: grid;
    gap: 2px;
}

.hc-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--hc-ink);
    text-decoration: none;
}

.hc-drawer__nav a:hover {
    background: var(--hc-line-soft);
}

.hc-drawer__nav img {
    flex: none;
    width: 20px;
    height: 20px;
}

.hc-drawer__label {
    display: block;
    margin: 14px 12px 4px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hc-muted);
}

.hc-drawer__foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--hc-line);
    display: grid;
    gap: 14px;
    justify-items: start;
}

.hc-drawer__foot .hc-header__link,
.hc-drawer__foot .hc-lang {
    font-size: 13.5px;
}

/* Trên desktop drawer không bao giờ được xuất hiện, kể cả khi class còn sót lại */
@media (min-width: 901px) {
    .hc-drawer,
    .hc-drawer-backdrop {
        display: none;
    }

    .hc-menu-open {
        overflow: visible;
    }
}

/* ---------------------------------------------------------- search field */

.hc-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--hc-line);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
}

.hc-search__icon {
    flex: none;
    color: var(--hc-muted);
    display: flex;
}

.hc-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--hc-ink);
    padding: 7px 0;
}

.hc-search input::placeholder {
    color: var(--hc-muted);
}

.hc-search__btn {
    flex: none;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--hc-primary-soft) 0%, var(--hc-primary) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 22px;
    cursor: pointer;
}

.hc-search--plain .hc-search__btn {
    display: none;
}

.hc-search--hero {
    border: 0;
    padding: 4px 6px 4px 20px;
    box-shadow: var(--hc-shadow-lg);
}

.hc-search--hero input {
    font-size: 16px;
    padding: 11px 0;
}

/* ----------------------------------------------------------------- chips */

.hc-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.hc-chips__label {
    font-size: 15px;
    color: var(--hc-muted);
    margin-right: 2px;
}

.hc-chip {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #F0E3D8;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 15px;
    color: var(--hc-body);
    transition: .18s ease;
}

.hc-chip:hover {
    border-color: var(--hc-primary);
    color: var(--hc-primary);
}

/* ------------------------------------------------------------------ hero */

.hc-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--hc-peach);
    background: url('https://static.prtvstatic.com/assets/images/help/help-banner-bg.png') no-repeat;
    background-size: 100%;
    background-position: left center;
}

.hc-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 44px 0 44px;
}

.hc-hero__inner:has(.hc-breadcrumb--on-hero) {
    flex-direction: column;
    align-items: flex-start;
}

.hc-hero__inner:has(.hc-breadcrumb--on-hero) .hc-hero__sub {
    max-width: unset;
    margin: 10px 0 22px;
    text-align: left;
}

.hc-hero__inner:has(.hc-breadcrumb--on-hero) .hc-hero__main {
    max-width: calc(100% - 300px);
}

.hc-hero__main {
    min-width: 0;
    text-align: center;
}

.hc-hero__title {
    margin: 0;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--hc-ink);
}

.hc-hero__sub {
    margin: 10px auto 22px;
    font-size: 18px;
    color: var(--hc-body);
    max-width: 410px;
    text-align: center;
}

.hc-hero__form {
    margin: 0 auto;
}

.hc-hero__chips {
    justify-content: center;
}

.hc-hero__aside {
    position: absolute;
    bottom: 0;
    right: 0;
}

.hc-hero__note {
    width: 120px;
    position: absolute;
    left: 44px;
    top: 60px;
}

.hc-hero__note .hc-script {
    font-size: 30px;
    transform: rotate(-20deg);
    display: inline-block;
    text-align: center;
}

.hc-hero__mascot {
    height: 230px;
    width: auto;
    display: block;
}

.hc-hero--compact .hc-hero__inner {
    padding: 28px 24px 30px;
}

.hc-hero--compact .hc-hero__main {
    text-align: left;
}

.hc-hero--compact .hc-hero__form {
    margin: 0;
}

.hc-hero--compact .hc-hero__chips {
    justify-content: flex-start;
}

.hc-hero--compact .hc-hero__title {
    font-size: 32px;
}

/* ----------------------------------------------------------- breadcrumbs */

.hc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    font-size: 15px;
    color: var(--hc-muted);
}

.hc-breadcrumb a:hover {
    color: var(--hc-primary);
}

.hc-breadcrumb__sep {
    color: #C7CBD6;
    display: flex;
}

.hc-breadcrumb__current {
    color: var(--hc-ink);
    font-weight: 500;
}

/* --------------------------------------------------------------- section */

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

.hc-section--band {
    background: var(--hc-band);
}

.hc-section--tight {
    padding-top: 34px;
}

.hc-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.hc-section__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--hc-ink);
}

.hc-section__sub {
    margin: 0;
    font-size: 16px;
    color: var(--hc-muted);
}

.hc-page .hc-link-more {
    display: flex;
    align-items: center;
    grid-gap: 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--hc-blue);
}

/* ------------------------------------------------------- quick help grid */

.hc-quick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.hc-quick-card {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius);
    padding: 16px 16px 46px;
    box-shadow: var(--hc-shadow);
    transition: .2s ease;
}

.hc-quick-card:hover {
    border-color: #FBD5C2;
    box-shadow: var(--hc-shadow-lg);
    transform: translateY(-2px);
}

.hc-quick-card__icon {
    width: 40px;
    height: 40px;
    display: block;
    margin-bottom: 8px;
}

.hc-quick-card__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--hc-ink);
}

.hc-quick-card__desc {
    margin: 0;
    font-size: 15px;
    color: var(--hc-muted);
    line-height: 1.5;
}

.hc-arrow {
    position: absolute;
    right: 16px;
    bottom: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hc-peach-2);
    color: var(--hc-primary);
    transition: .2s ease;
}

.hc-quick-card:hover .hc-arrow,
.hc-topic-card:hover .hc-arrow,
.hc-doccat:hover .hc-arrow {
    background: var(--hc-primary);
    color: #fff;
}

/* ------------------------------------------------------- audience blocks */

.hc-audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hc-audience {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 18px;
    background: #fff;
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--hc-shadow);
}

.hc-audience__figure {
    width: 100%;
}

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

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

.hc-audience__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hc-audience__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.hc-audience__badge {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: var(--hc-shadow);
}

.hc-audience__badge img {
    width: 24px;
    height: 24px;
}

.hc-audience__desc {
    margin: 8px 0 8px;
    font-size: 15px;
    color: var(--hc-body);
}

.hc-audience__list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.hc-audience__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--hc-body);
}

.hc-audience__list li svg {
    flex: none;
}

.hc-audience--customer .hc-audience__list li svg {
    color: var(--hc-primary);
}

.hc-audience--seller .hc-audience__list li svg {
    color: var(--hc-blue);
}

.hc-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* ------------------------------------------------------------ topic grid */

.hc-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hc-topic-card {
    position: relative;
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--hc-line);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--hc-shadow);
    transition: .2s ease;
}

.hc-topic-card:hover {
    border-color: #DCE4F5;
    box-shadow: var(--hc-shadow-lg);
    transform: translateY(-2px);
}

.hc-topic-card__icon {
    flex: none;
    width: 44px;
    height: 44px;
}

.hc-topic-card__title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.hc-topic-card__desc {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--hc-muted);
}

/* Danh sach bai ngay duoi moi card chu de */

.hc-topic-card__title a {
    color: inherit;
}

.hc-topic-card__title a:hover {
    color: var(--hc-primary);
}

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

.hc-topic-card__links a {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 5px 6px;
    margin-left: -6px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--hc-body);
}

.hc-topic-card__links a svg {
    flex: none;
    margin-top: 2px;
    color: var(--hc-muted);
}

.hc-topic-card__links a:hover {
    background: var(--hc-line-soft);
    color: var(--hc-primary);
}

.hc-topic-card__links a:hover svg {
    color: var(--hc-primary);
}

/* Nut "View all" o day card, can giua */

.hc-topic-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hc-page .hc-topic-card__btn {
    align-self: center;
    margin-top: auto;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--hc-ink);
    box-shadow: none;
}

.hc-page .hc-topic-card__btn svg {
    transition: transform .18s ease;
}

.hc-page .hc-topic-card__btn:hover {
    border-color: var(--hc-primary);
    background: var(--hc-peach-2);
    color: var(--hc-primary);
    box-shadow: none;
}

.hc-page .hc-topic-card__btn:hover svg {
    transform: translateX(3px);
}

.hc-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    color: var(--hc-blue);
}

.hc-count svg {
    flex: none;
}

/* ------------------------------------------ documentation category cards */

.hc-doccat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hc-doccat {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-lg);
    padding: 22px;
    box-shadow: var(--hc-shadow);
    transition: .2s ease;
}

.hc-doccat:hover {
    border-color: #DCE4F5;
    box-shadow: var(--hc-shadow-lg);
    transform: translateY(-2px);
}

.hc-doccat__icon {
    flex: none;
    width: 68px;
    height: 68px;
}

.hc-doccat__title {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
}

.hc-doccat__desc {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--hc-muted);
}

.hc-doccat__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 8px;
}

.hc-doccat .hc-arrow {
    position: static;
    transform: unset;
    color: #111;
    background: #edeff4c4;
}

/* ------------------------------------------------------ popular articles */

.hc-artlink-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 18px;
}

.hc-artlink {
    display: flex;
    /* align-items: center; */
    gap: 8px;
    background: #fff;
    border: 1px solid var(--hc-line);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    color: var(--hc-ink);
    transition: .18s ease;
}

.hc-artlink:hover {
    border-color: #FBD5C2;
    color: var(--hc-primary);
}

.hc-artlink__icon,
.hc-artlink__chev {
    flex: none;
    display: flex;
    margin-top:3px;
}

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

/* ------------------------------------------------------------- CTA banner */

.hc-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--hc-peach-2);
    border: 1px solid #FBE3D3;
    border-radius: 8px;
    padding: 26px 30px;
}

.hc-cta__figure {
    width: 120px;
}

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

.hc-cta__body {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.hc-cta__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
}

.hc-cta__desc {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--hc-body);
}

.hc-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hc-cta__meta {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    color: var(--hc-body);
    text-align: left;
    padding-left: 30px;
    position: relative;
}

.hc-cta__meta::before {
    content: "";
    width: 1px;
    height: 80%;
    background: #ccc;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

.hc-cta__meta img {
    width: 40px;
    height: 40px;
}

.hc-cta__meta b {
    display: block;
    color: var(--hc-ink);
    font-weight: 600;
}

.hc-cta__note {
    flex: none;
    width: 118px;
    text-align: center;
}

.hc-cta__note .hc-script {
    font-size: 22px;
    display: inline-block;
    transform: rotate(-5deg);
}

.hc-cta--compact {
    gap: 18px;
    padding: 20px 22px;
}

.hc-cta--compact .hc-cta__figure {
    width: 66px;
}

.hc-cta--compact .hc-cta__body {
    text-align: left;
}

.hc-cta--compact .hc-cta__title {
    font-size: 17px;
}

.hc-cta--compact .hc-cta__desc {
    margin-bottom: 0;
}

.hc-cta--compact .hc-cta__action {
    flex: none;
}

/* ------------------------------------------------- documentation columns */

.hc-doc {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr) 246px;
    gap: 28px;
    align-items: start;
    padding: 10px 0 56px;
}

.hc-doc--wide {
    grid-template-columns: 218px minmax(0, 1fr);
}

.hc-doc__side,
.hc-doc__rail {
    position: sticky;
    top: 82px;
}

/* Desktop: sidebar cuon RIENG, bai viet cuon theo trang.
   - max-height = chieu cao man hinh tru header sticky (82px) va 16px le duoi
   - overscroll-behavior: contain -> cuon het sidebar thi khong keo theo trang
   Mobile (<= 900px) sidebar la panel truot da co overflow rieng, khong dung toi. */
@media (min-width: 901px) {
    .hc-doc__side {
        max-height: calc(100vh - 82px - 16px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 4px;
        scrollbar-width: thin;
        scrollbar-color: #D5D8E0 transparent;
    }

    .hc-doc__side::-webkit-scrollbar {
        width: 6px;
    }

    .hc-doc__side::-webkit-scrollbar-track {
        background: transparent;
    }

    .hc-doc__side::-webkit-scrollbar-thumb {
        background: #D5D8E0;
        border-radius: 999px;
    }

    .hc-doc__side:hover::-webkit-scrollbar-thumb {
        background: #BFC4CF;
    }
}

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

/* Nút mở sidebar + backdrop: chỉ dùng ở mobile, desktop ẩn hoàn toàn */
.hc-doc__trigger,
.hc-doc__backdrop,
.hc-doc__side-head {
    display: none;
}

/* ----------------------------------------------------------- side nav */

.hc-backlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--hc-body);
    margin-bottom: 16px;
}

.hc-backlink:hover {
    color: var(--hc-primary);
}

.hc-nav {
    border-right: 1px solid var(--hc-line);
    padding-right: 14px;
}

.hc-nav__group + .hc-nav__group {
    margin-top: 4px;
}

.hc-nav__top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--hc-ink);
    transition: .18s ease;
}

.hc-nav__top img {
    flex: none;
    width: 20px;
    height: 20px;
}

.hc-nav__top:hover {
    background: var(--hc-line-soft);
}

.hc-nav__group.is-active .hc-nav__top {
    background: var(--hc-peach-2);
    color: var(--hc-primary);
    font-weight: 600;
}

.hc-nav__sub {
    list-style: none;
    margin: 4px 0 8px;
    padding: 0 0 0 12px;
}

.hc-nav__sub li a {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--hc-body);
}

.hc-nav__sub li a:hover {
    background: var(--hc-line-soft);
    color: var(--hc-ink);
}

.hc-nav__sub li a.is-current {
    color: var(--hc-primary);
    font-weight: 600;
}

/* ------------------------------------- cay docs: thu gon / mo lai nhanh */

.hc-nav__row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hc-nav__row > a {
    flex: 1 1 auto;
    min-width: 0;
}

.hc-nav__toggle {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--hc-body);
    cursor: pointer;
}

.hc-nav__toggle:hover {
    background: var(--hc-line-soft);
    color: var(--hc-ink);
}

.hc-nav__toggle svg {
    transform: rotate(90deg);
    transition: transform .2s ease;
}

/* CO Y khong dat max-height mac dinh: khong co class thi nhanh hien binh thuong.
   Thu gon la truong hop dac biet, JS set max-height inline de chay transition. */
.hc-nav__sub {
    overflow: hidden;
    transition: max-height .25s ease;
}

.hc-nav__group.is-collapsed > .hc-nav__row .hc-nav__toggle svg,
.hc-nav__item.is-collapsed > .hc-nav__row .hc-nav__toggle svg {
    transform: rotate(0deg);
}

/* ------------------------------------------------------- category header */

.hc-cathead {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0 0 20px;
}

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

.hc-eyebrow {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--hc-primary);
    margin-bottom: 8px;
}

.hc-cathead__title {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.hc-cathead__desc {
    margin: 0;
    font-size: 15px;
    color: var(--hc-body);
    max-width: 560px;
}

.hc-cathead__figure {
    flex: none;
    width: 168px;
    text-align: center;
}

.hc-cathead__figure .hc-script {
    display: inline-block;
    font-size: 19px;
    line-height: 1.1;
    margin-bottom: 2px;
    transform: rotate(-4deg);
}

.hc-cathead__figure img {
    display: block;
    width: 126px;
    margin: 0 auto;
}

/* ---------------------------------------------------------- article list */

.hc-list {
    display: grid;
    gap: 12px;
}

.hc-list__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--hc-line);
    border-radius: 12px;
    padding: 15px 44px 15px 16px;
    box-shadow: var(--hc-shadow);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hc-list__item:hover {
    border-color: #FBD5C2;
    box-shadow: var(--hc-shadow-lg);
    transform: translateY(-1px);
}

.hc-list__icon-wrap {
    flex: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--hc-peach-2);
    transition: transform .18s ease, background-color .18s ease;
}

.hc-list__item:hover .hc-list__icon-wrap {
    transform: scale(1.05);
    background: #FFEAD8;
}

.hc-list__icon {
    flex: none;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

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

.hc-list__header {
    display: flex;
    align-items: center;
    gap: 8px 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.hc-list__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--hc-ink);
    line-height: 1.35;
    transition: color .18s ease;
}

.hc-list__item:hover .hc-list__title {
    color: var(--hc-primary);
}

.hc-list__desc {
    margin: 3px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--hc-muted);
}

.hc-list .hc-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--hc-blue);
    background: var(--hc-blue-tint);
    padding: 2px 8px;
    border-radius: 999px;
}

.hc-list__chev {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #C7CBD6;
    transition: color .18s ease, transform .18s ease;
}

.hc-list__item:hover .hc-list__chev {
    color: var(--hc-primary);
    transform: translateY(-50%) translateX(3px);
}

.hc-sortbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.hc-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--hc-line);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 15px;
    color: var(--hc-body);
    background: #fff;
    cursor: pointer;
}

/* ----------------------------------------------------------- right rail */

.hc-card {
    background: #fff;
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius);
    padding: 18px;
    box-shadow: var(--hc-shadow);
}

.hc-card + .hc-card {
    margin-top: 16px;
}

.hc-card__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--hc-ink);
}

.hc-toc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.hc-toc a {
    font-size: 15px;
    color: var(--hc-body);
}

.hc-toc a:hover {
    color: var(--hc-primary);
}

.hc-card--support {
    background: var(--hc-peach-2);
    border-color: #FBE3D3;
    text-align: center;
}

.hc-card--support > img {
    margin: 10px auto;
}

.hc-card--support img.hc-card__mascot {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    display: block;
}

.hc-card--support p {
    font-size: 14px;
    color: var(--hc-body);
}

.hc-card__meta {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: var(--hc-muted);
}

.hc-card__meta b {
    display: block;
    color: var(--hc-ink);
    font-size: 13px;
    font-weight: 600;
}

.hc-related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.hc-related a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--hc-body);
}

.hc-related a:hover {
    color: var(--hc-primary);
}

.hc-related svg {
    flex: none;
    margin-top: 2px;
    color: var(--hc-blue);
}

.hc-vote {
    display: flex;
    gap: 10px;
}

.hc-vote button {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--hc-line);
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--hc-body);
    cursor: pointer;
    transition: .18s ease;
}

.hc-vote button:hover {
    border-color: var(--hc-primary);
    color: var(--hc-primary);
}

/* --------------------------------------------------------------- article */

.hc-article__head {
    padding: 4px 0 18px;
    border-bottom: 1px solid var(--hc-line);
    margin-bottom: 22px;
}

.hc-article__title {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.22;
}

.hc-article__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--hc-muted);
}

.hc-article__tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hc-article__tools button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    color: var(--hc-body);
    cursor: pointer;
}

.hc-article__tools button:hover {
    color: var(--hc-primary);
}

.hc-prose p {
    margin: 0 0 16px;
    font-size: 15px;
    color: var(--hc-body);
    line-height: 1.7;
}

.hc-prose h2 {
    margin: 30px 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: var(--hc-ink);
}

.hc-prose h2 + .hc-prose__lead {
    margin-top: 4px;
}

.hc-prose__lead {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--hc-muted);
}

.hc-prose a {
    color: var(--hc-primary);
    text-decoration: underline;
}

/* Noi dung bai lay tu WP: chi co p/h2/a duoc style, con lai roi ve mac dinh
   cua trinh duyet (h3 1.17em, h4 1em, h5 0.83em - nho hon ca body) nen chu
   nhin so le. Dinh nghia day du cho cac the WP that su dung. */

.hc-prose h3 {
    margin: 26px 0 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hc-ink);
}

.hc-prose h4 {
    margin: 22px 0 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--hc-ink);
}

/* Bai ben WP hay dung <h5> cho ca mot cau dan chu khong phai tieu de ngan.
   De w600/15px thi no giong het <strong> trong doan, ca bai nhin nhu bi to
   dam lung tung. Cho han w700 va nhinh hon mot chut de doc ra ngay day la
   tieu de - giong cach help.printerval.com lam (h5: 16px, w700, mau dam). */
.hc-prose h5,
.hc-prose h6 {
    margin: 24px 0 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--hc-ink);
}

.hc-prose h2:first-child,
.hc-prose h3:first-child,
.hc-prose h4:first-child {
    margin-top: 0;
}

.hc-prose ul,
.hc-prose ol {
    margin: 0 0 16px;
    padding-left: 22px;
    font-size: 15px;
    color: var(--hc-body);
    line-height: 1.7;
}

.hc-prose li {
    margin-bottom: 6px;
}

.hc-prose li > ul,
.hc-prose li > ol {
    margin: 6px 0 0;
}

/* Giu nguyen mau chu than bai, chi day nhe do day len - dung cach
   help.printerval.com lam (<strong> o do la w500, cung mau voi doan van).
   Doi sang mau ink nhu truoc khien moi cum <strong> nhay han len khoi doan,
   bai nhieu "Step 1 / Log in / Lock Account" se ram chu dam khap noi. */
.hc-prose strong,
.hc-prose b {
    color: inherit;
    font-weight: 600;
}

/* <em> long trong <strong> van chi in nghieng, khong cong them do day. */
.hc-prose em {
    color: inherit;
}

/* ------------------------------------------------------- chu va anh deu nhau */

/* Mot font duy nhat cho ca khoi noi dung. <table> va cac the form khong ke thua
   font tu body o mot so trinh duyet, con noi dung dan tu noi khac co the mang
   font rieng - inherit ep tat ca ve font cua trang. */
.hc-prose,
.hc-prose * {
    font-family: inherit;
}

.hc-prose img {
    height: auto;
    border-radius: 10px;
}

/* WP boc anh trong <figure class="wp-block-image"> */
.hc-prose figure {
    margin: 24px 0;
    text-align: center;
}

.hc-prose figure img {
    display: block;
    margin: 0 auto;
}

/* 20 anh khac lai dung mot minh trong <p>. Mac dinh <img> la inline nen no an
   theo duong baseline cua chu, sinh khoang ho le o duoi. Doi sang block de
   khoang cach tren/duoi bang nhau. :only-child khong tinh text node, nen
   <p>&nbsp;<img></p> van khop. */
.hc-prose p > img:only-child {
    display: block;
    margin: 8px auto;
}

/* Anh nam lan trong cau thi giu inline, chi canh lai theo dong chu */
.hc-prose p img {
    vertical-align: middle;
}

.hc-prose figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--hc-muted);
    text-align: center;
}

.hc-prose hr,
.hc-prose .wp-block-separator {
    height: 0;
    margin: 28px 0;
    border: 0;
    border-top: 1px solid var(--hc-line);
}

.hc-prose blockquote {
    margin: 0 0 18px;
    padding: 2px 0 2px 16px;
    border-left: 3px solid var(--hc-peach);
    color: var(--hc-body);
}

/* ------------------------------------------------------------------ bang */

/* WP boc bang trong <figure class="wp-block-table">; cho figure cuon ngang
   de bang nhieu cot khong lam vo layout tren mobile. */
.hc-prose .wp-block-table {
    /* Bang cung nam trong <figure>, chan text-align: center ke thua tu rule figure */
    text-align: left;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hc-prose table {
    width: 100%;
    margin: 0 0 20px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
    color: var(--hc-body);
}

.hc-prose .wp-block-table table {
    margin-bottom: 0;
}

.hc-prose th,
.hc-prose td {
    padding: 11px 14px;
    border: 1px solid var(--hc-line);
    text-align: left;
    vertical-align: top;
}

.hc-prose th {
    background: var(--hc-line-soft);
    color: var(--hc-ink);
    font-weight: 600;
}

/* Bang cua WP thuong khong co <thead>, hang tieu de chi la <tr> dau co <strong> */
.hc-prose tbody tr:first-child td strong {
    color: var(--hc-ink);
}

.hc-prose tbody tr:nth-child(even) td {
    background: #FBFCFD;
}

/* ----------------------------------------------- class preset cua WP block */

/* Cac class nay tro toi bien --wp--preset--* do WordPress sinh ra; trang help
   khong nap CSS cua WP nen phai tu dinh nghia, neu khong chung khong co tac dung. */
.hc-prose .has-small-font-size { font-size: 13px; }
.hc-prose .has-medium-font-size { font-size: 17px; }
.hc-prose .has-large-font-size { font-size: 22px; }
.hc-prose .has-x-large-font-size { font-size: 28px; }

.hc-prose .has-text-align-center { text-align: center; }
.hc-prose .has-text-align-left { text-align: left; }
.hc-prose .has-text-align-right { text-align: right; }

.hc-prose .aligncenter { margin-left: auto; margin-right: auto; }

/* article banner */

.hc-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(120deg, #FFF0E4 0%, #FFF8F1 100%);
    border-radius: var(--hc-radius-lg);
    padding: 24px 26px;
    margin: 6px 0 26px;
}

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

.hc-banner__title {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.28;
    color: var(--hc-ink);
}

.hc-banner__desc {
    margin: 0;
    font-size: 13px;
    color: var(--hc-body);
}

.hc-banner__figure {
    flex: none;
    width: 148px;
}

.hc-banner__figure img {
    display: block;
    border-radius: 12px;
}

.hc-banner__note {
    flex: none;
    width: 128px;
    text-align: center;
}

.hc-banner__note .hc-script {
    font-size: 19px;
    display: inline-block;
    transform: rotate(-5deg);
}

/* steps */

.hc-steps {
    display: grid;
    gap: 6px;
    margin: 6px 0 26px;
}

.hc-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hc-line-soft);
}

.hc-step:last-child {
    border-bottom: 0;
}

.hc-step__num {
    flex: none;
    width: 26px;
    height: 26px;
    margin-top: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hc-peach-2);
    color: var(--hc-primary);
    font-size: 12.5px;
    font-weight: 700;
}

.hc-step__icon {
    flex: none;
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.hc-step__body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 8px;
}

.hc-step__title {
    margin: 0 0 4px;
    font-size: 15.5px;
    font-weight: 600;
}

.hc-step__desc {
    margin: 0;
    font-size: 13.5px;
    color: var(--hc-body);
}

/* callout */

.hc-callout {
    display: flex;
    gap: 12px;
    background: var(--hc-blue-tint);
    border: 1px solid #DEE9FF;
    border-radius: var(--hc-radius);
    padding: 16px 18px;
    margin: 4px 0 8px;
}

.hc-callout__icon {
    flex: none;
    color: var(--hc-blue);
    margin-top: 2px;
}

.hc-callout__title {
    margin: 0 0 8px;
    font-size: 14.5px;
    font-weight: 700;
}

.hc-callout ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.hc-callout li {
    font-size: 13.5px;
    color: var(--hc-body);
}

/* --------------------------------------------------------- search result */

.hc-hero--search .hc-hero__inner {
    min-height: 250px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hc-hero--search .hc-hero__title {
    font-size: 34px;
    word-break: break-word;
}

.hc-results {
    display: grid;
    gap: 40px;
}

.hc-results__empty {
    text-align: center;
    padding: 24px 0 40px;
}

.hc-results__empty h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.hc-results__empty p {
    margin: 0 0 20px;
    color: var(--hc-muted);
}

/* ------------------------------------------------------------ phan trang */

.hc-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

/* Tien to .hc-page de thang rule ".hc-page a { color: inherit }" */
.hc-page .hc-pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--hc-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--hc-shadow);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: var(--hc-ink);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.hc-page a.hc-pager__btn:hover {
    border-color: var(--hc-primary);
    background: var(--hc-peach-2);
    color: var(--hc-primary);
    transform: translateY(-1px);
}

.hc-page a.hc-pager__btn:focus-visible {
    outline: 2px solid var(--hc-primary);
    outline-offset: 2px;
}

/* Trang dang xem: cung gradient voi .hc-btn--primary */
.hc-page .hc-pager__btn.is-current {
    border-color: transparent;
    background: linear-gradient(180deg, var(--hc-primary-soft) 0%, var(--hc-primary) 100%);
    box-shadow: 0 6px 16px rgba(242, 85, 27, .24);
    color: #fff;
    font-weight: 600;
    cursor: default;
}

.hc-page .hc-pager__btn--nav {
    padding: 0 16px;
    color: var(--hc-body);
}

.hc-page .hc-pager__btn.is-disabled {
    opacity: .45;
    box-shadow: none;
    cursor: not-allowed;
}

.hc-pager__gap {
    min-width: 20px;
    text-align: center;
    color: var(--hc-muted);
    user-select: none;
}

@media (max-width: 640px) {
    .hc-pager {
        gap: 6px;
        margin-top: 32px;
    }

    .hc-page .hc-pager__btn {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 14px;
    }

    .hc-page .hc-pager__btn--nav {
        padding: 0 10px;
    }

    /* Mobile chi giu mui ten cho Previous / Next */
    .hc-pager__label {
        display: none;
    }
}

.hc-result {
    background: #fff;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 4px 18px rgba(20, 25, 60, .08);
}

.hc-result__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 15px;
    color: var(--hc-body);
}

.hc-result__sep {
    width: 1px;
    height: 16px;
    background: #D5D8E0;
}

.hc-result__title {
    margin: 12px 0 18px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.hc-result__title a {
    color: var(--hc-ink);
    text-decoration: none;
}

.hc-result__title a:hover {
    color: var(--hc-primary);
}

.hc-result__excerpt {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: var(--hc-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hc-result__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.hc-result__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1A1350;
    text-decoration: none;
}

.hc-result__more:hover {
    color: var(--hc-primary);
}

.hc-result__author {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #1A1350;
}

.hc-result__avatar {
    display: flex;
    flex: none;
}

@media (max-width: 640px) {
    .hc-hero--search .hc-hero__inner {
        min-height: 0;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .hc-hero--search .hc-hero__title {
        font-size: 24px;
    }

    .hc-results {
        gap: 20px;
    }

    .hc-result {
        padding: 22px 20px;
    }

    .hc-result__title {
        font-size: 20px;
        margin: 10px 0 12px;
    }

    .hc-result__excerpt {
        font-size: 14.5px;
        -webkit-line-clamp: 3;
    }

    .hc-result__foot {
        margin-top: 20px;
    }
}

/* ---------------------------------------------------------------- footer */

.hc-footer {
    border-top: 1px solid var(--hc-line);
    margin-top: 10px;
    background: #fff;
}

.hc-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.15fr;
    gap: 24px;
    padding: 40px 0 30px;
}

.hc-footer__brand img {
    display: block;
    height: 40px;
    width: auto;
    margin-bottom: 14px;
}

.hc-footer__tagline {
    margin: 0;
    font-size: 15px;
    color: var(--hc-muted);
}

.hc-footer__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hc-ink);
}

.hc-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.hc-footer__list a {
    font-size: 15px;
    color: var(--hc-body);
}

.hc-footer__list a:hover {
    color: var(--hc-primary);
}

.hc-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hc-social a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-ink);
    transition: .18s ease;
}

.hc-social a:hover {
    color: var(--hc-primary);
}

.hc-footer__bottom {
    border-top: 1px solid var(--hc-line-soft);
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 15px;
    color: var(--hc-muted);
}

.hc-footer__bottom .hc-script {
    font-size: 18px;
    color: var(--hc-muted);
    font-weight: 600;
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 1100px) {
    .hc-doc,
    .hc-doc--wide {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .hc-doc__rail {
        grid-column: 1 / -1;
        position: static;
    }

    .hc-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hc-header__search {
        max-width: 260px;
    }
}

@media (max-width: 900px) {
    .hc-header__label,
    .hc-header__search,
    .hc-header__actions {
        display: none;
    }

    .hc-burger {
        display: inline-flex;
    }

    .hc-hero__note {
        display: none;
    }

    .hc-hero__mascot {
        width: 130px;
    }

    .hc-audience-grid,
    .hc-doccat-grid,
    .hc-topic-grid,
    .hc-artlink-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hc-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hc-cta--compact {
        text-align: center;
    }

    .hc-cta--compact .hc-cta__body {
        text-align: center;
    }

    .hc-doc,
    .hc-doc--wide {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 0;
    }

    /* ------------- sidebar dạng panel trượt, mở bằng nút .hc-doc__trigger */

    .hc-doc__trigger {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 10px 14px;
        border: 1px solid var(--hc-line);
        border-radius: 12px;
        background: #fff;
        color: var(--hc-ink);
        text-align: left;
        cursor: pointer;
    }

    .hc-doc__trigger-icon {
        flex: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: var(--hc-peach-2);
        color: var(--hc-primary);
    }

    .hc-doc__trigger-text {
        flex: 1 1 auto;
        min-width: 0;
        display: grid;
    }

    .hc-doc__trigger-label {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--hc-muted);
        margin-bottom: 4px;
    }

    .hc-doc__trigger-value {
        font-size: 15px;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hc-doc__trigger-caret {
        flex: none;
        color: var(--hc-muted);
        transition: transform .2s ease;
    }

    .hc-side-open .hc-doc__trigger-caret {
        transform: rotate(180deg);
    }

    .hc-doc__backdrop {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 70;
        background: rgba(16, 18, 36, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .hc-side-open {
        overflow: hidden;
    }

    .hc-side-open .hc-doc__backdrop {
        opacity: 1;
        visibility: visible;
    }

    .hc-doc__side {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 80;
        width: 320px;
        max-width: 86vw;
        padding: 16px 18px 24px;
        background: #fff;
        box-shadow: 12px 0 32px rgba(20, 25, 60, .14);
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform .26s ease, visibility .26s ease;
    }

    .hc-side-open .hc-doc__side {
        transform: translateX(0);
        visibility: visible;
    }

    .hc-doc__side-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--hc-line);
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--hc-muted);
    }

    .hc-doc__side-close {
        flex: none;
        display: inline-flex;
        border: 0;
        background: none;
        padding: 6px;
        color: var(--hc-ink);
        cursor: pointer;
    }

    .hc-nav {
        border-right: 0;
        padding-right: 0;
    }

    .hc-cta {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .hc-cta__note {
        display: none;
    }

    .hc-banner__note {
        display: none;
    }
}

@media (max-width: 640px) {
    .hc-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hc-hero {
        background-size: cover;
    }

    .hc-hero__inner {
        padding: 28px 16px 24px;
        grid-gap: 20px;
    }

    .hc-hero__title,
    .hc-hero--compact .hc-hero__title {
        font-size: 26px;
    }

    .hc-hero__aside {
        display: none;
    }

    .hc-quick-grid,
    .hc-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hc-section__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hc-audience {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .hc-audience__figure {
        width: 110px;
        align-self: center;
        margin: auto;
    }

    .hc-quick-card {
        padding: 16px;
    }

    .hc-quick-card .hc-arrow {
        display: none;
    }

    .hc-audience__list {
        width: fit-content;
        margin: 16px auto 0;
    }

    .hc-audience__body {
        text-align: center;
    }

    .hc-cathead {
        flex-direction: column;
    }

    .hc-cathead__figure {
        width: 100%;
    }

    .hc-cathead__figure .hc-script {
        display: none;
    }

    .hc-article__title,
    .hc-cathead__title {
        font-size: 24px;
    }

    .hc-banner {
        flex-direction: column;
        text-align: center;
    }

    .hc-step {
        flex-wrap: wrap;
    }

    .hc-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hc-footer__bottom {
        justify-content: center;
        text-align: center;
    }

    .hc-cta__actions {
        gap: 20px;
        flex-direction: column;
    }

    .hc-cta__meta {
        padding-left: 0;
    }

    .hc-cta__meta::before {
        display: none;
    }

    .hc-hero__inner:has(.hc-breadcrumb--on-hero) .hc-hero__main {
        max-width: unset;
    }

    .hc-hero--compact .hc-hero__chips {
        justify-content: center;
    }

    .hc-sortbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hc-breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .hc-breadcrumb a, 
    .hc-breadcrumb span {
        white-space: nowrap;
    }

    body.hc-page .footer-nav-list:nth-of-type(2) {
        grid-column-start: span 2;
        text-align: center;
    }
}

/* ------------------------------------------- Was this page helpful? */

.hc-feedback {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--hc-line);
}

.hc-feedback__ask {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hc-feedback__q {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--hc-ink);
}

.hc-feedback__votes {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hc-vote {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid var(--hc-line);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--hc-body);
    cursor: pointer;
    transition: .2s ease;
}

.hc-vote:hover {
    border-color: var(--hc-primary);
    background: var(--hc-peach-2);
    color: var(--hc-primary);
}

.hc-vote__count {
    font-size: 13px;
    color: var(--hc-muted);
}

.hc-vote:hover .hc-vote__count {
    color: var(--hc-primary);
}

/* Nut da duoc bam: to mau len va khoa con tro, so dem da tang tai cho. */
.hc-vote.is-voted {
    border-color: var(--hc-primary);
    background: var(--hc-peach-2);
    color: var(--hc-primary);
    cursor: default;
}

.hc-vote.is-voted .hc-vote__count {
    color: var(--hc-primary);
}

/* --------------------------------------------------- modal chia se */

.hc-share {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.hc-share[hidden] {
    display: none;
}

.hc-share__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 60, .45);
}

.hc-share__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 24px;
    border-radius: var(--hc-radius-lg);
    background: #fff;
    box-shadow: var(--hc-shadow-lg);
    text-align: center;
}

.hc-share__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* master.css co rule toan cuc [type="button"] { padding: 10px 20px }.
       Khong go padding thi 40px padding ngang bop het 30px be ngang cua nut,
       vung noi dung con 0 va icon X bien mat. */
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hc-line-soft);
    color: var(--hc-muted);
    cursor: pointer;
    transition: .2s ease;
}

.hc-share__close:hover {
    background: var(--hc-peach-2);
    color: var(--hc-primary);
}

.hc-share__title {
    margin: 0 0 18px;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--hc-ink);
}

.hc-share__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hc-share__links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hc-line);
    border-radius: 50%;
    color: var(--hc-body);
    transition: .2s ease;
}

.hc-share__links a:hover {
    border-color: var(--hc-primary);
    background: var(--hc-peach-2);
    color: var(--hc-primary);
    transform: translateY(-2px);
}

.hc-share__or {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--hc-muted);
}

.hc-share__copy {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.hc-share__copy input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--hc-line);
    border-radius: 10px;
    background: var(--hc-line-soft);
    font-family: inherit;
    font-size: 13px;
    color: var(--hc-muted);
    text-overflow: ellipsis;
}

.hc-share__copy button {
    flex: none;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--hc-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.hc-share__copy button:hover {
    background: var(--hc-primary-soft);
}

.hc-share__copied {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--hc-primary);
}

.hc-share__copied[hidden] {
    display: none;
}

@media (max-width: 767px) {
    .hc-feedback__ask {
        gap: 10px;
    }

    .hc-feedback__votes {
        width: 100%;
    }

    .hc-vote {
        flex: 1;
        justify-content: center;
    }
}

/* Giong class eazydocs-hide-print ben WP: khong in phieu bau / modal chia se. */
@media print {
    .hc-feedback,
    .hc-share,
    .hc-article__tools {
        display: none !important;
    }
}
