/* Model DB — model list v0.1 (PHASE N1-C).
   Visual contract: existing ComputeFit surface (white paper, dark navy ink, blue accent, wide whitespace).
   New versioned asset: no existing filename is reused or modified. */

.md-page {
    background: #fff;
    color: #192638;
    padding-top: clamp(30px, 4vw, 58px);
    padding-bottom: clamp(40px, 5vw, 76px);
    border-top: 1px solid var(--color-border, #dce3eb);
}

.md-page .gh-inner {
    max-width: 1180px;
}

/* ---------- header ---------- */

.md-head {
    max-width: 860px;
}

.md-eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #5e718b;
}

.md-title {
    margin: 0;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 700;
    color: #0a1128;
}

.md-purpose {
    margin: 18px 0 0;
    font-size: 17px;
    line-height: 1.6;
    color: #475069;
}

.md-purpose--secondary {
    margin-top: 12px;
}

/* ---------- list shell ---------- */

.md-list-shell {
    margin-top: clamp(30px, 4vw, 52px);
    border-top: 1px solid var(--color-border, #dce3eb);
}

.md-list-head {
    padding: 16px 0 0;
}

.md-count {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #5e718b;
}

.md-status {
    margin: 22px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #56667a;
}

.md-warning {
    margin: 18px 0 0;
    padding: 13px 16px;
    border-left: 3px solid #b2781d;
    background: #fffcf6;
    font-size: 14px;
    line-height: 1.6;
    color: #815511;
}

/* ---------- rows ---------- */

.md-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 2.75fr);
    gap: clamp(18px, 3vw, 56px);
    padding: clamp(22px, 2.6vw, 34px) 0;
    border-bottom: 1px solid var(--color-border, #dce3eb);
}

.md-row:first-child {
    border-top: 1px solid var(--color-border, #dce3eb);
    margin-top: 14px;
}

.md-model {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.01em;
    font-weight: 650;
    color: #0a1128;
    overflow-wrap: anywhere;
}

.md-model-id {
    margin: 8px 0 0;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .03em;
    color: #7a8798;
    overflow-wrap: anywhere;
}

.md-detail {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a95a4;
    border: 1px solid var(--color-border, #dce3eb);
    border-radius: 5px;
    padding: 4px 9px;
}

.md-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px clamp(18px, 3vw, 40px);
    margin: 0;
}

.md-fact {
    min-width: 0;
}

.md-fact-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b7786;
}

.md-fact-value {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: #192638;
    overflow-wrap: anywhere;
}

.md-fact-value--muted {
    color: #56667a;
}

.md-quants {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.md-chip {
    display: inline-block;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #25394f;
    background: #f3f6fa;
    border: 1px solid #dce3eb;
    border-radius: 5px;
    padding: 3px 8px;
}

.md-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 4px 9px;
}

.md-badge--measured {
    color: #1c4a2e;
    background: #eef7f1;
    border: 1px solid #cbe3d5;
}

.md-badge--shortfall {
    color: #815511;
    background: #fffcf6;
    border: 1px solid #e8d5ac;
}

.md-badge--unknown {
    color: #56667a;
    background: #f5f7fa;
    border: 1px solid #dce3eb;
}

.md-note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #815511;
}

/* ---------- footer / CTA ---------- */

.md-foot {
    margin-top: clamp(34px, 4vw, 58px);
    padding-top: clamp(22px, 3vw, 32px);
    border-top: 1px solid var(--color-border, #dce3eb);
    max-width: 860px;
}

.md-foot-copy {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #56667a;
}

.md-cta-line {
    margin: 18px 0 0;
}

.md-cta {
    display: inline-block;
    font-size: 17px;
    font-weight: 650;
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.md-cta:hover {
    color: #1e3a8a;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .md-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .md-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .md-title {
        font-size: 30px;
    }
    .md-purpose {
        font-size: 16px;
    }
    .md-facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .md-model {
        font-size: 19px;
    }
    .md-cta {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .md-cta {
        transition: none;
    }
}
