.financial-help-center {
    min-width: 0;
}

.financial-help-center__search {
    flex: 0 1 420px;
    min-width: min(280px, 100%);
}

.financial-help-center__search .app-form-control {
    min-height: 38px;
    width: 100%;
}

.financial-help-center__layout {
    align-items: start;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 190px minmax(280px, 340px) minmax(420px, 1fr);
    min-width: 0;
}

.financial-help-center__tree,
.financial-help-center__results,
.financial-help-center__article {
    min-width: 0;
    padding: 0.85rem;
}

.financial-help-center__tree,
.financial-help-center__results {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: calc(100vh - 190px);
    overflow: auto;
    position: sticky;
    top: 0.5rem;
}

.financial-help-center__section,
.financial-help-center__item {
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--app-text-primary);
    cursor: pointer;
    font: inherit;
    padding: 0.65rem 0.7rem;
    text-align: left;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
    width: 100%;
}

.financial-help-center__section:hover,
.financial-help-center__item:hover {
    background: var(--app-accent-soft);
    border-color: var(--app-border-strong);
    color: var(--app-accent-700);
}

.financial-help-center__section:focus-visible,
.financial-help-center__item:focus-visible {
    outline: 2px solid var(--app-accent-600);
    outline-offset: 2px;
}

.financial-help-center__section.is-active {
    background: var(--app-accent-soft-strong);
    border-color: var(--app-border-strong);
    color: var(--app-accent-700);
    font-weight: 700;
}

.financial-help-center__item {
    background: color-mix(in srgb, var(--app-surface-2) 82%, transparent);
    border-color: var(--app-border-soft);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.financial-help-center__item.is-active {
    background: var(--app-accent-soft);
    border-color: var(--app-border-strong);
    box-shadow: inset 3px 0 0 var(--app-accent-600);
    color: var(--app-accent-700);
}

.financial-help-center__item strong {
    line-height: 1.3;
}

.financial-help-center__item span,
.financial-help-center__count,
.financial-help-center__empty {
    color: var(--app-text-secondary);
    font-size: 0.84rem;
}

.financial-help-center__count {
    font-weight: 700;
    padding: 0.15rem 0.2rem 0.35rem;
}

.financial-help-center__empty {
    margin: 0;
    padding: 0.75rem;
    text-align: center;
}

.financial-help-center__article {
    color: var(--app-text-primary);
    min-height: 560px;
}

.financial-help-center__article-actions {
    align-items: center;
    border-bottom: 1px solid var(--app-border-soft);
    color: var(--app-text-secondary);
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.financial-help-center .screen-help-content {
    color: var(--app-text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.financial-help-center .screen-help-content h1,
.financial-help-center .screen-help-content h2,
.financial-help-center .screen-help-content h3 {
    color: var(--app-text-primary);
    font-weight: 700;
    line-height: 1.25;
    margin: 1.25rem 0 0.55rem;
}

.financial-help-center .screen-help-content h1:first-child,
.financial-help-center .screen-help-content h2:first-child,
.financial-help-center .screen-help-content h3:first-child {
    margin-top: 0;
}

.financial-help-center .screen-help-content h1 {
    font-size: 1.5rem;
}

.financial-help-center .screen-help-content h2 {
    font-size: 1.18rem;
}

.financial-help-center .screen-help-content h3 {
    font-size: 1rem;
}

.financial-help-center .screen-help-content p {
    margin: 0 0 0.8rem;
}

.financial-help-center .screen-help-content ul,
.financial-help-center .screen-help-content ol {
    margin: 0 0 0.9rem 1.25rem;
    padding: 0;
}

.financial-help-center .screen-help-content li {
    margin-bottom: 0.35rem;
    padding-left: 0.15rem;
}

.financial-help-center .screen-help-content a {
    color: var(--app-accent-700);
}

.financial-help-center .screen-help-content code {
    background: var(--app-accent-soft);
    border-radius: 5px;
    padding: 0.1rem 0.3rem;
}

.financial-help-center .screen-help-content img {
    border-radius: 10px;
    display: block;
    height: auto;
    margin: 0.85rem 0;
    max-width: 100%;
}

.financial-help-center .screen-help-content table {
    border-collapse: collapse;
    display: block;
    margin: 0.9rem 0;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
}

.financial-help-center .screen-help-content th,
.financial-help-center .screen-help-content td {
    border: 1px solid var(--app-border-soft);
    padding: 0.5rem 0.6rem;
    text-align: left;
    vertical-align: top;
}

.financial-help-center .screen-help-content th {
    background: var(--app-accent-soft);
    font-weight: 700;
}

.financial-help-center .screen-help-content blockquote {
    background: color-mix(in srgb, var(--app-surface-2) 82%, transparent);
    border-left: 4px solid var(--app-accent-600);
    margin: 0.9rem 0;
    padding: 0.65rem 0.8rem;
}

.financial-help-center__faqs,
.financial-help-center__related {
    border-top: 1px solid var(--app-border-soft);
    margin-top: 1.25rem;
    padding-top: 0.9rem;
}

.financial-help-center__faqs h2,
.financial-help-center__related h2 {
    color: var(--app-text-primary);
    font-size: 1.05rem;
}

.financial-help-center__faqs details {
    background: color-mix(in srgb, var(--app-surface-2) 82%, transparent);
    border: 1px solid var(--app-border-soft);
    border-radius: 10px;
    margin: 0.5rem 0;
    padding: 0.65rem 0.75rem;
}

.financial-help-center__faqs summary {
    color: var(--app-text-primary);
    cursor: pointer;
    font-weight: 700;
}

.financial-help-center__faqs details[open] {
    border-color: var(--app-border-strong);
}

.financial-help-center__faqs details p {
    color: var(--app-text-secondary);
    margin: 0.65rem 0 0;
}

.financial-help-center__related > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

@media (max-width: 1280px) {
    .financial-help-center__layout {
        grid-template-columns: 180px minmax(260px, 320px) minmax(360px, 1fr);
    }
}

@media (max-width: 1100px) {
    .financial-help-center__layout {
        grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    }

    .financial-help-center__tree {
        flex-direction: row;
        flex-wrap: wrap;
        grid-column: 1 / -1;
    }

    .financial-help-center__tree,
    .financial-help-center__results {
        max-height: none;
        position: static;
    }

    .financial-help-center__section {
        width: auto;
    }
}

@media (max-width: 700px) {
    .financial-help-center__search {
        flex-basis: 100%;
        min-width: 100%;
    }

    .financial-help-center__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .financial-help-center__tree,
    .financial-help-center__results,
    .financial-help-center__article {
        grid-column: auto;
    }

    .financial-help-center__article-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
