.tci-hidden { display: none; }
.tci-term-post-content { margin: 2em auto; max-width: 1200px; width: 100%; box-sizing: border-box; font-size: inherit; line-height: inherit; }
body:not(.tci-taxonomy-archive) :is(.tci-jump-wrap, .tlj-wrap) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 30px;
}
body:not(.tci-taxonomy-archive) :is(.tci-jump-btn, .tlj-btn) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    max-width: 100%;
    padding: 12px 22px;
    box-sizing: border-box;
    border: 1px solid #17313a;
    border-radius: 0;
    background: #17313a;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition: none;
}
body:not(.tci-taxonomy-archive) :is(.tci-jump-btn--insights, .tlj-btn--insights, .tci-jump-btn--snapshot, .tlj-btn--snapshot) {
    background: transparent;
    color: #17313a;
}
body:not(.tci-taxonomy-archive) :is(.tci-jump-btn, .tlj-btn):visited {
    color: #fff;
}
body:not(.tci-taxonomy-archive) :is(.tci-jump-btn--insights, .tlj-btn--insights, .tci-jump-btn--snapshot, .tlj-btn--snapshot):visited {
    color: #17313a;
}
body:not(.tci-taxonomy-archive) :is(.tci-jump-btn, .tlj-btn):hover {
    background: #294c58;
    border-color: #294c58;
    color: #fff;
    text-decoration: none;
}
body:not(.tci-taxonomy-archive) :is(.tci-jump-btn, .tlj-btn):focus-visible {
    outline: 3px solid #17313a;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #fff;
}
body:not(.tci-taxonomy-archive) :is(.tci-jump-btn, .tlj-btn) .tci-jump-icon {
    display: none;
}
@media (max-width: 767px) {
    body:not(.tci-taxonomy-archive) :is(.tci-jump-wrap, .tlj-wrap) {
        flex-direction: column;
        align-items: stretch;
    }
    body:not(.tci-taxonomy-archive) :is(.tci-jump-btn, .tlj-btn) {
        width: 100%;
    }
}

/* Homepage-aligned taxonomy components. Existing search controls and query state stay in place. */
body.tci-taxonomy-archive .tci-archive-header {
    padding: 38px 32px 36px;
    margin: 0;
    background: transparent;
    color: #454545;
    font-family: "Open Sans", sans-serif;
    box-sizing: border-box;
}
body.tci-taxonomy-archive .tci-archive-eyebrow {
    margin: 0 0 16px;
    color: #52656b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
body.tci-taxonomy-archive .tci-archive-header > h1.entry-title.title_prop {
    margin: 0 0 24px;
    padding: 0;
    color: #172b32;
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.25;
    letter-spacing: -0.4px;
    font-weight: 700;
    text-align: left;
}
body.tci-taxonomy-archive :is(.tci-jump-wrap, .tlj-wrap) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 30px;
}
body.tci-taxonomy-archive :is(.tci-jump-btn, .tlj-btn) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    max-width: 100%;
    padding: 12px 22px;
    box-sizing: border-box;
    border: 1px solid #17313a;
    border-radius: 0;
    background: #17313a;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition: none;
}
body.tci-taxonomy-archive :is(.tci-jump-btn--insights, .tlj-btn--insights, .tci-jump-btn--snapshot, .tlj-btn--snapshot) {
    background: transparent;
    color: #17313a;
}
body.tci-taxonomy-archive :is(.tci-jump-btn, .tlj-btn):visited {
    color: #fff;
}
body.tci-taxonomy-archive :is(.tci-jump-btn--insights, .tlj-btn--insights, .tci-jump-btn--snapshot, .tlj-btn--snapshot):visited {
    color: #17313a;
}
body.tci-taxonomy-archive :is(.tci-jump-btn, .tlj-btn):hover {
    background: #294c58;
    border-color: #294c58;
    color: #fff;
    text-decoration: none;
}
body.tci-taxonomy-archive :is(.tci-jump-btn, .tlj-btn):focus-visible {
    outline: 3px solid #17313a;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #fff;
}
body.tci-taxonomy-archive .tci-archive-header .tci-jump-icon {
    display: none;
}
.tci-jump-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}
body.tci-taxonomy-archive .tci-archive-header .taxonomy-description {
    margin: 0;
    padding: 0;
}
body.tci-taxonomy-archive .tci-archive-editorial--with-areas {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
body.tci-taxonomy-archive .tci-archive-editorial > :only-child {
    grid-column: 1 / -1;
}
body.tci-taxonomy-archive .tci-archive-intro,
body.tci-taxonomy-archive .tci-archive-areas {
    min-width: 0;
}
body.tci-taxonomy-archive .tci-archive-intro,
body.tci-taxonomy-archive .tci-archive-intro :where(p, li) {
    color: #454545;
    font-family: "Open Sans", sans-serif;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 300;
}
body.tci-taxonomy-archive .tci-archive-intro p {
    margin: 0 0 20px;
}
body.tci-taxonomy-archive .tci-archive-intro p:last-child {
    margin-bottom: 0;
}
body.tci-taxonomy-archive .tci-archive-intro a {
    color: #17313a;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.tci-taxonomy-archive :is(.tci-top-title, .tci-filter-heading) {
    margin: 0 0 20px;
    color: #172b32;
    font-family: "Merriweather", Georgia, serif;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    text-align: left;
}
body.tci-taxonomy-archive .tci-top-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    margin: 0;
    padding: 0;
}
body.tci-taxonomy-archive .tci-area-item {
    display: flex;
    min-width: 0;
}
body.tci-taxonomy-archive .tci-area-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 7px;
    width: 100%;
    min-width: 0;
    min-height: 99px;
    padding: 14px 0;
    box-sizing: border-box;
    border: 0;
    border-top: 1px solid #cbdce1;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #17313a;
    text-align: left;
    white-space: normal;
    text-decoration: none;
}
body.tci-taxonomy-archive .tci-area-title,
body.tci-taxonomy-archive .tci-area-name {
    display: block;
    color: #17313a;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
body.tci-taxonomy-archive .tci-area-title .tci-area-count,
body.tci-taxonomy-archive .tci-area-subtitle {
    display: block;
    padding: 0;
    color: #52656b;
    background: transparent;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    white-space: normal;
}
body.tci-taxonomy-archive .tci-area-button:hover .tci-area-name {
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.tci-taxonomy-archive .tci-area-button:focus-visible,
body.tci-taxonomy-archive .tci-archive-intro a:focus-visible {
    outline: 2px solid #17313a;
    outline-offset: 3px;
}
body.tci-taxonomy-archive .tci-archive-search {
    padding: 32px;
    background: #fff;
}
body.tci-taxonomy-archive .tci-archive-search .listing_filters_head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
body.tci-taxonomy-archive .tci-archive-search .wpresidence_dropdown {
    flex: 1 1 170px;
    width: auto;
    min-width: 0;
    margin: 0;
}
body.tci-taxonomy-archive .tci-archive-search .filter_menu_trigger {
    width: 100%;
    min-height: 50px;
    padding: 12px 30px 12px 12px;
    border: 1px solid #a6bec6;
    border-radius: 0;
    background: #fff;
    color: #17313a;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none;
}
body.tci-taxonomy-archive .tci-archive-search .filter_menu_trigger:focus-visible {
    outline: 2px solid #17313a;
    outline-offset: 3px;
}
body.tci-taxonomy-archive .tci-archive-search .filter_menu_trigger span {
    color: inherit;
}
body.tci-taxonomy-archive .tci-archive-search .filter_menu {
    max-width: 100%;
    border-radius: 0;
}
@media (max-width: 991px) {
    body.tci-taxonomy-archive .tci-archive-editorial--with-areas {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    body.tci-taxonomy-archive .tci-archive-header,
    body.tci-taxonomy-archive .tci-archive-search {
        padding: 30px 18px;
    }
    body.tci-taxonomy-archive :is(.tci-jump-wrap, .tlj-wrap) {
        flex-direction: column;
        align-items: stretch;
    }
    body.tci-taxonomy-archive :is(.tci-jump-btn, .tlj-btn) {
        width: 100%;
    }
    body.tci-taxonomy-archive .tci-top-breakdown {
        grid-template-columns: 1fr;
    }
    body.tci-taxonomy-archive .tci-area-button {
        min-height: 85px;
    }
    body.tci-taxonomy-archive .tci-archive-search .wpresidence_dropdown {
        flex-basis: 100%;
    }
    body.tci-taxonomy-archive .tci-archive-search .filter_menu_trigger {
        font-size: 16px;
    }
    .tci-term-post-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media (min-width: 992px) {
    body.tci-taxonomy-archive :is(#listing_ajax_container, #expert-insights, #wprs-market-snapshot) {
        scroll-margin-top: 90px;
    }
}
