/* core/site/static/site.css — the channel's chart palette, on a page */
:root { --bg: #313338; --panel: #2B2D31; --fg: #DBDEE1; --muted: #949BA4; --soft: #B5BAC1;
        --grid: #3F4147; --up: #3BA55D; --down: #E06C4B; --entry: #6FA8DC; --trigger: #9AA0A6; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: Heebo, Arial, sans-serif; line-height: 1.6; }
a { color: var(--entry); text-decoration: none; } a:hover { color: #9CC5EA; }
h1, h2 { font-family: 'Frank Ruhl Libre', Georgia, serif; font-weight: 500; margin: 0; }
h1 { font-size: 34px; line-height: 1.15; } h2 { font-size: 20px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.page { max-width: 860px; margin: 0 auto; padding: 24px 20px 56px; display: flex; flex-direction: column; gap: 28px; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mark { display: flex; align-items: center; gap: 12px; }
.logo { width: 28px; height: 28px; border-radius: 6px; background: var(--fg); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.meta, .label, .muted, .when { font-size: 13px; color: var(--muted); }
.pill { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(148,155,164,0.15); color: var(--soft); }
.pill-triggered, .pill-entered { background: rgba(59,165,93,0.15); color: var(--up); }
.pill-invalidated { background: rgba(224,108,75,0.15); color: var(--down); }
.operative { display: flex; flex-direction: column; gap: 10px; }
.block { font-size: 19px; margin: 0; }
.story { font-size: 17px; color: var(--soft); font-family: 'Frank Ruhl Libre', Georgia, serif; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; background: var(--panel); border-radius: 6px; }
.tile .value { font-size: 22px; font-weight: 500; } .tile small { font-size: 14px; color: var(--muted); }
.up { color: var(--up); } .down { color: var(--down); }
.chart-section, .precedent { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--panel); border-radius: 6px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--grid); border-radius: 6px; font-size: 14px; color: var(--fg); min-height: 44px; }
.chart { width: 100%; height: 320px; }
.attribution { font-size: 12px; margin-inline-start: 8px; color: var(--muted); }
.timeline ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 24px 1fr; gap: 6px 16px; padding-bottom: 20px; position: relative; }
.step .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--fg); margin-top: 6px; grid-row: span 2; }
.step-triggered .dot, .step-resolved .dot { background: var(--up); } .step-invalidated .dot { background: var(--down); }
.step-horizon .dot { background: transparent; border: 2px solid var(--muted); }
.step .text { padding: 12px 14px; background: var(--panel); border-radius: 6px; font-size: 15px; }
.step-horizon .text { background: transparent; padding: 0; color: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--grid); border-radius: 6px; }
.card.verdict-better, .card.verdict-worse { border-color: #E8C56B; }
.card .history { font-size: 13px; color: var(--soft); }
.split { display: flex; height: 14px; border-radius: 4px; overflow: hidden; }
.split .up { background: var(--up); } .split .down { background: var(--down); }
.recent { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; height: 130px; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 13px; }
.bar i { display: block; width: 100%; height: var(--h); border-radius: 3px 3px 0 0; background: var(--up); }
.bar.down i { background: var(--down); } .bar .date { font-size: 12px; color: var(--muted); }
.foot { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid var(--grid); font-size: 14px; color: var(--muted); }
.board { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 6px; overflow: hidden; }
.board th, .board td { text-align: right; padding: 12px 14px; border-top: 1px solid var(--grid); font-size: 15px; }
.board th { font-size: 13px; color: var(--muted); border-top: none; }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr 1fr; } .cards { grid-template-columns: 1fr; } h1 { font-size: 28px; } .board th:nth-child(2), .board td:nth-child(2) { display: none; } }
