/* Finance surfaces: company scanning and index comparison have separate rhythms. */
.stock-controls { font-size:16px; font-family:"DM Sans",Arial,sans-serif; display:flex; flex-wrap:wrap; align-items:end; gap:18px; margin:24px 0; }
.ix-ranges[hidden], .stock-controls[hidden], .stock-status[hidden], .stk tr[hidden], .ix-view[hidden] { display:none!important; }
.stock-controls label { display:grid; gap:6px; min-width:0; }
.stock-controls label:first-child { flex:1 1 240px; }
.stock-controls input[type=search], .stock-controls select { min-width:0; width:100%; min-height:46px; padding:10px 12px; font:inherit; color:inherit; background:var(--field); border:1px solid var(--line-strong); border-radius:0; }
.stock-controls button, .ix-ranges button { min-height:44px; padding:10px 16px; font:inherit; font-family:"DM Sans",Arial,sans-serif; cursor:pointer; }
.stock-controls .stock-table-toggle { display:flex; align-items:center; gap:10px; flex-basis:100%; }
.stock-table-toggle input { width:20px; height:20px; }
.stk th button { background:none; border:0; padding:12px 0; color:inherit; font:inherit; text-align:left; cursor:pointer; min-height:44px; }
.stk th[aria-sort=ascending], .stk th[aria-sort=descending] { color:var(--ink); font-weight:700; }
.stock-date { display:block; white-space:nowrap; font-size:14px; line-height:1.5; }
.stock-mobile-sort { display:none; }
.stock-status { padding:20px; background:var(--surface); }
.fin .lbl, .ix-period, .ix-inspect { font-size:16px; letter-spacing:normal; text-transform:none; line-height:1.5; }
.fin .tw { max-width:100%; }
.fin .fint th, .fin .fint td { padding:12px; }
.ix-ranges { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.ix-ranges button[aria-pressed=true] { background:var(--accent); color:var(--accent-ink); }
.ix-inspect summary { padding:12px 0; min-height:44px; cursor:pointer; font-weight:600; }
.ix-inspect ul { padding-left:20px; }
.ix-inspect li { margin:12px 0; }
.ix-legend { display:flex; flex-wrap:wrap; gap:12px 24px; padding:0; list-style:none; font-size:16px; }
.ix-legend li::before { content:''; display:inline-block; width:24px; height:5px; background:color-mix(in srgb,var(--line),var(--ix-shade) var(--ix-mix)); margin-right:8px; vertical-align:middle; }
.ix-svg .ax { font-size:15px; }
.ix-chart { min-width:0; }
.ix-chart button:focus-visible, .stock-controls :focus-visible, .stk button:focus-visible, .cal-month summary:focus-visible, .ix-inspect summary:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
@media(max-width:700px) {
  .stock-controls { gap:14px; }
  .stock-controls label:first-child { flex-basis:100%; }
  .stock-mobile-sort { display:flex; flex-basis:100%; gap:12px; align-items:end; min-width:0; }
  .stock-controls .stock-mobile-sort label { flex:1 1 0; min-width:0; }
  .stock-mobile-sort button { flex:none; background:var(--s2); color:var(--ink); border:0; }
  .stock-mobile-sort button:disabled { color:var(--muted); }
  .stock-full-controls .stock-mobile-sort { display:none; }
  .stock-controls label:nth-child(2) { flex:1; }
  /* Phone rows: name and close, then listing and sector, then the four figures inline. */
  .stock-wrap:not(.stock-full) { overflow:visible; }
  .stock-wrap:not(.stock-full) .stk, .stock-wrap:not(.stock-full) .stk tbody { display:block; width:100%; min-width:0; }
  .stock-wrap:not(.stock-full) .stk thead { display:none; }
  .stock-wrap:not(.stock-full) .stk tbody tr:not([hidden]) { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 14px; padding:12px 0; border-bottom:1px solid var(--line); background:none; }
  .stock-wrap:not(.stock-full) .stk tbody tr::before, .stock-wrap:not(.stock-full) .stk tbody tr::after { content:''; flex-basis:100%; height:0; }
  .stock-wrap:not(.stock-full) .stk tbody tr::before { order:3; }
  .stock-wrap:not(.stock-full) .stk tbody tr::after { order:6; }
  .stock-wrap:not(.stock-full) .stk td { display:block; border:0; padding:0; white-space:normal; font-size:15px; line-height:1.45; max-width:none; min-width:0; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(1) { order:1; flex:1 1 0; font-size:18px; line-height:1.35; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(4) { order:2; text-align:right; font-size:18px; line-height:1.35; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(4) .stock-date { font-size:13px; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(2), .stock-wrap:not(.stock-full) .stk td:nth-child(3) { order:4; color:var(--muted); font-size:14px; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(3) { order:5; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(3)::before { content:'· '; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(5) { order:7; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(6) { order:8; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(7) { order:9; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(8) { order:10; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(n+5):nth-child(-n+8)::before { color:var(--muted); font-size:14px; margin-right:4px; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(5)::before { content:'1W'; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(6)::before { content:'YTD'; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(7)::before { content:'Cap'; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(8)::before { content:'Results'; }
  .stock-wrap:not(.stock-full) .stk td:nth-child(7)[data-v=""], .stock-wrap:not(.stock-full) .stk td:nth-child(8)[data-v=""] { display:none; }
  .fin .fstrip { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  .fin .fstrip > div:first-child { grid-column:1/-1; }
  .ix-legend { gap:12px; }
  .ix-svg { min-height:190px; }
  .ix-svg .ax { font-size:24px; }
}
/* Keep existing index components on the publication palette and reading scale. */
.ix-hero, .ix-card { background:var(--surface); }
.ix-ranges button { background:var(--s2); color:var(--ink); }
.ix-ranges button:hover { background:var(--s3); }
.ix-ranges button[aria-pressed=true] { background:var(--accent); color:var(--accent-ink); }
.ix-stats dt, .ix-level .lbl { font-size:16px; color:var(--muted); }
.ix-svg .ax { fill:var(--muted); }
@media(max-width:359px) {
  .stock-mobile-sort { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; }
  .stock-mobile-sort button { justify-self:start; }
}

/* Keep the company task close to its introduction without shortening the content. */
.ux-markets .page .stand { font-size:18px; line-height:1.45; }
.ux-markets .page .lbl { font-size:16px; }
.ux-markets .intel .head2 p { font-size:16px; line-height:1.5; margin:0; }
.ux-markets .page + .intel { margin-top:16px; }
.ux-markets .ix-ticker { padding-block:8px; }
.ux-markets .page + .intel + .intel { margin-top:24px; }
.ux-markets .page + .intel + .intel .head2 { margin-bottom:16px; }
@media(max-width:700px) {
  .ux-markets .page { margin-top:20px; }
  .ux-markets .page .stand { margin:12px 0; }
  .ux-markets .page .lbl { margin:8px 0 0; }
  .ux-markets .stock-controls { gap:12px; margin-block:16px 12px; }
  .ux-markets .page + .intel .ix-ticker { margin-inline:0; }
}

/* Markets reads as a table of figures: 16px tabular numerals, sector bands, a trend column. */
.stk { font-family:var(--sans); font-size:16px; font-variant-numeric:tabular-nums; }
.stk td, .stk th { padding:12px 8px; }
.stk td:first-child, .stk td:last-child { font-size:16px; }
.stk td:nth-child(2), .stk td:nth-child(3) { white-space:normal; }
.stk td:nth-child(1) { max-width:230px; }
.stk td:nth-child(2) { min-width:200px; }
.stk th { font-size:14px; white-space:normal; vertical-align:bottom; }
.stk tbody tr.band-1 { background:var(--surface); }
.stk tbody tr:hover { background:var(--s2); }
.stk td:last-child { width:96px; padding-block:8px; }
.spark { display:block; width:72px; height:22px; }
.stock-date { font-size:14px; color:var(--muted); }
@media(max-width:700px) { .stock-wrap:not(.stock-full) .stk td:nth-child(9) { display:none; } }
.stk td:first-child { white-space:normal; }

/* This week: results due and movers lead the page; two columns on desktop, stacked on phones. */
.market-week-grid { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:24px 48px; margin:0 var(--m); align-items:start; }
.market-week-grid .rwk { margin:0; }
.market-week-grid .rwk h3, .market-movers-block h3 { font:600 var(--step-lead)/1.2 var(--serif); }
.market-week-grid .rwk ul { margin:12px 0; font-size:17px; }
.market-week-grid .rwk li { margin:6px 0; }
.market-movers-block .lbl { margin:6px 0 0; font:15px/1.5 var(--sans); color:var(--muted); }
.market-movers-block .market-movers { margin:16px 0 0; gap:24px; }
.market-movers h4 { margin:0; font:500 14px var(--sans); color:var(--muted); }
.market-movers ol { margin:6px 0 0; }
.market-movers li { padding:6px 0; border-bottom:1px solid var(--line); font-size:17px; }
.market-movers li span { white-space:nowrap; font-family:var(--sans); font-variant-numeric:tabular-nums; }

/* Results calendar: one native disclosure per month, months side by side on wide screens. */
.cal-months { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr)); gap:16px 32px; margin:0 var(--m); align-items:start; }
.cal-month summary { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:44px; padding:8px 0; cursor:pointer; font:600 var(--step-lead)/1.2 var(--serif); border-bottom:2px solid var(--accent); }
.cal-month summary small { font:400 14px var(--sans); color:var(--muted); }
.cal-month .calp li { grid-template-columns:96px minmax(0,1fr); gap:12px; padding:8px 0; font-size:17px; line-height:1.4; }
.cal-month .calp time { white-space:nowrap; font:500 15px var(--sans); color:var(--accent); font-variant-numeric:tabular-nums; }
.cal-month .calp .cal-ticker { font:14px var(--sans); color:var(--muted); }
.cal-month .calp .ck { display:block; margin-top:2px; font-size:13px; color:var(--muted); }
@media(max-width:900px) {
  .cal-month .calp li { grid-template-columns:96px minmax(0,1fr); }
}
@media(max-width:700px) {
  .market-week-grid { grid-template-columns:minmax(0,1fr); gap:32px; }
  .market-movers-block .market-movers { grid-template-columns:minmax(0,1fr); gap:20px; }
  .ux-markets .intel { margin-top:40px; }
  .ux-markets .intel .head2 { margin-bottom:16px; }
}
