/* Keep the banner on the shared Products and Services layout, as on Perceval. */
.q-merlin-banner { position: relative; }
.q-merlin-banner,
.q-merlin-banner .wp-block-group,
.q-merlin-banner :is(h1, p) { opacity: 1; transform: none !important; transition: none; }
.q-merlin-banner::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 15px;
    background: linear-gradient(90deg, #f07362, #435bec);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000);
    mask-image: linear-gradient(180deg, transparent, #000);
}
.q-merlin-banner .q-product-banner__title { line-height: .94; }
.q-merlin-banner .q-product-banner__subtitle { text-wrap: wrap; font-weight: 350; line-height: 1.08; }
.q-merlin-banner .q-product-banner__category { font-size: 13.66px; font-weight: 350; line-height: .94; letter-spacing: .19em; }
.q-merlin-banner .q-product-banner__category-icon { width: 23px; height: 23px; margin: 0; }
.q-merlin-banner .q-product-banner__category-icon img { display: block; width: 100%; height: 100%; }
.q-merlin-banner .q-product-banner__category-label { margin: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
@media (min-width: 768px) {
    .q-merlin-banner .q-product-banner__title { font-size: 67.5px; }
    .q-merlin-banner .q-product-banner__subtitle { font-size: 37.5px; }
    .q-merlin-banner .q-product-banner__media img { max-width: min(280px, 100%); max-height: 280px; }
}

.q-merlin-page {
    --ml-blue: #435bec;
    --ml-peach: #f07362;
    --ml-line: rgba(255, 255, 255, .14);
    --ml-line-strong: rgba(255, 255, 255, .28);
    --ml-muted: rgba(255, 255, 255, .66);
    --ml-muted-2: rgba(255, 255, 255, .42);
    --ml-gradient: linear-gradient(90deg, #435bec, #8e62b8 50%, #f07362);
    margin: 0;
    background: #000;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 300;
    line-height: inherit;
    letter-spacing: .01em;
    -webkit-font-smoothing: antialiased;
}
.q-merlin-page *, .q-merlin-page *::before, .q-merlin-page *::after { box-sizing: border-box; }
.q-merlin-page :where(h1, h2, h3, p, figure, .wp-block-group, .wp-block-buttons) { margin: 0; }
.q-merlin-page :where(h1, h2, h3) { color: #fff; text-wrap: balance; font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
/* Shared theme reveal transforms would otherwise displace nested block grids. */
.q-merlin-page.wp-block-group,
.q-merlin-page .wp-block-group,
.q-merlin-page :is(h1, h2, h3, p) {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
}
.q-merlin-page p { font-family: inherit; letter-spacing: .01em; }
.q-merlin-page img { border-radius: 0; }
.q-merlin-page a:where(:not(.wp-element-button)) { color: inherit; text-decoration: none; }
.q-merlin-page :focus-visible { outline: 2px solid var(--ml-blue); outline-offset: 4px; }
.q-merlin-page .ml-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.q-merlin-page .ml-heading { font-size: clamp(32px, 4.2vw, 56px); }
.q-merlin-page .ml-body { font-size: 16px; font-weight: 300; line-height: 1.41; color: var(--ml-muted); max-width: 38em; }
.q-merlin-page .ml-lede { max-width: 30em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.41; color: var(--ml-muted); }
.q-merlin-page .ml-highlight { background: var(--ml-blue); color: #fff; padding: 0 .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.q-merlin-page .ml-source { font-size: 11px; font-weight: 300; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; color: var(--ml-muted-2); }
.q-merlin-page .ml-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.q-merlin-page .wp-block-button { margin: 0; max-width: 100%; }
.q-merlin-page .wp-block-button__link { max-width: 100%; }
.q-merlin-page .ml-text-link { font-size: 15px; font-weight: 500; line-height: 1.4; color: #fff; }
.q-merlin-page .ml-text-link a { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ml-line-strong); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.q-merlin-page .ml-text-link a::after { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.q-merlin-page .ml-text-link a:hover { color: var(--ml-peach); border-color: var(--ml-peach); }
.q-merlin-page .ml-intro-grid { display: grid; gap: clamp(40px, 5vw, 64px); padding-top: clamp(48px, 6vw, 88px); }
.q-merlin-page .ml-intro-copy { display: grid; gap: 24px; justify-items: center; text-align: center; }
.q-merlin-page .ml-intro-copy .ml-body:first-child { max-width: 960px; color: #fff; font-size: clamp(20px, 2vw, 27px); line-height: 1.45; letter-spacing: -.01em; text-wrap: pretty; }
.q-merlin-page .ml-intro-copy .ml-body + .ml-body { max-width: 700px; font-size: 18px; line-height: 1.55; }
.q-merlin-page .ml-intro-copy .ml-actions { justify-content: center; margin-top: 8px; }
.q-merlin-page .ml-highlights { display: grid; gap: 28px; padding-top: 32px; border-top: 1px solid var(--ml-line-strong); }
.q-merlin-page .ml-highlight-row { display: grid; align-content: start; gap: 12px; min-width: 0; }
.q-merlin-page .ml-highlight-row::before { content: ''; display: block; width: 32px; height: 2px; margin-bottom: 6px; background: var(--ml-gradient); }
.q-merlin-page .ml-highlight-title { font-size: 18px; font-weight: 500; line-height: 1.35; }
.q-merlin-page .ml-highlight-row .ml-body { max-width: 29em; font-size: 16px; line-height: 1.5; }
.q-merlin-page .ml-section { padding-block: clamp(56px, 9vw, 128px); }
.q-merlin-page .ml-section-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 72px); }
.q-merlin-page .ml-section-title .q-eyebrow { margin-bottom: 22px; }
.q-merlin-page .ml-stack { grid-template-columns: 1fr; gap: 16px; }
.q-merlin-page .ml-caps { border-top: 1px solid var(--ml-line); }
.q-merlin-page .ml-cap-head { --ml-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23435bec' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='m7 15 3-4 3 3 4-6'/%3E%3C/svg%3E"); position: relative; padding: 26px 42px 26px 64px; border-bottom: 1px solid var(--ml-line); }
.q-merlin-page .ml-cap-head::before { content: ""; position: absolute; left: 0; top: 26px; width: 44px; height: 44px; border: 1px solid var(--ml-line-strong); border-radius: 12px; pointer-events: none; }
.q-merlin-page .ml-cap:nth-child(2) .ml-cap-head { --ml-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23435bec' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M4 19V9m6 10V5m6 14v-8m6 8H2'/%3E%3C/svg%3E"); }
.q-merlin-page .ml-cap:nth-child(3) .ml-cap-head { --ml-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23435bec' stroke-width='1.4'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18m-13 5h3'/%3E%3Ccircle cx='16.5' cy='15' r='1.2'/%3E%3C/svg%3E"); }
.q-merlin-page .ml-cap-head::after { content: ""; position: absolute; left: 11px; top: 37px; width: 22px; height: 22px; background: rgba(255,255,255,.55); mask: var(--ml-icon) center / contain no-repeat; pointer-events: none; }
.q-merlin-page .ml-cap.is-active .ml-cap-head::after { background: #fff; }
.q-merlin-page .ml-cap-title, .q-merlin-page .ml-article-title, .q-merlin-page .ml-video-title { text-wrap: wrap; }
.q-merlin-page .ml-cap-title { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.1; color: rgba(255,255,255,.72); margin-bottom: 6px; }
.q-merlin-page .ml-cap-summary { max-width: 30em; font-size: 14px; line-height: 1.4; color: var(--ml-muted-2); }
.q-merlin-page .ml-cap-toggle { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; color: #fff; }
.q-merlin-page .ml-cap-toggle::after { content: ""; position: absolute; right: 0; top: 34px; width: 28px; height: 28px; border: 1px solid var(--ml-line-strong); border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") center / 11px no-repeat; transition: transform .25s; }
.q-merlin-page .ml-cap-toggle:focus-visible { outline-offset: -2px; }
.q-merlin-page .ml-cap-head:hover .ml-cap-title, .q-merlin-page .ml-cap.is-active .ml-cap-title { color: #fff; }
.q-merlin-page .ml-cap.is-active .ml-cap-summary { color: var(--ml-muted); }
.q-merlin-page .ml-cap.is-active .ml-cap-head::before { background-color: var(--ml-blue); border-color: var(--ml-blue); }
.q-merlin-page .ml-cap.is-active .ml-cap-toggle::after { transform: rotate(180deg); border-color: var(--ml-blue); }
.q-merlin-page .ml-cap-inner { display: grid; gap: 16px; padding: 22px 0 30px; border-bottom: 1px solid var(--ml-line); justify-items: start; }
.q-merlin-page .ml-cap-inner .ml-body { max-width: 40em; }
.q-merlin-page .ml-cap-inner .ml-actions { margin-top: 6px; }
.q-merlin-page .ml-cap-body[hidden] { display: none !important; }
.q-merlin-page .ml-cloud-link { color: #fff; font-size: 15px; line-height: 1.4; }
.q-merlin-page .ml-cloud-link a { border-bottom: 1px solid var(--ml-line-strong); }
.q-merlin-page .ml-cloud-link a:hover { color: var(--ml-peach); }
.q-merlin-page .ml-research { background: linear-gradient(180deg, #000, #070b24 50%, #101c6e); }
.q-merlin-page .ml-research-grid { display: grid; gap: 40px; }
.q-merlin-page .ml-research-copy { display: grid; gap: 22px; justify-items: start; }
.q-merlin-page .ml-research-copy .ml-heading { margin-bottom: 6px; }
.q-merlin-page .ml-research-copy .ml-body { max-width: 40em; }
.q-merlin-page .ml-research-copy .ml-heading + .ml-body { color: #fff; }
.q-merlin-page .ml-research-copy .ml-actions { margin-top: 8px; }
.q-merlin-page .ml-video { display: grid; gap: 8px; align-content: start; }
.q-merlin-page .ml-video-thumb { position: relative; aspect-ratio: 16/9; max-width: 100%; overflow: hidden; border-radius: 14px; border: 1px solid var(--ml-line-strong); margin-bottom: 10px; }
.q-merlin-page .ml-video-thumb a { display: block; height: 100%; }
.q-merlin-page .ml-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.q-merlin-page .ml-video-thumb a::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--ml-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; pointer-events: none; transition: background-color .2s; }
.q-merlin-page .ml-video-thumb a:hover::after { background-color: var(--ml-peach); }
.q-merlin-page .ml-video-thumb a:focus-visible { outline-offset: -4px; }
.q-merlin-page .ml-video:hover img { transform: scale(1.03); }
.q-merlin-page .ml-video-title { font-weight: 300; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.15; }
.q-merlin-page .ml-video .ml-body { font-size: 15px; }
.q-merlin-page .ml-articles-section { padding-top: 0; }
.q-merlin-page .ml-articles-section > .ml-wrap { padding-top: clamp(56px, 9vw, 128px); position: relative; }
.q-merlin-page .ml-articles-section > .ml-wrap::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; border-top: 1px solid var(--ml-line); }
.q-merlin-page .ml-articles { display: grid; gap: 32px; }
.q-merlin-page .ml-article { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.q-merlin-page .ml-article-image { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px 12px 0 0; border: 1px solid var(--ml-line); border-bottom: 0; margin-bottom: 22px; }
.q-merlin-page .ml-article-image::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--ml-gradient); pointer-events: none; }
.q-merlin-page .ml-article-image a { display: block; height: 100%; }
.q-merlin-page .ml-article-image img { display: block; width: 100%; height: 109%; object-fit: cover; object-position: center top; transition: transform .5s; }
.q-merlin-page .ml-article:hover img { transform: scale(1.04); }
.q-merlin-page .ml-article .ml-source { margin-bottom: 10px; }
.q-merlin-page .ml-article-title { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.12; margin-bottom: 12px; }
.q-merlin-page .ml-article .ml-body { font-size: 15px; line-height: 1.45; margin-bottom: 18px; }
.q-merlin-page .ml-eco { margin-top: 28px; max-width: 34em; margin-inline: auto; font-size: 13px; color: var(--ml-muted); line-height: 1.4; }
.q-merlin-page .ml-eco a { color: #fff; border-bottom: 1px solid var(--ml-line-strong); }
.q-merlin-page .ml-eco a:hover { color: var(--ml-peach); border-color: var(--ml-peach); }
@media (min-width: 700px) { .q-merlin-page .ml-articles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) {
    .q-merlin-page .ml-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
    .q-merlin-page .ml-highlight-row + .ml-highlight-row { border-left: 1px solid var(--ml-line); padding-left: 32px; }
}
@media (min-width: 900px) {
    .q-merlin-page .ml-caps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; border-top: 0; align-items: start; }
    .q-merlin-page .ml-cap { display: contents; }
    .q-merlin-page .ml-cap-head { grid-column: 1; padding: 28px 68px 28px 88px; }
    .q-merlin-page .ml-cap:first-child .ml-cap-head { border-top: 1px solid var(--ml-line); }
    .q-merlin-page .ml-cap-head::before { left: 24px; top: 28px; }
    .q-merlin-page .ml-cap-head::after { left: 35px; top: 39px; }
    .q-merlin-page .ml-cap-toggle::after { right: 20px; transform: rotate(-90deg); }
    .q-merlin-page .ml-cap.is-active .ml-cap-head { background: linear-gradient(180deg, var(--ml-blue), var(--ml-peach)) left / 3px 100% no-repeat, rgba(255,255,255,.035); }
    .q-merlin-page .ml-cap.is-active .ml-cap-toggle::after { transform: rotate(0); }
    .q-merlin-page .ml-cap-body { grid-column: 2; align-self: stretch; }
    .q-merlin-page .ml-caps.is-enhanced .ml-cap-body { grid-row: 1 / span 3; }
    .q-merlin-page .ml-cap:nth-child(1) .ml-cap-head { grid-row: 1; }
    .q-merlin-page .ml-cap:nth-child(2) .ml-cap-head { grid-row: 2; }
    .q-merlin-page .ml-cap:nth-child(3) .ml-cap-head { grid-row: 3; }
    .q-merlin-page .ml-cap-inner { height: 100%; grid-template-rows: auto auto 1fr; padding: 40px 44px; border: 1px solid var(--ml-line); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.035), transparent); align-content: start; }
    .q-merlin-page .ml-cap-inner .ml-body { max-width: 34em; font-size: 17px; }
    .q-merlin-page .ml-cap-inner .ml-body:first-child { color: #fff; }
    .q-merlin-page .ml-cap-inner .ml-actions { align-self: end; margin-top: 18px; }
    .q-merlin-page .ml-research-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
    .q-merlin-page .ml-video { position: sticky; top: 120px; }
}
@media (min-width: 1024px) {
    .q-merlin-page .ml-wrap { padding-inline: max(40px, env(safe-area-inset-left, 0px)) max(40px, env(safe-area-inset-right, 0px)); }
    .q-merlin-page .ml-articles-section > .ml-wrap::before { left: 40px; right: 40px; }
}
@media (max-width: 599px) {
    .q-merlin-page .ml-intro-copy { gap: 20px; justify-items: start; text-align: left; }
    .q-merlin-page .ml-intro-copy .ml-body + .ml-body { font-size: 16px; }
    .q-merlin-page .ml-intro-copy .ml-actions, .q-merlin-page .ml-intro-copy .ml-primary { width: 100%; }
    .q-merlin-page .ml-primary .wp-block-button__link { width: 100%; }
    .q-merlin-page .ml-lede { font-size: 16px; }
    .q-merlin-page .ml-eco { margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .q-merlin-page *, .q-merlin-page *::after { transition: none !important; animation: none !important; }
}
/* The editor keeps every capability visible so all content remains directly editable. */
.editor-styles-wrapper .q-merlin-page .ml-caps { display: block; }
.editor-styles-wrapper .q-merlin-page .ml-cap { display: block; }
