/* ============================================================================
   theme.css · deck "iq-market-report"
   Global Market Report — midnight-executive family (matches deep-2026 / iq-wealth).
   Core type styles are inherited from that family; the REPORT COMPONENTS block
   below adds reusable data-visualisation elements for the market-report slides.
   All sizes in cqw/cqh; positions are % of the 16:9 stage.
   ============================================================================ */

:root {
  --deck-ink-dim:   #9aa3b8;
  --deck-ink-faint: #7e879c;
  --deck-line:      rgba(242,243,245,.42);
  --deck-card:      rgba(255,255,255,.028);
  --deck-card-bd:   rgba(255,255,255,.075);
  /* report accents (kept subtle, within the midnight palette) */
  --rpt-pos:  #7fc9a0;   /* upside / easing */
  --rpt-neg:  #e8a0a0;   /* downside / hawkish */
  --rpt-warn: #e6c07a;   /* sticky / caution */
}

/* ============================================================================
   CORE TYPE STYLES — copied from deep-2026 so this deck stays in the family
   ============================================================================ */

/* ---- HERO ---- */
.slide--hero { display: block; padding: 0; }
.slide--hero .s-logo {
  position: absolute; left: 2%; top: 6.5%;
  width: 12cqw; height: auto; transform-origin: left center;
}
.slide--hero .s-eyebrow {
  position: absolute; left: 2%; top: 22%;
  font-size: 2.083cqw; font-style: italic; font-weight: 300;
  text-transform: none; letter-spacing: normal; color: var(--deck-ink);
}
.slide--hero .s-title {
  position: absolute; left: 2%; top: 40%; width: 87%;
  font-size: 3.75cqw; font-weight: 300; line-height: 1.16; letter-spacing: .002em;
}
.slide--hero .s-divider {
  position: absolute; left: 2.8%; top: 52.4%;
  width: 66%; height: 1.4px; background: var(--deck-line); border-radius: 0;
  transform-origin: left center;
}
.slide--hero .s-subtitle {
  position: absolute; left: 2%; top: 55%; width: 76%;
  font-size: 2.55cqw; font-style: italic; font-weight: 300; color: var(--deck-ink);
}

/* ---- STATEMENT ---- */
.slide--statement { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.slide--statement .s-title {
  position: absolute; left: 3%; top: 7.2%; width: 94%;
  text-align: center; font-size: 3.333cqw; line-height: 1.2;
}
.slide--statement .s-body {
  position: static; width: 88%; max-width: none; margin: 0;
  text-align: center; font-size: 2.2cqw; line-height: 1.6; color: var(--deck-ink);
}
.slide--statement .s-byline { position: absolute; left: 4%; top: 80.5%; gap: 1.7cqw; }
.slide--statement .s-avatar { width: 7cqw; height: 7cqw; }
.slide--statement .s-name { font-size: 2.0cqw; font-style: italic; color: var(--deck-ink); }

/* ---- BULLETS ---- */
.slide--bullets { display: block; padding: 0; }
.slide--bullets .s-title {
  position: absolute; left: 3%; top: 7.2%; width: 94%;
  text-align: center; font-size: 3.6cqw; line-height: 1.15;
}
.slide--bullets .s-bullets {
  position: absolute; left: 50%; top: 50%; width: 86%;
  transform: translate(-50%, -50%); text-align: center; max-width: none; margin: 0; gap: 1.8cqh;
}
.slide--bullets .s-bullet { font-size: 2.15cqw; line-height: 1.7; font-weight: 300; color: var(--deck-ink); }

/* ---- CARDS ---- */
.slide--cards .s-title { font-size: 2.4cqw; }

/* ============================================================================
   REPORT COMPONENTS
   ============================================================================ */

/* ---- shared raw-slide scaffold ---- */
.rpt {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 5.4cqh 5cqw 4cqh;
}
.rpt-head { flex: 0 0 auto; text-align: center; margin-bottom: 2.4cqh; }
.rpt-kicker {
  display: inline-block; font-size: 1.05cqw; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--deck-accent);
  margin-bottom: 1.0cqh;
}
.rpt-title { font-size: 2.9cqw; font-weight: 300; line-height: 1.14; color: #fff; margin: 0; }
.rpt-sub {
  margin: 1.0cqh auto 0; max-width: 80cqw;
  font-size: 1.4cqw; line-height: 1.4; color: var(--deck-ink-dim); font-style: italic;
}
.rpt-body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.rpt-source {
  flex: 0 0 auto; margin-top: 2.2cqh; text-align: center;
  font-size: .92cqw; line-height: 1.3; color: var(--deck-ink-faint);
}
.rpt-note {
  margin: 1.8cqh auto 0; max-width: 82cqw; text-align: center;
  font-size: 1.12cqw; line-height: 1.4; color: var(--deck-ink-dim);
}
.rpt-note strong { color: var(--deck-ink); font-weight: 500; }

/* ---- executive-summary tiles ---- */
.exec-grid { display: flex; gap: 1.3cqw; justify-content: center; align-items: stretch; width: 100%; }
.exec-tile {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1.0cqh;
  padding: 2.0cqh 1.2cqw; border: 1px solid var(--deck-card-bd); border-radius: 1.0cqw;
  background: var(--deck-card); box-shadow: 0 18px 40px -30px rgba(0,0,0,.75);
}
.exec-ico { color: var(--deck-accent); }
.exec-label { font-size: .82cqw; letter-spacing: .16em; text-transform: uppercase; color: var(--deck-accent); }
.exec-head { font-size: 1.42cqw; line-height: 1.2; color: #fff; font-weight: 400; }
.exec-note { font-size: .92cqw; line-height: 1.42; color: var(--deck-ink-dim); margin-top: auto; }

/* ---- regime quadrant ---- */
.regime-wrap { display: flex; gap: 3.2cqw; align-items: center; justify-content: center; width: 100%; }
.quad {
  position: relative; flex: 0 0 auto; width: 45cqw; height: 54cqh;
  border: 1px solid var(--deck-card-bd); border-radius: 1cqw; background: rgba(0,0,0,.20);
}
.quad-vline { position: absolute; left: 50%; top: 3%; bottom: 3%; width: 1px; background: var(--deck-line); opacity: .5; }
.quad-hline { position: absolute; top: 50%; left: 3%; right: 3%; height: 1px; background: var(--deck-line); opacity: .5; }
.quad-cell { position: absolute; width: 46%; text-align: center; font-size: 1.15cqw; line-height: 1.25; color: var(--deck-ink-dim); }
.quad-cell b { display: block; color: var(--deck-ink); font-weight: 500; }
.quad-tl { left: 2%;  top: 9%; }
.quad-tr { right: 2%; top: 9%; }
.quad-bl { left: 2%;  bottom: 9%; }
.quad-br { right: 2%; bottom: 9%; }
.quad-marker {
  position: absolute; left: 70%; top: 32%; transform: translate(-50%,-50%);
  width: 2.0cqw; height: 2.0cqw; border-radius: 50%;
  background: var(--deck-accent); box-shadow: 0 0 0 .5cqw rgba(169,192,234,.20), 0 0 0 1cqw rgba(169,192,234,.10);
}
.quad-here {
  position: absolute; left: 70%; top: 43%; transform: translate(-50%,0);
  font-size: 1.0cqw; letter-spacing: .1em; text-transform: uppercase; color: var(--deck-accent);
  background: rgba(169,192,234,.12); border: 1px solid var(--deck-card-bd);
  padding: .5cqh .9cqw; border-radius: 4cqw; white-space: nowrap;
}
.quad-axis-x { position: absolute; left: 0; right: 0; bottom: -3.6cqh; text-align: center; font-size: .95cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--deck-ink-faint); }
.quad-axis-y { position: absolute; top: 50%; left: -3.4cqw; transform: rotate(-90deg); transform-origin: center; font-size: .95cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--deck-ink-faint); white-space: nowrap; }
.regime-points { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2.0cqh; max-width: 34cqw; }
.regime-point { display: flex; align-items: flex-start; gap: 1.1cqw; }
.regime-point .iqs-icon { color: var(--deck-accent); margin-top: .3cqh; }
.regime-point-t { font-size: 1.5cqw; color: #fff; line-height: 1.2; }
.regime-point-d { margin-top: .3cqh; font-size: 1.05cqw; color: var(--deck-ink-dim); line-height: 1.4; }

/* ---- policy / inflation table ---- */
.pol-table { width: 86cqw; margin: 0 auto; border-collapse: collapse; }
.pol-table th {
  text-align: left; font-size: .82cqw; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--deck-accent); padding: 0 1.2cqw 1.2cqh; border-bottom: 1px solid var(--deck-card-bd);
}
.pol-table th.num, .pol-table td.num { text-align: center; }
.pol-table td { padding: 1.45cqh 1.2cqw; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.pol-table tr:last-child td { border-bottom: 0; }
.pol-region { display: flex; align-items: center; gap: 1.0cqw; font-size: 1.55cqw; color: #fff; }
.pol-region .iqs-flag { width: 3.0cqw; }
.pol-rate { font-size: 1.6cqw; color: #fff; font-variant-numeric: tabular-nums; }
.pol-was { display: block; margin-top: .3cqh; font-size: .9cqw; color: var(--deck-ink-faint); }
.pol-infl { font-size: 1.5cqw; color: var(--deck-ink); font-variant-numeric: tabular-nums; }
.pol-infl small { display: block; margin-top: .3cqh; font-size: .82cqw; color: var(--deck-ink-faint); letter-spacing: .04em; }
.pol-chip {
  display: inline-block; font-size: 1.0cqw; padding: .55cqh 1.0cqw; border-radius: 4cqw;
  border: 1px solid var(--deck-card-bd); background: rgba(255,255,255,.03); color: var(--deck-ink);
}
.pol-chip--hawk { color: var(--rpt-neg); border-color: rgba(232,160,160,.35); background: rgba(232,160,160,.08); }
.pol-chip--hold { color: var(--rpt-warn); border-color: rgba(230,192,122,.30); background: rgba(230,192,122,.07); }
.pol-chip--dove { color: var(--rpt-pos); border-color: rgba(127,201,160,.30); background: rgba(127,201,160,.07); }

/* ---- driver hub ---- */
.hub { position: relative; width: 90cqw; height: 60cqh; margin: 0 auto; }
.hub-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hub-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 15cqw; height: 15cqw; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(169,192,234,.20), rgba(169,192,234,.04));
  border: 1px solid rgba(169,192,234,.40); color: #fff;
}
.hub-core b { font-size: 1.5cqw; font-weight: 400; line-height: 1.15; }
.hub-core span { display: block; margin-top: .4cqh; font-size: .85cqw; letter-spacing: .12em; text-transform: uppercase; color: var(--deck-accent); }
.hub-node {
  position: absolute; z-index: 2; width: 26cqw; padding: 1.6cqh 1.4cqw;
  border: 1px solid var(--deck-card-bd); border-radius: 1cqw; background: var(--deck-card);
  box-shadow: 0 18px 40px -30px rgba(0,0,0,.75);
}
.hub-node--tl { left: 0;    top: 2%; }
.hub-node--tr { right: 0;   top: 2%; }
.hub-node--bl { left: 0;    bottom: 2%; }
.hub-node--br { right: 0;   bottom: 2%; }
.hub-node-h { display: flex; align-items: center; gap: .8cqw; font-size: 1.35cqw; color: #fff; }
.hub-node-h .iqs-icon { color: var(--deck-accent); }
.hub-node-d { margin-top: .7cqh; font-size: 1.0cqw; line-height: 1.4; color: var(--deck-ink-dim); }

/* ---- scenario columns ---- */
.scen-row { display: flex; gap: 1.5cqw; width: 100%; align-items: stretch; }
.scen-col {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--deck-card-bd); border-radius: 1cqw; background: var(--deck-card);
  border-top: 3px solid var(--deck-accent);
}
.scen-col--up   { border-top-color: var(--rpt-pos); }
.scen-col--down { border-top-color: var(--rpt-neg); }
.scen-head { padding: 1.4cqh 1.3cqw .9cqh; display: flex; align-items: baseline; justify-content: space-between; }
.scen-name { font-size: 1.5cqw; color: #fff; }
.scen-prob { font-size: 1.9cqw; font-weight: 400; color: var(--deck-accent); font-variant-numeric: tabular-nums; }
.scen-col--up   .scen-prob { color: var(--rpt-pos); }
.scen-col--down .scen-prob { color: var(--rpt-neg); }
.scen-body { padding: .4cqh 1.3cqw 1.5cqh; display: flex; flex-direction: column; gap: 1.1cqh; }
.scen-item-label { font-size: .78cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--deck-accent); }
.scen-col--up   .scen-item-label { color: var(--rpt-pos); }
.scen-col--down .scen-item-label { color: var(--rpt-neg); }
.scen-item-text { margin-top: .25cqh; font-size: 1.0cqw; line-height: 1.38; color: var(--deck-ink-dim); }

/* ---- concentration bars ---- */
.conc-list { display: flex; flex-direction: column; gap: 3.0cqh; width: 84cqw; margin: 0 auto; }
.conc-row { display: grid; grid-template-columns: 20cqw 1fr; align-items: center; gap: 1.6cqw; }
.conc-name { font-size: 1.5cqw; color: #fff; line-height: 1.2; }
.conc-name small { display: block; margin-top: .35cqh; font-size: .92cqw; color: var(--deck-ink-dim); letter-spacing: .02em; }
.conc-track { position: relative; height: 5.2cqh; background: rgba(255,255,255,.05); border-radius: .5cqw; }
.conc-fill { height: 100%; border-radius: .5cqw; background: linear-gradient(90deg, rgba(169,192,234,.85), rgba(169,192,234,.45)); }
.conc-row--au .conc-fill { background: linear-gradient(90deg, rgba(230,192,122,.85), rgba(230,192,122,.4)); }
.conc-val { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 1.0cqw; font-size: 1.5cqw; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.conc-flow {
  margin: 3.4cqh auto 0; max-width: 84cqw; display: flex; align-items: center; gap: 1.2cqw;
  padding: 1.5cqh 1.6cqw; border-left: .22cqw solid var(--deck-accent); border-radius: .7cqw; background: var(--deck-card);
}
.conc-flow .iqs-icon { color: var(--deck-accent); flex: 0 0 auto; }
.conc-flow p { font-size: 1.08cqw; line-height: 1.4; color: var(--deck-ink-dim); }
.conc-flow strong { color: var(--deck-ink); font-weight: 500; }

/* ---- Australian transmission channels ---- */
.chan-list { display: flex; flex-direction: column; gap: 1.7cqh; width: 90cqw; margin: 0 auto; }
.chan-row {
  display: grid; grid-template-columns: 21cqw 2.4cqw 1fr 2.4cqw 25cqw; align-items: center; gap: .8cqw;
}
.chan-driver, .chan-impact {
  display: flex; align-items: center; gap: .8cqw; padding: 1.25cqh 1.1cqw;
  border: 1px solid var(--deck-card-bd); border-radius: .8cqw; background: var(--deck-card);
  font-size: 1.18cqw; color: #fff; line-height: 1.2;
}
.chan-driver .iqs-icon { color: var(--deck-accent); flex: 0 0 auto; }
.chan-impact { background: rgba(169,192,234,.07); }
.chan-mech { font-size: 1.05cqw; line-height: 1.35; color: var(--deck-ink-dim); text-align: center; }
.chan-arrow { text-align: center; color: var(--deck-accent); font-size: 1.7cqw; line-height: 1; }

/* ---- outlier bubble chart ---- */
.bub-plot {
  position: relative; width: 74cqw; height: 55cqh; margin: 0 auto;
  border-left: 1px solid var(--deck-line); border-bottom: 1px solid var(--deck-line);
}
.bub {
  position: absolute; transform: translate(-50%,-50%); border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  border: 1px solid rgba(169,192,234,.45); background: rgba(169,192,234,.12);
  color: #fff; padding: .3cqw;
}
.bub--au { border-color: rgba(230,192,122,.5); background: rgba(230,192,122,.12); }
.bub-label { font-size: .92cqw; line-height: 1.12; }
.bub-axis-x { position: absolute; right: 0; bottom: -3.4cqh; font-size: .95cqw; letter-spacing: .12em; text-transform: uppercase; color: var(--deck-ink-faint); }
.bub-axis-y { position: absolute; top: -3.0cqh; left: -1cqw; font-size: .95cqw; letter-spacing: .12em; text-transform: uppercase; color: var(--deck-ink-faint); }
.bub-legend { position: absolute; right: 0.5cqw; top: 0.5cqh; display: flex; flex-direction: column; gap: .6cqh; align-items: flex-end; }
.bub-legend span { font-size: .85cqw; color: var(--deck-ink-faint); }
.bub-legend b { color: var(--deck-ink-dim); font-weight: 500; }

/* ---- portfolio barbell / pillars ---- */
.port-bell { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2.6cqh; opacity: .9; }
.port-plate { width: 2.2cqw; height: 7cqh; border-radius: .4cqw; background: rgba(169,192,234,.5); }
.port-plate--sm { height: 4.4cqh; }
.port-shaft { width: 30cqw; height: 1.4cqh; background: rgba(169,192,234,.25); }
.port-row { display: flex; gap: 1.8cqw; width: 100%; align-items: stretch; }
.port-card {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1.1cqh;
  padding: 2.0cqh 1.5cqw; border: 1px solid var(--deck-card-bd); border-radius: 1cqw; background: var(--deck-card);
}
.port-label { font-size: .9cqw; letter-spacing: .16em; text-transform: uppercase; color: var(--deck-accent); }
.port-head { font-size: 1.5cqw; color: #fff; line-height: 1.2; }
.port-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7cqh; }
.port-list li { position: relative; padding-left: 1.5cqw; font-size: 1.05cqw; line-height: 1.35; color: var(--deck-ink-dim); }
.port-list li::before { content: ""; position: absolute; left: 0; top: .62cqh; width: .55cqw; height: .55cqw; border-radius: 50%; background: var(--deck-accent); }

/* ---- closing takeaway cards ---- */
.take-row { display: flex; gap: 1.8cqw; width: 100%; align-items: stretch; }
.take-card {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1.4cqh;
  padding: 3.2cqh 1.8cqw; border: 1px solid var(--deck-card-bd); border-radius: 1.2cqw;
  background: var(--deck-card); box-shadow: 0 20px 44px -30px rgba(0,0,0,.75);
}
.take-num { font-size: 2.2cqw; font-weight: 300; color: var(--deck-accent); line-height: 1; }
.take-head { font-size: 1.85cqw; color: #fff; line-height: 1.16; }
.take-text { font-size: 1.12cqw; color: var(--deck-ink-dim); line-height: 1.5; margin-top: auto; }

/* ---- sources grid ---- */
.src-grid { display: flex; gap: 2.4cqw; width: 88cqw; margin: 0 auto; justify-content: center; }
.src-col { flex: 1 1 0; }
.src-h { font-size: .92cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--deck-accent); margin-bottom: 1.1cqh; }
.src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7cqh; }
.src-list li { font-size: 1.02cqw; line-height: 1.35; color: var(--deck-ink-dim); }
