/* The network operations decks' shared figures (ops.js): Ansible's coloured output, files with
   numbered lines and bands, and the drawings' glyphs, boxes and arrows.
   Loads after /slides/slides.css and ../ccna-net.css, before a deck's own stylesheet. */

.sv-fig { justify-content: flex-start; gap: 12px; }
.term mark, .file mark { background: #5c4a12; color: #ffe08a; border-radius: 2px; }
.file mark { background: #fff1b8; color: inherit; }

/* Ansible's colours on a dark terminal. */
.term.play .a-ok { color: #6cc644; }
.term.play .a-chg { color: #e3b341; }
.term.play .a-bad { color: #f2645a; }
.term.play .a-warn { color: #c792ea; }
.term.play .a-head { color: #e8eaed; font-weight: 700; }
.term.short { max-height: 300px; }

/* A file: its name, then numbered lines; a band tints a group of lines and names it. */
.file { background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; overflow: hidden; max-width: 100%; }
.file-name { font: 600 12.5px var(--mono); background: #eef1f5; color: var(--sv-ink2); padding: 4px 12px; border-bottom: 1px solid var(--sv-line); }
.file pre { margin: 0; padding: 6px 0; font: 12.5px/1.5 var(--mono); overflow: auto; }
.file .fln { display: block; padding: 0 12px 0 0; white-space: pre; position: relative; }
.file .lno { display: inline-block; width: 30px; padding-right: 10px; text-align: right; color: #a3acb6; user-select: none; }
.file .tag { position: absolute; right: 8px; font: 700 11px system-ui, sans-serif; padding: 0 6px; border-radius: 8px; color: #fff; }
.file .b-play { background: #e8f1fb; } .file .tag.b-play { background: #0a5a8a; }
.file .b-task { background: #edf7e9; } .file .tag.b-task { background: #1d8102; }
.file .b-mod { background: #fdf3e2; } .file .tag.b-mod { background: #b45309; }
.file .b-reg { background: #f3edfb; } .file .tag.b-reg { background: #7c3aed; }
.file .b-add { background: #e6f6e3; } .file .b-del { background: #fde8e6; }
.file .b-hl { background: #fff4d6; } .file .tag.b-hl { background: #92400e; }

/* Drawings. */
.ops { width: 100%; max-height: 420px; display: block; }
.ops text { font-family: system-ui, sans-serif; }
.ops .dn { font: 700 13px system-ui, sans-serif; fill: var(--sv-ink); }
.ops .ds { font: 11.5px var(--mono); fill: var(--sv-ink2); }
.ops .g-rt { fill: #0a5a8a; } .ops .g-sw { fill: #0a7bbd; }
.ops .g-ar { stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; }
.ops .g-pc { fill: #fff; stroke: #8795a3; stroke-width: 2; }
.ops .g-scr { fill: #d9ecf7; }
.ops .g-line { stroke: #8795a3; stroke-width: 2; fill: none; }
.ops .g-wave { stroke: #0a7bbd; stroke-width: 2; fill: none; stroke-linecap: round; }
.ops .g-ctl { fill: #f1f5f9; stroke: #475569; stroke-width: 2; }
.ops .g-hub { fill: #475569; } .ops .g-hubl { stroke: #475569; stroke-width: 2.5; }
.ops .g-cloud { fill: #eef6fc; stroke: #8795a3; stroke-width: 2; }
.ops .g-git { fill: #f05133; } .ops .g-gitl { stroke: #f05133; stroke-width: 2; fill: none; }
.ops .dv.dim { opacity: .3; }

.ops .bx rect { fill: #fff; stroke: #b9c3cd; stroke-width: 1.5; }
.ops .bx .bt { font: 700 13.5px system-ui, sans-serif; fill: var(--sv-ink); }
.ops .bx .bl { font: 12.5px var(--mono); fill: var(--sv-ink2); }
.ops .bx.mg rect { fill: #f3edfb; stroke: #7c3aed; } .ops .bx.mg .bt { fill: #5b21b6; }
.ops .bx.cp rect { fill: #e8f1fb; stroke: #0a5a8a; } .ops .bx.cp .bt { fill: #0a3d62; }
.ops .bx.dp rect { fill: #edf7e9; stroke: #1d8102; } .ops .bx.dp .bt { fill: #145c01; }
.ops .bx.am rect { fill: #fdf3e2; stroke: #b45309; } .ops .bx.am .bt { fill: #92400e; }
.ops .bx.rd rect { fill: #fde8e6; stroke: #d13212; } .ops .bx.rd .bt { fill: #9b1c12; }
.ops .bx.gy rect { fill: #f1f3f5; stroke: #8a96a3; }
.ops .bx.ghost rect { fill: none; stroke-dasharray: 6 5; }
.ops .bx.solid rect { stroke-width: 2.2; }

.ops .arw { fill: none; stroke: #8a96a3; stroke-width: 2.2; }
.ops .arw-b { stroke: #0a7bbd; } .ops .arw-g { stroke: #1d8102; } .ops .arw-r { stroke: #d13212; }
.ops .arw.dash { stroke-dasharray: 7 5; }
.ops .ah { fill: #8a96a3; } .ops .ah-b { fill: #0a7bbd; } .ops .ah-g { fill: #1d8102; } .ops .ah-r { fill: #d13212; }
.ops .lk { stroke: #8a96a3; stroke-width: 2.5; fill: none; }
.ops .t { font: 12.5px system-ui, sans-serif; fill: var(--sv-ink2); }
.ops .t-b { font: 700 12.5px system-ui, sans-serif; fill: #0a5a8a; }
.ops .t-g { font: 700 12.5px system-ui, sans-serif; fill: #1d8102; }
.ops .t-r { font: 700 12.5px system-ui, sans-serif; fill: #d13212; }
.ops .t-a { font: 700 12.5px system-ui, sans-serif; fill: #b45309; }
.ops .t-p { font: 700 12.5px system-ui, sans-serif; fill: #6d28d9; }
.ops .t-k { font: 700 13px system-ui, sans-serif; fill: var(--sv-ink); }
.ops .mono { font: 12px var(--mono); fill: var(--sv-ink2); }
.ops .halo { paint-order: stroke; stroke: var(--sv-bg); stroke-width: 4px; stroke-linejoin: round; }
.ops .zone { fill: #f2f6fa; stroke: #c9d6e2; stroke-dasharray: 5 4; }
.ops .num { font: 800 12px system-ui, sans-serif; fill: #fff; }
.ops .numc { fill: #0a5a8a; }

/* Worksheets. */
.wk .blank { display: block; min-width: 76px; height: 18px; border-bottom: 1.5px dashed #9ca3af; }
.wk td { padding-top: 4px; padding-bottom: 4px; }
.wk { font-size: 13.5px; }
.tbl.wrap td, .tbl.wrap th { white-space: normal !important; }
.tbl.small { font-size: 13px; }
.tbl.small th, .tbl.small td { padding: 5px 9px; }

/* Two things side by side, wrapping on a narrow screen. */
.duo { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.duo > * { flex: 1 1 280px; min-width: 0; }
.term.play.recap { font-size: 10.5px; }

/* A phone: a wide table scrolls sideways inside its slide. */
@media (max-width: 860px) { .sv-fig .tbl { display: block; overflow-x: auto; max-width: 100%; } }
