/* Intel "no word wall" pattern kit (11/11). Mix these per post so no section is a block of text.
   Skeuomorphic objects (chalkboard slate, cork, paper) keep their own surfaces in every theme;
   accents, ink and lines come from the theme via the page vars below. */
:root{
  --ip-ink:var(--ink,var(--theme-ink,#e8f5ec));--ip-muted:var(--muted,var(--theme-muted,#9fb5a8));
  --ip-line:var(--line,var(--theme-border,#284235));--ip-panel:var(--panel,var(--theme-surface,#0d1a13));
  --ip-acc:var(--green,var(--theme-accent,#22c55e));--ip-acc2:var(--cyan,var(--theme-info,#22d3ee));
  --ip-red:var(--red,var(--theme-error,#ef4444));--ip-hand:'Caveat','Segoe Print','Bradley Hand',cursive;
}
.ip{margin:22px 0 26px}
.ip-lead{font-size:1.06rem;margin:0 0 14px}

/* 1. Chalkboard: the instructor draws the distinction */
.ip-chalk{position:relative;background:#1f2b26;background-image:radial-gradient(ellipse at 30% 20%,rgba(255,255,255,.06),transparent 60%),radial-gradient(ellipse at 80% 90%,rgba(255,255,255,.04),transparent 55%);
  border:12px solid #6b4a2b;border-image:linear-gradient(135deg,#7a5634,#4e3420 40%,#8a6440 70%,#5a3c24) 1;border-radius:4px;padding:24px 28px 30px;color:#eef3ee;box-shadow:inset 0 0 40px rgba(0,0,0,.45),0 8px 24px rgba(0,0,0,.35)}
.ip-chalk::after{content:"";position:absolute;left:12%;right:12%;bottom:-12px;height:7px;background:#4e3420;border-radius:0 0 3px 3px}
.ip-chalk h3,.ip-chalk .ip-chalk-title{font-family:var(--ip-hand)!important;font-size:2rem;font-weight:700;margin:0 0 12px;color:#fff;letter-spacing:.01em;line-height:1.1}
.ip-chalk .u{text-decoration:underline wavy rgba(255,240,170,.8) 2px;text-underline-offset:6px}
.ip-chalk .y{color:#ffe98a}.ip-chalk .p{color:#ffb3c7}.ip-chalk .b{color:#9fe3ff}
.ip-chalk-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px 26px}
.ip-chalk-col{border-top:2px dashed rgba(255,255,255,.35);padding-top:10px}
.ip-chalk-col > b{display:block;font-family:var(--ip-hand)!important;font-size:1.55rem;line-height:1.1;margin-bottom:4px}
.ip-chalk-col p{margin:0;color:#dfe7df;font-size:.98rem}
.ip-chalk-note{margin-top:16px;font-family:var(--ip-hand)!important;font-size:1.45rem;color:#ffe98a;line-height:1.2}
.ip-chalk-note::before{content:"→ "}

/* 2. Corkboard case file: pinned cards joined by red string (strings drawn by intel-patterns.js) */
.ip-cork{position:relative;padding:28px 22px;border-radius:6px;border:10px solid #5b3d24;
  background:#b98a57;background-image:radial-gradient(rgba(70,40,10,.35) 1px,transparent 1.6px),radial-gradient(rgba(255,230,190,.25) 1px,transparent 1.4px);background-size:7px 7px,11px 11px;background-position:0 0,3px 5px;
  box-shadow:inset 0 0 30px rgba(60,30,5,.5)}
.ip-cork-title{display:inline-block;background:#f4ecd8;color:#2a2116;font:800 .78rem var(--mono,monospace);letter-spacing:.14em;text-transform:uppercase;padding:6px 12px;margin:0 0 18px;transform:rotate(-1.5deg);box-shadow:0 3px 8px rgba(0,0,0,.3)}
.ip-cork-grid{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:26px 24px;z-index:1}
.ip-pin{position:relative;background:#fffdf5;color:#2a2116;padding:18px 16px 14px;box-shadow:0 6px 14px rgba(0,0,0,.35);font-size:.95rem;line-height:1.45}
.ip-pin:nth-child(3n+1){transform:rotate(-1.6deg)}.ip-pin:nth-child(3n+2){transform:rotate(1.2deg)}.ip-pin:nth-child(3n){transform:rotate(-.6deg)}
.ip-pin::before{content:"";position:absolute;top:-8px;left:50%;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#ff8a8a,#c41d1d 60%,#7a0d0d);box-shadow:0 2px 3px rgba(0,0,0,.45)}
.ip-pin > b{display:block;font:800 .72rem var(--mono,monospace);letter-spacing:.12em;text-transform:uppercase;color:#8a2a12;margin-bottom:6px}
.ip-pin p{margin:0}.ip-pin.photo{background:#e9eef2}.ip-pin.yellow{background:#fff3a6}
.ip-pin.key{outline:3px solid #c41d1d;outline-offset:3px}
.ip-strings{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.ip-strings line{stroke:#c41d1d;stroke-width:2.2;opacity:.85;filter:drop-shadow(0 1px 1px rgba(0,0,0,.4))}
.ip-cork-verdict{position:relative;z-index:1;margin-top:22px;background:#2a2116;color:#f4ecd8;padding:12px 16px;font-weight:600;border-left:5px solid #c41d1d}

/* 3. Versus split: two things people mix up */
.ip-vs{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:0}
.ip-vs-side{background:var(--ip-panel);border:1px solid var(--ip-line);border-radius:10px;padding:18px 20px}
.ip-vs-side h4{margin:0 0 4px;font-size:1.15rem}.ip-vs-side .tag{font:800 .7rem var(--mono,monospace);letter-spacing:.12em;text-transform:uppercase;color:var(--ip-acc)}
.ip-vs-side:last-child .tag{color:var(--ip-acc2)}
.ip-vs-side ul{margin:10px 0 0;padding-left:18px}.ip-vs-side li{margin:5px 0}
.ip-vs-mid{display:flex;align-items:center;justify-content:center;padding:0 12px}
.ip-vs-mid span{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--ip-acc);color:#04140a;font:900 1rem var(--sans,sans-serif)}
.ip-vs-foot{grid-column:1/-1;margin-top:12px;padding:12px 16px;border-radius:8px;border:1px dashed var(--ip-line);color:var(--ip-muted)}
.ip-vs-foot b{color:var(--ip-ink)}
@media(max-width:700px){.ip-vs{grid-template-columns:1fr}.ip-vs-mid{padding:10px 0}}

/* 4. Gauge bars: limits drawn to scale */
.ip-gauge{background:var(--ip-panel);border:1px solid var(--ip-line);border-radius:10px;padding:18px 20px}
.ip-gauge h4{margin:0 0 12px}
.ip-bar{display:grid;grid-template-columns:150px 1fr 90px;align-items:center;gap:12px;margin:10px 0}
.ip-bar-name{font-weight:700}.ip-bar-val{font:800 .9rem var(--mono,monospace);text-align:right}
.ip-bar-track{height:14px;border-radius:7px;background:rgba(127,127,127,.18);overflow:hidden}
.ip-bar-fill{height:100%;width:0;border-radius:7px;background:linear-gradient(90deg,var(--ip-acc),var(--ip-acc2));transition:width 1.1s ease}
.ip-gauge.on .ip-bar-fill{width:var(--w)}
.ip-bar.warn .ip-bar-fill{background:var(--ip-red)}
.ip-gauge-note{margin:12px 0 0;color:var(--ip-muted);font-size:.92rem}
@media(max-width:600px){.ip-bar{grid-template-columns:1fr 80px}.ip-bar-track{grid-column:1/-1;grid-row:2}}

/* 5. Clipboard checklist: the reader ticks the checks */
.ip-clip{position:relative;max-width:640px;background:#f7f3e8;color:#1f1a12;border-radius:8px;padding:38px 24px 20px;border:8px solid #8b6a44;box-shadow:0 8px 20px rgba(0,0,0,.35)}
.ip-clip::before{content:"";position:absolute;top:-16px;left:50%;width:110px;height:30px;margin-left:-55px;border-radius:6px;background:linear-gradient(#cfd4d8,#8b949b);box-shadow:0 2px 4px rgba(0,0,0,.4)}
.ip .ip-clip h4,.ip.ip-clip h4{margin:0 0 10px;color:#1f1a12;font-family:var(--ip-hand)!important;font-size:1.7rem}
.ip-clip label{display:flex;gap:12px;align-items:flex-start;padding:9px 0;border-bottom:1px solid rgba(31,26,18,.15);cursor:pointer;font-size:.98rem}
.ip-clip input{width:20px;height:20px;margin-top:2px;accent-color:#1f7a3a;flex:none}
.ip-clip label.done span{text-decoration:line-through;text-decoration-color:rgba(31,122,58,.8);color:#55503f}
.ip-clip-score{margin-top:12px;font:800 .8rem var(--mono,monospace);letter-spacing:.08em;color:#1f7a3a}

/* 6. Myth / fact flip notes */
.ip-flips{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.ip-flip{perspective:900px;min-height:170px;cursor:pointer;background:none;border:0;padding:0;font:inherit;text-align:left;color:inherit}
.ip-flip-in{position:relative;display:block;height:100%;min-height:170px;transition:transform .55s;transform-style:preserve-3d}
.ip-flip.on .ip-flip-in{transform:rotateY(180deg)}
.ip-flip-f,.ip-flip-b{position:absolute;inset:0;backface-visibility:hidden;padding:16px 16px 14px;box-shadow:0 6px 14px rgba(0,0,0,.3);display:flex;flex-direction:column}
.ip-flip-f{background:#fff1a1;color:#2a2410}.ip-flip-b{background:#c9f5d6;color:#0f2a18;transform:rotateY(180deg)}
.ip-flip small{font:800 .7rem var(--mono,monospace);letter-spacing:.12em;text-transform:uppercase;opacity:.75;margin-bottom:6px}
.ip-flip-f span{font-family:var(--ip-hand)!important;font-size:1.45rem;line-height:1.15}
.ip-flip-b span{font-size:.95rem;line-height:1.45}
.ip-flip-f em{margin-top:auto;font-style:normal;font-size:.78rem;opacity:.7}
.ip-flip:focus-visible{outline:2px solid var(--ip-acc);outline-offset:4px}
@media(prefers-reduced-motion:reduce){.ip-flip-in{transition:none}}

/* 7. Fork in the road: if this, then that */
.ip-fork{background:var(--ip-panel);border:1px solid var(--ip-line);border-radius:10px;padding:18px 20px}
.ip-fork-q{font-weight:800;font-size:1.08rem;margin:0 0 12px}
.ip-fork-opts{display:flex;flex-wrap:wrap;gap:10px}
.ip-fork-opts button{font:inherit;font-weight:700;color:var(--ip-ink);background:transparent;border:2px solid var(--ip-line);border-radius:999px;padding:9px 18px;cursor:pointer}
.ip-fork-opts button[aria-pressed=true]{border-color:var(--ip-acc);background:color-mix(in srgb,var(--ip-acc) 16%,transparent)}
.ip-fork-out{margin-top:14px;padding:14px 16px;border-left:4px solid var(--ip-acc);background:rgba(127,127,127,.08);border-radius:0 8px 8px 0}
.ip-fork-out[hidden]{display:none}

/* 8. Tech's margin note */
.ip-margin{position:relative;margin:18px 0 22px 0;padding:10px 18px 10px 56px;font-family:var(--ip-hand)!important;font-size:1.5rem;line-height:1.25;color:var(--ip-acc2);transform:rotate(-.6deg)}
.ip-margin::before{content:"✎";position:absolute;left:14px;top:6px;font-size:1.7rem}
.ip-margin b{font-weight:700;color:var(--ip-acc)}

/* 9. Stamped case folder */
.ip-folder{position:relative;background:#e9d9b3;color:#2a2116;border-radius:0 10px 10px 10px;padding:22px 24px 20px;margin-top:40px;box-shadow:0 8px 18px rgba(0,0,0,.3)}
.ip-folder::before{content:attr(data-tab);position:absolute;top:-30px;left:0;background:#e9d9b3;padding:7px 18px 4px;border-radius:10px 10px 0 0;font:800 .74rem var(--mono,monospace);letter-spacing:.14em;text-transform:uppercase}
.ip-folder h4{margin:0 0 10px;color:#2a2116}
.ip-folder dl{display:grid;grid-template-columns:max-content 1fr;gap:8px 16px;margin:0}
.ip-folder dt{font:800 .76rem var(--mono,monospace);letter-spacing:.1em;text-transform:uppercase;color:#7a4b12;padding-top:3px}
.ip-folder dd{margin:0}
.ip-stamp{position:absolute;right:18px;top:14px;border:3px solid #b3261e;color:#b3261e;font:900 .95rem var(--mono,monospace);letter-spacing:.16em;padding:4px 10px;transform:rotate(8deg);opacity:.85;text-transform:uppercase}
.ip-stamp.ok{border-color:#1f7a3a;color:#1f7a3a}
@media(max-width:600px){.ip-folder dl{grid-template-columns:1fr}.ip-stamp{position:static;display:inline-block;margin-bottom:10px}}

/* 10. Spec strip: a few big numbers */
.ip-stats{margin:16px 0 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.ip-stat{background:var(--ip-panel);border:1px solid var(--ip-line);border-top:4px solid var(--ip-acc);border-radius:10px;padding:14px 16px}
.ip-stat > b{display:block;font:900 1.7rem var(--sans,sans-serif);line-height:1.1;color:var(--ip-ink)}
.ip-stat span{color:var(--ip-muted);font-size:.9rem}

/* Patterns placed on a chalkboard pick up chalk styling */
.ip-chalk .ip-vs-side,.ip-chalk .ip-stat{background:transparent;border:2px dashed rgba(255,255,255,.32);color:#eef3ee}
.ip-chalk .ip-vs-side h4,.ip-chalk .ip-stat > b{font-family:var(--ip-hand)!important;font-size:1.7rem;color:#fff}
.ip-chalk .ip-vs-side .tag{color:#ffe98a}.ip-chalk .ip-vs-side:last-child .tag{color:#9fe3ff}
.ip-chalk .ip-vs-mid span{background:transparent;border:2px solid #ffe98a;color:#ffe98a;font-family:var(--ip-hand);font-size:1.5rem}
.ip-chalk .ip-vs-foot{border-color:rgba(255,255,255,.3);color:#dfe7df}.ip-chalk .ip-vs-foot b{color:#ffe98a}
.ip-chalk .ip-stat{border-top:2px dashed rgba(255,255,255,.32)}.ip-chalk .ip-stat span{color:#dfe7df}
.ip-chalk p{color:#e4ebe4}.ip-chalk mark{background:transparent;color:#ffe98a;border-bottom:2px solid rgba(255,233,138,.6)}
.ip-chalk .ip-flips{margin-top:14px}
.ip-chalk code{font-family:var(--mono,monospace);background:rgba(255,255,255,.1);color:#fff;padding:1px 6px;border-radius:4px}
/* page article styles set p fonts with !important; win them back for handwritten bits */
html body article .ip p.ip-chalk-note,html body article p.ip-margin,html body .ip p.ip-margin,article .ip-chalk p.ip-chalk-note,article p.ip-margin,article .ip-flip-f span,article .ip-chalk-col > b,article .ip-chalk .ip-chalk-title{font-family:var(--ip-hand)!important}

/* ===== Article themes (one per post, rotate through the week) ===== */
/* Blueprint: schematic sheet with grid, white line work, title block */
.ip-blue{position:relative;background:#0f3a6b;background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:60px 60px,60px 60px,12px 12px,12px 12px;border:2px solid #cfe3ff;outline:6px solid #0f3a6b;color:#e8f2ff;padding:26px 26px 22px;border-radius:2px}
.ip-blue-title{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:2px solid #cfe3ff;padding-bottom:8px;margin-bottom:16px;font:800 .8rem var(--mono,monospace);letter-spacing:.16em;text-transform:uppercase;color:#cfe3ff}
.ip-blue-title b{font:800 1.25rem var(--sans,sans-serif);letter-spacing:.02em;text-transform:none;color:#fff}
.ip-blue-parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.ip-part{border:1.5px solid #cfe3ff;padding:12px 14px;position:relative}
.ip-part::before{content:attr(data-n);position:absolute;top:-12px;left:10px;background:#0f3a6b;border:1.5px solid #cfe3ff;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;font:800 .75rem var(--mono,monospace)}
.ip-part > b{display:block;font-size:1.05rem;color:#fff;margin:4px 0}.ip-part p{margin:0;color:#d4e6ff;font-size:.95rem}
.ip-part small{font:700 .7rem var(--mono,monospace);letter-spacing:.1em;text-transform:uppercase;color:#9cc7ff}
.ip-blue-flow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font:700 .9rem var(--mono,monospace);margin:6px 0 14px}
.ip-blue-flow span{border:1.5px solid #cfe3ff;padding:6px 10px;background:rgba(15,58,107,.9)}
.ip-blue-flow i{font-style:normal;color:#9cc7ff}
.ip-blue-note{margin:14px 0 0;padding:8px 12px;border:1.5px dashed #9cc7ff;color:#e8f2ff;font-size:.95rem}
.ip-blue-note::before{content:"NOTE: ";font:800 .75rem var(--mono,monospace);letter-spacing:.12em;color:#9cc7ff}

/* Whiteboard: marker board with colored marker text + sticky notes */
.ip-white{position:relative;background:#fbfcfd;color:#1c2430;border:10px solid #c9ced6;border-radius:6px;padding:22px 24px 26px;box-shadow:0 8px 20px rgba(0,0,0,.3),inset 0 0 30px rgba(120,140,160,.12)}
.ip-white::after{content:"";position:absolute;left:8%;right:8%;bottom:-18px;height:8px;background:#aab2bd;border-radius:0 0 4px 4px}
.ip-white-title{font-family:var(--ip-hand)!important;font-size:2.1rem;font-weight:700;color:#1d4ed8;margin:0 0 10px;line-height:1.1}
.ip-white .mk-r{color:#c81e1e}.ip-white .mk-g{color:#15803d}.ip-white .mk-b{color:#1d4ed8}.ip-white .mk-k{color:#111}
.ip-white p,.ip-white li{color:#1c2430}
.ip-white .ip-circle{display:inline-block;border:2.5px solid #c81e1e;border-radius:50% 45% 55% 48%;padding:0 8px}
.ip-stickies{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-top:12px}
.ip-sticky{padding:14px 14px 12px;box-shadow:0 5px 10px rgba(0,0,0,.25);color:#1f1a10;font-size:.95rem;line-height:1.4}
.ip-sticky:nth-child(4n+1){background:#fff3a6;transform:rotate(-1.4deg)}.ip-sticky:nth-child(4n+2){background:#ffd1dc;transform:rotate(1deg)}
.ip-sticky:nth-child(4n+3){background:#c9f0ff;transform:rotate(-.5deg)}.ip-sticky:nth-child(4n){background:#d6f5c9;transform:rotate(1.5deg)}
.ip-sticky > b{display:block;font-family:var(--ip-hand)!important;font-size:1.4rem;line-height:1.1;margin-bottom:4px}
article .ip-sticky > b,article .ip-white .ip-white-title{font-family:var(--ip-hand)!important}

/* Terminal: hacker console with prompt lines */
.ip-term{background:#05070a;border:1px solid #1e2a22;border-radius:10px;overflow:hidden;box-shadow:0 10px 26px rgba(0,0,0,.45);color:#b6f5c8;font:500 .92rem/1.6 var(--mono,'JetBrains Mono',monospace)}
.ip-term-bar{display:flex;align-items:center;gap:7px;padding:9px 12px;background:#10161b;border-bottom:1px solid #1e2a22;color:#7d8b85;font-size:.78rem}
.ip-term-bar i{width:11px;height:11px;border-radius:50%;background:#ff5f56}.ip-term-bar i:nth-child(2){background:#ffbd2e}.ip-term-bar i:nth-child(3){background:#27c93f}
.ip-term-bar span{margin-left:8px}
.ip-term-body{padding:16px 18px}
.ip-term-body p{margin:0 0 8px;color:#b6f5c8;font-family:inherit!important}
.ip-term .cmd::before{content:"$ ";color:#39ff88}.ip-term .cmd{color:#fff}
.ip-term .out{color:#8fd6a6}.ip-term .warn{color:#ffd166}.ip-term .bad{color:#ff6b6b}.ip-term .cm{color:#6b7f75}
.ip-term .cm::before{content:"# "}
.ip-term .ip-cursor::after{content:"▌";animation:ipblink 1s steps(1) infinite;color:#39ff88}
@keyframes ipblink{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.ip-term .ip-cursor::after{animation:none}}

/* Triage board: hospital status board with color-coded rows */
.ip-triage{background:#0b1220;border:1px solid #23304a;border-radius:10px;overflow:hidden;color:#e6edf7}
.ip-triage-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 16px;background:#13203a;font:800 .78rem var(--mono,monospace);letter-spacing:.14em;text-transform:uppercase;color:#9fb3d6}
.ip-triage-head b{color:#fff}
.ip-triage-row{display:grid;grid-template-columns:110px 1fr;gap:14px;padding:12px 16px;border-top:1px solid #1c2840;align-items:start}
.ip-triage-row .lv{font:800 .72rem var(--mono,monospace);letter-spacing:.1em;text-transform:uppercase;padding:5px 8px;border-radius:4px;text-align:center;color:#0b1220}
.ip-triage-row.red .lv{background:#ef4444}.ip-triage-row.amber .lv{background:#f59e0b}.ip-triage-row.green .lv{background:#22c55e}.ip-triage-row.blue .lv{background:#60a5fa}
.ip-triage-row div > b{display:block;color:#fff;margin-bottom:2px}.ip-triage-row p{margin:0;color:#c3cfe2;font-size:.95rem}
@media(max-width:600px){.ip-triage-row{grid-template-columns:1fr}}
/* paper objects keep their own dark ink even when the page sets p colors */
html body article .ip-pin p,html body article .ip-folder p,html body article .ip-sticky p,html body article .ip-clip p,html body article .ip-flip p,html body article .ip-white p,html body article .ip-white li{color:inherit}
html body article .ip-clip strong,html body article .ip-clip b,html body article .ip-folder strong,html body article .ip-pin strong,html body article .ip-sticky strong{color:inherit}
.ip-vs,.ip-flips,.ip-fork{margin:16px 0 20px}

/* ===== Richer boxes (11/11 pm): icons, fact strips, working diagrams ===== */
.ip-ico{display:inline-grid;place-items:center;width:46px;height:46px;flex:none;color:currentColor}
.ip-ico svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ip-part .ip-ico,.ip-pin .ip-ico,.ip-sticky .ip-ico,.ip-stat .ip-ico,.ip-chalk-col .ip-ico,.ip-vs-side .ip-ico{float:right;margin:0 0 6px 10px}
.ip-blue .ip-ico{color:#cfe3ff}.ip-chalk .ip-ico{color:#fff}.ip-pin .ip-ico{color:#8a2a12}.ip-term .ip-ico{color:#39ff88}.ip-vs-side .ip-ico,.ip-stat .ip-ico{color:var(--ip-acc)}
.ip-facts{display:grid;gap:4px;margin:10px 0 0;padding-top:8px;border-top:1px dashed currentColor;font-size:.86rem;clear:both}
.ip-facts>div{display:block;line-height:1.4}
.ip-facts dt{display:inline;font:800 .64rem var(--mono,monospace);letter-spacing:.1em;text-transform:uppercase;opacity:.75;margin-right:6px}
.ip-facts dd{display:inline;margin:0}
.ip-blue .ip-facts{border-top-color:rgba(207,227,255,.5);color:#d4e6ff}
.ip-chalk .ip-facts{border-top-color:rgba(255,255,255,.35);color:#dfe7df}
.ip-pin .ip-facts,.ip-sticky .ip-facts{border-top-color:rgba(42,33,22,.35);color:#2a2116}
/* working path: [data-flow] container of [data-say] steps; JS adds Play + caption */
.ip-flow{position:relative}
.ip-flow [data-say]{cursor:pointer;transition:background .25s,color .25s,box-shadow .25s}
.ip-flow [data-say].hot{background:var(--ip-acc)!important;color:#04140a!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--ip-acc) 35%,transparent)}
.ip-blue .ip-flow [data-say].hot{background:#ffe98a!important;color:#0f2a4b!important;border-color:#ffe98a!important}
.ip-flow-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0 0}
.ip-flow-ctl button{font:800 .78rem var(--mono,monospace);letter-spacing:.08em;text-transform:uppercase;color:inherit;background:transparent;border:1.5px solid currentColor;border-radius:6px;padding:7px 12px;cursor:pointer}
.ip-flow-say{flex:1 1 280px;min-height:2.6em;padding:8px 12px;border-left:3px solid currentColor;font-size:.95rem}
.ip-flow-say:empty::before{content:"Press Play, or click any stop on the path.";opacity:.7}
.ip-flow-dot{position:absolute;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#ffe98a;box-shadow:0 0 12px #ffe98a;pointer-events:none;transition:left .55s ease,top .55s ease;z-index:3}
/* inline SVG diagrams */
.ip-svg{margin:14px 0}.ip-svg svg{display:block;width:100%;height:auto;max-height:440px}
.ip-svg .n{fill:none;stroke:currentColor;stroke-width:1.6}.ip-svg .t{fill:currentColor;font:600 13px var(--sans,sans-serif)}
.ip-svg .s{fill:currentColor;opacity:.75;font:700 10.5px var(--mono,monospace);letter-spacing:.08em}
.ip-svg .w{stroke:currentColor;stroke-width:1.6;fill:none}.ip-svg .w.d{stroke-dasharray:5 5}
.ip-svg .pk{fill:#ffe98a}.ip-svg .bad{stroke:var(--ip-red);fill:none}.ip-svg .ok{stroke:var(--ip-acc)}
.ip-svg-cap{font-size:.88rem;opacity:.85;margin-top:6px}
@media(prefers-reduced-motion:reduce){.ip-flow-dot{transition:none}.ip-svg animateMotion{display:none}}
/* chalk-drawn diagrams: same SVG classes, sketched look */
.ip-chalk .ip-svg{color:#f1f5f1}
.ip-chalk .ip-svg .t{font:700 19px var(--ip-hand)}
.ip-chalk .ip-svg .s{font:700 15px var(--ip-hand);letter-spacing:0;fill:#ffe98a;opacity:1}
.ip-chalk .ip-svg .n,.ip-chalk .ip-svg .w{stroke-width:2.2;filter:url(#ip-chalky)}
.ip-chalk .ip-svg .y{stroke:#ffe98a;fill:none}.ip-chalk .ip-svg .pk{fill:#ffe98a}
.ip-blue .ip-svg{color:#cfe3ff}.ip-cork .ip-svg{color:#2a2116}.ip-term .ip-svg{color:#39ff88}
/* whiteboard marker diagrams + flows; wide diagrams swipe on phones (11/11 pm) */
.ip-white .ip-svg{color:#1c2430}
.ip-white .ip-svg .t{font:700 18px var(--ip-hand)}.ip-white .ip-svg .s{font:700 14px var(--ip-hand);letter-spacing:0;fill:#1d4ed8;opacity:1}
.ip-white .ip-svg .pk,.ip-cork .ip-svg .pk{fill:#c81e1e}
.ip-white .ip-flow-dot,.ip-cork .ip-flow-dot,.ip-clip .ip-flow-dot,.ip-folder .ip-flow-dot{background:#c81e1e;box-shadow:0 0 10px rgba(200,30,30,.6)}
.ip-white [data-flow] [data-say]{display:inline-block;border:2px solid #1d4ed8;border-radius:6px;padding:5px 10px;color:#1d4ed8;font:700 1.15rem var(--ip-hand)}
.ip-white [data-flow] [data-say].hot{background:#1d4ed8!important;color:#fff!important}
.ip-white .ip-flow-ctl{color:#1c2430}
@media(max-width:640px){.ip-svg{overflow-x:auto;-webkit-overflow-scrolling:touch}.ip-svg svg{min-width:620px}.ip-svg-cap::before{content:"Swipe the diagram sideways. "}}
.ip-clip .ip-ico,.ip-triage-row .ip-ico{float:right;width:34px;height:34px;margin:0 0 4px 10px;color:#5a4a2e}
.ip-triage-row .ip-ico{color:#9fb3d6}
.ip-term [data-flow]{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ip-term [data-flow] [data-say]{border:1px solid #2e5d3e;border-radius:4px;padding:4px 10px;color:#b6f5c8;font:600 .9rem var(--mono,monospace)}
.ip-term [data-flow] [data-say].hot{background:#39ff88!important;color:#05070a!important}
.ip-term .ip-flow-ctl{color:#b6f5c8;padding:0 18px 16px}
.ip-stats:has(.ip-facts){grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
/* from SP-1.2-p2 rich pass */
html body .ip-pin.photo{aspect-ratio:auto;overflow:visible;border:0;border-radius:0;max-width:none}
.ip-pin.ip-wide{grid-column:1/-1}
.ip-folder h4 .ip-ico{float:none;width:30px;height:30px;vertical-align:-8px;margin:0 8px 0 0}
.ip-stat .ip-ico{float:none;display:grid;width:32px;height:32px;margin:0 0 6px}
.ip-svg .ah{fill:currentColor;stroke:none}
.ip-folder .ip-svg .pk,.ip-pin .ip-svg .pk{fill:#c81e1e}
.ip-cork [data-flow],.ip-folder [data-flow]{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ip-cork [data-flow] [data-say],.ip-folder [data-flow] [data-say]{background:#fffdf5;color:#2a2116;border:1px solid rgba(42,33,22,.35);padding:5px 10px;font:700 .85rem var(--mono,monospace);box-shadow:0 2px 4px rgba(0,0,0,.25)}
.ip-cork [data-flow] [data-say].hot,.ip-folder [data-flow] [data-say].hot{background:#c81e1e!important;color:#fff!important}
/* Decision player: several requests run through the policy, each signal checked in turn */
.ip-decide{display:grid;gap:14px}
.ip-decide-cases{display:flex;flex-wrap:wrap;gap:8px}
.ip-decide-cases button{font:700 .8rem var(--mono,monospace);letter-spacing:.04em;color:inherit;background:transparent;border:1.5px solid currentColor;border-radius:999px;padding:6px 12px;cursor:pointer;opacity:.7}
.ip-decide-cases button[aria-pressed=true]{opacity:1;background:currentColor}
.ip-decide-cases button[aria-pressed=true] span{color:#fffdf5;filter:invert(0)}
.ip-decide-who{font-weight:700}
.ip-decide-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,.9fr);gap:14px;align-items:stretch}
.ip-decide-sigs{display:grid;gap:6px}
.ip-sig{display:grid;grid-template-columns:22px 1fr;gap:8px;align-items:start;padding:7px 10px;border:1px solid rgba(42,33,22,.3);background:rgba(255,255,255,.55);transition:background .3s,border-color .3s,opacity .3s;opacity:.55}
.ip-sig div > b{display:block;font:800 .68rem var(--mono,monospace);letter-spacing:.1em;text-transform:uppercase;opacity:.8}
.ip-sig span{font-size:.9rem}
.ip-sig i{font-style:normal;font-weight:900;text-align:center;line-height:1.4}
.ip-sig.on{opacity:1;border-color:#2a2116;background:#fff7c2}
.ip-sig.pass{opacity:1}.ip-sig.pass i{color:#1f7a3a}.ip-sig.fail{opacity:1;background:#ffe1dc;border-color:#c81e1e}.ip-sig.fail i{color:#c81e1e}
.ip-sig.warn{opacity:1;background:#fff0c9;border-color:#b7791f}.ip-sig.warn i{color:#b7791f}
.ip-decide-engine{border:2px solid #2a2116;padding:12px 14px;display:flex;flex-direction:column;gap:8px;background:rgba(255,255,255,.7)}
.ip-decide-engine small{font:800 .68rem var(--mono,monospace);letter-spacing:.12em;text-transform:uppercase;opacity:.75}
.ip-decide-engine .now{font-weight:700;min-height:2.8em}
.ip-decide-engine .rule{font:600 .85rem var(--mono,monospace);padding:8px;border:1px dashed rgba(42,33,22,.4);min-height:3.6em}
.ip-decide-outs{display:grid;gap:8px;align-content:start}
.ip-out{border:2px solid rgba(42,33,22,.35);padding:10px 12px;opacity:.45;transition:all .35s}
.ip-out > b{display:block;font-size:1rem}.ip-out span{font-size:.85rem}
.ip-out.lit{opacity:1;transform:scale(1.02)}
.ip-out.allow.lit{border-color:#1f7a3a;background:#dff5e5}.ip-out.deny.lit{border-color:#c81e1e;background:#ffe1dc}.ip-out.step.lit{border-color:#b7791f;background:#fff0c9}.ip-out.end.lit{border-color:#7a1d6b;background:#f6e1f2}
.ip-decide-why{padding:10px 14px;border-left:4px solid #2a2116;background:rgba(255,255,255,.6);font-size:.95rem;min-height:2.6em}
.ip-decide-ctl{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ip-decide-ctl button{font:800 .78rem var(--mono,monospace);text-transform:uppercase;letter-spacing:.08em;color:inherit;background:transparent;border:1.5px solid currentColor;border-radius:6px;padding:7px 12px;cursor:pointer}
@media(max-width:760px){.ip-decide-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.ip-sig,.ip-out{transition:none}}
.ip-decide-cases button[aria-pressed=true]{opacity:1;background:#2a2116;color:#fffdf5;border-color:#2a2116}
/* Brett 11/11: every box icon sits centered on its own top row (symmetry; long titles never get pushed down) */
html body .ip-part .ip-ico,html body .ip-pin .ip-ico,html body .ip-sticky .ip-ico,html body .ip-stat .ip-ico,html body .ip-chalk-col .ip-ico,html body .ip-vs-side .ip-ico,
html body .ip-clip .ip-ico,html body .ip-triage-row .ip-ico,html body .ip-folder > .ip-ico,html body .ip-term .ip-ico{float:none;display:grid;width:40px;height:40px;margin:0 auto 10px}
html body .ip-triage-row div > .ip-ico{margin:0 auto 8px}
html body .ip-folder h4 .ip-ico{display:inline-grid;margin:0 8px 0 0}

/* decision player + working path on chalkboards (from C2-1.3) */
.ip-chalk .ip-sig{background:transparent;border:2px dashed rgba(255,255,255,.3);color:#eef3ee}
.ip-chalk .ip-sig.on{background:rgba(255,233,138,.12);border-color:#ffe98a}
.ip-chalk .ip-sig.pass{border-style:solid;border-color:#7ee2a0}
.ip-chalk .ip-sig.pass i{color:#7ee2a0}
.ip-chalk .ip-sig.fail{background:rgba(255,120,120,.14);border-color:#ff8a8a}
.ip-chalk .ip-sig.fail i{color:#ff8a8a}
.ip-chalk .ip-sig.warn{background:rgba(255,233,138,.14);border-color:#ffe98a}
.ip-chalk .ip-sig.warn i{color:#ffe98a}
.ip-chalk .ip-decide-engine{background:transparent;border:2px solid rgba(255,255,255,.55);color:#eef3ee}
.ip-chalk .ip-decide-engine .rule{border-color:rgba(255,255,255,.35);color:#ffe98a}
.ip-chalk .ip-out{border:2px dashed rgba(255,255,255,.35);color:#eef3ee}
.ip-chalk .ip-out.allow.lit{border:2px solid #7ee2a0;background:rgba(126,226,160,.16)}
.ip-chalk .ip-out.deny.lit{border:2px solid #ff8a8a;background:rgba(255,120,120,.16)}
.ip-chalk .ip-out.step.lit{border:2px solid #ffe98a;background:rgba(255,233,138,.16)}
.ip-chalk .ip-out.end.lit{border:2px solid #c9b2ff;background:rgba(201,178,255,.16)}
.ip-chalk .ip-decide-why{background:rgba(255,255,255,.06);border-left-color:#ffe98a;color:#eef3ee}
.ip-chalk .ip-decide-who{color:#ffe98a;font-family:var(--ip-hand)!important;font-size:1.4rem}
.ip-chalk .ip-decide-cases button{color:#eef3ee}
.ip-chalk .ip-decide-cases button[aria-pressed=true]{background:#ffe98a;color:#1f2b26;border-color:#ffe98a}
.ip-chalk .ip-decide-ctl button{color:#eef3ee}
.ip-chalk [data-flow]{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ip-chalk [data-flow] [data-say]{border:2px dashed rgba(255,255,255,.42);border-radius:6px;padding:6px 12px;font:700 1.4rem/1.15 var(--ip-hand);color:#fff}
.ip-chalk [data-flow] [data-say].hot{background:#ffe98a!important;color:#1f2b26!important;border-style:solid}
.ip-chalk .ip-flow-ctl{color:#eef3ee}
/* Two Truths and a Lie console (js/intel-truths.js) */
.ip-tt{margin:18px 0 26px}
.ip-term.tt .ip-term-bar{gap:7px}.ip-term.tt .tt-score{margin-left:auto;font:800 .78rem var(--mono,monospace);letter-spacing:.1em;color:#39ff88}
.tt-track{display:flex;gap:6px;padding:10px 18px 0}
.tt-track span{flex:1;height:6px;border-radius:3px;background:#1b2a22}
.tt-track span.now{background:#39ff88;box-shadow:0 0 10px #39ff88}.tt-track span.ok{background:#1f9d55}.tt-track span.no{background:#ff6b6b}
.tt-body{padding:16px 18px 20px}
.ip-term .tt-body p.cmd{font-size:1.05rem;color:#fff;margin:0 0 6px}
.tt-hint{opacity:.8}
.tt-cards{display:grid;gap:10px;margin:14px 0}
.tt-card{position:relative;display:grid;grid-template-columns:44px 1fr auto;gap:4px 12px;align-items:center;text-align:left;width:100%;padding:14px 16px;background:#0a1410;border:1px solid #1e3a2a;border-radius:8px;color:#d9ffe6;font:600 1rem var(--sans,sans-serif);cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.tt-card:hover:not(:disabled){border-color:#39ff88;background:#0e1d16;transform:translateX(3px)}
.tt-card:focus-visible{outline:2px solid #39ff88;outline-offset:3px}
.tt-key{font:800 .85rem var(--mono,monospace);color:#39ff88}
.tt-stamp{font:900 .78rem var(--mono,monospace);letter-spacing:.16em;padding:3px 8px;border-radius:4px;opacity:0}
.tt-note{grid-column:2/-1;font:500 .9rem var(--sans,sans-serif);color:#9fd9b4;display:none}
.tt-card:disabled{cursor:default}
.tt-card.is-true{border-color:#1f9d55}.tt-card.is-true .tt-stamp{opacity:1;color:#05070a;background:#39ff88}
.tt-card.is-lie{border-color:#ff6b6b;background:#1a0c0c;animation:ttglitch .45s steps(2) 1}.tt-card.is-lie .tt-stamp{opacity:1;color:#fff;background:#d63a3a}
.tt-card.is-lie .tt-text{text-decoration:line-through;text-decoration-color:rgba(255,107,107,.7)}
.tt-card.is-true .tt-note,.tt-card.is-lie .tt-note{display:block}
.tt-card.picked{box-shadow:0 0 0 2px #fff inset}
.tt-card.picked::after{content:"YOUR PICK";position:absolute;top:-9px;left:14px;font:800 .62rem var(--mono,monospace);letter-spacing:.12em;background:#05070a;color:#fff;padding:1px 6px;border:1px solid #fff;border-radius:3px}
@keyframes ttglitch{0%{transform:translateX(-3px)}50%{transform:translateX(3px)}100%{transform:none}}
.tt-why{border-left:3px solid #39ff88;padding:4px 0 4px 14px;margin:6px 0 12px}
.tt-nav button{font:800 .85rem var(--mono,monospace);letter-spacing:.08em;color:#05070a;background:#39ff88;border:0;border-radius:6px;padding:10px 16px;cursor:pointer}
.tt-big{font:900 2rem var(--mono,monospace)!important;color:#39ff88!important;margin:6px 0!important}
.tt-list{margin:12px 0}
@media(max-width:600px){.tt-card{grid-template-columns:34px 1fr}.tt-stamp{grid-column:2;justify-self:start}}
@media(prefers-reduced-motion:reduce){.tt-card{transition:none}.tt-card.is-lie{animation:none}}
.ip-term.tt .tt-score{white-space:nowrap}@media(max-width:600px){.ip-term.tt .ip-term-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.ip-term.tt .tt-score{font-size:.66rem}}
.ip-term .tt-body p.tt-q{font:600 1.05rem var(--sans,sans-serif)!important;color:#fff;margin:0 0 6px}
/* Locked breakdown: blurred until the game is finished (like SUN-01 Halloween) */
.ip-spoiler{position:relative}
.ip-spoiler.locked>.ip-spoiler-body{filter:blur(9px);user-select:none;pointer-events:none;max-height:620px;overflow:hidden}
.ip-spoiler-veil{position:absolute;inset:0;display:none;place-content:center;justify-items:center;text-align:center;gap:10px;z-index:4;padding:20px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--bg,#05070a) 55%,transparent),color-mix(in srgb,var(--bg,#05070a) 85%,transparent) 45%)}
.ip-spoiler.locked .ip-spoiler-veil{display:grid}
.ip-spoiler-veil b{font:900 1.4rem var(--sans,sans-serif);color:var(--ink,#fff)}
.ip-spoiler-veil p{margin:0;color:var(--muted,#9fb5a8);max-width:46ch}
.ip-spoiler-veil .tt-lock{font:800 .72rem var(--mono,monospace);letter-spacing:.16em;color:#39ff88}
.ip-spoiler-veil button{font:800 .85rem var(--mono,monospace);letter-spacing:.06em;color:var(--ink,#fff);background:transparent;border:1.5px solid currentColor;border-radius:6px;padding:9px 16px;cursor:pointer}
.ip-spoiler.unlocking>.ip-spoiler-body{animation:ipunblur .9s ease}
@keyframes ipunblur{from{filter:blur(9px)}to{filter:none}}
@media(prefers-reduced-motion:reduce){.ip-spoiler.unlocking>.ip-spoiler-body{animation:none}}
.tt-nav{display:flex;gap:10px;flex-wrap:wrap}.tt-nav .tt-again{background:transparent;color:#39ff88;border:1.5px solid #39ff88}

/* Brett 11/11: balanced grids, no orphan boxes. Columns come from the box count. */
html body .ip-stats,html body .ip-chalk-cols,html body .ip-blue-parts,html body .ip-cork-grid,html body .ip-stickies,html body .ip-flips{display:flex!important;flex-wrap:wrap;justify-content:center;--ipg:16px;gap:var(--ipg)!important}
html body .ip-cork-grid{--ipg:24px}
html body .ip-stats>*,html body .ip-chalk-cols>*,html body .ip-blue-parts>*,html body .ip-cork-grid>*,html body .ip-stickies>*,html body .ip-flips>*{flex:0 1 calc((100% - 2*var(--ipg))/3);max-width:calc((100% - 2*var(--ipg))/3);min-width:0}
html body .ip-stats:has(>:nth-child(1):last-child)>*,html body .ip-chalk-cols:has(>:nth-child(1):last-child)>*,html body .ip-blue-parts:has(>:nth-child(1):last-child)>*,html body .ip-cork-grid:has(>:nth-child(1):last-child)>*,html body .ip-stickies:has(>:nth-child(1):last-child)>*,html body .ip-flips:has(>:nth-child(1):last-child)>*{flex:0 1 calc((100% - 0*var(--ipg))/1);max-width:calc((100% - 0*var(--ipg))/1)}
html body .ip-stats:has(>:nth-child(2):last-child)>*,html body .ip-chalk-cols:has(>:nth-child(2):last-child)>*,html body .ip-blue-parts:has(>:nth-child(2):last-child)>*,html body .ip-cork-grid:has(>:nth-child(2):last-child)>*,html body .ip-stickies:has(>:nth-child(2):last-child)>*,html body .ip-flips:has(>:nth-child(2):last-child)>*{flex:0 1 calc((100% - 1*var(--ipg))/2);max-width:calc((100% - 1*var(--ipg))/2)}
html body .ip-stats:has(>:nth-child(3):last-child)>*,html body .ip-chalk-cols:has(>:nth-child(3):last-child)>*,html body .ip-blue-parts:has(>:nth-child(3):last-child)>*,html body .ip-cork-grid:has(>:nth-child(3):last-child)>*,html body .ip-stickies:has(>:nth-child(3):last-child)>*,html body .ip-flips:has(>:nth-child(3):last-child)>*{flex:0 1 calc((100% - 2*var(--ipg))/3);max-width:calc((100% - 2*var(--ipg))/3)}
html body .ip-stats:has(>:nth-child(4):last-child)>*,html body .ip-chalk-cols:has(>:nth-child(4):last-child)>*,html body .ip-blue-parts:has(>:nth-child(4):last-child)>*,html body .ip-cork-grid:has(>:nth-child(4):last-child)>*,html body .ip-stickies:has(>:nth-child(4):last-child)>*,html body .ip-flips:has(>:nth-child(4):last-child)>*{flex:0 1 calc((100% - 1*var(--ipg))/2);max-width:calc((100% - 1*var(--ipg))/2)}
html body .ip-stats:has(>:nth-child(5):last-child)>*,html body .ip-chalk-cols:has(>:nth-child(5):last-child)>*,html body .ip-blue-parts:has(>:nth-child(5):last-child)>*,html body .ip-cork-grid:has(>:nth-child(5):last-child)>*,html body .ip-stickies:has(>:nth-child(5):last-child)>*,html body .ip-flips:has(>:nth-child(5):last-child)>*{flex:0 1 calc((100% - 2*var(--ipg))/3);max-width:calc((100% - 2*var(--ipg))/3)}
html body .ip-stats:has(>:nth-child(6):last-child)>*,html body .ip-chalk-cols:has(>:nth-child(6):last-child)>*,html body .ip-blue-parts:has(>:nth-child(6):last-child)>*,html body .ip-cork-grid:has(>:nth-child(6):last-child)>*,html body .ip-stickies:has(>:nth-child(6):last-child)>*,html body .ip-flips:has(>:nth-child(6):last-child)>*{flex:0 1 calc((100% - 2*var(--ipg))/3);max-width:calc((100% - 2*var(--ipg))/3)}
html body .ip-stats:has(>:nth-child(7):last-child)>*,html body .ip-chalk-cols:has(>:nth-child(7):last-child)>*,html body .ip-blue-parts:has(>:nth-child(7):last-child)>*,html body .ip-cork-grid:has(>:nth-child(7):last-child)>*,html body .ip-stickies:has(>:nth-child(7):last-child)>*,html body .ip-flips:has(>:nth-child(7):last-child)>*{flex:0 1 calc((100% - 3*var(--ipg))/4);max-width:calc((100% - 3*var(--ipg))/4)}
html body .ip-stats:has(>:nth-child(8):last-child)>*,html body .ip-chalk-cols:has(>:nth-child(8):last-child)>*,html body .ip-blue-parts:has(>:nth-child(8):last-child)>*,html body .ip-cork-grid:has(>:nth-child(8):last-child)>*,html body .ip-stickies:has(>:nth-child(8):last-child)>*,html body .ip-flips:has(>:nth-child(8):last-child)>*{flex:0 1 calc((100% - 3*var(--ipg))/4);max-width:calc((100% - 3*var(--ipg))/4)}
html body .ip-cork-grid>.ip-pin.ip-wide{flex-basis:100%!important;max-width:100%!important}
@media(max-width:900px){html body .ip-stats>*,html body .ip-chalk-cols>*,html body .ip-blue-parts>*,html body .ip-cork-grid>*,html body .ip-stickies>*,html body .ip-flips>*{flex-basis:calc((100% - var(--ipg))/2)!important;max-width:calc((100% - var(--ipg))/2)!important}html body .ip-stats:has(>:nth-child(1):last-child)>*,html body .ip-chalk-cols:has(>:nth-child(1):last-child)>*,html body .ip-blue-parts:has(>:nth-child(1):last-child)>*,html body .ip-cork-grid:has(>:nth-child(1):last-child)>*,html body .ip-stickies:has(>:nth-child(1):last-child)>*,html body .ip-flips:has(>:nth-child(1):last-child)>*{flex-basis:100%!important;max-width:100%!important}}
@media(max-width:600px){html body .ip-stats>*,html body .ip-chalk-cols>*,html body .ip-blue-parts>*,html body .ip-cork-grid>*,html body .ip-stickies>*,html body .ip-flips>*{flex-basis:100%!important;max-width:100%!important}}
html body .ip-cork-grid:has(>.ip-wide):has(>:nth-child(3):last-child)>:not(.ip-wide){flex:0 1 calc((100% - 1*var(--ipg))/2);max-width:calc((100% - 1*var(--ipg))/2)}
html body .ip-cork-grid:has(>.ip-wide):has(>:nth-child(4):last-child)>:not(.ip-wide){flex:0 1 calc((100% - 2*var(--ipg))/3);max-width:calc((100% - 2*var(--ipg))/3)}
html body .ip-cork-grid:has(>.ip-wide):has(>:nth-child(5):last-child)>:not(.ip-wide){flex:0 1 calc((100% - 1*var(--ipg))/2);max-width:calc((100% - 1*var(--ipg))/2)}
html body .ip-cork-grid:has(>.ip-wide):has(>:nth-child(6):last-child)>:not(.ip-wide){flex:0 1 calc((100% - 2*var(--ipg))/3);max-width:calc((100% - 2*var(--ipg))/3)}
html body .ip-cork-grid:has(>.ip-wide):has(>:nth-child(7):last-child)>:not(.ip-wide){flex:0 1 calc((100% - 2*var(--ipg))/3);max-width:calc((100% - 2*var(--ipg))/3)}

/* Then-to-now timeline (C1-1.3 style) */
.then-now{list-style:none;margin:1.25rem 0;padding:0 0 0 1rem;border-left:2px solid var(--line)}.then-now li{display:grid;grid-template-columns:7.5rem minmax(0,1fr);gap:.75rem;margin:0 0 1rem}.then-now li b{font-family:var(--mono,monospace);color:var(--green)}@media(max-width:600px){.then-now li{grid-template-columns:1fr;gap:.25rem}}
.ip-out.lit:not(.allow):not(.deny):not(.step):not(.end){border-color:#1d4ed8;background:#e3ecff}.ip-chalk .ip-out.lit:not(.allow):not(.deny):not(.step):not(.end){border:2px solid #9fe3ff;background:rgba(159,227,255,.14)}

/* decision player + flip cards inside a terminal (from C1-2.1-p1) */
.ip-term .ip-decide{color:#b6f5c8}
.ip-term .ip-sig{background:transparent;border:1px dashed #2e5d3e;color:#b6f5c8}
.ip-term .ip-sig.on{background:rgba(57,255,136,.08);border-color:#39ff88}
.ip-term .ip-sig.pass{border-style:solid;border-color:#39ff88}
.ip-term .ip-sig.pass i{color:#39ff88}
.ip-term .ip-sig.warn{background:rgba(255,209,102,.08);border-color:#ffd166}
.ip-term .ip-sig.warn i{color:#ffd166}
.ip-term .ip-sig.fail{background:rgba(255,107,107,.1);border-color:#ff6b6b}
.ip-term .ip-sig.fail i{color:#ff6b6b}
.ip-term .ip-decide-engine{background:#0a1410;border:1.5px solid #39ff88}
.ip-term .ip-decide-engine .rule{border-color:#2e5d3e;color:#e8fff0}
.ip-term .ip-decide-engine .now{color:#fff}
.ip-term .ip-out{border:1.5px solid #2e5d3e;padding:8px 10px}
.ip-term .ip-out.lit{border-color:#39ff88;background:rgba(57,255,136,.16);color:#fff}
.ip-term .ip-decide-why{background:#0a1410;border-left-color:#39ff88;color:#e8fff0}
.ip-term .ip-decide-cases button[aria-pressed=true]{background:#39ff88;color:#05070a;border-color:#39ff88}
.ip-term .ip-decide-ctl button{color:#39ff88}
.ip-term .ip-flip-f,.ip-term .ip-flip-b{background:#0a1410;border:1.5px solid #2e5d3e;box-shadow:none;color:#b6f5c8}
.ip-term .ip-flip-b{border-color:#39ff88;background:#0d1f15;color:#e8fff0}
.ip-term .ip-flip-f span{font-family:inherit!important;font-size:1.05rem;line-height:1.45;color:#ffd166}
.ip-term .ip-flip-b span{font-family:inherit}
.ip-term .ip-flip small{color:#39ff88;opacity:1}
.ip-term .ip-flip-f em{color:#8fd6a6}
/* diagram controls: Pause/Play + one button per scenario (js/intel-diagrams.js) */
.ip-svg-ctl{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 4px;color:inherit}
.ip-svg-ctl button{font:700 .76rem var(--mono,monospace);letter-spacing:.03em;color:inherit;background:transparent;border:1.5px solid currentColor;border-radius:999px;padding:5px 11px;cursor:pointer;opacity:.7;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ip-svg-ctl button:hover,.ip-svg-ctl button.on{opacity:1}
.ip-svg-ctl .ip-svg-scene.on{color:inherit;box-shadow:inset 0 0 0 30px rgba(255,233,138,.22);border-color:#ffe98a}
.ip-svg-ctl .ip-svg-play{opacity:1;font-weight:900}
.ip-svg-ctl button:focus-visible{outline:2px solid #ffe98a;outline-offset:2px}

/* ===== Wide layout (Brett 11/11): match the site's 1520px container. Visuals use the full width;
   paragraphs stay a comfortable reading column. Only pages using this kit. ===== */
@media (min-width: 1100px) {
  html body:has(article .ip) .page { width: min(1520px, 100%) !important; max-width: 1520px !important; grid-template-columns: 220px minmax(0, 1fr) !important; gap: 48px !important; }
  html body:has(article .ip) article { max-width: none !important; }
  /* reading column: prose, headings, lists, ledes, notes */
  html body:has(article .ip) article > p,
  html body:has(article .ip) article > ul,
  html body:has(article .ip) article > ol,
  html body:has(article .ip) article > h2,
  html body:has(article .ip) article > h3,
  html body:has(article .ip) article > blockquote,
  html body:has(article .ip) article > dl,
  html body:has(article .ip) article details > p,
  html body:has(article .ip) .ip-lead,
  html body:has(article .ip) p.ip-margin,
  html body:has(article .ip) .then-now,
  html body:has(article .ip) .hero .syn { max-width: 780px; }
  /* checks stay a readable width */
  html body:has(article .ip) #quiz-box,
  html body:has(article .ip) #weekend-quick { max-width: 980px; }
  /* boards and their inner text blocks may use the width */
  html body:has(article .ip) .ip p,
  html body:has(article .ip) .ip li { max-width: none; }
}
/* Diagrams: drawing on the left, controls + caption on the right, height capped to fit one screen */
@media (min-width: 1400px) {
  html body .ip-svg:has(> .ip-svg-ctl), html body .ip-svg:has(> .ip-svg-cap) {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 24px; align-items: start; }
  html body .ip-svg:has(> .ip-svg-ctl) > svg, html body .ip-svg:has(> .ip-svg-cap) > svg { grid-column: 1; grid-row: 1 / span 3; }
  html body .ip-svg > .ip-svg-ctl, html body .ip-svg > .ip-svg-cap { grid-column: 2; margin-top: 0; }
  html body .ip-svg > .ip-svg-ctl { flex-direction: column; align-items: stretch; }
  html body .ip-svg > .ip-svg-ctl button { text-align: left; white-space: normal; border-radius: 8px; }
  html body .ip-svg > svg { max-height: 62vh; }
}
@media (min-width: 1100px) {
  html body:has(article .ip) .site-header-inner, html body:has(article .ip) .crumbs { width: min(1520px, 100%) !important; }
}
@media (min-width: 1100px) {
  html body:has(article .ip) .page:not(:has(> aside.rail)) { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (min-width: 1100px) { html body:has(article .ip) .page > aside.rail { order: -1; } }
@media (min-width: 1100px) {
  html body:has(article .ip) .page > aside.rail { grid-area: 1 / 1 !important; }
  html body:has(article .ip) .page:has(> aside.rail) > article { grid-area: 1 / 2 !important; }
}
/* wide layout: photos don't take over the screen */
@media (min-width: 1100px) {
  html body:has(article .ip) article figure:not(.banner) img { max-height: 460px; width: 100%; object-fit: cover; border-radius: 10px; }
  html body:has(article .ip) article figure.banner img { max-height: 520px; width: 100%; object-fit: cover; }
}
@media (min-width: 1100px) {
  html body:has(article .ip) article .photo { aspect-ratio: auto !important; max-height: 460px; overflow: hidden; }
  html body:has(article .ip) article .photo img { height: 460px; max-height: 460px; width: 100%; object-fit: cover; }
}
@media (min-width: 1100px) {
  html body:has(article .ip) article figure.banner { aspect-ratio: auto !important; height: 520px; }
  html body:has(article .ip) article figure.banner img { height: 520px !important; max-height: 520px; }
}
@media (min-width: 1100px) { html body:has(article .ip) .page > article { width: auto !important; } }
/* 11/22: the generic lit-outcome style (pale blue) outranked the terminal one, so custom-key outcomes showed white text on a pale box in terminal posts. */
.ip-term .ip-out.lit:not(.allow):not(.deny):not(.step):not(.end){border-color:#39ff88;background:rgba(57,255,136,.16);color:#fff}
/* Brett 11/22: in a triage row that holds a diagram, the level tag sat in its own column and pushed the diagram right. Tag goes on top; the diagram gets the full width. */
.ip-triage-row:has(.ip-svg){grid-template-columns:1fr;gap:10px}
.ip-triage-row:has(.ip-svg) > .lv{justify-self:start;min-width:110px}
/* Brett 11/22: the diagram's "Watch" tag lives in the board's title bar, far right (e.g. C2-1.4-p2). */
.ip-triage-head:has(.ip-triage-tag){align-items:center}
.ip-triage-head:has(.ip-triage-tag) > span:not(.ip-triage-tag){margin-left:auto}
.ip-triage-head .ip-triage-tag{padding:4px 10px;border-radius:4px;background:#60a5fa;color:#0b1220;font:800 .72rem var(--mono,monospace);letter-spacing:.1em}
.ip-triage-row.ip-triage-fig{grid-template-columns:1fr}
.ip-fig-pad{padding:14px 16px 16px;border-top:1px solid #1c2840}
/* 11/22: a diagram inside a triage row widened the grid track and the board clipped it on phones (C2-1.4-p2 at 390px).
   Let the track shrink so the diagram scrolls inside its own box, like the other themes; keep it off the board edge. */
.ip-triage-row{grid-template-columns:minmax(0,1fr)}
@media(min-width:601px){.ip-triage-row:not(:has(.ip-svg)):not(.ip-triage-fig){grid-template-columns:110px minmax(0,1fr)}}
.ip-triage-row > div{min-width:0}
.ip-triage > .ip-svg{margin-left:12px;margin-right:12px}

/* Theme fix 11/22 (A3/A4): the dark theme objects (triage board, blueprint, chalkboard, terminal) keep their own dark surfaces,
   but post-level ink rules (p/ul{color:var(--theme-component-ink-1)}, strong{color:var(--ink)}, strong.acr-x) repainted their
   text in the page ink: navy on navy on the light themes. Inside the objects those ink tokens follow the object's own ink
   (currentColor = inherit), and the kit tokens (--ip-panel/--ip-acc/--ip-ink/--ip-line) are pinned per object so nested
   parts (vs sides, forks, margin notes, bubbles) match the object instead of the page. Object surfaces unchanged. Cyber unchanged. */
html:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.ip-triage,.ip-blue,.ip-chalk,.ip-term){
  --ink:currentColor;--theme-component-ink-1:currentColor;
  --ip-ink:currentColor;--ip-muted:currentColor;--ip-line:rgba(255,255,255,.28);--ip-panel:rgba(255,255,255,.05);--ip-acc:#7ee2a0;--ip-acc2:#9fe3ff;--ip-red:#ff8a8a;
}
html:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .ip-blue{--ip-panel:rgba(255,255,255,.07);--ip-acc:#7cc4ff;--ip-acc2:#ffe98a}
html:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .ip-white{
  --ink:currentColor;--theme-component-ink-1:currentColor;
  --ip-ink:#1c2430;--ip-muted:#4a5565;--ip-line:#c9ced6;--ip-panel:#eef1f5;--ip-acc:#0b6e99;--ip-acc2:#1d4ed8;
}
/* vs bubble: dark ink was fixed for the Cyber green fill; on the themes the fill is the theme primary/accent */
html:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .ip-vs-mid span{color:var(--theme-on-primary)}
html:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.ip-triage,.ip-blue,.ip-term,.ip-white) .ip-vs-mid span{color:#04140a}
html:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .ip-white .ip-vs-mid span{color:#fff}
html:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .ip-chalk .ip-vs-mid span{color:#ffe98a}
/* links inside the dark objects keep the object ink (underline shows they are links) */
html:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.ip-triage,.ip-blue,.ip-chalk,.ip-term) a:not(#bb-x){color:inherit!important;text-decoration-color:currentColor}
