/**
 * Community Single Pages CSS
 * Shared modern layout for Organization, Nature, Neighborhood, and Business single pages.
 * BEM-like block prefix: cpage2 (Community Page v2)
 * Mirrors the cev2-* event and cpv2-* property template conventions.
 *
 * Body-class overrides set per-type accent colors:
 *   .comm-single-org-page        → green-teal gradient
 *   .comm-single-nature-page     → forest-green gradient
 *   .comm-single-neighborhood-page → indigo-purple gradient
 *   .comm-single-business-page   → navy-blue gradient
 */

/* ─── Reset / Base ─────────────────────────────────────────────────────────── */
.cpage2-article *,
.cpage2-article *::before,
.cpage2-article *::after {
    box-sizing: border-box;
}

/* Global image containment: prevent WP-generated <img> width/height attrs from overflowing */
.cpage2-article img {
    max-width: 100%;
}

.cpage2-article {
    --cpage2-accent:      var(--wp--preset--color--primary, #c1440e);
    --cpage2-accent-dark: #a0360b;
    --cpage2-hero-from:   #1a1a2e;
    --cpage2-hero-to:     #0f3460;
    --cpage2-surface:     #ffffff;
    --cpage2-surface-2:   #f8f9fb;
    --cpage2-border:      #e8eaf0;
    --cpage2-text:        #1a202c;
    --cpage2-text-muted:  #64748b;
    --cpage2-hero-title:  #ffffff;
    --cpage2-hero-meta:   rgba(255,255,255,0.88);
    --cpage2-radius:      14px;
    --cpage2-shadow:      0 4px 24px rgba(0,0,0,0.08);
    --cpage2-shadow-lg:   0 12px 40px rgba(0,0,0,0.14);
    --cpage2-gap:         28px;
    --cpage2-font-body:   var(--comm-font-body, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
    --cpage2-font-heading: var(--comm-font-heading, var(--cpage2-font-body));
    --cpage2-font-size-base: var(--comm-font-size-base, 16px);
    --cpage2-font-weight-body: var(--comm-font-weight-body, 400);
    --cpage2-font-weight-heading: var(--comm-font-weight-heading, 700);
    --cpage2-font-size-h1: var(--comm-font-size-h1, clamp(1.95rem, 3.9vw, 3.2rem));
    --cpage2-font-size-h2: var(--comm-font-size-h2, clamp(1.62rem, 3.2vw, 2.35rem));
    --cpage2-font-size-h3: var(--comm-font-size-h3, clamp(1.35rem, 2.35vw, 1.85rem));
    --cpage2-font-size-h4: var(--comm-font-size-h4, clamp(1.15rem, 2.1vw, 1.45rem));
    --cpage2-font-size-h5: var(--comm-font-size-h5, 1.02rem);
    --cpage2-font-size-h6: var(--comm-font-size-h6, 0.92rem);
    --cpage2-font-weight-h1: var(--comm-font-weight-h1, var(--cpage2-font-weight-heading));
    --cpage2-font-weight-h2: var(--comm-font-weight-h2, var(--cpage2-font-weight-heading));
    --cpage2-font-weight-h3: var(--comm-font-weight-h3, var(--cpage2-font-weight-heading));
    --cpage2-font-weight-h4: var(--comm-font-weight-h4, var(--cpage2-font-weight-heading));
    --cpage2-font-weight-h5: var(--comm-font-weight-h5, var(--cpage2-font-weight-heading));
    --cpage2-font-weight-h6: var(--comm-font-weight-h6, var(--cpage2-font-weight-heading));
    --cpage2-line-height-body: var(--comm-font-line-height-body, 1.65);
    --cpage2-line-height-heading: var(--comm-font-line-height-heading, 1.24);
    --cpage2-letter-spacing-body: var(--comm-font-letter-spacing-body, 0em);
    --cpage2-letter-spacing-heading: var(--comm-font-letter-spacing-heading, 0em);
    --cpage2-paragraph-margin-bottom: var(--comm-font-paragraph-margin-bottom, 1em);
    --cpage2-heading-margin-bottom: var(--comm-font-heading-margin-bottom, 0.75em);
    --cpage2-paragraph-padding-inline: var(--comm-font-paragraph-padding-inline, 0px);
    --cpage2-paragraph-padding-block: var(--comm-font-paragraph-padding-block, 0px);
    --cpage2-heading:     var(--comm-color-heading, var(--cpage2-text));
    font-family: var(--cpage2-font-body) !important;
    font-size: var(--cpage2-font-size-base);
    font-weight: var(--cpage2-font-weight-body);
    color: var(--cpage2-text);
    line-height: var(--cpage2-line-height-body);
    letter-spacing: var(--cpage2-letter-spacing-body);
    background: var(--cpage2-surface-2);
    /* Break out of the theme's max-width container */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
}

.cpage2-article h1,
.cpage2-article h2,
.cpage2-article h3,
.cpage2-article h4,
.cpage2-article h5,
.cpage2-article h6 {
    font-family: var(--cpage2-font-heading) !important;
    font-weight: var(--cpage2-font-weight-heading);
    color: var(--cpage2-heading);
    line-height: var(--cpage2-line-height-heading);
    letter-spacing: var(--cpage2-letter-spacing-heading);
    margin-bottom: var(--cpage2-heading-margin-bottom);
}

.cpage2-article h1 { font-size: var(--cpage2-font-size-h1); }
.cpage2-article h2 { font-size: var(--cpage2-font-size-h2); }
.cpage2-article h3 { font-size: var(--cpage2-font-size-h3); }
.cpage2-article h4 { font-size: var(--cpage2-font-size-h4); }
.cpage2-article h5 { font-size: var(--cpage2-font-size-h5); }
.cpage2-article h6 { font-size: var(--cpage2-font-size-h6); text-transform: uppercase; letter-spacing: 0.05em; }
.cpage2-article h1 { font-weight: var(--cpage2-font-weight-h1); }
.cpage2-article h2 { font-weight: var(--cpage2-font-weight-h2); }
.cpage2-article h3 { font-weight: var(--cpage2-font-weight-h3); }
.cpage2-article h4 { font-weight: var(--cpage2-font-weight-h4); }
.cpage2-article h5 { font-weight: var(--cpage2-font-weight-h5); }
.cpage2-article h6 { font-weight: var(--cpage2-font-weight-h6); }

.cpage2-article p,
.cpage2-article li,
.cpage2-article dd,
.cpage2-article dt,
.cpage2-article figcaption,
.cpage2-article label,
.cpage2-article input,
.cpage2-article textarea,
.cpage2-article select,
.cpage2-article button {
    font-family: var(--cpage2-font-body) !important;
    font-size: inherit;
    font-weight: var(--cpage2-font-weight-body);
}

.cpage2-article p {
    margin-bottom: var(--cpage2-paragraph-margin-bottom);
    padding-inline: var(--cpage2-paragraph-padding-inline);
    padding-block: var(--cpage2-paragraph-padding-block);
}

.cpage2-article a {
    color: var(--cpage2-accent);
}

.cpage2-article a:hover {
    color: var(--cpage2-accent-dark);
}

.cpage2-article blockquote {
    margin: 1.15rem 0;
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--cpage2-accent);
    background: var(--cpage2-surface-2);
    color: var(--cpage2-text);
    border-radius: 0 10px 10px 0;
}

.cpage2-article blockquote p:last-child {
    margin-bottom: 0;
}

.cpage2-article table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--cpage2-border);
    background: var(--cpage2-surface);
    margin: 1rem 0;
}

.cpage2-article thead th {
    background: var(--cpage2-surface-2);
    color: var(--cpage2-heading);
    font-family: var(--cpage2-font-heading);
    font-weight: var(--cpage2-font-weight-heading);
    border-bottom: 1px solid var(--cpage2-border);
}

.cpage2-article th,
.cpage2-article td {
    border: 1px solid var(--cpage2-border);
    padding: 0.58rem 0.72rem;
    color: var(--cpage2-text);
}

/* Prevent horizontal scroll from the viewport-width breakout */
.comm-single-org-page,
.comm-single-nature-page,
.comm-single-outdoor-page,
.comm-single-neighborhood-page,
.comm-single-business-page,
.comm-single-classified-page,
.comm-single-barter-page,
.comm-single-member-page {
    overflow-x: hidden;
}

/* Force member pages out of boxed/theme-width layouts so the two-column profile is fluid */
body.comm-single-member-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.comm-single-member-page #page,
body.comm-single-member-page .site,
body.comm-single-member-page .site-content,
body.comm-single-member-page .site-main,
body.comm-single-member-page .content-area,
body.comm-single-member-page .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.comm-single-member-page .entry-content,
body.comm-single-member-page .entry-content > *,
body.comm-single-member-page .wp-block-post-content,
body.comm-single-member-page .wp-block-post-content > * {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force org pages out of boxed/theme-width layouts so header + content are fluid */
body.comm-single-org-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.comm-single-org-page #page,
body.comm-single-org-page .site,
body.comm-single-org-page .site-content,
body.comm-single-org-page .site-main,
body.comm-single-org-page .content-area,
body.comm-single-org-page .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Block-theme/post-content constraints can default to ~700px content width */
body.comm-single-org-page .entry-content,
body.comm-single-org-page .entry-content > *,
body.comm-single-org-page .wp-block-post-content,
body.comm-single-org-page .wp-block-post-content > * {
    width: 100% !important;
    max-width: 100% !important;
}

/* Same full-width treatment for business single pages (mirrors the event-page override) */
body.comm-single-business-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.comm-single-business-page #page,
body.comm-single-business-page .site,
body.comm-single-business-page .site-content,
body.comm-single-business-page .site-main,
body.comm-single-business-page .content-area,
body.comm-single-business-page .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.comm-single-business-page .entry-content,
body.comm-single-business-page .entry-content > *,
body.comm-single-business-page .wp-block-post-content,
body.comm-single-business-page .wp-block-post-content > * {
    width: 100% !important;
    max-width: 100% !important;
}

/* ─── Theme / plugin featured-image override for community single pages ───── *
 * The Astra theme and UAGB block plugin inject a global rule that forces      *
 * `img.attachment-large.size-large.wp-post-image` (and related thumbnail      *
 * selectors) into a rigid 1:1 square with no explicit object-fit value.       *
 * On community single-page templates the .cpage2-feat-image container         *
 * already controls sizing (4:3, object-fit:contain).  These higher-           *
 * specificity scoped rules restore the correct appearance by overriding the   *
 * forced square aspect-ratio with the correct per-type ratio and ensuring     *
 * object-fit:contain is applied.  Using aspect-ratio: 4/3 (or 3/2 for        *
 * business) instead of "auto" prevents WP's intrinsic height attribute from   *
 * causing the image to render at its natural (potentially 1500 px tall)       *
 * dimensions.                                                                 */
body.comm-single-org-page img.attachment-large.size-large.wp-post-image,
body.comm-single-nature-page img.attachment-large.size-large.wp-post-image,
body.comm-single-neighborhood-page img.attachment-large.size-large.wp-post-image {
    aspect-ratio: 4/3;
    object-fit: contain;
    height: auto;
    object-position: center;
}

body.comm-single-business-page img.attachment-large.size-large.wp-post-image {
    aspect-ratio: 3/2;
    object-fit: contain;
    height: auto;
    object-position: center;
}

/* ─── Per-type accent colours ───────────────────────────────────────────────── */

/* ── Classified: warm orange-rust accent ── */
.comm-single-classified-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.comm-single-classified-page #page,
.comm-single-classified-page .site,
.comm-single-classified-page .site-content,
.comm-single-classified-page .site-main,
.comm-single-classified-page .content-area,
.comm-single-classified-page .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.comm-single-classified-page .entry-content,
.comm-single-classified-page .entry-content > *,
.comm-single-classified-page .wp-block-post-content,
.comm-single-classified-page .wp-block-post-content > * {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.comm-single-classified-page img.attachment-large.size-large.wp-post-image {
    aspect-ratio: auto;
    object-fit: contain;
    height: auto;
    object-position: center;
}

.comm-single-classified-page .cpage2-article {
    --cpage2-accent:      #c1440e;
    --cpage2-accent-dark: #8b3109;
    --cpage2-hero-from:   #1c0a04;
    --cpage2-hero-mid:    #3a1406;
    --cpage2-hero-to:     #5c1f0a;
    --cpage2-scrim-start: rgba(28,10,4,0.2);
    --cpage2-scrim-mid:   rgba(28,10,4,0.55);
    --cpage2-scrim-end:   rgba(28,10,4,0.88);
}

.comm-single-classified-page .cpage2-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, var(--cpage2-hero-from) 0%, var(--cpage2-hero-mid) 50%, var(--cpage2-hero-to) 100%);
}

.comm-single-classified-page .cpage2-hero-scrim {
    background: linear-gradient(
        to bottom,
        var(--cpage2-scrim-start) 0%,
        var(--cpage2-scrim-mid) 40%,
        var(--cpage2-scrim-end) 100%
    );
}

/* Gallery: main image + thumbnail strip */
.cpage2-gallery-main {
    position: relative;
    cursor: zoom-in;
    border-radius: var(--cpage2-radius);
    overflow: hidden;
    box-shadow: var(--cpage2-shadow-lg);
    background: var(--cpage2-surface-2);
    aspect-ratio: 4/3;
    line-height: 0;
}

.cpage2-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.cpage2-gallery-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
}

.cpage2-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.cpage2-gallery-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.18s, transform 0.18s;
    background: var(--cpage2-surface-2);
}

.cpage2-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cpage2-gallery-thumb:hover,
.cpage2-gallery-thumb.is-active {
    border-color: var(--cpage2-accent);
    transform: scale(1.05);
}

/* Price display */
.cpage2-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--cpage2-accent);
    line-height: 1;
    margin: 0 0 4px;
}

.cpage2-price-label {
    font-size: 0.78rem;
    color: var(--cpage2-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Status badge variants used in classified detail list */
.cpage2-status--active,
.cpage2-status--sold,
.cpage2-status--pending,
.cpage2-status--expired {
    border-radius: 4px;
    padding: 2px 8px;
    font-size: .82em;
    font-weight: 700;
}
.cpage2-status--active  { color: #155724; background: #d4edda; }
.cpage2-status--sold    { color: #721c24; background: #f8d7da; }
.cpage2-status--pending { color: #856404; background: #fff3cd; }
.cpage2-status--expired { color: #383d41; background: #e2e3e5; }

/* Contact seller card button row */
.cpage2-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.cpage2-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.cpage2-contact-btn--primary {
    background: var(--cpage2-accent);
    color: #fff;
}

.comm-single-classified-page .cpage2-article .cpage2-contact-actions button.cpage2-contact-btn--primary {
    -webkit-appearance: none;
    appearance: none;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-size: 0.95rem !important;
    line-height: 1.4;
    text-indent: 0;
    text-shadow: none;
    opacity: 1;
    visibility: visible;
}

.cpage2-contact-btn--primary:hover {
    background: var(--cpage2-accent-dark);
    color: #fff;
}

.cpage2-contact-btn--outline {
    background: transparent;
    color: var(--cpage2-accent);
    border: 2px solid var(--cpage2-accent);
}

.cpage2-contact-btn--outline:hover {
    background: var(--cpage2-accent);
    color: #fff;
}

/* Match event-page hero padding treatment for classified singles */
.comm-single-classified-page .cpage2-hero-body {
    padding: 40px 24px 44px;
}

.comm-single-classified-page .cpage2-col-image {
    position: sticky;
    top: calc(var(--comm-sticky-offset, 0px) + 32px);
    align-self: start;
    min-width: 0;
}

@media (max-width: 900px) {
    .comm-single-classified-page .cpage2-col-image {
        position: static;
        top: auto;
    }
}

.comm-single-classified-page .cpage2-col-details {
    align-self: start;
}

.comm-single-org-page .cpage2-article {
    --cpage2-accent:    var(--comm-color-primary, #0e8a6a);
    --cpage2-accent-dark: var(--comm-color-primary-hover, #0a6b52);
    --cpage2-hero-from: var(--comm-color-primary-hover, #0a2922);
    --cpage2-hero-mid:  var(--comm-color-primary, #0c3b2f);
    --cpage2-hero-to:   var(--comm-color-secondary, #0e4d3a);
    --cpage2-surface:   var(--comm-color-bg, #ffffff);
    --cpage2-surface-2: var(--comm-color-surface, #f8f9fb);
    --cpage2-border:    var(--comm-color-border, #e8eaf0);
    --cpage2-text:      var(--comm-color-text, #1a202c);
    --cpage2-text-muted: var(--comm-color-muted, #64748b);
    --cpage2-heading:   var(--comm-color-heading, #1a202c);
    --cpage2-scrim-start: rgba(6,20,16,0.2);
    --cpage2-scrim-mid:   rgba(6,20,16,0.52);
    --cpage2-scrim-end:   rgba(6,20,16,0.84);
}

/* Match event-page hero treatment for organization singles */
.comm-single-org-page .cpage2-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, var(--cpage2-hero-from) 0%, var(--cpage2-hero-mid) 50%, var(--cpage2-hero-to) 100%);
}

.comm-single-org-page .cpage2-hero-scrim {
    background: linear-gradient(
        to bottom,
        var(--cpage2-scrim-start) 0%,
        var(--cpage2-scrim-mid) 40%,
        var(--cpage2-scrim-end) 100%
    );
}

.comm-single-nature-page .cpage2-article {
    --cpage2-accent:    #2d7a2d;
    --cpage2-accent-dark: #1f591f;
    --cpage2-hero-from: #0d1f0d;
    --cpage2-hero-to:   #1a4d1a;
}

/* Pin featured image column on nature single pages (matches classified/business pattern) */
.comm-single-nature-page .cpage2-col-image {
    position: sticky;
    top: calc(var(--comm-sticky-offset, 0px) + 84px);
    align-self: start;
    min-width: 0;
}

.comm-single-nature-page .cpage2-col-details {
    align-self: start;
}

@media (max-width: 900px) {
    .comm-single-nature-page .cpage2-col-image {
        position: static;
        top: auto;
    }
}

.comm-single-neighborhood-page .cpage2-article {
    --cpage2-accent:    #5a4fcf;
    --cpage2-accent-dark: #443baa;
    --cpage2-hero-from: #12103a;
    --cpage2-hero-to:   #2d2870;
}

.comm-single-business-page .cpage2-article {
    --cpage2-accent:      var(--comm-color-primary, var(--wp--preset--color--primary, #c1440e));
    --cpage2-accent-dark: var(--comm-color-primary-hover, #a0360b);
    --cpage2-hero-from:   var(--comm-color-primary-hover, #1a1a2e);
    --cpage2-hero-mid:    var(--comm-color-primary, #16213e);
    --cpage2-hero-to:     var(--comm-color-secondary, #0f3460);
    --cpage2-surface:     var(--comm-color-bg, #ffffff);
    --cpage2-surface-2:   var(--comm-color-surface, #f8f9fb);
    --cpage2-border:      var(--comm-color-border, #e8eaf0);
    --cpage2-text:        var(--comm-color-text, #1a202c);
    --cpage2-text-muted:  var(--comm-color-muted, #64748b);
    --cpage2-heading:     var(--comm-color-heading, #1a202c);
    --cpage2-scrim-start: rgba(10,10,30,0.2);
    --cpage2-scrim-mid:   rgba(10,10,30,0.55);
    --cpage2-scrim-end:   rgba(10,10,30,0.88);
}

/* Make business single pages match the single-event visual treatment */
.comm-single-business-page .cpage2-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, var(--cpage2-hero-from) 0%, var(--cpage2-hero-mid) 50%, var(--cpage2-hero-to) 100%);
}

.comm-single-business-page .cpage2-hero-scrim {
    background: linear-gradient(
        to bottom,
        var(--cpage2-scrim-start) 0%,
        var(--cpage2-scrim-mid) 40%,
        var(--cpage2-scrim-end) 100%
    );
}

.comm-single-business-page .cpage2-hero-body {
    padding: 40px 24px 44px;
}

.comm-single-business-page .cpage2-badge {
    border-radius: 40px;
    font-size: 0.72em;
    letter-spacing: 0.6px;
}

.comm-single-business-page .cpage2-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
    letter-spacing: -0.01em;
    color: var(--cpage2-hero-title, #ffffff) !important;
}

.comm-single-business-page .cpage2-hero-meta {
    font-size: 0.9em;
    color: var(--cpage2-hero-meta, #ffffff);
}

.comm-single-org-page .cpage2-title {
    color: var(--cpage2-hero-title, #ffffff) !important;
}

.comm-single-org-page .cpage2-hero-meta {
    color: var(--cpage2-hero-meta, #ffffff);
}

/* Keep organization info pinned while scrolling on desktop/tablet. */
.comm-single-org-page .cpage2-col-details {
    align-self: start;
    position: sticky;
    top: 20px;
}

/* Wall composer controls should always inherit branded, readable contrast. */
.comm-single-org-page .comm-community-wall .post-form {
    --primary-color: var(--cpage2-accent, #0e8a6a);
}

.comm-single-org-page .comm-community-wall .post-form .button {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary-color) !important;
}

.comm-single-org-page .comm-community-wall .post-form .comm-wall-add-media {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
}

.comm-single-org-page .comm-community-wall .post-form .comm-wall-add-media:hover,
.comm-single-org-page .comm-community-wall .post-form .comm-wall-add-media:focus {
    background: color-mix(in srgb, var(--primary-color) 10%, #ffffff) !important;
}

.comm-single-business-page .cpage2-col-image {
    position: sticky;
    top: 32px;
    align-self: start;
    min-width: 0;
}

.comm-single-business-page .cpage2-col-details {
    align-self: start;
    position: sticky;
    top: 20px;
}

.comm-single-business-page .cpage2-feat-image img {
    aspect-ratio: 3/2;
}

.comm-single-business-page .cpage2-feat-placeholder {
    aspect-ratio: 3/2;
}

@media (max-width: 900px) {
    .comm-single-org-page .cpage2-col-details,
    .comm-single-business-page .cpage2-col-image,
    .comm-single-business-page .cpage2-col-details {
        position: static;
        top: auto;
    }
}

/* ─── Icons ─────────────────────────────────────────────────────────────────── */
.cpage2-icon,
.cpage2-detail__icon svg,
.cpage2-section-heading svg {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.cpage2-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cpage2-hero-from) 0%, var(--cpage2-hero-to) 100%);
}

.cpage2-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 12s ease;
    will-change: transform;
    filter: blur(1px);
}

.cpage2-hero:hover .cpage2-hero-bg {
    transform: scale(1.0);
}

.cpage2-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,30,.85) 0%, rgba(10,10,30,.35) 60%, transparent 100%);
}

/* When a transparent header is active the hero extends behind the nav bar.
   Add a top-to-bottom dark layer so the white nav links remain readable. */
body.has-transparent-header .cpage2-hero-scrim {
    background:
        linear-gradient(to bottom, rgba(0,0,0,.50) 0%, transparent 25%),
        linear-gradient(to top,   rgba(10,10,30,.85) 0%, rgba(10,10,30,.35) 60%, transparent 100%);
}

.cpage2-hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 40px;
    color: #fff;
}

.cpage2-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.cpage2-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
}

.cpage2-badge--primary  { background: rgba(255,255,255,.30); }
.cpage2-badge--success  { background: rgba(40,167,69,.85);  color: #fff; border-color: rgba(40,167,69,.6); }
.cpage2-badge--warning  { background: rgba(255,193,7,.85);  color: #111; border-color: rgba(255,193,7,.6); }
.cpage2-badge--info     { background: rgba(23,162,184,.85); color: #fff; border-color: rgba(23,162,184,.6); }
.cpage2-badge--danger   { background: rgba(220,53,69,.85);  color: #fff; border-color: rgba(220,53,69,.6); }

.cpage2-title {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--cpage2-hero-title, #ffffff) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.cpage2-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--cpage2-hero-meta, rgba(255,255,255,0.88));
    font-size: .95rem;
}

.cpage2-hero-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ─── Entry navigation (prev / all / next) — event-page-parity ─────────────── */
.cpage2-entry-nav {
    background: var(--cpage2-surface, #fff);
    border-bottom: 1px solid var(--cpage2-border, #e8eaf0);
    position: sticky;
    top: var(--comm-sticky-offset, 0px);
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.cpage2-entry-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    min-height: 64px;
    gap: 0;
}

.cpage2-entry-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--cpage2-text);
    transition: background 0.18s, color 0.18s;
    overflow: hidden;
}

.cpage2-entry-nav__item:hover {
    background: var(--cpage2-surface-2, #f8f9fb);
    color: var(--cpage2-accent);
}

.cpage2-entry-nav__item--next {
    justify-content: flex-end;
    text-align: right;
}

.cpage2-entry-nav__item--empty {
    flex: 1;
    pointer-events: none;
}

/* Arrow icon (SVG) in each nav item */
.cpage2-entry-nav__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--cpage2-accent);
}

.cpage2-entry-nav__arrow svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Content column inside each nav item */
.cpage2-entry-nav__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cpage2-entry-nav__label {
    font-size: 0.72em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cpage2-text-muted);
    line-height: 1.2;
}

.cpage2-entry-nav__title {
    font-size: 0.92em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    line-height: 1.3;
    margin-top: 2px;
    color: var(--cpage2-text);
}

.cpage2-entry-nav__item:hover .cpage2-entry-nav__title {
    color: inherit;
}

.cpage2-entry-nav__all {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 0 20px;
    font-size: 0.85em;
    font-weight: 700;
    color: var(--cpage2-accent);
    text-decoration: none;
    border-left: 1px solid var(--cpage2-border, #e8eaf0);
    border-right: 1px solid var(--cpage2-border, #e8eaf0);
    transition: background 0.18s;
    white-space: nowrap;
}

.cpage2-entry-nav__all:hover {
    background: var(--cpage2-surface-2, #f8f9fb);
}

.cpage2-entry-nav .comm-nature-section-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px 16px;
    border-top: 1px solid rgba(31, 93, 80, 0.14);
}

.comm-nature-section-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(31, 93, 80, 0.28);
    border-radius: 999px;
    color: var(--cpage2-text, #1a202c);
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.comm-nature-section-pill:hover,
.comm-nature-section-pill:focus-visible {
    color: #fff;
    background: var(--cpage2-primary, #1f5d50);
    border-color: var(--cpage2-primary, #1f5d50);
}

.cpage2-entry-nav__all svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ─── Section navigation ──────────────────────────────────────────────────── */
.cpage2-section-quicklinks {
    position: sticky;
    top: calc(var(--comm-sticky-offset, 0px) + var(--comm-org-entry-nav-height, 65px));
    z-index: 19;
    width: 100%;
    padding: 12px 24px;
    background: var(--cpage2-surface, #fff);
    border-bottom: 1px solid var(--cpage2-border, #e8eaf0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.cpage2-section-quicklinks__title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cpage2-section-quicklinks__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.cpage2-section-quicklinks__list li {
    margin: 0;
    padding: 0;
}

.cpage2-section-quicklinks__list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid color-mix(in srgb, var(--cpage2-accent) 38%, transparent);
    border-radius: 999px;
    background: var(--cpage2-surface-2, #f8f9fb);
    color: var(--cpage2-text, #1a202c);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.cpage2-section-quicklinks__list a:hover,
.cpage2-section-quicklinks__list a:focus-visible {
    border-color: var(--cpage2-accent);
    background: var(--cpage2-accent);
    color: #fff;
}

.cpage2-section-quicklinks.is-hidden-on-scroll {
    transform: translateY(-100%);
}

.cpage2-article [id^="business-"],
.cpage2-article [id^="org-"] {
    scroll-margin-top: calc(var(--comm-sticky-offset, 0px) + var(--comm-org-entry-nav-height, 65px) + 78px);
}

/* ─── Map address bar + directions (event-page parity) ──────────────────────── */
.cpage2-map-address-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    background: var(--cpage2-surface-2, #f8f9fb);
    border: 1px solid var(--cpage2-border, #e8eaf0);
    border-radius: var(--cpage2-radius, 14px) var(--cpage2-radius, 14px) 0 0;
    font-size: 0.92em;
}

.cpage2-map-address-bar strong {
    font-weight: 700;
    color: var(--cpage2-text);
}

.cpage2-map-address-text {
    color: var(--cpage2-text-muted);
}

.cpage2-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 6px 14px;
    font-size: 0.84em;
    font-weight: 700;
    color: var(--cpage2-accent);
    border: 1px solid var(--cpage2-accent);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
}

.cpage2-directions-btn:hover {
    background: var(--cpage2-accent);
    color: #fff;
}

.cpage2-directions-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ─── Related businesses section ───────────────────────────────────────────── */
.cpage2-related-section {
    background: var(--cpage2-surface-2, #f8f9fb);
    border: 1px solid var(--cpage2-border, #e8eaf0);
    border-radius: var(--cpage2-radius, 14px);
    padding: 28px 24px;
}

.cpage2-related-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cpage2-related-section-title {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpage2-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cpage2-related-card {
    display: flex;
    flex-direction: column;
    background: var(--cpage2-surface, #fff);
    border: 1px solid var(--cpage2-border, #e8eaf0);
    border-radius: var(--cpage2-radius, 14px);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.cpage2-related-card:hover {
    box-shadow: var(--cpage2-shadow, 0 4px 24px rgba(0,0,0,0.08));
    transform: translateY(-2px);
}

.cpage2-related-card__thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--cpage2-surface-2, #f8f9fb);
}

.cpage2-related-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cpage2-related-card__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: var(--cpage2-text-muted);
}

.cpage2-related-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.cpage2-related-card__body h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cpage2-text);
    line-height: 1.3;
}

.cpage2-related-card__body p {
    margin: 0;
    color: var(--cpage2-text-muted);
    line-height: 1.4;
    font-size: 0.88rem;
}

.cpage2-related-card__body a {
    color: inherit;
    text-decoration: none;
}

.cpage2-related-card__body a:hover {
    color: var(--cpage2-accent);
}

.cpage2-related-section-title svg {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    color: var(--cpage2-accent);
}

.cpage2-related-section-title a {
    color: var(--cpage2-accent);
    text-decoration: none;
}

.cpage2-related-section-title a:hover {
    text-decoration: underline;
}

.cpage2-related-entity-meta {
    margin: 0;
    font-size: 0.86em;
    color: var(--cpage2-text-muted);
}

.cpage2-rel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cpage2-rel-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--cpage2-surface, #fff);
    border: 1px solid var(--cpage2-border, #e8eaf0);
    border-radius: var(--cpage2-radius, 14px);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.cpage2-rel-card:hover {
    box-shadow: var(--cpage2-shadow, 0 4px 24px rgba(0,0,0,0.08));
    transform: translateY(-3px);
}

.cpage2-rel-card__img {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--cpage2-surface-2, #f8f9fb);
}

.cpage2-rel-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cpage2-rel-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--cpage2-text-muted);
}

.cpage2-rel-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.cpage2-rel-card__title {
    margin: 0;
    font-size: 0.92em;
    font-weight: 700;
    color: var(--cpage2-text);
    line-height: 1.3;
}

.cpage2-rel-card:hover .cpage2-rel-card__title {
    color: var(--cpage2-accent);
}

.cpage2-rel-card__meta {
    margin: 0;
    font-size: 0.8em;
    color: var(--cpage2-text-muted);
}

@media (max-width: 900px) {
    .cpage2-related-grid,
    .cpage2-rel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cpage2-related-grid,
    .cpage2-rel-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Wrapper ──────────────────────────────────────────────────────────────── */
.cpage2-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ─── Grid (two-column) ────────────────────────────────────────────────────── */
.cpage2-grid {
    display: grid;
    gap: 32px;
}

.cpage2-grid--top {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.cpage2-grid--bottom {
    grid-template-columns: 2fr 1fr;
    align-items: start;
}

/* ─── Featured Image ───────────────────────────────────────────────────────── */
.cpage2-feat-image {
    margin: 0;
    border-radius: var(--cpage2-radius);
    overflow: hidden;
    box-shadow: var(--cpage2-shadow-lg);
    line-height: 0;
    position: relative;
}

.cpage2-feat-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--cpage2-radius);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
    z-index: 1;
    pointer-events: none;
}

.cpage2-feat-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--cpage2-radius);
    object-fit: contain;
    aspect-ratio: 4/3;
    max-height: 560px;
}

.cpage2-feat-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--cpage2-hero-from) 0%, var(--cpage2-hero-to) 100%);
    border-radius: var(--cpage2-radius);
    box-shadow: var(--cpage2-shadow-lg);
    font-size: 4rem;
}

/* ─── Details column ───────────────────────────────────────────────────────── */
.cpage2-col-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.cpage2-card {
    background: var(--cpage2-surface);
    border-radius: var(--cpage2-radius);
    padding: 26px 28px;
    box-shadow: var(--cpage2-shadow);
    border: 1px solid var(--cpage2-border);
    transition: box-shadow 0.25s ease;
}

.cpage2-card:hover {
    box-shadow: var(--cpage2-shadow-lg);
}

.comm-single-neighborhood-page .cpage2-linked-entity-section {
    padding: 28px;
}

.cpage2-linked-entity-card__layout {
    display: grid;
    grid-template-columns: minmax(220px, 36%) 1fr;
    gap: 20px;
    align-items: stretch;
}

.cpage2-linked-entity-card__media {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: var(--cpage2-surface-2);
    border: 1px solid var(--cpage2-border);
    min-height: 210px;
    text-decoration: none;
}

.cpage2-linked-entity-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cpage2-linked-entity-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--cpage2-hero-from), var(--cpage2-hero-to));
    color: #fff;
}

.cpage2-linked-entity-card__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpage2-linked-entity-card__eyebrow {
    margin: 0;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cpage2-text-muted);
    font-weight: 700;
}

.cpage2-linked-entity-card__name {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.cpage2-linked-entity-card__name a {
    color: var(--cpage2-text);
    text-decoration: none;
}

.cpage2-linked-entity-card__name a:hover {
    color: var(--cpage2-accent);
}

.cpage2-linked-entity-card__desc {
    margin: 0;
    color: var(--cpage2-text-muted);
    font-size: 0.96rem;
}

.cpage2-linked-entity-card__meta {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.cpage2-linked-entity-card__meta li {
    margin: 0;
    background: var(--cpage2-surface-2);
    border: 1px solid var(--cpage2-border);
    border-radius: 10px;
    padding: 10px 12px;
}

.cpage2-linked-entity-card__meta strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--cpage2-text-muted);
}

.cpage2-linked-entity-card__meta span,
.cpage2-linked-entity-card__meta a {
    font-size: 0.88rem;
    color: var(--cpage2-text);
    word-break: break-word;
}

.cpage2-linked-entity-card__meta a {
    color: var(--cpage2-accent);
    text-decoration: none;
}

.cpage2-linked-entity-card__meta a:hover {
    text-decoration: underline;
}

.cpage2-linked-entity-card__actions {
    margin-top: auto;
    padding-top: 6px;
}

.cpage2-linked-entity-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--cpage2-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.cpage2-linked-entity-card__btn:hover {
    background: var(--cpage2-accent-dark);
    color: #fff;
}

.cpage2-card__title {
    margin: 0 0 18px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cpage2-text);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cpage2-accent);
}

/* ─── Details List ─────────────────────────────────────────────────────────── */
.cpage2-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cpage2-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cpage2-detail__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(193,68,14,0.10);
    background: color-mix(in srgb, var(--cpage2-accent) 10%, transparent);
    color: var(--cpage2-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpage2-detail__icon svg {
    width: 1.1em;
    height: 1.1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.cpage2-detail__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9em;
    padding-top: 2px;
}

.cpage2-detail__body strong {
    display: block;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--cpage2-text-muted);
    font-weight: 600;
    margin-bottom: 1px;
}

.cpage2-detail__body span,
.cpage2-detail__body a {
    color: var(--cpage2-text);
    line-height: 1.5;
}

.cpage2-detail__body a {
    color: var(--cpage2-accent);
    text-decoration: none;
}

.cpage2-detail__body a:hover {
    text-decoration: underline;
}

/* ─── Content body (the_content() output) ─────────────────────────────────── */
.cpage2-content-body {
    overflow: hidden;
}

.cpage2-content-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cpage2-content-body figure {
    margin: 0;
    max-width: 100%;
}

/* ─── Full-width sections ──────────────────────────────────────────────────── */
.cpage2-full-section {
    background: var(--cpage2-surface);
    border-radius: var(--cpage2-radius);
    padding: 32px 34px;
    box-shadow: var(--cpage2-shadow);
    border: 1px solid var(--cpage2-border);
}

.cpage2-section-heading {
    margin: 0 0 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cpage2-text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--cpage2-accent);
}

/* ─── Photo gallery grid ───────────────────────────────────────────────────── */
.cpage2-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.cpage2-gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cpage2-gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

/* ─── Stats / Info bar ─────────────────────────────────────────────────────── */
.cpage2-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin-bottom: 4px;
}

.cpage2-stat {
    background: var(--cpage2-surface-2);
    border: 1px solid var(--cpage2-border);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
}

.cpage2-stat__num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cpage2-accent);
    line-height: 1;
    display: block;
}

.cpage2-stat__label {
    font-size: .8rem;
    color: var(--cpage2-text-muted);
    margin-top: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ─── Dark highlight section (nature / org / business) ─────────────────────── */
.cpage2-dark-section {
    background: linear-gradient(135deg, var(--cpage2-hero-from) 0%, var(--cpage2-hero-to) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
}

.cpage2-dark-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
}

.cpage2-dark-section .cpage2-section-heading {
    color: #fff;
    border-color: rgba(255,255,255,.35);
}

.cpage2-dark-section .cpage2-section-heading svg {
    opacity: .8;
}

.cpage2-dark-section p,
.cpage2-dark-section li {
    color: rgba(255,255,255,.88);
}

/* ─── Tags / taxonomy pills ─────────────────────────────────────────────────── */
.cpage2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.cpage2-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--cpage2-accent) 12%, transparent);
    color: var(--cpage2-accent);
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid color-mix(in srgb, var(--cpage2-accent) 30%, transparent);
}

/* ─── List items (properties, members, etc.) ───────────────────────────────── */
.cpage2-linked-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cpage2-linked-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--cpage2-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cpage2-linked-list li:last-child {
    border-bottom: none;
}

.cpage2-linked-list a {
    color: var(--cpage2-accent);
    text-decoration: none;
    font-weight: 600;
}

.cpage2-linked-list a:hover {
    text-decoration: underline;
}

.cpage2-linked-list__meta {
    color: var(--cpage2-text-muted);
    font-size: .88rem;
}

/* ─── GSAP animation helpers ───────────────────────────────────────────────── */
/* Keep content visible by default; GSAP uses from() values when available. */
.cpage2-anim-left,
.cpage2-anim-right,
.cpage2-anim-up {
    opacity: 1;
    transform: none;
}

.cpage2-anim-left.is-visible,
.cpage2-anim-right.is-visible,
.cpage2-anim-up.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .55s ease, transform .55s ease;
}

/* Map wrapper */
.cpage2-map-wrap {
    border-radius: var(--cpage2-radius);
    overflow: hidden;
    box-shadow: var(--cpage2-shadow);
    min-height: 320px;
}

.cpage2-map-wrap .comm-map-container {
    margin: 0;
    min-height: 320px;
}

.cpage2-map-wrap .comm-map-main,
.cpage2-map-wrap .leaflet-container {
    min-height: 320px;
    height: 100%;
    width: 100%;
}

/* ─── Review / rating stars ─────────────────────────────────────────────────── */
.cpage2-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: #f59e0b;
}

.cpage2-rating__count {
    font-size: .85rem;
    color: var(--cpage2-text-muted);
}

/* ─── Contact form wrapper ─────────────────────────────────────────────────── */
.cpage2-contact-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure the rendered contact form block is centred */
.cpage2-contact-wrap .comm-business-contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cpage2-entry-nav__inner {
        padding: 0 12px;
        min-height: 52px;
    }

    .cpage2-entry-nav__item {
        padding: 8px 8px;
        gap: 6px;
    }

    .cpage2-entry-nav__item--next {
        justify-content: flex-end;
    }

    .cpage2-entry-nav__item--empty {
        display: none;
    }

    .cpage2-entry-nav__title {
        max-width: 100px;
        font-size: 0.82em;
    }

    .cpage2-entry-nav__label {
        font-size: 0.66em;
    }

    .cpage2-entry-nav__arrow svg {
        width: 20px;
        height: 20px;
    }

    .cpage2-entry-nav__all {
        padding: 0 12px;
        font-size: 0.78em;
    }

    .cpage2-section-quicklinks {
        top: calc(var(--comm-sticky-offset, 0px) + var(--comm-org-entry-nav-height, 53px));
        padding: 10px 12px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .cpage2-section-quicklinks__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
    }

    .cpage2-section-quicklinks__list a {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .cpage2-grid--top,
    .cpage2-grid--bottom {
        grid-template-columns: 1fr;
    }

    .cpage2-hero-body {
        padding: 32px 20px 28px;
    }

    .cpage2-wrap {
        padding: 24px 16px 40px;
        gap: 24px;
    }

    .cpage2-full-section {
        padding: 24px 20px;
    }

    .cpage2-linked-entity-card__layout {
        grid-template-columns: 1fr;
    }

    .cpage2-linked-entity-card__media,
    .cpage2-linked-entity-card__placeholder {
        min-height: 190px;
    }

    .cpage2-linked-entity-card__meta {
        grid-template-columns: 1fr;
    }

    .cpage2-rel-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    /* Limit featured image height on tablet/mobile — switch to landscape ratio
       so the image doesn't dominate the full single-column layout */
    .cpage2-feat-image img {
        aspect-ratio: 16/9;
        object-fit: cover;
        max-height: 340px;
    }

    .cpage2-feat-placeholder {
        aspect-ratio: 16/9;
        max-height: 340px;
    }

    /* Map address bar: stack vertically on narrow screens */
    .cpage2-map-address-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .cpage2-directions-btn {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .cpage2-hero {
        min-height: 240px;
    }

    .cpage2-title {
        font-size: 1.5rem;
    }

    .cpage2-hero-body {
        padding: 24px 16px 24px;
    }

    .cpage2-wrap {
        padding: 18px 12px 36px;
        gap: 18px;
    }

    .cpage2-card {
        padding: 18px 16px;
    }

    .cpage2-full-section {
        padding: 18px 16px;
    }

    .comm-single-neighborhood-page .cpage2-linked-entity-section {
        padding: 18px 16px;
    }

    .cpage2-linked-entity-card__name {
        font-size: 1.2rem;
    }

    .cpage2-dark-section {
        padding: 24px 16px;
    }

    .cpage2-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    /* Further constrain featured image on phones */
    .cpage2-feat-image img {
        aspect-ratio: 16/9;
        object-fit: cover;
        max-height: 260px;
    }

    .cpage2-feat-placeholder {
        aspect-ratio: 16/9;
        max-height: 260px;
    }

    /* Entry nav: hide title text on very small screens, keep arrows */
    .cpage2-entry-nav__title {
        display: none;
    }

    .cpage2-entry-nav__label {
        display: none;
    }
}

/* ─── Member page: teal-indigo accent ────────────────────────────────────────
   Mirrors the full-width override pattern used by org / business / classified. */
body.comm-single-member-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.comm-single-member-page #page,
body.comm-single-member-page .site,
body.comm-single-member-page .site-content,
body.comm-single-member-page .site-main,
body.comm-single-member-page .content-area,
body.comm-single-member-page .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.comm-single-member-page .entry-content,
body.comm-single-member-page .entry-content > *,
body.comm-single-member-page .wp-block-post-content,
body.comm-single-member-page .wp-block-post-content > * {
    width: 100% !important;
    max-width: 100% !important;
}

body.comm-single-member-page img.attachment-large.size-large.wp-post-image {
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center top;
    height: auto;
}

.comm-single-member-page .cpage2-article {
    --cpage2-accent:      #0d9488;
    --cpage2-accent-dark: #0f766e;
    --cpage2-hero-from:   #0f172a;
    --cpage2-hero-mid:    #134e4a;
    --cpage2-hero-to:     #164e63;
    --cpage2-scrim-start: rgba(15,23,42,0.15);
    --cpage2-scrim-mid:   rgba(15,23,42,0.55);
    --cpage2-scrim-end:   rgba(15,23,42,0.90);
}

.comm-single-member-page .cpage2-hero {
    min-height: 55vh;
    background: linear-gradient(135deg, var(--cpage2-hero-from) 0%, var(--cpage2-hero-mid) 50%, var(--cpage2-hero-to) 100%);
}

.comm-single-member-page .cpage2-hero-scrim {
    background: linear-gradient(
        to bottom,
        var(--cpage2-scrim-start) 0%,
        var(--cpage2-scrim-mid) 40%,
        var(--cpage2-scrim-end) 100%
    );
}
