@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;700;800;900&family=Red+Hat+Text:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Red+Hat+Mono:wght@400;600&display=block");

/* 48" x 36" landscape. Sizes are in pt/in so they map directly to print. */
@page { size: 48in 36in; margin: 0; }

:root {
  /* UW–Madison brand (brand.wisc.edu); red is an accent, not a fill */
  --red: #c5050c;
  --red-dark: #9b0000;
  --black: #121212;
  --charcoal: #282728;
  --gray: #e1e5e7;
  --gray-lightest: #f5f5f4;
  --muted: #5b5e63;
  /* Information / control coding from the talk */
  --info: #1d5fb4;
  --info-soft: #eaf1fa;
  --ctrl: #b85c00;
  --ctrl-soft: #fbf1e4;
  --good: #1f7a3f;
  --good-soft: #e9f4ec;
  --bad-soft: #f7ecec;
  /* Type scale */
  --t-h3: 46pt;
  --t-h4: 34pt;
  --t-body: 30pt;
  --t-small: 26pt;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  width: 48in; height: 36in; overflow: hidden;
  background: var(--gray-lightest); color: var(--black);
  border-top: 0.3in solid var(--red);
  font: var(--t-body)/1.35 "Red Hat Text", Arial, sans-serif;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  display: flex; flex-direction: column;
}

/* On screen, scale the poster to fit the window (set by the script in index.html). */
@media screen {
  html { height: 100%; overflow: hidden; background: #3a3b40; }
  body {
    transform-origin: 0 0;
    transform: translate(var(--fit-x, 0), var(--fit-y, 0)) scale(var(--fit-scale, 1));
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }
}

h1, h2, h3, h4, .big { font-family: "Red Hat Display", Arial, sans-serif; }
h3 { margin: 0 0 0.14in; font-size: var(--t-h3); font-weight: 800; line-height: 1.1; color: var(--charcoal); }
h3 .muted { font-weight: 500; }
h3.one { white-space: nowrap; }
h4 { margin: 0.25in 0 0.06in; font-size: var(--t-h4); font-weight: 800; line-height: 1.15; }
p { margin: 0 0 0.18in; }
b { font-weight: 700; }
img { display: block; max-width: 100%; }
sup { font-size: 0.8em; }
code, .mono { font-family: "Red Hat Mono", monospace; }
code { font-size: 1em; background: var(--gray-lightest); padding: 0 0.15em; border-radius: 6pt; }
cite code, .quote code { font-size: 1em; }
.muted { color: var(--muted); }
.info { color: var(--info); }
.ctrl { color: var(--ctrl); }
.good { color: var(--good); }

/* ---------- header ---------- */
header {
  display: flex; align-items: center; gap: 0.6in;
  padding: 0.35in 1in 0.3in; background: #fff; border-bottom: 3pt solid var(--gray);
}
header .crest { height: 2.1in; }
header .titles { flex: 1; }
header h1 { margin: 0; font-size: 86pt; font-weight: 900; letter-spacing: -0.01em; line-height: 1.08; color: var(--charcoal); }
header .subtitle { margin: 0.04in 0 0; font: 800 64pt/1.1 "Red Hat Display", sans-serif; color: var(--charcoal); }
.red { color: var(--red); }
.people { flex: none; border-left: 3pt solid var(--gray); padding-left: 0.5in; }
header .authors { margin: 0; font-size: 38pt; font-weight: 500; line-height: 1.3; }
header .affil { margin: 0.1in 0 0; font-size: 31pt; line-height: 1.3; color: var(--muted); }
header .affil sup { font-size: 0.9em; }
.qr { text-align: center; font: 700 24pt "Red Hat Display", sans-serif; color: var(--muted); }
.qr img { width: 2.3in; margin: 0 auto 0.06in; }

/* ---------- three columns of cards ---------- */
main {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.98fr); gap: 0.7in;
  padding: 0.45in 1in 0.55in;
}
.col { display: flex; flex-direction: column; justify-content: space-between; gap: 0.3in; min-height: 0; }
.card { background: #fff; border-radius: 20pt; padding: 0.32in 0.45in; }

.sec { display: flex; align-items: center; gap: 0.28in; border-bottom: 5pt solid var(--red); padding-bottom: 0.14in; }
.sec h2 { margin: 0; font-size: 60pt; font-weight: 900; line-height: 1; color: var(--charcoal); }
.sec h2 small { display: block; font-size: 32pt; font-weight: 700; color: var(--muted); margin-top: 0.06in; }

/* ---------- agent quotes ---------- */
.quote {
  position: relative; margin: 0.1in 0 0 0.75in; padding: 0.06in 0.25in;
  background: var(--gray-lightest); border-radius: 14pt; font: italic 500 var(--t-body)/1.3 "Red Hat Text", sans-serif;
}
.quote::before { content: "🤖"; position: absolute; left: -0.7in; top: 50%; transform: translateY(-50%); font-size: 36pt; font-style: normal; }
.quote cite { font: normal var(--t-small) "Red Hat Text", sans-serif; color: var(--muted); }
.quote cite::before { content: " — "; }

/* ---------- 1. dilemma: 👩🏻 → 🤖 → 📂 ---------- */
.flow { display: flex; align-items: center; margin: 0.1in 0; }
.actor { flex: none; text-align: center; font: 700 var(--t-small)/1.1 "Red Hat Display", sans-serif; }
.actor .e { font-size: 72pt; line-height: 1.05; display: block; }
.arr {
  flex: 1; position: relative; margin: 0 0.18in 0.55in; padding-bottom: 0.06in;
  border-bottom: 4pt solid var(--charcoal); text-align: center; font-size: var(--t-small); white-space: nowrap;
}
.arr::after, .arr.both::before { content: ""; position: absolute; bottom: -10pt; border: 8pt solid transparent; }
.arr::after { right: -6pt; border-left: 16pt solid var(--charcoal); border-right: 0; }
.arr.both::before { left: -6pt; border-right: 16pt solid var(--charcoal); border-left: 0; }
.arr .mono { color: var(--good); }
.arr .danger { color: var(--red); font-weight: 600; }
.dilemma { display: flex; flex-direction: column; align-items: center; gap: 0.06in; margin-top: 0.1in; line-height: 1.3; }
.verdict { font: 800 var(--t-body)/1.2 "Red Hat Display", sans-serif; color: var(--red-dark); }

/* ---------- 1. impact: one stacked bar per dimension ---------- */
.impact { display: grid; grid-template-columns: auto 1fr; gap: 0.12in 0.25in; align-items: center; margin-bottom: 0.1in; }
.dim { font: 800 var(--t-body) "Red Hat Display", sans-serif; text-align: right; white-space: nowrap; }
.stack { display: flex; height: 0.62in; border-radius: 8pt; overflow: hidden; font-size: var(--t-small); }
.stack span { display: flex; align-items: center; padding: 0 0.07in; white-space: nowrap; overflow: hidden; }
.h-red    .s0 { background: #f2b8b5; } .h-red    .s1 { background: #f8d6d4; } .h-red    .s2 { background: #fcebea; }
.h-blue   .s0 { background: #bcd0ee; } .h-blue   .s1 { background: #d4e1f4; } .h-blue   .s2 { background: #e4ecf8; } .h-blue .s3 { background: #f1f5fb; }
.h-purple .s0 { background: #dcc3e8; } .h-purple .s1 { background: #eadbf1; } .h-purple .s2 { background: #f5edf8; }
.h-teal   .s0 { background: #b9e2e4; } .h-teal   .s1 { background: #d6eef0; } .h-teal   .s2 { background: #ebf6f7; }
.h-orange .s0 { background: #f6cfa3; } .h-orange .s1 { background: #fae2c6; } .h-orange .s2 { background: #fdf0e1; }

/* ---------- 1. cause taxonomy: role, then name (count) … "quote" ---------- */
.causes { line-height: 1.75; }
.causes .role { display: block; font: 800 var(--t-body) "Red Hat Display", sans-serif; margin-top: 0.2in; }
.causes .role:first-child { margin-top: 0; }
.causes .rt { font-weight: 500; font-style: italic; color: var(--muted); }
.causes .cc { font-weight: 500; color: var(--muted); }
.causes .crow { display: flex; justify-content: space-between; align-items: baseline; gap: 0.25in; }
.causes .cn { margin-left: 0.35in; }
.causes .cn.sub { margin-left: 0.7in; }
.causes .cq { font: italic 500 var(--t-small)/1.2 "Red Hat Text", sans-serif; color: var(--charcoal); text-align: right; padding-top: 0.03in; }
.causes .who { font-style: normal; margin-right: 0.08in; }

/* ---------- 1. gaps ---------- */
.gaps { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3in; }
.gap { border-radius: 16pt; padding: 0.25in 0.32in; line-height: 1.3; }
.gap h4 { margin: 0 0 0.08in; }
.gap.info { background: var(--info-soft); }
.gap.info h4 { color: var(--info); }
.gap.ctrl { background: var(--ctrl-soft); }
.gap.ctrl h4 { color: var(--ctrl); }

/* ---------- 2. traditional vs agent-native ---------- */
.shift { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35in; margin: 0.05in 0 0.22in; }
.fsbox { border: 3pt solid var(--gray); border-radius: 16pt; padding: 0.2in 0.25in 0.25in; }
.fsbox h4 { margin: 0 0 0.15in; text-align: center; white-space: nowrap; }
.tri { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto 0.35in auto; align-items: center; }
.node {
  border: 3pt solid var(--charcoal); border-radius: 12pt; padding: 0.05in 0.2in;
  font: 700 var(--t-small) "Red Hat Display", sans-serif; white-space: nowrap; background: #fff; justify-self: center;
}
.node.badn { background: var(--bad-soft); border-color: var(--red); }
.node.goodn { background: var(--good-soft); border-color: var(--good); }
.vline { width: 0; height: 100%; justify-self: center; border-left: 5pt solid; }
.hline { height: 0; border-top: 5pt solid; margin: 0 0.1in; }
.prims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3in; }
.prim { line-height: 1.3; }
.prim h4 { margin: 0 0 0.06in; white-space: nowrap; }

/* ---------- 2. YoloFS architecture + highlights ---------- */
.archrow { display: grid; grid-template-columns: 1fr 2.3fr; gap: 0.3in; align-items: start; }
.archrow h3 { margin-bottom: 0.14in; }
.archrow img { width: 100%; }
.hl { list-style: none; margin: 0; padding: 0; line-height: 1.25; }
.hl li { margin-bottom: 0.12in; }
.hl li b { font: 800 var(--t-body)/1.1 "Red Hat Display", sans-serif; }
.hl li span { display: block; padding-left: 0.2in; font-size: var(--t-small); line-height: 1.3; color: var(--muted); }

/* ---------- 2. mechanism cards ---------- */
.mhead { margin-bottom: 0.1in; }
.mhead h3 { margin: 0 0 0.04in; font-weight: 500; white-space: nowrap; }
.mhead h3 b { font-weight: 800; }
.mhead .idea { margin: 0; font-size: var(--t-small); color: var(--charcoal); }
.mhead .idea b { font-family: "Red Hat Display", sans-serif; font-weight: 800; }

.chip { border-radius: 10pt; padding: 0.02in 0.16in; font: 600 var(--t-small) "Red Hat Mono", monospace; white-space: nowrap; }
.chip.bs { background: var(--good-soft); color: var(--good); }
.chip.no { background: var(--bad-soft); color: var(--red); }
.chip.ask { background: var(--ctrl-soft); color: var(--ctrl); }
.chip.inh { background: transparent; border: 2.5pt dashed var(--ctrl); }
.tile {
  padding: 0.1in; border-radius: 6pt 18pt 6pt 6pt; min-width: 0.75in; text-align: center;
  font: 600 var(--t-small) "Red Hat Mono", monospace;
}
.tile.st { background: var(--info-soft); color: var(--info); border: 2pt solid #bcd0ee; }
.tile.bs { background: var(--good-soft); color: var(--good); border: 2pt solid #b9dcc4; }
.tile.no { background: var(--bad-soft); color: var(--red); border: 2pt solid #f2b8b5; }
.rec {
  padding: 0.02in 0.12in; border-radius: 8pt; background: var(--gray-lightest); border: 2pt solid var(--gray);
  font: 600 var(--t-small) "Red Hat Mono", monospace;
}

/* staging: file store, override tree + operations, journal */
.srow { display: flex; align-items: center; gap: 0.12in; margin: 0.1in 0; }
.srow.jr { margin-top: 0; }
.srow b { font: 800 var(--t-body) "Red Hat Display", sans-serif; margin-right: 0.1in; }
.srow .sd { color: var(--muted); font-size: var(--t-small); }
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 0.16in 0.4in; padding-left: 0.4in; margin: 0.04in 0 0.3in; }
.op { display: flex; align-items: center; gap: 0.14in; white-space: nowrap; }
.op .k { min-width: 1.6in; }
.op .mono { font-weight: 600; min-width: 0.7in; }
.op .tile { font-size: var(--t-body); }
.op .ar, .perm3 .ar { color: var(--muted); font-weight: 800; }
.op .where { color: var(--muted); }

/* snapshots: inline SVG journal */
.mfig { width: 100%; display: block; }
.mfig .h { font: 800 38px "Red Hat Display", sans-serif; fill: var(--charcoal); }
.mfig .s { font: 500 36px "Red Hat Text", sans-serif; fill: var(--muted); }
.mfig .m { font: 600 36px "Red Hat Mono", monospace; fill: var(--charcoal); }

/* permission: rule tree rows beside numbered steps */
.perm3 { display: grid; grid-template-columns: auto 1fr; gap: 0.12in 0.5in; align-items: center; font-size: var(--t-small); }
.perm3 > span { display: flex; align-items: center; gap: 0.12in; white-space: nowrap; }
.perm3 .t1 { padding-left: 0.5in; }
.perm3 .mono { font-weight: 600; min-width: 1in; }

/* ---------- 3. evaluation ---------- */
.meth { display: grid; grid-template-columns: auto 1fr; gap: 0.06in 0.3in; margin: 0 0 0.16in; line-height: 1.3; }
.meth dt { font: 800 var(--t-body) "Red Hat Display", sans-serif; }
.meth dt.old { color: var(--red-dark); }
.meth dt.new { color: var(--good); }
.meth dd { margin: 0; color: var(--charcoal); }
.design { margin: 0; padding-left: 1em; line-height: 1.3; color: var(--charcoal); }
.design li { margin-bottom: 0.06in; }

.setup { margin: 0 0 0.1in; line-height: 1.3; color: var(--muted); }
.headline { display: flex; align-items: center; gap: 0.3in; margin: 0 0 0.12in; }
.headline .num { flex: none; width: 4.4in; display: flex; align-items: baseline; gap: 0.15in; }
.headline .big { font-size: 52pt; font-weight: 900; line-height: 1; }
.headline .l { font: 700 var(--t-body)/1.2 "Red Hat Display", sans-serif; }
.from { color: var(--muted); }
.to { color: var(--good); }

.steps { list-style: none; padding: 0; margin: 0.06in 0 0; line-height: 1.3; }
.steps li { display: grid; grid-template-columns: 0.6in 1fr; gap: 0.12in; align-items: start; margin-bottom: 0.14in; }
.steps li > span { font-size: 36pt; line-height: 1.1; }

img.perf { width: 100%; max-height: 9in; object-fit: contain; margin: 0.08in 0; }
.causes .cn { white-space: nowrap; }
.quote.insight { font-style: normal; }
.quote.insight::before { content: "💡"; }
.quote.insight b { font-weight: 800; }
.causes .quote.insight { line-height: 1.3; margin-top: 0.08in; margin-bottom: 0.06in; }
.payoff { margin: 0.16in 0 0; text-align: center; color: var(--charcoal); font-size: var(--t-small); white-space: nowrap; }
.div { border: none; border-top: 3pt solid var(--gray); margin: 0.25in 0 0.2in; }

/* ---------- breathing room inside the YoloFS mechanisms ---------- */
.div { margin: 0.32in 0 0.26in; }
.mhead { margin-bottom: 0.2in; }
.mhead h3 { margin-bottom: 0.08in; }
.mhead .idea { line-height: 1.4; }
.srow { margin: 0.16in 0; }
.stage { gap: 0.24in 0.4in; margin: 0.12in 0 0.3in; }
.perm3 { gap: 0.2in 0.5in; font-size: var(--t-body); }

/* safety outcomes: one stacked bar per agent, 11 tasks each */
.outcomes { display: grid; grid-template-columns: auto 1fr; gap: 0.1in 0.25in; align-items: center; margin: 0.12in 0 0.1in; }
.outcomes .an { font: 700 var(--t-small) "Red Hat Display", sans-serif; white-space: nowrap; text-align: right; }
.outcomes .an.us { color: var(--good); }
.obar { display: flex; gap: 3pt; height: 0.48in; }
.obar span { display: flex; align-items: center; justify-content: center; border-radius: 6pt; font: 700 var(--t-small) "Red Hat Display", sans-serif; color: #fff; }
.o-ok { background: #a8d8b5; color: #14502a !important; }
.o-uc { background: #d6eedd; color: #1f7a3f !important; }
.o-ask { background: #f5e2b0; color: #7a5200 !important; }
.o-x { background: #f2c4c1; color: var(--red-dark) !important; }
.o-na { background: #f0f0ef; color: var(--muted) !important; }
.olegend { margin: 0 0 0.14in; font-size: var(--t-small); color: var(--muted); }
.olegend span { display: inline-block; width: 0.26in; height: 0.26in; border-radius: 4pt; vertical-align: -0.03in; margin: 0 0.06in 0 0.16in; }
.olegend span:first-child { margin-left: 0; }

/* autonomy: prompts per task, one bar per agent */
.pchart { display: grid; grid-template-columns: auto 1fr auto; gap: 0.1in 0.25in; align-items: center; margin: 0.12in 0 0; }
.pchart .ph { font-size: var(--t-small); color: var(--muted); }
.pchart .an { font: 700 var(--t-small) "Red Hat Display", sans-serif; white-space: nowrap; text-align: right; }
.pchart .an.us { color: var(--good); }
.pbar { display: flex; align-items: center; gap: 0.12in; height: 0.48in; }
.pbar span { height: 100%; border-radius: 6pt; }
.pbar b { font: 800 var(--t-small) "Red Hat Display", sans-serif; }
.p-us { background: var(--good); }
.p-base { background: #a4a7ae; }
.pchart .sr { font-size: var(--t-small); color: var(--muted); text-align: right; }
.mhead h3 { font-size: var(--t-h4); }
.stage, .op, .srow, .perm3 { font-size: var(--t-body); }
.op .tile, .srow .rec, .srow .tile { font-size: var(--t-small); }
.srow .grp { display: inline-flex; align-items: center; gap: 0.08in; border: 2pt solid var(--gray); border-radius: 10pt; padding: 0.04in 0.1in; }
.srow .grp.bad { border-color: #f2b8b5; background: var(--bad-soft); }
.srow .grp em { font: normal 500 var(--t-small) "Red Hat Text", sans-serif; color: var(--muted); }
.srow .grp.bad em { color: var(--red); }
.srow .rec.mk { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.srow .rec.tr { background: var(--good); border-color: var(--good); color: #fff; }
p.srow.sd { margin-top: 0; font-size: var(--t-small); color: var(--muted); }
.mhead .idea { font-size: var(--t-body); }
