/* IPO Analyser. Neutral surfaces; colour is reserved for the signal and for gains and losses. */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI",
    system-ui, sans-serif;

  /* Five text sizes, nothing else. */
  --t-xs: 12px;
  --t-s: 13px;
  --t-m: 15px;
  --t-l: 22px;
  --t-xl: 34px;

  --bg: #f5f5f7;
  --surface: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #424245;
  --fg-3: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --hover: rgba(0, 0, 0, 0.025);
  --track: rgba(0, 0, 0, 0.07);
  --focus: #0071e3;

  /* Signal tones: a gradient pair, and a text colour with readable contrast. */
  --up-a: #2dd4bf;
  --up-b: #16a34a;
  --up-text: #15803d;
  --mid-a: #fbbf24;
  --mid-b: #f97316;
  --mid-text: #b45309;
  --down-a: #fb7185;
  --down-b: #e11d48;
  --down-text: #be123c;
  --ink-a: #8e8e93;
  --ink-b: #3a3a3c;
  --fill-top: 0.26;
}

/* Dark follows the system unless the theme switcher has pinned light or dark on <html>. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #111113;
    --fg: #f5f5f7;
    --fg-2: #d1d1d6;
    --fg-3: #a1a1a6;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --hover: rgba(255, 255, 255, 0.035);
    --track: rgba(255, 255, 255, 0.1);
    --focus: #2997ff;
    --up-text: #4ade80;
    --mid-text: #fbbf24;
    --down-text: #fb7185;
    --ink-a: #8e8e93;
    --ink-b: #e5e5ea;
    --fill-top: 0.3;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #111113;
  --fg: #f5f5f7;
  --fg-2: #d1d1d6;
  --fg-3: #a1a1a6;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --hover: rgba(255, 255, 255, 0.035);
  --track: rgba(255, 255, 255, 0.1);
  --focus: #2997ff;
  --up-text: #4ade80;
  --mid-text: #fbbf24;
  --down-text: #fb7185;
  --ink-a: #8e8e93;
  --ink-b: #e5e5ea;
  --fill-top: 0.3;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-m) / 1.45 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--focus); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.meta { color: var(--fg-3); font-size: var(--t-s); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.change-up { color: var(--up-text); }
.change-down { color: var(--down-text); }
.tone-up { color: var(--up-text); }
.tone-mid { color: var(--mid-text); }
.tone-down { color: var(--down-text); }

.stop-up-a { stop-color: var(--up-a); }
.stop-up-b { stop-color: var(--up-b); }
.stop-mid-a { stop-color: var(--mid-a); }
.stop-mid-b { stop-color: var(--mid-b); }
.stop-down-a { stop-color: var(--down-a); }
.stop-down-b { stop-color: var(--down-b); }
.stop-ink-a { stop-color: var(--ink-a); }
.stop-ink-b { stop-color: var(--ink-b); }
.fill-top { stop-opacity: var(--fill-top); }
.fill-bottom { stop-opacity: 0; }

/* Frame */

.site-header, .page, .site-footer {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand { font-weight: 600; letter-spacing: -0.01em; }
.quiet-link { color: var(--fg-3); font-size: var(--t-s); }
.header-tools { display: flex; align-items: center; gap: 18px; }

/* Theme switcher: system, light, dark. */
.theme-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: var(--track);
}
.theme-switch button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fg-3);
  cursor: pointer;
}
.theme-switch button:hover { color: var(--fg); }
.theme-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 0.5px var(--line);
}
.theme-switch svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-switch .solid { fill: currentColor; stroke: none; }
.page { flex: 1; padding: 28px 0 72px; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--fg-3);
  font-size: var(--t-xs);
  line-height: 1.6;
}
.site-footer p + p { margin-top: 6px; }

/* Score ring */

.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-track { stroke: var(--track); }
.ring-value { stroke-linecap: round; }
.ring-number { position: absolute; font-weight: 600; letter-spacing: -0.02em; }
.ring-s { width: 40px; height: 40px; }
.ring-s .ring-number { font-size: var(--t-s); }
.ring-l { width: 112px; height: 112px; }
.ring-l circle { stroke-width: 7; }
.ring-l .ring-number { font-size: var(--t-xl); font-weight: 600; }

/* List page */

.intro { margin-bottom: 36px; }
h1 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.summary { margin-top: 10px; color: var(--fg-2); max-width: 60ch; }
.summary a { color: var(--fg); border-bottom: 1px solid var(--line-strong); }
.market {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: 18px;
  font-size: var(--t-s);
  color: var(--fg-3);
}
.market div { display: flex; gap: 6px; }
.market dt { color: var(--fg-2); }

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.filters {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--track);
}
.filters a {
  padding: 5px 14px;
  border-radius: 8px;
  font-size: var(--t-s);
  color: var(--fg-2);
}
.filters a:hover { color: var(--fg); }
.filters a.active {
  background: var(--surface);
  color: var(--fg);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 0.5px var(--line);
}
.table-search { display: flex; gap: 8px; }
.table-search input[type="search"] {
  width: 220px;
  font: inherit;
  font-size: var(--t-s);
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 7px 12px;
}
.table-search input::placeholder { color: var(--fg-3); }
.table-search input:focus-visible { outline-offset: 0; border-radius: 9px; }
.table-search button {
  font: inherit;
  font-size: var(--t-s);
  color: var(--fg-2);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 6px 12px;
  cursor: pointer;
}
.sort-links { display: none; }

.ipo-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.ipo-table th {
  text-align: left;
  font-weight: 400;
  font-size: var(--t-xs);
  color: var(--fg-3);
  padding: 14px 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ipo-table th a:hover, .sort-links a:hover { color: var(--fg); }
.ipo-table th span, .sort-links a span { margin-left: 3px; }
.ipo-table td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ipo-table th:first-child, .ipo-table td:first-child { padding-left: 4px; }
.ipo-table th:last-child, .ipo-table td:last-child { padding-right: 4px; }
.ipo-table .end { text-align: right; }
.ipo-table tbody tr { position: relative; transition: background-color 0.15s; }
.ipo-table tbody tr:hover { background: var(--hover); }
.ipo-table td > span { display: block; }
.ipo-table td > .meta { margin-top: 2px; }

.row-link { font-weight: 500; }
.row-link::after { content: ""; position: absolute; inset: 0; }
.row-link:focus-visible { outline: none; }
.row-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 10px; }
.ipo-table tbody tr:hover .row-link { color: var(--focus); }
.past .row-link { color: var(--fg-2); }

.status-open { color: var(--fg); }

.ipo-table .signal { display: flex; align-items: center; gap: 12px; }
.ipo-table .signal-text { display: flex; flex-direction: column; min-width: 13ch; }
.signal-word { font-weight: 500; }
.c-name { min-width: 180px; }
.ipo-table .meta { white-space: nowrap; }
.ipo-table .signal-text .meta { white-space: normal; max-width: 18ch; }
.card-only { display: none; }
.past .c-signal .ring { opacity: 0.55; }

.gain { font-size: var(--t-m); font-weight: 600; }
.c-dates .primary { white-space: nowrap; }
.gmp-line { display: inline-flex !important; align-items: center; gap: 10px; }
.spark { width: 56px; height: 18px; overflow: visible; }
.spark path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.demand { display: grid !important; grid-template-columns: repeat(3, minmax(52px, auto)); gap: 0 14px; justify-content: start; }
.demand > span { display: flex; flex-direction: column; }
.ipo-table .demand .meta { font-size: var(--t-xs); }

.empty {
  padding: 64px 0;
  text-align: center;
  color: var(--fg-3);
}
.empty-title { color: var(--fg); font-size: var(--t-l); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.empty a { color: var(--focus); }
.empty code {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--track);
  color: var(--fg);
  font-size: var(--t-s);
}

/* Detail page */

.back { display: inline-block; color: var(--fg-3); font-size: var(--t-s); margin-bottom: 20px; }
.detail-head { margin-bottom: 24px; }
.meta-line { margin-top: 6px; color: var(--fg-3); }
.meta-line .status { color: var(--fg-2); }

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 0.5px var(--line), 0 1px 2px rgba(0, 0, 0, 0.03);
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
h2 { font-size: var(--t-m); font-weight: 600; letter-spacing: -0.01em; }
.card-value { font-size: var(--t-l); font-weight: 600; letter-spacing: -0.015em; }
.card-sub { margin: -12px 0 18px; }
.card-foot { margin-top: 14px; }
.note {
  margin-bottom: 16px;
  font-size: var(--t-s);
  color: var(--fg-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: center;
}
.hero-score { display: flex; align-items: center; gap: 22px; }
.hero-signal { font-size: var(--t-l); font-weight: 600; letter-spacing: -0.015em; }
.hero-score .meta { margin-top: 4px; }
.hero-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hero-keys dt, .facts dt { font-size: var(--t-s); color: var(--fg-3); }
.hero-keys .key {
  font-size: var(--t-l);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 2px 0;
  white-space: nowrap;
}
.facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.facts dd:not(.meta) { margin-top: 2px; font-weight: 500; }
.facts .meta { font-size: var(--t-xs); margin-top: 1px; }

.breakdown li {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 5.5rem;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}
.breakdown li + li { border-top: 1px solid var(--line); }
.factor { display: flex; flex-direction: column; }
.factor .meta { font-size: var(--t-xs); }
.bar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; min-width: 6px; }
.bar-up { background: linear-gradient(90deg, var(--up-a), var(--up-b)); }
.bar-mid { background: linear-gradient(90deg, var(--mid-a), var(--mid-b)); }
.bar-down { background: linear-gradient(90deg, var(--down-a), var(--down-b)); }
.unavailable .bar i { background: var(--line-strong); }
.unavailable .factor { color: var(--fg-3); }
.points { text-align: right; font-weight: 500; }

/* Charts. Lines live in a stretched SVG; labels, points and tips are HTML so they never distort. */

.chart { margin: 6px 0 0; }
.chart-plot { position: relative; height: 220px; }
.chart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-line, .chart-line-other { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.chart-line { stroke-width: 2.25; }
.chart-line-other { stroke: var(--fg-3); stroke-width: 1.25; opacity: 0.7; }
.chart-y {
  position: absolute;
  left: 0;
  transform: translateY(-100%);
  padding-bottom: 2px;
  font-size: var(--t-xs);
  color: var(--fg-3);
  pointer-events: none;
}
.chart-x { position: relative; height: 26px; }
.chart-x span {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  font-size: var(--t-xs);
  color: var(--fg-3);
  white-space: nowrap;
}

.other-source-1, .other-nii { stroke-dasharray: 5 4; }
.other-source-2, .other-retail { stroke-dasharray: 1.5 3.5; }
.other-source-3 { stroke-dasharray: 8 3 2 3; }
.other-source-4 { opacity: 0.45; }
.other-source-5 { stroke-dasharray: 2 6; }

.chart-point {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: default;
  display: grid;
  place-items: center;
}
.chart-point::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--fg-3);
  transition: transform 0.15s;
}
.point-hero::before { width: 9px; height: 9px; border-width: 2px; }
.point-hero.tone-up::before { border-color: var(--up-b); }
.point-hero.tone-mid::before { border-color: var(--mid-b); }
.point-hero.tone-down::before { border-color: var(--down-b); }
.point-hero.tone-ink::before { border-color: var(--ink-b); }
.chart-point:hover::before, .chart-point:focus-visible::before { transform: scale(1.35); }
.chart-point:focus-visible { outline-offset: 0; border-radius: 50%; }
.chart-point:hover, .chart-point:focus { z-index: 3; }

.chart-tip {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--t-xs);
  line-height: 1.35;
  white-space: nowrap;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
}
.chart-tip b { display: block; font-size: var(--t-s); font-weight: 600; }
.lean-start .chart-tip { left: 0; transform: none; }
.lean-end .chart-tip { left: auto; right: 0; transform: none; }
.chart-point:hover .chart-tip, .chart-point:focus .chart-tip { opacity: 1; }

.chart-value {
  position: absolute;
  transform: translate(-50%, calc(-100% - 10px));
  font-size: var(--t-s);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.chart-value.lean-end { transform: translate(calc(-100% - 12px), -50%); }
.chart-value.lean-start { transform: translate(12px, -50%); }
.chart-sparse .chart-y { display: none; }
.chart-note { margin-top: 10px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: var(--t-s); color: var(--fg-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .num { color: var(--fg); font-weight: 500; }
.swatch {
  display: inline-block;
  width: 16px;
  height: 0;
  border-top: 1.5px solid var(--fg-3);
  vertical-align: middle;
}
.swatch.other-source-1, .swatch.other-nii { border-top-style: dashed; }
.swatch.other-source-2, .swatch.other-retail { border-top-style: dotted; border-top-width: 2px; }
.swatch.other-source-3, .swatch.other-source-5 { border-top-style: dashed; }
.swatch-hero { height: 3px; border: 0; border-radius: 2px; }
.swatch-up { background: linear-gradient(90deg, var(--up-a), var(--up-b)); }
.swatch-mid { background: linear-gradient(90deg, var(--mid-a), var(--mid-b)); }
.swatch-down { background: linear-gradient(90deg, var(--down-a), var(--down-b)); }
.swatch-ink { background: linear-gradient(90deg, var(--ink-a), var(--ink-b)); }

.demand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.demand-grid dt { display: flex; align-items: center; gap: 8px; font-size: var(--t-s); color: var(--fg-3); }
.demand-grid dd { margin-top: 2px; font-weight: 500; }

.empty-inline { padding: 28px 0 8px; color: var(--fg-2); }
.empty-inline .meta { margin-top: 4px; }

.rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.rows li + li { border-top: 1px solid var(--line); }
.rows li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.rows a { color: var(--fg); }
.rows a:hover { color: var(--focus); }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}
.timeline li { position: relative; display: flex; flex-direction: column; padding-top: 22px; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--track);
}
.timeline li.through::before { background: var(--fg-3); }
.timeline li:last-child::before { right: auto; width: 0; }
.timeline .dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  z-index: 1;
}
.timeline .done .dot { background: var(--fg-3); border-color: var(--fg-3); }

.quiet-section { padding: 20px 4px 0; }
.quiet-section h2 { font-size: var(--t-s); font-weight: 500; color: var(--fg-3); margin-bottom: 4px; }
.quiet-section .rows li { font-size: var(--t-s); color: var(--fg-2); padding: 8px 0; }

/* Narrower windows: the table becomes a stack of cards. */

@media (max-width: 1180px) {
  .sort-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: var(--t-s);
    color: var(--fg-3);
    margin-top: 4px;
  }
  .sort-links span:first-child { color: var(--fg-3); }
  .sort-links a { color: var(--fg-2); }

  .ipo-table, .ipo-table tbody { display: block; }
  .ipo-table thead { display: none; }
  .ipo-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 16px;
    margin-top: 12px;
    padding: 18px;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 0 0 0.5px var(--line), 0 1px 2px rgba(0, 0, 0, 0.03);
  }
  .ipo-table td { padding: 0 !important; border: 0; min-width: 0; }
  .ipo-table .end { text-align: left; }
  .c-name { grid-column: 1; grid-row: 1; }
  .row-link { font-size: var(--t-m); }
  .row-link::after { border-radius: 16px; }
  .c-signal { grid-column: 2; grid-row: 1 / span 2; }
  .ipo-table .signal-text { min-width: 0; }
  .ipo-table .signal { flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
  .c-signal .ring-s { width: 52px; height: 52px; order: -1; }
  .c-signal .ring-s .ring-number { font-size: var(--t-m); }
  .c-signal .signal-text .meta { display: none; }
  .c-gain { grid-column: 1; grid-row: 2; }
  .gain { font-size: var(--t-l); letter-spacing: -0.015em; }
  .c-dates { grid-column: 1 / -1; grid-row: 3; }
  .c-gmp, .c-demand { grid-column: 1 / -1; }
  .c-dates, .c-gmp, .c-demand { padding-top: 12px !important; border-top: 1px solid var(--line) !important; }
  .ipo-table .meta, .demand { white-space: normal; }
  .gmp-line { flex-direction: row-reverse; justify-content: flex-end; }
  .card-only { display: inline; }
}

/* Phones: one column throughout. */
@media (max-width: 860px) {
  .site-header, .page, .site-footer { width: calc(100% - 32px); }
  h1 { font-size: 28px; }
  .controls { flex-direction: column; align-items: stretch; }
  .filters { display: flex; }
  .filters a { flex: 1; text-align: center; padding: 6px 4px; }
  .table-search input[type="search"] { flex: 1; width: auto; min-width: 0; }

  .card { padding: 20px; border-radius: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ring-l { width: 96px; height: 96px; }
  .ring-l .ring-number { font-size: 30px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .breakdown li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .breakdown .bar { grid-column: 1 / -1; grid-row: 2; }
  .breakdown .points { grid-row: 1; grid-column: 2; }
  .demand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-plot { height: 180px; }
  .chart-x .x-mid { display: none; }
  .chart-x span:first-child:not(:only-child) { transform: translateX(-30%); }
  .chart-x span:last-child:not(:only-child) { transform: translateX(-85%); }
}

/* Mid-size windows: two columns of cards. */
@media (min-width: 640px) and (max-width: 1180px) {
  .ipo-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  .ipo-table tbody tr { margin-top: 0; align-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
