/* Reusable, opt-in editorial layouts for Hot Water authority pages. */
.vp-content > .vp-hot-water-editorial {
    position: relative;
    left: 50%;
    width: 100cqw;
    margin-inline: -50cqw;
}

.vp-main-content:has(.vp-hot-water-editorial > .vp-pre-footer-cta:last-child) {
    padding-bottom: 0;
}

.vp-hot-water-editorial .vp-section {
    overflow: clip;
}

.vp-hot-water-editorial > .vp-section:not(.vp-pre-footer-cta) {
    padding-block: var(--vp-space-5);
}

.vp-hot-water-editorial .vp-hot-water-intro__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(230px, .7fr) minmax(280px, .75fr);
    gap: var(--vp-space-4);
    align-items: stretch;
}

.vp-hot-water-editorial .vp-hot-water-intro__media,
.vp-hot-water-editorial .vp-hot-water-split__media,
.vp-hot-water-editorial .vp-hot-water-feature__media,
.vp-hot-water-editorial .vp-hot-water-decision__media,
.vp-hot-water-editorial .vp-hot-water-servicing__media,
.vp-hot-water-editorial .vp-hot-water-commercial__media {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--vp-radius);
    background: var(--vp-light);
}

.vp-hot-water-editorial .wp-block-image.is-style-veeken-transparent-media {
    background: transparent;
}

.vp-hot-water-editorial .vp-hot-water-intro__media img,
.vp-hot-water-editorial .vp-hot-water-split__media img,
.vp-hot-water-editorial .vp-hot-water-feature__media img,
.vp-hot-water-editorial .vp-hot-water-decision__media img,
.vp-hot-water-editorial .vp-hot-water-servicing__media img,
.vp-hot-water-editorial .vp-hot-water-commercial__media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.vp-hot-water-editorial .vp-hot-water-callout {
    height: 100%;
    border-left: 0;
    border-top: 4px solid var(--vp-red);
    border-radius: var(--vp-radius);
}

.vp-hot-water-editorial .vp-hot-water-callout .wp-block-buttons {
    margin-top: var(--vp-space-3);
}

.vp-hot-water-editorial .vp-hot-water-callout .wp-block-button__link {
    color: var(--vp-red) !important;
    background: var(--vp-white);
}

.vp-hot-water-editorial .vp-hot-water-callout .wp-block-button__link:hover,
.vp-hot-water-editorial .vp-hot-water-callout .wp-block-button__link:focus-visible {
    color: var(--vp-white) !important;
    background: var(--vp-red);
}

.vp-hot-water-editorial .vp-hot-water-guidance__grid,
.vp-hot-water-editorial .vp-hot-water-systems__grid,
.vp-hot-water-editorial .vp-hot-water-decision__grid,
.vp-hot-water-editorial .vp-hot-water-factors__grid {
    width: 100%;
}

.vp-hot-water-editorial .vp-hot-water-guidance__item,
.vp-hot-water-editorial .vp-hot-water-system,
.vp-hot-water-editorial .vp-hot-water-decision__panel {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--vp-border);
    border-top: 0;
    border-radius: var(--vp-radius);
    background: var(--vp-white);
    box-shadow: var(--vp-shadow-card);
}

.vp-hot-water-editorial .vp-hot-water-guidance__item .wp-block-image,
.vp-hot-water-editorial .vp-hot-water-system .wp-block-image,
.vp-hot-water-editorial .vp-hot-water-decision__panel .wp-block-image {
    margin: 0;
}

.vp-hot-water-editorial .vp-hot-water-guidance__item .wp-block-image img,
.vp-hot-water-editorial .vp-hot-water-system .wp-block-image img,
.vp-hot-water-editorial .vp-hot-water-decision__panel .wp-block-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.vp-hot-water-editorial .vp-hot-water-card__body {
    padding: var(--vp-space-3);
}

.vp-hot-water-editorial .vp-hot-water-card__body > :last-child {
    margin-bottom: 0;
}

.vp-hot-water-editorial .dark .vp-hot-water-guidance__item {
    color: var(--vp-text);
}

.vp-hot-water-editorial .dark .vp-hot-water-guidance__item h3 {
    color: var(--vp-navy);
}

.vp-hot-water-editorial .dark .vp-hot-water-guidance__item p {
    color: var(--vp-muted);
}

.vp-hot-water-editorial .vp-hot-water-faults .vp-hot-water-guidance__item {
    color: var(--vp-text);
}

.vp-hot-water-editorial .vp-hot-water-faults .vp-hot-water-guidance__item h3 {
    color: var(--vp-navy);
}

.vp-hot-water-editorial .vp-hot-water-faults .vp-hot-water-guidance__item p {
    color: var(--vp-muted);
}

.vp-hot-water-editorial .vp-hot-water-faults--compact .vp-hot-water-guidance__grid {
    gap: var(--vp-space-3);
}

.vp-hot-water-editorial .vp-hot-water-faults--compact .vp-hot-water-guidance__item {
    min-height: 100%;
    border-top: 1px solid var(--vp-border);
}

.vp-hot-water-editorial .vp-hot-water-faults--compact .vp-hot-water-card__body {
    height: 100%;
}

.vp-hot-water-editorial .vp-hot-water-faults__note {
    margin: var(--vp-space-4) 0 0;
    padding: var(--vp-space-3);
    border-left: 4px solid var(--vp-red);
    background: var(--vp-surface-note);
    color: var(--vp-muted);
}

.vp-hot-water-editorial .vp-hot-water-system {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
}

.vp-hot-water-editorial .vp-hot-water-system__label {
    margin-bottom: .6rem;
}

.vp-hot-water-editorial .vp-hot-water-system .vp-hot-water-card__body {
    display: flex;
    flex-direction: column;
}

.vp-hot-water-editorial .vp-hot-water-system h3 a {
    color: var(--vp-navy);
    text-decoration: none;
}

.vp-hot-water-editorial .vp-hot-water-system h3 a:hover,
.vp-hot-water-editorial .vp-hot-water-system h3 a:focus-visible {
    color: var(--vp-red);
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-systems__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-system {
    position: relative;
    display: grid;
    min-height: 100%;
    grid-template-rows: 4rem 1fr;
    padding: var(--vp-space-3);
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 4px;
    background: rgb(255 255 255 / 4%);
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-system::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--vp-space-3);
    width: 3rem;
    height: 3px;
    background: var(--vp-red);
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-heat-pump-assessment__icon {
    display: flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    color: var(--vp-white);
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-heat-pump-assessment__icon svg {
    width: 3.5rem;
    height: 3.5rem;
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-system__label {
    color: var(--vp-red-on-dark);
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-system h3,
.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-system h3 a,
.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-followup h3 {
    color: var(--vp-white) !important;
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-system a {
    color: var(--vp-white) !important;
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-system h3 a:hover,
.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-system h3 a:focus-visible,
.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-followup a:hover,
.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-followup a:focus-visible {
    color: var(--vp-red-on-dark) !important;
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-system p,
.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-followup p {
    color: rgb(255 255 255 / 78%);
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-followup {
    border-top-color: rgb(255 255 255 / 16%);
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-followup .vp-content-icon {
    color: var(--vp-white);
}

.vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-followup a {
    color: var(--vp-white);
    text-decoration-color: rgb(255 255 255 / 55%);
}

.vp-hot-water-editorial .vp-hot-water-systems-followup .vp-hot-water-followup {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.vp-hot-water-editorial .vp-hot-water-systems-followup .vp-hot-water-icon-copy h3 {
    color: var(--vp-navy);
}

.vp-hot-water-editorial .vp-hot-water-systems-followup .vp-hot-water-icon-copy p {
    color: var(--vp-muted);
}

.vp-hot-water-editorial .vp-hot-water-systems-followup .vp-hot-water-icon-copy a {
    color: var(--vp-navy);
    font-weight: 800;
}

.vp-hot-water-editorial .vp-hot-water-systems-followup .vp-hot-water-icon-copy a:hover,
.vp-hot-water-editorial .vp-hot-water-systems-followup .vp-hot-water-icon-copy a:focus-visible {
    color: var(--vp-red);
}

.vp-hot-water-editorial .vp-hot-water-replacement-plan__cards {
    margin-top: var(--vp-space-4);
}

.vp-hot-water-editorial .vp-hot-water-replacement-plan__cards > .vp-card {
    height: 100%;
}

.vp-hot-water-editorial .vp-hot-water-replacement-plan__cards > .vp-card h3 {
    margin-top: 0;
}

.vp-hot-water-editorial .vp-hot-water-replacement-plan__cards > .vp-card > :last-child {
    margin-bottom: 0;
}

.vp-hot-water-editorial .vp-hot-water-replacement-plan__note {
    margin: var(--vp-space-4) 0 0;
    color: var(--vp-muted);
}

.vp-hot-water-editorial .vp-hot-water-replacement-plan__note a {
    color: var(--vp-navy);
    font-weight: 800;
}

.vp-hot-water-editorial .vp-hot-water-replacement-plan__note a:hover,
.vp-hot-water-editorial .vp-hot-water-replacement-plan__note a:focus-visible {
    color: var(--vp-red);
}

.vp-hot-water-editorial .vp-hot-water-followup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--vp-space-5);
    margin-top: var(--vp-space-5);
    padding-top: var(--vp-space-4);
    border-top: 1px solid var(--vp-border);
}

.vp-hot-water-editorial .vp-hot-water-icon-copy {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: var(--vp-space-2);
    align-items: start;
}

.vp-hot-water-editorial .vp-content-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    color: var(--vp-navy);
}

.vp-hot-water-editorial .vp-content-icon svg {
    width: 2.65rem;
    height: 2.65rem;
}

.vp-hot-water-editorial .vp-hot-water-icon-copy h3 {
    margin-top: 0;
}

.vp-hot-water-editorial .vp-hot-water-icon-copy > :last-child > :last-child {
    margin-bottom: 0;
}

.vp-hot-water-editorial .vp-hot-water-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: var(--vp-space-5);
    align-items: center;
}

.vp-hot-water-editorial .vp-hot-water-split--reverse > :first-child {
    order: 2;
}

.vp-hot-water-editorial .vp-hot-water-split--reverse > :last-child {
    order: 1;
}

.vp-hot-water-editorial .vp-hot-water-factors__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--vp-space-3);
}

.vp-hot-water-editorial .vp-hot-water-factor {
    min-height: 170px;
    padding: var(--vp-space-3);
    border: 1px solid var(--vp-border);
    border-top: 3px solid var(--vp-red);
    border-radius: var(--vp-radius);
    background: var(--vp-white);
    box-shadow: var(--vp-shadow-card);
}

.vp-hot-water-editorial .vp-hot-water-factor h3 {
    margin-block: var(--vp-space-2) .45rem;
    font-size: 1.05rem;
}

.vp-hot-water-editorial .vp-hot-water-factor p {
    margin-bottom: 0;
    color: var(--vp-muted);
}

.vp-hot-water-editorial .vp-hot-water-decision__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
    gap: var(--vp-space-5);
    align-items: stretch;
}

.vp-hot-water-editorial .vp-hot-water-decision__points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--vp-space-3);
}

.vp-hot-water-editorial .vp-hot-water-decision__points .vp-hot-water-icon-copy {
    display: block;
    padding-top: var(--vp-space-3);
    border-top: 3px solid var(--vp-red);
}

.vp-hot-water-editorial .vp-hot-water-decision__points .vp-content-icon {
    margin-bottom: var(--vp-space-2);
}

.vp-hot-water-editorial .vp-hot-water-decision__media img {
    min-height: 100%;
}

.vp-hot-water-editorial .vp-hot-water-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    gap: var(--vp-space-5);
    align-items: center;
}

.vp-hot-water-editorial .vp-hot-water-feature__media {
    border: 1px solid rgb(255 255 255 / 18%);
}

.vp-hot-water-editorial .vp-hot-water-feature__media img {
    min-height: 400px;
}

.vp-hot-water-editorial .vp-hot-water-service-grid .vp-card-body {
    min-height: 240px;
}

.vp-hot-water-editorial .vp-hot-water-service-grid .vp-card-link {
    margin-top: auto;
    text-decoration: none;
}

.vp-hot-water-editorial .vp-hot-water-service-card__heading {
    display: flex;
    gap: var(--vp-space-2);
    align-items: flex-start;
}

.vp-hot-water-editorial .vp-hot-water-service-card__heading h3 {
    margin: .25rem 0 0;
}

.vp-hot-water-editorial .vp-hot-water-service-card__icon {
    display: grid;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    color: var(--vp-navy);
}

.vp-hot-water-editorial .vp-hot-water-service-card__icon svg {
    width: 2.45rem;
    height: 2.45rem;
}

.vp-hot-water-editorial .vp-hot-water-servicing__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(250px, .72fr) minmax(280px, .78fr);
    gap: var(--vp-space-4);
    align-items: stretch;
}

.vp-hot-water-editorial .vp-hot-water-servicing__media img {
    min-height: 100%;
}

.vp-hot-water-editorial .vp-hot-water-servicing__checklist {
    height: 100%;
    padding: var(--vp-space-4);
}

.vp-hot-water-editorial .vp-hot-water-servicing__checklist h3 {
    margin-top: 0;
}

.vp-hot-water-editorial .vp-hot-water-servicing__checklist > :last-child {
    margin-bottom: 0;
}

.vp-hot-water-editorial .vp-hot-water-commercial__header {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: var(--vp-space-5);
    align-items: end;
    margin-bottom: var(--vp-space-4);
}

.vp-hot-water-editorial .vp-hot-water-commercial__header .vp-section-heading {
    margin-bottom: 0;
}

.vp-hot-water-editorial .vp-hot-water-commercial__media img {
    min-height: 280px;
    max-height: 360px;
}

.vp-hot-water-editorial .vp-hot-water-commercial__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--vp-space-4);
}

.vp-hot-water-editorial .vp-hot-water-commercial__cards .vp-card {
    padding: var(--vp-space-4);
}

.vp-hot-water-editorial .vp-process-section--numbers-navy .vp-process__number {
    border-color: var(--vp-navy);
    background: var(--vp-navy);
    color: var(--vp-white);
}

.vp-hot-water-editorial .vp-process-section--numbers-navy .vp-process__step:not(:last-child)::after {
    background: rgb(7 27 49 / 34%);
}

@media (max-width: 1020px) {
    .vp-hot-water-editorial .vp-hot-water-intro__layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    }

    .vp-hot-water-editorial .vp-hot-water-intro__copy {
        grid-column: 1 / -1;
    }

    .vp-hot-water-editorial .vp-hot-water-factors__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vp-hot-water-editorial .vp-hot-water-servicing__layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vp-hot-water-editorial .vp-hot-water-servicing__copy {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .vp-hot-water-editorial .vp-hot-water-intro__layout,
    .vp-hot-water-editorial .vp-hot-water-split,
    .vp-hot-water-editorial .vp-hot-water-feature,
    .vp-hot-water-editorial .vp-hot-water-systems--assessment .vp-hot-water-systems__grid,
    .vp-hot-water-editorial .vp-hot-water-followup,
    .vp-hot-water-editorial .vp-hot-water-decision__layout,
    .vp-hot-water-editorial .vp-hot-water-decision__points,
    .vp-hot-water-editorial .vp-hot-water-servicing__layout,
    .vp-hot-water-editorial .vp-hot-water-commercial__header,
    .vp-hot-water-editorial .vp-hot-water-commercial__cards {
        grid-template-columns: 1fr;
    }

    .vp-hot-water-editorial .vp-hot-water-intro__copy {
        grid-column: auto;
    }

    .vp-hot-water-editorial .vp-hot-water-commercial__cards .vp-hot-water-icon-copy {
        display: block;
    }

    .vp-hot-water-editorial .vp-hot-water-commercial__cards .vp-content-icon {
        margin-bottom: var(--vp-space-2);
    }

    .vp-hot-water-editorial .vp-hot-water-split--reverse > :first-child,
    .vp-hot-water-editorial .vp-hot-water-split--reverse > :last-child {
        order: initial;
    }

    .vp-hot-water-editorial .vp-hot-water-intro__media img,
    .vp-hot-water-editorial .vp-hot-water-split__media img,
    .vp-hot-water-editorial .vp-hot-water-feature__media img,
    .vp-hot-water-editorial .vp-hot-water-decision__media img,
    .vp-hot-water-editorial .vp-hot-water-servicing__media img,
    .vp-hot-water-editorial .vp-hot-water-commercial__media img {
        min-height: 260px;
        max-height: 420px;
    }
}

@media (max-width: 520px) {
    .vp-hot-water-editorial .vp-hot-water-factors__grid {
        grid-template-columns: 1fr;
    }
}
