/**
 * /LOCAL/ Sub-brand Styles
 * Conditionally loaded on /local/ pages, classifieds, and local entity archives.
 * Design: warm, editorial, distinctly Moab — parchment tones, burgundy accents.
 */

/* ─── FOUNDATION ─── */

.msn-local-page .site-content,
.msn-local-page .primary-content,
.msn-local-page .entry-content {
    background-color: #faf8f5;
}

.msn-local-page .site-content .container {
    background-color: transparent;
}

/* Full-width: kill sidebar on /local/ index pages (hub, directory, classifieds) but NOT entity archives */
.msn-local-page.page .secondary-sidebar,
.msn-local-page.page aside#secondary {
    display: none !important;
}
.msn-local-page.page .primary-content {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* ─── SECTION HEADERS (directory) ─── */

.msn-local-page .local-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px 16px;
    border-bottom: none;
    border-left: 4px solid #B23E3D;
    background: linear-gradient(90deg, rgba(178,62,61,0.06) 0%, rgba(178,62,61,0) 100%);
    border-radius: 0 6px 6px 0;
}

.msn-local-page .local-section-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #27272a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.msn-local-page .local-section-icon {
    display: inline-flex;
    color: #B23E3D;
}

.msn-local-page .local-section-count {
    background: #B23E3D;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 12px;
}

/* ─── SECTION HEADERS (classifieds) ─── */

.msn-local-page .classifieds-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    padding: 12px 16px;
    border-bottom: none;
    border-left: 4px solid #B23E3D;
    background: linear-gradient(90deg, rgba(178,62,61,0.06) 0%, rgba(178,62,61,0) 100%);
    border-radius: 0 6px 6px 0;
}

.msn-local-page .classifieds-section-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #27272a;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ─── JUMP NAV (directory) ─── */

.msn-local-page .local-directory-nav {
    position: sticky;
    top: 68px;
    z-index: 997;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 20px;
    padding: 10px 16px;
    border-bottom: none;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: top 0.2s;
}

/* Admin bar offset */
.admin-bar .msn-local-page .local-directory-nav {
    top: 100px;
}

.msn-local-page .local-directory-nav a,
.msn-local-page .local-directory-nav a:link,
.msn-local-page .local-directory-nav a:visited {
    display: inline-block;
    padding: 5px 14px;
    background: transparent;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.msn-local-page .local-directory-nav a:hover {
    color: #B23E3D;
    background: transparent;
}

.msn-local-page .local-directory-nav a.active,
.msn-local-page .local-directory-nav a.active:link,
.msn-local-page .local-directory-nav a.active:visited {
    color: #B23E3D;
    font-weight: 700;
    background: rgba(178,62,61,0.08);
    border: none;
}


/* ─── CARD GRID (directory) ─── */

.msn-local-page .local-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 0;
}

.msn-local-page .local-directory-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.msn-local-page .local-directory-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.msn-local-page .local-card-image {
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.msn-local-page .local-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.msn-local-page .local-card-info {
    padding: 16px;
}

.msn-local-page .local-card-info h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #1a1a1a;
}

.msn-local-page .local-card-address {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 8px;
}

.msn-local-page .local-card-desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 8px;
    line-height: 1.4;
}

.msn-local-page .local-card-count {
    font-size: 0.8rem;
    color: #c41e3a;
    font-weight: 600;
}


/* ─── CARD PLACEHOLDER (no hero image) ─── */

.msn-local-page .local-card-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #B23E3D 0%, #d4956a 100%);
    position: relative;
    overflow: hidden;
}

.msn-local-page .local-card-placeholder .placeholder-letter {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.2);
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}


/* ─── CARD HOVER: CATEGORY TAG ─── */

.msn-local-page .local-directory-card .local-card-category {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 12px;
    background: rgba(178,62,61,0.9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.msn-local-page .local-directory-card:hover .local-card-category {
    transform: translateY(0);
}

/* Touch devices: always show category tag */
@media (hover: none) {
    .msn-local-page .local-directory-card .local-card-category {
        transform: translateY(0);
    }
}


/* ─── /LOCAL/ SUB-NAV BAR ─── */

.msn-local-subnav {
    position: sticky;
    top: 68px;
    z-index: 998;
    background: #B23E3D;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-size: 0.82rem;
    transition: top 0.2s;
}

.admin-bar .msn-local-subnav {
    top: 100px;
}

.msn-local-subnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
}

.msn-local-subnav .subnav-wordmark {
    font-weight: 800;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin-right: 16px;
    white-space: nowrap;
    text-decoration: none;
    background: none;
}

.msn-local-subnav .subnav-wordmark:hover {
    color: #fff;
    background: none;
}

.msn-local-subnav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 8px 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.msn-local-subnav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.msn-local-subnav a.subnav-active {
    color: #fff;
    background: rgba(178,62,61,0.6);
}

/* When sub-nav is present, push jump nav down */
.msn-local-page.has-subnav .local-directory-nav {
    top: 108px;
}
.admin-bar.msn-local-page.has-subnav .local-directory-nav {
    top: 140px;
}


/* ─── CLASSIFIEDS: INDIVIDUAL LISTINGS ─── */

.msn-local-page .classifieds-section {
    margin: 0 0 40px;
}

.msn-local-page .classifieds-section:last-of-type {
    margin-bottom: 32px;
}

.msn-local-page .classifieds-icon {
    display: inline-flex;
    color: #B23E3D;
}

.msn-local-page .classifieds-count {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.msn-local-page .classifieds-empty {
    font-style: italic;
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 8px 0 0;
}

.msn-local-page .classified-listing {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin: 0 0 20px;
    overflow: hidden;
}

.msn-local-page .classified-listing:target {
    box-shadow: 0 0 0 2px #B23E3D;
}

.msn-local-page .classified-listing-image {
    float: right;
    margin: 0 0 12px 20px;
    width: 200px;
    border-radius: 6px;
    overflow: hidden;
}

.msn-local-page .classified-listing-image img {
    width: 100%;
    height: auto;
    display: block;
}

.msn-local-page .classified-listing-content {
    overflow: hidden;
}

.msn-local-page .classified-listing-header {
    margin: 0 0 12px;
}

.msn-local-page .classified-listing-header h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.msn-local-page .classified-listing-date {
    font-size: 0.78rem;
    color: #B23E3D;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.msn-local-page .classified-listing-body {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.6;
}

.msn-local-page .classified-listing-body p {
    margin: 0 0 10px;
}

.msn-local-page .classified-listing-body p:last-child {
    margin-bottom: 0;
}

.msn-local-page .classified-listing-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #f0f0f0;
    clear: both;
}

/* Action buttons (shared: index + single) */
.msn-local-page .classifieds-action {
    display: inline-block;
}

.msn-local-page .classifieds-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #B23E3D;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.msn-local-page .classifieds-action-btn:hover {
    background: #922f2e;
    color: #fff;
    text-decoration: none;
}

.msn-local-page .classifieds-action-btn svg {
    flex-shrink: 0;
}

/* Phone: visible text, not a button — see msn_classifieds_action_button() */
.msn-local-page .classifieds-action-phone-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #B23E3D;
    text-decoration: none;
}

.msn-local-page .classifieds-action-phone-link:hover {
    text-decoration: underline;
}

/* Share link */
.msn-local-page .classified-share-link {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: none;
    margin-left: auto;
}

.msn-local-page .classified-share-link:hover {
    color: #64748b;
    text-decoration: underline;
}

/* CTA */
.msn-local-page .classifieds-cta {
    margin: 8px 0 0;
}

.msn-local-page .classifieds-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.8);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.msn-local-page .classifieds-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msn-local-page .classifieds-cta-text strong {
    font-size: 1rem;
    color: #27272a;
}

.msn-local-page .classifieds-cta-text span {
    font-size: 0.88rem;
    color: #64748b;
}

.msn-local-page .classifieds-cta-button {
    display: inline-block;
    padding: 10px 24px;
    background: #B23E3D;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.msn-local-page .classifieds-cta-button:hover {
    background: #922f2e;
    color: #fff;
    text-decoration: none;
}


/* ─── CLASSIFIEDS: SINGLE POST ─── */

.msn-classified-post .post-thumbnail,
.msn-classified-post .post-thumb-wrap,
.msn-classified-post figure.post-thumb-wrap,
.msn-classified-post .single-related-posts-section,
.msn-classified-post .comments-area,
.msn-classified-post .author-wrap,
.msn-classified-post .post-navigation,
.msn-classified-post .secondary-sidebar,
.msn-classified-post .post-tags-wrap,
.msn-classified-post .ms-givebutter-embed,
.msn-classified-post .msn-in-article-ad {
    display: none !important;
}

.msn-classified-post .primary-content {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.msn-classified-post .post-inner {
    max-width: 720px;
}

.msn-classified-post .classifieds-float-image {
    float: right;
    margin: 0 0 16px 24px;
    max-width: 260px;
    border-radius: 8px;
    overflow: hidden;
}

.msn-classified-post .classifieds-float-image img {
    width: 100%;
    height: auto;
    display: block;
}

.msn-classified-post .classifieds-back {
    margin: 0 0 16px;
}

.msn-classified-post .classifieds-back a {
    font-size: 0.9rem;
    color: #B23E3D;
    text-decoration: none;
    font-weight: 500;
}

.msn-classified-post .classifieds-back a:hover {
    text-decoration: underline;
}

/* Single post action button (larger) */
.msn-classified-post .classifieds-action {
    margin: 20px 0 0;
}

.msn-classified-post .classifieds-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #B23E3D;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.msn-classified-post .classifieds-action-btn:hover {
    background: #922f2e;
    color: #fff;
    text-decoration: none;
}

.msn-classified-post .classifieds-action-btn svg {
    flex-shrink: 0;
}

/* Phone: visible text, not a button — see msn_classifieds_action_button() */
.msn-classified-post .classifieds-action-phone-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: #B23E3D;
    text-decoration: none;
}

.msn-classified-post .classifieds-action-phone-link:hover {
    text-decoration: underline;
}

/* Single post CTA */
.msn-classified-post .classifieds-post-cta {
    clear: both;
    margin: 32px 0 0;
    padding: 16px 20px;
    background: #faf8f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
}

.msn-classified-post .classifieds-post-cta a {
    color: #B23E3D;
    font-weight: 600;
    text-decoration: none;
}

.msn-classified-post .classifieds-post-cta a:hover {
    text-decoration: underline;
}


/* ─── LOST PET URGENCY ─── */

.msn-local-page .classified-listing.classified-lost-pet {
    border-left: 4px solid #d97706;
    background: #fffbeb;
}


/* ─── DIRECTORY SECTION ─── */

.msn-local-page .local-directory-section {
    margin: 0 0 40px;
}


/* ─── HUB PAGE ─── */

.local-hub {
    max-width: 900px;
    margin: 0 auto;
}

/* Hero */
.local-hub-hero {
    text-align: center;
    padding: 48px 24px 40px;
    margin: 0 0 40px;
    background: linear-gradient(135deg, #922f2e 0%, #B23E3D 100%);
    border-radius: 12px;
    color: #fff;
}

.local-hub-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0 0 8px;
    color: #fff;
}

.local-hub-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

.local-hub-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

/* Section cards */
.local-hub-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 0 48px;
}

.local-hub-section-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px 28px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.local-hub-section-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.hub-section-icon {
    font-size: 2rem;
    margin: 0 0 12px;
}

.local-hub-section-card h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.local-hub-section-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}

.hub-section-stat {
    font-size: 0.78rem;
    color: #B23E3D;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Content blocks (Latest Classifieds, New to Directory) */
.local-hub-block {
    margin: 0 0 40px;
}

.local-hub-block-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: 2px solid #B23E3D;
}

.local-hub-block-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.local-hub-block-header a {
    font-size: 0.82rem;
    color: #B23E3D;
    text-decoration: none;
    font-weight: 600;
}

.local-hub-block-header a:hover {
    text-decoration: underline;
}

/* Classifieds listings */
.local-hub-listings {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.local-hub-listing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.local-hub-listing:last-child {
    border-bottom: none;
}

.local-hub-listing:hover {
    background: #fdf5f5;
}

.hub-listing-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.hub-listing-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-left: 16px;
}

.hub-listing-cat {
    color: #B23E3D;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hub-listing-date {
    color: #999;
}

/* Business cards grid */
.local-hub-biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.local-hub-biz-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.local-hub-biz-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.hub-biz-img {
    height: 120px;
    overflow: hidden;
    background: #f0f0f0;
}

.hub-biz-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.hub-biz-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #B23E3D 0%, #d4956a 100%);
}

.hub-biz-placeholder span {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
}

.hub-biz-info {
    padding: 12px;
}

.hub-biz-info strong {
    display: block;
    font-size: 0.9rem;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.hub-biz-info span {
    font-size: 0.78rem;
    color: #888;
}

/* Manifesto */
.local-hub-manifesto {
    margin: 48px 0 0;
    padding: 36px 32px;
    background: linear-gradient(135deg, #922f2e 0%, #B23E3D 100%);
    color: #fff;
    border-radius: 10px;
    text-align: center;
}

.manifesto-lead {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
}

.local-hub-manifesto p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 16px;
}

.local-hub-manifesto p:last-child {
    margin-bottom: 0;
}

.manifesto-tagline {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    font-style: italic;
    margin-top: 8px;
}


/* ─── MOBILE RESPONSIVE ─── */

@media (max-width: 700px) {

    /* Hub page */
    .local-hub-title {
        font-size: 2.2rem;
    }
    .local-hub-tagline {
        font-size: 1rem;
    }
    .local-hub-hero {
        padding: 32px 20px;
    }
    .local-hub-sections {
        grid-template-columns: 1fr;
    }
    .local-hub-section-card {
        padding: 24px 16px 20px;
    }
    .local-hub-listing {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .hub-listing-meta {
        margin-left: 0;
    }
    .local-hub-biz-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .local-hub-manifesto {
        padding: 28px 20px;
    }
    .manifesto-lead {
        font-size: 1.15rem;
    }

    /* Jump nav: horizontal scroll */
    .msn-local-page .local-directory-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        top: 60px;
        padding: 10px 12px;
    }
    .msn-local-page .local-directory-nav::-webkit-scrollbar {
        display: none;
    }
    .admin-bar .msn-local-page .local-directory-nav {
        top: 106px;
    }

    .msn-local-page .local-directory-nav a {
        font-size: 0.78rem;
        padding: 5px 10px;
    }

    /* Sub-nav */
    .msn-local-subnav {
        top: 60px;
        padding: 0 12px;
    }
    .admin-bar .msn-local-subnav {
        top: 106px;
    }
    .msn-local-subnav a {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
    .msn-local-subnav .subnav-wordmark {
        font-size: 0.8rem;
        margin-right: 8px;
    }
    /* Phones: the bar scrolls sideways inside itself instead of widening the page
       ("Advertise" pushed the page to 433px on a 375px screen). Maggie 2026-10-28. */
    .msn-local-subnav {
        overflow: hidden;
    }
    .msn-local-subnav-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .msn-local-subnav-inner::-webkit-scrollbar {
        display: none;
    }

    /* Sub-nav + jump nav offset */
    .msn-local-page.has-subnav .local-directory-nav {
        top: 100px;
    }
    .admin-bar.msn-local-page.has-subnav .local-directory-nav {
        top: 146px;
    }

    /* Card grid: single column */
    .msn-local-page .local-directory-grid {
        grid-template-columns: 1fr;
    }

    /* Classified images: full width */
    .msn-local-page .classified-listing-image {
        float: none;
        width: 100%;
        margin: 0 0 12px;
    }

    .msn-local-page .classifieds-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .msn-local-page .classifieds-section-header {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .msn-local-page .classified-listing-footer {
        flex-wrap: wrap;
    }

    /* Single classified float image */
    .msn-classified-post .classifieds-float-image {
        float: none;
        max-width: 100%;
        margin: 0 0 16px;
    }
}

/* Small mobile admin bar offset */
@media (max-width: 782px) {
    .admin-bar .msn-local-subnav {
        top: 106px;
    }
    .admin-bar .msn-local-page .local-directory-nav {
        top: 106px;
    }
    .admin-bar.msn-local-page.has-subnav .local-directory-nav {
        top: 146px;
    }
}
/* ============================================
   CLASSIFIEDS — /LOCAL/ Family (v5)
   Color: #B23E3D (matches /LOCAL/ nav bar)
   ============================================ */

/* Hide template h1 on classifieds page */
.page-id-94736 .entry-title { display: none; }

.clf-page { max-width: 100%; }

/* Header banner — red bar matching /LOCAL/ nav */
.clf-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #B23E3D;
    padding: 8px 20px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.clf-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.clf-cta-btn {
    display: inline-block;
    background: transparent;
    color: #fff !important;
    padding: 8px 18px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.clf-cta-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

/* Category filter pills — subtle, light background */
.clf-categories {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.clf-cat-pill {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #555;
    transition: all 0.2s;
    font-family: inherit;
}
.clf-cat-pill:hover {
    color: #B23E3D;
}
.clf-cat-pill.active {
    color: #B23E3D;
    font-weight: 700;
    background: rgba(178,62,61,0.08);
    border-radius: 20px;
}
.clf-pill-count {
    font-size: 11px;
    opacity: 0.6;
    margin-left: 2px;
}
.clf-cat-pill.active .clf-pill-count {
    opacity: 1;
}

/* Section headers */
/* Description line below header */
.clf-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px;
    padding: 0 2px;
}

/* Section spacing + dividers */
.clf-section {
    margin-bottom: 28px;
    padding-top: 8px;
}
.clf-section + .clf-section {
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
}

/* Section headers — full-width red bars */
.clf-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #B23E3D;
    border-left: none;
    border-radius: 6px;
    margin-bottom: 12px;
}
.clf-section-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.clf-section-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Listing cards — tighter, no date badge */
.clf-listing {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.clf-listing:hover {
    border-color: #B23E3D;
    box-shadow: 0 2px 8px rgba(178,62,61,0.08);
}

/* Thumbnail */
.clf-thumb-link {
    flex-shrink: 0;
}
.clf-thumb {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

/* Content area */
.clf-content {
    flex: 1;
    min-width: 0;
}
.clf-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}
.clf-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
}
.clf-content h4 a:hover {
    color: #B23E3D;
}

/* Meta row — tag + expiration inline */
.clf-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.clf-meta-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #B23E3D;
    background: rgba(178,62,61,0.08);
    padding: 3px 10px;
    border-radius: 4px;
}
.clf-expires {
    font-size: 12px;
    color: #999;
}
.clf-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 6px;
}
.clf-read-more {
    font-size: 13px;
    color: #B23E3D;
    font-weight: 600;
    text-decoration: none;
}
.clf-read-more:hover {
    text-decoration: underline;
}

/* Action button — View Details & Contact */
a.clf-action-btn,
a.clf-action-btn:link,
a.clf-action-btn:visited,
a.clf-action-btn:hover,
a.clf-action-btn:active,
a.clf-action-btn:focus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #B23E3D;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    margin-top: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
a.clf-action-btn:hover {
    background: #962f2e !important;
    box-shadow: 0 2px 8px rgba(178,62,61,0.25);
}
a.clf-action-btn svg {
    width: 14px;
    height: 14px;
    fill: #fff !important;
}

/* Empty state */
.clf-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 16px;
}
.clf-empty a {
    color: #B23E3D;
    font-weight: 600;
}

/* Policy box */
.clf-policy {
    background: #f8f6f4;
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 28px;
    border: 1px solid #e8e4e0;
}
.clf-policy h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.clf-policy p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 8px;
}
.clf-policy p:last-child {
    margin-bottom: 0;
}
.clf-policy a {
    color: #B23E3D;
    font-weight: 600;
}

/* ============================================
   DIRECTORY — /LOCAL/ Family Consistency
   ============================================ */

/* Hide default page title on directory page */
.page-id-115348 .entry-title { display: none; }

/* Red header banner — matching classifieds */
.dir-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #B23E3D;
    padding: 8px 20px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.dir-header-row h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* CTA button — ghost style matching classifieds */
a.dir-cta-btn,
a.dir-cta-btn:link,
a.dir-cta-btn:visited,
a.dir-cta-btn:hover,
a.dir-cta-btn:active {
    display: inline-block;
    background: transparent;
    color: #fff !important;
    padding: 8px 18px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s;
}
a.dir-cta-btn:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: #fff !important;
}

/* Description line */
.dir-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px;
}

/* Section dividers */
.local-directory-section + .local-directory-section {
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 8px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .clf-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }
    .clf-listing {
        flex-direction: column;
        gap: 12px;
    }
    .clf-thumb {
        width: 100%;
        height: 200px;
    }
    .clf-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}


/* === SUN CIVICS HUB STYLES === */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap");

/* Replace hub hero with Sun Civics branded header */
.category-sun-civics #hub-overview {
  background: #192f47 !important;
  position: relative;
  overflow: hidden;
}

.category-sun-civics #hub-overview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212,148,10,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 20%, rgba(212,148,10,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.category-sun-civics #hub-overview::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4940A, #E8A91B, #D4940A);
  z-index: 1;
}

/* Override hero overlay — no dark overlay needed on solid blue */
.category-sun-civics #hub-overview .hub-hero-overlay {
  background: transparent !important;
}

/* Title styling in hero */
.category-sun-civics #hub-overview h1 {
  font-family: 'Libre Baskerville', Georgia, serif !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* Intro text in hero */
.category-sun-civics #hub-overview .hub-intro,
.category-sun-civics #hub-overview .hub-intro p {
  font-family: 'DM Sans', sans-serif !important;
  color: rgba(255,255,255,0.85) !important;
}

/* Newsletter signup box styling */
.category-sun-civics #hub-overview .hub-signup-box {
  background: rgba(212,148,10,0.15) !important;
  border: 1px solid rgba(212,148,10,0.3) !important;
  border-radius: 8px;
}

.category-sun-civics #hub-overview .hub-signup-label {
  color: #F5E6C0 !important;
  font-family: 'DM Sans', sans-serif !important;
}

.category-sun-civics #hub-overview .hub-signup-box button,
.category-sun-civics #hub-overview .hub-signup-box input[type="submit"] {
  background: #D4940A !important;
  color: #fff !important;
  border: none !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
}

/* Section nav styling */
.category-sun-civics .hub-section-nav {
  background: #192f47 !important;
  border-bottom: 1px solid rgba(212,148,10,0.3) !important;
}

.category-sun-civics .hub-section-nav a {
  color: rgba(255,255,255,0.7) !important;
  font-family: 'DM Sans', sans-serif !important;
}

.category-sun-civics .hub-section-nav a.active,
.category-sun-civics .hub-section-nav a:hover {
  color: #ffffff !important;
  border-bottom-color: #D4940A !important;
}

/* Override hub template styles for Sun Civics */
.category-sun-civics .hub-content-area {
  --sc-gold: #D4940A;
  --sc-gold-light: #F5E6C0;
  --sc-gold-warm: #E8A91B;
  --sc-blue: #192f47;
  --sc-blue-light: #243d5a;
  --sc-cream: #FDF8F0;
  --sc-sand: #F0E8D8;
  --sc-text: #2C2416;
  --sc-text-soft: #5A4E3A;
  font-family: 'DM Sans', sans-serif;
}

.category-sun-civics .hub-content-area h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--sc-blue);
  font-size: 1.35em;
  margin: 2em 0 0.5em 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--sc-gold);
}

.category-sun-civics .hub-content-area h2:first-child {
  margin-top: 0;
}

.category-sun-civics .hub-content-area p {
  font-family: 'DM Sans', sans-serif;
  color: var(--sc-text);
  font-size: 0.95em;
  line-height: 1.6;
}

.category-sun-civics .hub-content-area a {
  color: var(--sc-blue);
  text-decoration-color: rgba(27,58,92,0.3);
  text-underline-offset: 2px;
}

.category-sun-civics .hub-content-area a:hover {
  text-decoration-color: var(--sc-gold);
}

.category-sun-civics .hub-content-area ul {
  padding-left: 0;
  list-style: none;
}

.category-sun-civics .hub-content-area ul li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93em;
  color: var(--sc-text);
  line-height: 1.5;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--sc-sand);
  position: relative;
}

.category-sun-civics .hub-content-area ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--sc-gold);
  border-radius: 50%;
}

/* Government body cards */
.sc-gov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 16px 0 28px;
}

.sc-gov-card {
  display: block;
  background: var(--sc-cream);
  border-left: 4px solid var(--sc-blue);
  padding: 16px 20px;
  text-decoration: none !important;
  border-radius: 4px;
  transition: box-shadow 0.15s, transform 0.1s;
}

.sc-gov-card:hover {
  box-shadow: 0 2px 12px rgba(27,58,92,0.12);
  transform: translateY(-1px);
}

.sc-gov-card strong {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1em;
  color: var(--sc-blue);
  display: block;
  margin-bottom: 4px;
}

.sc-gov-card span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85em;
  color: var(--sc-text-soft);
  line-height: 1.4;
}

/* Quick links row */
.sc-quick-links {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.sc-quick-links a {
  font-size: 0.88em;
  color: var(--sc-blue) !important;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px dotted var(--sc-blue);
  transition: border-color 0.15s;
}

.sc-quick-links a:hover {
  border-bottom-color: var(--sc-gold);
}

/* Survey callout */
.sc-callout {
  background: var(--sc-cream);
  border-left: 4px solid var(--sc-gold);
  padding: 16px 20px;
  margin: 24px 0;
}

.sc-callout strong {
  color: var(--sc-blue);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.95em;
}

.sc-callout p {
  font-size: 0.88em !important;
  color: var(--sc-text-soft) !important;
  margin: 4px 0 0 0;
}

.sc-callout .sc-btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--sc-gold);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.88em;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, transform 0.1s;
}

.sc-callout .sc-btn:hover {
  background: var(--sc-blue);
  transform: translateY(-1px);
}

/* Donate section */
.sc-donate {
  --sc-gold: #D4940A;
  --sc-cream: #FDF8F0;
  --sc-blue: #192f47;
  --sc-text-soft: #5A4E3A;
  background: var(--sc-cream);
  border-top: 3px solid var(--sc-gold);
  padding: 20px 24px;
  margin: 28px 0;
  text-align: center;
}

.sc-donate h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.1em;
  color: var(--sc-blue);
  margin: 0 0 4px 0;
}

.sc-donate p {
  font-size: 0.88em !important;
  color: var(--sc-text-soft) !important;
  margin: 0 0 14px 0;
}

/* Hide sidebar, make content full-width */
.category-sun-civics .secondary-sidebar,
.category-sun-civics .secondary-left-sidebar { display: none !important; }
.category-sun-civics .row .secondary-sidebar-column { display: none !important; }
.category-sun-civics .row .primary-content-column { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }

/* Footer note */
.sc-footnote {
  margin-top: 28px;
  font-size: 0.88em !important;
  color: #666 !important;
  font-style: italic;
}
/* Kill hero-to-nav gap on Sun Civics */
.category-sun-civics .hub-hero { margin-bottom: 0 !important; border-bottom: none !important; }


/* Sun Civics logo-left hero overrides */
.category-sun-civics .hub-hero--logo-left .hub-logo-img {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  max-width: none;
  max-height: none;
  width: auto;
  height: 250px;
  border-radius: 6px;
  object-fit: contain;
}
.category-sun-civics .hub-hero--logo-left .hub-logo-left {
  align-items: stretch;
  flex: 0 0 auto;
}
.category-sun-civics .hub-hero--logo-left .hub-logo-columns {
  min-height: 200px;
}
.category-sun-civics .hub-hero--logo-left .hub-logo-right h1 {
  display: none !important;
}
.category-sun-civics .hub-hero--logo-left .hub-logo-right .hub-intro,
.category-sun-civics .hub-hero--logo-left .hub-logo-right .hub-intro p {
  color: rgba(255,255,255,0.85) !important;
  font-family: DM Sans, sans-serif !important;
}


/* Sun Civics content max-width for readability */
.category-sun-civics .hub-content-area {
  max-width: 800px;
}

/* Sun Civics mobile hero — shrink logo, tighten spacing */
@media (max-width: 768px) {
  .category-sun-civics .hub-hero--logo-left .hub-logo-img {
    height: 120px !important;
    margin: 0 auto;
  }
  .category-sun-civics .hub-hero--logo-left {
    padding: 16px 0 !important;
  }
  .category-sun-civics .hub-hero--logo-left .hub-logo-columns {
    gap: 16px !important;
    text-align: center;
    flex-direction: column !important;
    align-items: center !important;
  }
  .category-sun-civics .hub-hero--logo-left .hub-logo-left {
    justify-content: center;
  }
  .category-sun-civics .hub-hero--logo-left .hub-logo-right .hub-intro {
    text-align: center;
  }
}

/* ─── DIRECTORY REDESIGN (2026-03-03) ─── */

/* Search input */
.dir-search-input {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #e8e0d6;
    border-radius: 4px;
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 20px;
    box-sizing: border-box;
    background: #fff;
}
.dir-search-input:focus {
    outline: none;
    border-color: #b23e3d;
    box-shadow: 0 0 0 2px rgba(178, 62, 61, 0.1);
}

/* Section label */
.dir-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Category card grid */
.dir-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}
.dir-cat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e8e0d6;
    border-radius: 6px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s;
    cursor: pointer;
}
.dir-cat-card:hover {
    border-color: #b23e3d;
    box-shadow: 0 3px 12px rgba(178, 62, 61, 0.08);
    transform: translateY(-1px);
}
.dir-cat-card:hover .dir-cat-name {
    color: #b23e3d;
}
.dir-cat-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf6f1;
    border-radius: 8px;
}
.dir-cat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dir-cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.2s;
}
.dir-cat-count {
    font-size: 11px;
    color: #999;
    margin-top: 1px;
}

/* /LOCAL/ Leaders section */
.dir-leaders-section {
    background: #fff;
    border: 1px solid #e8e2da;
    border-radius: 12px;
    padding: 32px 32px 28px;
    margin-top: 40px;
}
.dir-leaders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.dir-leaders-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dir-leaders-badge {
    background: #b23e3d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.dir-leaders-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
a.dir-leaders-link,
a.dir-leaders-link:link,
a.dir-leaders-link:visited {
    font-size: 12px;
    color: #b23e3d !important;
    text-decoration: none !important;
    font-weight: 600;
}
a.dir-leaders-link:hover {
    text-decoration: underline !important;
}

/* Leaders card grid — hero image cards */
.dir-leaders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.dir-leader-card {
    background: #fff;
    border: 1px solid #e0d9d0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.dir-leader-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #c8bfb4;
}
.dir-leader-card:hover .dir-leader-name {
    color: #b23e3d;
}
.dir-leader-avatar {
    width: 100%;
    height: 220px;
    border-radius: 0;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}
.dir-leader-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    height: 220px;
    width: 100%;
    border-radius: 0;
}
.dir-leader-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px 18px 20px;
    gap: 3px;
}
.dir-leader-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #b23e3d;
    letter-spacing: 0.5px;
}
.dir-leader-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c2420;
    line-height: 1.3;
    transition: color 0.2s;
}
.dir-leader-meta {
    font-size: 12.5px;
    color: #8a7e74;
    margin-top: 1px;
    line-height: 1.4;
}

/* View all button */
.dir-view-all-wrap {
    text-align: center;
    padding: 16px 0 8px;
}
a.dir-view-all-btn,
a.dir-view-all-btn:link,
a.dir-view-all-btn:visited {
    color: #b23e3d !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 10px 24px;
    border: 1px solid #b23e3d;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
a.dir-view-all-btn:hover {
    background: #b23e3d !important;
    color: #fff !important;
}

/* Search results (replaces category grid) */
.dir-cat-grid.dir-search-results {
    grid-template-columns: repeat(3, 1fr);
}
.dir-search-result {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e8e0d6;
    border-radius: 5px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.15s;
}
.dir-search-result:hover {
    border-color: #b23e3d;
}
.dir-search-result:hover .dir-search-name {
    color: #b23e3d;
}
.dir-search-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.15s;
}
.dir-search-cat {
    font-size: 11px;
    color: #999;
}
.dir-search-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .dir-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .dir-leaders-grid { grid-template-columns: 1fr; }
    .dir-leaders-section { margin: 0 -10px; padding: 16px; border-radius: 8px; }
    .dir-leaders-header { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 480px) {
    .dir-cat-grid { grid-template-columns: 1fr; }
    .dir-cat-grid.dir-search-results { grid-template-columns: 1fr; }
}

/* Directory - Empty category cards (Be the first!) */
.dir-cat-card.dir-cat-empty {
    border: 2px dashed #d4cdc4;
    background: #fdfcfb;
    opacity: 0.85;
}
.dir-cat-card.dir-cat-empty:hover {
    border-color: #b23e3d;
    opacity: 1;
    background: #faf6f1;
}
.dir-cat-card.dir-cat-empty .dir-cat-icon {
    opacity: 0.5;
}
.dir-cat-card.dir-cat-empty:hover .dir-cat-icon {
    opacity: 0.8;
}
.dir-cat-cta {
    color: #b23e3d !important;
    font-weight: 600;
    font-style: italic;
}

/* Category page guide text */
.dir-cat-guide-text {
    font-size: 15px;
    line-height: 1.6;
    color: #5a5048;
    max-width: 720px;
    margin: 4px 0 16px;
}
.dir-cat-count-label {
    font-size: 13px;
    color: #8a7e74;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Fix: parent theme incorrectly names --theme-color-red but sets it to green (#1B8415).
   Override with MSN brand red. Loads after main.css so this wins. 2026-03-13 */
:root {
    --theme-color-red: #B23E3D;
}

/* Government body button grid — local-government hub page. 2026-03-14 */
.gov-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0 28px;
}
.gov-body-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    background: #B23E3D;
    border: 2px solid #B23E3D;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gov-body-btn:hover {
    background: #922e2d;
    border-color: #922e2d;
    color: #fff;
}
@media (max-width: 480px) {
    .gov-body-grid { grid-template-columns: 1fr; }
}
