:where(figure) {
    margin: 0 !important;
}

/* Highlighted text (the editor's Highlight format) reads as emphasis here. */
mark {
    font-weight: 600;
}

p.wp-block-post-excerpt__excerpt {
    color: #edf0fc !important;
}

.wp-block-group {
    overflow: clip;
}

.wp-block-buttons.is-style-full-width {
    width: 100% !important;
}

.is-style-post-typo.wp-block-post-content h2 {
    font-size: var(--wp--preset--font-size--core-theme-heading-three);
}

.wp-block-post-title a {
    font-weight: 400;
}

.wp-block-post-excerpt__more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    color: #fff;
    background: var(--wp--preset--color--core-theme-tiber, #04262f);
    padding: 10px 16px;
    border-radius: 100px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arrow icon matching the theme's arrow SVG (white stroke). */
.wp-block-post-excerpt__more-link::after {
    content: '';
    width: 17px;
    height: 11px;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2LjEwOTEgNy4yODMzOUMxNS4yNDc0IDYuNzE1MjIgMTQuMzc5MSA2LjE1ODQ5IDEzLjUyMzggNS41Nzg4N0MxMi41NjIyIDQuOTI0MjIgMTEuNTY4MyA0LjMwNDEyIDEwLjY3NTMgMy41NTk5MUM5LjgyMzUyIDIuODQ5OTYgOS42NzU4MSAxLjg5MzA4IDEwLjI2NDYgMC45Mjk3NTlDMTAuODcyNSAtMC4wNTgwNzA1IDExLjc5NjkgLTAuMTg2MDg0IDEyLjgwMDcgMC4yMDgxNzNDMTMuMzM2OSAwLjQyMDM0NyAxMy44MzQgMC43MzY4NTQgMTQuMzM3NCAxLjAyOTAyQzE3Ljg1OTUgMy4wODEwMSAyMS4zNzA4IDUuMTUyMDkgMjQuOTAxNiA3LjE4ODgxQzI3LjczMzYgOC44MjM5OSAyNy45NzM0IDEwLjc2ODcgMjUuMjQ5NCAxMi40NDY1QzIyLjIxNSAxNC4zMTQzIDE4Ljk4OTUgMTUuODc0MSAxNS44MDkxIDE3LjQ4MzNDMTQuODI5NyAxNy45Nzg3IDEzLjcyMTQgMTguMTAwOSAxMy4wMTEyIDE2Ljg5MzZDMTIuNDEzNSAxNS44Nzk0IDEyLjc4NjUgMTUuMDI4OSAxNC4yMTcyIDE0LjA4MjdDMTQuOTE0OCAxMy42MjA4IDE1LjYyOTQgMTMuMTg2NiAxNi44NjI3IDEyLjQwOTdDMTUuNzEyNiAxMi4xOTcgMTUuMTIzNSAxMi4wMDIzIDE0LjUzMjggMTEuOTkyM0MxMS4yNTIxIDExLjkyNjcgNy45NzA3NyAxMS45MDY2IDQuNjg4OTQgMTEuODYwN0MzLjcyNjQyIDExLjg0NjggMi43NDQ1MyAxMS45MTU4IDEuODA1ODEgMTEuNzQwM0MwLjgwNjk0OCAxMS41NTUgLTAuMDQyMDIwOCAxMC45NTExIDAuMDAxNjAyMzEgOS43NzhDMC4wNTI0OTY5IDguNDQxMTkgMC45NTk4MzIgNy45NzQ4MiAyLjE3MDYxIDcuOTYwOTdDNS43NDAwNyA3LjkyMzMyIDkuMzA2NTggNy44ODY0NiAxMi44NzYgNy44NDg4QzEzLjkwNTUgNy44MzgyNCAxNC45MzY0IDcuODIwODUgMTUuOTY1IDcuODA3MjdDMTYuMDE0MSA3LjYzMjM4IDE2LjA2MzEgNy40NTc0OCAxNi4xMDkxIDcuMjgzMzlaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease;
}

.wp-block-post-excerpt__more-link:hover::after {
    transform: translateX(2px);
}

header.wp-block-kadence-rowlayout {
    position: relative;
}

header.wp-block-kadence-rowlayout::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, rgba(6, 24, 57, 0.7) 50%, rgba(6, 24, 57, 0) 77.94%);
    content: '';
    z-index: -1;
}

.has-glass-effect {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    /* Frost 100 + Refraction 38 + Dispersion 100 */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.has-glass-effect::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    /* Light 79° sheen */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.175) 0%, rgba(255, 255, 255, 0.04) 35%, rgba(255, 255, 255, 0) 60%);
}

.core-theme-icon-pos .kt-svg-icon-link {
    flex-direction: row-reverse !important;
    gap: 12px;
}

.wp-block-button.is-style-link .wp-block-button__link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.has-featured-image-bg:before {
    background: linear-gradient(172.74deg, rgba(34, 34, 34, 0) -35.15%, #191919 81.33%);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media screen and (max-width: 767px) {
    .is-style-wrap-mobile {
        flex-wrap: wrap !important;
    }
}

/* Kadence Codes */
.kb-table-container {
    border-radius: 20px;
}

.kb-table p {
    margin: 0 !important;
}

/*
 * Button styles
 *
 * Loaded in both the editor and the front end via `enqueue_block_assets`, so
 * the two stay identical. Block style variation CSS (`is-style-alternative`,
 * `is-style-link`) is not emitted from theme.json at all, so those variations
 * are defined here rather than there.
 *
 * The only hover state is `styles.elements.button[":hover"]` in theme.json,
 * which sets the background to `core-theme-mantis-dark` and the text to white. Do not
 * add hover rules here without checking theme.json, or the two will disagree.
 */

/*
 * Alternative — identical to the default button except for its fill and text
 * colour. Padding, radius, and typography are inherited from
 * `styles.elements.button` in theme.json.
 *
 * theme.json declares this variation under
 * `styles.blocks.core/button.variations.alternative`, but block style variation
 * CSS is not emitted from theme.json (verified against WP 7.0), so it is
 * restated here. Keep the two in sync.
 */
.wp-block-button.is-style-alternative .wp-block-button__link {
    background-color: var(--wp--preset--color--core-theme-mantis-lighter);
    color: var(--wp--preset--color--core-theme-mantis-darkest);
}

/* Overrides the default button's hover with the stronger Mantis fill. Text   turns Tiber: white on Mantis is only 2.1:1. */
.wp-block-button.is-style-alternative .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--core-theme-mantis);
    color: var(--wp--preset--color--core-theme-tiber);
}

/*
 * Outline — registered by core, not by the theme. Core ships its own CSS for
 * this variation (`border: 2px solid`, `color: currentColor`, `padding:
 * .667em 1.33em`) wrapped in `:root :where(...)`, so these plain class
 * selectors outrank it. Padding is restated to match `styles.elements.button`.
 *
 * The fill is transparent with `core-theme-mantis` text and border; hover
 * deepens both to `core-theme-mantis-dark`. Mirrors
 * `styles.blocks.core/button.variations.outline` in theme.json.
 */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    background-image: none;
    border: 1px solid var(--wp--preset--color--core-theme-mantis);
    color: var(--wp--preset--color--core-theme-mantis);
    padding: 12px 42px;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: transparent;
    border-color: var(--wp--preset--color--core-theme-mantis-dark);
    color: var(--wp--preset--color--core-theme-mantis-dark);
}

/*
 * Link — must not pick up the default button's white fill. Same reason as
 * Alternative above: the variation's `background: transparent` in theme.json
 * is not emitted, so it is restated here.
 *
 * The trailing arrow is painted as a mask filled with `currentColor` rather
 * than a coloured background-image, so it inherits the link colour and follows
 * it on hover without needing a second copy of the icon.
 */
.wp-block-button.is-style-link .wp-block-button__link {
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    background-image: none;
    color: var(--wp--preset--color--core-theme-mantis-dark);
    font-weight: 600;
}

.wp-block-button.is-style-link .wp-block-button__link::after {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M3.6 9H14.4M9.9 13.5L14.4 9L9.9 4.5' stroke='%23000' stroke-width='1.575' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M3.6 9H14.4M9.9 13.5L14.4 9L9.9 4.5' stroke='%23000' stroke-width='1.575' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        no-repeat center / contain;
    transition: transform 0.2s ease;
}

.wp-block-button.is-style-link .wp-block-button__link:hover {
    background-color: transparent;
    color: var(--wp--preset--color--core-theme-mantis-darker);
}

.wp-block-button.is-style-link .wp-block-button__link:hover::after {
    transform: translateX(3px);
}

/* Kadence Table */
@media (max-width: 600px) {
    .kb-table {
        table-layout: auto !important;
        min-width: 600px !important;
    }
}

/*
 * Core Tabs — tab list
 *
 * One pill: a #FAF9F6 track behind a #E3E3E5 hairline, holding a filled pill
 * for the selected tab. The fill, text colour, and type all come from
 * theme.json presets, so the bar follows the palette rather than restating it.
 *
 * `!important` appears on exactly the three properties the block's own Colour,
 * Border, and Dimensions controls write as inline styles onto each tab button
 * — inline would otherwise beat any selector here. Clearing those controls in
 * the editor would let the flags go, but keeping them means the bar renders the
 * same whatever an editor sets per tab.
 *
 * Loaded via `enqueue_block_assets` (inc/enqueue.php), so the editor canvas
 * gets these rules too. The editor markup differs only in that the track
 * carries `role="document"` rather than `role="tablist"`, so the track is
 * matched by class and the buttons by `[role="tab"]` — both shared.
 */
.wp-block-tabs .wp-block-tab-list {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    gap: 6px;
    padding: 3px !important;
    background-color: #faf9f6;
    border: 1px solid #e3e3e5;
    border-radius: 999px;
}

.wp-block-tabs .wp-block-tab-list > [role='tab'] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 999px;
    background-color: transparent !important;
    color: var(--wp--preset--color--core-theme-neutral-dark);
    font-family: var(--wp--preset--font-family--instrument-sans);
    font-size: var(--wp--preset--font-size--core-theme-small);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-tabs .wp-block-tab-list > [role='tab']:hover {
    color: var(--wp--preset--color--core-theme-tiber);
}

.wp-block-tabs .wp-block-tab-list > [role='tab'][aria-selected='true'],
.wp-block-tabs .wp-block-tab-list > [role='tab'][aria-selected='true']:hover {
    background-color: var(--wp--preset--color--core-theme-tiber) !important;
    color: var(--wp--preset--color--core-theme-white);
}

/*
 * Core marks the selected tab with an underline it draws as a pseudo-element
 * (`wp-includes/blocks/tab-list/style.css`):
 *
 *   :where(.wp-block-tab-list button)[aria-selected=true]::before {
 *       content: ""; position: absolute; bottom: 0; left: 0; width: 100%;
 *       border-bottom: 2px solid currentColor;
 *   }
 *
 * Pinned to `bottom: 0` at full width, it runs corner to corner straight
 * through the pill's rounded bottom — in `currentColor`, so white on the tiber
 * fill — and reads as the pill having its bottom sliced off. The fill is the
 * selected state in this design, so the underline just goes. `border: 0` on
 * the button above does not reach a pseudo-element; only `content` removes it.
 */
.wp-block-tabs .wp-block-tab-list > [role='tab']::before {
    content: none;
}

/*
 * Keyboard focus only. Mirrors `styles.elements.button[":focus"]` in
 * theme.json. Switching tabs by mouse moves focus to the tab that was clicked,
 * and the selected pill already shows which one that is — a ring on top of it
 * is noise. `:focus-visible` alone covers this in Chrome, but browsers differ
 * on whether a click counts, so the pointer case is denied outright.
 */
.wp-block-tabs .wp-block-tab-list > [role='tab']:focus:not(:focus-visible) {
    outline: none;
}

.wp-block-tabs .wp-block-tab-list > [role='tab']:focus-visible {
    outline: 1px solid var(--wp--preset--color--core-theme-neutral-dark);
    outline-offset: 2px;
}

/*
 * Narrower than the track's natural width there is no room for a single row,
 * so it wraps. A 999px radius on a two-row box bulges into an oval, so the
 * radius drops to something that still reads as the same component.
 */
@media (max-width: 600px) {
    .wp-block-tabs .wp-block-tab-list {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 24px;
        flex-direction: column;
        width: 100% !important;
    }

    .wp-block-tabs .wp-block-tab-list button {
        width: 100% !important;
    }
}

/*
 * Comparison table — Kadence Table (Adv) with the `core-theme-compare-table`
 * class, first row as header. Three columns: a row label, the "two separate
 * firms" column on the dark section background, and the highlighted Core
 * column in Mantis.
 *
 * `border-collapse: separate` is what lets the outer cells take rounded
 * corners; with it, every cell draws only its right and bottom edge, and the
 * cells on the outside of the grid add the missing top/left edge.
 *
 * The `!important`s in the mobile query answer the older site-wide `.kb-table`
 * rule above (table-layout and min-width), which is forced.
 */
.core-theme-compare-table {
    --compare-line: color-mix(in srgb, var(--wp--preset--color--core-theme-neutral-light) 40%, transparent);
    --compare-line-light: var(--wp--preset--color--core-theme-neutral-lighter);
    --compare-radius: 16px;
    border-radius: 0;
}

.core-theme-compare-table .kb-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

/* Doubled class: Kadence prints its own per-table cell padding later in the
   page at the same specificity, so this has to outrank it rather than tie. */
.wp-block-kadence-table.core-theme-compare-table .kb-table :is(th, td) {
    padding: 26px;
    border: 0;
    border-right: 1px solid var(--compare-line);
    border-bottom: 1px solid var(--compare-line);
    text-align: left;
    vertical-align: middle;
    font-family: var(--wp--preset--font-family--instrument-sans);
    font-size: var(--wp--preset--font-size--core-theme-medium);
    line-height: 1.5;
    color: var(--wp--preset--color--core-theme-white);
}

/* Cell text is a Paragraph block, which carries theme.json's own colour and
   size; let it take the cell's instead. */
.core-theme-compare-table .kb-table :is(th, td) p {
    color: inherit;
    font: inherit;
}

/* Header row */
.core-theme-compare-table .kb-table tr:first-child th {
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 1px solid var(--compare-line);
}

.core-theme-compare-table .kb-table tr:first-child th p {
    font-family: var(--wp--preset--font-family--titling-gothic-fb-wide);
    font-size: var(--wp--preset--font-size--core-theme-heading-six);
    font-weight: 500;
    line-height: 1.4;
    color: var(--wp--preset--color--core-theme-white);
}

/* The empty corner cell above the row labels. */
.core-theme-compare-table .kb-table tr:first-child th:first-child {
    background: transparent;
    border: 0;
}

.core-theme-compare-table .kb-table tr:first-child th:nth-child(2) {
    background: var(--wp--preset--color--core-theme-tiber);
    border-left: 1px solid var(--compare-line);
    border-top-left-radius: var(--compare-radius);
}

.core-theme-compare-table .kb-table tr:first-child th:last-child {
    background: var(--wp--preset--color--core-theme-mantis);
    border-color: var(--wp--preset--color--core-theme-mantis);
    border-top-right-radius: var(--compare-radius);
}

/* Row labels */
.core-theme-compare-table .kb-table tr:not(:first-child) td:first-child {
    font-weight: 700;
    border-left: 1px solid var(--compare-line);
}

.core-theme-compare-table .kb-table tr:nth-child(2) td:first-child {
    border-top: 1px solid var(--compare-line);
    border-top-left-radius: var(--compare-radius);
}

/* Highlighted Core column */
.core-theme-compare-table .kb-table tr:not(:first-child) td:last-child {
    background: var(--wp--preset--color--core-theme-mantis-lightest);
    color: var(--wp--preset--color--core-theme-white-darker);
    border-color: var(--compare-line-light);
}

.core-theme-compare-table .kb-table tr:last-child td:first-child {
    border-bottom-left-radius: var(--compare-radius);
}

.core-theme-compare-table .kb-table tr:last-child td:last-child {
    border-bottom-right-radius: var(--compare-radius);
}

/* Too narrow for three readable columns: the container scrolls sideways. */
@media (max-width: 781px) {
    .core-theme-compare-table .kb-table {
        min-width: 720px !important;
        table-layout: fixed !important;
    }

    .wp-block-kadence-table.core-theme-compare-table .kb-table :is(th, td) {
        padding: 20px;
    }
}

/* ==========================================================================
   FAQ accordion
   Kadence Accordion with the `core-theme-faq` class (icon style: basic circle).
   ========================================================================== */

.wp-block-kadence-accordion.core-theme-faq .kt-accordion-pane {
    border-bottom: 1px solid var(--wp--preset--color--core-theme-neutral-lighter);
}

.wp-block-kadence-accordion.core-theme-faq .kt-blocks-accordion-header {
    align-items: flex-start;
    gap: 24px;
}

.wp-block-kadence-accordion.core-theme-faq .kt-blocks-accordion-header.kt-accordion-panel-active {
    padding-bottom: 14px;
}

.wp-block-kadence-accordion.core-theme-faq .kt-blocks-accordion-title {
    font-family: var(--wp--preset--font-family--titling-gothic-fb-wide);
    font-size: var(--wp--preset--font-size--core-theme-heading-six);
    font-weight: 500;
    line-height: 1.4;
}

.wp-block-kadence-accordion.core-theme-faq .kt-accordion-panel-inner {
    border: 0;
}

/* Toggle: 36px circle with a plus that turns into a minus when open.
   Kadence paints the bars with the title background through an id + :not()
   chain (including on hover), so these selectors carry the full wrapper path
   to outrank it in every state. */
.wp-block-kadence-accordion.core-theme-faq .kt-blocks-accordion-icon-trigger {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.wp-block-kadence-accordion.core-theme-faq .kt-accordion-wrap.kt-accodion-icon-style-basiccircle .wp-block-kadence-pane.kt-accordion-pane .kt-accordion-header-wrap .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger::before,
.wp-block-kadence-accordion.core-theme-faq .kt-accordion-wrap.kt-accodion-icon-style-basiccircle .wp-block-kadence-pane.kt-accordion-pane .kt-accordion-header-wrap .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger::after {
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    margin: 0;
    border-radius: 1px;
    background-color: var(--wp--preset--color--core-theme-mantis-dark);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.wp-block-kadence-accordion.core-theme-faq .kt-accordion-wrap.kt-accodion-icon-style-basiccircle .wp-block-kadence-pane.kt-accordion-pane .kt-accordion-header-wrap .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.wp-block-kadence-accordion.core-theme-faq .kt-accordion-wrap.kt-accodion-icon-style-basiccircle .wp-block-kadence-pane.kt-accordion-pane .kt-accordion-header-wrap .kt-blocks-accordion-header.kt-accordion-panel-active .kt-blocks-accordion-icon-trigger::before,
.wp-block-kadence-accordion.core-theme-faq .kt-accordion-wrap.kt-accodion-icon-style-basiccircle .wp-block-kadence-pane.kt-accordion-pane .kt-accordion-header-wrap .kt-blocks-accordion-header.kt-accordion-panel-active .kt-blocks-accordion-icon-trigger::after {
    background-color: var(--wp--preset--color--core-theme-white);
    transform: translate(-50%, -50%);
}

/* Keep the open toggle green on hover so the white minus stays visible. */
.wp-block-kadence-accordion.core-theme-faq .kt-accordion-wrap.kt-accodion-icon-style-basiccircle .wp-block-kadence-pane.kt-accordion-pane .kt-accordion-header-wrap .kt-blocks-accordion-header.kt-accordion-panel-active:hover .kt-blocks-accordion-icon-trigger {
    background-color: var(--wp--preset--color--core-theme-mantis);
}

/*
 * Smooth scrolling for in-page links (e.g. a button pointing at #contact).
 * Fallback only: assets/js/smooth-scroll.js handles these links with eased,
 * distance-based scrolling and switches this off while it animates.
 * Skipped for visitors who ask their system for reduced motion.
 */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ==========================================================================
   Photo hero overlay
   Add the `core-overlay` class to a Kadence Row Layout, give it the Tiber
   background colour and set the photo as the row's overlay image (cover,
   opacity 100). Desktop: the photo fills the right 57% with a fade into
   Tiber. Tablet/mobile: it becomes a 380px band along the bottom. The brand
   arcs sit on top. Selectors include `.kt-row-has-bg` so they outrank
   Kadence's base overlay rule, in the editor and on the front end.
   ========================================================================== */

.wp-block-kadence-rowlayout.core-overlay.kt-row-has-bg {
    overflow: hidden;
}

.wp-block-kadence-rowlayout.core-overlay.kt-row-has-bg > .kt-row-layout-overlay {
    right: 0;
    left: auto;
    width: 57%;
}

.wp-block-kadence-rowlayout.core-overlay.kt-row-has-bg > .kt-row-layout-overlay::after {
    content: "";
    position: absolute;
    inset: -2px; /* covers sub-pixel seams at the photo's edges */
    background:
        linear-gradient(90deg, var(--wp--preset--color--core-theme-tiber) 0%, color-mix(in srgb, var(--wp--preset--color--core-theme-tiber) 75%, transparent) 30%, color-mix(in srgb, var(--wp--preset--color--core-theme-tiber) 0%, transparent) 80%),
        color-mix(in srgb, var(--wp--preset--color--core-theme-tiber) 20%, transparent);
}

/* Brand arcs */
.wp-block-kadence-rowlayout.core-overlay.kt-row-has-bg::after {
    content: "";
    position: absolute;
    top: -109.4px;
    right: -184.7px;
    width: 928.737px;
    height: 977px;
    background: url("data:image/svg+xml,%3Csvg width='928.737' height='977' viewBox='0 0 928.737 977' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.1'%3E%3Cpath d='M842.525 965.232C822.269 983.194 790.857 980.249 774.123 958.754C670.788 824.48 614.129 659.287 614.129 488.5C614.129 317.713 670.494 152.52 774.123 18.2462C790.857 -3.24943 822.269 -6.19408 842.525 11.768L912.981 74.1938C931.182 90.3891 934.118 118.068 919.146 137.503C843.112 238.208 801.719 360.998 801.719 488.205C801.719 615.413 843.112 738.497 919.146 838.908C933.824 858.343 931.182 886.022 912.981 902.217L842.525 964.643V965.232Z' fill='url%28%23paint0_linear_0_17%29'/%3E%3Cpath d='M86.2119 964.643L15.7556 902.217C-2.44561 886.022 -5.38126 858.343 9.5907 838.908C85.6248 738.203 127.018 615.413 127.018 488.206C127.018 360.998 85.6248 237.914 9.5907 137.503C-5.08769 118.068 -2.44561 90.3891 15.7556 74.1938L86.2119 11.768C106.468 -6.19408 137.88 -3.24943 154.613 18.2462C257.949 152.52 314.608 317.713 314.608 488.5C314.608 659.287 258.243 824.48 154.613 958.754C137.88 980.249 106.468 983.194 86.2119 965.232V964.643Z' fill='url%28%23paint1_linear_0_17%29'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_0_17' x1='771.433' y1='9.14373e-08' x2='771.433' y2='977' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%239ABFDD'/%3E%3Cstop offset='1' stop-color='%239ABFDD' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='paint1_linear_0_17' x1='157.304' y1='9.14373e-08' x2='157.304' y2='977' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%239ABFDD'/%3E%3Cstop offset='1' stop-color='%239ABFDD' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .wp-block-kadence-rowlayout.core-overlay.kt-row-has-bg > .kt-row-layout-overlay {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 380px;
    }

    .wp-block-kadence-rowlayout.core-overlay.kt-row-has-bg > .kt-row-layout-overlay::after {
        background:
            linear-gradient(180deg, var(--wp--preset--color--core-theme-tiber) 0%, color-mix(in srgb, var(--wp--preset--color--core-theme-tiber) 60%, transparent) 35%, color-mix(in srgb, var(--wp--preset--color--core-theme-tiber) 0%, transparent) 85%),
            color-mix(in srgb, var(--wp--preset--color--core-theme-tiber) 15%, transparent);
    }

    .wp-block-kadence-rowlayout.core-overlay.kt-row-has-bg::after {
        top: -57.4px;
        right: auto;
        left: calc(50% - 190px);
        width: 396.755px;
        height: 456.597px;
        background-image: url("data:image/svg+xml,%3Csvg width='396.755' height='456.597' viewBox='0 0 396.755 456.597' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.1'%3E%3Cpath d='M356.464 451.097C346.998 459.492 332.318 458.116 324.497 448.07C276.204 385.317 249.725 308.115 249.725 228.299C249.725 148.482 276.067 71.2798 324.497 8.52729C332.318 -1.51861 346.998 -2.89478 356.464 5.49974L389.392 34.6742C397.898 42.243 399.27 55.1788 392.273 64.2614C356.739 111.326 337.394 168.711 337.394 228.161C337.394 287.611 356.739 345.134 392.273 392.061C399.133 401.143 397.898 414.079 389.392 421.648L356.464 450.822V451.097Z' fill='url%28%23paint0_linear_0_17%29'/%3E%3Cpath d='M40.2908 450.822L7.36332 421.648C-1.14295 414.079 -2.51491 401.143 4.48218 392.061C40.0164 344.996 59.3613 287.611 59.3613 228.161C59.3613 168.711 40.0164 111.188 4.48218 64.2614C-2.37771 55.1788 -1.14295 42.243 7.36332 34.6742L40.2908 5.49974C49.7574 -2.89478 64.4376 -1.51861 72.2579 8.52729C120.552 71.2798 147.031 148.482 147.031 228.299C147.031 308.115 120.689 385.317 72.2579 448.07C64.4376 458.116 49.7574 459.492 40.2908 451.097V450.822Z' fill='url%28%23paint1_linear_0_17%29'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_0_17' x1='323.24' y1='0' x2='323.24' y2='456.597' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%239ABFDD'/%3E%3Cstop offset='1' stop-color='%239ABFDD' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='paint1_linear_0_17' x1='73.5154' y1='0' x2='73.5154' y2='456.597' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%239ABFDD'/%3E%3Cstop offset='1' stop-color='%239ABFDD' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
    }
}

/*
 * Fact list — core Table with the `core-theme-fact-table` class (the
 * "At a glance" rows on the bio pages). Two columns, no header: a bold Tiber
 * label and a plain value, each row closed by a Neutral Lighter rule. Empty
 * values stay as empty cells until the client supplies them.
 * Loaded in the editor and on the front end, so both read the same.
 */
.wp-block-table.core-theme-fact-table {
    margin: 0;
}

.wp-block-table.core-theme-fact-table table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
}

.wp-block-table.core-theme-fact-table :is(td, th) {
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--wp--preset--color--core-theme-neutral-lighter);
    vertical-align: top;
    text-align: left;
    font-family: var(--wp--preset--font-family--instrument-sans);
    font-size: var(--wp--preset--font-size--core-theme-medium);
    font-weight: 400;
    line-height: 1.5;
    color: var(--wp--preset--color--core-theme-neutral-dark);
}

/* Label column: 240px, plus the 24px gap to the value as padding (table
   cells size their content box, so the padding adds on top). */
.wp-block-table.core-theme-fact-table :is(td, th):first-child {
    width: 240px;
    padding-right: 24px;
    font-weight: 700;
    color: var(--wp--preset--color--core-theme-tiber);
}

@media (max-width: 600px) {
    .wp-block-table.core-theme-fact-table :is(td, th):first-child {
        width: 36%;
        padding-right: 16px;
    }
}


/* ==========================================================================
   Single post article — `core-post-content` on the Post Content block
   760px reading column: a larger lead paragraph, Titling Gothic subheadings,
   a Mantis-ruled quote, rounded figures with captions and Mantis bullets.
   ========================================================================== */

.core-post-content > * {
    margin-block: 0;
}

.core-post-content > * + * {
    margin-block-start: 32px;
}

.core-post-content p,
.core-post-content li {
    font-size: var(--wp--preset--font-size--core-theme-large);
    line-height: 1.5;
    color: var(--wp--preset--color--core-theme-neutral-dark);
}

/* Lead paragraph */
.core-post-content > p:first-child {
    font-size: var(--wp--preset--font-size--core-theme-heading-six);
}

.core-post-content h2,
.core-post-content h3,
.core-post-content h4 {
    font-family: var(--wp--preset--font-family--titling-gothic-fb-wide);
    font-weight: 500;
    color: var(--wp--preset--color--core-theme-tiber);
}

.core-post-content h2 {
    font-size: var(--wp--preset--font-size--core-theme-heading-four);
    line-height: 1.3;
}

.core-post-content h3 {
    font-size: var(--wp--preset--font-size--core-theme-heading-five);
    line-height: 1.4;
}

.core-post-content h4 {
    font-size: var(--wp--preset--font-size--core-theme-heading-six);
    line-height: 1.4;
}

.core-post-content a:where(:not(.wp-element-button)) {
    color: var(--wp--preset--color--core-theme-mantis-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Quote */
.core-post-content .wp-block-quote {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-inline: 0;
    padding: 8px 0 8px 28px;
    border: 0;
    border-left: 4px solid var(--wp--preset--color--core-theme-mantis);
}

.core-post-content .wp-block-quote p {
    margin: 0;
    font-family: var(--wp--preset--font-family--titling-gothic-fb-wide);
    font-size: var(--wp--preset--font-size--core-theme-heading-five);
    font-weight: 500;
    line-height: 1.4;
    color: var(--wp--preset--color--core-theme-tiber);
}

.core-post-content .wp-block-quote cite {
    font-size: var(--wp--preset--font-size--core-theme-small);
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    color: var(--wp--preset--color--core-theme-neutral);
}

/* Figure */
.core-post-content .wp-block-image img {
    border-radius: 16px;
}

.core-post-content .wp-block-image figcaption {
    margin: 12px 0 0;
    font-size: var(--wp--preset--font-size--core-theme-small);
    line-height: 1.5;
    text-align: left;
    color: var(--wp--preset--color--core-theme-neutral);
}

/* Bullets: small Mantis dots */
.core-post-content ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 4px;
    list-style: none;
}

.core-post-content ul li {
    position: relative;
    padding-left: 18px;
}

.core-post-content ul li::before {
    content: '';
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--core-theme-mantis);
}

.core-post-content ol {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 22px;
}

.core-post-content ol li::marker {
    font-weight: 600;
    color: var(--wp--preset--color--core-theme-mantis-dark);
}

/* ==========================================================================
   Data table — Kadence Table with the `core-theme-data-table` class
   Header row and row fills come from each Table Row's Background setting
   (Tiber header, alternating White / Peppermint Lighter). This adds the
   rounded outer border, the row rules, the type and equal columns.
   Narrow screens scroll sideways inside the rounded frame.
   ========================================================================== */

.wp-block-kadence-table.core-theme-data-table {
    border: 1px solid var(--wp--preset--color--core-theme-neutral-lighter);
    border-radius: 16px;
    overflow-x: auto;
}

.core-theme-data-table .kb-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.core-theme-data-table .kb-table tr + tr {
    border-top: 1px solid var(--wp--preset--color--core-theme-neutral-lighter);
}

.core-theme-data-table .kb-table :is(th, td) {
    border: 0;
    vertical-align: top;
    text-align: left;
    font-size: var(--wp--preset--font-size--core-theme-medium);
    font-weight: 400;
    line-height: 1.5;
    color: var(--wp--preset--color--core-theme-neutral-dark);
}

.core-theme-data-table .kb-table :is(th, td) p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

/* Header row: white on the row's Tiber fill */
.core-theme-data-table .kb-table tr:first-child > :is(th, td) {
    font-weight: 700;
    color: var(--wp--preset--color--core-theme-white);
}

/* First column names the row */
.core-theme-data-table .kb-table tr:not(:first-child) > :first-child {
    font-weight: 700;
    color: var(--wp--preset--color--core-theme-tiber);
}

@media (max-width: 781px) {
    .core-theme-data-table .kb-table {
        min-width: 720px;
    }
}

/* ==========================================================================
   Kadence Section: horizontal on desktop, stacked on mobile
   When a Section's direction switches to vertical on mobile, Kadence keeps
   its vertical alignment (e.g. `align-items: flex-start`) as the cross-axis
   alignment, so children shrink to their content width. An image-only
   child (a Section with just a background image, like the partner
   portraits) then collapses to 0px wide. The editor uses different CSS, so
   it only breaks on the front end. Stretch the stacked children instead,
   and let each one take its natural height.
   The second selector outranks Kadence's rule inside a Row Layout with
   "Inner Column Height 100%".
   ========================================================================== */

@media (max-width: 767px) {
    .wp-block-kadence-column.kb-section-dir-horizontal.kb-section-sm-dir-vertical > .kt-inside-inner-col,
    .kt-inner-column-height-full:not(.kt-has-1-columns) > .wp-block-kadence-column.kb-section-dir-horizontal.kb-section-sm-dir-vertical > .kt-inside-inner-col {
        align-items: stretch;
    }

    /*
     * Each stacked child takes its natural height. Kadence keeps the
     * horizontal `flex: 1 1 0%` (a 0px start height in a column) and gives a
     * child with a Max Width `flex: 0 1 100%` through a 6-class :not() chain;
     * the repeated class lifts this to 7 so it wins without !important.
     */
    .wp-block-kadence-column.kb-section-dir-horizontal.kb-section-sm-dir-vertical > .kt-inside-inner-col > .wp-block-kadence-column.wp-block-kadence-column.wp-block-kadence-column {
        flex: 0 0 auto;
    }
}
