.hub-page .hub-topic {
    min-width: 0;
    padding: 36px 0;
    border-top: 1px solid #dce3e0;
    color: #171a22;
}

.hub-page .hub-topic__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 20px;
    margin-bottom: 28px;
}

.hub-page .hub-topic__title {
    margin: 0;
    color: #171a22;
    font-family: inherit;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hub-page .hub-topic__description {
    grid-column: 1 / -1;
    max-width: 760px;
    margin: 0;
    color: #505762;
    font-size: 18px;
    line-height: 1.6;
}

.hub-page .hub-topic__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #1cca8b;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    text-transform: none;
}


.hub-page .hub-topic__featured,
.hub-page .hub-topic__list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hub-page .hub-topic__featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hub-page .hub-topic__featured--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-page .hub-topic__featured--1 { grid-template-columns: minmax(0, 1fr); }

.hub-page .hub-topic__item {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hub-page .hub-topic__item::before { content: none; }

.hub-page .hub-topic__article {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 16px 0;
    color: inherit;
    text-decoration: none;
}

.hub-page .hub-topic__item--featured .hub-topic__article {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
}

.hub-page .hub-topic__cover {
    display: flex;
    width: 100%;
    aspect-ratio: 8 / 5;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    background: #e6f4ef;
}

.hub-page .hub-topic__item:nth-child(2) .hub-topic__cover { background: #e9eff8; }
.hub-page .hub-topic__item:nth-child(3) .hub-topic__cover { background: #f6eee3; }

.hub-page .hub-topic__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    border: 0;
    object-fit: cover;
}

.hub-page .hub-topic__cover-placeholder {
    color: #505762;
    font-size: 14px;
}

.hub-page .hub-topic__type {
    padding-top: 3px;
    color: #505762;
    font-family: monospace;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.hub-page .hub-topic__type--ranked { color: #1cca8b; }

.hub-page .hub-topic__article-title {
    margin: 0;
    color: #171a22;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hub-page .hub-topic__item--featured .hub-topic__article-title {
    margin-top: 8px;
    font-size: 18px;
}

.hub-page .hub-topic__article:hover .hub-topic__article-title { color: #1cca8b; }

.hub-page .hub-topic__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    margin-top: 24px;
}

.hub-page .hub-topic__list > .hub-topic__item { border-bottom: 1px solid #dce3e0; }

.hub-page .hub-topic__more {
    margin: 20px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.hub-page .hub-topic__toggle {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 0;
    color: #1cca8b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.hub-page .hub-topic__toggle::-webkit-details-marker { display: none; }
.hub-page .hub-topic__toggle::after { content: none; }
.hub-page .hub-topic__toggle::before { content: '▸'; }
.hub-page .hub-topic__more[open] > .hub-topic__toggle::before { content: '▾'; }
.hub-page .hub-topic__hide { display: none; }
.hub-page .hub-topic__more[open] .hub-topic__show { display: none; }
.hub-page .hub-topic__more[open] .hub-topic__hide { display: inline; }
.hub-page .hub-topic__list--extra { margin-top: 12px; }

.hub-page .hub-topic__article:focus-visible,
.hub-page .hub-topic__toggle:focus-visible {
    outline: 2px solid #171a22;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .hub-page .hub-topic { padding: 28px 0; }
    .hub-page .hub-topic__title { font-size: 26px; }
    .hub-page .hub-topic__description { font-size: 16px; }
    .hub-page .hub-topic__list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .hub-page .hub-topic__featured { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hub-page .hub-topic__header { gap: 12px; }
    .hub-page .hub-topic__title { font-size: 24px; }
    .hub-page .hub-topic__count { font-size: 14px; }
    .hub-page .hub-topic__article { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
    .hub-page .hub-topic__article-title { font-size: 16px; }
}

.hub-page .hub-browse {
    padding: 28px 0 32px;
    background: #fff;
}

.hub-page .hub-browse__label {
    margin: 0 0 14px;
    color: #1cca8b;
    font-family: monospace;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.hub-page .hub-browse__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hub-page .hub-browse__item {
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hub-page .hub-browse__item::before { content: none; }

.hub-page .hub-browse__link,
.hub-page .hub-browse__compare {
    box-sizing: border-box;
    display: inline-flex;
    max-width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #d5dcda;
    border-radius: 0;
    background: #fff;
    color: #171a22;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.hub-page .hub-browse__title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hub-page .hub-browse__count {
    flex-shrink: 0;
    color: #1cca8b;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.hub-page .hub-browse__link:hover {
    border-color: #1cca8b;
    background: #f0fbf6;
    color: #171a22;
}

.hub-page .hub-browse__compare {
    margin-top: 8px;
    border-color: #171a22;
    background: #171a22;
    color: #fff;
}

.hub-page .hub-browse__arrow { color: #1cca8b; }
.hub-page .hub-browse__compare:hover { border-color: #1cca8b; color: #fff; }

.hub-page .hub-browse__link:focus-visible,
.hub-page .hub-browse__compare:focus-visible {
    outline: 2px solid #171a22;
    outline-offset: 3px;
}

.hub-page .hub-browse__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.hub-page .hub-topic__title,
.hub-page #hub-compare-firms {
    scroll-margin-top: calc(var(--hub-sticky-top, 100px) + 20px);
}

html:has(.hub-page .hub-browse) { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html:has(.hub-page .hub-browse) { scroll-behavior: auto; }
}

@media (max-width: 600px) {
    .hub-page .hub-browse { padding: 24px 0; }
    .hub-page .hub-browse__link,
    .hub-page .hub-browse__compare { padding: 10px 12px; font-size: 14px; }
}
