/* One-slide view: fixed 1920x1080, light theme, print-safe. Colours come from tokens.css (the page forces data-theme="light"). */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }
body {
  width: 1920px; height: 1080px; overflow: hidden;
  background: #ffffff; color: var(--text-primary);
  font-family: var(--font); font-size: 18px; line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.slide {
  width: 1920px; height: 1080px; padding: 20px 40px 16px;
  display: grid; grid-template-rows: 60px 140px minmax(0, 1fr) 156px auto 26px; row-gap: 12px;
}

.bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--text-primary); padding-bottom: 6px; }
.bar h1 { margin: 0; font-size: 38px; font-weight: 700; letter-spacing: -0.01em; }
.bar-meta { margin: 0; display: flex; align-items: baseline; gap: 28px; font-size: 22px; font-weight: 600; }
.bar-note { font-size: 18px; font-weight: 400; color: var(--text-secondary); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { min-width: 0; padding: 10px 18px; background: var(--surface-1); border: 1px solid var(--axis); border-radius: 10px; overflow: hidden; }
.tile-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px; font-weight: 600; color: var(--text-secondary); }
.tile-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; font-size: 42px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.tile-sub { font-size: 18px; line-height: 1.3; color: var(--text-secondary); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tile-range { white-space: nowrap; }
.delta { white-space: nowrap; font-weight: 700; }
.delta--up { color: var(--delta-up); }
.delta--down { color: var(--delta-down); }
.delta--flat { color: var(--text-secondary); }

.charts { display: grid; grid-template-columns: 700px minmax(0, 1fr); gap: 16px; min-height: 0; }
.panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 10px 16px 8px; background: var(--surface-1); border: 1px solid var(--axis); border-radius: 10px; }
.panel h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.chart { flex: 1; min-height: 0; width: 100%; }

.foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; min-height: 0; }
.panel--foot { padding-bottom: 8px; }

.sig-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sig { border-left: 4px solid var(--axis); padding: 2px 0 2px 12px; }
.sig-name { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig { min-width: 0; }
.sig-chg { font-size: 30px; font-weight: 700; line-height: 1.2; }
.sig-sub { font-size: 18px; color: var(--text-secondary); }
.sig--bull { border-left-color: var(--good); }
.sig--bear { border-left-color: var(--critical); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text-primary); }
.chip .icon { flex: none; }
.chip--bull .icon { color: var(--good); }
.chip--bear .icon { color: var(--critical); }
.chip--neutral .icon { color: var(--text-secondary); }

.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.share { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 4px solid var(--key); padding-left: 12px; }
.share-name { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share > div:first-child { min-width: 0; }
.share-chg { font-size: 30px; font-weight: 700; line-height: 1.2; }
.share-spark { flex: none; display: block; }

.reading { margin: 0; padding: 8px 18px; font-size: 24px; line-height: 1.3; font-weight: 600; background: #f1f3f6; border-left: 6px solid var(--series-1); border-radius: 6px; overflow: hidden; max-height: 150px; }
.reading--s { font-size: 21px; }
.reading--xs { font-size: 18px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.sources { margin: 0; font-size: 18px; line-height: 1.3; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.unavailable { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 2px dashed var(--axis); border-radius: 8px; font-size: 20px; color: var(--text-secondary); height: 100%; }
.unavailable strong { color: var(--text-primary); }
.unavailable .icon { color: var(--serious); flex: none; }
.chart-fallback { padding: 16px; color: var(--text-secondary); }
