/* Vanta Tools hub page: search, category chips, popular row, shorter groups. */
.vw-hub { padding-top: 34px !important; }
.vw-hub-bar { position: relative; z-index: 2; display: grid; gap: 12px; padding: 14px; margin-bottom: 30px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--vw-line); border-radius: 18px; box-shadow: 0 10px 30px -16px rgba(14, 26, 47, .3); }
.vw-hub-search { position: relative; display: block; margin: 0; }
.vw-hub-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--vw-muted); }
.vw-hub-search input { width: 100%; height: 52px; padding: 0 18px 0 48px; font-size: 1.05rem; border: 1px solid #cbd5e4; border-radius: 12px; background: #fff; }
.vw-hub-search input:focus { outline: 0; border-color: var(--vw-blue); box-shadow: 0 0 0 3px rgba(10, 114, 240, .15); }
.vw-hub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vw-hub-chips::-webkit-scrollbar { display: none; }
.vw-theme .vw-hub-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: .9rem; font-weight: 600; color: var(--vw-ink-2); text-decoration: none; background: var(--vw-surface); border: 1px solid transparent; border-radius: 999px; transition: background .15s, color .15s, border-color .15s; }
.vw-hub-chip i { color: var(--vw-blue); font-size: .85rem; }
.vw-hub-chip span { padding: 0 7px; font-size: .75rem; font-weight: 700; color: var(--vw-muted); background: #fff; border-radius: 999px; }
.vw-theme .vw-hub-chip:hover, .vw-theme .vw-hub-chip.is-active { color: var(--vw-blue-700); background: #e8f1ff; border-color: #cfe0fb; }
.vw-hub-searching .vw-hub-chips { opacity: .5; }
.vw-hub-none { padding: 30px; text-align: center; font-size: 1.05rem; color: var(--vw-muted); background: #fff; border: 1px dashed #cbd5e4; border-radius: 14px; }

.vw-theme .vw-hub-h { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--vw-ink); letter-spacing: 0; text-transform: none; }
.vw-hub-h i { display: inline-grid; place-items: center; width: 34px; height: 34px; font-size: .95rem; color: var(--vw-blue); background: #e8f1ff; border-radius: 10px; }

/* Popular row */
.vw-hub-popular { margin-bottom: 46px; }
.vw-hub-popular .vw-hub-h { margin-bottom: 14px; }
.vw-hub-popular .vw-hub-h i { color: #e8590c; background: #fff0e6; }
.vw-hub-pop-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.vw-theme .vw-tool-card.is-pop { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
.vw-tool-card.is-pop p { display: none; }
.vw-tool-card.is-pop > i { grid-row: auto; }

/* Category groups */
.vw-tools-group.vw-hub-cat + .vw-tools-group.vw-hub-cat { margin-top: 46px; }
.vw-hub-cat { scroll-margin-top: 110px; }
.vw-hub-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.vw-hub-cat-head p { margin: 0; color: var(--vw-muted); }
.vw-tools-group.vw-hub-cat > h3 { display: none; }
.vw-hub-cat.is-short .vw-tools-grid > .vw-tool-card:nth-child(n+7) { display: none; }
.vw-hub-searching .vw-hub-cat.is-short .vw-tools-grid > .vw-tool-card:nth-child(n+7) { display: grid; }
.vw-hub-searching .vw-hub-more { display: none; }
.vw-theme .vw-tool-card[hidden], .vw-hub-cat[hidden], .vw-hub-popular[hidden] { display: none !important; }
.vw-hub-more { display: flex; align-items: center; gap: 8px; margin: 14px auto 0; padding: 9px 18px; font-weight: 700; color: var(--vw-blue); background: #fff; border: 1px solid #cfe0fb; border-radius: 999px; cursor: pointer; }
.vw-hub-more:hover { background: #e8f1ff; }
.vw-hub-cat:not(.is-short) .vw-hub-more { display: none; }

@media (max-width: 1199px) { .vw-hub-pop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .vw-hub-bar { padding: 10px; border-radius: 14px; }
    .vw-hub-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .vw-hub-search input { height: 46px; font-size: 1rem; }
    .vw-hub-pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .vw-hub-cat { scroll-margin-top: 80px; }
}
@media (max-width: 575px) {
    .vw-hub-cat.is-short .vw-tools-grid > .vw-tool-card:nth-child(n+5) { display: none; }
    .vw-hub-searching .vw-hub-cat.is-short .vw-tools-grid > .vw-tool-card:nth-child(n+5) { display: grid; }
}
@media (min-width: 576px) { .vw-hub-more.is-mobile-only { display: none; } }
/* Centred section titles */
.vw-hub-cat-head { flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-bottom: 18px; }
.vw-theme .vw-hub-h { justify-content: center; }
.vw-hub-popular .vw-hub-h { margin-bottom: 18px; }
