/* alert.css — the ALERT elements themselves: rows, chips, prices, headers.
 *
 * Split out of base.css so the marketing page can draw real sample alerts without pulling in the
 * viewer's page chrome (which would restyle the whole site). base.css is the app shell; this is
 * the thing being rendered, and both the viewer and the home page load it.
 */

.theme-light .cx {
    color: #c26a12;
}

.theme-light .put {
    color: #b04a4a;
}

.trade {
    font-size: var(--alert-fs, 13px);
    margin-bottom: 16px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    line-height: 1.2;
}

.trade .row {
    display: block;
    margin-top: 1px;
}

.tline {
    font-size: var(--alert-fs, 13px);
    line-height: 1.5;
    word-break: break-word;
}

.prem {
    color: var(--gold);
    font-weight: 600;
}

.hsep {
    color: var(--hsep);
    font-weight: 400;
}

.trade.grid {
    border: 0;
    border-radius: 0;
    padding: 12px;
    margin-bottom: 16px;
}

.prints {
    color: var(--meta);
    cursor: pointer;
    user-select: none;
}

.prints:hover {
    color: var(--text);
}

.prow {
    display: contents;
}

.prow .pr-size {
    text-align: right;
}

.prow .pr-price {
    text-align: right;
}

.prow .pr-exch {
    text-align: right;
}

.prow .pr-cx {
    color: var(--cx);
    font-weight: 600;
}

.header {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.header .stage {
    font-weight: 400;
    color: var(--meta);
}

.header.split {
    color: var(--accent2);
}

.size {
    color: var(--gold);
    font-weight: 600;
}

.sym {
    color: var(--text);
    font-weight: 400;
    letter-spacing: 1px;
    margin-right: -1px;
}

.exp {
    color: var(--meta);
}

.strike {
    color: var(--meta);
}

.px {
    color: var(--text);
}

.call {
    color: var(--meta);
}

.put {
    color: #823c3d;
}

.tape {
    color: var(--accent);
    font-weight: 600;
}

.time {
    color: var(--faint-b);
}

.meta {
    color: var(--meta);
}

.cx {
    font-weight: 600;
    color: var(--cx);
}

/* ---- font scale, so a host can size a panel of alerts independently ---- */
.fs-s .trade { font-size: 11px; }
.fs-m .trade { font-size: 12.5px; }
.fs-l .trade { font-size: 14.5px; }

/* A themed container needs the palette applied to it, not only to body — the marketing page
   carries its own colours and hosts a sample panel in a different theme. */
.theme-dark, .theme-light, .theme-blue { color: var(--text); }

.printlist {
    display: none;
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid var(--border-soft);
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.92em;
    color: var(--meta);
}

.printlist.open {
    /* ONE grid for the whole list: every row's cells share the same five column
               tracks, so columns line up perfectly down the list */
    display: grid;
    grid-template-columns: auto auto auto auto auto auto;
    justify-content: space-between;
    column-gap: 8px;
    line-height: 1.5;
}

.foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    font-size: 0.92em;
    color: var(--meta);
}