/* IPv6 Addressing: the lesson's own figures.
   Loads after /slides/slides.css, ../ccna-net.css and ../sites.css. */

.sv-fig { justify-content: flex-start; gap: 14px; }
@media (min-width: 861px) { .sv-side .sv-body { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); } }

/* The sections' colours. */
[data-sec="intro"] { --sec: #334155; }
[data-sec="format"] { --sec: #1d4ed8; }
[data-sec="sizing"] { --sec: #0f766e; }
[data-sec="types"] { --sec: #7c3aed; }
[data-sec="assign"] { --sec: #b45309; }
[data-sec="verify"] { --sec: #0a5a8a; }
[data-sec="faults"] { --sec: #be123c; }

/* The two halves of an address: prefix blue, interface ID green; the site prefix and the subnet ID. */
:root { --pfx: #1d4ed8; --iid: #0f766e; --site: #4338ca; --sub: #b45309; }
.pfx-t { color: var(--pfx); fill: var(--pfx); font-weight: 700; }
.iid-t { color: var(--iid); fill: var(--iid); font-weight: 700; }
mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.term mark { background: #4a3f12; color: #ffe08a; }

/* Hex digits. */
.hexfig { display: flex; flex-direction: column; gap: 16px; }
.hexgrid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; max-width: 760px; }
.hx { background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; }
.hx b { font: 700 22px var(--mono); color: var(--pfx); }
.hx code { font-size: 13px; letter-spacing: .05em; }
.hx small { font-size: 11.5px; color: var(--sv-ink2); }
.hexword { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.nib { display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; padding: 4px 12px; }
.nib b { font: 700 20px var(--mono); color: var(--pfx); }
.nib code { font-size: 14px; }
.hw-l, .hw-r { font-weight: 700; color: var(--sv-ink2); }

/* The eight hextets. */
.fmt, .bitbar, .chart, .ladder, .p127 { width: 100%; max-width: 860px; }
.fmt .hb { stroke-width: 1.5; }
.hb.pfx { fill: color-mix(in srgb, var(--pfx) 10%, #fff); stroke: var(--pfx); }
.hb.iid { fill: color-mix(in srgb, var(--iid) 10%, #fff); stroke: var(--iid); }
.fmt .nb { fill: #fff; stroke: #8795a3; }
.hv { font: 700 18px var(--mono); fill: var(--sv-ink); }
.hn { font: 11px system-ui, sans-serif; fill: var(--sv-ink2); }
.hc { font: 700 20px var(--mono); fill: var(--sv-ink2); }
.hbits { font: 14px var(--mono); fill: var(--sv-ink2); letter-spacing: .08em; }
.brk { fill: none; stroke: #8795a3; stroke-width: 1.5; }
.bl { font: 600 13px system-ui, sans-serif; fill: var(--sv-ink2); }
.zoom { stroke: #9ca3af; stroke-dasharray: 4 4; fill: none; }

/* Shortening and the step rows. */
.shfig { display: flex; flex-direction: column; gap: 18px; }
.sh-ex { display: flex; flex-direction: column; gap: 4px; }
.sh-row, .eu-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 10px; }
.sh-k, .eu-k { font-size: 13.5px; color: var(--sv-ink2); font-weight: 600; }
.sh-row code, .eu-row code { font-size: 16px; background: #fff; border: 1px solid var(--sv-line); border-radius: 6px; padding: 4px 10px; overflow-wrap: anywhere; }
.sh-row s { color: #c2410c; text-decoration-thickness: 2px; opacity: .7; }
.sh-row.res code { border-color: var(--pfx); font-weight: 700; }
.dc { color: #c2410c; }
.expand td:nth-child(2), .expand td:nth-child(3) { text-align: center; }

/* Bit bars. */
.bb { stroke-width: 1.5; }
.bb.pfx { fill: color-mix(in srgb, var(--pfx) 12%, #fff); stroke: var(--pfx); }
.bb.iid { fill: color-mix(in srgb, var(--iid) 12%, #fff); stroke: var(--iid); }
.bb.site { fill: color-mix(in srgb, var(--site) 12%, #fff); stroke: var(--site); }
.bb.sub { fill: color-mix(in srgb, var(--sub) 14%, #fff); stroke: var(--sub); }
.bbv { font: 700 15px var(--mono); fill: var(--sv-ink); }
.bbl { font: 700 13px system-ui, sans-serif; }
.bbl.pfx { fill: var(--pfx); } .bbl.iid { fill: var(--iid); } .bbl.site { fill: var(--site); } .bbl.sub { fill: var(--sub); }
.bbn, .tick { font: 11.5px system-ui, sans-serif; fill: var(--sv-ink2); }
.pl-rows { display: flex; flex-direction: column; gap: 6px; }
.pl-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; align-items: center; }
.pl-row span:first-child { font-weight: 700; font-size: 14px; }
.pl-row code { font-size: 16px; background: #fff; border: 1px solid var(--sv-line); border-radius: 6px; padding: 3px 10px; overflow-wrap: anywhere; }

/* The count chart: one series, one hue. */
.chart .cbar { fill: #0f766e; }
.chart .ck { font: 700 14px var(--mono); fill: var(--sv-ink); }
.chart .cv { font: 13px system-ui, sans-serif; fill: var(--sv-ink2); }
.chart .cvn { font-weight: 700; fill: var(--sv-ink); }
.chart .sup { font-size: 10px; }
.chart .ch { font: 700 14px system-ui, sans-serif; fill: var(--sv-ink); }
.chart .cf { font: italic 12px system-ui, sans-serif; fill: var(--sv-ink2); }

/* The unicast types. */
.tg { display: inline-block; padding: 1px 9px; border-radius: 10px; font-weight: 700; font-size: 13px; color: #fff; }
.tg.g { background: #1d4ed8; } .tg.u { background: #7c3aed; } .tg.l { background: #b45309; }
.net .note.tgn.g text { fill: #1d4ed8; } .net .note.tgn.u text { fill: #7c3aed; } .net .note.tgn.l text { fill: #b45309; }
.types td code, .special td code { white-space: nowrap; }

/* EUI-64 and the solicited-node group. */
.eufig { display: flex; flex-direction: column; gap: 6px; }
.eufig .term { margin-top: 6px; }
.ma { color: var(--site); font-weight: 700; } .mb { color: var(--iid); font-weight: 700; }
.eu-bits { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 2px 10px; align-items: center; }
.eu-bits small { grid-column: 2; color: var(--sv-ink2); font-size: 12.5px; }
.bitrow { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.bitrow code { font-size: 16px; margin: 0 6px; }
.bit { display: inline-grid; place-items: center; width: 22px; height: 28px; font: 15px var(--mono); background: #fff; border: 1px solid var(--sv-line); border-radius: 4px; }
.bit.b7 { border: 2px solid #c2410c; font-weight: 700; }
.bit.b7.on { background: #c2410c; color: #fff; }
.k24 { color: #c2410c; font-weight: 700; } .k32 { color: #c2410c; font-weight: 700; }
.fix { color: var(--site); font-weight: 700; } .fix2 { color: var(--iid); font-weight: 700; }

/* Ladders. */
.ld-v { stroke: #9ca3af; stroke-width: 2; }
.ld-h { font: 700 15px system-ui, sans-serif; fill: var(--sv-ink); }
.ld-hs { font: 12px var(--mono); fill: var(--sv-ink2); }
.ld-l { stroke: var(--sv-accent); stroke-width: 2.2; fill: none; }
.ld-a { fill: var(--sv-accent); }
.ld-t { font: 700 13px system-ui, sans-serif; fill: var(--sv-ink); paint-order: stroke; stroke: var(--sv-bg); stroke-width: 4px; }
.ld-s { font: 11.5px var(--mono); fill: var(--sv-ink2); paint-order: stroke; stroke: var(--sv-bg); stroke-width: 4px; }
.ld-note { font: italic 600 12.5px system-ui, sans-serif; fill: var(--iid); }
.ld-m.rs .ld-l, .ld-m.ns .ld-l { stroke: #7c3aed; } .ld-m.rs .ld-a, .ld-m.ns .ld-a { fill: #7c3aed; }
.ld-m.ra .ld-l { stroke: #0f766e; } .ld-m.ra .ld-a { fill: #0f766e; }
.ld-m.bc .ld-l { stroke: #e8a33d; } .ld-m.bc .ld-a { fill: #e8a33d; }
.ndfig { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.nd-side { background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 6px 8px; }
.nd-side h4 { margin: 2px 4px 0; font-size: 14px; }
.nd-side .ladder .ld-note { fill: var(--sv-ink2); }

/* The three clients. */
.cl3 { display: flex; flex-direction: column; gap: 6px; }
.cl3 h4 { margin: 0 0 2px; font-size: 13.5px; }
.cl3 .term { font-size: 11.5px; padding: 7px 12px; }
.cmds { width: 100%; }
.cmds td code { font-size: 12.5px; }

/* The faults. */
.fh { display: flex; flex-direction: column; gap: 12px; }
.pb { stroke-width: 1.5; fill: #fff; stroke: #8795a3; }
.pb.r1 { stroke: #1d4ed8; fill: color-mix(in srgb, #1d4ed8 10%, #fff); }
.pb.r2 { stroke: #be123c; fill: color-mix(in srgb, #be123c 10%, #fff); }
.pv { font: 700 15px var(--mono); fill: var(--sv-ink); }
.pw { font: 11.5px system-ui, sans-serif; fill: var(--sv-ink2); }
.brk.r1 { stroke: #1d4ed8; } .brk.r2 { stroke: #be123c; }
.bl.r1 { fill: #1d4ed8; font-family: var(--mono); } .bl.r2 { fill: #be123c; font-family: var(--mono); }

@media (max-width: 860px) {
  .tbl { display: block; overflow-x: auto; max-width: 100%; }
  .hexgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sh-row, .eu-row, .eu-bits { grid-template-columns: 1fr; gap: 2px; }
  .eu-bits small { grid-column: 1; }
  .ndfig { grid-template-columns: 1fr; }
  .pl-row { grid-template-columns: 1fr; }
}
