/* ════════════════════════════════════════════════════════════════════════════
   24-econclock.css  the ECONOMIC CALENDAR surface (static/js/econ-clock.js).
   ----------------------------------------------------------------------------
   Owns the `.ec-*` namespace (unchanged since v1; no other file uses it).
   Since 2026-10-08 the board is drawn on the shared table layout
   (66-table.css, .mpt-*: one 36px bar, the table flush under it, day group
   rows, zebra, the 324px side panel, a compact pane mode). This file keeps
   only what is the calendar's own: Time | Country | Impact | Event |
   Actual | Cavalry Est. | Surprise | Previous | Alert, column widths and
   their tiers, the event cell grid (a YoY twin is the second line of a
   paired row, its "YoY" straight under the title's "MoM"), Fed speakers and
   Treasury auctions folded to one row a day, the detail row, the side
   panel's sections and the agency notices under the table.

   Colour only where something changed: Actual against the Cavalry Est. on
   its own row (never Previous). House rules: tokens.css colours only (both
   themes follow), rings are inset box shadows never 1px borders, radius
   from tokens, tabular figures, no accent lines. Columns drop BY CLASS
   under a container query on the table width, never nth-child.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Stage layer (research.js stamps data-rsx-mode on #research-view) ───── */
.ec-surface{
  position:absolute;inset:0;display:none;flex-direction:column;
  min-width:0;min-height:0;background:var(--bg-primary);
}
.ec-surface [hidden]{display:none!important;}
#research-view[data-rsx-mode="econ"] .ec-surface{display:flex;}
#research-view[data-rsx-mode="econ"] #research-iframe{display:none;}
#research-view[data-rsx-mode="econ"] .research-panel{display:none!important;}

.ec-board{
  /* The shared layout's row height and cell pad (66-table.css). */
  --ec-row-h:var(--mpt-row);
  --ec-head-h:var(--mpt-colhead);
  --ec-line:max(14px, 0.9946rem);     /* one line of a paired row */
  --ec-pair-h:max(30px, 2.1313rem);   /* a paired (MoM + YoY) row */
  --ec-pad:var(--mpt-cellx);
}
.mpt.ec-board{container-name:mptpage ec;}
.mpt.mpt-pane.ec-board{container-name:mptpane ec;}

/* Screen reader only text. */
.ec-sr{
  position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}

/* ── Table ─────────────────────────────────────────────────────────────── */
/* The scroller is its own size container (ect): the table's column tiers
   follow the TABLE's width, which the side panel narrows on wide pages. */
/* Columns give way by width tier, so the table never scrolls sideways (a
   fluid root's subpixel widths would otherwise raise a 1px scrollbar). */
.ec-board .ec-scroll{container-type:inline-size;container-name:ect;overflow-x:hidden;
  scroll-padding-top:calc(var(--ec-head-h) + var(--ec-row-h));}
/* Column widths. Every numeric and drawing column is fixed; Event takes
   the rest, so the numbers sit right beside the titles at any width. */
/* Fits "All day" at the 12px value size at every width. */
.ec-table > thead .ec-c-time{width:max(136px, 8.75rem);}
td.ec-c-time{white-space:nowrap;}
td.ec-c-time .ec-cd{margin-left:0.25rem;}
.ec-table > thead .ec-c-cty{width:1.75rem;}
.ec-table > thead .ec-c-imp{width:3.25rem;}
.ec-table > thead .ec-c-event{width:auto;}
.ec-table > thead .ec-c-act{width:7.25rem;}
.ec-table > thead .ec-c-est{width:6.75rem;}
.ec-table > thead .ec-c-sur{width:4.75rem;}
.ec-table > thead .ec-c-prev{width:6.25rem;}
.ec-table > thead .ec-c-bell{width:2.25rem;}
/* A wide table gives the numbers more air rather than the Event column
   all of it, so a title and its numbers stay one glance apart. */
@container ect (min-width: 1000px){
  .ec-table > thead .ec-c-act{width:8.5rem;}
  .ec-table > thead .ec-c-prev{width:8rem;}
  .ec-table > thead .ec-c-est{width:7rem;}
  .ec-table > thead .ec-c-sur{width:6.5rem;}
}
/* Est. (Cavalry Estimate) only while a visible row carries an estimate;
   Surprise only while a visible row has both an actual and an estimate. */
.ec-table:not(.has-est) .ec-c-est,.ec-table:not(.has-sur) .ec-c-sur{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
/* A dropped column keeps its slot at zero width (never display:none), so
   the grouped row's colspan and the column grid stay aligned. */

.ec-table th.ec-c-num,.ec-table td.ec-c-num{text-align:right;padding-left:0.25rem;}
.ec-table td.ec-c-imp,.ec-table th.ec-c-imp{padding-left:0;padding-right:0;text-align:center;}
.ec-table td.ec-c-cty,.ec-table th.ec-c-cty{padding:0;text-align:center;}
.ec-table > thead th[title]{cursor:help;}
.ec-table > tbody > tr > td.ec-c-bell{padding:0;text-align:center;overflow:visible;text-overflow:clip;}

/* Day header (a 66-table.css group row): the date, plus "Today" on
   today. Nothing else. */
.ec-day-in{display:flex;align-items:center;gap:0.75rem;min-width:0;}
.ec-day-l{flex:none;}
.ec-day-btn{
  display:inline-flex;align-items:center;gap:0.375rem;flex:none;height:calc(var(--row-data) - 0.125rem);margin-left:-0.375rem;
  padding:0 0.375rem;border:none;border-radius:var(--radius-sm);background:transparent;cursor:pointer;
  font:inherit;color:inherit;
}
.ec-day-btn:hover{color:var(--text-primary);background:var(--bg-hover);}
.ec-day-btn:focus-visible{outline:1px solid var(--accent);outline-offset:-1px;}
.ec-day-btn[aria-expanded="true"] .ec-chev{transform:rotate(90deg);}
.ec-day.is-today td{color:var(--text-primary);}
.ec-day.is-past td{color:var(--text-muted);}
/* "Today": a quiet word after the date, the way the Earnings Calendar's
   day line carries its count. The tint says today. */
.ec-today-tag{font-size:var(--fs-label);font-weight:400;letter-spacing:normal;color:var(--text-secondary);}
.ec-chev{width:0.625rem;height:0.625rem;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;transition:transform 0.12s ease;}

/* Rows */
/* Glyphs (bell, speaker): Lucide strokes. */
.ec-ico{
  width:0.875rem;height:0.875rem;flex:none;
  fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
.ec-dot{color:var(--text-muted);font-weight:400;}
.ec-bell:focus-visible,.ec-live:focus-visible,.ec-notes:focus-visible,.ec-kv a:focus-visible,
.ec-foot a:focus-visible,.ec-link-btn:focus-visible{outline:1px solid var(--accent);outline-offset:-1px;}
/* Rows: height, zebra, hover and selection are 66-table.css's. */
.ec-row td{color:var(--text-primary);}
.ec-row{outline:none;}
.ec-row.is-open > td{background:var(--bg-tertiary);}

td.ec-c-time{font-variant-numeric:tabular-nums;color:var(--text-secondary)!important;}
/* Event cell, a grid: title | measure | period, note, live, topic. The
   measure ("m/m") sits right after the title; a paired row's second line
   puts "y/y" in the same column, straight under it, level with the YoY
   numbers. The title column shrinks (ellipsis) before the measure does. */
.ec-evc{
  display:grid;grid-template-columns:minmax(0, max-content) auto minmax(0, 1fr);
  align-items:baseline;min-width:0;
}
.ec-ev{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ec-evm{white-space:nowrap;}
.ec-evt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ec-meas{
  margin-left:0.375rem;font-size:var(--fs-data);font-weight:400;
  color:var(--text-muted);cursor:default;
}
.ec-evc.is-pair{row-gap:0;}
.ec-evc.is-pair > *{line-height:var(--ec-line);}
.ec-evm2{grid-column:2;grid-row:2;}
/* Names are one weight; a high importance title is the one bold name. */
.ec-ev{font-weight:400;}
.ec-imp-r3 .ec-ev{font-weight:600;}
.ec-per{margin-left:0.375rem;font-size:var(--fs-data);color:var(--text-muted);}
.ec-topic{margin-left:0.375rem;font-size:var(--fs-data);color:var(--text-muted);}

/* Paired release (headline + YoY twin): two lines in every number cell,
   both at the value size and ink. */
.ec-table > tbody > tr.ec-row.is-pair > td{height:var(--ec-pair-h);}
.ec-l1,.ec-l2{height:var(--ec-line);line-height:var(--ec-line);overflow:hidden;text-overflow:ellipsis;}

/* The first row still to come today: a stronger hairline above it (ink,
   never an accent line). */
.ec-row.is-nextup > td{box-shadow:inset 0 1px 0 var(--border-strong);}

/* Grouped row (Fed speakers, Treasury auctions): chevron, "Fed speakers
   (3)", then the names (or tenors) muted. No times until expanded. */
.ec-grp .ec-evc{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ec-grp .ec-chev{margin-right:0.375rem;vertical-align:-0.0625rem;color:var(--text-muted);}
.ec-grp.is-open .ec-chev{transform:rotate(90deg);}
.ec-grp-line{margin-left:0.625rem;font-size:var(--fs-data);color:var(--text-muted);}
.ec-grp.is-open > td{background:var(--bg-tertiary);}
.ec-grp.has-sel > td{background:var(--bg-elevated);}
.ec-row.ec-sub .ec-c-event{padding-left:calc(var(--ec-pad) + 1rem);}
.ec-live{
  margin-left:0.5rem;padding:0.0625rem 0.375rem;border-radius:var(--radius-sm);
  font-size:var(--fs-label);font-weight:500;text-decoration:none;
  color:var(--red);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--red) 45%, transparent);
}
.ec-live:hover{background:color-mix(in srgb, var(--red) 10%, transparent);}
/* Every value: one size, one weight, full ink, tabular sans figures. */
td.ec-c-num{font-variant-numeric:tabular-nums;font-weight:400;color:var(--text-primary);}
.ec-u{font-size:1em;font-weight:400;color:inherit;}
/* "Pending" / "Cancelled" in the Actual cell: a quiet word, not a value. */
.ec-note{color:var(--text-muted)!important;font-weight:400;font-size:var(--fs-data);}
.ec-cd{font-variant-numeric:tabular-nums;color:var(--text-muted);font-weight:400;}

/* Surprise: actual minus our estimate, signed, in ink. The sign says it. */
.ec-sur{font-weight:400;cursor:default;color:var(--text-primary);}

.ec-dim{color:var(--text-muted);}
.ec-minus{font-family:var(--font-sans);}

/* Actual against the expectation on its own row (Cavalry Est.), never
   against Previous: ec-beat green, ec-miss red, by the series' polarity
   (econ-clock.js actualTone). No expectation, no colour. The signed
   Surprise beside it and hidden text carry the same reading. */
.ec-beat{color:var(--green);}
.ec-miss{color:var(--red);}

/* Past rows mute; a released actual stays in its ink (or its beat / miss
   colour). */
.ec-row.is-past td{color:var(--text-muted);}
.ec-row.is-past .ec-c-time,.ec-row.is-past .ec-c-prev,.ec-row.is-past .ec-c-est,
.ec-row.is-past .ec-c-sur{color:var(--text-muted)!important;}
.ec-row.is-past .ec-ev{color:var(--text-muted);}
/* Printed today: still the news of the day, so the title keeps its ink. */
.ec-row.is-today.is-past.has-actual .ec-ev{color:var(--text-primary);}
.ec-row.is-past .ec-sur{color:inherit;}
.ec-row.has-actual .ec-c-act{color:var(--text-primary);}
.ec-row.is-withdrawn .ec-ev{text-decoration:line-through;text-decoration-color:var(--text-muted);}

/* Revised prior: the table convention, a small muted "r" after the value
   (old value in the tooltip, the detail row and the side panel). */
.ec-rev{
  margin-left:0.125rem;font-family:var(--font-sans);font-size:var(--fs-label);font-weight:400;
  vertical-align:0.35em;color:var(--text-muted);cursor:help;
}

/* Country flag: a crisp inline SVG, a hairline ring so the white stripes
   hold their edge on the light theme. An unknown code is a muted chip. */
.ec-flag{
  display:inline-block;width:1rem;height:0.6875rem;vertical-align:middle;overflow:hidden;
  border-radius:2px;box-shadow:0 0 0 1px color-mix(in srgb, var(--text-primary) 14%, transparent);
}
.ec-flag-svg{display:block;width:100%;height:100%;}
.ec-flag-code{
  width:auto;height:auto;padding:0 0.1875rem;box-shadow:inset 0 0 0 1px var(--border-default);
  font-size:var(--fs-label);font-weight:400;line-height:0.875rem;color:var(--text-muted);
}
.ec-row.is-past .ec-flag{opacity:0.6;}

/* Impact: three bars in ONE grey, the filled count is the tier. */
.ec-imp{display:inline-flex;align-items:flex-end;gap:2px;height:11px;vertical-align:middle;}
.ec-imp i{display:block;width:4px;border-radius:1px;background:var(--border-default);}
.ec-imp i:nth-child(1){height:40%;}
.ec-imp i:nth-child(2){height:70%;}
.ec-imp i:nth-child(3){height:100%;}
.ec-imp-1 i:nth-child(1),.ec-imp-2 i:nth-child(-n+2),.ec-imp-3 i{background:var(--text-secondary);}
.ec-row.is-past .ec-imp{opacity:0.6;}

/* Alert bell: shown on hover / focus / when set; always on touch. */
.ec-bell{
  display:inline-flex;align-items:center;justify-content:center;
  width:1.75rem;height:1.625rem;padding:0;border:none;border-radius:var(--radius-sm);
  background:transparent;color:var(--text-muted);cursor:pointer;opacity:0;
}
.ec-bell .ec-ico{width:0.875rem;height:0.875rem;}
.ec-row:hover .ec-bell,.ec-row:focus-within .ec-bell,.ec-bell:focus-visible{opacity:1;}
.ec-bell:hover{color:var(--text-primary);background:var(--bg-hover);}
.ec-bell[aria-pressed="true"]{opacity:1;color:var(--accent);}
.ec-bell[aria-pressed="true"] .ec-ico{fill:color-mix(in srgb, var(--accent) 22%, transparent);}
@media (hover: none){ .ec-bell{opacity:1;} }

/* Detail row: chart | last 6 | facts, one glance. */
.ec-detail > td{
  padding:0.625rem var(--ec-pad) 0.75rem calc(5.75rem + var(--ec-pad));background:var(--bg-tertiary);
  box-shadow:inset 0 -1px 0 var(--border-default);
}
.ec-dt{display:flex;flex-wrap:wrap;align-items:flex-start;gap:0.75rem 2rem;min-width:0;}
.ec-dt-k{
  margin-bottom:0.25rem;font-size:var(--fs-label);font-weight:400;color:var(--text-muted);
}
.ec-dt-chart{flex:none;}
.ec-dt-wait{min-width:10.5rem;font-size:var(--fs-data);}
.ec-spark{display:block;overflow:visible;}
.ec-spark-bar,.ec-spark-dot{fill:var(--text-muted);}
.ec-spark-last{fill:var(--text-primary);}
.ec-spark-line{fill:none;stroke:var(--text-muted);stroke-width:1.5;stroke-linejoin:round;}
.ec-spark-zero{stroke:var(--border-strong);stroke-width:1;}
.ec-dt-last{flex:none;}
.ec-dt-hist{border-collapse:collapse;font-size:var(--fs-data);}
.ec-dt-hist th{
  padding:0 1rem 0.125rem 0;font-size:var(--fs-label);font-weight:400;
  color:var(--text-muted);text-align:left;
}
.ec-dt-hist th:last-child,.ec-dt-hist td:last-child{padding-right:0;text-align:right;}
.ec-dt-hist td{
  padding:0.0625rem 1rem 0.0625rem 0;color:var(--text-primary);
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.ec-dl{margin:0;display:flex;flex-wrap:wrap;gap:0.5rem 1.75rem;min-width:0;flex:1 1 16rem;}
.ec-kv{display:flex;flex-direction:column;gap:0.125rem;min-width:0;}
.ec-kv dt{font-size:var(--fs-label);font-weight:400;color:var(--text-muted);}
.ec-kv dd{margin:0;font-size:var(--fs-data);color:var(--text-primary);white-space:normal;}
.ec-kv a{color:var(--accent);text-decoration:none;}
.ec-kv a:hover{text-decoration:underline;}

/* Messages (loading, error, empty): one grey line under the visible
   column head (66-table.css .mpt-empty). */
.ec-scroll.is-msg .ec-table > tbody{display:none;}
.ec-link-btn{
  margin-left:0.5rem;padding:0;border:none;background:none;cursor:pointer;
  font:inherit;font-weight:500;color:var(--accent);
}
.ec-link-btn:hover{text-decoration:underline;}

/* Footer, outside the table: only the agency notices their terms require
   on the page (Census, BLS), one line. No sources line, no age. */
.ec-foot{
  flex:none;display:flex;flex-direction:column;min-width:0;padding:4px var(--mpt-padx);
  font-size:var(--fs-label);color:var(--text-muted);box-shadow:inset 0 1px 0 var(--border-default);
}
.ec-foot:empty{display:none;}
.ec-notes{
  margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:var(--fs-label);line-height:1.45;color:color-mix(in srgb, var(--text-muted) 72%, transparent);
  cursor:default;outline:none;border-radius:var(--radius-sm);
}
.ec-notes:hover,.ec-notes:focus{white-space:normal;color:var(--text-secondary);}

/* ── Width tiers ───────────────────────────────────────────────────────── */
/* Table tiers follow the table's own width (ect); the header bar's follow
   the surface (ec). */
/* As the table narrows: the speech topic goes, then Surprise; Prior and
   Est. only on a phone sized table. The measure word always stays. */
@container ect (max-width: 740px){
  .ec-topic{display:none;}
  .ec-detail > td{padding-left:var(--ec-pad);}
}
@container ect (max-width: 620px){
  .ec-table th.ec-c-sur,.ec-table td.ec-c-sur{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
  .ec-table > thead .ec-c-act,.ec-table > thead .ec-c-prev{width:5.25rem;}
}
@container ect (max-width: 540px){
  .ec-table th.ec-c-prev,.ec-table td.ec-c-prev,.ec-table th.ec-c-est,.ec-table td.ec-c-est{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
  .ec-table > thead .ec-c-time{width:3.25rem;}
  td.ec-c-time .ec-cd{display:none;}
  .ec-table th.ec-c-cty,.ec-table td.ec-c-cty{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
  .ec-per,.ec-live,.ec-grp-line{display:none;}
}
/* The bar's Squawk tool: the speaker glyph beside its word; on a narrow
   page the word goes and the glyph stays, so the bar stays one line. */
.ec-tool .ec-ico{width:12px;height:12px;stroke-width:1.9;}
@container ec (max-width: 1100px){
  .ec-tool span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
}

/* ── Side detail panel (page width 1280px and up; econ-clock.js PANEL_MQ) ─
   One column of typographic sections split by hairlines: no cards, no
   icons. Scrolls on its own under the header and Next strip. */
.ec-side{display:none;}
.ec-main .ec-side{--mpt-side-pad:0px;padding:0;overscroll-behavior:contain;}
@media (min-width: 1280px){
  .ec-side{display:block;}
}
.ec-sd{display:flex;flex-direction:column;min-width:0;}
.ec-sd-empty{margin:0;padding:0.75rem 0.875rem;font-size:var(--fs-label);color:var(--text-muted);}
.ec-sd-ctx{
  padding:0.75rem 0.875rem 0;font-size:var(--fs-label);font-weight:400;color:var(--text-muted);
}
.ec-sd-head{padding:0.75rem 0.875rem 0.5rem;}
.ec-sd-ctx + .ec-sd-head{padding-top:0.125rem;}
.ec-sd-title{
  margin:0;font-family:var(--font-sans);font-size:var(--fs-data);font-weight:600;
  letter-spacing:normal;line-height:1.25;color:var(--text-primary);
}
.ec-sd-meta{
  display:flex;flex-wrap:wrap;align-items:center;margin-top:0.0625rem;
  font-size:var(--fs-data);color:var(--text-secondary);
}
.ec-sd-meta .ec-dot{white-space:pre;}
.ec-sd-meta .ec-imp{margin-left:0.125rem;}
.ec-sd-title .ec-meas,.ec-sd-title .ec-per{font-size:var(--fs-data);font-weight:400;}

.ec-sd-fig{
  display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:0.375rem 0.625rem;padding:0 0.875rem 0.75rem;
}
.ec-sd-k{
  margin:0;font-size:var(--fs-label);font-weight:400;
  color:var(--text-muted);
}
/* A figure: the value size in bold (a title weight), full ink. */
.ec-sd-v{
  display:flex;align-items:flex-end;
  font-family:var(--font-sans);font-variant-numeric:tabular-nums;
  font-size:var(--fs-data);font-weight:600;line-height:1.25;
  letter-spacing:normal;color:var(--text-primary);white-space:nowrap;
}
.ec-sd-v .ec-u{font-size:1em;font-weight:inherit;}
.ec-sd-v.is-wait,.ec-sd-v .ec-note{
  font-size:var(--fs-data);font-weight:600;color:var(--text-primary);
}
.ec-sd-v.is-wait .ec-cd{font-family:var(--font-sans);font-variant-numeric:tabular-nums;color:inherit;font-weight:inherit;}
.ec-sd-rev{margin-top:0.1875rem;font-size:var(--fs-label);color:var(--text-muted);}
.ec-sd-when{padding:0 0.875rem 0.75rem;font-size:var(--fs-data);}

.ec-sd-sec{padding:0.75rem 0.875rem;box-shadow:inset 0 1px 0 var(--border-subtle);}
.ec-sd-p{
  margin:0;font-size:var(--fs-data);line-height:1.5;color:var(--text-secondary);
}
.ec-sd-p + .ec-sd-p{margin-top:0.375rem;}
.ec-sd-rel span{color:var(--text-primary);}
.ec-sd-p + .ec-sd-dl{margin-top:0.625rem;}

.ec-sd-dl{
  margin:0;display:grid;grid-template-columns:8.25rem minmax(0, 1fr);gap:0.3125rem 0.75rem;
  font-size:var(--fs-data);line-height:1.4;
}
.ec-sd-dl dt{font-size:var(--fs-label);color:var(--text-muted);}
.ec-sd-dl dd{margin:0;min-width:0;color:var(--text-primary);overflow-wrap:anywhere;}
.ec-sd a{color:var(--accent);text-decoration:none;}
.ec-sd a:hover{text-decoration:underline;}
.ec-sd a:focus-visible{outline:1px solid var(--accent);outline-offset:-1px;border-radius:2px;}

.ec-sd-kh{display:flex;align-items:baseline;justify-content:space-between;gap:0.75rem;}
.ec-sd-read{
  font-size:var(--fs-label);color:var(--text-muted);white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.ec-sd-read b{font-size:var(--fs-data);font-weight:400;color:var(--text-primary);}
.ec-sd-chart{margin-top:0.375rem;}
.ec-sd-chart.is-wait{min-height:5.25rem;font-size:var(--fs-data);}
.ec-sd-chart .ec-spark{width:100%;height:auto;}

/* A chart with its scale (econ-clock.js chartHtml): the plot, then a right
   hand axis with the highest and lowest values (and zero where the zero
   line crosses), then the first and last period underneath. */
.ec-ch{display:grid;grid-template-columns:minmax(0, 1fr) auto;column-gap:0.5rem;}
.ec-ch-plot{min-width:0;}
.ec-ch-ax{position:relative;min-width:2.25rem;}
.ec-ch-y{
  position:absolute;left:0;transform:translateY(-50%);white-space:nowrap;
  font-variant-numeric:tabular-nums;
  font-size:var(--fs-label);line-height:1;color:var(--text-muted);
}
.ec-ch-y.is-zero{color:var(--text-muted);}
.ec-ch-x{
  display:flex;justify-content:space-between;gap:0.75rem;margin-top:0.3125rem;min-width:0;
  padding-right:2.75rem;font-size:var(--fs-label);color:var(--text-muted);white-space:nowrap;
}
.ec-ch-x span{min-width:0;overflow:hidden;text-overflow:ellipsis;}
.ec-dt-chart .ec-ch{width:14rem;}
.ec-dt-chart .ec-spark{width:100%;height:auto;}
.ec-dt-chart .ec-ch-x{width:14rem;}
.ec-spark-hit{fill:transparent;cursor:crosshair;}
.ec-spark .is-hot{fill:var(--accent);}
.ec-spark circle.is-hot{r:3.2px;}

/* The Earnings Calendar's history table. */
.ec-sd-hist{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--fs-data);}
.ec-sd-hist caption{text-align:left;caption-side:top;margin-bottom:0.5rem;}
.ec-sd-hist th{
  height:1.375rem;padding:0;font-size:var(--fs-label);font-weight:500;
  color:var(--text-muted);text-align:left;box-shadow:inset 0 -1px 0 var(--border-default);
}
.ec-sd-hist td{
  height:1.375rem;padding:0;color:var(--text-primary);box-shadow:inset 0 -1px 0 var(--border-subtle);
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.ec-sd-hist th:last-child,.ec-sd-hist td:last-child{text-align:right;}
.ec-sd-hist tr:last-child td{box-shadow:none;}

/* ── Cavalry Estimate (our model; tracker/econ_estimate.py) ──────────────
   A value like any other in the table. The panel section shows the figure
   and the miss; how it was built and its track record live in the
   figure's tooltip, never as sentences on the page. */
.ec-est{color:inherit;font-weight:400;}
.ec-est-fig{
  display:flex;align-items:baseline;flex-wrap:wrap;gap:0.25rem 0.75rem;margin:0.125rem 0 0;
}
.ec-est-v{
  font-family:var(--font-sans);font-variant-numeric:tabular-nums;
  font-size:var(--fs-data);font-weight:600;color:var(--text-primary);
}
.ec-est-miss{
  font-family:var(--font-sans);font-variant-numeric:tabular-nums;font-weight:400;
  font-size:var(--fs-data);color:var(--text-primary);
}
.ec-est-v[title],.ec-sd-est .ec-sd-k[title]{cursor:help;}

/* Side panel: the YoY twin of a paired release. */
.ec-yy{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:0.375rem 0.625rem;margin-top:0.375rem;}
.ec-yy-v{
  font-variant-numeric:tabular-nums;font-size:var(--fs-data);
  font-weight:600;color:var(--text-primary);white-space:nowrap;
}

/* ── Workspaces ECAL pane (.ec-board.mpt-pane, econ-clock.js pane mode):
   Time, Impact, Event, Actual, Cavalry Est., Previous; no country,
   surprise or alert column (a drop keeps its zero width slot, never
   display:none, so the grouped row's colspan stays aligned), no notices.
   A paired row keeps its two lines at the pane's size. ── */
.mpt-pane.ec-board{--ec-line:13px;--ec-pair-h:28px;}
.mpt-pane.ec-board .ec-foot{display:none!important;}
.mpt-pane.ec-board .ec-table th.ec-c-cty,.mpt-pane.ec-board .ec-table td.ec-c-cty,
.mpt-pane.ec-board .ec-table th.ec-c-sur,.mpt-pane.ec-board .ec-table td.ec-c-sur,
.mpt-pane.ec-board .ec-table th.ec-c-bell,.mpt-pane.ec-board .ec-table td.ec-c-bell{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
.mpt-pane.ec-board .ec-table > thead .ec-c-imp{width:50px;}
/* T9 fix B (2026-10-24): Time and each value column are as wide as their
   widest text, heading and padding included (econ-clock.js fitNumCols
   sets --ec-w-*), so a number never truncates; Event takes what is left
   and wraps to two lines below. The fallbacks hold until the first fit. */
.mpt-pane.ec-board .ec-table > thead .ec-c-time{width:var(--ec-w-time, 56px);}
.mpt-pane.ec-board .ec-table > thead .ec-c-act{width:var(--ec-w-act, 64px);}
.mpt-pane.ec-board .ec-table.has-est > thead .ec-c-est{width:var(--ec-w-est, 64px);}
.mpt-pane.ec-board .ec-table > thead .ec-c-prev{width:var(--ec-w-prev, 64px);}
/* Event names read in full at normal pane widths: a single release's name
   wraps to a second line (a paired MoM / YoY row keeps one line per
   measure, level with its two numbers); a name too long for two lines
   ends in an ellipsis, the whole name in its hover (.ec-ev title). */
.mpt-pane.ec-board .ec-row:not(.is-pair) .ec-ev{
  white-space:normal;overflow-wrap:break-word;line-height:var(--ec-line);
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;
}
.mpt-pane.ec-board .ec-row:not(.is-pair) > td.ec-c-event{padding-top:3px;padding-bottom:3px;}
/* T9 fix c (2026-10-24): the measure word rides inside the name's text run
   (econ-clock.js .is-inl), so it wraps with the words, after the name. */
.mpt-pane.ec-board .ec-evc.is-inl .ec-meas{margin-left:0;}
/* A single row's unit word (" bbl") wraps under its number when the column
   only fits the number; the number itself never breaks or truncates. */
.mpt-pane.ec-board .ec-row:not(.is-pair) > td.ec-c-num{white-space:normal;text-overflow:clip;line-height:var(--ec-line);padding-top:3px;padding-bottom:3px;}
.mpt-pane.ec-board td.ec-c-time .ec-cd,.mpt-pane.ec-board .ec-per,.mpt-pane.ec-board .ec-topic,
.mpt-pane.ec-board .ec-live,.mpt-pane.ec-board .ec-grp-line{display:none;}
.mpt-pane.ec-board .ec-detail > td{padding-left:var(--ec-pad);}
/* The page's narrow table tiers (the @container ect rules above) never
   apply in a pane: its own column set is fixed here. */
.mpt-pane.ec-board .ec-table th.ec-c-time,.mpt-pane.ec-board .ec-table td.ec-c-time,
.mpt-pane.ec-board .ec-table th.ec-c-imp,.mpt-pane.ec-board .ec-table td.ec-c-imp,
.mpt-pane.ec-board .ec-table th.ec-c-act,.mpt-pane.ec-board .ec-table td.ec-c-act,
.mpt-pane.ec-board .ec-table th.ec-c-prev,.mpt-pane.ec-board .ec-table td.ec-c-prev,
.mpt-pane.ec-board .ec-table.has-est th.ec-c-est,.mpt-pane.ec-board .ec-table.has-est td.ec-c-est{
  visibility:visible;font-size:1em;overflow:hidden;
}
.mpt-pane.ec-board .ec-table th.ec-c-act,.mpt-pane.ec-board .ec-table td.ec-c-act,
.mpt-pane.ec-board .ec-table th.ec-c-prev,.mpt-pane.ec-board .ec-table td.ec-c-prev,
.mpt-pane.ec-board .ec-table.has-est th.ec-c-est,.mpt-pane.ec-board .ec-table.has-est td.ec-c-est{padding:0 var(--ec-pad) 0 0.25rem;}
.mpt-pane.ec-board .ec-table th.ec-c-prev,.mpt-pane.ec-board .ec-table td.ec-c-prev{padding-right:var(--mpt-padx);}
@container ect (max-width: 300px){
  .mpt-pane.ec-board .ec-table th.ec-c-est,.mpt-pane.ec-board .ec-table td.ec-c-est,
  .mpt-pane.ec-board .ec-table th.ec-c-imp,.mpt-pane.ec-board .ec-table td.ec-c-imp{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
}

/* ── Canada (Ticket 3, 2026-10-19): Market switch, Consensus, Status ─────
   The Market switch is Ticket 2's segment (66-table.css .mpt-seg) with a
   short word beside each label: the bar shows the short one under 1100px,
   so the one bar still fits at 1024px. Consensus and Status are two more
   fixed columns; a missing number is a muted "n/a" (its reason in the
   hover), never an empty box. Status is quiet text, never a coloured pill:
   Pending and Not collected are the only words that take a tone. */
/* The switch reads US / Canada / Both, the one wording of all three
   calendars (Ticket 3 W4, 2026-10-19); "United States" is US's title. */

.ec-table > thead .ec-c-cty{width:2.25rem;}
.ec-table > thead .ec-c-cons{width:5.375rem;}
.ec-table > thead .ec-c-st{width:max(118px, 8.25rem);}
.ec-table th.ec-c-st,.ec-table td.ec-c-st{text-align:left;padding-left:0.625rem;white-space:nowrap;}
.ec-na{color:var(--text-muted);font-weight:400;cursor:help;}
.ec-st{color:var(--text-secondary);text-decoration:none;font-size:var(--fs-label);}
a.ec-st:hover{color:var(--text-primary);text-decoration:underline;text-underline-offset:2px;}
a.ec-st:focus-visible{outline:1px solid var(--accent);outline-offset:-1px;}
.ec-st-scheduled{color:var(--text-muted);}
.ec-st-pending{color:var(--text-primary);}
.ec-st-not_collected,.ec-st-cancelled{color:var(--text-muted);font-style:normal;}
.ec-row.is-past .ec-c-cons{color:var(--text-muted)!important;}
/* Consensus is n/a on every row, so it is the first column to give way. */
@container ect (max-width: 900px){
  .ec-table th.ec-c-cons,.ec-table td.ec-c-cons{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
}
@container ect (max-width: 540px){
  .ec-table th.ec-c-st,.ec-table td.ec-c-st{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
}
/* Pane: the country shows (a pane can hold both markets); Consensus (n/a
   on every row) stays on the page; Status narrows to its word. */
.mpt-pane.ec-board .ec-table th.ec-c-cty,.mpt-pane.ec-board .ec-table td.ec-c-cty{width:2rem;padding:0;overflow:visible;visibility:visible;font-size:var(--fs-data);}
.mpt-pane.ec-board .ec-table th.ec-c-cons,.mpt-pane.ec-board .ec-table td.ec-c-cons{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
.mpt-pane.ec-board .ec-table > thead .ec-c-st{width:104px;}
/* The page's 540px tier hides Status; a pane keeps it (it is the row's
   update word) until 420px. */
.mpt-pane.ec-board .ec-table th.ec-c-st,.mpt-pane.ec-board .ec-table td.ec-c-st{padding:0 var(--mpt-padx) 0 0.25rem;visibility:visible;overflow:hidden;font-size:var(--fs-label);}
@container ect (max-width: 420px){
  .mpt-pane.ec-board .ec-table > thead .ec-c-st{width:0;}
  .mpt-pane.ec-board .ec-table th.ec-c-st,.mpt-pane.ec-board .ec-table td.ec-c-st,
  .mpt-pane.ec-board .ec-table th.ec-c-cty,.mpt-pane.ec-board .ec-table td.ec-c-cty{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
}
/* A narrow page (1024px class) cannot hold every control in one bar with the
   Market switch: the page title goes (the sidebar row names the page) and
   the Fed blackout note goes (it shows again on a wider page), and the
   Squawk word goes as intended above. Queried by "mptpage": 66-table.css
   loads later and resets the board's container-name to mptpage alone, so
   the "ec" name above never matches on the page (found 2026-10-19). */
@container mptpage (max-width: 1100px){
  .ec-board:not(.mpt-pane) > [role="toolbar"] > h2,.ec-board:not(.mpt-pane) .ec-blackout{display:none!important;}
  .ec-board:not(.mpt-pane) .ec-tool span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
}
/* A past row's country chip keeps its ink (the code is text, not a
   drawing); the row's muted time already says it is past. */
.ec-row.is-past .ec-flag.ec-flag-code{opacity:1;}

/* ── Ticket 3 W4 (2026-10-19): Both at 1440 with the side panel ─────────
   With US and Canada in one table the Event column was squeezed to a few
   letters ("BoC Rate Deci..."). Measured at 1440 (table 915px): Time held
   136px for 35px of words, Status 118px for 85px. Time is as wide as its
   words until a countdown rides in it (has-cd, econ-clock.js); Status
   fits "Released 08:30"; Consensus fits its heading. Names then show in
   full at 1440; a narrower table truncates them with the name as hover. */
.ec-table:not(.has-cd) > thead .ec-c-time{width:max(64px, 4.25rem);}
/* Only while the column shows: a narrower table drops Consensus (900px)
   and Status (540px) to zero width, and these must not hold them open. */
@container ect (min-width: 541px){ .ec-table > thead .ec-c-st{width:max(116px, 7.75rem);} }
@container ect (min-width: 901px){ .ec-table > thead .ec-c-cons{width:max(84px, 5.75rem);} }
/* The bar at 1440: the Squawk word goes below a 1400px page (the glyph,
   title and accessible name stay), so search keeps "Search events". */
.ec-board:not(.mpt-pane) .mpt-search{min-width:max(128px, 8.5rem);}
@container mptpage (max-width: 1400px){
  .ec-board:not(.mpt-pane) .ec-tool span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
}
/* Pane bar: US / Canada / Both stays whole; the blackout note (it shows
   on the page) goes in a pane under 640px, the Filters word under 460px. */
@container mptpane (max-width: 640px){
  .mpt-pane.ec-board .ec-blackout{display:none!important;}
}
@container mptpane (max-width: 460px){
  .mpt-pane.ec-board .mpt-fl-w{display:none;}
  .mpt-pane.ec-board .mpt-search{min-width:56px;}
}
/* A narrow pane keeps the country chip (Both mixes US and CA rows) and
   lets the impact bars go instead. */
@container ect (max-width: 420px){
  .mpt-pane.ec-board .ec-table > thead .ec-c-cty{width:2rem;}
  .mpt-pane.ec-board .ec-table th.ec-c-cty,.mpt-pane.ec-board .ec-table td.ec-c-cty{width:2rem;padding:0;overflow:visible;visibility:visible;font-size:var(--fs-data);}
  .mpt-pane.ec-board .ec-table > thead .ec-c-imp{width:0;}
  .mpt-pane.ec-board .ec-table th.ec-c-imp,.mpt-pane.ec-board .ec-table td.ec-c-imp{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
}
/* 1024 (table about 870px): "Impact" and "Cavalry Est." were clipped in
   their headings. Impact fits its word; Est. fits its heading; Actual
   gives back the space (its values are at most "1,234.5K"). */
.ec-table > thead .ec-c-imp{width:max(58px, 3.75rem);}
@container ect (min-width: 541px) and (max-width: 999px){
  .ec-table > thead .ec-c-est{width:max(104px, 7rem);}
  .ec-table > thead .ec-c-act{width:max(84px, 5.75rem);}
}
/* A pane under 420px: Cavalry Est. goes (its heading could not fit and
   the row's detail still shows it), so event names get the room. */
@container ect (max-width: 420px){
  .mpt-pane.ec-board .ec-table.has-est > thead .ec-c-est{width:0;}
  .mpt-pane.ec-board .ec-table.has-est th.ec-c-est,.mpt-pane.ec-board .ec-table.has-est td.ec-c-est{width:0;padding:0;overflow:hidden;visibility:hidden;font-size:0;}
}
/* A pane under 380px: the shared narrow pane rule (50-earnings.css has
   the why): CSV goes, Canada reads CA, the switch and search tighten. */
.ec-board .ec-mk-s{display:none;}
@container mptpane (max-width: 380px){
  .mpt-pane.ec-board .ec-mk-l,.mpt-pane.ec-board #ec-csv{display:none;}
  .mpt-pane.ec-board .ec-mk-s{display:inline;}
  .mpt-pane.ec-board .mpt-seg-b{padding:0 5px;}
}

/* Ticket 3 fix 3 (2026-10-20): with the Status menu in the page bar the
   Fed blackout note pushed the clock, sound and CSV past the right edge at
   1440. The note is the one item that gives way: it truncates (full text
   in its hover) instead of the bar overflowing. */
.ec-board:not(.mpt-pane) .ec-blackout{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* T9 fix B (2026-10-24): the pane's search box says "Search events" in the
   muted placeholder ink at every pane width (it used to read "Search",
   then went transparent under 380px, so the box looked empty). It fits
   whole from a pane of about 330px; a narrower pane ends it in an
   ellipsis instead of clipping a letter. */
.mpt-pane.ec-board .mpt-q{text-overflow:ellipsis;}
.mpt-pane.ec-board .mpt-q::placeholder{color:var(--text-muted);opacity:1;}

/* T9 fix c (2026-10-24): a pane under 380px (the right column at 1280,
   about 305px) could only give the search about 60px, so it read
   "Search..."; the range menu, the market switch and Filters already sit
   at their smallest. There the toolbar takes a second row and the search
   spans it whole, so it always reads "Search events" and no control is
   dropped or hidden (the AI cursor targets stay visible). */
@container mptpane (max-width: 380px){
  .mpt-pane.ec-board .mpt-bar{flex-wrap:wrap;height:auto;row-gap:4px;padding-top:4px;padding-bottom:4px;}
  .mpt-pane.ec-board .mpt-bar > .mpt-sp{display:none;}
  .mpt-pane.ec-board .mpt-bar > .mpt-search{flex:1 0 100%;max-width:none;min-width:0;}
}
