/* SAP BTP SEO cluster pages — extends services-shared story system */

/* Shared reading column so heads, prose, cards, FAQ, and related share one edge.
   Keep min(92%, …) gutters from .sv-wrap — do not force width: 100%. */
.sv-page--cluster .cluster-body > .sv-story > .sv-wrap,
.sv-page--cluster .cluster-breadcrumb.sv-wrap,
.sv-page--cluster .cluster-trust .sv-wrap,
.sv-page--cluster .sv-story-cta .sv-wrap {
    width: min(92%, 960px);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.sv-page--cluster .cluster-trust {
    padding: 8px 0 28px;
}

.cluster-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0 24px;
    font-size: 0.86rem;
    color: #64748b;
}

.cluster-breadcrumb a {
    color: #4d7c1f;
    text-decoration: none;
    font-weight: 600;
}

.cluster-breadcrumb a:hover {
    text-decoration: underline;
}

.cluster-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* Beat body.sv-page-active overflow rules; keep head full column width */
body.sv-page-active .sv-page--cluster .cluster-body .sv-story__head,
.sv-page--cluster .cluster-body .sv-story__head {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* FAQ / related: same left edge and hierarchy as section heads */
.sv-page--cluster #cluster-faq .sv-story__head--center,
.sv-page--cluster .cluster-related .sv-story__head--center {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.sv-page--cluster .cluster-prose,
.cluster-prose {
    max-width: 100%;
    margin: 0 0 28px;
}

.cluster-prose p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

.cluster-prose > :last-child {
    margin-bottom: 0;
}

.cluster-prose__list {
    margin: 4px 0 18px;
    padding-left: 1.25rem;
    color: #475569;
    list-style: disc;
}

.cluster-prose__list li {
    margin: 0 0 8px;
    line-height: 1.65;
    padding-left: 2px;
}

.cluster-prose__list li:last-child {
    margin-bottom: 0;
}

.cluster-quote {
    margin: 8px 0 18px;
    padding: 14px 18px;
    border-left: 3px solid #77a730;
    background: rgba(119, 167, 48, 0.07);
    border-radius: 0 12px 12px 0;
    color: #1f2937;
    font-size: 1.02rem;
    font-style: italic;
    line-height: 1.6;
}

.cluster-divider {
    margin: 8px 0 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cluster-callout {
    margin: 8px 0 20px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f3f9eb;
    border: 1px solid rgba(119, 167, 48, 0.28);
}

.cluster-callout__label {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3f6212;
}

.cluster-callout p {
    margin: 0;
    color: #334155;
    font-size: 0.96rem;
    line-height: 1.7;
}

.cluster-defs {
    display: grid;
    gap: 12px;
    margin: 8px 0 20px;
}

.cluster-defs__item {
    margin: 0;
    padding: 14px 16px;
    border-left: 3px solid #77a730;
    background: rgba(15, 23, 42, 0.025);
    border-radius: 0 12px 12px 0;
}

.cluster-defs__item dt {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #122018;
    line-height: 1.35;
}

.cluster-defs__item dd {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
}

.cluster-flow {
    margin: 12px 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 560px;
}

.cluster-flow__step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.cluster-flow__num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #77a730;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cluster-flow__text {
    color: #122018;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.4;
}

.cluster-flow__arrow {
    list-style: none;
    margin: 0;
    padding: 2px 0 2px 26px;
    color: #77a730;
    font-size: 1rem;
    line-height: 1;
    text-align: left;
}

.sv-page--cluster .sv-story__step {
    margin-bottom: 10px;
}

.sv-page--cluster .cluster-card .cluster-flow,
.sv-page--cluster .cluster-card .cluster-defs {
    max-width: none;
}

.cluster-prose ul,
.cluster-card ul {
    margin: 0 0 14px;
    padding-left: 1.2rem;
    color: #475569;
    list-style: disc;
}

.cluster-prose ol {
    margin: 0 0 14px;
    padding-left: 1.35rem;
    color: #475569;
    list-style: decimal;
}

.cluster-prose li,
.cluster-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.cluster-prose li:last-child,
.cluster-card li:last-child {
    margin-bottom: 0;
}

.cluster-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 14px 0 22px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background: #fff;
}

.cluster-prose > .cluster-table-wrap:first-child,
.cluster-card > .cluster-table-wrap:first-child {
    margin-top: 0;
}

.cluster-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.cluster-table th,
.cluster-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cluster-table th {
    background: #1a3d28;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.cluster-table tbody tr:nth-child(even) td {
    background: rgba(119, 167, 48, 0.06);
}

.cluster-table tbody tr:last-child td {
    border-bottom: none;
}

.cluster-table td:first-child {
    font-weight: 600;
    color: #122018;
    width: 32%;
}

.cluster-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

.cluster-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 22px 22px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.sv-story--cream .cluster-card {
    background: #fff;
}

.cluster-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.cluster-card p {
    margin: 0 0 10px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
}

.cluster-card > :last-child {
    margin-bottom: 0;
}

.sv-page--cluster .sv-faq {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.cluster-related {
    padding-top: 40px;
    padding-bottom: 24px;
}

.cluster-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.cluster-related__card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(119, 167, 48, 0.28);
    background: #f8fcf3;
    color: #3f6212;
    font-weight: 650;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.cluster-related__card:hover {
    background: #eef8e4;
    border-color: #77a730;
    color: #3f6212;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Step chip: keep on one visual line with wrap on narrow screens */
.sv-page--cluster .sv-story__step {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .cluster-card-grid {
        grid-template-columns: 1fr;
    }

    .cluster-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cluster-section {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .sv-page--cluster .cluster-trust .sv-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cluster-breadcrumb {
        font-size: 0.8rem;
        gap: 6px;
    }

    .cluster-related__grid {
        grid-template-columns: 1fr;
    }

    .cluster-card {
        padding: 18px 16px 14px;
    }

    .sv-page--cluster .cluster-trust .sv-hero-stats {
        grid-template-columns: 1fr;
    }

    .cluster-table {
        min-width: 420px;
        font-size: 13px;
    }

    .cluster-table th,
    .cluster-table td {
        padding: 10px 12px;
    }
}
