.hoth-sponsor-directory {
    background: linear-gradient(145deg, var(--hoth-color-surface, #ffffff), var(--hoth-color-surface-soft, #f1f8f5));
    border: 1px solid rgb(41 45 61 / 9%);
    border-radius: 24px;
    box-shadow: 0 24px 65px rgb(41 45 61 / 9%);
    padding: clamp(28px, 5vw, 58px);
    padding-bottom: clamp(24px, 3.5vw, 40px);
}

.hoth-sponsor-directory-heading {
    margin: 0 auto 40px;
    max-width: 760px;
    text-align: center;
}

.hoth-sponsor-directory-heading h2 {
    margin: 8px 0 14px;
}

.hoth-sponsor-directory-eyebrow {
    color: var(--hoth-color-primary, #08664f);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin: 0;
    text-transform: uppercase;
}

.hoth-sponsor-directory-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hoth-sponsor-directory-card,
.hoth-sponsor-carousel-item {
    min-width: 0;
    text-align: center;
}

.hoth-sponsor-directory-card {
    background: #ffffff;
    border: 1px solid rgb(41 45 61 / 10%);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgb(41 45 61 / 7%);
    padding: 24px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hoth-sponsor-directory-card:hover,
.hoth-sponsor-directory-card:focus-within {
    border-color: var(--hoth-color-border-strong, rgb(8 102 79 / 42%));
    box-shadow: 0 22px 48px rgb(41 45 61 / 14%);
    transform: translateY(-5px);
}

.hoth-sponsor-logo-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgb(41 45 61 / 12%);
    border-radius: 14px;
    color: var(--hoth-color-ink, #202b33);
    cursor: pointer;
    display: flex;
    height: 150px;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.hoth-sponsor-logo-button:not(.hoth-sponsor-logo-static):hover,
.hoth-sponsor-logo-button:not(.hoth-sponsor-logo-static):focus,
.hoth-sponsor-logo-button:not(.hoth-sponsor-logo-static):focus-visible {
    background: var(--hoth-color-surface-soft, #f1f8f5);
    border-color: var(--hoth-color-border-strong, rgb(8 102 79 / 42%));
    box-shadow: 0 6px 18px rgb(41 45 61 / 6%);
    color: var(--hoth-color-ink, #202b33);
}

.hoth-sponsor-logo-button:not(.hoth-sponsor-logo-static):active {
    background: var(--hoth-color-surface-strong, #ddefe7);
    border-color: var(--hoth-color-border-strong, rgb(8 102 79 / 42%));
    color: var(--hoth-color-ink, #202b33);
}

.hoth-sponsor-logo-static {
    cursor: default;
    margin-bottom: 24px;
}

.hoth-sponsor-logo {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.hoth-sponsor-name-fallback {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.hoth-sponsor-level {
    color: var(--hoth-color-primary, #08664f);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hoth-sponsor-carousel {
    border-bottom: 1px solid rgb(41 45 61 / 12%);
    margin: 0 auto 56px;
    max-width: 1200px;
    padding-bottom: 56px;
    width: 100%;
}

body:not(.home) .hoth-sponsor-carousel {
    margin-bottom: 48px;
    padding-bottom: 48px;
}

.hoth-sponsor-directory .hoth-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    margin-top: 42px;
}

.hoth-sponsor-directory .hoth-pagination-status {
    margin: 0;
}

.hoth-sponsor-directory .hoth-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hoth-sponsor-directory .hoth-pagination-link {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgb(41 45 61 / 18%);
    border-radius: 999px;
    color: var(--hoth-color-ink, #202b33);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 15px;
    text-decoration: none;
}

.hoth-sponsor-directory .hoth-pagination-link:hover,
.hoth-sponsor-directory .hoth-pagination-link:focus-visible,
.hoth-sponsor-directory .hoth-pagination-link.is-current {
    background: var(--hoth-color-secondary, #173f5f);
    border-color: var(--hoth-color-secondary, #173f5f);
    color: #ffffff;
}

.hoth-sponsor-carousel-header {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.hoth-sponsor-carousel-header h2 {
    color: var(--hoth-black, #000000);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 4vw, 44px);
    margin: 0;
}

.hoth-sponsor-carousel-eyebrow {
    color: var(--hoth-color-primary, #08664f);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.hoth-sponsor-carousel-controls {
    display: flex;
    gap: 8px;
}

.hoth-sponsor-carousel-controls button,
.hoth-sponsor-dialog-close {
    align-items: center;
    background: var(--hoth-color-primary, #08664f);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 16px;
}

.hoth-sponsor-carousel-viewport {
    overflow: hidden;
    overscroll-behavior-inline: contain;
    padding-block: 8px;
}

.hoth-sponsor-carousel-list {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: max-content;
}

.hoth-sponsor-carousel.is-initialized .hoth-sponsor-carousel-list {
    gap: 0;
}

.hoth-sponsor-carousel-item {
    flex: 0 0 220px;
    width: 220px;
}

.hoth-sponsor-carousel.is-static .hoth-sponsor-carousel-list {
    justify-content: center;
    width: 100%;
}

.hoth-sponsor-dialog {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgb(0 0 0 / 30%);
    max-height: min(760px, calc(100vh - 40px));
    max-width: min(640px, calc(100vw - 40px));
    overflow: auto;
    padding: 0;
    width: 100%;
}

.hoth-sponsor-dialog::backdrop {
    background: rgb(0 0 0 / 68%);
}

.hoth-sponsor-dialog-inner {
    display: flex;
    flex-direction: column;
    padding: 38px;
    position: relative;
}

.hoth-sponsor-dialog-close {
    font-size: 26px;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 16px;
    top: 16px;
}

.hoth-sponsor-dialog h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 34px;
    margin-bottom: 8px;
}

.hoth-sponsor-dialog .hoth-sponsor-level {
    margin-bottom: 0;
}

.hoth-sponsor-description {
    margin-top: 20px;
}

.hoth-sponsor-description > :first-child {
    margin-top: 0;
}

.hoth-sponsor-description > :last-child {
    margin-bottom: 0;
}

.hoth-sponsor-dialog-action {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: 34px;
    padding-top: 4px;
}

.hoth-sponsor-website-link {
    align-items: center;
    background: var(--hoth-color-primary, #08664f);
    border: 2px solid transparent;
    border-radius: 999px;
    color: var(--hoth-color-surface, #ffffff);
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    padding: 11px 22px;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hoth-sponsor-dialog .hoth-sponsor-website-link:hover,
.hoth-sponsor-dialog .hoth-sponsor-website-link:focus,
.hoth-sponsor-dialog .hoth-sponsor-website-link:focus-visible {
    background: var(--hoth-color-secondary, #173f5f);
    border-color: var(--hoth-color-secondary, #173f5f);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.hoth-sponsor-dialog .hoth-sponsor-website-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--hoth-color-focus, #173f5f) 28%, transparent);
    outline-offset: 3px;
}

.hoth-sponsor-website-link span {
    font-size: 16px;
    line-height: 1;
}

body.hoth-sponsor-dialog-open {
    overflow: hidden;
}

@media (max-width: 781px) {
    .hoth-sponsor-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hoth-sponsor-directory .hoth-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .hoth-sponsor-carousel-header {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .hoth-sponsor-carousel-header > div {
        width: 100%;
    }

    .hoth-sponsor-carousel-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hoth-sponsor-directory-grid {
        grid-template-columns: 1fr;
    }

    .hoth-sponsor-carousel-item {
        flex-basis: 180px;
        width: 180px;
    }

    .hoth-sponsor-dialog-inner {
        padding: 28px 22px;
    }

    .hoth-sponsor-dialog-action {
        margin-top: 28px;
    }

    .hoth-sponsor-website-link {
        font-size: 14px;
        padding: 10px 19px;
    }
}
