/* 20260814-content-layout-v1
   Final layout guard for dense editorial cards, homepage proof points,
   and the About workflow timeline. Loaded after the legacy theme cascade. */

/* Blog decision cards: content determines height; nothing is line-clamped. */
body.page-blog #buyer-decision-center .blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 24px !important;
}

body.page-blog #buyer-decision-center .blog-card {
    display: flex !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
}

body.page-blog #buyer-decision-center .blog-card-content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 28px 30px 26px !important;
}

body.page-blog #buyer-decision-center .blog-category {
    margin: 0 0 14px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.09em !important;
}

body.page-blog #buyer-decision-center .blog-card h3 {
    display: block !important;
    margin: 0 0 14px !important;
    overflow: visible !important;
    font-size: clamp(22px, 1.55vw, 28px) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.025em !important;
    text-wrap: balance !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
}

body.page-blog #buyer-decision-center .blog-card p {
    display: block !important;
    margin: 0 0 24px !important;
    overflow: visible !important;
    font-size: 16px !important;
    line-height: 1.62 !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
}

body.page-blog #buyer-decision-center .seo-inline-links {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 16px !important;
    margin: auto 0 0 !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(28, 32, 30, 0.1) !important;
}

body.page-blog #buyer-decision-center .seo-inline-links a {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 0 !important;
    color: #0b6f69 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere !important;
    border-bottom: 1px solid rgba(11, 111, 105, 0.28) !important;
}

/* Homepage proof points: equal rows, but never fixed-height text boxes. */
html.page-home body #about .about-highlights {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
    gap: 16px !important;
}

html.page-home body #about .about-hl {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 16px !important;
    min-width: 0 !important;
    min-height: 132px !important;
    height: auto !important;
    padding: 20px 22px !important;
    overflow: visible !important;
}

html.page-home body #about .about-hl-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
}

html.page-home body #about .about-hl > div:last-child {
    min-width: 0 !important;
}

html.page-home body #about .about-hl h3 {
    display: block !important;
    margin: 0 0 6px !important;
    overflow: visible !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
}

html.page-home body #about .about-hl p {
    display: block !important;
    margin: 0 !important;
    overflow: visible !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    -webkit-line-clamp: unset !important;
}

/* About workflow: compact, consistently aligned alternating steps. */
body.page-about #history .timeline-container {
    width: min(100%, 1120px) !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 12px 0 4px !important;
}

body.page-about #history .timeline-item,
body.page-about #history .timeline-item:nth-child(even) {
    box-sizing: border-box !important;
    width: 50% !important;
    min-height: 0 !important;
    margin-bottom: 30px !important;
}

body.page-about #history .timeline-item {
    padding-right: 42px !important;
}

body.page-about #history .timeline-item:nth-child(even) {
    margin-left: 50% !important;
    padding-right: 0 !important;
    padding-left: 42px !important;
}

body.page-about #history .timeline-year {
    margin: 0 0 10px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

body.page-about #history .timeline-content {
    min-height: 0 !important;
    height: auto !important;
    padding: 22px 24px !important;
    overflow: visible !important;
}

body.page-about #history .timeline-content h3 {
    margin: 0 0 8px !important;
    font-size: 19px !important;
    line-height: 1.3 !important;
}

body.page-about #history .timeline-content p {
    display: block !important;
    margin: 0 !important;
    overflow: visible !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
}

@media (max-width: 1100px) {
    body.page-blog #buyer-decision-center .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    body.page-blog #buyer-decision-center .blog-grid,
    html.page-home body #about .about-highlights {
        grid-template-columns: 1fr !important;
    }

    body.page-blog #buyer-decision-center .blog-card-content {
        padding: 22px 20px 20px !important;
    }

    body.page-blog #buyer-decision-center .blog-card h3 {
        font-size: 22px !important;
    }

    html.page-home body #about .about-hl {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        min-height: 0 !important;
        padding: 18px !important;
    }

    html.page-home body #about .about-hl-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }

    html.page-home body #about .about-hl h3 {
        font-size: 18px !important;
    }

    html.page-home body #about .about-hl p {
        font-size: 14px !important;
    }

    body.page-about #history .timeline-container {
        width: 100% !important;
        padding-left: 0 !important;
    }

    body.page-about #history .timeline-item,
    body.page-about #history .timeline-item:nth-child(even) {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 18px !important;
        padding-right: 0 !important;
        padding-left: 36px !important;
    }

    body.page-about #history .timeline-content {
        padding: 18px !important;
    }
}
