/* Facing informational pages (Phase 1 menu reorg slice). Aligns spacing rhythm with EALD Living marketing pages. */

.facing-shell {
    margin-top: -1.5rem;
    margin-bottom: 0;
    background: #ffffff;
    color: #111827;
}

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

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-shell {
    background: #0f172a;
    color: #e5e7eb;
}

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

.facing-inner {
    max-width: min(920px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1rem 3rem;
}

.facing-hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.facing-hero-lead p {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0.85rem;
}

.facing-visual-slot {
    margin: 1.75rem 0;
}

.facing-visual-placeholder-inner {
    min-height: 200px;
    border-radius: 0.85rem;
    border: 1px dashed rgba(148, 163, 184, 0.65);
    background: rgba(248, 250, 252, 0.85);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-visual-placeholder-inner {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.55);
}

.facing-section {
    margin-top: 2rem;
}

.facing-section h2 {
    font-size: 1.35rem;
    font-weight: 650;
    margin-bottom: 0.75rem;
}

.facing-section h3 {
    font-size: 1.05rem;
    font-weight: 650;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.facing-section p,
.facing-section li {
    line-height: 1.65;
}

.facing-section ul {
    padding-left: 1.25rem;
}

.facing-link-list {
    list-style: none;
    padding-left: 0;
}

.facing-link-list li {
    margin-bottom: 0.45rem;
}

.facing-cta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-cta-strip {
    border-top-color: rgba(148, 163, 184, 0.28);
}

.facing-choice-grid > [class*="col-"] {
    display: flex;
}

.facing-choice-thumb-wrap {
    flex-shrink: 0;
    width: 100%;
    height: 7.75rem;
    border-radius: 0.55rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: rgba(148, 163, 184, 0.12);
}

.facing-choice-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-choice-thumb-wrap {
    background: rgba(30, 41, 59, 0.45);
}

.facing-choice-grid .facing-choice-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.1rem 1.15rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    text-decoration: none;
    color: inherit;
    background: rgba(248, 250, 252, 0.65);
    transform: translateY(0);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.facing-choice-card:hover,
.facing-choice-card:focus-visible {
    border-color: rgba(56, 2, 59, 0.35);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .facing-choice-grid .facing-choice-card {
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .facing-choice-card:hover,
    .facing-choice-card:focus-visible {
        transform: none;
    }
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-choice-grid .facing-choice-card {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(148, 163, 184, 0.28);
}

.facing-choice-card .facing-choice-cta {
    display: inline-block;
    margin-top: auto;
    padding-top: 0.65rem;
    font-weight: 600;
    color: #38023b;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-choice-card .facing-choice-cta {
    color: #e9d5ff;
}

/* Breakthrough-projects-style facing detail pages: placeholder inside floated image wrap */
.facing-btp-visual-slot .facing-btp-visual-placeholder {
    width: 100%;
    min-height: clamp(180px, 28vw, 260px);
    border-radius: 2px;
    border: 1px dashed rgba(148, 163, 184, 0.65);
    background: rgba(248, 250, 252, 0.92);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-btp-visual-slot .facing-btp-visual-placeholder {
    border-color: rgba(148, 163, 184, 0.38);
    background: rgba(30, 41, 59, 0.55);
}

/* Overview pages may use facing-visual-placeholder-inner inside BTP float wrap */
.facing-btp-visual-slot .facing-visual-placeholder-inner {
    width: 100%;
    min-height: clamp(180px, 28vw, 260px);
    border-radius: 2px;
    border: 1px dashed rgba(148, 163, 184, 0.65);
    background: rgba(248, 250, 252, 0.92);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-btp-visual-slot .facing-visual-placeholder-inner {
    border-color: rgba(148, 163, 184, 0.38);
    background: rgba(30, 41, 59, 0.55);
}

.facing-btp-visual-slot .eald-btp-image {
    border-radius: 2px;
}

/* Compact related-work list below the shared CTA panel (Facing BTP-style detail pages) */
.facing-related-work-compact {
    margin-top: 1rem;
    padding: 0.5rem 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-related-work-compact {
    border-top-color: rgba(148, 163, 184, 0.22);
}

.facing-related-work-heading {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
    font-weight: 650;
    color: #1f2937;
    letter-spacing: 0.01em;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-related-work-heading {
    color: #f1f5f9;
}

.facing-related-work-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.facing-related-work-list li {
    display: grid;
    grid-template-columns: minmax(0, 10.5rem) 1fr;
    gap: 0.2rem 0.65rem;
    align-items: baseline;
    padding: 0.28rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.82rem;
    line-height: 1.42;
}

.facing-related-work-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.facing-related-work-list a {
    font-weight: 600;
    color: #355688;
    text-decoration: none;
}

.facing-related-work-list a:hover,
.facing-related-work-list a:focus {
    text-decoration: underline;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-related-work-list a {
    color: #93c5fd;
}

.facing-related-work-note {
    color: #64748b;
    margin: 0;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-related-work-note {
    color: #94a3b8;
}

@media (max-width: 540px) {
    .facing-related-work-list li {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

/* Facing overview: choice grid inside Breakthrough-style body */
.facing-btp-facing-pick-section {
    clear: both;
    margin-top: 1.65rem;
}

.facing-btp-facing-pick-title {
    font-size: clamp(1.12rem, 2vw, 1.32rem);
    font-weight: 650;
    margin-bottom: 0.35rem;
    color: #1f2937;
}

.facing-btp-facing-pick-title .eald-hero-title-line {
    display: block;
}

.facing-btp-facing-pick-title .eald-hero-live-word {
    color: #13b884;
    font-style: italic;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-btp-facing-pick-title {
    color: #f8fafc;
}

/* Phase 3: Repeating Patterns video core layout */
.facing-rp-breadcrumb {
    margin-bottom: 1rem;
}

.facing-rp-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
}

.facing-rp-breadcrumb-item a {
    color: #355688;
    text-decoration: none;
}

.facing-rp-breadcrumb-item a:hover,
.facing-rp-breadcrumb-item a:focus-visible {
    text-decoration: underline;
}

.facing-rp-breadcrumb-item--current {
    color: #38023b;
    font-weight: 650;
}

.facing-rp-breadcrumb-sep {
    color: #94a3b8;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-breadcrumb-list {
    color: #94a3b8;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-breadcrumb-item a {
    color: #93c5fd;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-breadcrumb-item--current {
    color: #e9d5ff;
}

.facing-rp-video-block {
    margin: 1.25rem 0 1.75rem;
}

.facing-rp-video-quote {
    margin: 0 0 0.45rem;
    padding: 0;
    border: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 650;
    line-height: 1.45;
    color: #1f2937;
}

.facing-rp-video-meta {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: #64748b;
}

.facing-rp-video-wrap {
    max-width: 100%;
}

.facing-rp-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.35rem;
    overflow: hidden;
    background: #e2e8f0;
}

.facing-rp-poster-slot {
    width: 100%;
    height: 100%;
}

.facing-rp-poster-image,
.facing-rp-video-player video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facing-rp-video-caption {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-video-quote {
    color: #f1f5f9;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-video-meta,
:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-video-caption {
    color: #94a3b8;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-video-player {
    background: #1e293b;
}

.facing-rp-copy-related-flow {
    margin-top: 0.35rem;
    isolation: isolate;
}

.facing-rp-copy-related-flow::after {
    content: "";
    display: table;
    clear: both;
}

.facing-rp-related-column {
    float: right;
    width: min(42%, 22rem);
    margin: 0 0 1rem clamp(1rem, 3vw, 2rem);
    position: relative;
    z-index: 2;
}

.facing-rp-copy-column {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.facing-rp-related-column .facing-related-work-compact {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.facing-rp-related-panel {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1rem;
    padding: 2rem 1.05rem 0.85rem;
    color: #475569;
    box-shadow: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.facing-rp-related-panel .facing-related-work-heading {
    color: #1f2937;
    font-size: 1.05rem;
    margin: 0 0 0.55rem;
}

.facing-rp-related-panel .facing-related-work-list li {
    border-bottom-color: rgba(148, 163, 184, 0.28);
    border-radius: 0.35rem;
    margin-inline: -0.35rem;
    padding-inline: 0.35rem;
    transition: background-color 0.18s ease;
}

.facing-rp-related-panel .facing-related-work-list a {
    color: #355688;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: rgba(53, 86, 136, 0.35);
    text-underline-offset: 0.14em;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.facing-rp-related-panel .facing-related-work-note {
    color: #475569;
}

@media (any-hover: hover) {
    .facing-rp-related-panel:hover {
        border-color: rgba(148, 163, 184, 0.38);
        transform: translateY(-1px);
    }

    .facing-rp-related-panel .facing-related-work-list li:hover {
        background: rgba(53, 86, 136, 0.06);
    }

    .facing-rp-related-panel .facing-related-work-list a:hover,
    .facing-rp-related-panel .facing-related-work-list a:focus-visible {
        color: #1f2937;
        text-decoration-color: rgba(53, 86, 136, 0.55);
    }
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-related-panel {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.28);
    color: #94a3b8;
    box-shadow: none;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-related-panel .facing-related-work-heading {
    color: #f8fafc;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-related-panel .facing-related-work-list a {
    color: #93c5fd;
    text-decoration-color: rgba(147, 197, 253, 0.45);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-related-panel .facing-related-work-note {
    color: #cbd5e1;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-related-panel .facing-related-work-list li {
    border-bottom-color: rgba(148, 163, 184, 0.28);
}

@media (any-hover: hover) {
    :is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-related-panel:hover {
        border-color: rgba(148, 163, 184, 0.38);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.32);
        transform: translateY(-1px);
    }

    :is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-related-panel .facing-related-work-list li:hover {
        background: rgba(148, 163, 184, 0.1);
    }

    :is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-related-panel .facing-related-work-list a:hover,
    :is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-related-panel .facing-related-work-list a:focus-visible {
        color: #e2e8f0;
        text-decoration-color: rgba(226, 232, 240, 0.65);
    }
}

.facing-rp-video-frame {
    position: relative;
    width: 100%;
    height: 100%;
}

.facing-rp-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.facing-rp-play-overlay:focus-visible {
    outline: none;
}

.facing-rp-play-overlay:focus-visible .facing-rp-play-badge {
    outline: 2px solid #355688;
    outline-offset: 2px;
}

.facing-rp-play-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #38023b;
    font-size: 1.45rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
}

.facing-rp-video-shell--playing .facing-rp-play-overlay {
    opacity: 0;
    pointer-events: none;
}

.facing-rp-response-section {
    margin-top: clamp(2rem, 4vw, 2.75rem);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.facing-rp-response-heading {
    margin: 0 0 0.55rem;
    font-family: Newsreader, Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
}

.facing-rp-response-lead {
    margin: 0 0 1.35rem;
    max-width: 42rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
}

.facing-rp-response-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.facing-rp-response-card-grid--field-notes-row {
    margin-top: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.facing-rp-response-card--field-notes {
    border-color: rgba(53, 86, 136, 0.35);
}

.facing-rp-response-card-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}


.facing-rp-response-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.15rem 1.1rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.facing-rp-response-card--primary {
    border-color: rgba(53, 86, 136, 0.5);
    box-shadow: none;
}

.facing-rp-response-card-title {
    margin: 0 0 0.55rem;
    font-family: Newsreader, Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
}

.facing-rp-response-card-body {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
}

.facing-rp-response-card-body p:last-child {
    margin-bottom: 0;
}

.facing-rp-response-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 650;
    text-align: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.facing-rp-response-card-cta--primary {
    background: #355688;
    border: 1px solid #355688;
    color: #ffffff;
}

.facing-rp-response-card-cta--primary:hover,
.facing-rp-response-card-cta--primary:focus-visible {
    background: #355688;
    border-color: #355688;
    color: #ffffff;
}

.facing-rp-response-card-cta--secondary {
    background: #e8f1fb;
    border: 1px solid rgba(53, 86, 136, 0.5);
    color: #355688;
}

.facing-rp-response-card-cta--secondary:hover,
.facing-rp-response-card-cta--secondary:focus-visible {
    background: #e8f1fb;
    color: #355688;
    border-color: rgba(53, 86, 136, 0.5);
}

@media (hover: hover) {
    .facing-rp-response-section:hover {
        border-color: rgba(148, 163, 184, 0.38);
    }

    .facing-rp-response-card:hover {
        transform: translateY(-2px);
        border-color: rgba(148, 163, 184, 0.38);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }

    .facing-rp-response-card--primary:hover {
        border-color: rgba(53, 86, 136, 0.55);
        box-shadow: 0 8px 18px rgba(53, 86, 136, 0.08);
    }

    .facing-rp-response-card-cta:hover {
        transform: translateY(-1px);
    }
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-response-section {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.28);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-response-heading {
    color: #f8fafc;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-response-lead {
    color: #94a3b8;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-response-card {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.28);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-response-card-title {
    color: #f8fafc;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-response-card-body {
    color: #cbd5e1;
}

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

:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-response-card-cta--secondary:hover,
:is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-response-card-cta--secondary:focus-visible {
    background: rgba(45, 74, 118, 0.78);
    border-color: rgba(148, 181, 220, 0.62);
    color: #eff6ff;
}

@media (hover: hover) {
    :is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-response-section:hover {
        border-color: rgba(148, 163, 184, 0.38);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.32);
    }

    :is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-response-card:hover {
        border-color: rgba(148, 163, 184, 0.42);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.38);
    }

    :is([data-theme="dark"], [data-bs-theme="dark"]) .facing-rp-response-card--primary:hover {
        border-color: #3d7a4c;
        box-shadow: 0 8px 20px rgba(47, 93, 58, 0.2);
    }
}

@media (max-width: 767px) {
    .facing-rp-related-column {
        float: none;
        width: 100%;
        margin: 0 0 1rem;
    }

    .facing-rp-related-column .facing-rp-related-panel {
        margin-top: 0.75rem;
    }

    .facing-rp-response-card-grid {
        grid-template-columns: 1fr;
    }
}
