/* Optional community compositions. Palette, spacing and type come from theme.json.
   Newpark's original class names remain aliases for existing saved content. */
:is(.is-style-lift-floor-plan,.np-plan-row) {
    padding: var(--wp--custom--components--plan-padding);
    margin: var(--wp--custom--components--plan-margin);
    gap: var(--wp--custom--components--plan-gap);
    align-items: center;
    background: var(--wp--preset--color--sand);
    border: 1px solid var(--wp--custom--border--line);
    border-radius: var(--wp--custom--components--plan-radius);
}
:is(.is-style-lift-floor-plan,.np-plan-row) > .wp-block-column { min-width: 0; }
:is(.is-style-lift-floor-plan,.np-plan-row) h3 { font-size: var(--wp--custom--components--plan-title); margin: 0 0 1.5rem; }
:is(.is-style-lift-floor-plan,.np-plan-row) p { font-size: var(--wp--custom--components--plan-body); line-height: 1.65; }
:is(.is-style-lift-plan-facts,.np-plan-facts) {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 15px;
    border-block: 1px solid var(--wp--custom--border--line);
    padding-block: 18px;
    margin-block-end: 1.5rem;
}
:is(.is-style-lift-plan-facts,.np-plan-facts) p {
    font-size: var(--wp--custom--components--plan-fact);
    margin: 0;
    line-height: 1.6;
    color: var(--wp--preset--color--muted);
}
:is(.is-style-lift-plan-facts,.np-plan-facts) strong { font-size: var(--wp--custom--components--plan-fact-value); color: var(--wp--preset--color--forest); }
:is(.is-style-lift-floor-plan,.np-plan-row) figure { margin: 0; padding: 1rem; background: var(--wp--preset--color--white); border-radius: 3px; }
:is(.is-style-lift-floor-plan,.np-plan-row) figure img { display: block; width: 100%; height: var(--wp--custom--components--plan-image-height); object-fit: contain; }
:is(.is-style-lift-floor-plan,.np-plan-row) .wp-block-buttons { margin-block-start: 1.5rem; }
:is(.is-style-lift-floor-plan,.np-plan-row) .wp-block-button__link { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--white); }

/* Repeated cards share structure and align their last paragraph/action. */
.is-style-lift-card-grid,.is-style-lift-resource-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: var(--wp--custom--components--grid-gap);
}
:where(.is-style-lift-card-grid,.is-style-lift-resource-grid) > .wp-block-group { display: flex; flex-direction: column; min-width: 0; margin: 0; }
:where(.is-style-lift-card-grid,.is-style-lift-resource-grid) > .wp-block-group > :last-child { margin-block-start: auto; padding-block-start: 1rem; }
.is-style-lift-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--wp--custom--components--grid-gap); }
.is-style-lift-gallery > figure { margin: 0; }
.is-style-lift-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* A split hero is optional; the original full-photo hero remains available. */
.is-style-lift-split-hero { display: grid; grid-template-columns: 44% 56%; background: var(--wp--preset--color--forest); color: var(--wp--preset--color--paper); }
.lift-split-copy { padding: clamp(2rem,5vw,4rem); align-self: center; }
.lift-split-copy h1 { color: inherit; }
.is-style-lift-split-hero > figure { margin: 0; height: 100%; }
.is-style-lift-split-hero > figure img { display: block; width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.lift-logo-panel { display: inline-block; padding: 1rem 1.4rem; background: var(--wp--custom--components--logo-panel); border-radius: 3px; }
.lift-logo-panel img { display: block; height: auto; }

/* Match the native Columns stacking breakpoint. */
@media (max-width:781px) {
    :is(.is-style-lift-floor-plan,.np-plan-row) { padding: 1.5rem; gap: 1.5rem; }
    :is(.is-style-lift-floor-plan,.np-plan-row) h3 { font-size: 2rem; }
    :is(.is-style-lift-floor-plan,.np-plan-row) figure img { height: auto; max-height: 560px; }
    :is(.is-style-lift-plan-facts,.np-plan-facts) { gap: 10px; }
    .is-style-lift-card-grid,.is-style-lift-resource-grid,.is-style-lift-gallery { grid-template-columns: 1fr; }
    .is-style-lift-split-hero { grid-template-columns: 1fr; }
    .is-style-lift-split-hero > figure { order: -1; height: 300px; }
    .is-style-lift-split-hero > figure img { min-height: 0; }
}

/* Opt-in compact compositions. Community identity stays in child themes. */
.wp-block-group.is-style-lift-compact-intro { padding-block: 28px; }
.wp-block-group.is-style-lift-compact-intro > p { margin: 0 0 12px; font-size: 10px; letter-spacing: .125rem; }
.wp-block-group.is-style-lift-compact-intro h1 { margin: 0; line-height: 1.12; letter-spacing: -.03em; }
.wp-block-group.is-style-lift-compact-content { padding-block: 28px 32px; }
.wp-block-group.is-style-lift-compact-content > :first-child { margin-top: 0; }
.wp-block-group.is-style-lift-compact-content :where(h2) { line-height: 1.2; margin-bottom: 14px; }
.wp-block-group.is-style-lift-compact-content :where(h3) { line-height: 1.25; margin-bottom: 10px; }
.wp-block-group.is-style-lift-compact-content :where(p,li) { line-height: 1.6; }
.wp-block-group.is-style-lift-compact-content > figure:first-of-type img { width: 100%; height: 250px; object-fit: cover; }
.is-style-lift-hero.lift-compact-hero { min-height: var(--lift-compact-hero-height,490px); padding-block: 44px; align-items: center; }
.is-style-lift-hero.lift-compact-hero::after { background: linear-gradient(90deg,rgba(15,29,30,.78) 0%,rgba(15,29,30,.48) 36%,rgba(15,29,30,0) 72%); }
.wp-block-group.is-style-lift-compact-footer { padding-block: 24px; }
.wp-block-group.is-style-lift-compact-footer .wp-block-site-logo { margin-bottom: 4px; }
.wp-block-group.is-style-lift-compact-footer .wp-block-site-logo img { width: 180px; height: auto; }
@media(max-width:781px) {
 .wp-block-group.is-style-lift-compact-intro { padding-block: 24px; }
 .wp-block-group.is-style-lift-compact-content { padding-block: 24px 28px; }
 .wp-block-group.is-style-lift-compact-content > figure:first-of-type img { height: 210px; }
 .is-style-lift-hero.lift-compact-hero { min-height: var(--lift-compact-hero-mobile-height,430px); padding-block: 38px; }
 .is-style-lift-hero.lift-compact-hero::after { background: linear-gradient(90deg,rgba(15,29,30,.82),rgba(15,29,30,.4)); }
}

/* Three-column community footer; branding and palette remain site-specific. */
.lift-footer-columns { gap: clamp(24px,5vw,72px); align-items: flex-start; margin-block: 0 28px; }
.lift-footer-columns > .wp-block-column { min-width: 0; }
.lift-footer-columns > .wp-block-column:first-child { flex-grow: 1.4; }
.lift-footer-columns h3 { font-family: var(--wp--preset--font-family--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.lift-footer-columns p { font-size: 14px; line-height: 1.9; margin: 0; }
.lift-footer-columns a { text-decoration: none; }
.lift-footer-columns a:hover { text-decoration: underline; }
.lift-footer-columns figure { margin-top: 0; }
.lift-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 16px; border-top: 1px solid currentColor; }
.lift-footer-bottom p { font-size: 12px; line-height: 1.6; margin: 0; }
@media(max-width:781px) {
 .lift-footer-columns { gap: 28px; }
 .lift-footer-columns > .wp-block-column { flex-basis: 100%; }
 .lift-footer-bottom { flex-direction: column; gap: 8px; }
}

/* Buyer overview: quick comparison cards, detail highlights and a map/copy row. */
.is-style-lift-summary-grid,.is-style-lift-detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-block: 24px; }
.is-style-lift-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.lift-summary-card { min-width: 0; margin: 0; padding: 22px; background: var(--wp--preset--color--sand); border: 1px solid var(--wp--custom--border--line); display: flex; flex-direction: column; }
.lift-summary-card h3 { font-size: 24px; margin: 0 0 12px; }
.lift-summary-card p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.lift-summary-card > p:last-child { margin-bottom: 0; }
.lift-summary-card > p:last-child:has(a) { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 13px; }
.lift-location-overview { align-items: center; gap: 28px; margin-block: 24px; }
.lift-location-overview > .wp-block-column { min-width: 0; }
.lift-location-overview > .wp-block-column:first-child { flex-grow: 1.6; }
.lift-location-overview h2 { margin-top: 0; }
.lift-location-map { display: block; width: 100%; height: 340px; border: 0; background: var(--wp--preset--color--sand); }
@media(max-width:781px) {
 .is-style-lift-summary-grid,.is-style-lift-detail-grid { grid-template-columns: 1fr; gap: 16px; }
 .lift-location-map { height: 280px; }
 .lift-location-overview { gap: 20px; }
}

.lift-location-overview figure { margin: 0; }
.lift-location-overview figure img { display: block; width: 100%; height: 300px; object-fit: cover; }
@media(max-width:781px) { .lift-location-overview figure img { height: 230px; } }

/* Photo collections and practical guide sections, opt-in and editor-friendly. */
.is-style-lift-photo-collection { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-block: 20px 0; }
.lift-gallery-tile { min-width: 0; margin: 0; }
.lift-gallery-tile figure { margin: 0; }
.lift-gallery-tile a { display: block; }
.lift-gallery-tile img { display: block; width: 100%; height: 220px; object-fit: cover; }
.lift-gallery-tile p { font-size: 13px; line-height: 1.5; margin: 10px 0 0; }
.lift-explore-section { margin: 0; padding-block: 28px; border-bottom: 1px solid var(--wp--custom--border--line); scroll-margin-top: 24px; }
.lift-explore-section > h2 { margin-top: 0; }
.lift-explore-section > p { margin-bottom: 18px; }
.lift-explore-links { padding: 14px 18px; background: var(--wp--preset--color--sand); }
.lift-explore-links p { margin: 0; font-size: 14px; line-height: 1.8; }
.lift-guide-feature { align-items: flex-start; gap: 28px; margin-block: 0; }
.lift-guide-feature > .wp-block-column { min-width: 0; }
.lift-guide-feature > .wp-block-column:first-child { flex-basis: 36%; flex-grow: 0; }
.lift-guide-feature figure { margin: 0; }
.lift-guide-feature img { display: block; width: 100%; height: 280px; object-fit: cover; }
.lift-guide-feature h2 { margin-top: 0; }
.lift-guide-feature li { margin-bottom: 10px; }
.lift-explore-callout { padding: 24px; margin-top: 28px; background: var(--wp--preset--color--sand); }
.lift-explore-callout h2 { margin-top: 0; }
@media(max-width:781px) {
 .is-style-lift-photo-collection { grid-template-columns: 1fr; gap: 24px; }
 .lift-gallery-tile img { height: 240px; }
 .lift-guide-feature { gap: 20px; }
 .lift-guide-feature > .wp-block-column:first-child { flex-basis: auto; }
 .lift-guide-feature img { height: 230px; }
 .lift-explore-section { padding-block: 24px; }
}

/* Practical homeowner directories and source-linked editorial previews. */
.is-style-lift-contact-directory { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-block: 20px; }
.lift-contact-card { min-width: 0; padding: 20px; background: var(--wp--preset--color--sand); }
.lift-contact-card h3 { font-size: 22px; margin: 0 0 12px; }
.lift-contact-card p { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.is-style-lift-status-note { padding: 16px 20px; margin-block: 20px; border-left: 3px solid var(--wp--preset--color--gold); background: var(--wp--preset--color--sand); }
.is-style-lift-status-note p { margin: 0; font-size: 14px; line-height: 1.6; }
.lift-resource-section { margin: 12px 0; scroll-margin-top: 24px; }
.lift-resource-section > details { padding: 18px 20px; border: 1px solid var(--wp--custom--border--line); background: var(--wp--preset--color--sand); }
.lift-resource-section > details > summary { font-size: 17px; }
.lift-resource-section details[open] > summary { margin-bottom: 14px; }
.is-style-lift-news-feed { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-block: 24px; }
.lift-news-card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--wp--custom--border--line); background: var(--wp--preset--color--sand); }
.lift-news-featured { grid-column: 1 / -1; }
.lift-news-copy { margin: 0; display: flex; flex: 1; flex-direction: column; }
.lift-news-copy > p:first-child { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.lift-news-copy h2 { font-size: 26px; line-height: 1.2; margin: 0 0 14px; }
.lift-news-featured h2 { font-size: 32px; }
.lift-news-copy p { font-size: 15px; line-height: 1.65; margin: 0 0 14px; }
.lift-news-copy > p:last-child { margin-top: auto; font-size: 13px; font-weight: 600; }
.lift-news-media { margin: 8px 0 0; }
.lift-news-media figure { margin: 0; }
.lift-news-media img { display: block; width: 100%; height: 210px; object-fit: contain; background: var(--wp--preset--color--white); }
.lift-news-media p { font-size: 11px; line-height: 1.5; margin: 8px 0 0; }
@media(max-width:781px) {
 .is-style-lift-contact-directory,.is-style-lift-news-feed { grid-template-columns: 1fr; gap: 18px; }
 .lift-news-featured h2 { font-size: 27px; }
 .lift-news-card { padding: 20px; }
}

/* Finish an odd editorial row without leaving an empty half-column. */
@media(min-width:782px) {
 .is-style-lift-news-feed > .lift-news-card:last-child:nth-child(even) { grid-column: 1 / -1; }
 .is-style-lift-news-feed > .lift-news-card:last-child:nth-child(even):has(.lift-news-media) { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
}
/* Native mobile navigation keeps comfortable touch targets and keyboard focus. */
@media(max-width:1100px) {
 .site-header .is-menu-open .wp-block-navigation-item__content { min-height: 44px; display: flex; align-items: center; }
 .site-header .wp-block-navigation__responsive-container-open,
 .site-header .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
}
