/* ========================================
   MiMo-V2-Pro Release Page
   ======================================== */

:root {
    --bg: #F9F6F3;
    --bg-block: #F3EEE8;
    --text: #1D0601;
    --text-body: #1D0601B2;
    --text-muted: #888;
    --accent: #FF6700;
    --font-serif: "PT Serif", Georgia, serif;
    --font-title: "Ubuntu", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-weight: 400;
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* ---- Site Nav ---- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 40px;
    background: rgba(250, 247, 245, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.site-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-nav-logo-img {
    width: 141px;
    height: 18px;
}

.site-nav-back {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}

.site-nav-back::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5px;
    background: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.site-nav-back:hover::after {
    transform: scaleX(1);
}

/* Article Container */
.article {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 2rem 6rem;
}

/* ---- Hero ---- */
.hero {
    margin-bottom: 4rem;
}

.hero-date {
    display: block;
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--text);
    margin-bottom: 1rem;
}

.pro-text,
.pro-text-inline {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
}

.pro-text {
    opacity: 0;
    display: inline-block;
}

.hero-subtitle {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    transition: all 0.2s;
}

.btn-chevron {
    font-size: 1.1em;
    line-height: 1;
}

.btn-filled {
    background: #1D0601;
    color: #fff;
    border: 1px solid #1D0601;
}

.btn-filled:hover {
    background: #3a1a10;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid #ccc;
}

.btn-outline:hover {
    border-color: #999;
}

/* ---- Sections ---- */
.section {
    margin-bottom: 3.5rem;
}

h2 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

h3 {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent);
}

code {
    font-family: "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--bg-block);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    color: var(--text);
}

/* ---- Highlight Benchmark Cards ---- */
.highlight-benchmarks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.highlight-card {
    background: var(--bg-block);
    border-radius: 12px;
    padding: 1.5rem;
}

.highlight-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: color 0.15s;
}

.highlight-label:hover {
    color: #999;
}

.highlight-score {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.highlight-rank {
    font-family: var(--font-title);
    font-size: 0.72rem;
    color: #999;
    margin-bottom: 1rem;
}

.highlight-bar-track {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-bar-best,
.highlight-bar-mimo,
.highlight-bar-beaten {
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 6px;
}

.highlight-bar-best span,
.highlight-bar-mimo span,
.highlight-bar-beaten span {
    font-family: var(--font-title);
    font-size: 0.6rem;
    font-weight: 500;
    white-space: nowrap;
}

.highlight-bar-best {
    background: #e0d9d0;
}

.highlight-bar-best span {
    color: #999;
}

.highlight-bar-mimo {
    background: var(--accent);
}

.highlight-bar-mimo span {
    color: #fff;
}

.highlight-bar-beaten {
    background: #ece7e1;
}

.highlight-bar-beaten span {
    color: #bbb;
}

@media (max-width: 700px) {
    .highlight-benchmarks {
        grid-template-columns: 1fr;
    }

    .site-nav {
        height: 56px;
        padding: 0 20px;
    }

    .article {
        padding: 1rem 1.25rem 4rem;
    }
}

/* ---- Feedback Scroll ---- */
.feedback-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1rem;
    margin: 1rem 0;
}

.feedback-scroll img {
    flex-shrink: 0;
    height: 500px;
    width: auto;
    border-radius: 10px;
    border: 1.5px solid #e8e2db;
    scroll-snap-align: start;
}

.feedback-scroll::-webkit-scrollbar {
    height: 4px;
}

.feedback-scroll::-webkit-scrollbar-track {
    background: var(--bg-block);
    border-radius: 2px;
}

.feedback-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* ---- Video ---- */
.section-video {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid #e8e2db;
    display: block;
    background: var(--bg-block);
    position: relative;
    z-index: 1;
}

.video-wrap {
    position: relative;
    min-height: 200px;
    margin: 1.5rem 0 0.5rem;
}

.video-wrap::before {
    content: 'Loading...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: #bbb;
    pointer-events: none;
    z-index: 0;
}

.video-wrap.playing::before {
    display: none;
}

.video-caption {
    font-family: var(--font-title);
    font-size: 0.7rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ---- Images ---- */
.section > img {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid #e8e2db;
    margin: 1.5rem 0;
    display: block;
}

/* ---- Image Placeholders ---- */
.img-placeholder {
    background: var(--bg-block);
    border-radius: 12px;
    width: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: #bbb;
    margin: 1.5rem 0;
}

/* ---- Pricing Table ---- */
.pricing-table {
    font-family: var(--font-title);
    font-size: 0.85rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e2db;
}

.pricing-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding: 0.75rem 1.25rem;
}

.pricing-row + .pricing-row {
    border-top: 1px solid #e8e2db;
}

.pricing-header {
    background: var(--bg-block);
    font-weight: 600;
    color: var(--text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pricing-table-sm {
    font-size: 0.78rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-table-sm .pricing-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
}

.pricing-table-sm .pricing-row span + span {
    border-left: 1px solid #e8e2db;
    padding-left: 1rem;
}

.pricing-row-highlight {
    color: var(--accent);
    font-weight: 500;
}

.pricing-note {
    font-family: var(--font-title);
    font-size: 0.65rem;
    color: #bbb;
    margin-top: -0.75rem;
}

.links-block {
    margin-top: 1.5rem;
    font-family: var(--font-title);
    font-size: 0.8rem;
    line-height: 2;
}

.links-block a {
    color: var(--accent);
    text-decoration: none;
}

.links-block a:hover {
    text-decoration: underline;
}

/* ---- Benchmark Block ---- */
.bench-block {
    background: var(--bg-block);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    font-family: var(--font-title);
    margin: 1.5rem 0;
}

.bench-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.62rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.bench-legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bench-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.bench-legend-item.mimo .bench-legend-label {
    color: var(--accent);
    font-weight: 600;
}

.bench-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    grid-auto-flow: dense;
}

.bench-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #bbb;
    padding: 0 0.5rem 0.5rem;
    border-bottom: 1px solid #e0d9d0;
}

.bench-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0.5rem 0;
    min-width: 0;
}

.bench-bars-wrap {
    position: relative;
    width: 100%;
}

.bench-bars-wrap::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    border-bottom: 1px solid #e0d9d0;
}

.bench-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 140px;
    width: 100%;
    justify-content: center;
}

.bench-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 22px;
    height: 100%;
    justify-content: flex-end;
}

.bench-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    position: relative;
    cursor: help;
}

.bench-bar-logo {
    width: 12px;
    height: 12px;
    margin-top: 4px;
}

.bench-bar-logo.mimo-logo {
    filter: brightness(0) saturate(100%) invert(44%) sepia(89%) saturate(2000%) hue-rotate(4deg) brightness(102%) contrast(104%);
}

.bench-bar-score {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 500;
    color: inherit;
    margin-bottom: 2px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.bench-bar-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 0.68rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}

.bench-bar:hover .bench-bar-tooltip {
    display: block;
}

.bench-cell-title {
    font-size: 0.72rem;
    color: #555;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.3;
}

/* Mini-legend for dual-bar cells (HLE) — overlaid in the top-right corner */
.bench-cell {
    position: relative;
}

.bench-cell-legend {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    font-size: 0.55rem;
    color: #888;
    font-family: 'Ubuntu', sans-serif;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

.bench-cell-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.bench-cell-legend-swatch {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.bench-cell-legend-swatch.solid {
    background: #FF6700;
}

.bench-cell-legend-swatch.ext {
    background: rgba(255, 103, 0, 0.6);
}

/* Dual bar: "with tools" extension drawn above the solid base bar.
   Background uses rgba alpha (set inline) so child text stays fully opaque. */
.bench-bar-ext {
    width: 100%;
    border-radius: 3px 3px 0 0;
    position: relative;
}

/* Previous-generation MiMo logo: neutral gray to match the other non-release models */
.bench-bar-logo.mimo-logo-prev {
    filter: brightness(0) invert(56%);
}

.bench-bar-with-ext {
    border-radius: 0;
}

.bench-bar-score-tool {
    opacity: 0.95;
    font-weight: 600;
}

/* In dual mode, hide the base numeric (shown in tooltip) so it doesn't
   collide with the translucent extension stacked above it */
.bench-bar-score-base {
    display: none;
}

.bench-footnote {
    margin-top: 1.5rem;
    padding-top: 0.9rem;
    border-top: 1px solid #F3EEE8;
    font-size: 0.68rem;
    color: #888;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.bench-footnote strong {
    color: #555;
    font-weight: 600;
}

.bench-footnote-swatch {
    display: inline-flex;
    flex-direction: column;
    width: 10px;
    height: 16px;
    border-radius: 2px;
    overflow: hidden;
    vertical-align: middle;
}

.bench-footnote-ext {
    flex: 1;
    background: #FF6700;
    opacity: 0.32;
}

.bench-footnote-solid {
    flex: 1;
    background: #FF6700;
}

/* ---- Footer ---- */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    font-family: var(--font-title);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
    .article {
        padding: 2rem 1.25rem 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    /* Benchmark: horizontal scroll on mobile */
    .bench-block {
        padding: 1.5rem 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bench-grid {
        grid-template-columns: repeat(4, minmax(140px, 1fr));
        min-width: 560px;
    }

    .bench-bars {
        height: 110px;
    }

    .bench-bar-score {
        font-size: 0.5rem;
    }

    .bench-cell-title {
        font-size: 0.62rem;
    }

    .bench-section-label {
        font-size: 0.6rem;
    }

    /* Highlight cards stack */
    .highlight-benchmarks {
        grid-template-columns: 1fr;
    }

    .highlight-score {
        font-size: 2rem;
    }

    /* Pricing table */
    .pricing-table-sm {
        max-width: 100%;
        font-size: 0.72rem;
    }

    .pricing-table-sm .pricing-row {
        padding: 0.6rem 0.75rem;
    }

    /* Feedback scroll */
    .feedback-scroll img {
        height: 360px;
    }
}

/* ---- Rust Compiler Chart ---- */
.rust-chart-block {
    background: var(--bg-block);
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1rem;
    margin: 1.5rem 0;
    font-family: var(--font-title);
}

.rust-chart-header {
    margin-bottom: 0.75rem;
}

.rust-chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.rust-chart-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.rust-chart-meta strong {
    color: var(--text);
    font-weight: 600;
}

.rust-chart-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c9c0b5;
}

.rust-chart-score {
    color: var(--accent);
    font-weight: 600;
}

.rust-chart-wrap {
    position: relative;
    width: 100%;
}

.rust-chart-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.rust-chart-tooltip {
    position: absolute;
    pointer-events: none;
    background: #1D0601;
    color: #fff;
    font-family: var(--font-title);
    font-size: 0.68rem;
    line-height: 1.5;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(29, 6, 1, 0.18);
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity 0.12s ease;
    white-space: nowrap;
    z-index: 10;
}

.rust-chart-tooltip.visible {
    opacity: 1;
}

.rust-chart-tooltip-turn {
    font-weight: 700;
    color: #FFB380;
    margin-bottom: 2px;
}

.rust-chart-tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-variant-numeric: tabular-nums;
}

.rust-chart-tooltip-row span:first-child {
    color: #d6cfc7;
}

.rust-chart-tooltip-total {
    border-top: 1px solid #44342e;
    margin-top: 4px;
    padding-top: 4px;
    font-weight: 600;
}

.rust-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-family: var(--font-title);
    font-size: 0.7rem;
    color: var(--text-body);
}

.rust-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.rust-chart-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

.rust-chart-swatch-line {
    height: 2px;
    background: #1D0601;
    border-radius: 1px;
}

.rust-chart-svg text {
    font-family: var(--font-title);
    fill: var(--text-body);
}

.rust-chart-svg .rc-axis-label {
    font-size: 11px;
    font-weight: 600;
    fill: var(--text);
}

.rust-chart-svg .rc-tick {
    font-size: 10px;
    fill: #8a8178;
}

.rust-chart-svg .rc-grid {
    stroke: #e4dcd1;
    stroke-width: 1;
}

.rust-chart-svg .rc-phase-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.rust-chart-svg .rc-phase-sub {
    font-size: 9px;
    font-style: italic;
}

.rust-chart-svg .rc-phase-divider {
    stroke: #b8ab9a;
    stroke-width: 0.8;
    stroke-dasharray: 3 3;
    opacity: 0.6;
}

.rust-chart-svg .rc-line {
    fill: none;
    stroke: #1D0601;
    stroke-width: 2.4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.rust-chart-svg .rc-line-halo {
    fill: none;
    stroke: #F9F6F3;
    stroke-width: 4.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    opacity: 0.7;
}

.rust-chart-svg .rc-dot {
    fill: #1D0601;
    stroke: #F9F6F3;
    stroke-width: 1;
}

.rust-chart-svg .rc-ref-100 {
    stroke: #8FBF9E;
    stroke-width: 1;
    stroke-dasharray: 4 3;
    opacity: 0.6;
}

.rust-chart-svg .rc-callout-box {
    fill: #ffffff;
    stroke: #c9c0b5;
    stroke-width: 0.8;
}

.rust-chart-svg .rc-callout-text {
    font-size: 9.5px;
    font-weight: 600;
}

.rust-chart-svg .rc-callout-arrow {
    fill: none;
    stroke: #8a8178;
    stroke-width: 1.1;
}

.rust-chart-svg .rc-cursor {
    stroke: #1D0601;
    stroke-width: 1;
    stroke-dasharray: 3 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.rust-chart-svg .rc-cursor.active {
    opacity: 0.5;
}

.rust-chart-svg .rc-hover-dot {
    fill: #FF6700;
    stroke: #F9F6F3;
    stroke-width: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.rust-chart-svg .rc-hover-dot.active {
    opacity: 1;
}

@media (max-width: 700px) {
    .rust-chart-block {
        padding: 1rem 0.9rem 0.75rem;
    }

    .rust-chart-title {
        font-size: 0.85rem;
    }

    .rust-chart-meta {
        font-size: 0.65rem;
        gap: 0.4rem;
    }

    .rust-chart-legend {
        font-size: 0.62rem;
        gap: 0.65rem;
    }
}

/* GraphWalks Long Context heatmap */
.lc-heatmap-block {
    margin: 2rem 0 1.5rem;
    padding: 1.25rem 1.25rem 0.75rem;
    border: 1px solid #EDE8DE;
    border-radius: 6px;
    background: #FDFBF6;
}

.lc-heatmap-title {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #2A2A2A;
    text-align: center;
    margin-bottom: 0.75rem;
}

.lc-heatmap-wrap {
    width: 100%;
}

.lc-heatmap-svg {
    width: 100%;
    height: auto;
    display: block;
    font-family: 'Ubuntu', sans-serif;
}

.lc-heatmap-svg .lc-cell-value {
    font-size: 12px;
    font-weight: 600;
}

.lc-heatmap-svg .lc-cell-count {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.75;
}

.lc-heatmap-svg .lc-cell-na {
    font-size: 11px;
    fill: #8A8A8A;
    font-weight: 500;
}

.lc-heatmap-svg .lc-ylabel {
    font-size: 11.5px;
    font-weight: 600;
}

.lc-heatmap-svg .lc-ytask {
    font-size: 10px;
    fill: #7A7A7A;
    font-weight: 400;
}

.lc-heatmap-svg .lc-xlabel {
    font-size: 10.5px;
    fill: #555;
    font-weight: 500;
}

.lc-heatmap-svg .lc-axis-label {
    font-size: 11.5px;
    fill: #3A3A3A;
    font-weight: 600;
}

.lc-heatmap-svg .lc-legend-tick {
    font-size: 9.5px;
    fill: #555;
}

.lc-heatmap-svg .lc-legend-caption {
    font-size: 10px;
    fill: #3A3A3A;
    font-weight: 600;
}

@media (max-width: 700px) {
    .lc-heatmap-block {
        padding: 0.9rem 0.75rem 0.5rem;
    }

    .lc-heatmap-title {
        font-size: 0.8rem;
    }
}

/* Token Efficiency scatter plot */
/* FVF-LDO multi-metric optimization chart */
.ldo-chart-block {
    margin: 1.8rem 0 1.5rem;
    padding: 1.3rem 1.3rem 1.1rem;
    background: #F3EEE8;
    border: 1.5px solid #E8E2D8;
    border-radius: 12px;
}

.ldo-chart-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    padding: 0 0.3rem;
    gap: 1rem;
}

.ldo-chart-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #18181b;
}

.ldo-chart-legend {
    display: flex;
    gap: 0.9rem;
    font-size: 0.72rem;
    color: #52525b;
}

.ldo-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ldo-chart-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.ldo-chart-swatch.gray   { background: #8a8a8a; }
.ldo-chart-swatch.orange { background: #FF6700; }

.ldo-chart-svg {
    width: 100%;
    height: auto;
    display: block;
    font-family: 'Ubuntu', sans-serif;
}

.ldo-chart-svg .ldo-metric-name {
    font-size: 13px;
    fill: #18181b;
    font-weight: 600;
    dominant-baseline: middle;
}

.ldo-chart-svg .ldo-bar-init {
    fill: #8a8a8a;
}

.ldo-chart-svg .ldo-bar-opt {
    fill: #FF6700;
}

.ldo-chart-svg .ldo-value-init {
    font-size: 11.5px;
    fill: #ffffff;
    font-weight: 600;
}

.ldo-chart-svg .ldo-value-opt {
    font-size: 11.5px;
    fill: #FF6700;
    font-weight: 600;
    dominant-baseline: middle;
}

.ldo-chart-svg .ldo-ratio {
    font-size: 22px;
    fill: #FF6700;
    font-weight: 700;
    dominant-baseline: middle;
}

/* MiMo Coding Bench overall score chart — single horizontal bar with reference markers */
.mcb-chart-block {
    margin: 1.8rem 0 1.5rem;
    padding: 1.3rem 1.3rem 1rem;
    background: #FFFFFF;
    border: 1.5px solid #F3EEE8;
    border-radius: 12px;
}

.mcb-chart-header {
    margin-bottom: 0.3rem;
    padding-left: 0.3rem;
}

.mcb-chart-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: #18181b;
    letter-spacing: -0.005em;
}

.mcb-chart-svg {
    width: 100%;
    height: auto;
    display: block;
    font-family: 'Ubuntu', sans-serif;
}

.mcb-chart-svg .mcb-bar-base {
    fill: #d8d8d8;
}

.mcb-chart-svg .mcb-bar-gain {
    fill: #FF6700;
}

.mcb-chart-svg .mcb-prev-tick {
    stroke: #ffffff;
    stroke-width: 1.5;
}

.mcb-chart-svg .mcb-axis-line {
    stroke: #d4d4d8;
    stroke-width: 1;
}

.mcb-chart-svg .mcb-axis-tick {
    stroke: #d4d4d8;
    stroke-width: 1;
}

.mcb-chart-svg .mcb-tick {
    font-size: 10.5px;
    fill: #a1a1aa;
}

.mcb-chart-svg .mcb-ref-tick {
    stroke: #52525b;
    stroke-width: 1.2;
    stroke-dasharray: 3, 2;
    opacity: 0.7;
}

.mcb-chart-svg .mcb-ref-dot {
    fill: #52525b;
}

.mcb-chart-svg .mcb-ref-name {
    font-size: 11px;
    fill: #52525b;
    font-weight: 500;
}

.mcb-chart-svg .mcb-ref-score {
    font-size: 12px;
    fill: #18181b;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.mcb-chart-svg .mcb-mimo-name {
    font-size: 12px;
    fill: #FF6700;
    font-weight: 700;
}

.mcb-chart-svg .mcb-mimo-score {
    font-size: 14px;
    fill: #FF6700;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.token-eff-block {
    margin: 1.8rem 0 1.5rem;
    padding: 1.3rem 1.3rem 1rem;
    background: #FFFFFF;
    border: 1.5px solid #F3EEE8;
    border-radius: 12px;
}

.token-eff-header {
    margin-bottom: 0.3rem;
    padding-left: 0.3rem;
}

.token-eff-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: #18181b;
    letter-spacing: -0.005em;
}

.token-eff-sub {
    font-size: 0.72rem;
    color: #71717a;
    margin-top: 0.2rem;
}

.token-eff-wrap {
    width: 100%;
}

.token-eff-svg {
    width: 100%;
    height: auto;
    display: block;
    font-family: 'Ubuntu', sans-serif;
}

.token-eff-svg .te-axis {
    stroke: #e4e4e7;
    stroke-width: 1.2;
    fill: none;
}

.token-eff-svg .te-grid {
    stroke: #18181b;
    stroke-width: 0.8;
    stroke-dasharray: 4, 3;
    opacity: 0.07;
}

.token-eff-svg .te-tick {
    font-size: 11px;
    fill: #71717a;
}

.token-eff-svg .te-axis-label {
    font-size: 12px;
    fill: #52525b;
    font-weight: 500;
}

.token-eff-svg .te-point {
    stroke: #fff;
    stroke-width: 1.6;
}

.token-eff-svg .te-connector {
    stroke: #a1a1aa;
    stroke-width: 0.8;
    opacity: 0.55;
}

.token-eff-svg .te-label {
    font-size: 12px;
    fill: #3f3f46;
    dominant-baseline: middle;
    paint-order: stroke fill;
    stroke: #ffffff;
    stroke-width: 3px;
    stroke-linejoin: round;
}

.token-eff-svg .te-label-hl {
    font-size: 13.5px;
    font-weight: 700;
}

.token-eff-svg .te-better {
    font-size: 12px;
    fill: #22c55e;
    font-weight: 600;
    opacity: 0.85;
}

@media (max-width: 700px) {
    .token-eff-block {
        padding: 0.9rem 0.75rem 0.5rem;
    }

    .token-eff-title {
        font-size: 0.85rem;
    }

    .token-eff-sub {
        font-size: 0.65rem;
    }

    .token-eff-svg .te-label {
        font-size: 10.5px;
    }

    .token-eff-svg .te-label-hl {
        font-size: 11.5px;
    }
}

/* ---- Bilibili Embed ---- */
.bilibili-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0 0.5rem;
    background: #000;
}

.bilibili-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
