/* DNS Records: the lesson's own figures.
   Loads after /slides/slides.css, ../ccna-net.css, ../sites.css, ../company.css and dnsdraw.css. */

/* The sections' colours. */
[data-sec="intro"] { --sec: #334155; }
[data-sec="res"] { --sec: #0a5a8a; }
[data-sec="rec"] { --sec: #7c3aed; }
[data-sec="tools"] { --sec: #1d8102; }
[data-sec="diag"] { --sec: #be123c; }

/* Caching and the TTL: a timeline. */
.net.chart { max-height: 330px; }
.net .axis { stroke: #8a96a3; stroke-width: 1.5; }
.net .rowl { font: 700 12.5px system-ui, sans-serif; fill: var(--sv-ink); }
.net .tb-old { fill: #dbe7fb; stroke: #1d4ed8; stroke-width: 1.5; }
.net .tb-new { fill: #e3f3dc; stroke: #1d8102; stroke-width: 1.5; }
.net .tb-stale { fill: #fde8e6; stroke: #d13212; stroke-width: 1.5; stroke-dasharray: 5 3; }
.net .tbt { font: 600 12px var(--mono); fill: var(--sv-ink); }
.net .ev { stroke: #475569; stroke-width: 1.5; stroke-dasharray: 3 4; }
.net .evt { font: 700 12px system-ui, sans-serif; fill: #475569; paint-order: stroke; stroke: #f6f7f9; stroke-width: 4px; }
.net .stalet { font: 700 12.5px system-ui, sans-serif; fill: #b4231a; }
.net .ttl { fill: none; stroke: #b45309; stroke-width: 2.5; }

/* A zone in the name tree. */
.net.tree { width: 210px; max-height: 250px; flex: none; }
.net .zcut { fill: color-mix(in srgb, #7c3aed 8%, transparent); stroke: #7c3aed; stroke-width: 1.5; stroke-dasharray: 6 4; }
.net .zcutt { font: 700 12px system-ui, sans-serif; fill: #7c3aed; }
.net .treel { stroke: #8a96a3; stroke-width: 2; }

/* The CNAME chain. */
.net.chain { max-height: 110px; }

/* The reversed name, octet by octet. */
.net.rev { max-height: 240px; }
.net .oct { fill: #fff; stroke-width: 2.5; }
.net .octt { font: 700 15px var(--mono); fill: var(--sv-ink); }
.net .swap { stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 4 3; }
.net .revname { font: 600 17px var(--mono); fill: var(--sv-ink); }
.net .revname .rrt { fill: #be123c; font-weight: 800; }
.net .oct.o0 { stroke: #1d4ed8; } .net .oct.o1 { stroke: #0f766e; } .net .oct.o2 { stroke: #b45309; } .net .oct.o3 { stroke: #be123c; }
.net .revname .o0 { fill: #1d4ed8; } .net .revname .o1 { fill: #0f766e; } .net .revname .o2 { fill: #b45309; } .net .revname .o3 { fill: #be123c; }

/* The response codes and the symptoms. */
.rc small, .sy small { color: var(--sv-ink2); font-size: 11.5px; display: block; }
.sy td:last-child, .rc td { font-size: 12.5px; }

/* The slides with two terminals side by side get a wider figure. */
@media (min-width: 861px) {
  .sv-slide[data-id="host-cache"] .sv-body, .sv-slide[data-id="nslookup"] .sv-body { grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr); }
}
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack small { display: block; color: var(--sv-ink2); margin-bottom: 3px; font-size: 13px; }
