/* ═══════════════════════════════════════════════════════════════════════
   ORDONOESIS — Display Stylesheet v15
   Dark command-center. Causal Cortex v2 response shape.
   All classes ord- prefixed.
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

/* ── Root container ───────────────────────────────────────────────── */
.ord-root {
    font-family: 'Inter', sans-serif;
    background: #060608;
    color: rgba(255,255,255,0.95);
    -webkit-font-smoothing: antialiased;
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── Color utilities ──────────────────────────────────────────────── */
.ord-blue      { color: #00a3ff; }
.ord-amber     { color: #f59e0b; }
.ord-red       { color: #ef4444; }
.ord-secondary { color: rgba(255,255,255,0.6); }


/* ═══════════════════════════════════════════════════════════════════════
   VERDICT BANNER
   ═══════════════════════════════════════════════════════════════════════ */

.ord-verdict-banner {
    border-radius: 6px;
    padding: 36px 32px;
    margin-bottom: 40px;
    text-align: center;
    animation: ordPulse 4s ease-in-out infinite;
}
.ord-banner-proceed {
    border: 1px solid rgba(0,163,255,0.25);
    background: linear-gradient(135deg, rgba(0,163,255,0.06) 0%, rgba(0,0,0,0.3) 100%);
}
.ord-banner-weak {
    border: 1px solid rgba(245,158,11,0.25);
    background: linear-gradient(135deg, rgba(245,158,11,0.06) 0%, rgba(0,0,0,0.3) 100%);
}
.ord-banner-dnp {
    border: 1px solid rgba(239,68,68,0.25);
    background: linear-gradient(135deg, rgba(239,68,68,0.06) 0%, rgba(0,0,0,0.3) 100%);
}
.ord-determination-label {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.3rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.ord-verdict-hero {
    font-size: 1.6rem;
    font-weight: 200;
    letter-spacing: 0.5rem;
    margin-bottom: 10px;
}
.ord-banner-proceed .ord-verdict-hero { color: #00a3ff; }
.ord-banner-weak    .ord-verdict-hero { color: #f59e0b; }
.ord-banner-dnp     .ord-verdict-hero { color: #ef4444; }

.ord-verdict-option {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.15rem;
    color: rgba(255,255,255,0.6);
}


/* ═══════════════════════════════════════════════════════════════════════
   HEADLINE METRICS
   ═══════════════════════════════════════════════════════════════════════ */

.ord-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 48px;
}
.ord-metric-card {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 22px 10px;
    text-align: center;
    background: rgba(255,255,255,0.03);
    transition: all 0.3s ease;
    cursor: default;
    overflow: hidden;
}
.ord-metric-card:hover {
    border-color: rgba(0,163,255,0.3);
    background: rgba(0,163,255,0.04);
    transform: translateY(-2px);
}
.ord-metric-value {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 300;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.02rem;
    line-height: 1;
    white-space: nowrap;
}
.ord-metric-label {
    font-size: clamp(0.5rem, 1.8vw, 0.62rem);
    font-weight: 400;
    letter-spacing: 0.15rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    margin-top: 10px;
}
.ord-metric-compare {
    font-size: clamp(0.55rem, 2vw, 0.7rem);
    font-weight: 400;
    color: #00a3ff;
    margin-top: 12px;
    opacity: 0.8;
}


/* ═══════════════════════════════════════════════════════════════════════
   SECTION CARDS (Evidence Summary, Reasoning Chain)
   ═══════════════════════════════════════════════════════════════════════ */

.ord-section-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 32px;
    background: rgba(255,255,255,0.03);
}
.ord-section-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ord-section-card-title {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.25rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
}

/* ── Evidence summary body ────────────────────────────────────────── */
.ord-evidence-body {
    padding: 16px 20px;
}
.ord-evidence-line {
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 8px;
}
.ord-evidence-line:last-child {
    margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   REASONING CHAIN — Contradictions
   ═══════════════════════════════════════════════════════════════════════ */

.ord-contradiction-card {
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 10px;
}
.ord-contradiction-high {
    background: rgba(245,158,11,0.05);
    border: 1px solid rgba(245,158,11,0.2);
}
.ord-contradiction-med {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
}
.ord-contradiction-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.ord-contradiction-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.03rem;
}
.ord-severity-badge {
    font-size: 0.58rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 3px;
}
.ord-badge-red   { color: #ef4444; background: rgba(239,68,68,0.1); }
.ord-badge-amber { color: #f59e0b; background: rgba(245,158,11,0.1); }

.ord-contradiction-detail {
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
}
.ord-contradiction-resolution {
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(0,163,255,0.7);
    margin-top: 10px;
    padding-left: 14px;
    border-left: 2px solid rgba(0,163,255,0.2);
    line-height: 1.6;
}

.ord-strength-line {
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}


/* ═══════════════════════════════════════════════════════════════════════
   SECTION EYEBROW
   ═══════════════════════════════════════════════════════════════════════ */

.ord-section-eyebrow {
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.25rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    margin-bottom: 16px;
    margin-top: 56px;
}


/* ═══════════════════════════════════════════════════════════════════════
   DEPTH SECTIONS (collapsible)
   ═══════════════════════════════════════════════════════════════════════ */

.ord-depth-section {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    transition: border-color 0.3s ease;
}
.ord-depth-toggle {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Inter', sans-serif;
    color: inherit;
}
.ord-depth-toggle:hover {
    background: rgba(255,255,255,0.02);
}
.ord-depth-btn-left {
    flex: 1;
    padding-right: 16px;
}
.ord-depth-title {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.06rem;
}
.ord-depth-summary {
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
    margin-top: 6px;
    line-height: 1.55;
}
.ord-arrow {
    font-size: 0.65rem;
    color: rgba(0,163,255,0.6);
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform 0.3s ease;
    display: inline-block;
}
.ord-depth-body {
    padding: 0 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    animation: ordFadeInUp 0.25s ease-out;
}
.ord-depth-subtitle {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    letter-spacing: 0.03rem;
}
.ord-depth-desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 12px;
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════════════ */

.ord-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ord-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.ord-th {
    padding: 10px 14px;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.08rem;
    color: rgba(255,255,255,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ord-th-accent {
    font-weight: 600;
    color: #00a3ff;
}
.ord-td {
    padding: 10px 14px;
    color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: top;
}
.ord-td-accent {
    color: rgba(255,255,255,0.95);
    background: rgba(0,163,255,0.04);
}
.ord-td-note {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    font-weight: 300;
    margin-top: 2px;
}
.ord-table tr:hover td {
    background: rgba(0,163,255,0.03);
}


/* ═══════════════════════════════════════════════════════════════════════
   KV BLOCK
   ═══════════════════════════════════════════════════════════════════════ */

.ord-kv-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 14px 18px;
}
.ord-kv-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.72rem;
}
.ord-kv-label { color: rgba(255,255,255,0.35); font-weight: 300; }
.ord-kv-val   { font-weight: 500; color: rgba(255,255,255,0.95); }

/* ── Assumption detail (below KV rows) ────────────────────────────── */
.ord-assumption-detail {
    font-size: 0.65rem;
    font-weight: 300;
    color: rgba(255,255,255,0.3);
    padding: 0 0 6px;
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════════
   COMPETITOR + NASH CARDS
   ═══════════════════════════════════════════════════════════════════════ */

.ord-competitor-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 8px;
}
.ord-competitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.ord-competitor-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
}
.ord-threat-badge {
    font-size: 0.6rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.08rem;
}
.ord-competitor-obj {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}
.ord-competitor-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.ord-competitor-meta-item {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
}

.ord-nash-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 8px;
}
.ord-nash-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    margin-bottom: 8px;
}
.ord-nash-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    padding: 2px 0;
}
.ord-nash-label { color: rgba(255,255,255,0.35); font-weight: 300; }
.ord-nash-val   { color: rgba(255,255,255,0.6);  font-weight: 400; }


/* ═══════════════════════════════════════════════════════════════════════
   OBJECTION CARDS (residual findings)
   ═══════════════════════════════════════════════════════════════════════ */

.ord-objection-card {
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 8px;
}
.ord-objection-high {
    background: rgba(245,158,11,0.05);
    border: 1px solid rgba(245,158,11,0.2);
}
.ord-objection-med {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
}
.ord-objection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.ord-objection-type {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    color: rgba(255,255,255,0.6);
}
.ord-objection-badge {
    font-size: 0.58rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 3px;
}
.ord-objection-detail {
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════════════════
   FOOTER NOTES
   ═══════════════════════════════════════════════════════════════════════ */

.ord-footer-note {
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.68rem;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════════
   CREDIBILITY FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

.ord-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0 0;
    margin-top: 40px;
    text-align: center;
}
.ord-footer-empirical {
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.03rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 12px;
}
.ord-footer-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.ord-footer-meta span {
    font-size: 0.6rem;
    font-weight: 300;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05rem;
    font-family: monospace;
}


/* ═══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes ordFadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ordPulse {
    0%,100% { box-shadow: 0 0 20px rgba(0,163,255,0.1); }
    50%      { box-shadow: 0 0 40px rgba(0,163,255,0.2); }
}


/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .ord-metric-grid {
        grid-template-columns: 1fr;
    }
    .ord-verdict-banner {
        padding: 24px 16px;
    }
    .ord-root {
        padding: 24px 16px 60px;
    }
    .ord-depth-toggle {
        padding: 14px 16px;
    }
    .ord-depth-body {
        padding: 0 16px 20px;
        padding-top: 16px;
    }
    .ord-contradiction-resolution {
        padding-left: 10px;
    }
    .ord-footer-meta {
        gap: 12px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════════════ */

@media print {
    .ord-root {
        background: #fff;
        color: #000;
        padding: 0;
    }
    .ord-verdict-banner {
        box-shadow: none;
        border: 2px solid #333;
        animation: none;
    }
    .ord-depth-section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    .ord-depth-body {
        display: block !important;
    }
    .ord-arrow {
        display: none;
    }
}
