﻿:root {
    --app-primary: #0057c8;
    --app-primary-dark: #00499e;
    --app-bg: #f4f7fb;
    --app-surface: #ffffff;
    --app-surface-soft: #f8fbff;
    --app-border: #dbe3ec;
    --app-border-strong: #c8d6e5;
    --app-text: #172033;
    --app-muted: #64748b;
    --app-success: #0f7a3a;
    --app-success-bg: #dff8e8;
    --app-warning: #a16000;
    --app-warning-bg: #fff3cf;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--app-bg);
    color: var(--app-text);
    font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

.help-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 12px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    font-weight: 900;
    color: var(--app-primary);
}

.brand img {
    width: 150px;
    max-width: 42vw;
    height: 44px;
    object-fit: contain;
    object-position: left center;
}

.brand span {
    padding-left: 14px;
    border-left: 1px solid var(--app-border);
    white-space: nowrap;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-actions a,
.side-index a,
.support-button {
    border: 1px solid var(--app-border-strong);
    border-radius: var(--radius);
    background: var(--app-surface);
    color: #23466f;
    font-weight: 800;
    transition: 0.16s ease;
}

.top-actions a {
    padding: 9px 13px;
}

.top-actions a:hover,
.side-index a:hover,
.side-index a.is-active {
    border-color: #9bbde7;
    background: #eaf3ff;
    color: var(--app-primary);
}

.help-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 22px;
    width: min(1440px, calc(100% - 32px));
    margin: 28px auto 56px;
}

.side-index {
    position: sticky;
    top: 96px;
    align-self: start;
    display: grid;
    gap: 8px;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    scrollbar-color: #b8c9dc transparent;
    scrollbar-width: thin;
}

.side-index::-webkit-scrollbar {
    width: 8px;
}

.side-index::-webkit-scrollbar-thumb {
    background: #b8c9dc;
    border-radius: 999px;
}

.side-index::-webkit-scrollbar-track {
    background: transparent;
}

.side-title {
    padding: 8px 8px 12px;
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.side-index a {
    padding: 10px 12px;
    font-size: 0.95rem;
}

.help-content {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.hero,
.search-panel,
.help-section,
.support-band {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: center;
    padding: clamp(26px, 4vw, 46px);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--app-primary);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.05;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 6px;
    font-size: 1.5rem;
    line-height: 1.2;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.hero-copy {
    max-width: 760px;
    margin-bottom: 0;
    color: #36506d;
    font-size: 1.12rem;
}

.hero-panel {
    padding: 18px;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: var(--radius);
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--app-success);
}

.hero-panel strong {
    display: inline-block;
    margin-bottom: 8px;
}

.hero-panel p,
.section-heading p,
.step-card p,
.info-card p,
.faq-list p,
.support-band p {
    margin-bottom: 0;
    color: var(--app-muted);
}

.search-panel {
    display: grid;
    gap: 9px;
    padding: 18px;
}

.search-panel label {
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.search-panel input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--app-text);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border-strong);
    border-radius: var(--radius);
    font: inherit;
    outline: none;
}

.search-panel input:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(0, 87, 200, 0.12);
}

.help-section {
    padding: clamp(20px, 3vw, 30px);
    scroll-margin-top: 92px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.section-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    background: #e6f0ff;
    color: var(--app-primary);
    font-weight: 900;
}

.step-list,
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.step-card,
.info-card,
.flow-card,
.faq-list details {
    border: 1px solid var(--app-border);
    border-radius: var(--radius);
    background: var(--app-surface-soft);
}

.step-card,
.info-card,
.flow-card {
    padding: 16px;
}

.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 28px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    background: #eaf3ff;
    color: var(--app-primary);
    font-size: 0.8rem;
    font-weight: 900;
}

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

.flow-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
}

.flow-card strong {
    color: var(--app-primary);
}

.check-list {
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: #2b3f58;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--app-primary);
    box-shadow: 0 0 0 4px #e6f0ff;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    padding: 0;
}

.faq-list summary {
    cursor: pointer;
    padding: 15px 16px;
    font-weight: 900;
}

.faq-list p {
    padding: 0 16px 16px;
}

.support-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px;
    background: #f8fbff;
}

.support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    white-space: nowrap;
}

.support-button:hover {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: #ffffff;
}

.is-hidden {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 22px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius);
    color: var(--app-muted);
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

@media (max-width: 1100px) {
    .help-shell {
        grid-template-columns: 1fr;
    }

    .side-index {
        position: static;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding: 10px;
    }

    .side-title {
        display: none;
    }

    .side-index a {
        white-space: nowrap;
    }

    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .help-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .brand span {
        display: none;
    }

    .top-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .help-shell {
        width: min(100% - 20px, 1440px);
        margin-top: 16px;
    }

    .step-list,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .flow-card {
        grid-template-columns: 1fr;
    }

    .support-band {
        align-items: stretch;
        flex-direction: column;
    }

    .support-button {
        width: 100%;
    }
}



@media (max-width: 760px) {
    .help-topbar {
        position: sticky;
        top: 0;
        align-items: center;
        flex-direction: row;
        min-height: 58px;
        padding: 8px 14px;
    }

    .brand img {
        width: 118px;
        height: 34px;
    }

    .top-actions {
        display: none;
    }

    .help-shell {
        gap: 10px;
        width: min(100% - 18px, 1440px);
        margin-top: 10px;
    }

    .side-index {
        position: sticky;
        top: 59px;
        z-index: 18;
        display: flex;
        gap: 6px;
        margin: 0 -1px;
        max-height: none;
        padding: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: var(--radius);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
        scrollbar-width: none;
    }

    .side-index::-webkit-scrollbar {
        display: none;
    }

    .side-index a {
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: 0.78rem;
        line-height: 1;
        white-space: nowrap;
    }

    .hero,
    .search-panel,
    .help-section,
    .support-band {
        box-shadow: none;
    }

    .hero {
        gap: 14px;
        padding: 22px 18px;
    }

    h1 {
        font-size: 1.65rem;
        line-height: 1.08;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero-copy {
        font-size: 0.98rem;
    }

    .hero-panel {
        padding: 14px;
    }

    .search-panel,
    .help-section {
        padding: 16px;
    }

    .section-heading {
        align-items: flex-start;
        gap: 10px;
    }

    .section-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .faq-list summary {
        padding: 13px 14px;
    }

    .faq-list p {
        padding: 0 14px 14px;
    }
}

@media (max-width: 430px) {
    body {
        font-size: 15px;
    }

    .help-shell {
        width: min(100% - 14px, 1440px);
    }

    .side-index a {
        padding: 7px 9px;
        font-size: 0.74rem;
    }

    .step-card,
    .info-card,
    .flow-card {
        padding: 14px;
    }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .help-topbar {
        min-height: 66px;
        padding: 10px 22px;
        gap: 16px;
    }

    .brand img {
        width: 132px;
        height: 40px;
    }

    .brand span {
        font-size: 0.95rem;
    }

    .top-actions {
        gap: 6px;
    }

    .top-actions a {
        padding: 8px 10px;
        font-size: 0.88rem;
    }

    .help-shell {
        gap: 14px;
        width: min(100% - 28px, 1440px);
        margin-top: 16px;
    }

    .side-index {
        position: sticky;
        top: 76px;
        z-index: 18;
        display: flex;
        gap: 8px;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px;
        scrollbar-width: none;
    }

    .side-index::-webkit-scrollbar {
        display: none;
    }

    .side-title {
        display: none;
    }

    .side-index a {
        flex: 0 0 auto;
        padding: 9px 12px;
        white-space: nowrap;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 18px;
        padding: 30px;
    }

    h1 {
        font-size: 2.35rem;
    }

    .step-list,
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.support-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .support-actions {
        width: 100%;
        justify-content: stretch;
    }

    .support-actions .support-button {
        flex: 1 1 130px;
    }
}


