body.states-page {
    --nbt-main-header-height: 130px;
    --state-identity-height: 60px;
    overflow-x: clip;
    font-family: var(--temple-font-ui);
}

html,
body.states-page,
body.states-page .states-hub-directory {
    scroll-padding-top: calc(var(--nbt-main-header-height) + var(--state-identity-height) + 24px);
}

body.states-page .pageheader__left h3,
body.states-page .section__header h2,
body.states-page .states-filter-panel__heading h6,
body.states-page .states-page-identity__content h6,
body.states-page .temple-directory__stat strong,
body.states-page .state-hub__note h2 {
    font-family: var(--temple-font-heading);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

body.states-page .states-hub__hero-banner {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    z-index: 1;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 0;
}

body.states-page .states-page-identity {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.states-page .states-page-identity__bar {
    position: relative;
    z-index: 920;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
    background: rgba(255, 250, 241, 0.98);
    border-top: 1px solid rgba(197, 122, 44, 0.12);
    border-bottom: 1px solid rgba(197, 122, 44, 0.2);
    box-shadow: 0 8px 18px rgba(68, 34, 12, 0.08);
    backdrop-filter: blur(8px);
}

body.states-page .states-page-identity__bar > .container {
    min-height: 0 !important;
}

body.states-page .states-page-identity__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 0;
    padding: 10px 0;
}

body.states-page .states-page-identity__content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.states-page .states-page-identity__content h6 {
    margin: 0;
    color: #2d2118;
    font-size: 0.98rem;
    line-height: 1.2;
}

body.states-page .states-page-identity__content p {
    margin: 0;
    color: #6c4b2a;
    font-size: 0.84rem;
    line-height: 1.35;
}

body.states-page .states-page-identity__crumbs {
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
}

body.states-page .states-page-identity .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-bottom: 0;
    white-space: nowrap;
}

body.states-page .states-page-identity .breadcrumb-item,
body.states-page .states-page-identity .breadcrumb-item a,
body.states-page .states-page-identity .breadcrumb-item + .breadcrumb-item::before {
    color: #5a4028;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

body.states-page .states-page-identity .breadcrumb-item.active {
    color: #2d2118;
}

body.states-page .states-page-identity.is-sticky-active .states-page-identity__bar {
    position: fixed;
    top: var(--nbt-main-header-height);
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 12px 24px rgba(68, 34, 12, 0.12);
}

body.states-page .states-page-identity.is-sticky-active {
    padding-bottom: var(--state-identity-height) !important;
}

body.states-page .states-hub-directory,
body.states-page .state-hub__listing,
body.states-page .state-hub__listing .section__wrapper,
body.states-page .state-hub__listing .row {
    overflow-x: clip;
}

body.states-page .states-hub-directory {
    padding-top: clamp(32px, 3vw, 48px) !important;
}

body.states-page .states-hub__intro {
    margin-bottom: 18px;
}

body.states-page .states-hub__intro p {
    max-width: 780px;
    margin-inline: auto;
}

body.states-page .temple-directory__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

body.states-page .temple-directory__stat {
    min-height: 132px;
    padding: 22px 20px;
    border: 1px solid var(--temple-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--temple-shadow-soft);
    text-align: center;
}

body.states-page .temple-directory__stat strong {
    display: block;
    margin-bottom: 10px;
    color: #7a4c1b;
    font-size: clamp(1.9rem, 1.45rem + 1vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
}

body.states-page .temple-directory__stat span {
    display: block;
    color: #4d392a;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.55;
}

body.states-page .states-filter-panel {
    margin-bottom: 18px;
    padding: 20px 22px 22px;
    border: 1px solid var(--temple-border);
    border-radius: 24px;
    background: #fffdf8;
    box-shadow: var(--temple-shadow-soft);
}

body.states-page .states-page-toolbar {
    position: relative;
    top: auto;
    z-index: 1;
    background: rgba(255, 253, 248, 0.96);
    border-color: rgba(197, 122, 44, 0.18);
    backdrop-filter: blur(10px);
}

body.states-page .states-filter-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

body.states-page .states-filter-panel__heading h6 {
    margin-bottom: 4px;
    color: #2d2118;
    font-size: 1.12rem;
    line-height: 1.3;
}

body.states-page .states-filter-panel__heading p {
    margin-bottom: 0;
    color: #6c4b2a;
    font-size: 0.9rem;
    line-height: 1.55;
}

body.states-page .states-filter-panel__heading p strong {
    color: #7a4c1b;
    font-weight: 700;
}

body.states-page .states-filter-panel__controls {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

body.states-page .states-filter-panel__field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

body.states-page .states-filter-panel__field label {
    color: #4e392b;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.states-page .states-filter-panel__field--search {
    gap: 0;
}

body.states-page .states-filter-panel__search-input,
body.states-page .states-filter-panel__select {
    min-height: 52px;
    width: 100%;
    padding: 0 18px;
    border: 1px solid rgba(120, 82, 32, 0.18);
    border-radius: 18px;
    background: #fff;
    color: #2f2419;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--temple-shadow-soft);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.states-page .states-filter-panel__search-input::placeholder {
    color: #7c634b;
}

body.states-page .states-filter-panel__search-input:focus,
body.states-page .states-filter-panel__select:focus {
    border-color: rgba(183, 117, 43, 0.65);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(183, 117, 43, 0.12);
}

body.states-page .state-hub__reset.default-btn,
body.states-page .state-hub__item .temple-directory__action.default-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #b8752b;
    box-shadow: 0 10px 22px rgba(150, 83, 22, 0.18);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

body.states-page .state-hub__reset.default-btn {
    min-width: 118px;
}

body.states-page .state-hub__reset.default-btn span,
body.states-page .state-hub__item .temple-directory__action.default-btn span {
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
}

body.states-page .state-hub__results-wrap {
    margin-bottom: 18px;
}

body.states-page .state-hub__results {
    margin-bottom: 0;
    color: #5d4330;
    font-size: 0.96rem;
    font-weight: 600;
}

body.states-page .state-hub__listing {
    margin-bottom: 18px;
}

body.states-page .state-hub__item {
    height: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.states-page .state-hub__listing .event__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
    border: 1px solid var(--temple-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--temple-shadow-soft);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

body.states-page .state-hub__item:hover .event__inner,
body.states-page .state-hub__item:focus-within .event__inner {
    border-color: rgba(197, 122, 44, 0.22);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

body.states-page .state-hub__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
    padding: 24px 22px 22px;
    background: #fff;
}

body.states-page .state-hub__eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 30px;
    margin-bottom: 14px;
    padding: 0 12px;
    border: 1px solid rgba(197, 122, 44, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff8ed, #fff1d8);
    color: #8d5418;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

body.states-page .state-hub__content h5 {
    margin: 0 0 10px;
    color: #2b1e14;
    font-family: var(--temple-font-ui);
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.3;
}

body.states-page .state-hub__meta {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

body.states-page .state-hub__meta li {
    color: #4f3928;
    font-size: 0.88rem;
    line-height: 1.55;
}

body.states-page .state-hub__meta strong {
    color: #2b1e14;
    font-weight: 700;
}

body.states-page .state-hub__content p {
    margin: 0 0 18px;
    color: #5b4433;
    font-size: 0.93rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.states-page .state-hub__content .temple-directory__action.default-btn {
    width: 100%;
    min-height: 46px;
    margin-top: auto;
}

body.states-page .state-hub__empty {
    margin-top: 0;
    padding: 28px 24px;
    border: 1px solid var(--temple-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--temple-shadow-soft);
    text-align: center;
}

body.states-page .state-hub__empty h6 {
    margin-bottom: 8px;
    color: #2d2118;
    font-size: 1.12rem;
}

body.states-page .state-hub__empty p {
    margin-bottom: 0;
    color: #5b4433;
    line-height: 1.65;
}

body.states-page .state-hub__note {
    margin-top: 30px;
    padding: 28px 30px;
    border: 1px solid rgba(140, 96, 40, 0.14);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 246, 228, 0.76), rgba(255, 255, 255, 0.96));
    box-shadow: var(--temple-shadow-soft);
    text-align: center;
}

body.states-page .state-hub__note h2 {
    margin-bottom: 10px;
    color: #2d1d12;
    font-size: clamp(1.5rem, 1.3rem + 0.55vw, 1.95rem);
}

body.states-page .state-hub__note p {
    max-width: 780px;
    margin: 0 auto;
    color: #5b4433;
    line-height: 1.78;
}

@media (hover: hover) and (pointer: fine) {
    body.states-page .state-hub__reset.default-btn:hover,
    body.states-page .state-hub__reset.default-btn:focus-visible,
    body.states-page .state-hub__item .temple-directory__action.default-btn:hover,
    body.states-page .state-hub__item .temple-directory__action.default-btn:focus-visible {
        transform: translateY(-1px);
        background: #9b5f1f;
        box-shadow: 0 16px 30px rgba(150, 83, 22, 0.22);
    }
}

@media (max-width: 1199px) {
    body.states-page .states-filter-panel__controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.states-page .states-filter-panel__field--search {
        grid-column: 1 / -1;
    }

    body.states-page .state-hub__reset.default-btn {
        width: 100%;
    }
}

@media (max-width: 991px) {
    body.states-page .temple-directory__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.states-page .states-filter-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    body.states-page .states-page-identity__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    body.states-page .states-page-identity__crumbs {
        margin-left: 0;
    }

    body.states-page .states-page-identity .breadcrumb {
        flex-wrap: wrap;
        white-space: normal;
    }

    body.states-page .temple-directory__stats {
        grid-template-columns: 1fr;
    }

    body.states-page .states-filter-panel {
        padding: 18px 16px 18px;
    }

    body.states-page .states-filter-panel__controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.states-page .states-filter-panel__field--search {
        grid-column: auto;
    }

    body.states-page .state-hub__reset.default-btn {
        width: 100%;
        min-width: 0;
    }

    body.states-page .state-hub__content {
        padding: 20px 18px 20px;
    }

    body.states-page .state-hub__note {
        padding: 24px 20px;
        text-align: left;
    }
}
