#kh-directory {
    --kh-bg: #f7f5f1;
    --kh-card: #fffefc;
    --kh-muted: #f0ece5;
    --kh-soft: #f2e7e7;
    --kh-blue: #edf2f3;
    --kh-wine: #a11649;
    --kh-wine-dark: #86103c;
    --kh-text: #171a1e;
    --kh-subtle: #6f6a63;
    --kh-line: #ddd7ce;
    color: var(--kh-text);
    background: var(--kh-bg);
}

#kh-directory,
#kh-directory * {
    box-sizing: border-box;
}

#kh-directory a {
    color: inherit;
}

#kh-directory button,
#kh-directory input,
#kh-directory select {
    font: inherit;
}

#kh-directory :focus-visible {
    outline: 3px solid rgba(161, 22, 73, .3);
    outline-offset: 3px;
}

#kh-directory .kh-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

#kh-directory .kh-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 34px 0 78px;
    background:
        radial-gradient(circle at 86% 22%, rgba(161, 22, 73, .14) 0 3px, transparent 4px),
        linear-gradient(118deg, #f8f5ef 0%, #eef3f4 58%, #e7eef1 100%);
    border-bottom: 1px solid var(--kh-line);
}

#kh-directory .kh-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 560px;
    height: 560px;
    top: 50%;
    right: -110px;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: .72;
    background:
        radial-gradient(circle, rgba(255, 254, 252, .22) 0 96px, rgba(161, 22, 73, .16) 97px 98px, transparent 99px 174px, rgba(87, 134, 172, .16) 175px 176px, transparent 177px 252px, rgba(161, 22, 73, .08) 253px 254px, transparent 255px);
}

#kh-directory .kh-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 48px;
    color: var(--kh-subtle);
    font-size: 14px;
}

#kh-directory .kh-breadcrumbs a {
    text-decoration: none;
}

#kh-directory .kh-breadcrumbs a:hover {
    color: var(--kh-wine);
}

#kh-directory .kh-breadcrumbs span[aria-hidden] {
    color: #a9a29a;
}

#kh-directory .kh-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: clamp(42px, 7vw, 92px);
    align-items: end;
}

#kh-directory .kh-kicker,
#kh-directory .kh-eyebrow {
    display: block;
    color: var(--kh-wine);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .14em;
    text-transform: uppercase;
}

#kh-directory .kh-hero h1 {
    max-width: 850px;
    margin: 16px 0 22px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(44px, 6.2vw, 76px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
}

#kh-directory .kh-hero-lead {
    max-width: 760px;
    margin: 0;
    color: #4f4b47;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.65;
}

#kh-directory .kh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

#kh-directory .kh-primary-button,
#kh-directory .kh-secondary-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid var(--kh-wine);
    border-radius: 0;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

#kh-directory .kh-primary-button {
    color: #fff;
    background: var(--kh-wine);
}

#kh-directory .kh-primary-button:hover {
    background: var(--kh-wine-dark);
    border-color: var(--kh-wine-dark);
    transform: translateY(-1px);
}

#kh-directory .kh-secondary-button {
    color: var(--kh-wine-dark);
    background: transparent;
}

#kh-directory .kh-secondary-button:hover {
    color: #fff;
    background: var(--kh-wine-dark);
}

#kh-directory .kh-hero-summary {
    padding: 28px;
    background: rgba(255, 254, 252, .82);
    border: 1px solid rgba(161, 22, 73, .2);
    box-shadow: 0 24px 55px rgba(52, 42, 45, .08);
    backdrop-filter: blur(10px);
}

#kh-directory .kh-hero-summary > p {
    margin: 0 0 18px;
    color: var(--kh-subtle);
    font-size: 14px;
    line-height: 1.55;
}

#kh-directory .kh-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    align-items: baseline;
    padding: 16px 0;
    border-top: 1px solid var(--kh-line);
}

#kh-directory .kh-stat:first-of-type {
    border-top: 0;
    padding-top: 0;
}

#kh-directory .kh-stat:last-child {
    padding-bottom: 0;
}

#kh-directory .kh-stat strong {
    grid-row: 1 / span 2;
    color: var(--kh-wine-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
}

#kh-directory .kh-stat span {
    font-weight: 750;
}

#kh-directory .kh-stat small {
    color: var(--kh-subtle);
    font-size: 12px;
}

#kh-directory .kh-wayfinder {
    padding: 34px 0;
    background: var(--kh-card);
    border-bottom: 1px solid var(--kh-line);
}

#kh-directory .kh-wayfinder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--kh-line);
}

#kh-directory .kh-wayfinder-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    min-height: 132px;
    padding: 24px 28px;
    text-decoration: none;
    background: var(--kh-card);
    transition: background-color .2s ease;
}

#kh-directory .kh-wayfinder-option + .kh-wayfinder-option {
    border-left: 1px solid var(--kh-line);
}

#kh-directory .kh-wayfinder-option:hover {
    background: var(--kh-blue);
}

#kh-directory .kh-wayfinder-option--article:hover {
    background: var(--kh-soft);
}

#kh-directory .kh-wayfinder-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--kh-wine);
    background: var(--kh-soft);
    border: 1px solid rgba(161, 22, 73, .22);
}

#kh-directory .kh-wayfinder-option--article .kh-wayfinder-icon {
    color: #3d6571;
    background: var(--kh-blue);
    border-color: #cfdcdf;
}

#kh-directory .kh-wayfinder-icon svg {
    width: 23px;
    height: 23px;
}

#kh-directory .kh-wayfinder-copy small {
    color: var(--kh-wine);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

#kh-directory .kh-wayfinder-copy strong {
    display: block;
    margin: 6px 0 4px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(21px, 2.4vw, 27px);
    font-weight: 400;
    line-height: 1.15;
}

#kh-directory .kh-wayfinder-copy span {
    display: block;
    color: var(--kh-subtle);
    font-size: 14px;
    line-height: 1.45;
}

#kh-directory .kh-wayfinder-arrow {
    color: var(--kh-wine);
    font-size: 24px;
}

#kh-directory .kh-topics {
    scroll-margin-top: 90px;
    padding: 82px 0 94px;
}

#kh-directory .kh-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
    gap: 42px;
    align-items: end;
    margin-bottom: 30px;
}

#kh-directory .kh-section-head h2,
#kh-directory .kh-search-heading h2 {
    margin: 11px 0 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.035em;
}

#kh-directory .kh-section-head > p,
#kh-directory .kh-search-heading > p {
    margin: 0;
    color: var(--kh-subtle);
    font-size: 16px;
    line-height: 1.65;
}

#kh-directory .kh-topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 52px;
}

#kh-directory .kh-topic-filter {
    min-height: 42px;
    padding: 9px 15px;
    color: var(--kh-text);
    background: var(--kh-card);
    border: 1px solid var(--kh-line);
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

#kh-directory .kh-topic-filter:hover,
#kh-directory .kh-topic-filter[aria-pressed='true'] {
    color: #fff;
    background: var(--kh-wine);
    border-color: var(--kh-wine);
}

#kh-directory .kh-topic-group {
    margin-top: 62px;
}

#kh-directory .kh-topic-group[hidden] {
    display: none;
}

#kh-directory .kh-topic-group:first-of-type {
    margin-top: 0;
}

#kh-directory .kh-topic-group-head {
    display: flex;
    gap: 20px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 19px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--kh-line);
}

#kh-directory .kh-topic-group-head h3 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.15;
}

#kh-directory .kh-topic-group-head p {
    margin: 0;
    color: var(--kh-subtle);
    font-size: 14px;
}

#kh-directory .kh-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

#kh-directory .kh-topic-grid--single {
    grid-template-columns: minmax(0, 580px);
}

#kh-directory .kh-topic-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#kh-directory .kh-topic-card {
    position: relative;
    display: flex;
    min-height: 270px;
    flex-direction: column;
    padding: 23px 23px 20px 27px;
    overflow: hidden;
    text-decoration: none;
    background: var(--kh-card);
    border: 1px solid var(--kh-line);
    border-left: 4px solid var(--kh-wine);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#kh-directory .kh-topic-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 115px;
    height: 115px;
    border: 1px solid rgba(161, 22, 73, .11);
    border-radius: 50%;
}

#kh-directory .kh-topic-card:hover {
    border-color: rgba(161, 22, 73, .45);
    box-shadow: 0 18px 38px rgba(44, 35, 38, .08);
    transform: translateY(-3px);
}

#kh-directory .kh-topic-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 25px;
}

#kh-directory .kh-content-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .13em;
    text-transform: uppercase;
}

#kh-directory .kh-content-type--section {
    color: var(--kh-wine-dark);
    background: var(--kh-soft);
    border: 1px solid rgba(161, 22, 73, .18);
}

#kh-directory .kh-content-type--section::before {
    content: '';
    width: 11px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-top-width: 4px;
}

#kh-directory .kh-content-type--article {
    color: #315b67;
    background: var(--kh-blue);
    border: 1px solid #cedcdf;
}

#kh-directory .kh-content-type--article::before {
    content: '';
    width: 8px;
    height: 11px;
    border: 1.5px solid currentColor;
}

#kh-directory .kh-topic-number {
    color: #a69e95;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
}

#kh-directory .kh-topic-card h4 {
    margin: 0 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(22px, 2.25vw, 28px);
    font-weight: 400;
    line-height: 1.12;
}

#kh-directory .kh-topic-card > p {
    margin: 0 0 24px;
    color: var(--kh-subtle);
    font-size: 14px;
    line-height: 1.55;
}

#kh-directory .kh-topic-card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--kh-line);
}

#kh-directory .kh-topic-count {
    display: grid;
    gap: 2px;
    color: var(--kh-subtle);
    font-size: 11px;
}

#kh-directory .kh-topic-count strong {
    color: var(--kh-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 400;
}

#kh-directory .kh-topic-open {
    color: var(--kh-wine);
    font-size: 13px;
    font-weight: 800;
}

#kh-directory .kh-search-section {
    scroll-margin-top: 82px;
    padding: 88px 0 96px;
    background: var(--kh-blue);
    border-top: 1px solid #d5e0e2;
}

#kh-directory .kh-search-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 42px;
    align-items: end;
    margin-bottom: 30px;
}

#kh-directory .kh-search-panel {
    padding: 28px;
    background: var(--kh-card);
    border: 1px solid #cfdadd;
    box-shadow: 0 20px 45px rgba(43, 62, 67, .07);
}

#kh-directory .kh-search-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) minmax(240px, .8fr) auto;
    gap: 10px;
    align-items: end;
}

#kh-directory .kh-field {
    display: grid;
    gap: 8px;
}

#kh-directory .kh-field label {
    color: #4f5354;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#kh-directory .kh-field input,
#kh-directory .kh-field select {
    width: 100%;
    min-height: 54px;
    padding: 13px 15px;
    color: var(--kh-text);
    background: #fff;
    border: 1px solid #bccacc;
    border-radius: 0;
}

#kh-directory .kh-field input::placeholder {
    color: #8b8b87;
}

#kh-directory .kh-search-submit {
    min-height: 54px;
    white-space: nowrap;
}

#kh-directory .kh-search-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-top: 17px;
    color: var(--kh-subtle);
    font-size: 13px;
}

#kh-directory .kh-search-tools > span {
    font-weight: 700;
}

#kh-directory .kh-example,
#kh-directory .kh-clear-search {
    padding: 0;
    color: var(--kh-wine-dark);
    background: transparent;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

#kh-directory .kh-clear-search {
    margin-left: auto;
    font-weight: 750;
}

#kh-directory .kh-clear-search[hidden] {
    display: none;
}

#kh-directory .kh-results-head {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    margin: 46px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #cbd8da;
}

#kh-directory .kh-results-head h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.1;
}

#kh-directory .kh-results-status {
    margin: 0;
    color: var(--kh-subtle);
    font-size: 14px;
    line-height: 1.4;
    text-align: right;
}

#kh-directory .kh-results-status.is-error {
    color: #8c2431;
}

#kh-directory .kh-article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    transition: opacity .2s ease;
}

#kh-directory.is-loading .kh-article-grid {
    opacity: .55;
}

#kh-directory .kh-article-card {
    display: flex;
    min-height: 248px;
    flex-direction: column;
    padding: 22px;
    background: var(--kh-card);
    border: 1px solid #cdd9db;
    border-top: 3px solid #7e9ba3;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#kh-directory .kh-article-card:hover {
    border-color: #96adb3;
    box-shadow: 0 16px 34px rgba(42, 59, 64, .08);
    transform: translateY(-2px);
}

#kh-directory .kh-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 17px;
}

#kh-directory .kh-article-category {
    color: var(--kh-subtle);
    font-size: 12px;
    font-weight: 700;
}

#kh-directory .kh-article-title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(21px, 2.2vw, 26px);
    font-weight: 400;
    line-height: 1.18;
}

#kh-directory .kh-article-title a {
    text-decoration: none;
}

#kh-directory .kh-article-title a:hover {
    color: var(--kh-wine);
}

#kh-directory .kh-article-excerpt {
    margin: 13px 0 20px;
    color: var(--kh-subtle);
    font-size: 14px;
    line-height: 1.55;
}

#kh-directory .kh-article-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #dfe6e7;
}

#kh-directory .kh-article-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--kh-wine-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

#kh-directory .kh-article-link span {
    font-size: 20px;
    transition: transform .2s ease;
}

#kh-directory .kh-article-card:hover .kh-article-link span {
    transform: translateX(3px);
}

#kh-directory .kh-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    margin-top: 28px;
}

#kh-directory .kh-show-all {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

#kh-directory .kh-show-all .kh-secondary-button {
    background: var(--kh-card);
}

#kh-directory .kh-show-all .kh-secondary-button:hover {
    background: var(--kh-wine-dark);
}

#kh-directory .kh-show-all .kh-secondary-button[hidden] {
    display: none;
}

#kh-directory .kh-pagination[hidden] {
    display: none;
}

#kh-directory .kh-page-button {
    width: fit-content;
    min-height: 44px;
    padding: 9px 14px;
    color: var(--kh-wine-dark);
    background: var(--kh-card);
    border: 1px solid #b8c9cc;
    border-radius: 0;
    font-weight: 750;
    cursor: pointer;
}

#kh-directory .kh-page-button:last-child {
    justify-self: end;
}

#kh-directory .kh-page-button:hover:not(:disabled) {
    color: #fff;
    background: var(--kh-wine);
    border-color: var(--kh-wine);
}

#kh-directory .kh-page-button:disabled {
    color: #999;
    cursor: not-allowed;
    opacity: .55;
}

#kh-directory .kh-page-current {
    color: var(--kh-subtle);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

#kh-directory .kh-empty-state {
    grid-column: 1 / -1;
    padding: 44px;
    text-align: center;
    background: var(--kh-card);
    border: 1px solid #cdd9db;
}

#kh-directory .kh-empty-state .kh-content-type {
    margin-inline: auto;
}

#kh-directory .kh-empty-state h3 {
    margin: 18px 0 10px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 400;
}

#kh-directory .kh-empty-state p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--kh-subtle);
    line-height: 1.6;
}

#kh-directory .kh-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

#kh-directory .kh-help {
    padding: 62px 0;
    color: #fff;
    background: #1c2024;
}

#kh-directory .kh-help-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 36px;
    align-items: center;
}

#kh-directory .kh-help .kh-eyebrow {
    color: #dca3b8;
}

#kh-directory .kh-help h2 {
    max-width: 800px;
    margin: 11px 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(31px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.06;
}

#kh-directory .kh-help p {
    max-width: 740px;
    margin: 0;
    color: #c9c9c6;
    line-height: 1.6;
}

#kh-directory .kh-help .kh-primary-button {
    min-width: 220px;
}

@media (max-width: 980px) {
    #kh-directory .kh-hero-grid,
    #kh-directory .kh-section-head,
    #kh-directory .kh-search-heading {
        grid-template-columns: 1fr;
    }

    #kh-directory .kh-hero-summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
    }

    #kh-directory .kh-hero-summary > p {
        grid-column: 1 / -1;
    }

    #kh-directory .kh-stat:nth-of-type(2) {
        border-top: 0;
        padding-top: 0;
    }

    #kh-directory .kh-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #kh-directory .kh-topic-grid--single {
        grid-template-columns: minmax(0, 580px);
    }

    #kh-directory .kh-search-form {
        grid-template-columns: 1fr 1fr;
    }

    #kh-directory .kh-search-submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    #kh-directory .kh-container {
        width: min(100% - 28px, 1180px);
    }

    #kh-directory .kh-hero {
        padding: 24px 0 56px;
    }

    #kh-directory .kh-hero::before {
        right: -250px;
        opacity: .5;
    }

    #kh-directory .kh-breadcrumbs {
        margin-bottom: 35px;
    }

    #kh-directory .kh-hero h1 {
        font-size: clamp(39px, 12vw, 54px);
        line-height: 1;
    }

    #kh-directory .kh-hero-actions,
    #kh-directory .kh-empty-actions {
        flex-direction: column;
    }

    #kh-directory .kh-hero-actions > *,
    #kh-directory .kh-empty-actions > * {
        width: 100%;
    }

    #kh-directory .kh-hero-summary {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    #kh-directory .kh-stat:nth-of-type(2) {
        border-top: 1px solid var(--kh-line);
        padding-top: 16px;
    }

    #kh-directory .kh-wayfinder {
        padding: 22px 0;
    }

    #kh-directory .kh-wayfinder-grid {
        grid-template-columns: 1fr;
    }

    #kh-directory .kh-wayfinder-option {
        grid-template-columns: auto 1fr auto;
        min-height: 116px;
        padding: 20px;
    }

    #kh-directory .kh-wayfinder-option + .kh-wayfinder-option {
        border-top: 1px solid var(--kh-line);
        border-left: 0;
    }

    #kh-directory .kh-topics,
    #kh-directory .kh-search-section {
        padding: 64px 0 70px;
    }

    #kh-directory .kh-topic-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-bottom: 42px;
    }

    #kh-directory .kh-topic-filter:first-child {
        grid-column: 1 / -1;
    }

    #kh-directory .kh-topic-group-head,
    #kh-directory .kh-results-head {
        display: block;
    }

    #kh-directory .kh-topic-group-head p,
    #kh-directory .kh-results-status {
        margin-top: 8px;
        text-align: left;
    }

    #kh-directory .kh-topic-grid,
    #kh-directory .kh-article-grid,
    #kh-directory .kh-search-form {
        grid-template-columns: 1fr;
    }

    #kh-directory .kh-search-submit {
        grid-column: auto;
    }

    #kh-directory .kh-topic-card {
        min-height: 250px;
    }

    #kh-directory .kh-search-panel {
        padding: 20px;
    }

    #kh-directory .kh-search-tools {
        align-items: flex-start;
    }

    #kh-directory .kh-search-tools > span {
        width: 100%;
    }

    #kh-directory .kh-clear-search {
        width: 100%;
        margin: 4px 0 0;
        text-align: left;
    }

    #kh-directory .kh-pagination {
        grid-template-columns: 1fr 1fr;
    }

    #kh-directory .kh-page-current {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    #kh-directory .kh-help-grid {
        grid-template-columns: 1fr;
    }

    #kh-directory .kh-help .kh-primary-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    #kh-directory .kh-wayfinder-option {
        grid-template-columns: auto 1fr;
    }

    #kh-directory .kh-wayfinder-arrow {
        display: none;
    }

    #kh-directory .kh-topic-filters {
        grid-template-columns: 1fr;
    }

    #kh-directory .kh-topic-filter:first-child {
        grid-column: auto;
    }

    #kh-directory .kh-topic-card {
        padding: 21px 19px 18px 22px;
    }

    #kh-directory .kh-topic-card-footer {
        align-items: start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    #kh-directory *,
    #kh-directory *::before,
    #kh-directory *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
