/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com/
Description: Child theme for NZ Business Sale
Author: NZ Business Sale
Template: generatepress
Version: 1.0TEST - Business Insights header final size
*/


/* =====================================================
   NZ BUSINESS SALE
   SINGLE BUSINESS PAGE
   ===================================================== */


/* -----------------------------------------------------
   LISTING SUMMARY BAR
   ----------------------------------------------------- */

.business-summary {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr 1.25fr 1fr;
    align-items: center;
    gap: 0;

    margin: 10px 0 18px;
    padding: 11px 14px;

    background: #f5f5f5;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
}

.business-summary-item,
.business-summary-price {
    min-width: 0;
    padding: 0 12px;
    border-right: 1px solid #dddddd;
}

.business-summary-item:first-child {
    padding-left: 0;
}

.business-summary-price {
    border-right: 0;
}

.summary-label {
    display: block;

    margin: 0 0 3px;

    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.summary-value {
    display: block;

    font-size: 14px;
    line-height: 1.35;
}

.summary-price {
    display: block;

    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.summary-price strong {
    font-size: 14px;
    white-space: nowrap;
}


/* -----------------------------------------------------
   BUSINESS HIGHLIGHTS
   ----------------------------------------------------- */

.business-highlights {
    margin: 16px 0 20px;
    padding: 15px 18px;

    background: #fafafa;
    border-left: 4px solid #222222;
}

.business-highlights h2 {
    margin: 0 0 8px;

    font-size: 20px;
    line-height: 1.25;
}

.business-highlights p {
    margin-top: 0;
    margin-bottom: 7px;
}

.business-highlights ul,
.business-highlights ol {
    margin-top: 5px;
    margin-bottom: 0;
}

.business-highlights li {
    margin-bottom: 3px;
}


/* -----------------------------------------------------
   AGENT SECTION
   ----------------------------------------------------- */

.business-agent-section {
    margin: 22px 0;
}

.business-agent-section > h2,
.business-agent-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
}


/* Agent table */

.business-agent-table {
    width: 100%;
    margin: 0;

    border-collapse: collapse;
    border: 1px solid #dddddd;
}

.business-agent-table td {
    vertical-align: middle;
    padding: 14px;

    border: 0;
}


/* Agent photo */

.business-agent-photo {
    width: 165px;
}

.business-agent-photo img {
    display: block;

    width: 145px;
    height: auto;

    margin: 0;

    object-fit: cover;
}


/* Agent details */

.business-agent-details {
    vertical-align: middle;
}

.business-agent-details h3 {
    margin: 0 0 8px;

    font-size: 19px;
    line-height: 1.25;
}

.business-agent-details p {
    margin: 4px 0;

    line-height: 1.45;
}

.business-agent-details a {
    text-decoration: none;
}


/* Enquire button */

.business-enquire-button {
    display: inline-block;

    margin-top: 8px;
    padding: 8px 15px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;

    border: 1px solid #222222;
}

.business-enquire-button:hover {
    text-decoration: none;
}


/* -----------------------------------------------------
   BUSINESS ENQUIRY FORM
   ----------------------------------------------------- */

.business-enquiry-section {
    margin: 22px 0 10px;
}

.business-enquiry-section h2 {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.3;
}


/* Reduce Fluent Forms spacing */

.business-enquiry-section .ff-el-group {
    margin-bottom: 12px;
}

.business-enquiry-section .ff-el-input--label {
    margin-bottom: 3px;
}

.business-enquiry-section textarea {
    min-height: 110px;
}


/* -----------------------------------------------------
   TABLET
   ----------------------------------------------------- */

@media (max-width: 768px) {

    .business-summary {
        grid-template-columns: 1fr 1fr;

        padding: 12px 14px;
        gap: 10px 0;
    }

    .business-summary-item,
    .business-summary-price {
        padding: 0 10px;
        border-right: 0;
    }

    .business-summary-item:nth-child(odd) {
        padding-left: 0;
        border-right: 1px solid #dddddd;
    }

    .business-summary-price {
        grid-column: 1 / -1;

        padding: 8px 0 0;

        border-top: 1px solid #dddddd;
    }
}


/* -----------------------------------------------------
   MOBILE
   ----------------------------------------------------- */

@media (max-width: 600px) {

    .business-summary {
        margin: 8px 0 15px;
    }

    .business-highlights {
        margin: 15px 0 18px;
        padding: 14px 15px;
    }

    .business-agent-table,
    .business-agent-table tbody,
    .business-agent-table tr,
    .business-agent-table td {
        display: block;
        width: 100%;
    }

    .business-agent-photo {
        padding-bottom: 5px !important;
    }

    .business-agent-photo img {
        width: 130px;
    }

    .business-agent-details {
        padding-top: 5px !important;
    }

    .business-enquiry-section {
        margin-top: 18px;
    }
}
/* Agent Position */

.agent-position {
    margin: -3px 0 9px;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

/* =====================================================
   BUSINESSES FOR SALE - BUSINESS CARDS
   ===================================================== */

/* Pods listing wrapper */
.pods-pagination-paginate {
    clear: both;
}


/* Business Card */
.business-card {
    width: 100%;
    max-width: 380px;
    margin: 0 0 30px;

    background: #ffffff;
    border: 1px solid #e2e2e2;

    overflow: hidden;
}


/* Business Image */
.business-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f4f4;
}

.business-card-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: transform 0.25s ease;
}

.business-card-image:hover img {
    transform: scale(1.025);
}


/* Card Content */
.business-card-content {
    padding: 17px 18px 19px;
}


/* Asking Price */
.business-card-price {
    margin-bottom: 7px;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.business-card-price span {
    font-size: 13px;
    font-weight: 600;
}


/* Business Title */
.business-card-title {
    margin: 0 0 13px;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.business-card-title a {
    color: inherit;
    text-decoration: none;
}

.business-card-title a:hover {
    text-decoration: underline;
}


/* Location / Category / Reference */
.business-card-meta {
    margin-bottom: 16px;

    font-size: 13px;
    line-height: 1.55;
}

.business-card-meta div {
    margin-bottom: 2px;
}

.business-card-meta strong {
    font-weight: 600;
}


/* View Business Button */
.business-card-button {
    display: inline-block;

    padding: 8px 14px;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;

    color: #ffffff;
    background: #222222;

    text-decoration: none;
}

.business-card-button:hover {
    color: #ffffff;
    background: #444444;
    text-decoration: none;
}


/* Mobile */
@media (max-width: 600px) {

    .business-card {
        max-width: none;
    }

    .business-card-content {
        padding: 15px 16px 17px;
    }

    .business-card-title {
        font-size: 19px;
    }

}
/* =====================================================
   BUSINESS SEARCH & LISTING GRID
   ===================================================== */


/* Search Form */
.business-search-form {
    margin: 0 0 24px;
    padding: 18px 20px;
    background: #f5f5f5;
    border: 1px solid #e2e2e2;
}

.business-search-fields {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.business-search-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
}

.business-search-field input,
.business-search-field select {
    width: 100%;
    height: 42px;
    padding: 7px 10px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ccc;
}

.business-search-submit button {
    height: 42px;
    padding: 0 24px;
    border: 0;
    background: #222;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.business-search-submit button:hover {
    background: #444;
}


/* Results Header */
.business-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 15px;
}

.business-result-count {
    font-size: 14px;
    font-weight: 600;
}

.business-search-reset {
    font-size: 13px;
}


/* Business Grid */
.business-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* Override old card width for grid */
.business-listing-grid .business-card {
    max-width: none;
    width: 100%;
    margin: 0;
}


/* Pagination */
.business-pagination {
    display: flex;
    gap: 6px;
    margin: 30px 0 10px;
}

.business-pagination a,
.business-pagination .current {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    text-decoration: none;
}

.business-pagination .current {
    background: #222;
    color: #fff;
    border-color: #222;
}


/* No Results */
.business-no-results {
    padding: 25px 0;
}

.business-no-results h3 {
    margin-bottom: 5px;
}


/* Tablet */
@media (max-width: 900px) {

    .business-search-fields {
        grid-template-columns: 1fr 1fr;
    }

    .business-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .business-search-submit button {
        width: 100%;
    }
}


/* Mobile */
@media (max-width: 600px) {

    .business-search-form {
        padding: 15px;
    }

    .business-search-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .business-listing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .business-search-results-header {
        align-items: flex-start;
        gap: 10px;
    }
}
/* Business Card final alignment */

.business-listing-grid .business-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.business-listing-grid .business-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.business-listing-grid .business-card-title {
    font-size: 18px;
    line-height: 1.35;
}

.business-listing-grid .business-card-meta {
    margin-bottom: 14px;
}

.business-listing-grid .business-card-button {
    margin-top: auto;
    align-self: flex-start;
}
/* =====================================================
   BUSINESS STATUS BADGE
   ===================================================== */

.business-card-image {
    position: relative;
}

.business-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;

    display: inline-block;
    padding: 6px 10px;

    background: #222;
    color: #fff;

    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;

    border-radius: 2px;
}
/* HOMEPAGE - 伍勇讲生意: styles scoped to this shortcode only. */
.yong-wu-insights {
    display: grid;
    grid-template-columns: minmax(0, 26fr) minmax(0, 37fr) minmax(0, 34fr);
    gap: 24px;
    box-sizing: border-box;
    width: calc(100% - 60px);
    max-width: 1400px;
    margin: 30px auto 44px;
    padding: 24px;
    background: #f1f1f1;
    align-items: stretch;
}
.yong-wu-insights .yong-wu-insights-heading { min-width: 0; margin: 0; }
.yong-wu-insights .yong-wu-identity { display: grid; grid-template-columns: 32% minmax(0, 1fr); height: 260px; }
.yong-wu-insights .yong-wu-identity h2 {
    display: flex; align-items: center; justify-content: center;
    writing-mode: vertical-rl; text-orientation: upright;
    margin: 0; padding: 10px 0; background: #e1e6e8; color: #222;
    font-size: 32px; font-weight: 700; line-height: 1.3; letter-spacing: 10px;
}
.yong-wu-insights .yong-wu-author-photo { min-width: 0; overflow: hidden; background: #e1e6e8; }
.yong-wu-insights .yong-wu-author-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.yong-wu-insights .yong-wu-eyebrow,
.yong-wu-insights .yong-wu-subtitle {
    box-sizing: border-box; display: block; margin: 2px 0 0; padding: 6px;
    background: #70828b; color: #fff; text-align: center;
    font-size: 13px; line-height: 1.4; font-weight: 600;
}
.yong-wu-insights .yong-wu-insights-image { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #e1e6e8; }
.yong-wu-insights .yong-wu-insights-image a { position: absolute; inset: 0; display: block; height: 100%; }
.yong-wu-insights .yong-wu-insights-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yong-wu-insights .yong-wu-insights-article { display: flex; flex-direction: column; min-width: 0; padding: 0; }
.yong-wu-insights .yong-wu-article-date { display: block; margin-bottom: 8px; font-size: 12px; color: #666; }
.yong-wu-insights .yong-wu-insights-article h3 { margin: 0 0 12px; font-size: 25px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.yong-wu-insights .yong-wu-insights-article h3 a { color: #222; text-decoration: none; }
.yong-wu-insights .yong-wu-insights-article h3 a:hover { text-decoration: underline; }
.yong-wu-insights .yong-wu-article-excerpt { margin-bottom: 16px; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.yong-wu-insights .yong-wu-article-excerpt p { margin: 0; }
.yong-wu-insights .yong-wu-read-more { display: inline-block; padding: 10px 15px; background: #222; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.yong-wu-insights .yong-wu-read-more:hover { background: #444; color: #fff; }
.yong-wu-insights .yong-wu-article-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: auto; padding-top: 30px; }
.yong-wu-insights .yong-wu-article-nav a,
.yong-wu-insights .yong-wu-article-nav span { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 8px 4px; background: #70828b; color: #fff; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; }
.yong-wu-insights .yong-wu-article-nav a:hover { background: #526771; }
.yong-wu-insights .yong-wu-article-nav a:focus-visible,
.yong-wu-insights .yong-wu-read-more:focus-visible { outline: 3px solid #263238; outline-offset: 3px; }
.yong-wu-insights .yong-wu-article-nav span[aria-disabled="true"] { background: #d6dde0; color: #53636b; cursor: not-allowed; }
@media (max-width: 1000px) and (min-width: 801px) {
    .yong-wu-insights { gap: 16px; padding: 18px; }
    .yong-wu-insights .yong-wu-identity { height: 240px; }
    .yong-wu-insights .yong-wu-identity h2 { font-size: 27px; letter-spacing: 8px; }
    .yong-wu-insights .yong-wu-insights-article h3 { font-size: 21px; }
    .yong-wu-insights .yong-wu-article-nav { gap: 6px; }
}
@media (max-width: 800px) {
    .yong-wu-insights { grid-template-columns: 1fr; width: calc(100% - 40px); padding: 20px; gap: 20px; }
    .yong-wu-insights .yong-wu-insights-heading { width: 100%; max-width: 340px; justify-self: center; }
    .yong-wu-insights .yong-wu-insights-image { aspect-ratio: 4 / 3; }
    .yong-wu-insights .yong-wu-article-nav { gap: 10px; }
}

/* =====================================================
   HOMEPAGE - FEATURED BUSINESSES
   ===================================================== */

.featured-businesses {
    margin: 38px 0 45px;
}

.featured-businesses-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 20px;
}

.featured-businesses-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
}

.featured-businesses-heading p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #666;
}

.featured-view-all {
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.featured-businesses-empty {
    padding: 20px 0;
}


/* Mobile */

@media (max-width: 600px) {

    .featured-businesses {
        margin: 28px 0 35px;
    }

    .featured-businesses-heading {
        display: block;
    }

    .featured-businesses-heading h2 {
        font-size: 26px;
    }

    .featured-view-all {
        display: inline-block;
        margin-top: 10px;
    }
}
/* =====================================================
   HOMEPAGE - BUY / SELL
   ===================================================== */

.home-buy-sell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;

    margin: 42px 0;
}


/* Cards */

.home-buy-sell-card {
    padding: 30px 32px;

    background: #f5f5f5;
    border-top: 4px solid #222;
}

.home-buy-sell-label {
    margin-bottom: 6px;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: 0.8px;
}

.home-buy-sell-card h2 {
    margin: 0 0 12px;

    font-size: 27px;
    line-height: 1.25;
    font-weight: 600;
}

.home-buy-sell-card p {
    max-width: 520px;

    margin: 0 0 20px;

    font-size: 14px;
    line-height: 1.65;
}


/* Sell card slightly stronger */

.home-sell-card {
    background: #222;
    color: #fff;
}

.home-sell-card h2,
.home-sell-card p,
.home-sell-card .home-buy-sell-label {
    color: #fff;
}


/* Buttons */

.home-buy-sell-button {
    display: inline-block;

    padding: 9px 15px;

    background: #222;
    color: #fff;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;

    text-decoration: none;
}

.home-buy-sell-button:hover {
    background: #444;
    color: #fff;
}


/* Reverse button on dark Sell card */

.home-sell-card .home-buy-sell-button {
    background: #fff;
    color: #222;
}

.home-sell-card .home-buy-sell-button:hover {
    background: #eee;
    color: #222;
}


/* Mobile */

@media (max-width: 700px) {

    .home-buy-sell {
        grid-template-columns: 1fr;
        gap: 18px;

        margin: 30px 0;
    }

    .home-buy-sell-card {
        padding: 24px;
    }

    .home-buy-sell-card h2 {
        font-size: 24px;
    }
}
/* =====================================================
   HOMEPAGE - LATEST BUSINESSES
   ===================================================== */

.latest-businesses {
    margin: 42px 0 45px;
}

.latest-businesses-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 20px;
}

.latest-businesses-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
}

.latest-businesses-heading p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #666;
}

.latest-view-all {
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 600px) {

    .latest-businesses {
        margin: 30px 0 35px;
    }

    .latest-businesses-heading {
        display: block;
    }

    .latest-businesses-heading h2 {
        font-size: 26px;
    }

    .latest-view-all {
        display: inline-block;
        margin-top: 10px;
    }
}
/* =====================================================
   HOMEPAGE - OUR BROKERS
   ===================================================== */

.home-brokers {
    margin: 42px 0 45px;
    padding: 30px 0;
    border-top: 1px solid #ddd;
}

.home-brokers-heading {
    margin-bottom: 20px;
}

.home-brokers-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
}

.home-brokers-heading p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #666;
}


/* Agent Grid */

.home-brokers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}


/* Agent Card */

.home-broker-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;

    padding: 16px;

    background: #f7f7f7;
    border: 1px solid #e2e2e2;
}


/* Photo */

.home-broker-photo img {
    display: block;

    width: 120px;
    height: 150px;

    object-fit: cover;
}


/* Details */

.home-broker-details {
    min-width: 0;
}

.home-broker-details h3 {
    margin: 0 0 3px;

    font-size: 20px;
    line-height: 1.25;
}

.home-broker-position {
    margin-bottom: 10px;

    font-size: 13px;
    color: #666;
}

.home-broker-contact {
    margin: 4px 0;

    font-size: 12px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.home-broker-contact a {
    text-decoration: none;
}


/* Tablet */

@media (max-width: 900px) {

    .home-brokers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Mobile */

@media (max-width: 600px) {

    .home-brokers {
        margin: 30px 0 35px;
        padding-top: 24px;
    }

    .home-brokers-heading h2 {
        font-size: 26px;
    }

    .home-brokers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-broker-card {
        grid-template-columns: 100px 1fr;
    }

    .home-broker-photo img {
        width: 100px;
        height: 125px;
    }
}
/* =====================================================
   HOMEPAGE - HERO
   ===================================================== */

.home-hero {
    margin: 0;
    padding: 48px 42px 28px;

    background: #222;
    color: #fff;
}

.home-hero-content {
    max-width: 780px;
}

.home-hero-eyebrow {
    margin-bottom: 8px;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: 1.2px;
}

.home-hero h1 {
    margin: 0 0 13px;

    color: #fff;

    font-size: 42px;
    line-height: 1.15;
    font-weight: 600;
}

.home-hero p {
    max-width: 680px;

    margin: 0;

    color: #eee;

    font-size: 16px;
    line-height: 1.6;
}


/* Homepage search directly below Hero */

.homepage-business-search {
    margin: 0 0 32px;
    padding: 20px 24px;

    border-top: 0;
    background: #f3f3f3;
}


/* Tablet */

@media (max-width: 768px) {

    .home-hero {
        padding: 38px 28px 24px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

}


/* Mobile */

@media (max-width: 600px) {

    .home-hero {
        padding: 30px 20px 22px;
    }

    .home-hero h1 {
        font-size: 29px;
    }

    .home-hero p {
        font-size: 14px;
    }

    .homepage-business-search {
        padding: 16px;
    }

}

/* =====================================================
   HOMEPAGE - REMOVE OUTER CONTAINER GAPS
   ===================================================== */

.home .site-content {
    padding-top: 0;
}

.home .content-area,
.home .site-main,
.home .inside-article {
    margin-top: 0;
}

.home .inside-article {
    padding-top: 0;
}

/* Remove the grey strips beside the full-width sections */
.home .site-content {
    background: #fff;
}
/* =====================================================
   HOMEPAGE - FULL WIDTH LAYOUT
   ===================================================== */

/*
 * Homepage itself is full width.
 * Individual sections control their own content width.
 */

.home .site-content,
.home .content-area,
.home .site-main,
.home .inside-article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}


/* -----------------------------------------------------
   HERO
   ----------------------------------------------------- */

.home-hero {
    width: 100%;
    margin: 0;
    padding: 42px max(30px, calc((100% - 1400px) / 2));
}

.home-hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* -----------------------------------------------------
   SEARCH
   ----------------------------------------------------- */

.homepage-business-search {
    width: 100%;
    margin: 0 0 30px;
    padding: 20px max(30px, calc((100% - 1400px) / 2));

    background: #f3f3f3;
}


/* -----------------------------------------------------
   MAIN HOMEPAGE SECTIONS
   Keep content at maximum 1400px
   ----------------------------------------------------- */

.yong-wu-insights,
.featured-businesses,
.home-buy-sell,
.latest-businesses,
.home-brokers {
    width: calc(100% - 60px);
    max-width: 1400px;

    margin-left: auto;
    margin-right: auto;
}


/* 伍勇讲生意 */

.yong-wu-insights {
    margin-top: 30px;
}


/* -----------------------------------------------------
   MOBILE
   ----------------------------------------------------- */

@media (max-width: 600px) {

    .home-hero,
    .homepage-business-search {
        padding-left: 20px;
        padding-right: 20px;
    }

    .yong-wu-insights,
    .featured-businesses,
    .home-buy-sell,
    .latest-businesses,
    .home-brokers {
        width: calc(100% - 40px);
    }

}
/* =====================================================
   HOMEPAGE - FEATURED BUSINESS CARDS
   ===================================================== */

.featured-business-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}


/* Each Business Card */

.featured-business-grid .business-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* Keep all listing images the same size */

.featured-business-grid .business-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.featured-business-grid .business-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Card content */

.featured-business-grid .business-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* Push View Business button to bottom */

.featured-business-grid .business-card-button {
    margin-top: auto;
}


/* Tablet */

@media (max-width: 900px) {

    .featured-business-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}


/* Mobile */

@media (max-width: 600px) {

    .featured-business-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* =====================================================
   LATEST BUSINESSES CAROUSEL
   ===================================================== */

.latest-businesses {
    overflow: hidden;
}


/* Heading */

.latest-businesses-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 22px;
}

.latest-businesses-heading h2 {
    margin-bottom: 4px;
}

.latest-businesses-heading p {
    margin: 0;
}


/* Right controls */

.latest-businesses-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Arrows */

.latest-carousel-prev,
.latest-carousel-next {
    width: 38px;
    height: 38px;

    padding: 0;
    border: 1px solid #d3d3d3;
    border-radius: 0;

    background: #fff;
    color: #333;

    font-size: 25px;
    line-height: 34px;
    font-weight: 400;

    text-align: center;
    cursor: pointer;

    transition: all 0.2s ease;
}

.latest-carousel-prev:hover,
.latest-carousel-next:hover {
    background: #70828b;
    border-color: #70828b;
    color: #fff;
}


/* View All */

.latest-view-all {
    margin-left: 10px;
}


/* Carousel window */

.latest-carousel {
    width: 100%;
    overflow: hidden;
}


/* Moving track */

.latest-carousel-track {
    display: flex;
    gap: 24px;

    transition: transform 0.55s ease;
    will-change: transform;
}


/* Desktop: 4 cards */

.latest-carousel-item {
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: 0;
}


/* Business Card fills the slide */


/* Tablet: 2 cards */

@media (max-width: 900px) {

    .latest-carousel-item {
        flex-basis: calc((100% - 24px) / 2);
    }

}


/* Mobile: 1 card */

@media (max-width: 600px) {

    .latest-businesses-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .latest-businesses-actions {
        width: 100%;
    }

    .latest-view-all {
        margin-left: auto;
    }

    .latest-carousel-track {
        gap: 0;
    }

    .latest-carousel-item {
        flex-basis: 100%;
    }

}
/* =====================================================
   LATEST BUSINESSES CAROUSEL - EQUAL CARD HEIGHT
   ===================================================== */

.latest-businesses {
    overflow: hidden;
}

.latest-carousel {
    width: 100%;
    overflow: hidden;
}


/* Track */

.latest-carousel-track {
    display: flex;
    align-items: stretch;
}


/* Each slide */

.latest-carousel-item {
    display: flex;
    min-width: 0;
    height: auto;
}


/* Business Card - equal height */

.latest-carousel-item .business-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}


/* Card content fills remaining space */

.latest-carousel-item .business-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* Push VIEW BUSINESS to bottom */

.latest-carousel-item .business-card-button {
    margin-top: auto;
}
/* =========================================================
   BUSINESS INSIGHTS ARCHIVE
   ========================================================= */

.business-insights-archive {
    width: calc(100% - 60px);
    max-width: 1400px;
    margin: 40px auto 60px;
}

/* Photo and branding share a 130px row; only a 1px divider separates them. */
.business-insights-archive-header {
    display: grid;
    grid-template-columns: 88px 400px minmax(0, 1fr);
    align-items: start;
    gap: 0;
    margin-bottom: 34px;
    padding-bottom: 28px;
    border-bottom: 1px solid #d9d9d9;
}

.business-insights-agent-photo {
    box-sizing: border-box;
    width: 88px;
    height: 130px;
    margin: 0;
    padding: 0;
    border-right: 1px solid #d3d3d3;
    overflow: hidden;
}

.business-insights-agent-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center top;
}

.business-insights-brand {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 32px 64px 34px;
    width: 100%;
    min-width: 0;
    height: 130px;
    margin: 0;
    padding: 0;
}

.business-insights-brand-top,
.business-insights-brand-main,
.business-insights-brand-bottom {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 0 14px;
    text-align: center;
}

.business-insights-brand-top {
    background: #70828b;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.business-insights-brand-main {
    background: #e1e6e8;
    color: #263238;
    font-size: 36px;
    line-height: 44px;
    font-weight: 700;
    letter-spacing: 2px;
}

.business-insights-brand-bottom {
    background: #70828b;
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Supports the author heading, Chinese paragraph and English summary. */
.business-insights-intro {
    min-width: 0;
    margin: 0 0 0 32px;
    padding: 0;
    align-self: center;
    color: #555;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.business-insights-author {
    margin-bottom: 8px;
    color: #263238;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}

.business-insights-author span {
    color: #70828b;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.business-insights-intro p {
    margin: 0 0 8px;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}

.business-insights-intro-en {
    color: #7a7a7a;
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- Article Grid ---------- */

.business-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}


/* ---------- Article Card ---------- */

.business-insights-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e1e1e1;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.business-insights-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


/* Image */

.business-insights-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}

.business-insights-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-insights-card:hover
.business-insights-card-image img {
    transform: scale(1.025);
}


/* Content */

.business-insights-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}


/* Date */

.business-insights-card-date {
    margin-bottom: 10px;
    color: #70828b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* Title */

.business-insights-card-title {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 700;
}

.business-insights-card-title a {
    color: #222;
    text-decoration: none;
}

.business-insights-card-title a:hover {
    color: #70828b;
}


/* Excerpt */

.business-insights-card-excerpt {
    margin-bottom: 22px;
    color: #555;
    font-size: 16px;
    line-height: 1.65;
}


/* Read More */

.business-insights-read-more {
    display: inline-block;
    margin-top: auto;
    color: #70828b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-decoration: none;
}

.business-insights-read-more:hover {
    color: #263238;
}


/* ---------- Tablet: introduction moves below photo and branding ---------- */

@media (max-width: 1000px) {
    .business-insights-archive-header {
        grid-template-columns: 88px minmax(0, 400px);
        row-gap: 20px;
    }

    .business-insights-intro {
        grid-column: 1 / -1;
        margin: 0;
    }
}

@media (max-width: 900px) {
    .business-insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* ---------- Mobile: both photo and branding are exactly 100px high ---------- */

@media (max-width: 600px) {
    .business-insights-archive {
        width: calc(100% - 40px);
        margin-top: 25px;
    }

    .business-insights-archive-header {
        grid-template-columns: 68px minmax(0, 1fr);
        margin-bottom: 28px;
        padding-bottom: 24px;
    }

    .business-insights-agent-photo {
        width: 68px;
        height: 100px;
    }

    .business-insights-brand {
        grid-template-rows: 26px 46px 28px;
        height: 100px;
    }

    .business-insights-brand-top,
    .business-insights-brand-main,
    .business-insights-brand-bottom {
        padding: 0 6px;
    }

    .business-insights-brand-top {
        font-size: 11px;
        line-height: 14px;
        letter-spacing: 0.5px;
    }

    .business-insights-brand-main {
        font-size: clamp(23px, 6vw, 27px);
        line-height: 34px;
        letter-spacing: 1px;
    }

    .business-insights-brand-bottom {
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0;
    }

    .business-insights-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .business-insights-card-content {
        padding: 20px;
    }
}

/* =========================================================
   SINGLE POSTS - ARTICLE READING LAYOUT
   Standard WordPress posts only; business custom post types are unaffected.
   ========================================================= */

body.single-post.full-width-content .site-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 36px 30px 60px;
}

body.single-post.full-width-content .content-area {
    min-width: 0;
}

body.single-post.full-width-content .site-main {
    margin: 0;
}

body.single-post.full-width-content .inside-article {
    box-sizing: border-box;
    width: 100%;
    padding: 0;
}

/* Featured image outside the article container. */
body.single-post.full-width-content .site > .page-header-image-single {
    box-sizing: border-box;
    width: calc(100% - 60px);
    max-width: 940px;
    margin: 36px auto 0;
    padding: 0;
}

/* Featured image inside the article/main container. */
body.single-post.full-width-content .site-content .page-header-image-single,
body.single-post.full-width-content .inside-article .featured-image {
    width: 100%;
    margin: 0 0 30px;
    padding: 0;
}

body.single-post.full-width-content .page-header-image-single img,
body.single-post.full-width-content .inside-article .featured-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

body.single-post.full-width-content .entry-header {
    margin: 0 0 30px;
}

body.single-post.full-width-content .entry-title {
    margin: 0 0 12px;
    color: #263238;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

body.single-post.full-width-content .entry-meta {
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

body.single-post.full-width-content .entry-content {
    margin: 0;
    color: #333;
    font-size: 18px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

body.single-post.full-width-content .entry-content p {
    margin: 0 0 1.4em;
}

body.single-post.full-width-content .entry-content h2 {
    margin: 1.8em 0 0.7em;
    font-size: 27px;
    line-height: 1.4;
}

body.single-post.full-width-content .entry-content h3 {
    margin: 1.5em 0 0.6em;
    font-size: 22px;
    line-height: 1.45;
}

body.single-post.full-width-content .entry-content ul,
body.single-post.full-width-content .entry-content ol {
    margin: 0 0 1.4em 1.5em;
}

body.single-post.full-width-content .entry-content li {
    margin-bottom: 0.4em;
}

body.single-post.full-width-content .entry-content blockquote {
    margin: 1.5em 0;
    padding: 16px 22px;
    border-left: 3px solid #70828b;
    background: #f4f6f7;
    font-size: inherit;
}

/* Keep wide editor blocks within the reading area. */
body.single-post.full-width-content .entry-content .alignwide,
body.single-post.full-width-content .entry-content .alignfull {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

body.single-post.full-width-content .entry-content img {
    max-width: 100%;
    height: auto;
}

body.single-post.full-width-content .entry-footer {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #e1e1e1;
    font-size: 14px;
}

@media (max-width: 600px) {
    body.single-post.full-width-content .site-content {
        padding: 24px 20px 40px;
    }

    body.single-post.full-width-content .site > .page-header-image-single {
        width: calc(100% - 40px);
        margin-top: 24px;
    }

    body.single-post.full-width-content .entry-content {
        font-size: 16px;
        line-height: 1.85;
    }

    body.single-post.full-width-content .entry-content h2 {
        font-size: 24px;
    }

    body.single-post.full-width-content .entry-content h3 {
        font-size: 20px;
    }
}

/* Archive page: personal column introduction. */
.business-insights-archive .insights-masthead {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 0 30px;
    box-sizing: border-box;
    padding: 30px 32px;
    border: 0;
    border-left: 4px solid #087ab5;
    background: #eef3f5;
}
.business-insights-archive .insights-masthead-photo {
    flex: 0 0 125px;
    width: 125px;
    height: 160px;
    overflow: hidden;
    background: #eef1f2;
}
.business-insights-archive .insights-masthead-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.business-insights-archive .insights-masthead-content { min-width: 0; }
.business-insights-archive .insights-masthead-eyebrow {
    margin: 0 0 7px;
    color: #70828b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2px;
}
.business-insights-archive .insights-masthead-title {
    margin: 0 0 9px;
    padding: 0;
    color: #263238;
    font-size: 38px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 2px;
}
.business-insights-archive .insights-masthead-author {
    margin: 0 0 9px;
    color: #34434b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
.business-insights-archive .insights-masthead-author span { color: #70828b; font-size: 14px; font-weight: 400; }
.business-insights-archive .insights-masthead-description {
    margin: 0;
    color: #53636c;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    .business-insights-archive .insights-masthead { align-items: flex-start; gap: 16px; margin-bottom: 26px; padding: 22px 18px; }
    .business-insights-archive .insights-masthead-photo { flex-basis: 80px; width: 80px; height: 104px; }
    .business-insights-archive .insights-masthead-eyebrow { font-size: 10px; letter-spacing: 1px; }
    .business-insights-archive .insights-masthead-title { font-size: clamp(22px, 5.5vw, 28px); letter-spacing: 1px; }
    .business-insights-archive .insights-masthead-description { font-size: 13px; line-height: 1.75; }
    .business-insights-archive .insights-masthead-break { display: none; }
}

@media (max-width: 400px) {
    .business-insights-archive .insights-masthead { flex-wrap: wrap; }
    .business-insights-archive .insights-masthead-content { flex: 1 1 100%; }
}

/* Suppress the legacy header only on a page containing the new archive masthead. */
body:has(.business-insights-archive .insights-masthead) .business-insights-archive-header {
    display: none !important;
}
/* Site-wide logo and navigation header. */
.site-header {
    background-color: #111f57;
    border-bottom: 1px solid #24366f;
}
.site-header .inside-header,
.site-header .main-navigation,
.site-header .main-navigation .inside-navigation {
    background-color: transparent;
}
.site-header .main-navigation .main-nav ul li a,
.site-header .main-navigation .menu-toggle {
    color: #ffffff;
}
.site-header .main-navigation .main-nav ul li:hover > a,
.site-header .main-navigation .main-nav ul li:focus-within > a,
.site-header .main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #a9d9ff;
    background-color: #20356e;
}
.site-header .main-navigation .main-nav ul ul {
    background-color: #111f57;
}
.site-header .main-navigation a:focus-visible,
.site-header .main-navigation .menu-toggle:focus-visible {
    outline: 2px solid #a9d9ff;
    outline-offset: -2px;
}
/* Transparent anniversary logo displayed in white on the navy header. */
.site-header .site-logo img,
.site-header img.custom-logo,
.site-header img.header-image {
    filter: brightness(0) invert(1);
    width: 300px;
    max-width: 100%;
    height: auto;
}
.site-header .inside-header {
    padding-top: 24px;
    padding-bottom: 24px;
}
.site-header .main-navigation .main-nav > ul > li > a {
    font-weight: 600;
}
@media (max-width: 768px) {
    .site-header .site-logo img,
    .site-header img.custom-logo,
    .site-header img.header-image {
        width: 230px;
    }
    .site-header .inside-header {
        padding-top: 18px;
        padding-bottom: 18px;
    }
}
/* Site footer: match the navy anniversary header. */
.site-footer,
.site-footer .footer-widgets,
.site-footer .site-info {
    background-color: #111f57;
    color: #e4eaf5;
}
.site-footer {
    border-top: 1px solid #24366f;
}
.site-footer .footer-widgets {
    padding-top: 40px;
    padding-bottom: 32px;
}
.site-footer .footer-widgets .widget-title,
.site-footer .footer-widgets h2,
.site-footer .footer-widgets h3 {
    color: #ffffff;
}
.site-footer .footer-widgets a,
.site-footer .site-info a,
.site-footer .site-info a:visited {
    color: #a9d9ff;
    text-decoration: none;
}
.site-footer .footer-widgets a:hover,
.site-footer .site-info a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.site-footer a:focus-visible {
    outline: 2px solid #a9d9ff;
    outline-offset: 4px;
}
.site-footer .site-info {
    padding: 26px 24px;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}
.site-footer .footer-widgets + .site-info {
    border-top: 1px solid #24366f;
}
@media (max-width: 768px) {
    .site-footer .footer-widgets {
        padding-top: 28px;
        padding-bottom: 24px;
    }
    .site-footer .site-info {
        padding: 22px 20px;
    }
}

/* Branded resource footer above the existing copyright bar. */
.nzbs-resource-footer { background: #111f57; color: #dce5f3; border-top: 1px solid #24366f; }
.nzbs-resource-footer .nzbs-resource-footer-inner { box-sizing: border-box; width: calc(100% - 60px); max-width: 1400px; margin: 0 auto; padding: 48px 0 40px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 64px; }
.nzbs-resource-footer .nzbs-footer-brand .custom-logo-link { display: inline-block; }
.nzbs-resource-footer .nzbs-footer-brand img { display: block; width: 280px; max-width: 100%; height: auto; filter: brightness(0) invert(1); }
.nzbs-resource-footer .nzbs-footer-brand p { margin: 22px 0 6px; font-size: 15px; }
.nzbs-resource-footer .nzbs-footer-brand > span { color: #b8c8e0; font-size: 13px; line-height: 1.8; }
.nzbs-resource-footer h2 { margin: 0 0 20px; font-size: 17px; font-weight: 600; line-height: 1.5; color: #fff; }
.nzbs-resource-footer h2 span { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: #a9bddb; }
.nzbs-resource-footer .nzbs-footer-links { list-style: none; margin: 0; padding: 0; }
.nzbs-resource-footer .nzbs-footer-links li { margin: 0 0 11px; padding: 0; }
.nzbs-resource-footer a, .nzbs-resource-footer a:visited { color: #dce5f3; text-decoration: none; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.nzbs-resource-footer a:hover { color: #a9d9ff; text-decoration: underline; }
.nzbs-resource-footer a:focus-visible { outline: 2px solid #a9d9ff; outline-offset: 4px; }
.nzbs-resource-footer .nzbs-footer-note { color: #b8c8e0; font-size: 14px; }
.nzbs-resource-footer + .site-footer { border-top: 1px solid #24366f; }
@media (max-width: 900px) {
    .nzbs-resource-footer .nzbs-resource-footer-inner { gap: 32px; grid-template-columns: 1fr 1fr; }
    .nzbs-resource-footer .nzbs-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .nzbs-resource-footer .nzbs-resource-footer-inner { width: calc(100% - 40px); padding: 32px 0; grid-template-columns: 1fr; gap: 28px; }
    .nzbs-resource-footer .nzbs-footer-brand img { width: 240px; }
    .nzbs-resource-footer h2 { margin-bottom: 14px; }
}

/* Homepage hero: one consistent left edge and clear text hierarchy. */
.home .home-hero {
    box-sizing: border-box;
    padding-top: 40px;
    padding-bottom: 42px;
    background: linear-gradient(115deg, #24445e 0%, #365d76 58%, #52798d 100%);
    color: #fff;
    border-bottom: 1px solid #7692a2;
}
.home .home-hero .home-hero-content { text-align: left; }
.home .home-hero .home-hero-eyebrow {
    display: block;
    position: relative;
    margin: 0 0 20px;
    padding: 0 0 14px;
    border: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
}
.home .home-hero .home-hero-eyebrow::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    background: #8bd2f3;
}
.home .home-hero h1 {
    max-width: 1100px;
    margin: 0 0 14px;
    padding: 0;
    color: #fff;
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0;
}
.home .home-hero p {
    max-width: 900px;
    margin: 0;
    padding: 0;
    color: #edf4f8;
    font-size: 16px;
    line-height: 1.75;
}
@media (max-width: 768px) {
    .home .home-hero { padding-top: 30px; padding-bottom: 32px; }
    .home .home-hero .home-hero-eyebrow { margin-bottom: 18px; }
    .home .home-hero p { font-size: 14px; }
}

/* Broker carousel: keep grid fallback when JavaScript is unavailable. */
.home-brokers { position: relative; }
.home-brokers .home-brokers-heading h2 a { color: inherit; text-decoration: none; }
.home-brokers .home-brokers-heading h2 a:hover { color: #087ab5; text-decoration: underline; }
.home-brokers .brokers-carousel-controls { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 16px; }
.home-brokers .brokers-carousel-controls[hidden] { display: none; }
.home-brokers .brokers-carousel-controls button { min-width: 40px; min-height: 40px; padding: 6px 12px; border: 1px solid #c8d5df; background: #111f57; color: #fff; border-radius: 0; font-size: 16px; cursor: pointer; }
.home-brokers .brokers-carousel-controls button:hover { background: #284774; }
.home-brokers a:focus-visible, .home-brokers button:focus-visible { outline: 2px solid #087ab5; outline-offset: 3px; }
.brokers-carousel-ready .brokers-carousel-window { overflow: hidden; }
.brokers-carousel-ready .home-brokers-grid { display: flex; gap: 24px; align-items: stretch; }
.brokers-carousel-ready .home-broker-card { flex: 0 0 calc((100% - 24px) / 2); box-sizing: border-box; min-width: 0; }
@media (max-width: 700px) {
    .brokers-carousel-ready .home-broker-card { flex-basis: 100%; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; padding: 14px; }
    .brokers-carousel-ready .home-broker-photo img { width: 90px; height: 120px; }
}

/* Align broker controls with the heading, above the card row. */
.home-brokers.brokers-carousel-ready {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    row-gap: 20px;
    align-items: start;
}
.home-brokers.brokers-carousel-ready .home-brokers-heading {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
}
.home-brokers.brokers-carousel-ready .brokers-carousel-controls {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin: 0;
}
.home-brokers.brokers-carousel-ready .brokers-carousel-window {
    grid-column: 1 / -1;
    min-width: 0;
}
@media (max-width: 600px) {
    .home-brokers.brokers-carousel-ready { column-gap: 12px; row-gap: 18px; }
    .home-brokers.brokers-carousel-ready .home-brokers-heading h2 { font-size: 22px; }
    .home-brokers.brokers-carousel-ready .brokers-carousel-controls { gap: 4px; }
    .home-brokers.brokers-carousel-ready .brokers-carousel-controls button { min-width: 30px; min-height: 36px; padding: 5px 7px; font-size: 13px; }
}

/* Larger broker cards: three on desktop, two on tablet, one on mobile. */
.home-brokers.brokers-carousel-ready .home-broker-card {
    flex: 0 0 calc((100% - 48px) / 3);
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    min-height: 224px;
    padding: 22px 18px;
    align-items: center;
}
.home-brokers.brokers-carousel-ready .home-broker-photo img {
    width: 120px;
    height: 170px;
    object-fit: cover;
    object-position: center top;
}
.home-brokers.brokers-carousel-ready .home-broker-details h3 {
    font-size: 21px;
    line-height: 1.4;
    margin-bottom: 7px;
    overflow-wrap: anywhere;
}
.home-brokers.brokers-carousel-ready .home-broker-position {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}
.home-brokers.brokers-carousel-ready .home-broker-contact {
    font-size: 13px;
    line-height: 1.6;
    margin: 6px 0;
}
@media (min-width: 1101px) and (max-width: 1300px) {
    .home-brokers.brokers-carousel-ready .home-broker-card {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 14px;
        padding: 20px 16px;
    }
    .home-brokers.brokers-carousel-ready .home-broker-photo img { width: 100px; height: 150px; }
}
@media (max-width: 1100px) {
    .home-brokers.brokers-carousel-ready .home-broker-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 700px) {
    .home-brokers.brokers-carousel-ready .home-broker-card {
        flex-basis: 100%;
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 16px;
        padding: 20px 16px;
        min-height: 204px;
    }
    .home-brokers.brokers-carousel-ready .home-broker-photo img { width: 100px; height: 150px; }
}
@media (max-width: 360px) {
    .home-brokers.brokers-carousel-ready .home-broker-card { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 16px 12px; }
    .home-brokers.brokers-carousel-ready .home-broker-photo img { width: 80px; height: 120px; }
}

/* Agent-specific listings links and results heading. */
.home-brokers .home-broker-listings { display: inline-block; margin-top: 12px; padding: 8px 11px; background: #111f57; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.home-brokers .home-broker-listings:visited { color: #fff; }
.home-brokers .home-broker-listings:hover { background: #284774; color: #fff; }
.agent-listings-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.agent-listings-heading h2 { margin: 0; font-size: 26px; color: #263238; }
.agent-listings-heading a { color: #087ab5; font-size: 14px; }

/* Keyword / Category / Location / Agent / Search. */
.business-search-form .business-search-fields { grid-template-columns: minmax(160px, 1.5fr) repeat(3, minmax(120px, 1fr)) auto; }
.business-search-form .business-search-field { min-width: 0; }
.agent-listings-notice { padding: 12px 16px; background: #eef3f5; color: #344652; border-left: 3px solid #087ab5; }
@media (max-width: 1000px) {
    .business-search-form .business-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .business-search-form .business-search-submit { grid-column: 1 / -1; }
    .business-search-form .business-search-submit button { width: 100%; }
}
@media (max-width: 600px) {
    .business-search-form .business-search-fields { grid-template-columns: minmax(0, 1fr); }
}

/* Keep listing buttons aligned at the bottom of every broker card. */
.home-brokers .home-broker-card {
    align-items: stretch;
}
.home-brokers .home-broker-photo {
    align-self: center;
}
.home-brokers .home-broker-details {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    align-items: flex-start;
}
.home-brokers .home-broker-details .home-broker-listings {
    margin-top: auto;
    align-self: flex-start;
}
.home-brokers .home-broker-details .home-broker-listings::before {
    content: none;
}
.home-brokers .home-broker-details:has(.home-broker-listings) > :nth-last-child(2) {
    margin-bottom: 14px;
}
.home-brokers.brokers-carousel-ready .home-broker-card {
    align-items: stretch;
}
/* Homepage sections: distinct, restrained background colours. */
.home .yong-wu-insights,
.home .featured-businesses,
.home .latest-businesses,
.home .home-brokers {
    box-sizing: border-box;
    padding: 30px 24px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-top: 0;
}
.home .yong-wu-insights {
    background-color: #c8dce9;
    border-left: 4px solid #087ab5;
}
.home .featured-businesses {
    background-color: #eee0c9;
    border-left: 4px solid #111f57;
}
.home .latest-businesses {
    background-color: #bcd8cf;
    border-left: 4px solid #527e77;
}
.home .home-brokers {
    background-color: #233d68;
    border-left: 4px solid #7fc9ed;
}
.home .home-buy-sell { margin-top: 30px; margin-bottom: 30px; }
.home .home-buy-sell .home-buy-sell-card {
    background-color: #cfdfeb;
    border-top-color: #087ab5;
}
.home .home-buy-sell .home-sell-card {
    background-color: #e5ccaa;
    border-top-color: #a88a58;
}
.home .featured-businesses .business-card,
.home .latest-businesses .business-card,
.home .home-brokers .home-broker-card {
    background-color: #fff;
}
@media (max-width: 600px) {
    .home .yong-wu-insights,
    .home .featured-businesses,
    .home .latest-businesses,
    .home .home-brokers {
        padding: 24px 16px;
        margin-top: 24px;
        margin-bottom: 24px;
    }
}
/* Light heading text on the darker broker section; cards stay white. */
.home .home-brokers .home-brokers-heading h2,
.home .home-brokers .home-brokers-heading h2 a { color: #fff; }
.home .home-brokers .home-brokers-heading p { color: #dce7f5; }
.home .home-brokers .home-brokers-heading h2 a:hover { color: #a9d9ff; }
.home .home-brokers .brokers-carousel-controls button { background-color: #111f57; border-color: #738bad; color: #fff; }
.home .home-brokers .brokers-carousel-controls button:hover { background-color: #365986; }

/* Selected Agent card above their listings; homepage cards are unaffected. */
.agent-listings-profile { box-sizing: border-box; display: flex; align-items: center; gap: 26px; padding: 24px 28px; margin: 26px 0; background: #e8f0f5; border-left: 4px solid #087ab5; }
.agent-listings-profile .agent-listings-profile-photo { display: block; flex: 0 0 110px; width: 110px; height: 145px; object-fit: cover; object-position: center top; }
.agent-listings-profile .agent-listings-profile-details { min-width: 0; }
.agent-listings-profile .agent-listings-profile-label { margin-bottom: 6px; color: #557184; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; }
.agent-listings-profile h2 { margin: 0 0 8px; color: #111f57; font-size: 28px; line-height: 1.3; }
.agent-listings-profile .agent-listings-profile-position { margin: 0 0 12px; color: #53636c; font-size: 14px; }
.agent-listings-profile .agent-listings-profile-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.agent-listings-profile .agent-listings-profile-contact a { color: #125f8c; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.agent-listings-profile .agent-listings-profile-all { flex-shrink: 0; margin-left: auto; padding: 10px 16px; background: #111f57; color: #fff; font-size: 13px; text-decoration: none; }
.agent-listings-profile a:hover { text-decoration: underline; }
.agent-listings-profile a:focus-visible { outline: 2px solid #087ab5; outline-offset: 3px; }
.agent-listings-section-title { margin: 0 0 14px; font-size: 23px; color: #263238; }
@media (max-width: 800px) {
    .agent-listings-profile { flex-wrap: wrap; gap: 18px; padding: 20px; }
    .agent-listings-profile .agent-listings-profile-details { flex: 1 1 180px; }
    .agent-listings-profile .agent-listings-profile-all { margin-left: 0; }
}
@media (max-width: 400px) {
    .agent-listings-profile .agent-listings-profile-photo { flex-basis: 90px; width: 90px; height: 120px; }
    .agent-listings-profile h2 { font-size: 24px; }
}

/* Business detail only: remove sidebar spacing and expand the main column. */
body.single-businesses #right-sidebar,
body.single-businesses #left-sidebar {
    display: none;
}
body.single-businesses .site-content > .content-area {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    float: none;
}
body.single-businesses .site-content > .content-area > .site-main {
    margin-left: 0;
    margin-right: 0;
}
/* Compact business detail: image / description, then Agent / enquiry. */
body.single-businesses .inside-article > .entry-header,
body.single-businesses .page-header-image-single,
body.single-businesses .inside-article > .featured-image { display: none; }
body.single-businesses .business-detail-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}
body.single-businesses .business-detail-overview:not(:has(.business-detail-main-image)) { grid-template-columns: minmax(0, 1fr); }
body.single-businesses .business-detail-main-image img { display: block; width: 100%; height: auto; margin: 0; }
body.single-businesses .business-detail-overview-copy { min-width: 0; }
body.single-businesses .business-detail-title { margin: 0 0 18px; color: #263238; font-size: 32px; line-height: 1.25; }
body.single-businesses .business-detail-overview .business-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
    padding: 16px;
}
body.single-businesses .business-detail-overview .business-summary-item,
body.single-businesses .business-detail-overview .business-summary-price { border: 0; padding: 0; }
body.single-businesses .business-detail-overview .business-highlights { margin: 0 0 16px; }
body.single-businesses .business-detail-contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 30px; align-items: start; }
body.single-businesses .business-detail-contact-grid .business-agent-section,
body.single-businesses .business-detail-contact-grid .business-enquiry-section { min-width: 0; margin: 0; }
body.single-businesses .business-detail-contact-grid h2 { font-size: 23px; line-height: 1.3; margin: 0 0 16px; }
body.single-businesses .business-detail-contact-grid .business-agent-photo { width: 120px; }
body.single-businesses .business-detail-contact-grid .business-agent-photo img { width: 110px; max-width: 100%; height: auto; }
body.single-businesses .business-detail-contact-grid .business-agent-table td { padding: 12px; }
body.single-businesses .business-detail-contact-grid .business-agent-details { overflow-wrap: anywhere; }
body.single-businesses .business-detail-contact-grid .business-enquiry-section textarea { min-height: 145px; }
@media (max-width: 1000px) {
    body.single-businesses .business-detail-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 800px) {
    body.single-businesses .business-detail-overview { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    body.single-businesses .business-detail-title { font-size: 28px; }
}


/* Mobile business Agent card: keep identity details beside the photo. */
@media (max-width: 600px) {
    body.single-businesses .business-agent-section .business-agent-table {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    body.single-businesses .business-agent-section .business-agent-table tbody {
        display: table-row-group;
        width: auto;
    }
    body.single-businesses .business-agent-section .business-agent-table tr {
        display: table-row;
        width: auto;
    }
    body.single-businesses .business-agent-section .business-agent-table td {
        display: table-cell;
        width: auto;
        padding: 12px;
        vertical-align: top;
    }
    body.single-businesses .business-detail-contact-grid .business-agent-table .business-agent-photo {
        box-sizing: border-box;
        width: 106px;
        padding: 12px 0 12px 12px !important;
    }
    body.single-businesses .business-detail-contact-grid .business-agent-photo img {
        width: 94px;
        max-width: 100%;
        height: auto;
    }
    body.single-businesses .business-agent-section .business-agent-table .business-agent-details {
        padding: 12px !important;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    body.single-businesses .business-agent-details h3 { font-size: 18px; }
    body.single-businesses .business-agent-details p { font-size: 13px; line-height: 1.5; }
    body.single-businesses .business-agent-details a { overflow-wrap: anywhere; }
    body.single-businesses .business-agent-details .business-enquire-button { padding: 8px 10px; font-size: 11px; }
}
@media (max-width: 360px) {
    body.single-businesses .business-detail-contact-grid .business-agent-table .business-agent-photo {
        width: 86px;
        padding-left: 10px !important;
    }
    body.single-businesses .business-detail-contact-grid .business-agent-photo img { width: 76px; }
    body.single-businesses .business-agent-section .business-agent-table .business-agent-details { padding: 10px !important; }
}
/* Agent-specific confidentiality agreements on business detail pages. */
.business-agent-document-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px; border: 1px solid #ddd; border-top: 0; background: #f0f4f8; }
.business-agent-document-actions .business-agent-document-button { display: inline-block; padding: 10px 14px; background: #111f57; color: #fff; font-size: 13px; line-height: 1.5; text-decoration: none; }
.business-agent-document-actions .business-agent-document-button:hover { background: #284774; color: #fff; }
.business-agent-document-actions .business-agent-document-button:focus-visible { outline: 2px solid #087ab5; outline-offset: 3px; }
@media (max-width: 600px) { .business-agent-document-actions { justify-content: flex-start; } }

/* Agent actions immediately below the left-hand card only. */
body.single-businesses .business-detail-contact-grid { align-items: start; }
body.single-businesses .business-detail-contact-grid .business-agent-section { display: block; }
body.single-businesses .business-agent-section .business-enquire-button,
body.single-businesses .business-agent-section a[href="#business-enquiry"],
body.single-businesses .business-enquiry-section .nzbs-original-submit { display: none !important; }
body.single-businesses .nzbs-agent-action-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; margin-top: 0; border: 1px solid #c1d2df; border-top: 0; background: #dbe7f0; }
body.single-businesses .nzbs-agent-action-panel .business-agent-document-button,
body.single-businesses .nzbs-agent-action-panel .nzbs-agent-enquiry-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; margin: 0; border: 0; border-radius: 0; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; color: #fff; cursor: pointer; }
body.single-businesses .nzbs-agent-action-panel .business-agent-document-button { background: #111f57; }
body.single-businesses .nzbs-agent-action-panel .business-agent-document-button:hover { background: #284774; }
body.single-businesses .nzbs-agent-action-panel .nzbs-agent-enquiry-button { background: #087ab5; }
body.single-businesses .nzbs-agent-action-panel .nzbs-agent-enquiry-button:hover { background: #065e8c; }
body.single-businesses .nzbs-agent-action-panel button:disabled { opacity: .6; cursor: wait; }
body.single-businesses .nzbs-agent-action-panel a:focus-visible,
body.single-businesses .nzbs-agent-action-panel button:focus-visible { outline: 2px solid #087ab5; outline-offset: 3px; }
/* Move complete field groups together, preserving labels, inputs and errors. */
body.single-businesses .business-enquiry-section .nzbs-email-phone-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; clear: both; }
body.single-businesses .business-enquiry-section .nzbs-email-phone-row .ff-el-group { box-sizing: border-box; float: none !important; clear: none !important; width: 100% !important; min-width: 0; margin-right: 0 !important; }
body.single-businesses .business-enquiry-section .nzbs-email-phone-row .ff-el-input--label,
body.single-businesses .business-enquiry-section .nzbs-email-phone-row .ff-el-input--content { float: none !important; clear: none !important; width: 100%; margin-left: 0; }
body.single-businesses .business-enquiry-section .nzbs-email-phone-row input,
body.single-businesses .business-enquiry-section .nzbs-email-phone-row .iti { box-sizing: border-box; width: 100%; max-width: 100%; }
@media (max-width: 600px) { body.single-businesses .business-enquiry-section .nzbs-email-phone-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Two equal-width actions beneath the Agent card. */
body.single-businesses .nzbs-agent-action-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
body.single-businesses .nzbs-agent-action-panel .business-agent-document-button,
body.single-businesses .nzbs-agent-action-panel .nzbs-agent-enquiry-button {
    width: 100%;
    min-width: 0;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Actual Fluent Form 3 fields: email and input_text (Phone).
   CSS also pairs them when the JavaScript enhancement is unavailable. */
@media (min-width: 601px) {
    body.single-businesses .business-enquiry-section form[data-form_id="3"] > fieldset {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        min-width: 0;
    }
    body.single-businesses .business-enquiry-section form[data-form_id="3"] > fieldset > * {
        grid-column: 1 / -1;
        min-width: 0;
    }
    body.single-businesses .business-enquiry-section form[data-form_id="3"] > fieldset > .ff-el-group:has(input[name="email"]) {
        grid-column: 1;
    }
    body.single-businesses .business-enquiry-section form[data-form_id="3"] > fieldset > .ff-el-group:has(input[name="input_text"]) {
        grid-column: 2;
    }
}

/* Documents directory: live agreements saved on each Agent. */
.agent-agreements-directory { margin: 20px 0 40px; }
.agent-agreements-intro { color: #53636c; margin: 0 0 24px; }
.agent-agreements-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.agent-agreement-card { box-sizing: border-box; display: flex; gap: 18px; padding: 22px; background: #edf3f7; border: 1px solid #d3dfe7; border-top: 3px solid #111f57; }
.agent-agreement-card .agent-agreement-photo { flex: 0 0 90px; display: block; width: 90px; height: 120px; object-fit: cover; object-position: center top; }
.agent-agreement-card .agent-agreement-details { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.agent-agreement-card h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.4; color: #111f57; overflow-wrap: anywhere; }
.agent-agreement-card p { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: #53636c; }
.agent-agreement-card .agent-agreement-download { display: inline-block; margin-top: auto; padding: 10px 12px; background: #111f57; color: #fff; font-size: 13px; line-height: 1.5; text-decoration: none; }
.agent-agreement-card .agent-agreement-download:hover { background: #284774; color: #fff; }
.agent-agreement-card .agent-agreement-download:focus-visible { outline: 2px solid #087ab5; outline-offset: 3px; }
@media (max-width: 1100px) { .agent-agreements-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .agent-agreements-grid { grid-template-columns: minmax(0, 1fr); } .agent-agreement-card { padding: 18px; } }

/* Broker cards keep the photo slot even when no image is uploaded. */
.home-brokers .home-broker-card .home-broker-photo {
    grid-column: 1;
    grid-row: 1;
}
.home-brokers .home-broker-card .home-broker-details {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}
/* Agreement cards follow the same fixed photo / details layout. */
.agent-agreements-directory .agent-agreement-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
}
.agent-agreements-directory .agent-agreement-photo {
    grid-column: 1;
    grid-row: 1;
}
.agent-agreements-directory .agent-agreement-details {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}
/* Shared contact rows on all Agent cards. */
.agent-phone-row { margin: 6px 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.agent-phone-row a { text-decoration: none; }
.agent-phone-row a:hover { text-decoration: underline; }
.agent-listings-profile .agent-listings-profile-contact { flex-direction: column; align-items: flex-start; gap: 4px; }
.agent-listings-profile .agent-phone-row { margin: 0; }
.agent-agreement-card .agent-phone-row { margin: 4px 0; }
.agent-agreement-card .agent-agreement-download { margin-top: 14px; }
.business-agent-section .business-agent-table + .business-agent-table { margin-top: 12px; }

/* Homepage broker cards: compact copy, with photo and button bottom-aligned. */
.home .home-brokers.brokers-carousel-ready .home-broker-card {
    align-items: stretch;
    min-height: 0;
    padding: 20px 18px;
}
.home .home-brokers .home-broker-card .home-broker-photo {
    align-self: end;
}
.home .home-brokers .home-broker-card .home-broker-details {
    align-self: stretch;
    min-height: 170px;
}
.home .home-brokers.brokers-carousel-ready .home-broker-details h3 {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.25;
}
.home .home-brokers.brokers-carousel-ready .home-broker-position {
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.35;
}
.home .home-brokers.brokers-carousel-ready .home-broker-contact {
    margin: 2px 0;
    font-size: 12px;
    line-height: 1.4;
}
.home .home-brokers .home-broker-details:has(.home-broker-listings) > :nth-last-child(2) {
    margin-bottom: 8px;
}
.home .home-brokers .home-broker-details .home-broker-listings {
    margin-top: auto;
    margin-bottom: 0;
    padding: 7px 11px;
    line-height: 1.35;
}
@media (max-width: 1300px) {
    .home .home-brokers .home-broker-card .home-broker-details { min-height: 150px; }
}
/* Consistent compact alignment in the full Brokers directory and carousel. */
.home-brokers .home-broker-card { align-items: stretch; min-height: 0; padding: 20px 18px; }
.home-brokers .home-broker-card .home-broker-photo { align-self: end; }
.home-brokers .home-broker-card .home-broker-details { align-self: stretch; min-height: 150px; }
.home-brokers .home-broker-details h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; }
.home-brokers .home-broker-position { margin: 0 0 7px; font-size: 13px; line-height: 1.35; }
.home-brokers .home-broker-contact { margin: 2px 0; font-size: 12px; line-height: 1.4; }
.home-brokers .home-broker-details:has(.home-broker-listings) > :nth-last-child(2) { margin-bottom: 8px; }
.home-brokers .home-broker-details .home-broker-listings { margin-top: auto; margin-bottom: 0; padding: 7px 11px; line-height: 1.35; }
/* Agreement cards: compact contact rows; download ends at the photo baseline. */
.agent-agreements-directory .agent-agreement-card { align-items: stretch; }
.agent-agreements-directory .agent-agreement-photo { align-self: end; }
.agent-agreements-directory .agent-agreement-details { min-height: 120px; }
.agent-agreements-directory .agent-agreement-card h2 { margin-bottom: 4px; line-height: 1.25; }
.agent-agreements-directory .agent-agreement-card p { margin-bottom: 7px; line-height: 1.35; }
.agent-agreements-directory .agent-phone-row { margin: 2px 0; font-size: 12px; line-height: 1.4; }
.agent-agreements-directory .agent-agreement-download { margin-top: auto; margin-bottom: 0; padding: 7px 11px; line-height: 1.35; }
.agent-agreements-directory .agent-phone-row:last-of-type { margin-bottom: 8px; }
/* Selected Agent profile on the listings results page. */
.agent-listings-profile .agent-listings-profile-photo { align-self: end; }
.agent-listings-profile .agent-listings-profile-contact { gap: 2px; }
.agent-listings-profile .agent-phone-row { margin: 2px 0; line-height: 1.4; }
.agent-listings-profile .agent-listings-profile-all { align-self: end; }
/* Business contact identity remains beside the photograph. */
body.single-businesses .business-agent-table .business-agent-details { vertical-align: bottom; }
body.single-businesses .business-agent-table .business-agent-photo { vertical-align: bottom; }
body.single-businesses .business-agent-details h3 { margin-bottom: 4px; line-height: 1.25; }
body.single-businesses .business-agent-details p { margin: 3px 0 7px; line-height: 1.35; }
body.single-businesses .business-agent-details .agent-phone-row { margin: 2px 0; font-size: 13px; line-height: 1.4; }
body.single-businesses .business-agent-details .agent-phone-row:last-child { margin-bottom: 0; }
/* Imported insights without featured images use the available text area. */
.yong-wu-insights.insights-without-image .yong-wu-insights-image { display: none; }
.yong-wu-insights.insights-without-image .yong-wu-insights-article { grid-column: 2 / -1; }
.yong-wu-insights .yong-wu-article-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.business-insights-card .business-insights-card-image:not(:has(img)) { display: none; }
.business-insights-card .business-insights-card-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
@media (max-width: 800px) {
    .yong-wu-insights.insights-without-image .yong-wu-insights-article { grid-column: 1 / -1; }
}

/* Keep the original navigation size when the article has no featured image. */
@media (min-width: 1001px) {
    .yong-wu-insights.insights-without-image .yong-wu-article-nav {
        width: calc((100% - 24px) * 34 / 71);
        margin-left: auto;
    }
}
@media (min-width: 801px) and (max-width: 1000px) {
    .yong-wu-insights.insights-without-image .yong-wu-article-nav {
        width: calc((100% - 16px) * 34 / 71);
        margin-left: auto;
    }
}
/* Article detail only: remove sidebar and center the reading column. */
body.single-post #right-sidebar,
body.single-post #left-sidebar { display: none; }
body.single-post .site-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
}
body.single-post .site-content > .content-area {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    float: none;
}
body.single-post .content-area > .site-main { margin-left: 0; margin-right: 0; }
/* Standard articles: custom navigation replaces theme metadata and comments. */
body.single-post .inside-article > .entry-footer,
body.single-post .post-navigation,
body.single-post #comments { display: none; }
body.single-post .insights-single-navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 420px;
    margin: 32px 0 0 auto;
    padding-top: 24px;
    border-top: 1px solid #dce3e7;
}
body.single-post .insights-single-navigation a,
body.single-post .insights-single-navigation span {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 6px;
    background: #70828b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}
body.single-post .insights-single-navigation a:hover { background: #526771; }
body.single-post .insights-single-navigation span[aria-disabled="true"] { background: #d6dde0; color: #53636b; cursor: not-allowed; }
body.single-post .insights-single-navigation a:focus-visible { outline: 2px solid #263238; outline-offset: 3px; }
@media (max-width: 600px) { body.single-post .insights-single-navigation { gap: 10px; } }

/* Derive the layout from actual image markup, including AJAX replacements. */
.yong-wu-insights:not(:has(.yong-wu-insights-image img)) .yong-wu-insights-image { display: none; }
.yong-wu-insights:not(:has(.yong-wu-insights-image img)) .yong-wu-insights-article { grid-column: 2 / -1; }
@media (min-width: 1001px) {
    .yong-wu-insights:not(:has(.yong-wu-insights-image img)) .yong-wu-article-nav { width: calc((100% - 24px) * 34 / 71); margin-left: auto; }
}
@media (min-width: 801px) and (max-width: 1000px) {
    .yong-wu-insights:not(:has(.yong-wu-insights-image img)) .yong-wu-article-nav { width: calc((100% - 16px) * 34 / 71); margin-left: auto; }
}
@media (max-width: 800px) {
    .yong-wu-insights:not(:has(.yong-wu-insights-image img)) .yong-wu-insights-article { grid-column: 1 / -1; }
}

/* Hide theme article-category metadata throughout the site. */
.cat-links,
.entry-meta .cat-links,
.entry-footer .cat-links {
    display: none !important;
}