/* Newly added editorial content only. Preserve the established page chapters. */
body.is-catalog-page .lx-catalog-planning__steps {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: planning;
}
body.is-catalog-page .lx-catalog-planning__steps li { padding: 24px 0 0; }
body.is-catalog-page .lx-catalog-planning__steps li::before {
    counter-increment: planning;
    content: counter(planning, decimal-leading-zero);
    display: block;
    margin-bottom: 16px;
    font-size: 12px;
    letter-spacing: .08em;
}
body.is-catalog-page .lx-catalog-planning__steps h3 { font-size: 21px; }
body.is-catalog-page .lx-catalog-planning__steps p { font-size: 16px; }
body.is-company-page .lx-company-mission__heading .lx-company-hybrid {
    grid-column: 2 / -1;
    max-width: 75ch;
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: #c7dbe5;
}
body.is-company-page .lx-company-evidence-note {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 32px;
    border-top: 1px solid #38505e;
    margin-top: 32px;
    padding-top: 24px;
}
body.is-company-page .lx-company-evidence-note .lx-company-detail { margin: 0; font-size: 14px; }
body.is-company-page .lx-company-evidence-note > a { flex-shrink: 0; padding-block: 10px; }
body.is-blog-page main.lx-blog:has(> .lx-resource-related:last-child) { padding-bottom: 0; }
body .lx-guide-library .lx-library-project-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    padding: 24px 0 0;
    margin: 24px 0;
    border-top: 1px solid #38505e;
    list-style: none;
}
body .lx-guide-library .lx-library-project-options li { margin: 0; }
body .lx-guide-library .lx-library-project-options a { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 600; text-decoration: none; }
body .lx-guide-library .lx-library-project-options a::after { content: '→'; flex-shrink: 0; }
body .lx-guide-library .lx-library-project-options a:hover { text-decoration: underline; }
/* Added six-link groups should form two balanced rows, not five plus one. */
body.is-resource-page .lx-resource-related__list:has(> li:nth-child(6):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.is-resource-page .lx-resource-related__list:has(> li:nth-child(6):last-child) li {
    min-height: 0;
    border-bottom: 1px solid var(--lr-line-dark);
}
body.is-resource-page .lx-resource-related__list:has(> li:nth-child(6):last-child) li > span { margin-bottom: 24px; }
/* New comparison pages reuse the production site's editorial heading rhythm. */
body .commercial-page #pros-cons .cp-chapter { gap: 48px; }
body .commercial-page #pros-cons .cp-chapter > div { border-top: 1px solid #bdcdd6; padding-top: 24px; }
body .commercial-page #pros-cons h3 { margin-bottom: 24px; color: #112b3a; font-size: 30px; }
body .commercial-page #pros-cons h4 {
    margin: 28px 0 12px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 650;
    color: #405b69;
}
body .commercial-page #pros-cons ul { padding-left: 20px; }
body .commercial-page #pros-cons li { padding-left: 4px; margin-bottom: 14px; }
@media (min-width: 961px) {
    body .commercial-page :is(#compare, #pros-cons) > .ps-container > .ps-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px 64px;
        max-width: none;
        margin-bottom: 48px;
    }
    body .commercial-page :is(#compare, #pros-cons) > .ps-container > .ps-heading > .ps-eyebrow { grid-column: 1 / -1; margin: 0; }
    body .commercial-page :is(#compare, #pros-cons) > .ps-container > .ps-heading > :is(h2,p) { margin: 0; }
    body .commercial-page :is(#compare, #pros-cons) > .ps-container > .ps-heading h2 { font-size: clamp(32px, 3.3vw, 46px); }
}
@media (max-width: 900px) {
    body.is-catalog-page .lx-catalog-planning__steps { grid-template-columns: 1fr; gap: 24px; }
    body.is-company-page .lx-company-evidence-note { flex-direction: column; gap: 16px; }
}
@media (max-width: 960px) {
    body.is-resource-page .lx-resource-related__list:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (max-width: 640px) {
    body.is-resource-page .lx-resource-related__list:has(> li:nth-child(6):last-child) { grid-template-columns: 1fr; }
}
@media (max-width: 828px) {
    body.is-company-page .lx-company-mission__heading .lx-company-hybrid { grid-column: auto; }
}

/* Keep device-control, video and sales animations beside their explanations on wide screens. */
@media (min-width: 1100px) {
    :is(.lx-family--sites-devices, .lx-family--video-security, .lx-family--payments-transactions) .lx-family-chapter--motion .lx-family-chapter__grid {
        display: grid;
        grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
        align-items: center;
        gap: clamp(32px, 4vw, 64px);
    }
    :is(.lx-family--sites-devices, .lx-family--video-security, .lx-family--payments-transactions) .lx-family-chapter--motion .lx-family-chapter__grid > div { min-width: 0; }
    :is(.lx-family--sites-devices, .lx-family--video-security, .lx-family--payments-transactions) .lx-family-chapter--motion .lx-family-chapter__copy {
        order: 0;
        max-width: none;
        margin: 0;
    }
    body.is-interior.is-product-page :is(.lx-family--sites-devices, .lx-family--video-security, .lx-family--payments-transactions) .lx-family-chapter--motion .lx-family-chapter__copy h2 {
        font-size: clamp(32px, 2.8vw, 44px);
        line-height: 1.12;
    }
    :is(.lx-family--sites-devices, .lx-family--video-security, .lx-family--payments-transactions) .lx-family-chapter--motion .lx-family-checks { display: block; }
    :is(.lx-family--sites-devices, .lx-family--video-security, .lx-family--payments-transactions) .lx-family-chapter--motion .lx-family-checks li { width: 100%; }
}

@media (min-width: 1100px) {
/* Align paired editorial columns at their top edge throughout the site. */
body[class] .lx-family-section-heading--split,
body[class] .lx-family-chapter__grid,
body[class] .lx-family-proof__grid,
body[class] .lx-family-showcase__grid,
body[class] .lx-specialist-chapter__grid,
body[class] .lx-specialist-contexts__heading,
body[class] .lx-company-intro__grid,
body[class] .lx-company-section-heading,
body[class] .lx-company-installations__heading,
body[class] .lx-resource-section-heading,
body[class] .lx-resource-related__heading,
body[class] .lx-kd-specifications__heading,
body[class] .lx-kd-related__heading,
body[class] .lx-section-heading-row,
body[class] .lx-media-chapter__grid,
body[class] .lx-catalog-products__heading,
body[class] .lx-catalog-paths__heading,
body[class] .lx-doc-chapter__grid,
body.is-solution-page .parking-solutions.ps-story .ps-story-chapter__layout,
body :is(.lx-family--sites-devices, .lx-family--video-security, .lx-family--payments-transactions) .lx-family-chapter--motion .lx-family-chapter__grid {
    align-items: start;
}
body[class] .lx-family-section-heading--split > p { margin-top: 0; }
}

@media (min-width: 1100px) {
    /* Put the eyebrow above the shared title/description row. */
    body[class] .lx-family-section-heading--split { row-gap: 0; }
    body[class] .lx-family-section-heading--split > div { display: contents; }
    body[class] .lx-family-section-heading--split > div > .lx-family-eyebrow { grid-column: 1; grid-row: 1; }
    body[class] .lx-family-section-heading--split > div > h2 { grid-column: 1; grid-row: 2; margin-top: 0; }
    body[class] .lx-family-section-heading--split > p { grid-column: 2; grid-row: 2; margin-top: 0; }
}

/* Each specification group starts below its own section divider. */
body.is-catalog-detail .lx-equipment-specifications + .lx-equipment-specifications {
    padding-top: var(--lx-section-space, 88px);
}

/* Related solutions belong in the reading flow, separate from page navigation. */
body.is-solution-page .parking-solutions .ps-related-solutions {
    padding-block: var(--lx-section-space, 88px);
    border-top: 1px solid #dae3e7;
    background: #f4f7f9;
}
body.is-solution-page .parking-solutions .ps-related-solutions h2 { margin: 0 0 32px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; color: #112b3a; }
body.is-solution-page .parking-solutions .ps-related-solutions__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
body.is-solution-page .parking-solutions .ps-related-solutions__links a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-top: 1px solid #ccd9df; color: #103246; font-size: 16px; font-weight: 600; text-decoration: none; }
body.is-solution-page .parking-solutions .ps-related-solutions__links a:hover { color: #00768a; }
body.is-solution-page .parking-solutions .ps-related-solutions__links a:focus-visible { outline: 2px solid #00768a; outline-offset: 4px; }
body.is-solution-page .parking-solutions .ps-related-solutions__links a span { color: #00768a; }
@media (max-width: 900px) { body.is-solution-page .parking-solutions .ps-related-solutions__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.is-solution-page .parking-solutions .ps-related-solutions__links { grid-template-columns: minmax(0, 1fr); } }

/* One consistent directory layout without inherited card dividers. */
body.is-solution-page .parking-solutions.ps-story .pa-directory-group { margin-top: 48px; }
body.is-solution-page .parking-solutions.ps-story .pa-directory-group > h3 { margin: 0 0 24px; padding: 0; border: 0; color: #112b3a; font-size: 24px; line-height: 1.3; }
body.is-solution-page .parking-solutions.ps-story .pa-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin: 0; border: 0; }
body.is-solution-page .parking-solutions.ps-story .pa-directory-grid:has(> article:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.is-solution-page .parking-solutions.ps-story .pa-directory-grid article { padding: 22px 0 0; min-height: 0; border: 0; border-top: 1px solid #cbd8de; background: transparent; }
body.is-solution-page .parking-solutions.ps-story .pa-directory-grid h4 { margin: 0 0 14px; padding: 0; border: 0; }
body.is-solution-page .parking-solutions.ps-story .pa-directory-grid h4 a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; color: #112b3a; font-size: 19px; line-height: 1.4; font-weight: 600; text-decoration: none; }
body.is-solution-page .parking-solutions.ps-story .pa-directory-grid h4 a::after { content: '→'; flex: none; color: #00768c; }
body.is-solution-page .parking-solutions.ps-story .pa-directory-grid h4 a:hover { color: #00768c; }
body.is-solution-page .parking-solutions.ps-story .pa-directory-grid h4 a:focus-visible { outline: 2px solid #00768c; outline-offset: 4px; }
body.is-solution-page .parking-solutions.ps-story .pa-directory-grid p { margin: 0; max-width: 62ch; color: #526e7d; font-size: 16px; line-height: 1.65; }
@media (max-width: 1000px) { body.is-solution-page .parking-solutions.ps-story .pa-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    body.is-solution-page .parking-solutions.ps-story .pa-directory-grid,
    body.is-solution-page .parking-solutions.ps-story .pa-directory-grid:has(> article:nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    body.is-solution-page .parking-solutions.ps-story .pa-directory-group { margin-top: 36px; }
}

/* Number badges size to their label instead of stretching across the card. */
body.is-solution-page .parking-solutions.ps-story .ps-story-detail-contexts__grid .ps-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 36px;
    height: auto;
    padding: 6px 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    line-height: 1.3;
}

/* Give bordered project notes balanced space on every side. */
body.is-solution-page .parking-solutions.ps-story .ps-field-note {
    padding: clamp(22px, 2.2vw, 32px);
}
body.is-solution-page .parking-solutions.ps-story .ps-field-note strong {
    margin: 0;
    line-height: 1.4;
}
body.is-solution-page .parking-solutions.ps-story .ps-field-note span {
    margin: 12px 0 0;
    line-height: 1.6;
}

/* Separate the planning action, examples and supporting resources. */
body.is-solution-page .parking-solutions.ps-story .ps-planning-section .ps-planning-contact {
    margin: 28px 0 32px;
}
body.is-solution-page .parking-solutions.ps-story .ps-planning-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #b5cbd5;
    border-radius: 4px;
    color: #103246;
    text-decoration: none;
    background: #fff;
}
body.is-solution-page .parking-solutions.ps-story .ps-planning-contact a:hover { background: #e8f1f5; }
body.is-solution-page .parking-solutions.ps-story .ps-planning-section .ps-decision-list {
    margin-top: 32px;
    gap: 24px;
}
body.is-solution-page .parking-solutions.ps-story .ps-planning-section .ps-decision-list:has(> article:only-child) {
    grid-template-columns: minmax(0, 1fr);
}
body.is-solution-page .parking-solutions.ps-story .ps-planning-section .ps-decision-list article {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 20px;
    padding: clamp(22px, 2.5vw, 32px);
    background: #fff;
}
body.is-solution-page .parking-solutions.ps-story .ps-planning-section .ps-decision-list h3 { margin: 0 0 12px; }
body.is-solution-page .parking-solutions.ps-story .ps-planning-section .ps-decision-list p { margin: 0; max-width: 85ch; }
body.is-solution-page .parking-solutions.ps-story .ps-planning-section .ps-decision-list + .ps-planning-links {
    margin: 28px 0 0;
    gap: 12px 32px;
}
body.is-solution-page .parking-solutions.ps-story .ps-planning-section .ps-decision-list + .ps-planning-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    text-decoration: none;
}
@media (max-width: 640px) {
    body.is-solution-page .parking-solutions.ps-story .ps-planning-section .ps-decision-list article { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Keep related-card links on a common baseline within each grid row. */
body.is-solution-page .parking-solutions.ps-story .ps-story-related__grid > article {
    display: flex;
    flex-direction: column;
}
body.is-solution-page .parking-solutions.ps-story .ps-story-related__grid > article > a {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 22px;
}
body.is-solution-page .parking-solutions.ps-story .ps-story-related__grid > article > a:has(> span[aria-hidden="true"])::after {
    content: none;
}

/* Close every resource workflow card, including the desktop row. */
body.is-resource-page .lx-resource-journey__steps > li {
    border-bottom: 1px solid var(--lr-line-dark);
}

.lexoh-footer-brand img {
    margin-left: -20px;
}

/* Keep catalog category labels readable on the pale hover background. */
body.is-catalog-page .lx-catalog-index button.category-filter:hover,
body.is-catalog-page .lx-catalog-index button.category-filter.active:hover {
    color: #000 !important;
    background: #e1eef2 !important;
}
