:root {
  /* IMA cool vibe tokens (brand/css/ima-docs.css) */
  --ima-paper: #F2F5F8;
  --ima-white: #F7F9FB;
  --ima-stone: #E6EBEF;
  --ima-line: #CDD5DD;
  --ima-ink: #10151C;
  --ima-muted: #5A6572;
  --ima-navy: #0B1622;
  --ima-sky: #C5D4E2;
  --ima-sky-deep: #6A8AA3;
  --ima-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ima-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --slide-w: 13.333in;
  --slide-h: 7.5in;
}
@page { size: 13.333in 7.5in; margin: 0; }
* { box-sizing: border-box; }
html, body.ima-doc {
  margin: 0; padding: 0;
  background: var(--ima-paper);
  color: var(--ima-ink);
  font-family: var(--ima-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

.ima-slide {
  position: relative;
  width: var(--slide-w);
  height: var(--slide-h);
  background: var(--ima-paper);
  overflow: hidden;
  break-after: page;
  page-break-after: always;
}
.ima-slide:last-child { break-after: auto; page-break-after: auto; }
.ima-slide::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2mm; background: var(--ima-navy);
  box-shadow: 0 1px 0 rgba(78, 195, 224, .65);
}
.ima-slide-inner {
  height: 100%;
  padding: 44px 64px 30px;
  display: flex; flex-direction: column;
}
.top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 26px;
}
.deck-name { font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
.ima-wordmark { font-weight: 600; font-size: 13px; letter-spacing: -.02em; white-space: nowrap; }
.ima-wordmark span { color: var(--ima-muted); font-weight: 400; }
.ima-kicker {
  font-family: var(--ima-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ima-muted);
  margin: 0 0 8px;
}
h1.ima-h1 {
  font-size: 27px; font-weight: 600; letter-spacing: -.03em; line-height: 1.16;
  margin: 0 0 20px; max-width: 1060px; text-wrap: balance;
}
p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.45; text-wrap: pretty; }
.body { flex: 1; min-height: 0; }
.ima-slide-num {
  margin: 10px 0 0; font-family: var(--ima-mono); font-size: 11px;
  letter-spacing: .12em; color: var(--ima-muted);
}
.muted { color: var(--ima-muted); }
.small { font-size: 13px; line-height: 1.4; }
.caption { font-size: 12px; line-height: 1.4; color: var(--ima-muted); margin: 8px 0 0; }
strong { font-weight: 600; }
code { font-family: var(--ima-mono); font-size: .88em; letter-spacing: -.01em; }
ul.list { margin: 0; padding: 0 0 0 18px; }
ul.list li { font-size: 15px; line-height: 1.42; margin: 0 0 8px; text-wrap: pretty; }
ul.list li::marker { color: var(--ima-sky-deep); }
h3 {
  font-family: var(--ima-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ima-muted); margin: 0 0 10px;
  padding-bottom: 7px; border-bottom: 0.6pt solid var(--ima-navy);
}

/* cover */
.ima-slide--navy { background: var(--ima-navy); color: #F2F6FA; }
.ima-slide--navy::before {
  background: linear-gradient(90deg, #4EC3E0 0%, #3B6FE8 38%, #6B4DE8 68%, #E04AA8 100%);
  opacity: .85; box-shadow: none;
}
.ima-slide--navy .ima-wordmark { color: #F2F6FA; }
.ima-slide--navy .ima-wordmark span { color: rgba(242, 246, 250, .55); }
.ima-slide--navy .ima-kicker, .ima-slide--navy .ima-slide-num { color: rgba(242, 246, 250, .6); }
.cover-date { font-family: var(--ima-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(242, 246, 250, .55); }
.cover-mid { margin-top: auto; max-width: 900px; }
.ima-cover-kind { display: flex; align-items: center; gap: 13px; font-size: 20px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 30px; }
.ima-cover-mark { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.ima-display { font-size: 42px; font-weight: 600; letter-spacing: -.04em; line-height: 1.08; margin: 0 0 22px; text-wrap: balance; }
.ima-slide--navy .lede { font-size: 17px; line-height: 1.5; color: rgba(242, 246, 250, .78); margin: 0 0 10px; }
.ima-slide--navy .lede strong { color: #F2F6FA; font-weight: 500; }
.cover-foot { margin-top: auto; padding-top: 40px; }

/* main message */
.message {
  font-size: 21px; line-height: 1.42; letter-spacing: -.015em; max-width: 1080px;
  margin: 0 0 30px; font-weight: 500;
}
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cols3 p, .cols2 p { font-size: 14.5px; }

/* definitions */
.defs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 44px; }
.def dt { font-weight: 600; font-size: 15px; margin: 0 0 3px; letter-spacing: -.01em; }
.def dd { margin: 0; font-size: 13.6px; line-height: 1.42; color: var(--ima-ink); text-wrap: pretty; }
.def { padding-top: 9px; border-top: 1px solid var(--ima-line); }

/* figure + read */
.fig-row { display: grid; grid-template-columns: 700px 1fr; gap: 40px; align-items: start; }
.fig { background: #fff; border: 1px solid var(--ima-line); border-radius: 8px; padding: 14px 16px 10px; }
.fig img { display: block; width: 100%; height: auto; }
.fig2 img { width: 900px; margin: 0 auto; }
.read p { font-size: 14.5px; }
.key { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0 0 6px; }
.swatch { width: 14px; height: 10px; border-radius: 2px; flex: none; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote {
  background: var(--ima-white); border: 1px solid var(--ima-line); border-radius: 8px;
  padding: 16px 18px 14px; display: flex; flex-direction: column;
}
.quote q { font-size: 15.5px; line-height: 1.42; letter-spacing: -.01em; quotes: "\201C" "\201D"; text-wrap: pretty; }
.quote .note { font-size: 13px; color: var(--ima-muted); margin: 6px 0 0; line-height: 1.38; }
.quote .src { margin-top: auto; padding-top: 12px; font-family: var(--ima-mono); font-size: 11px; letter-spacing: .04em; color: var(--ima-sky-deep); }
.quote .src a { border-bottom: 1px solid var(--ima-line); }
.read-band { margin-top: 16px; padding: 12px 16px; background: var(--ima-stone); border-radius: 8px; }
.read-band p { margin: 0; font-size: 14.5px; }

/* tables */
.ima-table { width: 100%; border-collapse: collapse; }
.ima-table th {
  text-align: left; font-family: var(--ima-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500; color: var(--ima-muted);
  border-bottom: 0.6pt solid var(--ima-navy); padding: 0 14px 7px 0;
}
.ima-table td {
  padding: 6.5px 14px 6.5px 0; border-bottom: 1px solid var(--ima-line);
  vertical-align: top; font-size: 13.2px; line-height: 1.36; text-wrap: pretty;
}
.ima-table tr:last-child td { border-bottom: 0; }
.ima-table td.n { font-family: var(--ima-mono); font-size: 11.5px; color: var(--ima-muted); width: 26px; }
.tag { font-weight: 600; }
.tag.yes { color: var(--ima-navy); }
.tag.part { color: var(--ima-sky-deep); }

/* lead-with grid */
.lead-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 34px; }
.lead-grid ul.list li { font-size: 14px; margin-bottom: 7px; }
.dont { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--ima-line); border-radius: 8px; background: var(--ima-white); }
.dont p { margin: 0; font-size: 13.6px; }

/* sources */
.src-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; }
.src-grid p { font-size: 13.2px; line-height: 1.42; margin-bottom: 9px; }
.links { columns: 2; column-gap: 24px; }
.links a { display: block; font-family: var(--ima-mono); font-size: 10.6px; line-height: 1.75; color: var(--ima-ink); break-inside: avoid; }
.links a span { color: var(--ima-muted); }

@media screen {
  body.ima-doc { background: #D5DCE4; padding: 24px 0 64px; }
  .ima-slide { margin: 0 auto 24px; box-shadow: 0 0 0 1px rgba(11,22,34,.04), 0 18px 40px -24px rgba(11,22,34,.28); }
}
@media print {
  html, body.ima-doc { background: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ima-slide { margin: 0; box-shadow: none; }
}
