/* Before the Headline: /before-the-headline and /company/<ticker>/before. Builds on company-pulse.css. */
.bth-of { font-size: 1rem; color: var(--lp-dim); }
.bth-table td em { display: block; font-family: var(--lp-sans); }
.bth-table td:first-child { white-space: normal; min-width: 14em; }
.bth-table td:first-child strong { font-weight: 500; color: var(--lp-ink); }
.fidx-table td.bth-kind,
.bth-kind {
    font-family: var(--lp-sans);
    font-size: 0.8rem;
    color: var(--lp-amber);
    text-align: left;
    white-space: normal;
}
.bth-table th:nth-child(2) { text-align: left; }
.bth-table td.bth-detail { font-family: var(--lp-sans); text-align: left; white-space: normal; color: var(--lp-mute); }
.bth .bth-table a { color: var(--lp-ink); text-decoration: none; }
.bth .bth-table a:hover { color: var(--lp-cyan); }
.bth-lift { color: var(--lp-cyan); }
.bth-ok { color: var(--lp-green); }
.bth-miss { color: var(--lp-rose); }
.fidx .bth-chart { height: 320px; margin-top: 1rem; }
.fidx .bth-timeline { height: 440px; }
.bth-empty {
    padding: 1.2rem 1.4rem;
    border: 1px dashed var(--lp-line-strong);
    border-radius: 14px;
    color: var(--lp-mute);
}

.bth-record {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.bth-record > div {
    padding: 0.8rem 1rem;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    background: var(--fidx-card);
}
.bth-record strong { display: block; font-family: var(--lp-display); font-size: 1.6rem; color: #f5f8fc; }
.bth-record span { font-size: 0.8rem; color: var(--lp-mute); }
.bth-record .is-good strong { color: var(--lp-green); }
.bth-record .is-bad strong { color: var(--lp-rose); }

.bth-locked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1rem;
    padding: 1.1rem 1.3rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.06);
}
.bth-locked p { flex: 1 1 28em; margin: 0; line-height: 1.5; color: var(--lp-mute); }
.bth-locked strong { color: var(--lp-ink); }

.bth-warnings,
.bth-examples,
.bth-before,
.bth-coverage {
    margin: 0;
    padding: 0;
    list-style: none;
}
.bth-warnings > li {
    display: grid;
    grid-template-columns: 4.2em minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lp-line);
}
.bth-warnings p { margin: 0 0 0.3rem; line-height: 1.45; color: var(--lp-ink); }
.bth-warnings em { display: block; font-style: normal; font-size: 0.8rem; color: var(--lp-dim); margin-top: 0.3rem; }
.bth .bth-warnings a { color: var(--lp-ink); text-decoration: none; }
.bth .bth-warnings a:hover { color: var(--lp-cyan); }
.bth-badge {
    align-self: start;
    padding: 0.2em 0.45em;
    border: 1px solid var(--lp-amber);
    border-radius: 6px;
    font-family: var(--lp-mono);
    font-size: 0.72rem;
    text-align: center;
    color: var(--lp-amber);
}

.bth-examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0.9rem;
}
.bth-examples > li {
    padding: 0.9rem 1.05rem;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    background: var(--fidx-card);
}
.bth-examples header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin-bottom: 0.4rem; }
.bth-examples header strong { color: var(--lp-ink); font-weight: 600; }
.bth-examples header em { flex-basis: 100%; font-style: normal; font-size: 0.78rem; color: var(--lp-dim); }
.bth .bth-examples header a { color: var(--lp-ink); text-decoration: none; }
.bth .bth-examples header a:hover { color: var(--lp-cyan); }
.bth-head { margin: 0 0 0.6rem; font-size: 0.88rem; line-height: 1.45; color: var(--lp-mute); }
.bth-head em { font-style: normal; font-size: 0.75rem; color: var(--lp-dim); }

.bth-before li {
    display: grid;
    grid-template-columns: 3.2em minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.84rem;
    border-top: 1px dashed var(--lp-line);
}
.bth-before b { font-family: var(--lp-mono); font-weight: 500; color: var(--lp-amber); }
.bth-before span { color: var(--lp-ink); line-height: 1.4; }
.bth .bth-before a { font-size: 0.78rem; color: var(--lp-cyan); text-decoration: none; }
.bth-before .bth-more { display: block; color: var(--lp-dim); }
.bth-warnings .bth-before b { font-size: 0.75rem; }
.bth-warnings .bth-before li { grid-template-columns: 6.5em minmax(0, 1fr) auto; }

.bth-coverage { margin: 1rem 0; }
.bth-coverage li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--lp-line);
    font-size: 0.88rem;
}
.bth-coverage span { color: var(--lp-mute); }
.bth-coverage b { font-family: var(--lp-mono); font-weight: 500; color: var(--lp-ink); }

@media (max-width: 768px) {
    .bth-record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bth-examples { grid-template-columns: 1fr; }
}
