/* Dynamic Power layout refinements. Existing theme owns typography and buttons.
   The wrapper limits every rule to this page, regardless of template folder. */
#fanco-dynamic-power .text-column__cta {
    margin-top: 36px;
}

/* Place the Bridge Power link after the questions without changing the shared PHP. */
#fanco-dynamic-power .dp-section--questions .text-column__inner {
    display: flex;
    flex-direction: column;
}
#fanco-dynamic-power .dp-section--questions .text-column__list {
    order: 1;
}
#fanco-dynamic-power .dp-section--questions .text-column__cta {
    order: 2;
}

/* Reuse FANCO's existing navy and warm-white palette. */
#fanco-dynamic-power .dp-section--utility,
#fanco-dynamic-power .dp-section--contact {
    background: #0A233F;
}
#fanco-dynamic-power .dp-section--thermal,
#fanco-dynamic-power .dp-section--questions {
    background: #F7F6F4;
}
#fanco-dynamic-power .dp-section--utility .text-column__eyebrow,
#fanco-dynamic-power .dp-section--utility .text-column__heading,
#fanco-dynamic-power .dp-section--utility .text-column__body,
#fanco-dynamic-power .dp-section--utility .text-column__body p,
#fanco-dynamic-power .dp-section--utility .text-column__list-heading,
#fanco-dynamic-power .dp-section--utility .text-column__list-copy,
#fanco-dynamic-power .dp-section--utility .text-column__list-copy p,
#fanco-dynamic-power .dp-section--contact .text-column__eyebrow,
#fanco-dynamic-power .dp-section--contact .text-column__heading,
#fanco-dynamic-power .dp-section--contact .text-column__body,
#fanco-dynamic-power .dp-section--contact .text-column__body p {
    color: #fff;
}
#fanco-dynamic-power .dp-section--utility .text-column__eyebrow,
#fanco-dynamic-power .dp-section--contact .text-column__eyebrow,
#fanco-dynamic-power .dp-section--utility .text-column__list-row {
    border-color: rgba(255, 255, 255, 0.4);
}
#fanco-dynamic-power .dp-section--utility .text-column__body a,
#fanco-dynamic-power .dp-section--utility .text-column__list-copy a,
#fanco-dynamic-power .dp-section--contact .text-column__body a {
    color: inherit;
    text-decoration: underline;
}
/* Existing .btn--light colors, applied to the shared component's button.
   Keep its shape, padding, font and capitalization unchanged. */
#fanco-dynamic-power .dp-section--contact .btn {
    background: #fff;
    color: #0A233F;
}
#fanco-dynamic-power .dp-section--contact .btn:hover,
#fanco-dynamic-power .dp-section--contact .btn:focus-visible {
    background: #0A233F;
    color: #fff;
    box-shadow: inset 0 0 0 1px #fff;
}

/* Presentation crops only: original Media Library files are untouched. */
#fanco-dynamic-power .hero-media-banner__wrap {
    margin-top: 60px;
}
#fanco-dynamic-power .hero-media-banner__image {
    width: 100%;
    height: clamp(300px, 34vw, 520px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}
#fanco-dynamic-power .cover-image {
    margin: 0 20px;
    border-radius: 40px 0 0 0;
    overflow: hidden;
}
#fanco-dynamic-power .cover-image__img {
    width: 100%;
    height: clamp(260px, 29vw, 420px);
    object-fit: cover;
    object-position: center;
}
@media (max-width: 767px) {
    #fanco-dynamic-power .text-column__cta {
        margin-top: 28px;
    }
    #fanco-dynamic-power .hero-media-banner__wrap {
        margin: 36px 15px 0;
        border-radius: 24px 0 0 0;
    }
    #fanco-dynamic-power .hero-media-banner__image,
    #fanco-dynamic-power .cover-image__img {
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }
    #fanco-dynamic-power .cover-image {
        margin: 0 15px;
        border-radius: 24px 0 0 0;
    }
}

/* Intro image columns: use the established theme typography and button. */
#fanco-dynamic-power .dp-intro-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 44px;
}
#fanco-dynamic-power .dp-intro-card { min-width: 0; }
#fanco-dynamic-power .dp-intro-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px 0 0 0;
}
#fanco-dynamic-power .dp-intro-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
#fanco-dynamic-power .dp-intro-card__heading {
    font-family: inherit;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #0A233F;
    margin: 24px 0 14px;
}
#fanco-dynamic-power .dp-intro-card__body {
    font-size: 16px;
    line-height: 1.6;
    color: #0A233F;
}
#fanco-dynamic-power .dp-intro-card__body p { margin: 0 0 12px; }
#fanco-dynamic-power .dp-intro-card__body p:last-child { margin-bottom: 0; }
#fanco-dynamic-power .dp-section--intro .text-column__cta { margin-top: 40px; }
@media (max-width: 899px) {
    #fanco-dynamic-power .dp-intro-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        margin-top: 32px;
    }
    #fanco-dynamic-power .dp-intro-card__heading { font-size: 24px; margin-top: 20px; }
}
