/* Reuse the Neuropol brand face already embedded in Model eXplorer. */
@font-face { font-family: "MemryX Neuropol"; src: url("neuropol.otf") format("opentype"); font-style: normal; font-weight: 400; font-display: swap; }
/* Landing design: navy typography, cyan actions, tonal surfaces, Material Symbols. */
.mx-landing {
  --mx-ink: #152d48;
  --mx-type-section: clamp(1.5rem, 2.4vw, 1.85rem);
  --mx-type-title: 1.125rem;
  --mx-type-body: .95rem;
  --mx-type-label: .82rem;
  --mx-subtle: #536678;
  --mx-accent: #007c91;
  --mx-on-primary: #fff;
  --mx-border: #dce5eb;
  --mx-surface: #fff;
  --mx-muted: #f3f6f8;
  --mx-tonal: #e8f5f7;
  color: var(--mx-ink);
  font-family: var(--pst-font-family-base);
  line-height: 1.6;
}
html[data-theme="dark"] .mx-landing {
  --mx-ink: #e8edf2; --mx-subtle: #b2bbc5; --mx-accent: #79cedb;
  --mx-on-primary: #12282e; --mx-border: #343b44; --mx-surface: #22282f;
  --mx-muted: #272e36; --mx-tonal: #253a40;
}
.mx-landing *, .mx-landing *::before, .mx-landing *::after { box-sizing: border-box; }
.mx-landing :is(h1,h2,h3,h4) { color: var(--mx-ink); font-family: inherit; line-height: 1.2; }
.mx-landing :is(h2,h3,h4) { font-weight: 650; letter-spacing: -.025em; }
.mx-landing h2 { font-size: var(--mx-type-section); margin: 0 0 .6rem; }
.mx-landing p { color: var(--mx-subtle); }
.mx-landing section { margin: 3rem 0; }
.mx-landing .mx-icon { display: inline-block; width: 24px; height: 24px; min-width: 24px; flex-shrink: 0; fill: currentColor; vertical-align: middle; }
.mx-landing [hidden] { display: none !important; }
.mx-landing :is(a,button,summary):focus-visible { outline: 3px solid var(--mx-accent); outline-offset: 4px; }
.mx-landing a { text-underline-offset: .2em; }
.mx-landing .mx-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A concise introduction keeps the focus on the developer's work. */
.mx-landing .mx-hero { container-type: inline-size; padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--mx-border); border-radius: 20px; background: var(--mx-surface); box-shadow: 0 6px 24px #152d4808; }
.mx-landing .mx-brand-lockup { display: flex; flex-direction: row; align-items: center; gap: 2%; width: 100%; margin: 0 0 .75rem; padding-bottom: 0; border-bottom: 0; line-height: 1; }
.mx-landing .mx-brand-lockup img { display: block; width: 40%; height: auto; flex-shrink: 0; background: transparent; }
.mx-landing .mx-brand-subtitle { color: #2caaca; font-family: "MemryX Neuropol", sans-serif; font-size: clamp(.875rem, 5.2cqi, 3rem); font-weight: 400; font-synthesis: none; letter-spacing: 0; white-space: nowrap; }
html[data-theme="dark"] .mx-landing .mx-brand-subtitle { color: #65cde1; }
.mx-landing .mx-hero-description { margin: 0; max-width: 76ch; padding: 0; font-size: .95rem; line-height: 1.65; }

/* Explicit state colors prevent documentation-theme hover overrides. */
.mx-landing .mx-primary-link, .mx-landing .mx-primary-link:visited { display: inline-flex; justify-content: center; align-items: center; gap: .75rem; padding: .7rem 1.1rem; border-radius: 28px; font-size: var(--mx-type-body); font-weight: 650; color: var(--mx-on-primary); background: var(--mx-accent); text-decoration: none; min-height: 44px; }
.mx-landing .mx-primary-link:is(:hover,:focus-visible,:active) { color: var(--mx-on-primary); background: color-mix(in srgb,var(--mx-accent),#000 12%); text-decoration: none; box-shadow: 0 3px 9px #102e4a1f; }
.mx-landing :is(.mx-secondary-link,.mx-card-link,.mx-button):is(:link,:visited,:hover,:focus-visible) { color: var(--mx-accent); }
.mx-landing .mx-secondary-link { display: flex; align-items: center; gap: .3rem; width: fit-content; margin-top: .75rem; font-size: var(--mx-type-label); text-decoration: none; }
.mx-landing :is(.mx-secondary-link,.mx-card-link):hover { text-decoration: underline; }
.mx-landing .mx-section-heading { margin-bottom: 1.35rem; }
.mx-landing .mx-section-heading p { margin: 0; font-size: .96rem; }

/* Compact quickstart: bounded setup content, code sized to its contents. */
.mx-landing .mx-quickstart { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(1.5rem, 3vw, 3rem); background: var(--mx-surface); border: 1px solid var(--mx-border); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.mx-landing .mx-quickstart-intro { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.mx-landing .mx-feature-icon { display: inline-grid; place-items: center; color: var(--mx-ink); background: color-mix(in srgb, var(--mx-accent) 18%, var(--mx-surface)); border: 1px solid color-mix(in srgb, var(--mx-accent) 40%, var(--mx-border)); width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; }
.mx-landing .mx-feature-icon .mx-icon { width: 28px; height: 28px; }
.mx-landing .mx-quickstart h3 { font-size: 1.4rem; margin: 0 0 1rem; }
.mx-landing .mx-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.mx-landing .mx-steps li { display: flex; align-items: center; gap: .7rem; }
.mx-landing .mx-steps li > .mx-icon { width: 22px; height: 22px; min-width: 22px; }
.mx-landing .mx-steps strong { display: block; font-size: var(--mx-type-body); font-weight: 650; }
.mx-landing .mx-steps small { display: block; color: var(--mx-subtle); font-size: var(--mx-type-label); }
.mx-landing .mx-quickstart-code { min-width: 0; align-self: start; }
.mx-landing .mx-code-examples { background: #14283b; color: #edf5fb; border: 1px solid #2e455a; border-radius: 12px; overflow: hidden; }
.mx-landing .mx-code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #1b3248; padding-right: .6rem; border-bottom: 1px solid #385066; }
.mx-landing .mx-tabs { display: flex; }
.mx-landing .mx-tabs button { font: inherit; font-size: var(--mx-type-label); min-height: 44px; padding: .6rem .9rem; color: #b9cddd; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.mx-landing .mx-tabs button[aria-selected="true"] { color: #9ae6ec; border-bottom-color: #9ae6ec; font-weight: 650; }
.mx-landing .mx-tabs button:hover { background: #29445b; }
.mx-landing .mx-copy { display: flex; align-items: center; gap: .35rem; min-height: 34px; min-width: 96px; justify-content: center; padding: .25rem .5rem; color: #e3edf5; background: transparent; border: 1px solid #496175; border-radius: 6px; font: inherit; font-size: .7rem; cursor: pointer; }
.mx-landing .mx-copy .mx-icon { width: 17px; height: 17px; min-width: 17px; }
.mx-landing .mx-copy:hover { background: #355169; }
.mx-landing .mx-code-panel pre { font-size: .84rem; line-height: 1.65; margin: 0; padding: 1rem; height: auto; max-height: 26rem; overflow: auto; background: transparent; color: #edf5fb; border: 0; border-radius: 0; }
.mx-landing .mx-code-panel code { color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; background: transparent; }
.mx-landing .mx-code-comment { color: #95b4ca; }
.mx-landing .mx-code-panel h3 { color: #edf5fb; font-size: .9rem; margin: .8rem 1rem 0; }
.mx-landing .mx-code-result { display: flex; align-items: center; gap: .4rem; font-size: var(--mx-type-label); margin: .65rem 0 0; }
.mx-landing .mx-code-result .mx-icon { height: 18px; width: 18px; min-width: 18px; }

/* Real previews, quieter card surfaces, and clear destinations. */
.mx-landing .mx-next-heading { margin: 1.75rem 0 1rem; font-size: 1.2rem; }
.mx-landing .mx-project-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.mx-landing .mx-project-card { background: var(--mx-surface); border: 1px solid var(--mx-border); border-radius: 18px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.mx-landing .mx-project-card:is(:hover,:focus-within) { transform: translateY(-3px); box-shadow: 0 10px 25px #17395312; border-color: var(--mx-accent); }

.mx-landing .mx-project-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem; }
.mx-landing .mx-project-header h4 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: var(--mx-type-title); }
.mx-landing .mx-project-header h4 > .mx-icon { width: 28px; height: 28px; min-width: 28px; }
.mx-landing .mx-project-body p { font-size: var(--mx-type-body); margin: .65rem 0 1rem; }
.mx-landing .mx-card-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; font-size: var(--mx-type-label); font-weight: 650; text-decoration: none; }
.mx-landing .mx-card-link .mx-icon { width: 20px; height: 20px; min-width: 20px; }
.mx-landing .mx-doc-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.mx-landing .mx-doc-card { display: flex; flex-direction: column; gap: .65rem; padding: 1.15rem; border-radius: 14px; background: var(--mx-muted); text-decoration: none; color: var(--mx-subtle); font-size: .82rem; border: 1px solid transparent; }
.mx-landing .mx-doc-card:is(:hover,:focus-visible) { color: var(--mx-subtle); background: var(--mx-tonal); border-color: var(--mx-border); }
.mx-landing .mx-card-title { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; color: var(--mx-ink); font-size: .98rem; font-weight: 650; }
.mx-landing .mx-card-title .mx-icon { height: 30px; width: 30px; }
@media (max-width: 1100px) { .mx-landing .mx-doc-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) {
 .mx-landing .mx-quickstart { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 650px) {
 .mx-landing .mx-quickstart { padding: 1rem; }
 .mx-landing .mx-project-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 400px) { .mx-landing .mx-doc-grid { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .mx-landing .mx-project-card { transition: none; transform: none; } }

.mx-landing .mx-count-badge { width: fit-content; padding: .18rem .6rem; border-radius: 20px; background: var(--mx-tonal); color: var(--mx-ink); font-size: var(--mx-type-label); font-weight: 600; line-height: 1.5; }
.mx-landing .mx-section-description { margin: 0 0 1.25rem; font-size: var(--mx-type-body); }
.mx-landing .mx-workflow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 0; margin: 0; gap: 1rem; }
.mx-landing .mx-workflow > li { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--mx-border); border-radius: 14px; overflow: hidden; background: var(--mx-surface); }
.mx-landing .mx-flow-heading { display: flex; align-items: center; gap: .5rem; padding: 1rem; background: var(--mx-muted); border-bottom: 1px solid var(--mx-border); }
.mx-landing .mx-flow-heading h3 { margin: 0; font-size: var(--mx-type-title); }
.mx-landing .mx-workflow p { margin: 0 0 1rem; font-size: var(--mx-type-body); }
.mx-landing .mx-workflow a { display: block; width: fit-content; font-size: var(--mx-type-label); padding-block: .2rem; text-decoration: none; }
.mx-landing :is(.mx-workflow,.mx-helper-links) a:is(:link,:visited,:hover,:focus-visible) { color: var(--mx-accent); }
.mx-landing :is(.mx-workflow,.mx-helper-links) a:hover { text-decoration: underline; }
.mx-landing .mx-helper-links { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.4rem; padding-top: 1rem; font-size: var(--mx-type-label); }
.mx-landing .mx-helper-links > span { color: var(--mx-subtle); }
.mx-landing .mx-helper-links a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
@media (max-width: 650px) { .mx-landing .mx-workflow { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; } .mx-landing .mx-workflow > li:nth-child(2)::after { display: none; } }
@media (max-width: 400px) { .mx-landing .mx-workflow { grid-template-columns: minmax(0,1fr); } .mx-landing .mx-workflow > li:not(:last-child)::after { display: none; } }

.mx-landing .mx-project-header { padding: 1.1rem 1.2rem; background: var(--mx-muted); border-bottom: 1px solid var(--mx-border); }
@media (max-width: 900px) and (min-width: 651px) { .mx-landing .mx-project-grid { grid-template-columns: minmax(0,1fr); } }

.mx-landing .mx-flow-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.mx-landing .mx-flow-links { margin-top: auto; }
.mx-landing .mx-framework-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin: 0 0 1.5rem; }
.mx-landing .mx-framework-label { color: var(--mx-subtle); font-size: var(--mx-type-label); font-weight: 600; }
.mx-landing .mx-framework-logos { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.mx-landing .mx-framework-logos a { display: flex; align-items: center; justify-content: center; width: 80px; height: 56px; padding: .65rem; border: 1px solid var(--mx-border); border-radius: 10px; background: #fff; }
.mx-landing .mx-framework-logos a:hover { border-color: var(--mx-accent); }
.mx-landing .mx-framework-logos img { max-width: 100%; max-height: 100%; object-fit: contain; background: transparent; filter: none; }
@media (max-width: 1100px) { .mx-landing .mx-workflow { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 400px) { .mx-landing .mx-workflow { grid-template-columns: minmax(0,1fr); } }

.mx-landing .mx-quickstart-heading { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.15rem; }
.mx-landing .mx-quickstart-heading h3 { margin: 0; font-size: clamp(1rem, 1.5vw, 1.25rem); }

/* Help developers choose an entry point before they encounter the code. */
.mx-landing #start-developing { scroll-margin-top: 6rem; }
.mx-landing section[aria-labelledby="start-developing"] { margin-top: 1.75rem; }
.mx-landing .mx-release-line { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .85rem; font-size: var(--mx-type-label); }
.mx-landing .mx-release-line strong { color: var(--mx-subtle); font-weight: 600; }
.mx-landing :is(.mx-release-line,.mx-framework-note,.mx-support-links) a:is(:link,:visited,:hover,:focus-visible) { color: var(--mx-accent); }
.mx-landing .mx-start-path { margin-top: 1.75rem; }
.mx-landing .mx-path-label { font-size: var(--mx-type-label); margin: 0 0 .5rem; }
.mx-landing .mx-framework-strip { margin-bottom: .65rem; }
.mx-landing .mx-framework-note { margin: 0 0 1.25rem; font-size: var(--mx-type-label); }
.mx-landing .mx-support { padding: 1.25rem; border: 1px solid var(--mx-border); border-radius: 14px; }
.mx-landing .mx-support h2 { font-size: 1.2rem; }
.mx-landing .mx-support p { font-size: var(--mx-type-body); margin: 0 0 1rem; }
.mx-landing .mx-support-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: var(--mx-type-label); }
.mx-landing .mx-support-links a { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 450px) { .mx-landing .mx-brand-lockup { gap: 2%; } .mx-landing .mx-brand-lockup img { width: 40%; } }

/* Outlined action and generous corners echo the featured-card reference. */
.mx-landing .mx-quickstart .mx-primary-link { border: 2px solid var(--mx-ink); background: transparent; color: var(--mx-ink); box-shadow: none; }
.mx-landing .mx-quickstart .mx-primary-link:is(:hover,:focus-visible,:active) { background: var(--mx-tonal); color: var(--mx-ink); box-shadow: none; }
.mx-landing .mx-quickstart .mx-steps { gap: .85rem; }
.mx-landing .mx-quickstart .mx-steps strong { font-weight: 500; }

/* Full-bleed section paint preserves the document's content alignment. */
.mx-landing .mx-start-section {
  --mx-section-background: #f6f7f8;
  position: relative;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  background: var(--mx-section-background);
  box-shadow: 0 0 0 100vmax var(--mx-section-background);
  clip-path: inset(0 -100vmax);
}
html[data-theme="dark"] .mx-landing .mx-start-section { --mx-section-background: #191e24; }
.mx-landing section.mx-start-section { margin-block: 2.25rem 3rem; }
.mx-landing .mx-section-heading { margin-bottom: 1.75rem; }
.mx-landing .mx-section-heading p,
.mx-landing .mx-section-description {
  color: var(--mx-subtle);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: .005em;
}
.mx-landing :is(.mx-next-heading, .mx-quickstart-heading h3, .mx-project-header h4) {
  font-weight: 600;
  letter-spacing: -.025em;
}
.mx-landing .mx-next-heading { margin-top: 2rem; font-size: 1.3rem; }
.mx-landing .mx-project-card { box-shadow: none; transition: border-color .18s ease; }
.mx-landing .mx-project-card:is(:hover,:focus-within) { transform: none; box-shadow: none; }
.mx-landing .mx-project-header { background: var(--mx-surface); border-bottom: 0; padding-bottom: .25rem; }
.mx-landing .mx-project-body { padding-top: .75rem; }

/* The Sphinx article scroll container otherwise clips the full-bleed paint. */
.bd-main .bd-content .bd-article-container:has(.mx-landing) { overflow: visible; }

/* Crop the original brand mark in CSS, preserving the supplied logo asset. */
.mx-landing .mx-brain-crop { position: relative; display: block; width: 32px; height: 32px; overflow: hidden; }
.mx-landing .mx-brain-crop img { position: absolute; width: 575%; max-width: none; height: auto; left: -7%; top: -18%; background: transparent; padding: 0; border-radius: 0; }

.mx-landing .mx-quickstart-mark { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; background: transparent; border: 0; border-radius: 0; padding: 0; }

/* Product-led hero with full-width navy background and aligned content. */
.mx-landing .mx-hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 2rem; padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border: 0; border-radius: 0; background: #091321;
  box-shadow: 0 0 0 100vmax #091321; clip-path: inset(0 -100vmax);
}
.mx-landing .mx-hero-copy { min-width: 0; }
.mx-landing .mx-hero-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.5rem; }
.mx-landing .mx-hero-brand img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; background: transparent; padding: 0; }
.mx-landing .mx-hero-brand span { font-family: "MemryX Neuropol", sans-serif; font-size: .8rem; color: #64d1e4; white-space: nowrap; }
.mx-landing .mx-hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.12; font-weight: 600; letter-spacing: -.04em; margin: 0 0 1.25rem; border: 0; padding: 0; }
.mx-landing .mx-hero-description { color: #c3cfdb; font-size: 1rem; line-height: 1.7; max-width: 48ch; margin-bottom: 1.75rem; }
.mx-landing .mx-hero .mx-primary-link { background: #65d8e8; color: #091321; }
.mx-landing .mx-hero .mx-primary-link:hover { background: #9ae8f2; }
.mx-landing .mx-hero .mx-release-line { margin-top: 1.5rem; font-size: .75rem; }
.mx-landing .mx-hero .mx-release-line strong { color: #aabccb; }
.mx-landing .mx-hero .mx-release-line a { color: #83dfeb; }
.mx-landing .mx-hero-product img { display: block; width: 100%; height: auto; background: transparent; padding: 0; border-radius: 0; }
.mx-landing .mx-hero + section.mx-start-section { margin-top: 0; }
@media (max-width: 700px) {
  .mx-landing .mx-hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .mx-landing .mx-hero-product { max-width: 480px; justify-self: center; }
  .mx-landing .mx-hero-brand { gap: .5rem; }
  .mx-landing .mx-hero-brand img { width: 36px; height: 36px; }
  .mx-landing .mx-hero-brand span { font-size: .7rem; }
}

/* Remove the documentation gutter above the landing hero. */
.bd-main .bd-content .bd-article-container:has(.mx-landing) { padding-top: 0; }
.bd-main:has(.mx-landing) .bd-header-article { display: none; }
.mx-landing .mx-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding-block: 2rem; }
.mx-landing .mx-hero h1 { font-size: clamp(1.8rem, 2.7vw, 2.6rem); margin-bottom: 1rem; }
.mx-landing .mx-hero-brand { margin-bottom: 1rem; }
.mx-landing .mx-hero-brand span { font-size: 1.2rem; }
.mx-landing .mx-hero-description { margin-bottom: 1.25rem; line-height: 1.6; }
.mx-landing .mx-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.mx-landing .mx-hero-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .85rem; border-radius: 28px; font-size: .82rem; font-weight: 600; text-decoration: none; }
.mx-landing .mx-hero-button:is(:link,:visited) { border: 1px solid #65778a; color: #edf5fb; }
.mx-landing .mx-hero-button:is(:hover,:focus-visible) { color: #fff; background: #203447; border-color: #83dfeb; }
.mx-landing .mx-hero .mx-release-line { margin-top: 1rem; }
@media (max-width: 700px) {
 .mx-landing .mx-hero { grid-template-columns: minmax(0, 1fr); padding-block: 1.5rem; }
 .mx-landing .mx-hero-brand span { font-size: 1rem; }
 .mx-landing .mx-hero-product { max-width: 340px; }
}
.bd-main .bd-content .bd-article-container .bd-article:has(.mx-landing) { padding-top: 0; }

/* Keep the product centered within the hero column. */
.mx-landing .mx-hero-product { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; }

/* Override Sphinx's dark-mode image backing for transparent brand assets. */
html[data-theme="dark"] .bd-content .mx-landing :is(.mx-hero-brand img, .mx-hero-product img, .mx-quickstart-mark) {
  background: transparent;
  padding: 0;
  border-radius: 0;
  filter: none;
}


/* Reserve a measured scroll stage so compression cannot move its own trigger. */
.mx-landing { overflow-anchor: none; }
.mx-hero-stage { background: #091321; box-shadow: 0 0 0 100vmax #091321; clip-path: inset(0 -100vmax); }
.mx-landing .mx-hero-stage + section.mx-start-section { margin-top: 0; }
.mx-stage-active .mx-hero { position: sticky; top: var(--mx-nav-height); }
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
 .mx-landing .mx-hero.mx-scroll-hero {
   grid-template-columns: minmax(0, 1fr) minmax(0, calc(43% * (1 - var(--mx-scroll, 0))));
   gap: calc(2rem * (1 - var(--mx-scroll, 0)));
   padding-block: calc(2rem - .9rem * var(--mx-scroll, 0));
 }
 .mx-landing .mx-scroll-hero .mx-hero-product {
   min-width: 0;
   opacity: max(0, calc(1 - var(--mx-scroll, 0) * 2));
   transform: scale(calc(1 - .05 * var(--mx-scroll, 0)));
 }
 .mx-landing .mx-scroll-hero .mx-hero-description {
   max-width: none;
   opacity: max(0, calc(1 - var(--mx-scroll, 0) * 1.5));
   height: calc(var(--mx-description-height) * (1 - var(--mx-scroll, 0)));
   overflow: hidden;
   margin-bottom: calc(1.25rem * (1 - var(--mx-scroll, 0)));
 }
 .mx-landing .mx-scroll-hero .mx-release-line {
   opacity: max(0, calc(1 - var(--mx-scroll, 0) * 1.5));
   height: calc(var(--mx-release-height) * (1 - var(--mx-scroll, 0)));
   overflow: hidden;
   margin-top: calc(1rem * (1 - var(--mx-scroll, 0)));
 }
}

/* Quiet, scroll-scrubbed group entrances. Content stays readable throughout.
   Unsupported browsers and reduced-motion users get a static layout. */
@keyframes mx-group-enter {
 from { transform: translateY(10px); }
 to { transform: translateY(0); }
}
@supports (animation-timeline: view()) {
 @media (prefers-reduced-motion: no-preference) {
  .mx-landing :is(.mx-quickstart,.mx-project-grid,.mx-doc-grid,.mx-workflow,.mx-support) {
   animation: mx-group-enter linear both;
   animation-timeline: view();
   animation-range: entry 0% entry 100%;
  }
 }
}

/* Charcoal hero surface in dark mode, including the sticky scroll stage. */
html[data-theme="dark"] .mx-landing :is(.mx-hero, .mx-hero-stage) {
  background-color: #14191f;
  box-shadow: 0 0 0 100vmax #14191f;
}

/* Neutral dark surfaces; cyan is reserved for actions and small accents. */
html[data-theme="dark"] .mx-landing .mx-quickstart { background: #22282f; border-color: #3a424c; }
html[data-theme="dark"] .mx-landing .mx-code-examples { background: #151a20; border-color: #363e48; }
html[data-theme="dark"] .mx-landing .mx-code-toolbar { background: #292f37; border-bottom-color: #3a424c; }
html[data-theme="dark"] .mx-landing .mx-code-comment { color: #a6b5c4; }
html[data-theme="dark"] .mx-landing .mx-tabs button:hover,
html[data-theme="dark"] .mx-landing .mx-copy:hover { background: #353e48; }
html[data-theme="dark"] .mx-landing .mx-quickstart .mx-primary-link { border-color: #8e9ba9; color: #e8edf2; }
html[data-theme="dark"] .mx-landing .mx-quickstart .mx-primary-link:is(:hover,:focus-visible) { background: #303c45; border-color: var(--mx-accent); }

/* Separate reference navigation from the development workflow. */
.mx-landing section[aria-labelledby="how-it-works"] {
  border-top: 1px solid var(--mx-border);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Interior fills match the existing outline geometry, rather than a different icon variant. */
.mx-landing .mx-doc-card .mx-icon-outline { fill: var(--mx-ink); }
.mx-landing .mx-doc-card .mx-icon-fill { fill: #2caaca; opacity: 0; transition: opacity 160ms ease; }
.mx-landing .mx-doc-card:is(:hover,:focus-visible) { background: var(--mx-muted); border-color: var(--mx-accent); }
.mx-landing .mx-doc-card:is(:hover,:focus-visible) .mx-icon-fill { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mx-landing .mx-doc-card .mx-icon-fill { transition: none; } }

.mx-landing .mx-framework-strip { justify-content: center; margin-bottom: 1.5rem; }
.mx-landing .mx-framework-logos { justify-content: center; }

/* Shared MemryX blue highlight for catalog count badges. */
.mx-landing .mx-count-badge { transition: background-color 160ms ease, color 160ms ease; }
.mx-landing .mx-project-card:is(:hover,:focus-within) .mx-count-badge {
  background-color: #2caaca;
  color: #10243a;
}
@media (prefers-reduced-motion: reduce) { .mx-landing .mx-count-badge { transition: none; } }

/* Match the install action to the shared MemryX blue highlight. */
.mx-landing .mx-quickstart .mx-primary-link:is(:hover,:focus-visible,:active),
html[data-theme="dark"] .mx-landing .mx-quickstart .mx-primary-link:is(:hover,:focus-visible,:active) {
  background: #2caaca;
  border-color: #2caaca;
  color: #10243a;
}

/* Extend each existing link across its card without adding duplicate tab stops. */
.mx-landing .mx-project-card { position: relative; }
.mx-landing .mx-project-card .mx-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mx-landing .mx-project-card:focus-within { outline: 3px solid var(--mx-accent); outline-offset: 3px; }
.mx-landing .mx-project-card:is(:hover,:focus-within) .mx-count-badge { background-color: #b8e6a4; color: #10243a; }
.mx-landing .mx-quickstart .mx-primary-link:is(:hover,:focus-visible,:active) { border-color: var(--mx-ink); }
html[data-theme="dark"] .mx-landing .mx-quickstart .mx-primary-link:is(:hover,:focus-visible,:active) { border-color: #d1d5db; }

/* A compact application window replaces the hardware photograph. */
.mx-landing .mx-demo-window { width: 100%; min-width: 0; overflow: hidden; border: 1px solid #4b5a69; border-radius: 14px; background: #182330; box-shadow: 0 12px 32px #0003; }
.mx-landing .mx-demo-titlebar { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; color: #d1dde8; font-size: .7rem; line-height: 1.4; white-space: nowrap; border-bottom: 1px solid #3b4957; }
.mx-landing .mx-window-dots { display: flex; gap: 5px; }
.mx-landing .mx-window-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #778795; }
.mx-landing .mx-demo-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 6px; }
.mx-landing .mx-demo-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #0d151e; }
.mx-landing .mx-hero-product .mx-demo-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mx-landing .mx-demo-tile span { position: absolute; inset: auto 0 0; padding: .35rem; background: #091321e8; color: #fff; font-size: .6rem; line-height: 1.3; opacity: 0; }
.mx-landing .mx-demo-tile:is(:hover,:focus-visible) span { opacity: 1; }
.mx-landing .mx-demo-tile:focus-visible { outline-offset: -3px; }
html[data-theme="dark"] .mx-landing .mx-demo-window { background: #20262d; border-color: #434d57; }

/* Equal slide footprints keep the hero stable during rotation. */
.mx-landing .mx-slides { width: 100%; min-width: 0; }
.mx-landing .mx-slide { margin: 0; width: 100%; min-width: 0; }
.mx-landing .mx-slideshow-ready .mx-slides { display: grid; }
.mx-landing .mx-slideshow-ready .mx-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 350ms ease, visibility 350ms; }
.mx-landing .mx-slideshow-ready .mx-slide.is-active { opacity: 1; visibility: visible; }
.mx-landing .mx-slide-visual { aspect-ratio: 1.2; display: flex; align-items: center; justify-content: center; }
.mx-landing .mx-hero-product .mx-slide-visual > img { width: 100%; height: 100%; object-fit: contain; }
.mx-landing .mx-slide figcaption { text-align: center; color: #d1dde8; font-size: .9rem; font-weight: 500; margin-top: .65rem; }
.mx-landing .mx-slide-controls { display: flex; align-items: center; justify-content: center; gap: .65rem; margin-top: .45rem; color: #b5c4d1; font-size: .75rem; }
.mx-landing .mx-slide-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: .35rem; border: 1px solid #596875; border-radius: 20px; background: transparent; color: #d1dde8; font: inherit; cursor: pointer; }
.mx-landing .mx-slide-controls button:hover { background: #2b3945; }
.mx-landing [data-slide-prev] .mx-icon { transform: rotate(180deg); }
.mx-landing [data-slide-pause] { min-width: 54px; }
@media (prefers-reduced-motion: reduce) { .mx-landing .mx-slideshow-ready .mx-slide { transition: none; } }

/* Plain navigation arrows flank the entire hero, outside the content columns. */
.mx-landing .mx-hero { position: relative; }
.mx-stage-active .mx-hero { position: sticky; }
.mx-landing .mx-hero-arrows button { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 0; padding: 0; background: transparent; color: #a8bbc9; cursor: pointer; }
.mx-landing .mx-hero-arrows [data-slide-prev] { left: clamp(-100px, -5vw, -44px); }
.mx-landing .mx-hero-arrows [data-slide-next] { right: clamp(-100px, -5vw, -44px); }
.mx-landing .mx-hero-arrows button:hover { color: #65d8e8; }
.mx-landing .mx-hero-actions a:is(:link,:visited) { background: transparent; border: 1px solid #65778a; color: #edf5fb; }
.mx-landing .mx-hero-actions a.is-slide-active { background: #65d8e8; border-color: #65d8e8; color: #091321; }
@media (max-width: 1100px) {
 .mx-landing .mx-hero-arrows { display: flex; justify-content: space-between; grid-column: 1 / -1; width: 100%; }
 .mx-landing .mx-hero-arrows button { position: static; transform: none; }
}

/* Square slide canvas displays the re-rendered graph without letterboxing. */
.mx-landing .mx-slide-visual { aspect-ratio: 1; }
.mx-landing .mx-slide[data-highlight="models"] .mx-slide-visual > img { border-radius: 12px; }

/* The hero remains static; category shortcuts belong to the graph slide. */
.mx-landing .mx-model-categories { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: .25rem; padding-top: .65rem; }
.mx-landing .mx-model-categories a { position: relative; display: grid; place-items: center; min-height: 36px; color: #b8cbd6; border-radius: 6px; }
.mx-landing .mx-model-categories a:is(:hover,:focus-visible) { color: #65d8e8; background: #253441; }
.mx-landing .mx-model-categories a span { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 150px; padding: .4rem .55rem; border-radius: 5px; background: #edf5fb; color: #152d48; font-size: .7rem; text-align: center; line-height: 1.35; visibility: hidden; pointer-events: none; z-index: 5; }
.mx-landing .mx-model-categories a:is(:hover,:focus-visible) span { visibility: visible; }
.mx-landing .mx-model-categories a:nth-child(8n+1) span { left: 0; transform: none; }
.mx-landing .mx-model-categories a:nth-child(8n) span { left: auto; right: 0; transform: none; }

/* Category-only Model Explorer slide, aligned with the other hero visuals. */
.mx-landing .mx-slide[data-highlight="models"] { display: flex; align-items: center; }
.mx-landing .mx-slide[data-highlight="models"] .mx-model-categories { width: 100%; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; padding: 1rem 0; }
.mx-landing .mx-slide[data-highlight="models"] .mx-model-categories a { min-height: 48px; }
.mx-landing .mx-slide[data-highlight="models"] .mx-model-categories .mx-icon { width: 32px; height: 32px; }

/* Compact hero: the removed square graph no longer dictates slide height. */
.mx-landing .mx-hero { padding-block: 1.25rem; }
.mx-landing .mx-slide-visual { aspect-ratio: 4 / 3; }
.mx-landing .mx-hero-brand { margin-bottom: .75rem; }
.mx-landing .mx-hero-description { margin-bottom: 1rem; }
.mx-landing .mx-hero .mx-release-line { margin-top: .75rem; }
@media (max-width: 700px) {
  .mx-landing .mx-hero { gap: 1rem; padding-block: 1.25rem; }
}
.mx-landing .mx-model-categories a span { display: none; }
.mx-landing .mx-model-categories a:is(:hover,:focus-visible) span { display: block; }
.mx-landing .mx-model-categories a:nth-child(6n+1) span { left: 0; right: auto; transform: none; }
.mx-landing .mx-model-categories a:nth-child(6n) span { left: auto; right: 0; transform: none; }

/* Category badges give the Model Explorer slide a consistent visual structure. */
.mx-landing .mx-slide[data-highlight="models"] .mx-model-categories {
  gap: .65rem;
  padding: .5rem;
}
.mx-landing .mx-slide[data-highlight="models"] .mx-model-categories a {
  aspect-ratio: 1;
  min-height: 0;
  border: 1px solid #3a5062;
  border-radius: 12px;
  background: #182b3b;
  color: #b4dce5;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.mx-landing .mx-slide[data-highlight="models"] .mx-model-categories .mx-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
}
.mx-landing .mx-slide[data-highlight="models"] .mx-model-categories a:is(:hover,:focus-visible) {
  background: #2caaca;
  border-color: #78d9e9;
  color: #10243a;
}
html[data-theme="dark"] .mx-landing .mx-slide[data-highlight="models"] .mx-model-categories a {
  background: #252d35;
  border-color: #424e59;
  color: #b4dce5;
}
html[data-theme="dark"] .mx-landing .mx-slide[data-highlight="models"] .mx-model-categories a:is(:hover,:focus-visible) {
  background: #2caaca;
  border-color: #78d9e9;
  color: #10243a;
}
@media (prefers-reduced-motion: reduce) {
  .mx-landing .mx-slide[data-highlight="models"] .mx-model-categories a { transition: none; }
}

/* Real tutorial code and its corresponding depth-estimation output. */
.mx-landing .mx-tutorial-preview { display: block; width: 100%; border: 1px solid #4b5a69; border-radius: 14px; overflow: hidden; background: #182330; text-decoration: none; color: #dce8f1; }
.mx-landing .mx-tutorial-title { display: flex; align-items: center; gap: .5rem; padding: .8rem; border-bottom: 1px solid #3b4957; font-size: .85rem; font-weight: 600; }
.mx-landing .mx-tutorial-title span { flex: 1; }
.mx-landing .mx-tutorial-preview:hover { border-color: #65d8e8; color: #fff; }
.mx-landing .mx-tutorial-panels { display: grid; grid-template-columns: 1.15fr 1fr; }
.mx-landing .mx-tutorial-code,.mx-landing .mx-tutorial-output { padding: .7rem; min-width: 0; }
.mx-landing .mx-preview-label { display: block; color: #9db8ca; font-size: .6rem; margin-bottom: .6rem; }
.mx-landing .mx-tutorial-code pre { margin: 0; padding: 0; border: 0; background: transparent; color: #d9edf5; font-size: .58rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.mx-landing .mx-tutorial-code code { background: transparent; color: inherit; font-size: inherit; }
.mx-landing .mx-tutorial-output { border-left: 1px solid #3b4957; }
.mx-landing .mx-hero-product .mx-tutorial-output img { width: 100%; height: auto; object-fit: contain; border-radius: 5px; }

/* Give the tutorial preview the same visual weight as the examples window. */
.mx-landing .mx-tutorial-preview { min-height: 100%; display: flex; flex-direction: column; }
.mx-landing .mx-tutorial-title { padding: .9rem 1rem; font-size: .9rem; }
.mx-landing .mx-tutorial-panels { flex: 1; align-items: stretch; }
.mx-landing .mx-tutorial-code,.mx-landing .mx-tutorial-output { padding: .9rem; }
.mx-landing .mx-tutorial-code pre { font-size: .68rem; line-height: 1.8; }
.mx-landing .mx-preview-label { font-size: .65rem; }
.mx-landing .mx-tutorial-code .mx-syntax-call { color: #79d9ed; }
.mx-landing .mx-tutorial-code .mx-syntax-keyword { color: #d8afff; }

/* Compact, centered slides with more room for the Python excerpt. */
.mx-landing .mx-hero { padding-block: .875rem; }
.mx-landing .mx-slideshow-ready .mx-slide { align-self: center; }
.mx-landing .mx-slide-visual { width: 100%; justify-content: center; align-items: center; }
.mx-landing .mx-tutorial-preview { min-height: 0; }
.mx-landing .mx-tutorial-panels { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.mx-landing .mx-tutorial-code,.mx-landing .mx-tutorial-output { padding: .7rem; }
.mx-landing .mx-tutorial-code pre { white-space: pre; overflow-wrap: normal; overflow-x: auto; line-height: 1.65; }
.mx-landing .mx-tutorial-output { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.mx-landing .mx-tutorial-output .mx-preview-label { align-self: flex-start; }
.mx-landing .mx-tutorial-title { padding: .7rem .85rem; }
.mx-landing .mx-hero-brand { margin-bottom: .6rem; }
.mx-landing .mx-hero-description { margin-bottom: .8rem; }
.mx-landing .mx-hero .mx-release-line { margin-top: .6rem; }

/* Use more desktop width for the hero so code and output both remain legible. */
@media (min-width: 1200px) {
  .mx-landing .mx-hero {
    width: calc(100% + 8rem);
    margin-inline: -4rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }
}
.mx-landing .mx-tutorial-panels { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (min-width: 701px) and (max-width: 1199px) {
  .mx-landing .mx-tutorial-panels { grid-template-columns: minmax(0, 1fr); }
  .mx-landing .mx-tutorial-output { border-left: 0; border-top: 1px solid #3b4957; }
  .mx-landing .mx-hero-product .mx-tutorial-output img { max-height: 130px; }
}
@media (max-width: 700px) {
  .mx-landing .mx-tutorial-panels { grid-template-columns: minmax(0, 1fr); }
  .mx-landing .mx-tutorial-output { border-left: 0; border-top: 1px solid #3b4957; }
  .mx-landing .mx-hero-product .mx-tutorial-output img { max-height: 150px; }
}

/* Give the four primary destinations enough room on desktop. */
@media (min-width: 1200px) {
  .mx-landing .mx-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr); }
  .mx-landing .mx-hero-actions { flex-wrap: nowrap; }
  .mx-landing .mx-hero-actions a { white-space: nowrap; }
}

/* Make the tutorial output the main visual, with a compact code column. */
@media (min-width: 1200px) {
  .mx-landing .mx-tutorial-panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .mx-landing .mx-tutorial-code { padding: .65rem .5rem; }
  .mx-landing .mx-tutorial-output { padding: .65rem .45rem; }
  .mx-landing .mx-tutorial-preview { min-height: 100%; }
}
.mx-landing .mx-tutorial-output { justify-content: flex-start; }
.mx-landing .mx-hero-product .mx-tutorial-output img { flex: 1; min-height: 0; object-fit: contain; object-position: center; }

/* Size the tutorial card to its contents rather than stretching it to the slide. */
.mx-landing .mx-tutorial-preview { min-height: 0; }
.mx-landing .mx-tutorial-panels { flex: 0 1 auto; align-items: stretch; }
.mx-landing .mx-tutorial-code,
.mx-landing .mx-tutorial-output { display: flex; flex-direction: column; justify-content: center; align-items: center; padding-block: .75rem; }
.mx-landing .mx-tutorial-code pre { width: 100%; text-align: left; }
.mx-landing .mx-tutorial-code .mx-preview-label,
.mx-landing .mx-tutorial-output .mx-preview-label { align-self: center; text-align: center; }
.mx-landing .mx-hero-product .mx-tutorial-output img { flex: none; width: 100%; height: auto; }

/* Use the PCIe photograph's 4:3 footprint as the shared maximum slide height. */
.mx-landing .mx-slides { container-type: inline-size; aspect-ratio: 4 / 3; }
.mx-landing .mx-slideshow-ready .mx-slide { min-height: 0; max-height: 75cqi; }
.mx-landing .mx-slide-visual { max-height: 75cqi; min-height: 0; }
.mx-landing .mx-demo-window { max-width: calc((75cqi - 2.5rem) * 4 / 3); margin-inline: auto; }
.mx-landing .mx-slide[data-highlight="models"] .mx-model-categories { max-height: 75cqi; padding-block: .25rem; gap: .4rem; }
.mx-landing .mx-tutorial-preview { max-height: 75cqi; }
@media (max-width: 1199px) {
  .mx-landing .mx-tutorial-panels { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .mx-landing .mx-tutorial-output { border-top: 0; border-left: 1px solid #3b4957; }
  .mx-landing .mx-tutorial-code,.mx-landing .mx-tutorial-output { padding: .5rem .35rem; }
  .mx-landing .mx-tutorial-code pre { font-size: clamp(.45rem, 1.95cqi, .68rem); }
  .mx-landing .mx-tutorial-title { padding: .5rem; }
}

.mx-landing .mx-tutorial-code { justify-content: flex-start; }

/* Release metadata sits beneath both hero columns, aligned to the right. */
.mx-landing .mx-hero > .mx-release-line {
  grid-column: 1 / -1;
  justify-self: end;
  justify-content: flex-end;
  margin-top: 0;
  text-align: right;
}

/* The primary workflow link covers its card; secondary destinations stay usable. */
.mx-landing .mx-workflow > li { position: relative; }
.mx-landing .mx-flow-links > a:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.mx-landing .mx-flow-links > a:not(:first-child) { position: relative; z-index: 1; }
.mx-landing .mx-workflow > li:is(:hover,:focus-within) { border-color: var(--mx-accent); }
.mx-landing .mx-workflow > li:focus-within { outline: 2px solid var(--mx-accent); outline-offset: 3px; }

/* Match documentation-card hover treatment on the workflow cards. */
.mx-landing .mx-workflow .mx-icon-outline { fill: var(--mx-ink); }
.mx-landing .mx-workflow .mx-icon-fill { fill: #2caaca; opacity: 0; transition: opacity 160ms ease; }
.mx-landing .mx-workflow > li:is(:hover,:focus-within) .mx-icon-fill { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mx-landing .mx-workflow .mx-icon-fill { transition: none; } }

/* Avoid an empty grid row for absolutely positioned slideshow arrows. */
@media (min-width: 1101px) {
  .mx-landing .mx-hero-arrows { display: contents; }
}
.mx-landing .mx-hero { row-gap: .5rem; }
.mx-landing .mx-hero > .mx-release-line { margin: 0; padding: 0; }

/* Framework logos sit on theme surfaces, without PyData's white image backplates. */
.mx-landing .mx-framework-logos a {
  background: var(--mx-surface, var(--pst-color-on-background));
}
.mx-landing .mx-framework-logos a:focus-visible {
  outline: 2px solid var(--mx-accent);
  outline-offset: 3px;
}
html[data-theme="dark"] .bd-content .mx-landing .mx-framework-logos a {
  background: #22282f;
  border-color: #343b44;
}
html[data-theme="dark"] .bd-content .mx-landing .mx-framework-logos a:is(:hover, :focus-visible) {
  border-color: var(--mx-accent);
}
html[data-theme="dark"] .bd-content .mx-landing .mx-framework-logos img {
  background: transparent;
  filter: none;
}
/* ONNX is monochrome; invert only this mark to retain its detail on charcoal. */
html[data-theme="dark"] .bd-content .mx-landing .mx-framework-logos img[alt="ONNX"] {
  filter: invert(1);
}
