/* A single listing hero. Articles continue to use the shared compact header. */
.thp-site .page-frame-knowledge .knowledge-hub-hero{position:relative;isolation:isolate;display:flex;align-items:center;box-sizing:border-box;width:100%;margin:0 0 1.5rem;height:315px;min-height:315px;max-height:315px;padding:18px 24px;color:var(--species-status-ex-ink);background:linear-gradient(120deg,color-mix(in srgb,var(--ds-brand) 18%,var(--species-status-ne-ink)),color-mix(in srgb,var(--ds-brand) 6%,var(--species-status-ne-ink)));overflow:hidden}
.knowledge-hub-hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 1px 1px,color-mix(in srgb,var(--species-status-ex-ink) 9%,transparent) 1px,transparent 0);background-size:22px 22px}
.knowledge-hub-hero .hero-backdrop{position:absolute;inset:0;z-index:-3}.knowledge-hub-hero .hero-backdrop img{width:100%;height:100%;object-fit:cover}
.knowledge-hub-hero .hub-hero-scrim{position:absolute;inset:0;z-index:-2;background:linear-gradient(120deg,color-mix(in srgb,var(--ds-brand) 18%,var(--species-status-ne-ink)),color-mix(in srgb,var(--ds-brand) 6%,var(--species-status-ne-ink)));opacity:var(--hub-overlay,.9)}
.thp-site .page-frame-knowledge .knowledge-hub-hero>.container{width:100%;max-width:none;padding:0;color:inherit;display:grid;gap:6px;text-align:left}
.thp-site .knowledge-hub-hero :is(h1,p,a,label,legend,span){color:var(--species-status-ex-ink)}
.thp-site .page-frame-knowledge .knowledge-hub-hero h1{font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.15;margin:0;font-weight:700}.knowledge-hub-hero h1:focus{outline:none}
.thp-site .knowledge-hub-hero .knowledge-hero-intro{display:block;font-size:1rem;font-weight:400;line-height:1.4;max-width:100%;margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.thp-site .knowledge-hub-hero .knowledge-hero-count{font-size:.8125rem;line-height:1.35;margin:0}
.knowledge-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem;font-size:.75rem;line-height:1.35}.knowledge-breadcrumb a{text-decoration:underline}
.thp-site .page-frame-knowledge .knowledge-hub-hero .knowledge-search{display:block;width:100%;max-width:52rem;margin:3px 0 0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:inherit}
.knowledge-search-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto;gap:10px;align-items:center}.knowledge-search-row label{margin:0;min-width:0}
.thp-site .knowledge-hub-hero .knowledge-search-row :is(input,select,button){height:44px;min-height:44px;margin:0;box-sizing:border-box;font-size:1rem}.knowledge-search-row :is(input,select){width:100%;min-width:0;background:var(--species-status-ex-ink);color:var(--species-status-ne-ink);border:1px solid currentColor}
.thp-site .knowledge-hub-hero .knowledge-search-row button{background:var(--species-status-ex-ink);color:var(--species-status-ne-ink);border:2px solid currentColor;padding:.5rem 1rem}
.thp-site .knowledge-hub-hero .knowledge-search-scope{display:flex;flex-wrap:wrap;gap:8px 20px;margin:6px 0 0;padding:0;border:0;min-width:0}.knowledge-search-scope label{display:inline-flex;align-items:center;gap:6px;min-height:24px;font-size:.8125rem;margin:0}.knowledge-search-scope input{width:16px;height:16px;margin:0;accent-color:var(--species-status-ne-ink)}
.knowledge-hub-hero :is(a,button,input,select):focus-visible{outline:3px solid var(--species-status-ex-ink);outline-offset:3px}
.hub-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.thp-site .knowledge-directory .knowledge-topics-heading{font-size:1.4rem;line-height:1.4;margin:0 0 1rem;padding:0;border:0;background:none;box-shadow:none}
.thp-site .knowledge-directory .knowledge-topics{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;padding:0;margin:0 0 1.5rem}
.thp-site .knowledge-directory .knowledge-topic-tile{display:flex;align-items:center;justify-content:center;gap:12px;flex:0 1 calc((100% - 48px)/4);min-width:0;box-sizing:border-box;height:120px;min-height:120px;padding:14px;border:1px solid var(--ds-line);border-radius:var(--ds-radius-card);background:var(--ds-surface);color:var(--ds-ink);text-decoration:none;box-shadow:none;overflow-wrap:anywhere}
.knowledge-topic-copy{min-width:0;display:grid;gap:.35rem;text-align:center}.knowledge-topic-copy strong{font-size:1rem;line-height:1.35}.knowledge-topic-copy small{font-size:.75rem;line-height:1.35}
.thp-site .knowledge-topic-tile img{width:64px;height:64px;object-fit:cover;border-radius:var(--ds-radius-card);flex:none}
.thp-site .knowledge-topic-tile.is-active{border:3px solid var(--ds-link);box-shadow:inset 0 -5px 0 var(--ds-link);font-weight:800}.thp-site .knowledge-topic-tile:focus-visible{outline:3px solid var(--ds-link);outline-offset:3px}
.thp-site .knowledge-content-panel{border:0;box-shadow:none;background:transparent;padding:0}.knowledge-subtopic-level{margin:0 0 1rem}.knowledge-subtopic-level h2{font-size:1rem}
.thp-site .knowledge-subtopics{display:flex;flex-wrap:wrap;gap:10px;margin:.5rem 0 1rem}.thp-site .knowledge-subtopics .knowledge-topic-tile{flex:0 1 auto;width:auto;height:auto;min-height:44px;padding:.5rem .85rem;border-radius:var(--ds-radius-button,1rem)}.knowledge-subtopics .knowledge-topic-copy{display:flex;align-items:center;gap:.5rem}.knowledge-subtopics img{display:none}
[data-knowledge-heading],[data-knowledge-panel]{transition:opacity 150ms ease,transform 150ms ease}.knowledge-is-changing :is([data-knowledge-heading],[data-knowledge-panel]){opacity:.65;transform:translateY(2px)}
html.thp-high-contrast .knowledge-hub-hero :is(h1,p,a,label,legend,span){color:var(--species-status-ex-ink)!important}html.thp-high-contrast .knowledge-hub-hero .knowledge-search-row :is(input,select,button){color:var(--species-status-ne-ink)!important;background:var(--species-status-ex-ink)!important}html.thp-high-contrast .knowledge-topic-tile.is-active{border-color:var(--ds-ink);box-shadow:inset 0 -5px 0 var(--ds-ink)}
@media(max-width:1023px){.thp-site .knowledge-directory .knowledge-topic-tile{flex-basis:calc((100% - 32px)/3)}}
@media(max-width:700px){.thp-site .page-frame-knowledge .knowledge-hub-hero{height:auto;min-height:0;max-height:none;padding:16px}.thp-site .knowledge-directory .knowledge-topic-tile{flex-basis:calc((100% - 16px)/2)}.knowledge-search-row{grid-template-columns:minmax(0,1fr) auto}.knowledge-search-row label:first-child{grid-column:1/-1}.knowledge-breadcrumb{font-size:.6875rem}.thp-site .knowledge-hub-hero .knowledge-search-scope{gap:6px 12px}.thp-site .knowledge-hub-hero .knowledge-search-scope label{font-size:.75rem}}
@media(max-width:700px){.thp-site .knowledge-topic-tile img{width:40px;height:40px}.thp-site .knowledge-directory .knowledge-topic-tile{gap:8px;padding:10px}}
@media(max-width:380px){.thp-site .knowledge-topic-tile img{display:none}.knowledge-topic-copy strong{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){[data-knowledge-heading],[data-knowledge-panel]{transition:none!important;transform:none!important}}

/* Override the older hero form's column/width rules for compact scope controls. */
.thp-site .page-frame-knowledge .knowledge-hub-hero .knowledge-search .knowledge-search-scope label{display:inline-flex;flex-direction:row;align-items:center;flex:0 1 auto;width:auto;gap:6px;min-height:32px;font-weight:400}
.thp-site .page-frame-knowledge .knowledge-hub-hero .knowledge-search .knowledge-search-scope input[type=radio]{display:inline-block;width:16px;min-width:16px;max-width:16px;height:16px;min-height:16px;max-height:16px;margin:0;padding:0;flex:none;appearance:auto}

.thp-site .page-frame-knowledge .knowledge-hub-hero .knowledge-search-row button{grid-column:auto}
.thp-site .knowledge-directory .knowledge-subtopics .knowledge-topic-tile{flex:0 1 auto;width:max-content;max-width:100%;min-width:min(140px,100%);height:auto;min-height:44px}
.thp-site .knowledge-directory .knowledge-subtopics .knowledge-topic-copy{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;overflow-wrap:normal;word-break:normal}
.thp-site .knowledge-directory .knowledge-subtopics .knowledge-topic-copy strong{font-size:.875rem;line-height:1.4;overflow-wrap:normal}
.thp-site .knowledge-directory .knowledge-subtopics .knowledge-topic-copy small{white-space:nowrap;overflow-wrap:normal}

.thp-site .page-frame-knowledge .knowledge-hub-hero h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

html.thp-high-contrast .knowledge-hub-hero{--hub-overlay:1!important}

/* Equal, full-width media area for categories with and without a photo. */
.thp-site .knowledge-directory :is(.knowledge-topics,.knowledge-subtopics) { align-items:stretch; }
.thp-site .knowledge-directory :is(.knowledge-topics,.knowledge-subtopics) .knowledge-topic-tile {
    flex:0 1 calc((100% - 48px)/4); width:auto; min-width:0; min-height:0; height:auto;
    flex-direction:column; justify-content:flex-start; align-items:stretch; padding:0; gap:0; overflow:hidden;
}
.thp-site .knowledge-directory .knowledge-topic-picture {
    position:relative; display:block; flex:none; width:100%; aspect-ratio:16/9;
    overflow:hidden; background:var(--ds-tint);
}
.thp-site .knowledge-directory .knowledge-topic-picture img {
    position:absolute; inset:0; display:block; width:100%; height:100%;
    object-fit:cover; object-position:center; border-radius:0;
}
.thp-site .knowledge-directory :is(.knowledge-topics,.knowledge-subtopics) .knowledge-topic-tile.is-active {
    border-width:1px;
    outline:2px solid var(--ds-link);
    outline-offset:-3px;
}
.thp-site .knowledge-directory :is(.knowledge-topics,.knowledge-subtopics) .knowledge-topic-tile.is-active:focus-visible {
    outline:3px solid var(--ds-focus);
    outline-offset:3px;
}
.thp-site .knowledge-directory :is(.knowledge-topics,.knowledge-subtopics) .knowledge-topic-copy {
    display:grid; gap:.3rem; padding:.75rem .6rem; text-align:center; width:auto;
}
@media(max-width:1023px) {
    .thp-site .knowledge-directory :is(.knowledge-topics,.knowledge-subtopics) .knowledge-topic-tile { flex-basis:calc((100% - 32px)/3); }
}
@media(max-width:700px) {
    .thp-site .knowledge-directory :is(.knowledge-topics,.knowledge-subtopics) .knowledge-topic-tile { flex-basis:calc((100% - 16px)/2); }
}
