/* Suni Muhendis palette: drafting navy with a single copper accent. */
[data-md-color-primary="custom"] {
  --md-primary-fg-color: #17324d;
  --md-primary-fg-color--light: #2a4a6b;
  --md-primary-fg-color--dark: #0f2233;
  --md-primary-bg-color: #f5f7f8;
  --md-primary-bg-color--light: #f5f7f8b3;
}
[data-md-color-accent="custom"] {
  --md-accent-fg-color: #c4622d;
  --md-accent-fg-color--transparent: #c4622d1a;
}
[data-md-color-scheme="slate"][data-md-color-primary="custom"] {
  --md-primary-fg-color: #0f2233;
  --md-primary-fg-color--dark: #0a1826;
}
[data-md-color-scheme="slate"][data-md-color-accent="custom"] {
  --md-accent-fg-color: #ee8e55;
  --md-accent-fg-color--transparent: #ee8e551a;
}
[data-md-color-scheme="default"] {
  --md-typeset-a-color: #95491f;
  --md-default-bg-color: #f8fafb;
  --md-default-fg-color: #233748;
  --md-default-fg-color--light: #526779;
  --md-code-bg-color: #eef2f5;
  --sm-surface: #fff;
  --sm-soft: #edf2f5;
  --sm-line: #dce4ea;
  --sm-heading: #172f43;
  --sm-accent: #a45228;
}
[data-md-color-scheme="slate"] {
  --md-typeset-a-color: #efae83;
  --md-default-bg-color: #101c27;
  --md-default-fg-color: #d9e3eb;
  --md-default-fg-color--light: #a5b7c6;
  --md-code-bg-color: #1a2b3a;
  --sm-surface: #152533;
  --sm-soft: #1a2b3a;
  --sm-line: #2d4253;
  --sm-heading: #edf3f7;
  --sm-accent: #efae83;
}

/* Shared editorial system, including the guide pages. */
.md-grid { max-width: 68rem; }
.md-header { box-shadow: none; border-bottom: 1px solid #ffffff14; }
.md-header__title { font-weight: 600; letter-spacing: -.025em; }
.md-tabs { border-bottom: 1px solid #ffffff18; }
.md-tabs__link { font-size: .73rem; font-weight: 500; }
.md-tabs__item--active .md-tabs__link { border-bottom: 2px solid #efae83; padding-bottom: .55rem; }
.md-main__inner { margin-top: 1.7rem; }
.md-typeset { font-size: .8rem; line-height: 1.75; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 { color: var(--sm-heading); letter-spacing: -.035em; }
.md-typeset h1 { font-weight: 600; font-size: 2.4rem; line-height: 1.15; margin-bottom: .8em; }
.md-typeset h2 { font-weight: 600; line-height: 1.3; }
.md-typeset h3 { font-weight: 600; }
.md-typeset code { border-radius: .2rem; }
.md-typeset pre > code { border: 1px solid var(--sm-line); border-radius: .45rem; }
.md-typeset table:not([class]) { border: 1px solid var(--sm-line); border-radius: .35rem; background: var(--sm-surface); box-shadow: none; }
.md-typeset table:not([class]) th { background: var(--sm-soft); }
.md-typeset .md-button { font-size: .75rem; font-weight: 600; border-radius: .3rem; padding: .7em 1.25em; border: 1px solid var(--sm-line); color: var(--sm-heading); }
.md-typeset .md-button--primary { background: var(--sm-heading); border-color: var(--sm-heading); color: var(--md-default-bg-color); }
.md-typeset .md-button:is(:hover, :focus-visible) { background: var(--sm-accent); border-color: var(--sm-accent); color: var(--md-default-bg-color); }
.md-typeset a, .md-typeset button, .md-typeset input, .md-typeset select { touch-action: manipulation; }
:is(a, button, input, select):focus-visible { outline: 2px solid var(--sm-accent); outline-offset: 4px; }
.md-footer { margin-top: 2rem; background: #122b3e; }
.md-footer-meta { background: #0c1e2c; }

/* Home: a research publication with a technical drawing, not a docs index. */
.sm-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; padding: 2.2rem 0 3rem; }
.md-typeset .sm-eyebrow { font: 500 .61rem/1.5 "IBM Plex Mono", monospace; letter-spacing: .13em; text-transform: uppercase; color: var(--sm-accent); margin: 0 0 1.1rem; }
.md-typeset .sm-hero h1 { font-size: clamp(2.2rem, 4.1vw, 3.5rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.08; margin: 0 0 1.2rem; }
.sm-hero h1 .headerlink { display: none; }
.md-typeset .sm-lead { color: var(--md-default-fg-color--light); font-size: .94rem; line-height: 1.7; max-width: 29rem; }
.sm-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.sm-actions p { display: contents; }
.md-typeset .sm-hero-note { font-size: .63rem; color: var(--md-default-fg-color--light); margin-top: 1rem; }
.sm-blueprint { min-width: 0; background: #142c40; color: #e7eff5; border: 1px solid #365167; border-radius: .6rem; overflow: hidden; box-shadow: 0 16px 40px #0c263114; }
.sm-blueprint-top { display: flex; justify-content: space-between; gap: .5rem; padding: 1rem 1.2rem; font: .55rem "IBM Plex Mono", monospace; letter-spacing: .08em; border-bottom: 1px solid #365167; color: #b5c8d6; }
.sm-live { color: #92cbbf; }
.sm-live::before { content: ""; display: inline-block; width: .3rem; height: .3rem; border-radius: 50%; background: currentColor; margin-right: .35rem; }
.sm-blueprint svg { display: block; width: 100%; height: auto; padding: .35rem; }
.sm-blueprint-caption { display: flex; flex-direction: column; gap: .2rem; padding: 0 1.2rem; }
.sm-blueprint-caption strong { font-size: .9rem; font-weight: 500; }
.sm-blueprint-caption span { color: #b5c8d6; font-size: .55rem; }
.sm-blueprint-tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: .8rem 1.2rem 1.2rem; }
.sm-blueprint-tags span { border: 1px solid #415c70; border-radius: .2rem; padding: .13rem .4rem; font: .52rem/1.6 "IBM Plex Mono", monospace; color: #c6d7e3; }
.sm-principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--sm-line); border-bottom: 1px solid var(--sm-line); padding: 1.3rem 0; }
.sm-principles > div { display: flex; flex-direction: column; gap: .35rem; padding: 0 1.5rem; border-right: 1px solid var(--sm-line); }
.sm-principles > div:first-child { padding-left: 0; }
.sm-principles > div:last-child { border: 0; }
.sm-principles strong { font: 500 .65rem "IBM Plex Mono", monospace; color: var(--sm-heading); }
.sm-principles span { font-size: .7rem; color: var(--md-default-fg-color--light); }
.sm-section { padding: 3.3rem 0 0; }
.md-typeset .sm-section > h2, .md-typeset .sm-environment h2 { margin: 0 0 1rem; font-size: 1.8rem; }
.sm-section > p { max-width: 44rem; }
.sm-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 1.8rem 0 1.2rem; }
.sm-pipeline > div { border-top: 2px solid var(--sm-line); padding-top: 1rem; }
.sm-step { font: .7rem "IBM Plex Mono", monospace; color: var(--sm-accent); }
.md-typeset .sm-pipeline h3 { font-size: .9rem; letter-spacing: -.025em; margin: .6rem 0; }
.sm-pipeline p { font-size: .74rem; color: var(--md-default-fg-color--light); }
.sm-pipeline code { font-size: .58rem; }
.sm-environment { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; background: var(--sm-soft); border: 1px solid var(--sm-line); border-radius: .5rem; padding: 2rem; margin-top: 3rem; align-items: center; }
.sm-environment p { font-size: .8rem; }
.sm-text-link { font-weight: 600; }
.md-typeset .sm-specs { margin: 0; font-size: .72rem; }
.sm-specs > div { padding: .75rem 0; border-bottom: 1px solid var(--sm-line); }
.sm-specs > div:last-child { border: 0; }
.md-typeset .sm-specs dt { font: .58rem "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--md-default-fg-color--light); }
.md-typeset .sm-specs dd { margin: .25rem 0 0; }
.md-typeset .sm-entry-cards { gap: 1rem; }
.md-typeset .sm-entry-cards > ul > li { display: flex; flex-direction: column; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: .4rem; padding: 1.3rem; box-shadow: none; }
.md-typeset .sm-entry-cards > ul > li:hover { border-color: var(--sm-accent); box-shadow: none; }
.sm-card-index { font: .57rem "IBM Plex Mono", monospace; letter-spacing: .06em; color: var(--sm-accent); }
.md-typeset .sm-entry-cards h3 { font-size: 1rem; margin: .3rem 0; }
.sm-entry-cards p { font-size: .75rem; }
.sm-entry-cards p:last-child { margin-top: auto; padding-top: .6rem; font-weight: 600; }
.sm-license { border-top: 1px solid var(--sm-line); margin-top: 2.5rem; padding-top: .7rem; color: var(--md-default-fg-color--light); font-size: .7rem; }
.md-typeset .sm-license h2 { font-size: 1rem; }
.sm-quickstart .highlight { max-width: 52rem; }

@media (max-width: 60em) {
  .sm-hero { gap: 1.5rem; }
  .md-typeset .sm-hero h1 { font-size: 2.6rem; }
  .sm-pipeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 48em) {
  .sm-hero { grid-template-columns: 1fr; padding: 1rem 0 2rem; }
  .md-typeset .sm-hero h1 { font-size: 2.1rem; }
  .sm-blueprint { max-width: 30rem; }
  .sm-principles { grid-template-columns: 1fr; gap: 1rem; }
  .sm-principles > div { border: 0; padding: 0; }
  .sm-environment { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
  .sm-section { padding-top: 2.2rem; }
  .md-typeset .sm-section > h2 { font-size: 1.5rem; }
}
@media (max-width: 24em) {
  .sm-pipeline { grid-template-columns: 1fr; }
  .md-typeset .sm-hero h1 { font-size: 2.1rem; }
}

/* Home page cards: keep the three entry points on one row when there is room. */
.md-typeset .grid.cards { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

/* Leaderboard ------------------------------------------------------------ */
#sm-leaderboard { --sm-bar: #c4622d; --sm-track: var(--md-default-fg-color--lightest); }
[data-md-color-scheme="slate"] #sm-leaderboard { --sm-bar: #ee8e55; }

.sm-lb-status { color: var(--md-default-fg-color--light); }

.sm-lb-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; margin: 1.2rem 0 0.4rem; }
.sm-lb-picker label { font-weight: 600; }
.sm-lb-picker select {
  font: inherit; font-size: 0.8rem; color: var(--md-default-fg-color);
  background: var(--md-default-bg-color); border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 0.2rem; padding: 0.3rem 0.5rem; max-width: 100%;
}
.sm-lb-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; margin: 1.3rem 0; padding: 1rem; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: .4rem; }
.sm-lb-toolbar label { display: flex; flex-direction: column; gap: .35rem; font-size: .65rem; font-weight: 600; }
.sm-lb-toolbar input { width: 15rem; max-width: 100%; font: inherit; font-size: .75rem; padding: .45rem .6rem; background: var(--md-default-bg-color); color: var(--md-default-fg-color); border: 1px solid var(--sm-line); border-radius: .25rem; }
.sm-lb-toolbar input::placeholder { color: var(--md-default-fg-color--light); }
.sm-lb-count { font-size: .65rem; color: var(--md-default-fg-color--light); margin-bottom: .5rem; }
.sm-lb-picker { background: var(--sm-soft); padding: 1rem; border: 1px solid var(--sm-line); border-radius: .4rem; }
.sm-lb-picker select { border-color: var(--sm-line); padding: .4rem; }
.sm-lb-scroll { border: 1px solid var(--sm-line); border-radius: .4rem; background: var(--sm-surface); }
.sm-lb-table tbody tr:hover { background: var(--sm-soft); }
.sm-lb-model { min-width: 9rem; }
.sm-lb-empty { text-align: center; padding: 2rem; color: var(--md-default-fg-color--light); }
.sm-lb-funnel { background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: .4rem; padding: 1.2rem; }
.sm-lb-intro { max-width: 45rem; color: var(--md-default-fg-color--light); font-size: .9rem; }
.sm-lb-built { margin-left: auto; font-size: 0.7rem; color: var(--md-default-fg-color--light); }

.md-typeset h2.sm-lb-title { margin: 1rem 0 0.2rem; }
.md-typeset .sm-lb-slug { margin: 0 0 0.8rem; font-size: 0.75rem; color: var(--md-default-fg-color--light); }

.md-typeset dl.sm-lb-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.6rem 1.2rem;
  margin: 0 0 1rem; padding: 0.7rem 0.9rem; border-radius: 0.2rem;
  background: var(--md-code-bg-color);
}
.md-typeset dl.sm-lb-facts dt { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--md-default-fg-color--light); }
.md-typeset dl.sm-lb-facts dd { margin: 0.1rem 0 0; font-size: 0.75rem; }

.sm-lb-scroll { overflow-x: auto; }
.sm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.md-typeset table.sm-lb-table {
  display: table; width: 100%; border-collapse: collapse; font-size: 0.72rem;
  font-variant-numeric: tabular-nums; border: 0; box-shadow: none;
}
.md-typeset .sm-lb-table th, .md-typeset .sm-lb-table td {
  padding: 0.75rem 0.65rem; border-bottom: 1px solid var(--sm-line); vertical-align: middle;
}
.md-typeset .sm-lb-table th { font-weight: 600; white-space: nowrap; background: var(--sm-soft); }
.md-typeset .sm-lb-table th button {
  font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.md-typeset .sm-lb-table th button:hover, .md-typeset .sm-lb-table th button:focus-visible { color: var(--md-accent-fg-color); }
.sm-lb-num { text-align: right; white-space: nowrap; }
.sm-lb-rank { width: 1.5rem; color: var(--md-default-fg-color--light); }
.sm-lb-model strong { font-weight: 600; }
.sm-lb-chip {
  display: inline-block; margin-left: 0.4rem; padding: 0 0.35rem; border-radius: 0.6rem;
  font-size: 0.6rem; background: var(--md-accent-fg-color--transparent); color: var(--md-accent-fg-color);
}
.sm-lb-sub { font-size: 0.62rem; color: var(--md-default-fg-color--light); }
.sm-lb-na { color: var(--md-default-fg-color--lighter); }

.sm-lb-score { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.6rem; }
.sm-lb-bar { display: block; width: 5rem; height: 0.35rem; border-radius: 0.2rem; background: var(--sm-track); overflow: hidden; }
.sm-lb-bar span { display: block; height: 100%; background: var(--sm-bar); }
.sm-lb-val { font-weight: 600; min-width: 2.4rem; }

.sm-lb-funnel { display: grid; gap: 0.35rem; margin-bottom: 1rem; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.sm-lb-stage { display: grid; grid-template-columns: 7.5rem 1fr 5rem; align-items: center; gap: 0.7rem; }
.sm-lb-stage-track { height: 0.55rem; border-radius: 0.3rem; background: var(--sm-track); overflow: hidden; }
.sm-lb-stage-track span { display: block; height: 100%; background: var(--md-primary-fg-color--light); }
[data-md-color-scheme="slate"] .sm-lb-stage-track span { background: #8fb0cf; }
.sm-lb-stage-val { text-align: right; }
.sm-lb-stage-val small { color: var(--md-default-fg-color--light); }

@media (max-width: 30em) {
  .sm-lb-stage { grid-template-columns: 5.5rem 1fr 4rem; }
  .sm-lb-built { margin-left: 0; width: 100%; }
}

/* Task-scoped charts use SVG so themes, keyboard inspection and exports work
   without an external chart service or runtime dependency. */
.sm-charts { margin: 1.5rem 0 2rem; padding: 1.2rem; border: 1px solid var(--sm-line); background: var(--sm-surface); border-radius: .5rem; }
.md-typeset .sm-chart-heading h3 { margin: .2rem 0 1rem; font-size: 1.3rem; }
.md-typeset .sm-chart-heading .sm-eyebrow { margin-bottom: .4rem; overflow-wrap: anywhere; }
.sm-chart-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; }
.sm-chart-controls label { display: flex; flex-direction: column; gap: .3rem; font-size: .7rem; font-weight: 600; }
.sm-chart-controls [hidden] { display: none; }
.sm-chart-controls select, .sm-charts button { padding: .45rem .65rem; border: 1px solid var(--sm-line); border-radius: .25rem; background: var(--md-default-bg-color); color: var(--sm-heading); font: inherit; font-size: .7rem; }
.sm-charts button { cursor: pointer; }
.sm-charts button:hover { border-color: var(--sm-accent); }
.sm-charts button:disabled { cursor: default; opacity: .45; }
.sm-chart-models { margin: 1rem 0; padding: .6rem .8rem; border: 1px solid var(--sm-line); border-radius: .25rem; font-size: .7rem; }
.sm-chart-models summary, .sm-chart-data summary { cursor: pointer; font-weight: 600; }
.md-typeset details.sm-chart-models, .md-typeset details.sm-chart-data { border: 1px solid var(--sm-line); box-shadow: none; padding: 0 .8rem; }
.md-typeset :is(.sm-chart-models, .sm-chart-data) > summary { padding: .65rem 1.5rem .65rem .8rem; margin: 0 -.8rem; background: var(--sm-soft); color: var(--sm-heading); }
.md-typeset :is(.sm-chart-models, .sm-chart-data) > summary::before { display: none; }
.sm-chart-models fieldset { margin-bottom: .8rem; }
.sm-chart-selection { display: flex; gap: .5rem; margin: .7rem 0; }
.sm-chart-models fieldset { border: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: .6rem; }
.sm-chart-models label { display: flex; align-items: start; gap: .4rem; overflow-wrap: anywhere; }
.sm-chart-models input { margin-top: .2rem; accent-color: var(--sm-accent); }
.sm-chart-note { font-size: .72rem; color: var(--md-default-fg-color--light); }
.sm-chart-scroll { overflow-x: auto; margin: 1rem 0; }
.sm-chart-scroll svg { width: 100%; min-width: 750px; height: auto; display: block; }
.sm-chart-scroll svg > rect { fill: var(--sm-surface); }
.sm-chart-scroll svg text { fill: var(--md-default-fg-color); font-family: "IBM Plex Sans", sans-serif; }
.sm-chart-scroll .sm-chart-small { fill: var(--md-default-fg-color--light); }
.sm-chart-mark { cursor: crosshair; }
.sm-chart-mark:focus { outline: 2px solid var(--sm-accent); outline-offset: 3px; }
.sm-chart-mark:hover > rect, .sm-chart-mark:focus > rect { opacity: .8; }
.sm-chart-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .8rem 0; font-size: .62rem; }
.sm-chart-legend > span { display: inline-flex; align-items: center; gap: .35rem; overflow-wrap: anywhere; max-width: 100%; }
.sm-chart-legend i { width: .5rem; height: .5rem; border-radius: .1rem; flex-shrink: 0; }
.sm-chart-data { font-size: .7rem; }
.sm-chart-data .sm-lb-scroll { margin-top: .7rem; }
.sm-chart-tooltip { margin: .9rem 0 0; padding: .7rem; min-height: 3rem; border-radius: .25rem; background: var(--sm-soft); font-size: .7rem; overflow-wrap: anywhere; }
@media (max-width: 48em) {
  .sm-charts { padding: .75rem; }
  .sm-chart-controls label { width: 100%; }
  .sm-chart-controls select { max-width: 100%; }
}

/* Suite dashboard (docs/javascripts/suite.js) ----------------------------- */
/* Featured / base / best other: validated categorical slots (CVD and
   normal-vision separation in both themes); every mark also carries its value
   as text. Score cells use one sequential blue ramp, light to dark. */
#sm-leaderboard {
  --x-featured: #eb6834; --x-base: #2a78d6; --x-other: #8796a3; --x-rival: #1baf7a;
  --x-card: var(--sm-surface); --x-line: var(--sm-line); --x-soft: var(--sm-soft);
  --x-ink: var(--sm-heading); --x-muted: var(--md-default-fg-color--light);
  --x-shadow: 0 1px 2px rgb(15 34 51 / 5%), 0 6px 18px rgb(15 34 51 / 6%);
  --x-radius: .7rem;
}
[data-md-color-scheme="slate"] #sm-leaderboard {
  --x-featured: #d95926; --x-base: #3987e5; --x-other: #6f7f8d; --x-rival: #199e70;
  --x-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 22px rgb(0 0 0 / 25%);
}

.sm-x-head {
  margin: 1.4rem 0 1rem; padding: 1.4rem 1.6rem; border-radius: var(--x-radius); color: #f2f6f9;
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(235 104 52 / 32%) 0%, transparent 45%),
    linear-gradient(135deg, #0f2233 0%, #17324d 60%, #1f4466 100%);
  box-shadow: var(--x-shadow);
}
.md-typeset .sm-x-head .sm-x-eyebrow { color: #f3a77c; }
.md-typeset h2.sm-x-title { margin: .2rem 0 .7rem; font-size: 1.7rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.sm-x-tags { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .62rem; }
.sm-x-tags span, .md-typeset .sm-x-tags a {
  padding: .2rem .55rem; border-radius: 1rem; background: rgb(255 255 255 / 10%); color: #dbe6ef; border: 1px solid rgb(255 255 255 / 14%);
}
.md-typeset .sm-x-tags a:hover { background: rgb(255 255 255 / 20%); color: #fff; }

.md-typeset .sm-x-eyebrow { margin: 0; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sm-accent); }
.md-typeset .sm-x-muted { margin: .15rem 0; font-size: .7rem; color: var(--x-muted); }
.md-typeset .sm-x-note { margin: .6rem 0; font-size: .64rem; color: var(--x-muted); }

.sm-x-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.sm-x-kpi {
  position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem;
  background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); box-shadow: var(--x-shadow);
}
.sm-x-kpi.is-accent { border-color: color-mix(in srgb, var(--x-featured) 45%, var(--x-line)); }
.sm-x-kpi.is-accent::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: var(--x-radius) 0 0 var(--x-radius); background: var(--x-featured); }
.sm-x-kpi-label { font-size: .58rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--x-muted); }
.sm-x-kpi-value { font-size: 1.6rem; font-weight: 700; line-height: 1.15; color: var(--x-ink); font-variant-numeric: tabular-nums; }
.sm-x-kpi.is-accent .sm-x-kpi-value { color: var(--x-featured); }
.sm-x-kpi-sub { font-size: .62rem; color: var(--x-muted); overflow-wrap: anywhere; }

.sm-x-spot {
  display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr; gap: 1.6rem; margin: 0 0 1rem; padding: 1.4rem 1.5rem;
  background: linear-gradient(120deg, color-mix(in srgb, var(--x-featured) 9%, transparent), transparent 40%), var(--x-card);
  border: 1px solid var(--x-line); border-radius: var(--x-radius); box-shadow: var(--x-shadow);
}
.md-typeset .sm-x-spot h3 { margin: .25rem 0 .3rem; font-size: 1.35rem; color: var(--x-ink); }
.sm-x-spot-stats { display: flex; gap: 1.2rem; margin: 1rem 0; }
.sm-x-spot-stats div { display: flex; flex-direction: column; }
.sm-x-spot-stats b { font-size: 1.15rem; color: var(--x-ink); font-variant-numeric: tabular-nums; }
.sm-x-spot-stats span { font-size: .58rem; color: var(--x-muted); text-transform: uppercase; letter-spacing: .06em; }
.md-typeset a.sm-x-btn {
  display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .9rem; border-radius: .45rem; font-size: .7rem; font-weight: 600;
  background: var(--x-featured); color: #fff; box-shadow: 0 2px 6px color-mix(in srgb, var(--x-featured) 35%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.md-typeset a.sm-x-btn:hover, .md-typeset a.sm-x-btn:focus-visible { color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--x-featured) 45%, transparent); }

.sm-x-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .8rem; font-size: .64rem; color: var(--x-muted); }
.sm-x-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.sm-x-legend small { opacity: .8; }
.sm-x-sw { display: inline-block; width: .7rem; height: .7rem; border-radius: .18rem; }
.sm-x-sw.is-featured { background: var(--x-featured); }
.sm-x-sw.is-base { background: var(--x-base); }
.sm-x-sw.is-other { background: var(--x-rival); }
.sm-x-sw.is-ref { width: 2px; height: .85rem; border-radius: 0; background: var(--x-ink); }
.sm-x-sgroup { display: grid; grid-template-columns: 5.5rem 1fr; gap: .8rem; align-items: center; padding: .55rem 0; border-top: 1px dashed var(--x-line); }
.sm-x-sgroup:first-of-type { border-top: 0; }
.sm-x-sgroup-name { font-size: .74rem; font-weight: 600; color: var(--x-ink); }
.sm-x-sgroup-name small { display: block; font-size: .58rem; font-weight: 400; color: var(--x-muted); }
.sm-x-sbars { position: relative; display: grid; gap: 3px; }
.sm-x-sbars::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: calc((100% - 3.5rem) * var(--ref-f)); width: 2px; background: var(--x-ink); opacity: .55; pointer-events: none; }
.sm-x-sbar { display: grid; grid-template-columns: 1fr 3rem; align-items: center; gap: .5rem; border-radius: .2rem; cursor: default; }
.sm-x-sbar:hover, .sm-x-sbar:focus-visible { background: var(--x-soft); outline: none; }
.sm-x-sbar-fill { display: block; height: .7rem; width: var(--w); border-radius: 0 4px 4px 0; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.sm-x-sbar-fill.is-featured { background: var(--x-featured); }
.sm-x-sbar-fill.is-base { background: var(--x-base); }
.sm-x-sbar-fill.is-other { background: var(--x-rival); }
.sm-x-sbar-val { font-size: .66rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--x-ink); }

.sm-x-panel { margin: 0 0 1rem; padding: 1.1rem 1.3rem 1.2rem; background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); box-shadow: var(--x-shadow); }
.sm-x-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.md-typeset .sm-x-panel-head h3 { margin: 0; font-size: 1rem; }
.sm-x-search { font: inherit; font-size: .72rem; padding: .45rem .7rem; width: 14rem; max-width: 100%; border-radius: .4rem; border: 1px solid var(--x-line); background: var(--md-default-bg-color); color: var(--md-default-fg-color); }

.sm-x-tabs { display: flex; flex-wrap: wrap; gap: .2rem; padding: .25rem; margin-bottom: .9rem; background: var(--x-soft); border-radius: .55rem; width: fit-content; max-width: 100%; }
.sm-x-tabs button, .sm-x-seg button {
  font: inherit; font-size: .7rem; font-weight: 600; padding: .4rem .85rem; border: 0; border-radius: .4rem; cursor: pointer;
  background: transparent; color: var(--x-muted); transition: background .15s, color .15s;
}
.sm-x-tabs button[aria-selected="true"] { background: var(--x-card); color: var(--x-ink); box-shadow: 0 1px 3px rgb(15 34 51 / 15%); }
.sm-x-tabs button:hover, .sm-x-seg button:hover { color: var(--x-ink); }
.sm-x-controls { margin-bottom: .8rem; }
.sm-x-controls:empty { display: none; }
.sm-x-seg { display: inline-flex; border: 1px solid var(--x-line); border-radius: .45rem; overflow: hidden; }
.sm-x-seg button { border-radius: 0; padding: .32rem .8rem; font-size: .66rem; }
.sm-x-seg button + button { border-left: 1px solid var(--x-line); }
.sm-x-seg button[aria-pressed="true"] { background: var(--md-primary-fg-color); color: #fff; }

/* Ranking: rows are absolutely placed and glide to their rank. */
.sm-x-ranking { position: relative; margin-top: 1.2rem; transition: height .3s; }
.sm-x-rrow {
  position: absolute; left: 0; right: 0; top: 0; height: 30px; display: grid; grid-template-columns: 13rem 1fr 3rem;
  align-items: center; gap: .6rem; padding: 0 .3rem; border-radius: .35rem; transition: transform .55s cubic-bezier(.2,.8,.2,1), background .15s;
}
.sm-x-rrow:hover, .sm-x-rrow:focus-visible { background: var(--x-soft); outline: none; }
.sm-x-rrank { font-size: .64rem; color: var(--x-muted); text-align: right; font-variant-numeric: tabular-nums; }
.sm-x-rname { font-size: .7rem; color: var(--x-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-x-rname small { margin-left: .35rem; font-size: .56rem; color: var(--x-muted); }
.sm-x-rrow.is-featured .sm-x-rname { font-weight: 700; }
.sm-x-rtrack { position: relative; height: .75rem; }
.sm-x-rfill { display: block; height: 100%; width: var(--w); border-radius: 0 4px 4px 0; background: var(--x-other); transition: width .55s cubic-bezier(.2,.8,.2,1); }
.sm-x-rrow.is-featured .sm-x-rfill { background: var(--x-featured); }
.sm-x-rrow.is-base .sm-x-rfill { background: var(--x-base); }
.sm-x-rval { font-size: .68rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--x-ink); }
.sm-x-rref-wrap { position: absolute; top: -6px; bottom: -6px; left: calc(.3rem + 13rem + .6rem); right: calc(.3rem + 3rem + .6rem); pointer-events: none; }
.sm-x-rref { position: absolute; top: 0; bottom: 0; left: var(--ref); width: 2px; background: var(--x-ink); opacity: .5; }
.sm-x-rref em { position: absolute; top: -1.1rem; left: 50%; transform: translateX(-50%); font-size: .56rem; font-style: normal; white-space: nowrap; color: var(--x-muted); }

/* Heatmaps */
.sm-x-scroll { overflow-x: auto; }
.md-typeset table.sm-x-heat, .md-typeset table.sm-x-tasks { display: table; border-collapse: separate; border-spacing: 2px; margin: 0; font-size: .66rem; border: 0; box-shadow: none; background: transparent; }
.md-typeset .sm-x-heat th, .md-typeset .sm-x-tasks th { padding: .25rem .6rem; font-weight: 600; text-align: left; white-space: nowrap; background: transparent; border: 0; color: var(--x-ink); }
.md-typeset .sm-x-heat thead th, .md-typeset .sm-x-tasks thead th { text-align: center; font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--x-muted); }
.md-typeset .sm-x-heat tr.is-featured th, .md-typeset .sm-x-tasks tr.is-featured th { color: var(--x-featured); }
.md-typeset .sm-x-heat tr.is-ref th { font-weight: 400; font-style: italic; color: var(--x-muted); }
.md-typeset td.sm-x-cell { min-width: 4.2rem; padding: .45rem .6rem; text-align: center; font-variant-numeric: tabular-nums; background: var(--c); color: #172f43; border: 0; border-radius: 4px; transition: transform .12s, box-shadow .12s; }
.md-typeset td.sm-x-cell.is-dark { color: #fff; }
.md-typeset td.sm-x-cell.is-empty { background: var(--x-soft); color: var(--x-muted); }
.md-typeset td.sm-x-cell:hover, .md-typeset td.sm-x-cell:focus-visible { transform: scale(1.06); box-shadow: 0 0 0 2px var(--x-ink); outline: none; position: relative; z-index: 1; }
.md-typeset .sm-x-heat tr.is-featured td.sm-x-cell { box-shadow: inset 0 0 0 2px var(--x-featured); }
.md-typeset td.sm-x-dot { min-width: 1.15rem; width: 1.15rem; height: 1.3rem; padding: 0; border-radius: 3px; }
.md-typeset td.sm-x-dot.is-edge { border-left: 6px solid var(--x-card); }
.md-typeset .sm-x-tasks th.sm-x-gh { border-bottom: 2px solid var(--x-line); }
.sm-x-scale { display: flex; align-items: center; gap: 2px; margin-top: .7rem; font-size: .58rem; color: var(--x-muted); }
.sm-x-scale i { display: inline-block; width: 1.4rem; height: .55rem; border-radius: 2px; }
.sm-x-scale span { margin: 0 .3rem; }
.sm-x-scale em { margin-left: .4rem; font-style: normal; }

/* Scatter */
.sm-x-scatter { width: 100%; height: auto; max-height: 26rem; }
.sm-x-scatter .sm-x-grid { stroke: var(--x-line); stroke-width: 1; }
.sm-x-scatter .sm-x-axis { font-size: 11px; fill: var(--x-muted); }
.sm-x-scatter .sm-x-axis-title { font-size: 11px; fill: var(--x-muted); font-weight: 600; }
.sm-x-pt circle:not(.sm-x-hit) { fill: var(--x-other); stroke: var(--x-card); stroke-width: 2; transition: r .15s; }
.sm-x-pt.is-featured circle:not(.sm-x-hit) { fill: var(--x-featured); }
.sm-x-pt.is-base circle:not(.sm-x-hit) { fill: var(--x-base); }
.sm-x-pt .sm-x-hit { fill: transparent; }
.sm-x-pt:hover circle:not(.sm-x-hit), .sm-x-pt:focus-visible circle:not(.sm-x-hit) { r: 8; }
.sm-x-pt:focus { outline: none; }
.sm-x-dlabel { font-size: 11px; font-weight: 600; fill: var(--x-ink); }

/* Results table */
.md-typeset table.sm-x-table { display: table; width: 100%; margin: 0; font-size: .68rem; border: 0; border-collapse: collapse; box-shadow: none; }
.md-typeset .sm-x-table th { padding: .5rem .55rem; font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--x-muted); background: transparent; border-bottom: 2px solid var(--x-line); white-space: nowrap; }
.md-typeset .sm-x-table th button { all: unset; cursor: pointer; }
.md-typeset .sm-x-table th button:hover, .md-typeset .sm-x-table th button:focus-visible { color: var(--x-ink); text-decoration: underline; }
.md-typeset .sm-x-table td { padding: .55rem; border-bottom: 1px solid var(--x-line); vertical-align: middle; }
.md-typeset .sm-x-table td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.md-typeset .sm-x-table td.sm-x-cell { border-radius: 0; text-align: right; }
.md-typeset .sm-x-table tbody tr { transition: background .15s; }
.md-typeset .sm-x-table tbody tr:hover { background: var(--x-soft); }
.md-typeset .sm-x-table tr.is-featured { background: color-mix(in srgb, var(--x-featured) 8%, transparent); }
.md-typeset .sm-x-table tr.is-featured td:first-child { box-shadow: inset 4px 0 0 var(--x-featured); }
.sm-x-rank { width: 1.8rem; color: var(--x-muted); font-variant-numeric: tabular-nums; }
.sm-x-model { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-weight: 600; color: var(--x-ink); }
.sm-x-sub { font-size: .6rem; color: var(--x-muted); margin-top: .1rem; }
.sm-x-chip { padding: .05rem .45rem; border-radius: 1rem; font-size: .56rem; font-weight: 500; background: var(--x-soft); color: var(--x-muted); }
.sm-x-chip.is-brand { background: var(--x-featured); color: #fff; font-weight: 700; }
.sm-x-chip.is-warn { background: color-mix(in srgb, #eda100 20%, transparent); color: var(--x-ink); }
.sm-x-meanbar { display: inline-block; width: 4.5rem; height: .4rem; margin-right: .5rem; vertical-align: middle; border-radius: .2rem; background: var(--x-soft); overflow: hidden; }
.sm-x-meanbar i { display: block; height: 100%; width: var(--w); background: var(--x-other); }
.sm-x-table tr.is-featured .sm-x-meanbar i { background: var(--x-featured); }
.sm-x-table tr.is-base .sm-x-meanbar i { background: var(--x-base); }
.sm-x-empty { text-align: center; color: var(--x-muted); padding: 1.5rem; }

/* Tooltip (appended to body) */
.sm-x-tip {
  position: absolute; z-index: 20; min-width: 10rem; max-width: 18rem; padding: .55rem .7rem; border-radius: .45rem; pointer-events: none;
  font-size: .64rem; line-height: 1.45; background: #0f2233; color: #e8eff5; box-shadow: 0 6px 20px rgb(0 0 0 / 25%);
}
.sm-x-tip strong { display: block; margin-bottom: .25rem; font-size: .7rem; color: #fff; }
.sm-x-tip span { display: flex; justify-content: space-between; gap: 1rem; }
.sm-x-tip em { font-style: normal; color: #a9bccb; }
.sm-x-tip b { font-variant-numeric: tabular-nums; }

@media screen and (max-width: 52em) {
  .sm-x-spot { grid-template-columns: 1fr; }
  .sm-x-rrow { grid-template-columns: 7rem 1fr 2.6rem; }
  .sm-x-rref-wrap { left: calc(.3rem + 7rem + .6rem); right: calc(.3rem + 2.6rem + .6rem); }
}
@media screen and (max-width: 30em) {
  .sm-x-sgroup { grid-template-columns: 1fr; gap: .3rem; }
  .md-typeset h2.sm-x-title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-x-rrow, .sm-x-rfill, .sm-x-sbar-fill, .sm-x-ranking { transition: none; }
}
.md-typeset .sm-x-model a { color: inherit; }
.md-typeset .sm-x-model a:hover, .md-typeset .sm-x-model a:focus-visible { color: var(--x-featured); text-decoration: underline; }

/* Home: about grid and roadmap ------------------------------------------- */
.sm-about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .9rem; margin-top: 1.4rem; }
.sm-about-grid > div {
  display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem;
  background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: .6rem;
}
.sm-about-grid strong { font-size: .78rem; color: var(--sm-heading); }
.sm-about-grid span { font-size: .7rem; color: var(--md-default-fg-color--light); }

.sm-roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: .9rem; margin-top: 1.4rem; }
.sm-road {
  position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.1rem 1.2rem;
  background: var(--sm-surface); border: 1px dashed var(--sm-line); border-radius: .6rem;
}
.sm-road.is-live { border-style: solid; border-color: color-mix(in srgb, #1baf7a 45%, var(--sm-line)); }
.sm-road.is-next { border-style: solid; border-color: color-mix(in srgb, var(--md-accent-fg-color) 40%, var(--sm-line)); }
.md-typeset .sm-road h3 { margin: .2rem 0 0; font-size: .85rem; color: var(--sm-heading); }
.md-typeset .sm-road p { margin: 0; font-size: .68rem; color: var(--md-default-fg-color--light); }
.sm-road-status {
  align-self: flex-start; padding: .1rem .5rem; border-radius: 1rem; font: 600 .56rem "IBM Plex Mono", monospace;
  letter-spacing: .06em; text-transform: uppercase; background: var(--sm-soft); color: var(--md-default-fg-color--light);
}
.sm-road.is-live .sm-road-status { background: color-mix(in srgb, #1baf7a 18%, transparent); color: #127a55; }
.sm-road.is-next .sm-road-status { background: var(--md-accent-fg-color--transparent); color: var(--sm-accent); }
[data-md-color-scheme="slate"] .sm-road.is-live .sm-road-status { color: #5fd3a6; }

/* Home: team */
.sm-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .9rem; margin-top: 1.4rem; max-width: 40rem; }
.sm-member { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: .6rem; }
.sm-avatar { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; font: 600 .85rem "IBM Plex Sans", sans-serif; letter-spacing: .03em; color: #fff; background: linear-gradient(135deg, #17324d, #c4622d); }
.md-typeset .sm-member h3 { margin: 0; font-size: .85rem; color: var(--sm-heading); }
.md-typeset .sm-member p { margin: .1rem 0 .25rem; font-size: .66rem; color: var(--md-default-fg-color--light); }
.md-typeset .sm-member a { font-size: .66rem; font-weight: 600; }
.md-typeset .sm-x-chart-title { margin: 0 0 .5rem; font-size: .7rem; font-weight: 600; color: var(--x-ink); }
.sm-x-dcount { font-size: 10px; font-weight: 600; fill: var(--x-muted); }
.sm-x-kpi.is-accent .sm-x-kpi-value { font-size: 1.3rem; white-space: nowrap; }
.sm-x-ref-pt rect { fill: var(--x-card); stroke: var(--x-ink); stroke-width: 2; }
.sm-x-ref-pt:focus { outline: none; }
.sm-x-ref-pt:hover rect, .sm-x-ref-pt:focus-visible rect { fill: var(--x-soft); }
.sm-x-caveat { margin: 0 0 1rem; padding: 1rem 1.3rem; border-radius: var(--x-radius); background: color-mix(in srgb, #eda100 9%, var(--x-card)); border: 1px solid color-mix(in srgb, #eda100 35%, var(--x-line)); }
.md-typeset .sm-x-caveat .sm-x-eyebrow { color: #9a6700; }
[data-md-color-scheme="slate"] .md-typeset .sm-x-caveat .sm-x-eyebrow { color: #f2c25c; }
.md-typeset .sm-x-caveat ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.md-typeset .sm-x-caveat li { margin: .3rem 0; font-size: .7rem; color: var(--x-ink); }
.sm-x-archived { display: inline-block; vertical-align: middle; margin-left: .5rem; padding: .1rem .55rem; border-radius: 1rem; font-size: .7rem; font-weight: 600; background: rgb(255 255 255 / 14%); color: #f3c9a9; }
