.av-hub {
    --hub-ink: #251d41;
    --hub-muted: #625774;
    --hub-surface: #f8f6fb;
    --hub-border: #e0d8ed;
    --hub-accent: #5641a6;
    color: var(--hub-ink);
    background: var(--hub-surface);
    padding-block: clamp(1.35rem, 3vw, 3rem) clamp(2.5rem, 5vw, 5rem);
    font-size: .9375rem;
    line-height: 1.65;
}
.av-hub-wrap { width: min(100% - clamp(2rem, 7vw, 6rem), 71rem); margin-inline: auto; }
.av-hub :is(h1,h2) { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.027em; line-height: 1.14; }
.av-hub :is(h1,h2,h3,p,a,dd) { overflow-wrap: anywhere; }
.av-hub h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); margin: 0 0 .75rem; }
.av-hub h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 .45rem; }
.av-hub a { text-underline-offset: .2em; }
.av-hub :focus-visible { outline: 3px solid #785bc3; outline-offset: 4px; }
.av-hub-hero {
    padding: clamp(1.5rem, 4vw, 3.2rem);
    border-radius: 1.4rem;
    color: #fff;
    background: #251d40;
}
.av-hub-hero p, .av-hub-hero .site-rich-public { color: #eee7fa; max-width: 62ch; }
.av-hub-hero-link { color: #fff; display: inline-block; text-decoration: underline; margin-top: .8rem; }
.av-hub-hero-link:hover { color: #fff; }
.av-hub-hero-image { display: grid; gap: 1.5rem; }
.av-hub-hero-image > img { width: 100%; height: auto; max-height: 20rem; object-fit: cover; border-radius: .75rem; }
.av-hub-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; max-width: 42rem; margin-top: 1rem; }
.av-hub-search input { min-width: 0; }
.av-hub :is(input:not([type=hidden]), select, textarea) {
    background: #fff;
    color: var(--hub-ink);
    border: 1px solid #d8cdeb;
    border-radius: .55rem;
    min-height: 2.75rem;
    padding: .52rem .7rem;
    font: inherit;
}
.av-hub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.75rem;
    padding: .48rem .9rem;
    border: 1px solid transparent;
    border-radius: .55rem;
    background: var(--hub-accent);
    color: #fff;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    line-height: 1.25;
}
.av-hub-button:hover { background: #432e8e; color: #fff; }
.av-hub-light { background: #eee7fa; color: #332357; }
.av-hub-light:hover { color: #332357; background: #fff; }
.av-hub-outline { color: var(--hub-accent); background: #fff; border-color: var(--hub-border); }
.av-hub-outline:hover { color: var(--hub-ink); background: #f1eafa; }
.av-hub-formats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin-block: 1.25rem; }
.av-hub-formats a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: .4rem;
    min-height: 4.5rem;
    padding: .55rem .2rem;
    color: var(--hub-ink);
    background: #fff;
    border: 1px solid var(--hub-border);
    border-radius: .75rem;
    font-size: .77rem;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
}
.av-hub-formats a:is(:hover,[aria-current]) { border-color: #9986c7; background: #f0eafa; }
.av-hub-formats i { font-size: 1.15rem; color: var(--hub-accent); }
.av-hub-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr));
    gap: .7rem;
    align-items: end;
    padding: .95rem;
    border-radius: .9rem;
    border: 1px solid var(--hub-border);
    background: #fff;
}
.av-hub-filters label { font-size: .78rem; font-weight: 650; min-width: 0; }
.av-hub-filters select { display: block; width: 100%; margin-top: .3rem; font-size: .85rem; }
.av-hub-results { margin-top: clamp(1.25rem,3vw,2.5rem); scroll-margin-top: 7rem; }
.av-hub-section-head { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: .65rem; }
.av-hub-section-head p { margin: 0; color: var(--hub-muted); }
.av-hub-sort, .av-hub-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-block: .75rem 1rem; }
.av-hub-sort a { color: var(--hub-muted); font-size: .82rem; padding: .35rem .6rem; border-radius: .45rem; }
.av-hub-sort a[aria-current] { background: #ede6f8; color: #493184; font-weight: 650; }
.av-hub-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,23rem),1fr)); gap: 1rem; }
.av-hub-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hub-border); border-radius: .95rem; background: #fff; }
.av-hub-card:hover { border-color: #b3a1d0; }
.av-hub-art { height: clamp(6.25rem,12vw,8.25rem); display: grid; place-items: center; overflow: hidden; background: #eee8f9; color: #614aa3; }
.av-hub-art-website,.av-hub-art-video { background: #e9eef9; color: #435d91; }
.av-hub-art-podcast,.av-hub-art-article { background: #f4eaf3; color: #805582; }
.av-hub-art-book,.av-hub-art-research,.av-hub-art-simulation { background: #e6f0e9; color: #316f59; }
.av-hub-art i { font-size: 2.1rem; }
.av-hub-art img { width: 100%; height: 100%; object-fit: cover; }
.av-hub-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 1rem 1.125rem .7rem; }
.av-hub-card-body h3 { font-size: 1.12rem; font-weight: 650; line-height: 1.4; margin: 0 0 .4rem; }
.av-hub-card-body h3 a { color: var(--hub-ink); text-decoration: none; }
.av-hub-card-body h3 a:hover { text-decoration: underline; }
.av-hub-card-body p { color: var(--hub-muted); margin: 0 0 .55rem; }
.av-hub .av-hub-card-meta { color: #584291; font-size: .73rem; font-weight: 650; }
.av-hub-provider { font-size: .82rem; }
.av-hub-card-actions { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; gap: .5rem; margin-top: auto; border-top: 1px solid var(--hub-border); }
.av-hub-card-actions > a { font-weight: 650; font-size: .86rem; text-decoration: none; }
.av-hub-card-actions > a:hover { text-decoration: underline; }
.av-hub-bookmark { background: #fff; color: var(--hub-accent); border: 1px solid var(--hub-border); border-radius: .48rem; min-width: 2.5rem; min-height: 2.5rem; margin-top: .3rem; }
.av-hub-bookmark[aria-pressed=true] { background: #eee8f9; }
.av-hub-note, .av-hub-empty { border-radius: .8rem; padding: 1rem 1.15rem; margin-top: 1.2rem; }
.av-hub-note { background: #eee8f8; color: #483768; }
.av-hub-note p { margin: .17rem 0 0; }
.av-hub-empty, .av-hub-panel { background: #fff; border: 1px solid var(--hub-border); }
.av-hub-empty h3 { font-size: 1.1rem; }
.av-hub-breadcrumb { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .85rem; margin-bottom: 1rem; }
.av-hub-detail-header, .av-hub-detail-layout { display: grid; gap: 1rem; align-items: start; }
.av-hub-detail-header { border-radius: 1.15rem; border: 1px solid var(--hub-border); background: #fff; padding: clamp(1.2rem,3vw,2rem); }
.av-hub-detail-header > div:first-child > h1 { max-width: 25ch; }
.av-hub-detail-header > div:first-child > p { max-width: 66ch; }
.av-hub-detail-media { display: grid; place-items: center; padding: .65rem; background: #f3eff8; border-radius: .8rem; }
.av-hub-detail-media img { display: block; width: 100%; height: auto; max-height: 19rem; object-fit: contain; border-radius: .55rem; }
.av-hub-detail-header h1 { font-size: clamp(2rem,4.5vw,3.25rem); }
.av-hub-detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.av-hub-detail-layout { margin-top: 1.25rem; }
.av-hub-detail-side { display: grid; gap: 1rem; min-width: 0; }
.av-hub-panel { border-radius: .9rem; padding: clamp(1rem,2.7vw,1.55rem); min-width: 0; }
.av-hub-prose { max-width: 72ch; overflow-wrap: anywhere; }
.av-hub-prose > :first-child { margin-block-start: 0; }
.av-hub-prose > :last-child { margin-block-end: 0; }
.av-hub-prose :is(p, ul, ol, figure, blockquote) { margin-block: 0 1rem; }
.av-hub-prose :is(h2, h3, h4) { margin: 1.25rem 0 .4rem; font-family: inherit; font-size: 1.075rem; font-weight: 650; line-height: 1.4; }
.av-hub-prose :is(ul, ol) { padding-inline-start: 1.45rem; }
.av-hub-prose li + li { margin-block-start: .6rem; }
.av-hub-prose li::marker { color: var(--hub-accent); font-weight: 650; }
.av-hub-prose a { font-weight: 600; text-decoration: underline; }
.av-hub-prose figure { max-width: 100%; }
.av-hub-prose img { max-width: 100%; height: auto; border-radius: .55rem; }
.av-hub-prose figcaption { margin-block-start: .35rem; color: var(--hub-muted); font-size: .84rem; }
.av-hub-prose :is(.table-scroll, .tableWrapper, pre) { max-width: 100%; overflow: auto; margin-block-end: 1rem; }
.av-hub-prose table { width: 100%; border-collapse: collapse; }
.av-hub-prose :is(th, td) { padding: .45rem .55rem; border: 1px solid var(--hub-border); text-align: start; }
.av-hub-prose th { background: #f3eff8; }
.av-hub-handoff { max-width: 43rem; }
.av-hub-handoff-card {
    --handoff-pad: clamp(1.125rem, 4vw, 2.25rem);
    background: #fff;
    border: 1px solid var(--hub-border);
    border-radius: 1.15rem;
    box-shadow: 0 .6rem 1.6rem #37234f0b;
}
.av-hub-handoff-intro {
    padding: var(--handoff-pad);
    border-radius: 1.1rem 1.1rem 0 0;
    border-bottom: 1px solid var(--hub-border);
    background: #f1ecf8;
}
.av-hub-handoff-intro .av-hub-card-meta { margin-bottom: .45rem; }
.av-hub-handoff h1 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
.av-hub-handoff h1:last-child { margin-bottom: 0; }
.av-hub-handoff-summary { max-width: 52ch; margin: 0; color: var(--hub-muted); }
.av-hub-handoff-body { padding: var(--handoff-pad); }
.av-hub-handoff-destination { margin: 0 0 1rem; }
.av-hub-handoff-destination dt { margin-bottom: .2rem; color: var(--hub-muted); font-size: .8rem; }
.av-hub-handoff-destination dd { margin: 0; }
.av-hub-handoff-destination .av-hub-handoff-provider { font-weight: 650; }
.av-hub-handoff-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.av-hub-handoff-actions > * { min-width: 0; overflow-wrap: anywhere; text-align: center; }
.av-hub-handoff-actions i { flex: none; }
.av-hub-handoff-links {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: .35rem 1rem;
    margin-top: 1.15rem;
    padding-top: .65rem;
    border-top: 1px solid var(--hub-border);
    font-size: .85rem;
}
.av-hub-handoff-links :is(a, summary) { color: var(--hub-accent); cursor: pointer; }
.av-hub-handoff-links details[open] { flex-basis: 100%; }
.av-hub-handoff-links details p { margin: .35rem 0 0; color: var(--hub-muted); }
@media (max-width: 30rem) {
    .av-hub-handoff-actions { display: grid; }
}

.av-hub-panel dl { display: grid; margin: .65rem 0; }
.av-hub-panel dl div { padding: .4rem 0; border-bottom: 1px solid #eee9f5; }
.av-hub-panel dt { font-size: .8rem; }
.av-hub-panel dd { margin: 0; }
.av-hub-report { display: grid; gap: .6rem; margin-top: .65rem; }
.av-hub-report :is(select, textarea) { display: block; width: 100%; }
.av-hub-player { margin-block: 1rem; }
.av-hub-player iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: .6rem; }
@media (min-width: 35rem) { .av-hub-formats { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (min-width: 53rem) {
    .av-hub-formats { grid-template-columns: repeat(8,minmax(0,1fr)); }
    .av-hub-hero-image, .av-hub-detail-with-image { grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); align-items: center; }
    .av-hub-detail-layout { grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); }
    .av-hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.av-hub-sections { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1rem; }
.av-hub-sections a { display: inline-flex; align-items: center; padding: .48rem .85rem; min-height: 2.6rem; background: #fff; border: 1px solid var(--hub-border); border-radius: .55rem; color: var(--hub-ink); font-size: .82rem; text-decoration: none; }
.av-hub-sections a[aria-current], .av-hub-sections a:hover { color: #523599; background: #ede6fa; }

.av-hub-filter-disclosure > summary {
    min-height: 2.75rem;
    padding: .55rem .8rem;
    border: 1px solid var(--hub-border);
    border-radius: .55rem;
    background: #fff;
    font-weight: 650;
    cursor: pointer;
}
.av-hub-filter-disclosure[open] > summary { margin-bottom: .5rem; }
.av-hub-filter-disclosure summary i { color: var(--hub-accent); margin-inline-end: .35rem; }
@media (min-width: 40.001rem) {
    .av-hub-filter-disclosure > summary { display: none; }
}
@media (max-width: 40rem) {
    .av-hub { padding-top: 1rem; }
    .av-hub-sections { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; }
    .av-hub-sections a { min-height: 2.75rem; padding: .35rem .3rem; justify-content: center; text-align: center; font-size: .75rem; line-height: 1.35; }
    .av-hub-hero { padding: 1.25rem; }
    .av-hub-filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; padding: .75rem; }
    .av-hub-filters > button { grid-column: 1 / -1; }
}

.av-hub-subject { min-width: 0; }
.av-hub-subject [hidden] { display: none; }
.av-hub-subject-open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    width: 100%;
    min-height: 2.75rem;
    margin-top: .3rem;
    padding: .52rem .7rem;
    border: 1px solid #d8cdeb;
    border-radius: .55rem;
    background: #fff;
    color: var(--hub-ink);
    font-size: .85rem;
    text-align: start;
}
.av-hub-subject-open span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.av-hub-subject-open i { flex: none; font-size: .68rem; }

.av-hub-subject-dialog {
    inset: 0;
    width: min(34rem, calc(100% - 1.5rem));
    max-height: min(40rem, 86dvh);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--hub-border);
    border-radius: 1rem;
    background: #fff;
    color: var(--hub-ink);
    box-shadow: 0 1.2rem 3rem #24163a40;
}
.av-hub-subject-dialog[open] { display: flex; flex-direction: column; }
.av-hub-subject-dialog::backdrop { background: #1d142bc2; }
.av-hub-subject-controls { padding: .85rem 1rem .75rem; border-bottom: 1px solid var(--hub-border); }
.av-hub-subject-controls header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; }
.av-hub-subject-controls h2 { margin: 0; font-family: inherit; font-size: 1.16rem; font-weight: 650; line-height: 1.3; }
.av-hub-subject-close {
    display: grid;
    place-items: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border: 1px solid var(--hub-border);
    border-radius: .55rem;
    background: #fff;
    color: var(--hub-ink);
}
.av-hub-subject-controls input[type="search"] { width: 100%; }
.av-hub-subject-views { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: .7rem 0 0; }
.av-hub-subject-views label { display: block; }
.av-hub-subject-views span {
    display: grid;
    place-items: center;
    min-height: 2.5rem;
    padding: .35rem;
    border: 1px solid var(--hub-border);
    border-radius: .55rem;
    text-align: center;
    cursor: pointer;
}
.av-hub-subject-views input:checked + span { border-color: var(--hub-accent); background: #ede6f8; color: #493184; }
.av-hub-subject-views input:focus-visible + span { outline: 2px solid var(--hub-accent); outline-offset: 2px; }
.av-hub-subject-list { padding: .5rem 1rem 1rem; overflow: auto; overscroll-behavior: contain; }
.av-hub-subject-list details { border-top: 1px solid var(--hub-border); }
.av-hub-subject-list summary {
    min-height: 2.75rem;
    padding: .55rem .6rem;
    border-radius: .5rem;
    font-weight: 650;
    cursor: pointer;
}
.av-hub-subject-list details button { padding-inline-start: 1.4rem; }
.av-hub-subject-list summary:hover { background: #f1ebf9; }
.av-hub-subject-list button {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: .4rem .6rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: var(--hub-ink);
    font: inherit;
    text-align: start;
    overflow-wrap: anywhere;
}
.av-hub-subject-list button:hover, .av-hub-subject-list button[aria-current="true"] { background: #f1ebf9; }
.av-hub-subject-list small { display: block; color: var(--hub-muted); }

.av-hub-topic-breadcrumb { margin-block: 0 .85rem; }
.av-hub-topic-hero { padding: clamp(1.25rem, 3.3vw, 2.6rem); }
.av-hub-topic-directory { margin-top: 1.25rem; }
.av-hub-topic-directory .av-hub-topic-title { font-size: clamp(1.4rem, 2.5vw, 1.85rem); margin-bottom: .55rem; }
.av-hub-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: .55rem;
}
.av-hub-topic-grid a {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 3.15rem;
    padding: .55rem .7rem;
    border: 1px solid var(--hub-border);
    border-radius: .65rem;
    background: #fff;
    color: var(--hub-ink);
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}
.av-hub-topic-grid a:hover { border-color: #a38cc8; background: #f3edf9; }
.av-hub-topic-grid i { flex: none; width: 1.2rem; color: var(--hub-accent); text-align: center; }
.av-hub-topic-grid small { display: block; margin-top: .14rem; color: var(--hub-muted); font-weight: 400; }

@media (max-width: 40rem) {
    .av-hub-topic-title { display: none; }
    .av-hub-topic-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
