/* Prediction model detail pages */
:root {
    --pm-bg: transparent;
    --pm-panel: #121823;
    --pm-panel-alt: #0f151f;
    --pm-border: #273142;
    --pm-text: #e7edf6;
    --pm-dim: #a5b0bf;
    --pm-accent: #55c1ff;
    --pm-accent-2: #c09bff;
    --pm-warn: #ffb86b;
}

.account-nav {
    display: none;
}

.hero-ambient {
    display: none !important;
}

.pm-page {
    color: var(--pm-text);
    background: var(--pm-bg);
    padding-bottom: 3.5rem;
}

.pm-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pm-hero {
    padding: 3.5rem 0 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid #1f2734;
}

.pm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2rem;
    align-items: center;
}

.pm-public-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pm-public-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #2b3645;
    color: #d6e6ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(85,193,255,0.08);
}

.pm-public-actions a:hover {
    border-color: rgba(85,193,255,0.7);
    background: rgba(85,193,255,0.14);
}

.pm-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.75rem;
    color: var(--pm-accent);
    font-weight: 600;
}

.pm-title {
    font-size: 2.2rem;
    margin: 0.4rem 0 0.9rem;
    font-weight: 700;
}

.pm-lead {
    color: var(--pm-dim);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pm-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.pm-tag {
    background: rgba(85,193,255,0.15);
    border: 1px solid rgba(85,193,255,0.4);
    color: #bfe7ff;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.pm-hero-media {
    display: grid;
    gap: 1rem;
}

.pm-logo-card,
.pm-chart-card {
    background: var(--pm-panel);
    border: 1px solid var(--pm-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.pm-logo-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pm-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    background: #0b0f16;
    border: 1px solid #1d2633;
    padding: 0.4rem;
}

.pm-logo-caption {
    font-size: 0.95rem;
    color: var(--pm-dim);
}

.pm-chart {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #202a38;
}

.pm-chart-caption {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--pm-dim);
}

.pm-section {
    padding: 2.6rem 0;
}

.pm-section.pm-alt {
    background: transparent;
    border-top: 1px solid #1a2330;
    border-bottom: 1px solid #1a2330;
}

.pm-section-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.pm-subtitle {
    color: var(--pm-dim);
    max-width: 820px;
    line-height: 1.7;
}

.pm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.8rem;
    align-items: start;
}

.pm-card {
    background: var(--pm-panel);
    border: 1px solid var(--pm-border);
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    display: grid;
    gap: 0.6rem;
}

.pm-card-title {
    font-weight: 600;
    font-size: 1rem;
}

.pm-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    color: var(--pm-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pm-list li::before {
    content: "-";
    color: var(--pm-accent-2);
    margin-right: 0.5rem;
}

.pm-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.pm-step {
    background: var(--pm-panel);
    border: 1px solid var(--pm-border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    min-height: 160px;
}

.pm-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(192,155,255,0.2);
    border: 1px solid rgba(192,155,255,0.5);
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.pm-step h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.pm-step p {
    font-size: 0.9rem;
    color: var(--pm-dim);
    line-height: 1.6;
}

.pm-equations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.pm-equation {
    background: #0d131d;
    border: 1px solid #263141;
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.pm-equation-title {
    font-size: 0.85rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: var(--pm-warn);
    margin-bottom: 0.45rem;
}

.pm-equation-body {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95rem;
    color: #d6e6ff;
    line-height: 1.6;
    word-break: break-word;
}

.pm-equation-note {
    font-size: 0.8rem;
    color: var(--pm-dim);
    margin-top: 0.6rem;
}

.pm-related {
    padding: 2.8rem 0 3.5rem;
}

.pm-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pm-related-card {
    background: var(--pm-panel);
    border: 1px solid var(--pm-border);
    border-radius: 14px;
    padding: 1rem;
    display: grid;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--pm-text);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.pm-related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(85,193,255,0.7);
}

.pm-related-card.is-active {
    border-color: rgba(192,155,255,0.8);
    box-shadow: 0 0 0 1px rgba(192,155,255,0.4);
}

.pm-related-card img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: #0b0f16;
    border: 1px solid #1d2633;
    padding: 0.3rem;
}

.pm-related-title {
    font-weight: 600;
}

.pm-related-text {
    font-size: 0.85rem;
    color: var(--pm-dim);
}

.pm-note {
    color: var(--pm-dim);
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .pm-hero-grid {
        grid-template-columns: 1fr;
    }

    .pm-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .pm-title {
        font-size: 1.8rem;
    }
}
