/* Risk Monitor, recession tab: styles this tab alone needs. The shared vocabulary is in style.css. Colors only from the theme. */

/* the computed line under the intro: how many signals are on */
.rec-now { font-size: 15px; line-height: 1.5; margin: 0 0 12px; padding: 8px 14px; max-width: 900px; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; }

/* the records table: ten columns of words, set a little smaller so the whole of it fits a desktop screen */
.tbl.rec-records { font-size: 12.5px; }
.tbl.rec-records th, .tbl.rec-records td { padding: 7px 7px; line-height: 1.35; }
.tbl.rec-records th { font-size: 10.5px; }
.tbl.rec-records td.c-sig { padding: 5px 6px; }
.tbl.rec-records td.c-latest { min-width: 168px; }
.tbl.rec-records td.c-on { min-width: 84px; }
.tbl.rec-records td.c-on.is-on { color: var(--mf-red); }
.tbl.rec-records td.c-since { min-width: 66px; }
.tbl.rec-records td.c-n { min-width: 50px; }
.tbl.rec-records td.c-n .num { font-size: 14px; }
.tbl.rec-records td.c-false { min-width: 128px; }
.tbl.rec-records td.c-missed { min-width: 88px; }
.tbl.rec-records td.c-timing { min-width: 132px; }
.tbl.rec-records tbody tr { cursor: pointer; }
.tbl.rec-records tbody tr:hover td { background: var(--panel); }
.tbl.rec-records tbody tr.pick td, .tbl.rec-records.sticky tbody tr.pick td:first-child { background: var(--soft); font-weight: 400; }
.tbl.rec-records.sticky tbody tr:hover td:first-child { background: var(--panel); }
.tbl.rec-records.sticky tbody tr.pick:hover td:first-child { background: var(--soft); }
/* a small second line in a cell (the dates behind a count, the day of a reading) */
.tbl .sm { display: block; font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.35; margin-top: 2px; }
/* the signal's name is the button that opens it: one fixed size for every row */
.sigbtn { font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.25; width: 164px; height: 66px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--mf-bg); color: var(--accent); cursor: pointer; white-space: normal; overflow: hidden; }
.sigbtn:hover { border-color: var(--ink); }
.sigbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--mf-bg); }

/* the signal opened */
.sigdetail .ctl-row { margin: 4px 0 10px; }
.sigdetail select { width: 560px; }
.sigfacts { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 6px 16px; margin: 0 0 12px; max-width: 900px; font-size: 14px; line-height: 1.5; }
.sigfacts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--muted); padding-top: 3px; }
.sigfacts dd { margin: 0; }
.sigtable { margin-top: 10px; }
.tbl.rec-alarms, .tbl.rec-recessions { font-size: 12.5px; }
.tbl.rec-alarms th, .tbl.rec-alarms td, .tbl.rec-recessions th, .tbl.rec-recessions td { padding: 6px 7px; }
.tbl td.c-span { min-width: 112px; }
.tbl td.c-kind { min-width: 104px; }
.tbl.rec-recessions td.is-missed { color: var(--mf-red); font-weight: 600; }
.kind { display: inline-flex; align-items: center; gap: 6px; text-align: left; line-height: 1.3; }
.kindsw { width: 11px; height: 11px; border-radius: 2px; flex: 0 0 auto; display: inline-block; }

/* Kalshi: two tiles side by side (the page's market tile), then the price history and the contracts */
.tiles.rec-tiles { margin-bottom: 12px; }
.rec-tiles .tile .q, .rec-tiles .tile .o { max-width: 460px; }
.tbl.rec-contracts td.c-pays { min-width: 220px; max-width: 340px; }
.tbl.rec-contracts tr.live td { background: var(--soft); }
.ktable { margin-top: 10px; }

@media (max-width: 720px) {
  .sigbtn { width: 128px; height: 58px; font-size: 12px; line-height: 1.22; padding: 2px 6px; }
  .sigdetail select { width: 100%; }
  .sigfacts { grid-template-columns: 1fr; gap: 2px; }
  .sigfacts dd { margin: 0 0 8px; }
  .tbl.rec-records td.c-n { min-width: 36px; font-size: 11.5px; line-height: 1.25; }
  .tbl.rec-records th { font-size: 9.5px; letter-spacing: 0; padding: 7px 3px; }
  .tbl.rec-records td { padding: 7px 4px; }
  .tbl.rec-alarms th, .tbl.rec-alarms td, .tbl.rec-recessions th, .tbl.rec-recessions td { padding: 6px 4px; }
  .tbl.rec-contracts td.c-pays { min-width: 168px; }
  .tbl.rec-contracts th, .tbl.rec-contracts td { padding: 7px 6px; }
  .tbl td.c-span { min-width: 92px; }
  .tbl td.c-kind { min-width: 0; }
  .tbl.rec-alarms th, .tbl.rec-recessions th { font-size: 10px; letter-spacing: 0; }
}
