/* ============================================================
   blockchain.css — Styles specific to blockchain.html only
   ============================================================ */

.nav-link_blockchain {
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    color: var(--text) !important;
}

/* ── H1 SIZE (same as ai-robotics) ── */
h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

/* ── H2 SIZE (Primitives Only) ── */
.primitive-content h2 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem 0;
    color: var(--text);
}


/* ── NAV ACTIVE UNDERLINE ── */
.nav-links a.active {
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

/* ── PILL MARGIN ── */
.pill {
    margin-bottom: 1.6rem;
}

/* ── HERO TAGS (blockchain only) ── */
.hero-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.hero-tag {
    font-family: 'Geist Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-2);
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
}

/* ── PRIM ANIMATIONS (blockchain-specific — prim-line, prim-fork, prim-x) ── */
.prim-tick {
    stroke: var(--text-dim);
    stroke-width: 0.6;
    opacity: 0.5;
}

.prim-event {
    fill: var(--text-dim);
    opacity: 0.55;
}

.prim-event.live {
    fill: var(--accent);
    opacity: 1;
}

.prim-line {
    stroke: var(--text-dim);
    stroke-width: 0.7;
    opacity: 0.4;
    fill: none;
}

.prim-line.live {
    stroke: var(--accent);
    stroke-width: 1.2;
    opacity: 1;
    fill: none;
}

.prim-fork {
    stroke: var(--text-dim);
    stroke-width: 0.8;
    stroke-dasharray: 2 2;
    opacity: 0.45;
    fill: none;
}

.prim-x {
    stroke: var(--text-muted);
    stroke-width: 0.9;
    stroke-linecap: round;
}

.prim-event-orphan {
    fill: var(--text-dim);
    opacity: 0.35;
}

/* ── HOW SECTION (blockchain uses .how-* instead of .arch-*) ── */
.how-section {
    padding: 6rem 2.4rem;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.how-head {
    max-width: 1240px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: end;
}

@media (max-width: 980px) {
    .how-head {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.how-head h2 {
    max-width: 700px;
}

.how-head h2 .accent-text {
    color: var(--accent);
}

.how-head .lede {
    margin-top: 1rem;
}

.how-diagram {
    max-width: 1240px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 3rem 2.6rem 2.4rem;
    position: relative;
}

.how-flow {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 3rem;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

@media (max-width: 980px) {
    .how-flow {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.how-svg {
    position: absolute;
    inset: 3rem 2.6rem 0 2.6rem;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

@media (max-width: 980px) {
    .how-svg {
        display: none;
    }
}

.how-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
    stroke-dasharray: 2 6;
    opacity: 0.4;
    animation: dash-flow 1.4s linear infinite;
}

.how-col-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.how-protos {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.how-proto {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 0.7rem 0.95rem;
    font-family: 'Geist Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.how-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.how-icon svg {
    width: 100%;
    height: 100%;
}

.how-icon.kafka {
    color: #f97316;
}

.how-icon.amqp {
    color: #ef4444;
}

.how-icon.sqs {
    color: #a78bfa;
}

.how-icon.rest {
    color: #34d399;
}

.how-icon.flight {
    color: #60a5fa;
}

.how-schema {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--border-strong);
}

.how-schema-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.66rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.how-schema-list {
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.how-center {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    align-items: stretch;
}

.how-center-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
    font-family: 'Geist Mono', monospace;
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.how-center-brand .logo-mark {
    width: 18px;
    height: 18px;
}

.how-detail {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 0.95rem 1.1rem;
    text-align: center;
}

.how-detail.accent {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent-soft), var(--bg));
}

.how-detail-tag {
    font-family: 'Geist Mono', monospace;
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.how-detail.accent .how-detail-tag {
    color: var(--accent);
}

.how-detail-name {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.35;
    font-family: 'Geist Mono', monospace;
}

.how-detail-name small {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.how-foot {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.how-foot strong {
    color: var(--text);
    font-weight: 500;
}

/* ── PROBLEMS ── */
.problems-section {
    padding: 6rem 2.4rem;
    border-top: 1px solid var(--border);
}

.problems-head {
    max-width: 1240px;
    margin: 0 auto 3rem;
}

.problems-head h2 {
    max-width: 700px;
}

.problems-head .lede {
    margin-top: 1rem;
}

.problems-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

@media (max-width: 880px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
}

.problem-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.problem-card .pn {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.problem-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.problem-card .why {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-strong);
}

.problem-card .answer {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.6;
}

.problem-card .answer strong {
    color: var(--accent);
    display: block;
    font-family: 'Geist Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ── TOPIC TYPES ── */
.topics-section {
    padding: 6rem 2.4rem;
    border-top: 1px solid var(--border);
}

.topics-head {
    max-width: 1240px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: end;
}

@media (max-width: 880px) {
    .topics-head {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.topics-grid {
    max-width: 1240px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.topic-section {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.8rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.topic-section:last-child {
    border-bottom: 0;
}

@media (max-width: 768px) {
    .topic-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.topic-section .group-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    padding-top: 0.3rem;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.topic-pill {
    font-family: 'Geist Mono', monospace;
    font-size: 0.74rem;
    padding: 0.35rem 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text-2);
}

/* ── CHAINS ── */
.chains-section {
    padding: 6rem 2.4rem;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.chains-head {
    max-width: 1240px;
    margin: 0 auto 3rem;
}

.chains-head h2 {
    max-width: 700px;
}

.chains-head .lede {
    margin-top: 1rem;
}

.chains-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.6rem;
}

@media (max-width: 880px) {
    .chains-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .chains-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.chain-item {
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    padding: 0.7rem 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    text-align: center;
    color: var(--text-2);
}

.chains-foot {
    max-width: 1240px;
    margin: 1.5rem auto 0;
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* ── PERFORMANCE BENCHMARK ── */
.perf-section {
    padding: 6rem 2.4rem;
    border-top: 1px solid var(--border);
}

.perf-head {
    max-width: 1240px;
    margin: 0 auto 3rem;
}

.perf-head h2 {
    max-width: 700px;
}

.perf-head .lede {
    margin-top: 1rem;
}

.perf-table {
    max-width: 1240px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.perf-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 1.1rem 1.6rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    font-size: 0.9rem;
}

.perf-row.head {
    background: var(--bg-soft);
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.perf-row.us {
    background: var(--accent-soft);
}

.perf-row .indexer {
    color: var(--text-2);
    font-weight: 500;
}

.perf-row.us .indexer {
    color: var(--accent);
    font-weight: 600;
}

.perf-row .val {
    font-family: 'Geist Mono', monospace;
    font-size: 0.84rem;
    color: var(--text-2);
}

.perf-row.us .val {
    color: var(--accent);
    font-weight: 600;
}

.perf-row:last-child {
    border-bottom: 0;
}

.perf-foot {
    max-width: 1240px;
    margin: 1.5rem auto 0;
    font-family: 'Geist Mono', monospace;
    font-size: 0.74rem;
    color: var(--text-muted);
    text-align: center;
}

/* ── COMPETITORS ── */
.comp-section {
    padding: 6rem 2.4rem;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.comp-head {
    max-width: 1240px;
    margin: 0 auto 3rem;
}

.comp-head h2 {
    max-width: 700px;
}

.comp-head .lede {
    margin-top: 1rem;
}

.comp-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 880px) {
    .comp-grid {
        grid-template-columns: 1fr;
    }
}

.comp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.8rem 1.7rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.comp-card .vs {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.comp-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.comp-card .strength {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-strong);
}

.comp-card .strength strong {
    color: var(--text-2);
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    font-weight: 500;
}

.comp-card .wins {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.6;
}

.comp-card .wins strong {
    color: var(--accent);
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 500;
}

.comp-card .wins ul {
    list-style: none;
}

.comp-card .wins li {
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.comp-card .wins li::before {
    content: '+';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* ── SYNC SPEED ── */
.sync-section {
    padding: 6rem 2.4rem;
    border-top: 1px solid var(--border);
}

.sync-head {
    max-width: 1240px;
    margin: 0 auto 2.5rem;
}

.sync-head h2 {
    max-width: 800px;
}

.sync-head .lede {
    margin-top: 1rem;
    max-width: 720px;
}

.sync-callout {
    max-width: 1240px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, var(--accent-soft), var(--surface));
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.6rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .sync-callout {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        text-align: left;
    }
}

.sync-callout-num {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.025em;
}

.sync-callout-mid {
    font-size: 1rem;
    color: var(--text-2);
    font-weight: 500;
}

.sync-callout-right {
    font-family: 'Geist Mono', monospace;
    font-size: 0.84rem;
    color: var(--text-muted);
    text-align: right;
}

.sync-callout-right strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .sync-callout-right {
        text-align: left;
    }
}

.sync-table {
    max-width: 1240px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.sync-row {
    display: grid;
    grid-template-columns: 240px 1fr 1.1fr;
    padding: 1rem 1.6rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    gap: 1.5rem;
    font-size: 0.88rem;
}

.sync-row:last-child {
    border-bottom: 0;
}

.sync-row.head {
    background: var(--bg-soft);
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sync-row .provider {
    font-weight: 500;
    color: var(--text-2);
}

.sync-row.us .provider {
    color: var(--accent);
    font-weight: 600;
}

.sync-bar-wrap {
    position: relative;
    height: 26px;
}

.sync-bar {
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0a0a0a;
    white-space: nowrap;
}

.sync-bar.us {
    background: var(--accent);
    color: var(--on-accent);
}

.sync-bar.medium {
    background: #f4d066;
}

.sync-bar.slow {
    background: #ff8a7a;
}

.sync-row .price {
    font-family: 'Geist Mono', monospace;
    font-size: 0.86rem;
    color: var(--text-2);
}

.sync-row.us .price {
    color: var(--accent);
    font-weight: 600;
}

.sync-row .enrich {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.sync-row.us .enrich {
    color: var(--text);
    font-weight: 500;
}

.sync-foot {
    max-width: 1240px;
    margin: 1.5rem auto 0;
    font-style: italic;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .sync-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 1rem 1.2rem;
    }

    .sync-row.head {
        display: none;
    }

    .sync-row .provider {
        font-size: 1rem;
    }
}

/* ── MATRIX ── */
.matrix-section {
    padding: 6rem 2.4rem;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.matrix-head {
    max-width: 1240px;
    margin: 0 auto 2.5rem;
}

.matrix-head h2 {
    max-width: 700px;
}

.matrix-head .lede {
    margin-top: 1rem;
    max-width: 720px;
}

.matrix-table-wrap {
    max-width: 1240px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.matrix-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    min-width: 880px;
}

.matrix-row {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) 1.4fr;
    padding: 0.95rem 1.6rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    font-size: 0.88rem;
    gap: 1rem;
}

.matrix-row:last-child {
    border-bottom: 0;
}

.matrix-row.head {
    background: var(--bg-soft);
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.matrix-row.head .col-us {
    color: var(--accent);
    font-weight: 600;
}

.matrix-row .feat {
    color: var(--text-2);
    font-weight: 500;
}

.matrix-row .v {
    text-align: center;
    font-family: 'Geist Mono', monospace;
    font-size: 0.84rem;
    color: var(--text-2);
}

.matrix-row .v.us {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    padding: 0.4rem 0;
    border-radius: 4px;
    margin: -0.4rem 0;
}

.matrix-row .v .yes {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05rem;
}

.matrix-row .v .no {
    color: var(--text-dim);
    font-size: 1rem;
}

.matrix-row .v .partial {
    color: #f4d066;
    font-weight: 500;
    font-size: 0.78rem;
}

.matrix-row.total {
    background: var(--accent-soft);
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

.matrix-row.total .feat {
    color: var(--text-muted);
    font-family: 'Geist Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.matrix-row.total .v {
    font-size: 1rem;
}

.matrix-row.total .v.us {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    background: transparent;
}

.matrix-foot {
    max-width: 1240px;
    margin: 1.5rem auto 0;
    font-style: italic;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── STRATEGIC POSITIONING CHART ── */
.position-section {
    padding: 6rem 2.4rem;
    border-top: 1px solid var(--border);
}

.position-head {
    max-width: 1240px;
    margin: 0 auto 3rem;
}

.position-head h2 {
    max-width: 700px;
}

.position-head .lede {
    margin-top: 1rem;
    max-width: 720px;
}

.position-head strong {
    color: var(--accent);
    font-weight: 600;
}

.position-chart {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem 2.5rem 4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
}

.position-y-axis {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-size: 0.85rem;
    color: var(--text-2);
    white-space: nowrap;
    transform-origin: center;
}

.position-frame {
    position: relative;
    height: 460px;
    margin-top: 1.5rem;
}

.position-y-marker-top,
.position-y-marker-bot {
    position: absolute;
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.position-y-marker-top {
    top: -0.25rem;
    left: -3rem;
    z-index: 2;
}

.position-y-marker-bot {
    bottom: -0.25rem;
    left: -3rem;
}

.position-canvas {
    position: absolute;
    inset: 0;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg);
    overflow: hidden;
}

.position-canvas::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed var(--border-strong);
}

.position-canvas::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dashed var(--border-strong);
}

.q-zone {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: var(--accent-soft);
    pointer-events: none;
}

.q-label {
    position: absolute;
    font-family: 'Geist Mono', monospace;
    font-size: 0.74rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
}

.q-label.tl {
    top: 1rem;
    left: 25%;
    transform: translateX(-50%);
}

.q-label.tr {
    top: 1rem;
    left: 75%;
    transform: translateX(-50%);
    color: var(--accent);
    font-weight: 600;
}

.q-label.bl {
    bottom: 1rem;
    left: 25%;
    transform: translateX(-50%);
}

.q-label.br {
    bottom: 1rem;
    left: 75%;
    transform: translateX(-50%);
}

.q-dot-wrap {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.q-dot-wrap.us {
    z-index: 3;
}

.q-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    margin: 0 auto;
}

.q-dot-wrap.us .q-dot {
    width: 26px;
    height: 26px;
    background: var(--accent);
    box-shadow: 0 0 24px rgba(207, 255, 90, 0.5);
    border: 2px solid var(--bg);
}

.q-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.q-meta {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    white-space: nowrap;
}

.q-dot-wrap.us .q-meta {
    color: var(--accent);
}

.position-x-axis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.position-x-axis .x-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.position-x-axis .x-mid {
    font-size: 0.92rem;
    color: var(--text-2);
    font-weight: 500;
}

.position-foot {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    text-align: center;
    font-style: italic;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.position-foot em {
    color: var(--text);
    font-style: italic;
    font-weight: 500;
}

@media (max-width: 768px) {
    .position-chart {
        padding: 1rem 1rem 2rem 1rem;
    }

    .position-y-axis,
    .position-y-marker-top,
    .position-y-marker-bot {
        display: none;
    }

    .position-frame {
        height: 380px;
    }

    .q-name {
        font-size: 0.78rem;
    }

    .q-meta {
        font-size: 0.62rem;
    }
}

/* ── MIGRATION ── */
.migrate-section {
    padding: 6rem 2.4rem;
    border-top: 1px solid var(--border);
}

.migrate-head {
    max-width: 1240px;
    margin: 0 auto 3rem;
}

.migrate-head h2 {
    max-width: 700px;
}

.migrate-head .lede {
    margin-top: 1rem;
}

.migrate-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 880px) {
    .migrate-grid {
        grid-template-columns: 1fr;
    }
}

.code-body {
    font-size: 0.78rem;
}

.migrate-note {
    max-width: 1240px;
    margin: 1.5rem auto 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.55;
}

.migrate-note strong {
    color: var(--text);
    font-weight: 500;
}

/* ── WHEN NOT ── */
.notfor-section {
    padding: 6rem 2.4rem;
    border-top: 1px solid var(--border);
}

.notfor-head {
    max-width: 1240px;
    margin: 0 auto 3rem;
}

.notfor-head h2 {
    max-width: 700px;
}

.notfor-head .lede {
    margin-top: 1rem;
}

.notfor-list {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    gap: 0.8rem;
}

.notfor-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 1.4rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .notfor-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.notfor-row .when {
    font-family: 'Geist Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-2);
    font-weight: 500;
}

.notfor-row .recommend {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.notfor-row .recommend strong {
    color: var(--text-2);
    font-weight: 500;
}

/* ── FOOTER HEADING (bc uses h2 in footer cols) ── */
.footer-col h2,
.footer-col h5 {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
}