/* Shared presentation utilities — pilot: OHC; extend --nx-tool-* per slug */

.nx-panel {
    margin-top: 1.5rem;
}

.nx-headline {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    max-width: 40rem;
}

.nx-headline-footnote {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    font-weight: 400;
}

.nx-supporting {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    max-width: 42rem;
    line-height: 1.5;
}

.nx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.nx-table th,
.nx-table td {
    padding: 0.55rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.nx-table tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.06);
}

.nx-table .num-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.nx-table-bar {
    display: inline-block;
    height: 0.35rem;
    margin-left: 0.4rem;
    vertical-align: middle;
    background: rgba(56, 189, 248, 0.55);
    border-radius: 2px;
    min-width: 2px;
    max-width: 5rem;
}

.nx-squint-answer {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
    max-width: 44rem;
}

.nx-stripes-host {
    width: 100%;
    height: 2.75rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin: 0.75rem 0 0;
}

.nx-stripes-host--tall {
    height: 3.5rem;
}

.nx-stripes-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.nx-stripes-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

.nx-stripes-years {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.nx-stripes-years span:nth-child(2) {
    color: var(--text-muted);
    opacity: 0.7;
}

.nx-basin-stripes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .nx-basin-stripes-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .nx-basin-stripes-grid {
        grid-template-columns: 1fr;
    }
}

.nx-basin-stripe-item .nx-stripes-host {
    height: 2rem;
}

.nx-basin-stripe-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.nx-basin-stripe-zj {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.nx-comparison-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
}

.nx-comparison-row--big {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.nx-comparison-row--big:last-child {
    border-bottom: none;
}

.nx-comparison-figure {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.nx-comparison-number {
    font-size: clamp(1.65rem, 5vw, 2.4rem);
    font-weight: 700;
    color: var(--nx-tool-ohc-warm, #ea580c);
    line-height: 1.1;
}

.nx-comparison-unit {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    font-weight: 600;
    color: var(--text-primary);
}

.nx-comparison-sentence {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-muted);
    max-width: 44rem;
}

.nx-trust-layer {
    margin-top: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.nx-trust-layer h2 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.nx-trust-layer ul {
    margin: 0;
    padding-left: 1.1rem;
}

.nx-trust-layer li {
    margin: 0.25rem 0;
}

.nx-meaning-bullets {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.nx-meaning-bullets li {
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 3px solid var(--nx-tool-ohc-teal, #0d9488);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.nx-kpi-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.nx-kpi-compact .nx-kpi-card {
    padding: 0.75rem;
}

.nx-news-item {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.nx-news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.nx-news-title {
    font-size: 0.95rem;
    line-height: 1.35;
}

/* OHC tool theme tokens */
:root {
    --nx-tool-ohc-deep: #1e3a8a;
    --nx-tool-ohc-teal: #0d9488;
    --nx-tool-ohc-warm: #ea580c;
    --nx-tool-slr-water: #38bdf8;
    --nx-tool-slr-warning: #f59e0b;
    --nx-tool-slr-ice: #7dd3fc;
}

.nx-hero-question {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Decoration-as-data disclosure — live vs reference vs stale fallback */
.nx-is-stale {
    opacity: 0.88;
    border-color: var(--border-subtle);
    background: color-mix(in srgb, var(--surface-elevated) 92%, var(--text-muted) 8%);
}

.nx-is-stale .nx-squint-answer,
.nx-is-stale strong {
    color: var(--text-muted);
}

.nx-stale-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--surface-elevated) 85%, #f59e0b 15%);
    border: 1px solid color-mix(in srgb, var(--border-subtle) 70%, #f59e0b 30%);
}

.nx-data-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.nx-data-badge--live {
    color: #0d9488;
    background: color-mix(in srgb, #0d9488 18%, transparent);
    border: 1px solid color-mix(in srgb, #0d9488 35%, transparent);
}

.nx-data-badge--ref {
    color: var(--text-muted);
    background: color-mix(in srgb, var(--text-muted) 12%, transparent);
    border: 1px solid var(--border-subtle);
}

.nx-tile--ref {
    opacity: 0.92;
}

.nx-tile--ref .nx-tile-price {
    color: var(--text-muted);
}

.nx-schematic-banner {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.45rem 0.65rem;
    margin: 0 0 0.75rem;
    border-radius: 6px;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--surface-elevated) 88%, var(--text-muted) 12%);
    border: 1px dashed var(--border-subtle);
}

/* Cross-tool tissue — "what drives this / what this drives" cause-effect footer
   linking sibling dashboards. Shared so every tool renders it identically. */
.nx-cross-tissue {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0 0;
    padding: 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.03));
}
@media (max-width: 700px) {
    .nx-cross-tissue { grid-template-columns: 1fr; }
}
.nx-cross-tissue-col h3 {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.nx-cross-tissue-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.nx-cross-tissue-col li {
    line-height: 1.45;
}
.nx-cross-tissue-link {
    font-weight: 600;
    text-decoration: none;
    color: var(--nx-accent, #38bdf8);
}
.nx-cross-tissue-link:hover { text-decoration: underline; }
.nx-cross-tissue-note {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

