/* #315: frozen Market Intel views (iv-*): journal page content, the og:image / export card, the editor preview.
   Self-contained: tokens fall back to the paper palette so the same sheet renders inside an SVG foreignObject. */
.iv-frame{
  --iv-bg:var(--jc-bg,#f3f1e9);--iv-fg:var(--jc-fg,#282c29);--iv-muted:var(--jc-muted,#686c64);--iv-line:var(--jc-border,#d4d6ca);
  --iv-accent:var(--jc-accent,#a53f2d);--iv-card:var(--jc-card,#eae9df);--iv-ink:var(--jc-ink,#30392f);--iv-track:color-mix(in srgb,var(--iv-fg) 8%,transparent);
  --iv-s0:var(--iv-accent);--iv-s1:#4d6a86;--iv-s2:#6d8a5a;--iv-s3:#b08a3c;--iv-s4:#8a5c86;--iv-s5:var(--iv-muted);
  box-sizing:border-box;display:flex;flex-direction:column;gap:14px;padding:clamp(18px,3.6%,30px);
  background:var(--iv-bg);color:var(--iv-fg);border:1px solid var(--iv-line);font-family:Arial,Helvetica,sans-serif;line-height:1.3;
  box-shadow:0 1px 2px rgba(20,18,12,.10),0 18px 40px -14px rgba(20,18,12,.35);font-variant-numeric:tabular-nums}
[data-theme="dark"] .iv-frame{--iv-bg:#1f1e1b;--iv-fg:#eeeede;--iv-muted:#a6a59b;--iv-line:#3b3a35;--iv-accent:#e58f70;--iv-card:#2a2926;--iv-ink:#eeeede;--iv-s1:#8fa9c4;--iv-s2:#9ab887;--iv-s3:#d1ab5c;--iv-s4:#b58bb1;box-shadow:0 1px 2px rgba(0,0,0,.5),0 18px 44px -12px rgba(0,0,0,.8)}
.iv-frame.is-dark{--iv-bg:#1f1e1b;--iv-fg:#eeeede;--iv-muted:#a6a59b;--iv-line:#3b3a35;--iv-accent:#e58f70;--iv-card:#2a2926;--iv-ink:#eeeede;--iv-s1:#8fa9c4;--iv-s2:#9ab887;--iv-s3:#d1ab5c;--iv-s4:#b58bb1}
.iv-frame *,.iv-frame *::before,.iv-frame *::after{box-sizing:inherit;min-width:0}
.iv-frame p,.iv-frame h3{margin:0}
.iv-frame h3{font-size:.95rem;font-weight:700;letter-spacing:-.01em}
.iv-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.iv-wordmark{font-size:1.05rem;letter-spacing:-.04em;font-weight:600;display:inline-flex;align-items:center;white-space:nowrap}
.iv-dot{width:.5em;height:.5em;border-radius:50%;background:var(--iv-accent);margin-right:.45em}
.iv-period{color:var(--iv-accent)}
.iv-asof{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--iv-muted);font-weight:600}
.iv-market{font-size:clamp(1.25rem,2.6vw,1.8rem);line-height:1.08;letter-spacing:-.03em;font-weight:700}
.iv-read{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:1.02rem;color:var(--iv-muted);margin-top:-6px}
.iv-section{display:flex;flex-direction:column;gap:10px}
.iv-section+.iv-section{border-top:1px solid var(--iv-line);padding-top:14px}
.iv-tiles{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--iv-line);background:var(--iv-card)}
.iv-tiles-3{grid-template-columns:repeat(3,1fr)}
.iv-tile{display:flex;flex-direction:column;gap:4px;padding:12px 14px 10px;border-right:1px solid var(--iv-line)}
.iv-tile:last-child{border-right:0}
.iv-k{font-size:.74rem;color:var(--iv-muted)}
.iv-v{font-size:1.55rem;line-height:1.1;letter-spacing:-.02em;font-weight:700}
.iv-v-small{font-size:1.05rem;padding-top:.25rem}
.iv-none{font-size:.9rem;color:var(--iv-muted);font-weight:600;padding-top:.3rem}
.iv-s{font-size:.7rem;color:var(--iv-muted)}
.iv-strip{display:flex;gap:16px;flex-wrap:wrap;font-size:.8rem;color:var(--iv-muted)}
.iv-strip b{color:var(--iv-fg)}
.iv-chart-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.iv-sub{font-size:.76rem;color:var(--iv-muted)}
.iv-note{font-size:.72rem;color:var(--iv-muted);line-height:1.4}
.iv-empty{font-size:.85rem;color:var(--iv-muted);padding:10px 0}
.iv-muted{color:var(--iv-muted)}
.iv-dim{opacity:.6}
.iv-legend{display:flex;gap:6px 14px;flex-wrap:wrap;font-size:.74rem;color:var(--iv-muted)}
.iv-legend span{display:inline-flex;align-items:center;gap:6px}
.iv-key{display:inline-block;width:9px;height:9px;background:var(--iv-series,var(--iv-fg));flex-shrink:0}
.iv-key-base{background:var(--iv-track);border:1px solid var(--iv-line)}
.iv-key-line{width:14px;height:0;border-top:2px dashed var(--iv-ink)}
[data-series="0"]{--iv-series:var(--iv-s0)}[data-series="1"]{--iv-series:var(--iv-s1)}[data-series="2"]{--iv-series:var(--iv-s2)}[data-series="3"]{--iv-series:var(--iv-s3)}[data-series="4"]{--iv-series:var(--iv-s4)}[data-series="5"]{--iv-series:var(--iv-s5)}
.iv-line,.iv-bars{width:100%;height:auto;display:block;font-family:inherit}
.iv-card .iv-line,.iv-card .iv-bars{width:100%;height:auto}
.iv-rule{stroke:var(--iv-line);stroke-width:1}
.iv-axis{font-size:11px;fill:var(--iv-muted)}
.iv-label{font-size:11px;font-weight:700;fill:var(--iv-series,var(--iv-fg))}
.iv-path{fill:none;stroke:var(--iv-series,var(--iv-fg));stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.iv-point{fill:var(--iv-series,var(--iv-fg))}
.iv-bar{fill:var(--iv-accent)}
.iv-bar.is-partial{opacity:.45}
.iv-bar-base{fill:var(--iv-track);stroke:var(--iv-line);stroke-width:.5}
.iv-cumulative{fill:none;stroke:var(--iv-ink);stroke-width:1.6;stroke-dasharray:4 3}
.iv-hist{display:flex;gap:3px;align-items:flex-end;height:120px;border-bottom:1px solid var(--iv-line)}
.iv-bin{flex:1;min-width:0;height:100%;display:flex;align-items:flex-end}
.iv-bin i{display:block;width:100%;height:var(--h);min-height:1px;background:var(--iv-accent);opacity:.85}
.iv-bin-over i{background:var(--iv-muted)}
.iv-hist-axis{display:flex;justify-content:space-between;font-size:.7rem;color:var(--iv-muted)}
.iv-stack{display:flex;height:14px;gap:2px;background:var(--iv-track)}
.iv-stack i{display:block;height:100%}
.iv-c1{background:var(--iv-accent)}.iv-c2{background:var(--iv-s1)}.iv-c3{background:var(--iv-s2)}.iv-c4{background:var(--iv-s3)}
.iv-cu{background:repeating-linear-gradient(135deg,var(--iv-line) 0 3px,transparent 3px 6px)}
.iv-scroll{overflow-x:auto}
.iv-table{width:100%;border-collapse:collapse;font-size:.82rem}
.iv-table th,.iv-table td{padding:6px 8px;text-align:right;border-bottom:1px solid var(--iv-line);white-space:nowrap;vertical-align:middle}
.iv-table th{font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;color:var(--iv-muted);font-weight:600}
.iv-table .iv-l{text-align:left}
.iv-table td.iv-l{font-weight:600}
.iv-table td.iv-l .iv-key{margin-right:8px;vertical-align:1px}
.iv-table tbody tr:last-child td{border-bottom:0}
.iv-rng{min-width:140px;width:26%}
.iv-axis-row{display:flex;justify-content:space-between;font-size:.6rem;letter-spacing:0;text-transform:none;color:var(--iv-muted);margin-top:2px}
.iv-rb{position:relative;display:block;height:12px;background:var(--iv-track)}
.iv-rb b{position:absolute;top:0;bottom:0;background:var(--iv-series,var(--iv-fg));opacity:.55}
.iv-rb i{position:absolute;top:-2px;bottom:-2px;width:2px;margin-left:-1px;background:var(--iv-fg)}
.iv-rb-none{opacity:.3}
/* narrow frames (phone, the editor's preview pane): each market becomes a labelled block instead of a sideways-scrolling row */
.iv-scroll{container-type:inline-size}
.iv-rng-v{display:none}
@container (max-width:560px){
.iv-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.iv-table,.iv-table tbody{display:block}
.iv-table tr{display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;padding:10px 0;border-bottom:1px solid var(--iv-line)}
.iv-table tbody tr:last-child{border-bottom:0}
.iv-table td{display:block;padding:0;border:0;min-width:0;text-align:left;white-space:normal}
.iv-table td::before{content:attr(data-label);display:block;margin-bottom:1px;font-size:.64rem;letter-spacing:.04em;text-transform:uppercase;color:var(--iv-muted);font-weight:600}
.iv-table td.iv-l{grid-column:1/-1;display:block;font-size:.9rem}
.iv-table td.iv-l::before{content:none}
.iv-table td.iv-rng{grid-column:1/-1;width:auto;min-width:0}
.iv-table td.iv-rng .iv-rng-v{display:block;margin-bottom:4px}
}
.iv-bottom{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;border-top:1px solid var(--iv-line);padding-top:12px}
.iv-foot{font-size:.7rem;color:var(--iv-muted);max-width:58ch}
.iv-link{font-size:.82rem;font-weight:600;color:var(--iv-accent);text-decoration:none;white-space:nowrap}
.iv-link:hover{text-decoration:underline;text-underline-offset:3px}
@media (max-width:700px){.iv-tiles,.iv-tiles-3{grid-template-columns:1fr 1fr}.iv-tile:nth-child(2n){border-right:0}.iv-tile:nth-child(-n+2){border-bottom:1px solid var(--iv-line)}.iv-tiles-3 .iv-tile:nth-child(3){border-bottom:0;grid-column:1/-1}.iv-v{font-size:1.3rem}}
/* the fixed-size card (og:image, exports): a rigid frame; sections scale by the card's own font size */
.iv-card{position:relative;overflow:hidden;box-shadow:none;border:0;justify-content:flex-start}
.iv-card .iv-tiles{grid-template-columns:repeat(4,1fr)}
.iv-card .iv-tiles-3{grid-template-columns:repeat(3,1fr)}
.iv-card.is-1200x630{padding:30px 36px;gap:12px;font-size:15px}
.iv-card.is-1200x630 .iv-market{font-size:1.9rem}
.iv-card.is-1200x630 .iv-v{font-size:1.7rem}
.iv-card.is-1080x1080{padding:44px 48px;gap:18px;font-size:19px}
.iv-card.is-1080x1080 .iv-market{font-size:2.3rem}
.iv-card.is-1080x1080 .iv-v{font-size:2rem}
.iv-card.is-1920x1080{padding:56px 64px;gap:20px;font-size:24px}
.iv-card.is-1920x1080 .iv-market{font-size:3rem}
.iv-card.is-1920x1080 .iv-v{font-size:2.6rem}
.iv-card .iv-section+.iv-section{padding-top:10px}
.iv-card .iv-bottom{margin-top:auto}

/* ── Skin: camp (#396, owner 2026-10-11: the card follows the skin on the page AND in the export) ──
   The export clones the frame under a wrapper carrying the page root's data-* attributes
   (share-card.js), so [data-skin] selects here exactly as it does on the journal page. Fonts are
   named directly: the sheet stays self-contained (share-card.js embeds the faces into the SVG). */
[data-skin="camp"] .iv-frame{--iv-bg:#ffffff;--iv-fg:#212426;--iv-muted:#6a6f73;--iv-line:rgba(33,36,38,.12);--iv-accent:#1d75d0;--iv-card:#f5f4f1;--iv-ink:#212426;
  --iv-s1:#d9822b;--iv-s2:#5f9a4e;--iv-s3:#b08a3c;--iv-s4:#8a5c86;
  font-family:'Figtree',-apple-system,system-ui,Arial,sans-serif;letter-spacing:-.01em;border-color:transparent;
  box-shadow:var(--card-shadow,0 0 0 1px rgba(0,0,0,.02),0 .4em 2.8em -1.4em rgba(0,0,0,.2),0 1.2em 2em -2.6em rgba(0,0,0,.5))}
[data-skin="camp"][data-theme="dark"] .iv-frame,[data-skin="camp"] .iv-frame.is-dark{--iv-bg:#292826;--iv-fg:#efede8;--iv-muted:#9c978c;--iv-line:rgba(255,255,255,.10);--iv-accent:#3a8fe3;--iv-card:#33322e;--iv-ink:#efede8;
  --iv-s1:#e9a35a;--iv-s2:#9ab887;--iv-s3:#d1ab5c;--iv-s4:#b58bb1;
  box-shadow:var(--card-shadow,0 0 0 1px rgba(255,255,255,.04),0 .8em 1.6em -2.2em rgba(0,0,0,.6))}
[data-skin="camp"] .iv-frame h3,[data-skin="camp"] .iv-market,[data-skin="camp"] .iv-wordmark{font-weight:800;letter-spacing:-.026em}
[data-skin="camp"] .iv-read{font-family:'Caveat','Segoe Print',cursive;font-style:normal;font-weight:600;font-size:1.3rem;color:var(--iv-accent);margin-top:-4px}
[data-skin="camp"] .iv-v{font-family:'Martian Mono',ui-monospace,'SFMono-Regular',Menlo,monospace;font-weight:500;letter-spacing:-.04em;font-size:1.3rem}
[data-skin="camp"] .iv-card.is-1200x630 .iv-v{font-size:1.45rem}
[data-skin="camp"] .iv-card.is-1080x1080 .iv-v{font-size:1.7rem}
[data-skin="camp"] .iv-card.is-1920x1080 .iv-v{font-size:2.2rem}
[data-skin="camp"] .iv-label{font-weight:800}
[data-skin="camp"] .iv-table th{text-transform:none;letter-spacing:-.01em;font-size:.76rem;font-weight:700;color:var(--iv-fg)}
[data-skin="camp"] .iv-link{font-weight:700;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:max(1px,.07em)}
[data-skin="camp"] .iv-card{box-shadow:none}
