/* Packitta Support Center. Builds on home/css/landing.css (tokens, nav, buttons,
   footer); only the help-specific pieces live here. */

body.hc {
    background: var(--lp-tint);
}

.hc-main {
    padding-top: var(--lp-nav-h);
}

.hc-nav .nav-link.is-current {
    color: var(--lp-teal);
    background: var(--lp-teal-soft);
}

/* ------------------------------------------------------------ hero */
.hc-hero {
    padding: 3.25rem 0 3rem;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(27, 146, 237, 0.22) 0%, transparent 55%),
        linear-gradient(135deg, var(--lp-teal-900) 0%, var(--lp-teal) 100%);
    color: rgba(255, 255, 255, 0.86);
}

.hc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.hc .hc-hero__title {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
}

.hc-hero__lead {
    max-width: 640px;
    margin: 0;
    font-size: 1.05rem;
}

.hc-search {
    position: relative;
    display: flex;
    gap: 0.5rem;
    max-width: 680px;
    margin-top: 1.75rem;
    padding: 0.4rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--lp-shadow-lg);
}

.hc-search__icon {
    position: absolute;
    inset-inline-start: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp-muted);
    font-size: 1.05rem;
    pointer-events: none;
}

.hc-search__input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding-inline: 2.6rem 0.75rem;
    border: 0;
    border-radius: 12px;
    color: var(--lp-ink);
    background: transparent;
    font-size: 1rem;
}

.hc-search__input:focus {
    outline: 2px solid var(--lp-teal);
    outline-offset: 1px;
}

.hc-search__button {
    flex: 0 0 auto;
    height: 50px;
    padding-inline: 1.5rem;
    border-radius: 12px;
}

/* ------------------------------------------------------------ layout */
.hc-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 3.5rem;
}

.hc-sidebar {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: calc(var(--lp-nav-h) + 1rem);
}

.hc-panel,
.hc-contact,
.hc-results,
.hc-article {
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: #fff;
    box-shadow: var(--lp-shadow);
}

.hc-panel {
    padding: 1.1rem;
}

.hc .hc-panel__title {
    margin: 0 0 0.6rem;
    padding-inline: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

html[lang="ar"] .hc .hc-panel__title {
    letter-spacing: 0;
    font-size: 0.9rem;
}

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

.hc-cat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    color: var(--lp-ink);
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s;
}

.hc-cat i {
    color: var(--lp-teal);
}

.hc-cat:hover {
    background: var(--lp-teal-soft);
    color: var(--lp-teal);
}

.hc-cat.is-active {
    background: var(--lp-teal);
    color: #fff;
}

.hc-cat.is-active i,
.hc-cat.is-active .hc-cat__count {
    color: #fff;
}

.hc-cat__count {
    margin-inline-start: auto;
    min-width: 1.75rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(16, 42, 51, 0.06);
    color: var(--lp-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.hc-cat.is-active .hc-cat__count {
    background: rgba(255, 255, 255, 0.2);
}

/* ------------------------------------------------------------ contact */
.hc-contact {
    padding: 1.25rem;
}

.hc .hc-contact__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.hc-contact__title i {
    color: var(--lp-orange);
}

.hc-contact__lead {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.hc-contact__list {
    display: grid;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.hc-contact__list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--lp-line);
    border-radius: 10px;
    color: var(--lp-ink);
    font-size: 0.9rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.hc-contact__list a:hover {
    border-color: var(--lp-teal);
    color: var(--lp-teal);
}

.hc-contact__list i {
    color: var(--lp-teal);
}

.hc-contact__note {
    margin: 0;
    color: var(--lp-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

/* ------------------------------------------------------------ results */
.hc-results {
    padding: 1.5rem;
}

.hc-results__head {
    margin-bottom: 1rem;
}

.hc .hc-results__title {
    margin: 0;
    font-size: 1.35rem;
}

.hc-results__count {
    margin: 0.2rem 0 0;
    color: var(--lp-muted);
    font-size: 0.9rem;
}

.hc-results__count a {
    color: var(--lp-teal);
    font-weight: 600;
}

.hc-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hc-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-sm);
    color: var(--lp-text);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.hc-item:hover,
.hc-item:focus-visible {
    border-color: var(--lp-teal);
    box-shadow: var(--lp-shadow);
    color: var(--lp-text);
}

.hc-item__icon {
    flex: 0 0 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--lp-teal-soft);
    color: var(--lp-teal);
    font-size: 1.1rem;
}

.hc-item__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}

.hc-item__title {
    color: var(--lp-ink);
    font-size: 1.02rem;
    font-weight: 700;
}

.hc-item:hover .hc-item__title {
    color: var(--lp-teal);
}

.hc-item__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
}

.hc-item__meta {
    color: var(--lp-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.hc-item__arrow {
    align-self: center;
    color: var(--lp-muted);
}

.hc-empty {
    padding: 2.5rem 1rem;
    text-align: center;
}

.hc-empty__icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: var(--lp-teal-soft);
    color: var(--lp-teal);
    font-size: 1.5rem;
}

.hc .hc-empty h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.hc-empty p {
    margin: 0 auto 1.25rem;
    max-width: 420px;
}

/* ------------------------------------------------------------ article */
.hc-preview {
    padding: 0.7rem 0;
    background: #fff4d6;
    color: #6b4e00;
    font-weight: 600;
    font-size: 0.92rem;
}

.hc-preview i {
    margin-inline-end: 0.5rem;
}

.hc-article {
    padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
}

.hc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    color: var(--lp-muted);
    font-size: 0.85rem;
}

.hc-breadcrumb li + li::before {
    content: "/";
    margin-inline-end: 0.35rem;
    color: var(--lp-line);
}

.hc-breadcrumb a {
    color: var(--lp-teal);
    font-weight: 600;
}

.hc-breadcrumb li[aria-current] {
    color: var(--lp-text);
}

.hc .hc-article__title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
}

.hc-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0 0 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--lp-line);
    color: var(--lp-muted);
    font-size: 0.88rem;
}

.hc-article__meta i {
    margin-inline-end: 0.35rem;
    color: var(--lp-teal);
}

.hc-article__body {
    color: var(--lp-text);
    font-size: 1.02rem;
    line-height: 1.85;
    overflow-wrap: break-word;
}

.hc-article__body > :first-child {
    margin-top: 0;
}

.hc-article__body p,
.hc-article__body ul,
.hc-article__body ol {
    margin: 0 0 1rem;
}

.hc-article__body ul,
.hc-article__body ol {
    padding-inline-start: 1.4rem;
}

.hc-article__body li + li {
    margin-top: 0.35rem;
}

.hc-article__body li::marker {
    color: var(--lp-teal);
    font-weight: 700;
}

.hc .hc-article__body h2 {
    margin: 1.75rem 0 0.6rem;
    font-size: 1.25rem;
}

.hc .hc-article__body h3 {
    margin: 1.4rem 0 0.5rem;
    font-size: 1.08rem;
}

.hc-article__body strong {
    color: var(--lp-ink);
}

.hc-article__body code {
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    background: var(--lp-tint);
    color: var(--lp-teal-700);
    font-size: 0.88em;
}

.hc-article__body a {
    color: var(--lp-teal);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hc-table-wrap {
    margin: 0 0 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-sm);
}

.hc-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.hc-table th,
.hc-table td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--lp-line);
    text-align: start;
    vertical-align: top;
}

.hc-table th {
    background: var(--lp-tint);
    color: var(--lp-ink);
    font-weight: 700;
}

.hc-table tr:last-child td {
    border-bottom: 0;
}

.hc-related {
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: var(--lp-radius-sm);
    background: var(--lp-tint);
}

.hc .hc-related h2 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
}

.hc-related ul {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hc-related a {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--lp-teal);
    font-weight: 600;
}

.hc-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    color: var(--lp-teal);
    font-weight: 600;
}

/* ------------------------------------------------------------ footer */
.hc-footer {
    padding: 0 0 1.5rem;
}

.hc-footer .lp-footer__bottom {
    border-top: 0;
}

.hc-footer__safety {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 991.98px) {
    .hc-layout {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 1.25rem;
    }

    /* Categories become a chip row above the results; contact goes last. */
    .hc-sidebar {
        display: contents;
    }

    .hc-panel {
        order: 1;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

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

    .hc-cats {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }

    .hc-cats::-webkit-scrollbar {
        display: none;
    }

    .hc-cat {
        flex: 0 0 auto;
        border: 1px solid var(--lp-line);
        border-radius: 999px;
        background: #fff;
        white-space: nowrap;
    }

    .hc-cat__count {
        margin-inline-start: 0.15rem;
    }

    .hc-results,
    .hc-article {
        order: 2;
    }

    .hc-contact {
        order: 3;
    }
}

@media (max-width: 575.98px) {
    .hc-hero {
        padding: 2.25rem 0 2rem;
    }

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

    .hc-search__input {
        flex: 0 0 auto;
    }

    .hc-search__icon {
        top: calc(0.4rem + 25px);
    }

    .hc-search__button {
        width: 100%;
    }

    .hc-results,
    .hc-article {
        padding: 1.25rem 1rem;
        border-radius: var(--lp-radius-sm);
    }

    .hc-item {
        padding: 0.85rem;
    }

    .hc-item__icon {
        display: none;
    }
}
