/* Shared layout helpers for all EALD Living pages. */

.eald-dr-serice-name {
    white-space: nowrap;
}

.eald-living-shell,
.eald-individuals-shell,
.eald-executives-shell,
.eald-need-shell,
.eald-root-shell,
.eald-about-shell,
.eald-contact-shell,
.eald-competency-shell,
.eald-being-shell,
.eald-model-shell,
.eald-triangulated-shell,
.eald-pwa-shell,
.eald-culture-shell,
.eald-competencies-shell,
.eald-clients-shell,
.eald-self-awareness-shell,
.eald-unspoken-shell,
.eald-good-enough-shell,
.eald-authentic-shell,
.eald-presentations-shell,
.eald-experiences-shell,
.eald-cccp-shell,
.eald-case-studies-shell,
.eald-case-study-detail-shell,
.yealdi-shell {
    margin-top: -1.5rem;
    margin-bottom: 0;
    background: #ffffff;
    color: #111827;
}

.eald-living-page main.container-fluid.my-4 {
    margin-bottom: 0 !important;
    background: #ffffff;
}

.eald-living-page footer.mt-5 {
    margin-top: 0 !important;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-living-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-individuals-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-executives-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-need-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-root-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-about-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-contact-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-competency-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-being-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-model-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-triangulated-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-pwa-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-culture-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-competencies-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-clients-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-self-awareness-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-unspoken-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-good-enough-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-authentic-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-presentations-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-experiences-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-cccp-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-case-studies-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-case-study-detail-shell,
:is([data-theme="dark"], [data-bs-theme="dark"]) .yealdi-shell {
    background: #0f172a;
    color: #e5e7eb;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-living-page main.container-fluid.my-4 {
    background: #0f172a;
}

.eald-shared-cta-panel {
    margin-top: 1.75rem;
    padding: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1rem;
    background: #f8fafc;
}

/* Scoped to panel + typed elements so page-level `shell h2`/`.main a` rules from route CSS cannot override. */
.eald-shared-cta-panel h2.eald-shared-cta-title {
    margin: 0 0 0.5rem;
    color: #1f2937;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.eald-shared-cta-panel .eald-shared-cta-copy {
    margin: 0 0 1rem;
    color: #475569;
}

.eald-shared-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

a.eald-shared-cta-button {
    display: inline-block;
    min-height: 2.8rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

a.eald-shared-cta-button .eald-dr-serice-name {
    white-space: nowrap;
}

a.eald-shared-cta-button:hover,
a.eald-shared-cta-button:focus {
    transform: translateY(-1px);
}

a.eald-shared-cta-button.eald-shared-cta-button--primary {
    background: #355688;
    border-color: #355688;
    color: #ffffff;
}

a.eald-shared-cta-button.eald-shared-cta-button--secondary {
    background: #e8f1fb;
    border-color: rgba(53, 86, 136, 0.5);
    color: #355688;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-shared-cta-panel {
    border-color: rgba(148, 163, 184, 0.2);
    background: #1f2937;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-shared-cta-panel h2.eald-shared-cta-title {
    color: #f8fafc;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .eald-shared-cta-panel .eald-shared-cta-copy {
    color: #cbd5e1;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) a.eald-shared-cta-button.eald-shared-cta-button--primary {
    background: #4f74ad;
    border-color: #4f74ad;
    color: #ffffff;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) a.eald-shared-cta-button.eald-shared-cta-button--secondary {
    background: rgba(45, 74, 118, 0.62);
    border-color: rgba(148, 181, 220, 0.48);
    color: #dbeafe;
}

@media (max-width: 640px) {
    .eald-shared-cta-actions {
        flex-direction: column;
    }

    a.eald-shared-cta-button {
        width: 100%;
    }
}
