/**
 * Glacial Blocks — layout helpers for the Aesthetica design.
 *
 * Visuals come from css/webflow.css (the export's own classes). This file only
 * holds what blocks need on top: class-based versions of the export's per-page
 * #w-node grid recipes, option tokens (spacing, swap, visibility), the FAQ
 * <details> look, click-to-play video, card grids, and editor neutralizers.
 * Loaded after the theme chain (dep: glacial-style) so it wins on source order.
 */

/* ---------- Option tokens --------------------------------------------- */
@media (min-width: 992px) { .gl-hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 991px) { .gl-hide-tablet { display: none !important; } }
@media (max-width: 767px) { .gl-hide-mobile { display: none !important; } }

.aes-pad-none { padding-top: 0 !important; padding-bottom: 0 !important; }
.aes-pad-small { padding-top: 3% !important; padding-bottom: 3% !important; }
.aes-pad-large { padding-top: 8% !important; padding-bottom: 8% !important; }
.aes-bg-white { background-color: #fff; }

/* ---------- Grid recipes (from the export's #w-node rules) ------------ */
/* All recipes and collapses are two-class selectors so the later @media
   collapse always wins on source order (specificity is equal). */
.wf-layout-layout.aes-cols-2 { grid-template-columns: 1fr 1fr; }
.wf-layout-layout.aes-cols-2-1 { grid-template-columns: 1fr .6fr; }
.wf-layout-layout.aes-cols-1-2 { grid-template-columns: .6fr 1fr; }
.wf-layout-layout.aes-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.wf-layout-layout.aes-cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.wf-layout-layout.aes-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media screen and (max-width: 991px) {
    .wf-layout-layout.aes-collapse-991 { grid-template-columns: 1fr; }
    .wf-layout-layout.aes-collapse-767.aes-cols-3, .wf-layout-layout.aes-collapse-767.aes-cols-4, .wf-layout-layout.aes-collapse-767.aes-cols-5,
    .wf-layout-layout.aes-collapse-479.aes-cols-3, .wf-layout-layout.aes-collapse-479.aes-cols-4, .wf-layout-layout.aes-collapse-479.aes-cols-5,
    .wf-layout-layout.aes-collapse-steps { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 767px) {
    .wf-layout-layout.aes-collapse-767,
    .wf-layout-layout.aes-collapse-767.aes-cols-3, .wf-layout-layout.aes-collapse-767.aes-cols-4, .wf-layout-layout.aes-collapse-767.aes-cols-5,
    .wf-layout-layout.aes-collapse-steps { grid-template-columns: 1fr; }
}
@media screen and (max-width: 479px) {
    .wf-layout-layout.aes-collapse-479,
    .wf-layout-layout.aes-collapse-479.aes-cols-3, .wf-layout-layout.aes-collapse-479.aes-cols-4, .wf-layout-layout.aes-collapse-479.aes-cols-5 { grid-template-columns: 1fr; }
}

/* Columns › Full-height content (.aes-stretch): a block alone in its column fills the column's height
   while the columns sit side by side; once they stack it keeps its own size (and an image its aspect ratio). */
@media (min-width: 992px) {
    .aes-stretch > .w-layout-cell > :only-child { flex: 1 1 auto; align-self: stretch; }
    .aes-stretch > .w-layout-cell > .innerpage_img_div:only-child { height: 100%; aspect-ratio: auto; }
    .aes-stretch > .w-layout-cell > .innerpage_img_div:only-child .innerpage_img { height: 100%; }
}
@media (min-width: 768px) and (max-width: 991px) {
    :is(.aes-collapse-767, .aes-collapse-479).aes-stretch > .w-layout-cell > :only-child { flex: 1 1 auto; align-self: stretch; }
    :is(.aes-collapse-767, .aes-collapse-479).aes-stretch > .w-layout-cell > .innerpage_img_div:only-child { height: 100%; aspect-ratio: auto; }
    :is(.aes-collapse-767, .aes-collapse-479).aes-stretch > .w-layout-cell > .innerpage_img_div:only-child .innerpage_img { height: 100%; }
}
@media (min-width: 480px) and (max-width: 767px) {
    .aes-collapse-479.aes-stretch > .w-layout-cell > :only-child { flex: 1 1 auto; align-self: stretch; }
    .aes-collapse-479.aes-stretch > .w-layout-cell > .innerpage_img_div:only-child { height: 100%; aspect-ratio: auto; }
    .aes-collapse-479.aes-stretch > .w-layout-cell > .innerpage_img_div:only-child .innerpage_img { height: 100%; }
}

/* Column order swap — breakpoint = the design's own 991px collapse. */
@media (min-width: 992px) {
    .gl-swap-desktop > :first-child { order: 2; }
    .gl-swap-desktop > :last-child { order: 1; }
}
@media (max-width: 991px) {
    .gl-swap-mobile > :first-child { order: 2; }
    .gl-swap-mobile > :last-child { order: 1; }
}

.w-layout-cell.aes-cell-middle { justify-content: center; }
.w-layout-cell > * { max-width: 100%; }
.w-layout-cell > p:last-child,
.w-layout-cell > ul:last-child { margin-bottom: 0; }

/* Lists rendered as grids (stats, why-choose, procedure cards) */
ul.w-layout-layout,
.aes-why-list,
.aes-procedure-grid__list { list-style: none; margin: 0; }
.aes-why-list { padding: 0; }
.aes-why-list > li { margin-left: 0; }

/* ---------- Design text helpers ---------------------------------------- */
.aes-section-intro { margin-bottom: 0; }
.center_header_wrapper .aes-section-intro { max-width: 760px; }
.aes-surgeons-intro { max-width: 520px; margin-bottom: 30px; text-align: center; }
.w-layout-cell > .two_columns_grid + p { margin-top: 1.5rem; }
.aes-subheading { margin-top: 0; margin-bottom: 15px; font-family: Marcellus, sans-serif; font-size: 1.7rem; line-height: 1.9rem; }
.aes-on-dark { color: var(--white); }
.why_subheadline { line-height: 1.6rem; }
.candidate_headline { font-family: Catamaran, sans-serif; font-weight: 500; line-height: 1.6rem; }
.candidate_cell ul { margin-bottom: 0; padding-left: 1.2rem; line-height: 1.4rem; }
.candidate_cell li { margin-bottom: .5rem; }
.aes-card { display: block; width: 100%; height: 100%; }
.aes-card--light { background-color: #e1d4bd82; color: var(--very-dark-plum); }
.aes-card--light .candidate_headline { color: var(--dark-plum); }
.step_headline { height: auto; min-height: 50px; }
.time_text { margin-bottom: 0; }
.procedures_callout { margin-top: 10px; }
.procedures_callout h3 { margin-bottom: 15px; }

/* Content cells: core blocks inside design grids */
.w-layout-cell > .wp-block-heading:first-child { margin-top: 0; }
.credentials_section .wp-block-heading { color: var(--ivory); }
.credentials_section ul { padding-left: 1.2rem; }
.credentials_section a,
.steps_section a:not(.button) { color: var(--ivory); }

/* Hero photo override (home-hero) keeps the export's gradient stack */
.hero_section.aes-has-img {
    background-image: radial-gradient(circle at 75% 75%, #0000004f, #0000 41%), radial-gradient(circle, #0000, #00000069), var(--aes-hero-img);
}
.aes-home-hero { position: relative; }

/* ---------- Buttons ------------------------------------------------------ */
.aes-buttons { flex-wrap: wrap; gap: 12px 0; margin-top: 10px; }
.aes-buttons:not(:last-child) { margin-bottom: 24px; }
.aes-buttons .button + .button,
.aes-buttons .button + .text_btn { margin-left: 20px; }
.btns_wrapper.aes-buttons--center { justify-content: center; }
.aes-text-btn::after {
    content: "";
    width: 16px;
    height: 12px;
    margin-left: 10px;
    background: url("../../images/arrow-icon.svg") center / contain no-repeat;
}
@media screen and (max-width: 479px) {
    .aes-buttons { flex-flow: column; align-items: flex-start; }
    .aes-buttons .button + .button,
    .aes-buttons .button + .text_btn { margin-left: 0; }
}

/* ---------- FAQ (native details/summary in the faqs_accordion look) ---- */
.faqs_section .faqs_wrapper > h2 { text-align: center; }
.aes-faq-cols,
.aes-faq-single { width: 100%; align-items: start; }
.aes-faq-cols > .w-layout-cell { display: block; }
.faqs_accordion > summary { list-style: none; }
.faqs_accordion > summary::-webkit-details-marker { display: none; }
.faqs_accordion > .faqs_header::after {
    content: "";
    flex: 0 0 1.3rem;
    height: 1.3rem;
    margin-left: 1.5rem;
    background: url("../../images/plus-icon.svg") center / contain no-repeat;
    transition: transform .3s ease;
}
.faqs_accordion[open] > .faqs_header::after { transform: rotate(135deg); }
.aes-faq-q {
    margin: 0;
    color: inherit;
    font-family: Catamaran, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5rem;
}
.faqs_header:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.faqs_accordion .services_content { border-top: 0; }
.faqs_accordion .max-width-large { padding-top: 5px; padding-bottom: 10px; }
.faqs_accordion .max-width-large p { margin-bottom: 12px; line-height: 1.6rem; }
.faqs_accordion .max-width-large > :last-child { margin-bottom: 0; }
.faqs_accordion { border-bottom: 1px solid #3a253626; }
@media (prefers-reduced-motion: reduce) {
    .faqs_accordion > .faqs_header::after { transition: none; }
}

/* ---------- Click-to-play YouTube --------------------------------------- */
.aes-video { position: relative; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #13020c; }
.aes-yt,
.aes-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.aes-yt { padding: 0; background: #13020c; cursor: pointer; }
.aes-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.aes-yt:hover img, .aes-yt:focus-visible img { opacity: 1; }
.aes-yt__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    background: #25071fd9;
}
.aes-yt__play::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 14px;
    border-left: 18px solid var(--ivory);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.aes-yt:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Videos row when it isn't the export's 4-up grid */
.videos_grid.aes-videos-1 { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.videos_grid.aes-videos-2 { grid-template-columns: 1fr 1fr; }
.videos_grid.aes-videos-3 { grid-template-columns: 1fr 1fr 1fr; }
@media screen and (max-width: 767px) {
    .videos_grid.aes-videos-2, .videos_grid.aes-videos-3 { grid-template-columns: 1fr; }
}

/* ---------- Testimonials slider: visible keyboard focus ---------------- */
.testimonials_slider .w-slider-arrow-left:focus-visible,
.testimonials_slider .w-slider-arrow-right:focus-visible,
.testimonials_slider .w-slider-dot:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }

/* ---------- Procedure cards (homepage card style on inner pages) ------- */
.aes-procedure-grid__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2svw;
    padding: 0;
}
.aes-procedure-grid__list--3 { grid-template-columns: repeat(3, 1fr); }
.aes-procedure-grid__list > li { margin: 0; }
.aes-services-btn { display: block; padding-top: 130%; font-size: 2rem; line-height: 2.1rem; }
.aes-services-btn .services_label_div { top: 0; height: auto; gap: 10px; transition: transform .35s ease; }
.aes-services-btn .services_img { transition: transform .5s ease; }
.aes-services-btn .services_btn_text { opacity: 0; transition: opacity .35s ease; }
.aes-services-btn:hover .services_img, .aes-services-btn:focus-visible .services_img { transform: scale(1.05); }
.aes-services-btn:hover .services_btn_text, .aes-services-btn:focus-visible .services_btn_text { opacity: 1; }
.aes-services-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.aes-procedure-grid .text-block { font-size: 1.9rem; line-height: 2rem; }
@media screen and (max-width: 991px) {
    .aes-procedure-grid__list, .aes-procedure-grid__list--3 { grid-template-columns: 1fr 1fr; }
    .aes-services-btn .services_btn_text { opacity: 1; }
}
@media screen and (max-width: 479px) {
    .aes-procedure-grid__list, .aes-procedure-grid__list--3 { grid-template-columns: 1fr; }
    .aes-services-btn { padding-top: 90%; }
}
@media (prefers-reduced-motion: reduce) {
    .aes-services-btn .services_img, .aes-services-btn .services_label_div, .aes-services-btn .services_btn_text { transition: none; }
}

/* ---------- Posts + video galleries -------------------------------------- */
.aes-posts__grid,
.aes-video-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2svw;
}
.aes-post-card,
.aes-video-card { background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.aes-post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e1d4bd; }
.aes-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.aes-post-card__body,
.aes-video-card > h3,
.aes-video-card > p { padding: 0 1.5rem; }
.aes-post-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.aes-post-card__date { display: block; margin-bottom: .5rem; color: #8d5f84; font-size: .9rem; }
.aes-post-card__title,
.aes-video-card__title { margin: 0 0 .75rem; font-size: 1.35rem; line-height: 1.7rem; }
.aes-post-card__title a,
.aes-video-card__title a { color: var(--dark-plum); }
.aes-video-card .aes-video { border-radius: 0; }
.aes-video-card > h3 { margin-top: 1.25rem; }
.aes-video-card > p { margin-bottom: 1.5rem; line-height: 1.5rem; }
@media screen and (max-width: 991px) {
    .aes-posts__grid, .aes-video-gallery__grid { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 767px) {
    .aes-posts__grid, .aes-video-gallery__grid { grid-template-columns: 1fr; }
}

/* ---------- Image block options ------------------------------------------ */
.innerpage_img_div.aes-natural { height: auto; }
.innerpage_img_div.aes-natural .innerpage_img { height: auto; }
/* Aspect ratio (render_block filter): wins over the Fill column / 500px heights at every width. */
.innerpage_img_div.aes-ratio { flex: none; height: auto; aspect-ratio: var(--aes-ratio, 1 / 1); }
.innerpage_img_div.aes-ratio .innerpage_img { height: 100%; }
/* Fill the column on desktop (.aes-fill-desktop): full height while its grid has columns side by side,
   so the breakpoint follows the Columns block's own collapse; stacked, the ratio or Height setting applies. */
@media (min-width: 992px) {
    .aes-fill-desktop.innerpage_img_div { flex: 1 1 auto; height: 100%; aspect-ratio: auto; }
    .aes-fill-desktop.innerpage_img_div .innerpage_img { height: 100%; }
}
@media (min-width: 768px) and (max-width: 991px) {
    :is(.aes-collapse-767, .aes-collapse-479) .aes-fill-desktop.innerpage_img_div { flex: 1 1 auto; height: 100%; aspect-ratio: auto; }
    :is(.aes-collapse-767, .aes-collapse-479) .aes-fill-desktop.innerpage_img_div .innerpage_img { height: 100%; }
}
@media (min-width: 480px) and (max-width: 767px) {
    .aes-collapse-479 .aes-fill-desktop.innerpage_img_div { flex: 1 1 auto; height: 100%; aspect-ratio: auto; }
    .aes-collapse-479 .aes-fill-desktop.innerpage_img_div .innerpage_img { height: 100%; }
}
.innerpage_img.aes-focus-center { object-position: 50% 50%; }

/* ---------- Full-bleed pages: no wrapper padding around the bands ---------- */
.aes-main--full > :first-child { margin-top: 0; }

/* =====================================================================
   EDITOR ONLY (canvas iframe)
   ===================================================================== */
.editor-styles-wrapper .gl-hide-desktop,
.editor-styles-wrapper .gl-hide-tablet,
.editor-styles-wrapper .gl-hide-mobile { display: revert !important; opacity: .55; }

/* Server-rendered previews: Webflow sliders/videos are static in the canvas. */
.editor-styles-wrapper .w-slider-mask { white-space: normal; }
.editor-styles-wrapper .w-slide { display: none; }
.editor-styles-wrapper .w-slide:first-child { display: block; }
.editor-styles-wrapper .hero_tagline1,
.editor-styles-wrapper .hero_tagline2,
.editor-styles-wrapper .navbar { visibility: visible !important; }
.editor-styles-wrapper .aes-home-hero .hero_section { min-height: 600px; }
.editor-styles-wrapper .aes-cognito { min-height: 120px; border: 1px dashed #3a253666; border-radius: 10px; }
.editor-styles-wrapper .aes-cognito::before { content: "Cognito form (loads on the live page)"; display: block; padding: 1rem; color: #6d6169; font-size: .9rem; }

/* InnerBlocks inside design grids: let the cells lay out, not the editor wrappers. */
.editor-styles-wrapper .two_columns_grid > .block-list-appender,
.editor-styles-wrapper .inner_callout_grid > .block-list-appender { align-self: center; }
.editor-styles-wrapper .w-layout-cell { min-height: 40px; }
.editor-styles-wrapper .aes-faq-edit .faqs_header { cursor: text; }
.editor-styles-wrapper .aes-faq-edit .services_content { height: auto !important; }
.editor-styles-wrapper .aes-yt { pointer-events: none; }

/* Doctor credentials band: the design's h4 sub-headings are Catamaran */
.credentials_section .education_subheadline { font-family: Catamaran, sans-serif; margin-top: 20px; }
.credentials_section .education_subheadline:first-of-type { margin-top: 0; }
.credentials_section ul { margin-bottom: 20px; line-height: 1.6rem; }
.credentials_section li { margin-bottom: 4px; }
.wp-block-heading.h3-size { font-size: 1.7rem; line-height: 2.1rem; color: var(--plum); }

/* Inner-page procedure cards: IX3 primes the arrow at opacity 0 for its
   homepage-only hover timeline, so reveal it with CSS here. */
.aes-services-btn .arrow_icon { opacity: 1 !important; transform: none !important; transition: transform .3s ease; }
.aes-services-btn:hover .arrow_icon,
.aes-services-btn:focus-visible .arrow_icon { transform: translateX(4px) !important; }
.aes-services-btn .services_label_div { padding: 0 12px; }

/* About "Learn More" cards on dark bands */
.steps_section .wp-block-heading a { color: var(--ivory); }
.steps_section .wp-block-heading a:hover { color: var(--white); }
.steps_section .innerpage_img_div { margin-bottom: 12px; }

/* Lender logos (financing) */
.aes-lender-logo img { max-width: 220px; height: auto; margin-bottom: 15px; }
.aes-contact-form { width: 100%; }

/* Review slider pause/play (added by js/aesthetica.js, WCAG 2.2.2) */
/* The export's arrows hang 30px below the slider at left 0 / 40px (.testimonials_arrow),
   so the toggle sits in that row, to their right. */
.aes-slider-toggle {
    display: block;
    margin: 0 0 0 84px;
    padding: 4px 14px;
    min-height: 30px;
    border: 1px solid #3a253666;
    border-radius: 999px;
    background: transparent;
    color: var(--dark-plum);
    font-size: .9rem;
    cursor: pointer;
}
.aes-slider-toggle:hover { background: #3a253614; }
.aes-slider-toggle:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }

/* ---- Section › Reading width (blog posts): article copy in a centered measure; grids may run wider. */
.aes-reading > * { max-width: 46rem; margin-left: auto; margin-right: auto; }
.aes-reading > .wf-layout-layout,
.aes-reading > .faqs_wrapper { max-width: 68rem; }
.aes-reading > :first-child { margin-top: 0; }
.aes-reading > :last-child { margin-bottom: 0; }
.aes-reading > h2 { margin-top: 2.75rem; margin-bottom: 1.1rem; }
.aes-reading > h3 { margin-top: 2rem; margin-bottom: .9rem; font-size: 1.5rem; line-height: 1.9rem; }
.aes-reading > p,
.aes-reading > ul > li,
.aes-reading > ol > li { font-size: 1.1rem; line-height: 1.75rem; }
.aes-reading > p { margin-bottom: 1.4rem; }
.aes-reading > ul,
.aes-reading > ol { margin-bottom: 1.6rem; padding-left: 1.4rem; }
.aes-reading > ul > li,
.aes-reading > ol > li { margin-bottom: .45rem; }
.aes-reading li::marker { color: var(--plum); }
.aes-reading > p a,
.aes-reading > ul a,
.aes-reading > ol a { color: var(--plum); text-decoration: underline; text-decoration-color: #3a253666; text-underline-offset: 3px; }
.aes-reading > blockquote { margin: 0 auto 2rem; padding: 1.5rem 2rem; border-left: 3px solid var(--gold); background: #faf4ea; border-radius: 0 10px 10px 0; font-family: "Playfair Display", serif; font-style: italic; font-size: 1.15rem; line-height: 1.8rem; }
.aes-reading:not(.aes-bg-white) > blockquote { background: #fff; }
.aes-reading > .wf-layout-layout { margin-top: 1rem; margin-bottom: 2rem; }
.aes-reading > .wf-layout-layout:last-child { margin-bottom: 0; }
/* Lead band: intro copy beside the post's photo */
.aes-reading .candidate_cell p { margin-bottom: 1rem; }
.aes-reading .candidate_cell p:last-child { margin-bottom: 0; }
.aes-reading .candidate_cell ul { margin-top: .25rem; }
.candidate_cell > p:last-child,
.candidate_cell > ul:last-child { margin-bottom: 0; }
.aes-card--light a { color: var(--plum); }
.candidate_cell:not(.aes-card--light) a { color: var(--ivory); text-decoration: underline; }
/* Inline post photos keep their own size inside the reading measure. */
.aes-reading > .innerpage_img_div.aes-natural { width: fit-content; max-width: 100%; margin-bottom: 2rem; }
.aes-reading > .innerpage_img_div.aes-natural .innerpage_img { width: auto; max-width: 100%; height: auto; }

/* ---------- Column › Background: leaf cards (.appointment_cell / .financing_cell from the footer) ---------- */
.w-layout-cell.aes-cell-leaf > :last-child { margin-bottom: 0; }
.appointment_cell.aes-cell-leaf ul.wp-block-list { --aes-leaf: #e1d5be; }
.appointment_cell.aes-cell-leaf :is(h2, h3, h4, h5, h6, p, li, .specialty_text) { color: var(--ivory); }
.appointment_cell.aes-cell-leaf a:not(.button):not(.text_btn) { color: var(--gold); }
.appointment_cell.aes-cell-leaf .button { background-color: var(--ivory); color: var(--dark-plum); }
.appointment_cell.aes-cell-leaf .button:hover { background-color: var(--gold); color: var(--black); }
.appointment_cell.aes-cell-leaf .text_btn { border-top-color: var(--ivory); color: var(--ivory); }
.appointment_cell.aes-cell-leaf .button:focus-visible,
.appointment_cell.aes-cell-leaf a:focus-visible { outline-color: var(--ivory); }

/* ---------- Photo Split Band (glacial/photo-split): full-bleed photo beside the content ---------- */
/* The text's outer edge lines up with the 8%-padded, 1420px-max content of the other sections. */
.aes-split { --split-edge: max(8vw, calc(50vw - 710px)); --split-gap: clamp(2.5rem, 5vw, 6rem); display: grid; grid-template-columns: 1fr 1fr; background-color: #faf4ea; }
.aes-split--white { background-color: #fff; }
.aes-split--plum {
	background-color: var(--very-dark-plum);
	background-image: url('../../images/leaves-transparent3.svg'), radial-gradient(circle farthest-corner at 15% 100%, var(--plum), #25071f 70%, var(--very-dark-plum));
	background-position: 0 100%, 0 0;
	background-repeat: no-repeat;
	background-size: 90%, auto;
	color: var(--white);
	font-weight: 300;
}
.aes-split--img-left { background-position: 100% 100%, 0 0; }
.aes-split__media { position: relative; min-height: 34rem; }
.aes-split:not(.aes-split--img-left) .aes-split__media { order: 2; }
.aes-split__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.aes-split__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(3.5rem, 6vw, 6.5rem) var(--split-gap) clamp(3.5rem, 6vw, 6.5rem) var(--split-edge); }
.aes-split--img-left .aes-split__body { padding-left: var(--split-gap); padding-right: var(--split-edge); }
.aes-split__body > * { max-width: 40rem; }
.aes-split__body > :first-child { margin-top: 0; }
.aes-split__body > :last-child { margin-bottom: 0; }
.aes-split__body > h2 { margin-bottom: 1.4rem; }
.aes-split__body > p,
.aes-split__body > ul > li { line-height: 1.7rem; }
.aes-split__body > p { margin-bottom: 1.3rem; }
.aes-split__body > .candidate_cell { height: auto; margin-top: .75rem; }
.aes-split__body > .aes-buttons { margin-top: .5rem; }
/* Plum: ivory type, gold card (the homepage's out-of-town callout), light buttons. */
.aes-split--plum .aes-split__body > :is(h2, h3) { color: var(--ivory); }
.aes-split--plum .aes-split__body > :is(p, ul, ol) { color: #f4eee4; }
.aes-split--plum .aes-split__body > ul.wp-block-list { --aes-leaf: #e1d5be; }
.aes-split--plum .aes-split__body > :is(p, ul, ol) a { color: var(--gold); }
.aes-split--plum .candidate_cell {
	background-color: var(--gold);
	background-image: radial-gradient(circle farthest-corner at 70% 100%, #e9ddc9 28%, var(--gold)), radial-gradient(circle farthest-corner at 30% 0%, #f7ebd7, var(--gold));
	color: var(--very-dark-plum);
	font-weight: 400;
}
.aes-split--plum .candidate_cell .candidate_headline { color: var(--dark-plum); }
.aes-split--plum .candidate_cell ul.wp-block-list { --aes-leaf: #a8895a; }
.aes-split--plum .candidate_cell a { color: var(--plum); }
.aes-split--plum .button { background-color: var(--ivory); color: var(--dark-plum); }
.aes-split--plum .button:hover { background-color: var(--gold); color: var(--black); }
@media screen and (max-width: 991px) {
	.aes-split { grid-template-columns: 1fr; }
	.aes-split .aes-split__media,
	.aes-split:not(.aes-split--img-left) .aes-split__media { order: 0; min-height: 0; aspect-ratio: 3 / 2; }
	.aes-split .aes-split__body { padding: 3.5rem 8%; }
	.aes-split__body > * { max-width: none; }
	.aes-split--plum { background-size: 160%, auto; }
}
@media screen and (max-width: 479px) {
	.aes-split .aes-split__media { aspect-ratio: 4 / 3; }
	.aes-split .aes-split__body { padding: 3rem 20px; }
}
