/* Figures for the password-manager supply-chain post. Scoped to .pfig. */
.pfig { --ok: #1b7a55; --bad: #c62828; --maybe: #7a2f6b; --axis: #bdb9ae; --box: #fff; }
.post figure.pfig { margin: 1.6em 0; padding: .75rem 0 .6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post .pfig .fig-t { font: 600 .8125rem/1.35 var(--mono); margin: 0 0 .15rem; }
.post .pfig .fig-s { font: .75rem/1.4 var(--mono); color: var(--mute); margin: 0 0 .6rem; }
.post .pfig figcaption { font: .75rem/1.5 var(--mono); color: var(--mute); margin-top: .6rem; }
.pfig .scroll { overflow-x: auto; }
/* wide figure: on screens with a notes column, extend into it */
.post figure.pfig.wide { clear: right; }
.pfig.wide svg { min-width: 760px; }
@media (min-width: 1181px) { .post figure.pfig.wide { margin-right: calc(-1 * (var(--notesw) + var(--gap))); } }
.pfig svg { display: block; width: 100%; min-width: 600px; height: auto; }
.pfig svg text { font: 11px var(--mono); fill: var(--fg); }
.pfig svg text.m { fill: var(--mute); }
.pfig svg text.h { font-weight: 600; }
.pfig svg text.bad { fill: var(--bad); }
.pfig svg text.maybe { fill: var(--maybe); }
.pfig svg rect { fill: var(--box); stroke: var(--axis); stroke-width: 1; }
.pfig svg rect.done { stroke: var(--fg); stroke-width: 1.5; }
.pfig svg rect.bad { stroke: var(--bad); stroke-width: 1.5; fill: #fbeaea; }
.pfig svg rect.maybe { stroke: var(--maybe); stroke-dasharray: 4 3; }
.pfig svg rect.ghost { fill: var(--bg); stroke-dasharray: 2 3; }
.pfig svg path.done { stroke: var(--fg); stroke-width: 1.5; fill: none; }
.pfig svg path.maybe { stroke: var(--maybe); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.pfig svg rect.foe { stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 5 4; }
.pfig svg .skull rect, .pfig svg .skull circle { fill: var(--bad); stroke: var(--box); stroke-width: 1; }
.pfig svg .skull .cut { fill: var(--box); stroke: none; }
.pfig svg polygon.gate { fill: var(--bg); stroke: var(--maybe); stroke-width: 1.5; }
.pfig svg .ah-done { fill: var(--fg); }
.pfig svg .ah-maybe { fill: var(--maybe); }
.pfig .legend { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font: .75rem var(--mono); color: var(--mute); margin: 0 0 .5rem; }
.pfig .legend i { display: inline-block; width: 1.6rem; height: 0; vertical-align: middle; margin-right: .35rem; border-top: 2px solid var(--fg); }
.pfig .legend i.maybe { border-top: 2px dashed var(--maybe); }
.pfig .legend i.bad { border-top: 6px solid #fbeaea; outline: 1.5px solid var(--bad); height: 0; }

/* exposure-window chart */
.pfig .legend i.f { border-top: 8px solid #2a78d6; border-radius: 2px; }
.pfig .legend i.s { border-top: 8px solid #d4622d; border-radius: 2px; }
.pfig svg line.grid { stroke: var(--line); stroke-width: 1; }
.pfig svg line.cool { stroke: var(--maybe); stroke-width: 1.5; stroke-dasharray: 4 3; }
.pfig svg rect.bar { stroke: none; }
.pfig svg rect.bar.f { fill: #2a78d6; }
.pfig svg rect.bar.s { fill: #d4622d; }
.pfig svg rect.hit { fill: transparent; stroke: none; }
.pfig svg g.row:hover rect.hit { fill: var(--line); }

/* embedded video */
.post figure.video { margin: 1.6em 0; }
.post .video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--line); }
.post .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
