.article-tree {
    --at-border: #d7dce2;
    --at-bg: #f7f9fc;
    --at-text: #182230;
    --at-muted: #526073;
    --at-accent: #0a66c2;
    --at-accent-soft: #e8f2ff;
    margin: 1rem 0;
    color: var(--at-text);
    box-sizing: border-box;
}

.article-tree--list-only,
.article-tree--nav-only {
    width: 100%;
}

.article-tree--list-only > .article-tree-results-wrap,
.article-tree--nav-only > .article-tree-nav {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.article-tree-wrapper {
    display: flex;
    gap: 2rem;
}

.article-tree--left {
    flex-direction: row;
}

.article-tree--right {
    flex-direction: row-reverse;
}

.article-tree--top {
    flex-direction: column;
}

.article-tree-nav {
    flex: 0 0 min(320px, 35%);
    min-width: 220px;
}

.article-tree-results-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.article-tree > .article-tree-nav,
.article-tree-results-wrap {
    border: 1px solid var(--at-border);
    border-radius: 10px;
    background: #fff;
    padding: 0.875rem;
}

.article-tree > .article-tree-nav {
    background: var(--at-bg);
}

.article-tree-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-tree-nav .article-tree-nav {
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 0.35rem;
    margin-left: 0.8rem;
    padding: 0.35rem 0 0 0.65rem;
    border: 0;
    border-left: 1px dashed var(--at-border);
    background: transparent;
}

.article-tree-nav__item {
    margin: 0.2rem 0;
    min-width: 0;
}

.article-tree-nav__row {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    min-width: 0;
}

.article-tree-nav__button {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--at-text);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.35;
    padding: 0.4rem 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.article-tree-nav__select-node[aria-current="true"] {
    background: var(--at-accent-soft);
    color: var(--at-accent);
    font-weight: 600;
}

.article-tree-nav__toggle {
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--at-muted);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.article-tree-nav__toggle:hover,
.article-tree-nav__toggle:focus {
    border-color: var(--at-border);
    background: rgba(10, 102, 194, 0.08);
    color: var(--at-accent);
    outline: none;
}

.article-tree-nav__toggle-icon {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.article-tree-nav__toggle[aria-expanded="true"] .article-tree-nav__toggle-icon {
    transform: rotate(225deg);
}

.article-tree-nav__button:hover,
.article-tree-nav__button:focus {
    background: rgba(10, 102, 194, 0.08);
    outline: none;
}

.article-tree-nav__item.is-selected > .article-tree-nav__row > .article-tree-nav__select-node {
    background: var(--at-accent-soft);
    color: var(--at-accent);
    font-weight: 600;
}

.article-tree-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-tree-category-description {
    margin: 0 0 0.9rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--at-border);
    color: var(--at-text);
}

.article-tree-results__item {
    border-bottom: 1px solid var(--at-border);
    margin: 0;
}

.article-tree-results__item:last-child {
    border-bottom: 0;
}

.article-tree-results__item a {
    display: block;
    color: var(--at-text);
    padding: 0.6rem 0.25rem;
    text-decoration: none;
}

.article-tree-results__item a:hover,
.article-tree-results__item a:focus {
    color: var(--at-accent);
    text-decoration: underline;
}

.article-tree-footer-thumbnails {
    --at-footer-gap: 0.65rem;
    color: #fff;
}

.article-tree-footer-thumbnails__title {
    margin: 0 0 0.85rem;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.article-tree-footer-thumbnails__list {
    display: grid;
    grid-template-columns: repeat(var(--at-footer-columns, 4), minmax(0, 1fr));
    gap: var(--at-footer-gap);
    list-style: none !important;
    margin: 0;
    padding: 0 !important;
}

.article-tree-footer-thumbnails--columns-1 {
    --at-footer-columns: 1;
}

.article-tree-footer-thumbnails--columns-1 .article-tree-footer-thumbnails__list {
    grid-template-columns: minmax(0, 1fr);
}

.article-tree-footer-thumbnails--columns-1 .article-tree-footer-thumbnails__link {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
}

.article-tree-footer-thumbnails--columns-1 .article-tree-footer-thumbnails__thumb {
    width: 72px;
}

.article-tree-footer-thumbnails--columns-1 .article-tree-footer-thumbnails__label {
    -webkit-line-clamp: 3;
}

.article-tree-footer-thumbnails--columns-2 {
    --at-footer-columns: 2;
}

.article-tree-footer-thumbnails--columns-3 {
    --at-footer-columns: 3;
}

.article-tree-footer-thumbnails--columns-4 {
    --at-footer-columns: 4;
}

.article-tree-footer-thumbnails--columns-5 {
    --at-footer-columns: 5;
}

.article-tree-footer-thumbnails--columns-6 {
    --at-footer-columns: 6;
}

.article-tree-footer-thumbnails__item {
    margin: 0 !important;
    min-width: 0;
    padding: 0 !important;
    list-style: none !important;
}

.article-tree-footer-thumbnails__item::before,
.article-tree-footer-thumbnails__item::marker {
    content: none !important;
    display: none !important;
}

.article-tree-footer-thumbnails__link {
    display: grid;
    gap: 0.4rem;
    color: #fff;
    text-decoration: underline !important;
}

.article-tree-footer-thumbnails__link:hover .article-tree-footer-thumbnails__label,
.article-tree-footer-thumbnails__link:focus .article-tree-footer-thumbnails__label {
    text-decoration: underline;
}

.article-tree-footer-thumbnails__thumb {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.article-tree-footer-thumbnails__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.article-tree-footer-thumbnails__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--at-accent-soft);
    color: var(--at-accent);
    font-weight: 700;
}

.article-tree-footer-thumbnails__label {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 20px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-decoration: underline;
}

.article-tree-footer-thumbnails__empty {
    margin: 0;
    color: var(--at-muted);
}

.article-tree-footer-thumbnails .article-tree-footer-thumbnails__smart-card {
    margin: 0;
}

.article-tree-footer-thumbnails .article-tree-footer-thumbnails__smart-card .slc-card__link {
    gap: 0.65rem;
    padding: 0.55rem 0.6rem;
    text-decoration: none !important;
}

.article-tree-footer-thumbnails .article-tree-footer-thumbnails__smart-card .slc-card__media {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
}

.article-tree-footer-thumbnails .article-tree-footer-thumbnails__smart-card .slc-card__title {
    font-size: 20px;
    line-height: 1.35;
    text-decoration: underline;
}

.article-tree-article-preview article {
    border-top: 1px solid var(--at-border);
    padding-top: 0.9rem;
}

.article-tree-loading,
.article-tree-error,
.article-tree-results__empty {
    margin: 0;
    color: var(--at-muted);
}

@media (max-width: 768px) {
    .article-tree-wrapper {
        flex-direction: column !important;
        gap: 1rem;
    }

    .article-tree-nav {
        order: 1;
        min-width: 0;
    }

    .article-tree-results-wrap {
        order: 2;
    }

    .article-tree-footer-thumbnails__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-tree-footer-thumbnails--columns-1 .article-tree-footer-thumbnails__list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (min-width: 769px) {
    .et_pb_row.article-tree-divi-modular-row,
    .et_pb_row:has(> .et_pb_column .article_tree_divi_list_module):has(> .et_pb_column .article_tree_divi_nav_module) {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start;
    }

    .et_pb_row.article-tree-divi-modular-row > .et_pb_column,
    .et_pb_row:has(> .et_pb_column .article_tree_divi_list_module):has(> .et_pb_column .article_tree_divi_nav_module) > .et_pb_column {
        float: none !important;
        margin-bottom: 0 !important;
    }

    .et_pb_row.article-tree-divi-modular-row > .article-tree-divi-list-column,
    .et_pb_row:has(> .et_pb_column .article_tree_divi_list_module):has(> .et_pb_column .article_tree_divi_nav_module) > .et_pb_column_2_3 {
        flex: 0 0 64.833% !important;
        width: 64.833% !important;
        margin-right: 5.5% !important;
    }

    .et_pb_row.article-tree-divi-modular-row > .article-tree-divi-nav-column,
    .et_pb_row:has(> .et_pb_column .article_tree_divi_list_module):has(> .et_pb_column .article_tree_divi_nav_module) > .et_pb_column_1_3 {
        flex: 0 0 29.6667% !important;
        width: 29.6667% !important;
        margin-right: 0 !important;
    }
}
