/* The first hop redundancy decks' figures (fhrp.js): HSRP and VRRP, and Lab 3.4.
   Loads after /slides/slides.css, ../ccna-net.css, ../sites.css and ../company.css. */

.sv-fig { justify-content: flex-start; gap: 14px; }

/* Terminals: the part to look at, and numbered badges. */
.term mark { background: #5c4a12; color: #ffe08a; border-radius: 2px; }
.term .cn { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 8px; border-radius: 50%; background: #f59e0b; color: #16191f; font: 800 11px system-ui, sans-serif; vertical-align: 1px; }
.two-terms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.two-terms .term { font-size: 11.5px; }
@media (max-width: 1100px) { .two-terms { grid-template-columns: 1fr; } }

/* Worksheets: dashed blank cells to copy and fill. */
.wk .blank { display: block; min-width: 70px; height: 18px; border-bottom: 1.5px dashed #9ca3af; }
.wk td { padding-top: 4px; padding-bottom: 4px; }
.wk { font-size: 13.5px; }

/* A state as a chip. */
.chip { display: inline-block; padding: 1px 9px; border-radius: 10px; font: 700 12.5px system-ui, sans-serif; color: #fff; }
.chip.st-act { background: #1d8102; } .chip.st-stb { background: #0a7bbd; } .chip.st-lis { background: #7c3aed; }
.chip.st-off { background: #e5e7eb; color: #4b5563; }
.tbl .chip { margin-right: 3px; }

/* The six HSRP states. */
.fig-states { width: 100%; max-height: 200px; }
.fig-states rect { fill: #fff; stroke: #94a3b8; stroke-width: 1.5; }
.fig-states .on rect { stroke-width: 2.5; }
.fig-states .s-standby.on rect { fill: #e6f2fa; stroke: #0a7bbd; }
.fig-states .s-active.on rect { fill: #e8f5e3; stroke: #1d8102; }
.fig-states .s-listen.on rect { fill: #f3effc; stroke: #7c3aed; }
.fig-states .off { opacity: .4; }
.fig-states .stt { font: 700 14px system-ui, sans-serif; fill: var(--sv-ink); }
.fig-states .std { font: 12px system-ui, sans-serif; fill: var(--sv-ink2); }
.fig-states .sta { stroke: #94a3b8; stroke-width: 2; fill: none; }
.fig-states .stah { fill: #94a3b8; }
.fig-states .brk { fill: none; stroke: #1d8102; stroke-width: 1.5; }
.fig-states .brt { font: 600 12px system-ui, sans-serif; fill: #1d8102; }
.fig-states .stdir { font: 600 12px system-ui, sans-serif; fill: var(--sv-ink2); }

/* Virtual MAC addresses, digit by digit. */
.fig-macs { width: 100%; max-width: 560px; }
.fig-macs .mc { stroke-width: 1.5; }
.fig-macs .mc.oui { fill: #f1f5f9; stroke: #94a3b8; }
.fig-macs .mc.fix { fill: #fff4d6; stroke: #d6a23a; }
.fig-macs .mc.grp { fill: #e8f5e3; stroke: #1d8102; }
.fig-macs .md { font: 700 16px var(--mono); fill: var(--sv-ink); }
.fig-macs .mdot { font: 700 18px var(--mono); fill: var(--sv-ink2); }
.fig-macs .mn { font: 700 14px system-ui, sans-serif; fill: var(--sv-ink); }
.fig-macs .mb { fill: none; stroke: #1d8102; stroke-width: 1.5; }
.fig-macs .ms { font: 600 12px system-ui, sans-serif; fill: #1d8102; }
.fig-macs .ml { font: 12px system-ui, sans-serif; fill: var(--sv-ink2); }

/* The failover timeline. */
.fig-time { width: 100%; max-height: 270px; }
.fig-time .lane { stroke: #e2e6ea; stroke-width: 1.5; }
.fig-time .ln1 { font: 700 13px system-ui, sans-serif; fill: var(--sv-ink); }
.fig-time .ln2 { font: 11.5px system-ui, sans-serif; fill: var(--sv-ink2); }
.fig-time .hl { stroke-width: 2; } .fig-time .hl.h1, .fig-time .hd.h1 { stroke: #1d8102; fill: #1d8102; }
.fig-time .hl.h2, .fig-time .hd.h2 { stroke: #1d8102; fill: #1d8102; }
.fig-time .hold { fill: #0a7bbd; }
.fig-time .hlt { font: 600 12px system-ui, sans-serif; fill: #0a7bbd; }
.fig-time .tx { fill: #fff; stroke: var(--no); stroke-width: 2.5; } .fig-time .txx { stroke: var(--no); stroke-width: 2.5; stroke-linecap: round; }
.fig-time .evt { font: 700 12px system-ui, sans-serif; paint-order: stroke; stroke: var(--sv-bg, #f6f7f9); stroke-width: 4px; }
.fig-time .evt.bad { fill: var(--no); } .fig-time .evt.good { fill: #1d8102; }
.fig-time .tko { stroke: #1d8102; stroke-width: 1.5; stroke-dasharray: 4 3; }
.fig-time .pk.ok { fill: color-mix(in srgb, #1d8102 55%, #fff); } .fig-time .pk.lost { fill: color-mix(in srgb, #d13212 30%, #fff); stroke: var(--no); stroke-dasharray: 4 3; }
.fig-time .axis, .fig-time .tk { stroke: #8a96a3; stroke-width: 1.5; }
.fig-time .tkt { font: 11px var(--mono); fill: var(--sv-ink2); }

/* Priorities as bars. */
.fig-prio { width: 100%; max-width: 720px; }
.fig-prio .pt { font: 700 13px system-ui, sans-serif; fill: var(--sv-ink); }
.fig-prio .pn2 { font: 700 12.5px system-ui, sans-serif; fill: var(--sv-ink); }
.fig-prio .pb { fill: #cbd5e1; } .fig-prio .pb.win { fill: #1d8102; } .fig-prio .pb.drop { fill: #e5534b; }
.fig-prio .pv { font: 600 12px var(--mono); fill: var(--sv-ink); }
.fig-prio .p100 { stroke: #475569; stroke-width: 1.5; stroke-dasharray: 4 3; }

/* Before and after a failover. */

.fo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fo > b { font-size: 14px; }

.tbl.mini { font-size: 13px; }

.fo .net.nw { max-height: 160px; }
.fo-t { display: flex; gap: 10px; flex-wrap: wrap; }
.fig-prio .p100t { font: 11px var(--mono); fill: #475569; }
.term.big { font-size: 14px; }
.term.wrap { white-space: pre-wrap; }
