/* Round 4 content: Idea 1 panel (#p01b), navigation pages (#p08c-#p08f), P01 figure cards. Loaded after site.css. */

/* ---------- Idea 1: many everyday devices, one map ---------- */
#p01b { --ct: 150; --cb: 64; }
.i1-tile { margin: 0; }
.i1-tile :is(img, video) { display: block; width: 400px; height: 225px; object-fit: cover; border-radius: 6px; background: var(--panel); }
.i1-tile figcaption { display: flex; align-items: center; gap: 12px; margin-top: 10px; font: 600 28px/1.1 var(--f-text); color: var(--fg); white-space: nowrap; }
.i1-tile figcaption svg { flex: none; }
.i1-tile .i1-n { font: 500 28px/1 var(--f-mono); color: var(--muted-fg); }
.i1-sw { flex: none; width: 28px; height: 8px; border-radius: 4px; }
.i1-robot img { width: 400px; height: 229px; object-fit: cover; }
.i1-use { font: 500 24px/1 var(--f-mono); color: var(--accent-ink); border: 2px solid var(--accent); border-radius: 999px; padding: 4px 12px; background: var(--surface); }
.i1-map { width: 864px; height: 526px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); }
.i1-cap { font: 600 30px/1.2 var(--f-text); color: var(--fg); white-space: nowrap; }
.i1-cap b { color: var(--accent-ink); font: 600 30px/1 var(--f-mono); }
.i1-card { display: flex; align-items: center; gap: 14px; width: 552px; height: 128px; padding: 14px; border: 2px solid var(--border);
  border-radius: 12px; background: var(--surface); }
.i1-card > * { position: static; }
.i1-card img { width: 150px; height: 84px; object-fit: cover; border-radius: 4px; flex: none; }
.i1-card svg { flex: none; }
.i1-card b { font: 600 28px/1.15 var(--f-text); color: var(--fg); }
.i1-q { width: 1728px; font: 600 36px/1.25 var(--f-text); color: var(--accent-ink); }

/* ---------- navigation pages ---------- */
#p08d { --ct: 140; --cb: 400; }
.r4v { display: block; background: #000; object-fit: contain; border-radius: 6px; }
.r4-big { width: 856px; height: 516px; }
.r4-three { width: 560px; height: 315px; }
.r4-lbl { font: 600 26px/1.2 var(--f-text); color: var(--fg); white-space: nowrap; }
.r4-lbl span { font: 500 24px/1 var(--f-mono); color: var(--accent-ink); margin-left: 10px; }
.r4-ctl { display: flex; align-items: center; gap: 18px; height: 44px; }
.r4-ctl > * { position: static; }
.r4-key { font-size: 24px; line-height: 1.25; color: var(--text); white-space: nowrap; }
.r4-key b { font-weight: 600; color: var(--fg); }
.r4-key .c-red { color: #c62828; }
.r4-key .c-green { color: var(--accent-ink); }
.r4-key .c-blue { color: #1d4ed8; }
.r4-key .c-purple { color: #a21caf; }
/* round 12: synced third-person + RViz pairs (RViz ends y 800, key to ~y 952) and the three-row page (to y 948);
   section.panel# beats the section# rules in r4_talk.css / r5.css */
section.panel#p08c, section.panel#p08e { --ct: 140; --cb: 110; }
section.panel#p08f { --ct: 140; --cb: 120; }
:is(#p08c, #p08e, #p08f) .r4-ctl .p08-track { flex: 1 1 0; min-width: 120px; } /* bar narrower than the 560 px default */
html[data-mode="capture"] .r4-ctl :is(.p08-btn, .p08-track, .p08-time) { visibility: hidden; }

/* ---------- P01: a small figure card for every named work ---------- */
#p01 { --cb: 50; }
.p01-card { margin: 0; width: 190px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.p01-card > * { position: static; }
.p01-card img { display: block; width: 178px; height: 100px; object-fit: cover; border-radius: 4px; }
.p01-card figcaption { margin-top: 4px; font: 600 24px/1.15 var(--f-text); color: var(--fg); white-space: nowrap; }

@media (max-width: 720px) {
  .r4-ctl { gap: 10px; }
}

/* download button on each video */
.vdl { position: absolute; z-index: 6; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); color: #fff; opacity: .6; transition: opacity .15s; }
.vdl:hover, .vdl:focus-visible { opacity: 1; }
.vdl[hidden] { display: none; }

/* ---------- P04a: three layers over the same real nodes; step 1 one session, step 2 adds edges across sessions ---------- */
#p04a { --ct: 160; --cb: 40; }
#p04a.narrow { --cb: 350; } /* phone: labels move to the text below, so crop the stage under the drawings */
.p04a-col { width: 544px; }
.p04a-col > * { position: static; }
.p04a-h { display: flex; align-items: center; gap: 14px; height: 44px; font: 700 32px/1 var(--f-text); white-space: nowrap; }
.p04a-sw { flex: none; width: 36px; height: 8px; border-radius: 4px; background: currentColor; }
.p04a-h.c-covis .p04a-sw { background: var(--accent); }
.p04a-map { display: block; margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.p04a-col[data-layer="covis"] { --lc: var(--accent); }
.p04a-col[data-layer="odom"] { --lc: var(--odom); }
.p04a-col[data-layer="trav"] { --lc: var(--trav); }
.p04a-map .p04a-intra { stroke: var(--lc); stroke-width: 2; stroke-opacity: .4; fill: none; transition: stroke-opacity .4s; }
#p04a[data-step-now="1"] .p04a-intra { stroke-opacity: .65; }
.p04a-map .p04a-inter { stroke: var(--lc); stroke-width: 6; stroke-linecap: round; fill: none; }
.p04a-map .p04a-halo { stroke: var(--lc); stroke-width: 20; stroke-linecap: round; stroke-opacity: .22; fill: none; }
.p04a-map .p04a-n0 { fill: var(--gray-1); }
.p04a-map .p04a-n1 { fill: var(--surface); stroke: var(--gray-1); stroke-width: 2; }
.p04a-map g { transition: opacity .4s; }
#p04a[data-step-now="1"] .p04a-cross { opacity: 0; }
.p04a-cnt { font: 600 24px/1 var(--f-mono); color: var(--lc); white-space: nowrap; transition: opacity .4s; }
.p04a-col[data-layer="covis"] .p04a-cnt { color: var(--accent-ink); }
.p04a-col[data-layer="trav"] .p04a-cnt { color: var(--trav-ink); }
.p04a-h.c-trav .p04a-sw { background: var(--trav); }
#p04a[data-step-now="1"] .p04a-s1 { opacity: 0; }
.p04a-step { width: 700px; text-align: right; font: 600 26px/1.2 var(--f-text); color: var(--fg); white-space: nowrap; }
#p04a[data-step-now="1"] .p04a-step .s2, #p04a:not([data-step-now="1"]) .p04a-step .s1 { display: none; }
.p04a-rows { display: grid; grid-template-columns: 104px 1fr; grid-template-rows: 32px 32px 32px; row-gap: 14px; margin: 24px 0 0;
  font: 400 24px/1.3 var(--f-text); color: var(--text); }
.p04a-rows dt { font: 500 24px/1.3 var(--f-mono); color: var(--muted-fg); }
.p04a-rows dd { margin: 0; }
.p04a-leg { gap: 12px; }
.p04a-leg svg { flex: none; }
.p04a-leg svg:not(:first-child) { margin-left: 22px; }
.p04a-sum { width: 1728px; text-align: center; font: 600 30px/1.2 var(--f-text); color: var(--fg); white-space: nowrap; }
