/* Shared category navigation and a homepage grouped by the same six hubs. */
:root { --wr-header-height: 124px; }
html { scroll-padding-top: calc(var(--wr-header-height) + 20px); }
.site-header-wrapper { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header-wrapper .site-header { min-height: 66px; padding-block: 6px; border: 0; }
.category-navigation { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #b6b6bf transparent; }
.category-menu { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; list-style: none; padding: 7px 2px 10px; margin: 0; }
.category-menu li { flex: 1 0 auto; }
.category-menu a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.category-menu .help-icon { flex: 0 0 22px; width: 22px; height: 22px; stroke-width: 2; color: #4d617c; }
.category-menu a:hover { background: #f5f5f7; color: var(--blue); }
.category-menu a[aria-current] { background: #eaf2fc; color: #004c99; }
.category-menu a[aria-current] .help-icon { color: #004c99; }
.category-menu a:focus-visible { outline-offset: -3px; }
.topic-list .help-icon { width: 20px; height: 20px; margin-inline-end: 6px; }
.home-categories { padding-block: 55px 75px; }
.home-categories .center-heading { max-width: 780px; margin-bottom: 36px; }
.category-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 60px; }
.category-group { min-width: 0; padding: 30px 0 24px; border-top: 1px solid var(--line); }
.category-group-heading { display: flex; align-items: center; gap: 14px; }
.category-group-icon { display: grid; flex: 0 0 46px; place-items: center; height: 46px; border-radius: 14px; color: #1767bb; background: #e5eef9; }
.category-group:nth-child(2) .category-group-icon { color: #7755b5; background: #eae3f6; }
.category-group:nth-child(3) .category-group-icon { color: #24796b; background: #dbefe9; }
.category-group:nth-child(4) .category-group-icon { color: #a05b16; background: #f8e9d6; }
.category-group:nth-child(5) .category-group-icon { color: #a84c6b; background: #f5e0e9; }
.category-group:nth-child(6) .category-group-icon { color: #526b90; background: #e7edf5; }
.category-group-icon .help-icon { width: 28px; height: 28px; }
.category-group h3 { font-size: 25px; line-height: 1.2; }
.category-group h3 a { color: var(--ink); text-decoration: none; }
.category-group h3 a:hover { color: var(--blue); text-decoration: underline; }
.category-group-description { min-height: 48px; margin: 17px 0 12px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.category-guide-list { margin: 0; padding: 0; list-style: none; }
.category-guide-list li { border-bottom: 1px solid #eeeef1; }
.category-guide-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding-block: 13px; color: var(--ink); font-size: 16px; line-height: 1.45; text-decoration: none; }
.category-guide-list a:hover { color: var(--blue); text-decoration: underline; }
.category-guide-list .icon { width: 17px; height: 17px; color: #626268; }
.category-all { margin-top: 10px; font-size: 14px; }
.article-layout.has-toc .toc { inset-block-start: calc(var(--wr-header-height) + 20px); max-height: calc(100dvh - var(--wr-header-height) - 40px); }
h1, h2, h3, h4, h5, h6, #categories, #latest-guides { scroll-margin-block-start: 20px; }
.breadcrumbs { flex-wrap: wrap; }
@media (max-width: 1100px) {
    .category-menu { justify-content: flex-start; }
    .category-menu a { padding-inline: 10px; font-size: 13px; }
    .category-menu .help-icon { width: 20px; height: 20px; flex-basis: 20px; }
}
@media (max-width: 960px) {
    .site-header-wrapper .site-header { min-height: 64px; }
    .site-header-wrapper .site-header .nav { padding-block: 4px 12px; }
    .category-menu { width: max-content; min-width: 100%; gap: 5px; padding-block: 5px 8px; }
    .category-menu a { min-height: 44px; padding-inline: 12px; }
    .category-groups { column-gap: 35px; }
}
@media (max-width: 640px) {
    .site-header-wrapper > .site-shell { width: 100%; }
    .site-header-wrapper .site-header { margin-inline: var(--gutter); }
    .category-menu { padding-inline: var(--gutter); }
    .category-menu a { background: #f5f5f7; }
    .category-navigation { border-top: 1px solid #eeeef1; }
    .home-categories { padding-block: 35px 45px; }
    .home-categories .center-heading { text-align: left; margin-bottom: 28px; }
    .home-categories .center-heading h2 { font-size: 32px; }
    .category-groups { grid-template-columns: 1fr; }
    .category-group { padding-block: 25px 20px; }
    .category-group h3 { font-size: 24px; }
    .category-group-description { min-height: 0; margin-top: 15px; font-size: 15px; }
    .category-guide-list a { font-size: 16px; }
}
@media (forced-colors: active) {
    .site-header-wrapper { background: Canvas; }
    .category-menu a, .category-group-icon { background: Canvas; color: LinkText; }
    .category-menu a[aria-current] { border: 1px solid LinkText; }
}
@media print {
    .site-header-wrapper { position: static; }
    .category-navigation { display: none; }
    .category-groups { display: block; }
    .category-group { break-inside: avoid; }
    .home-categories { padding-block: 20px; }
}
