/* DNS/DHCP(at)Work – felles stilark for alle sidene (samme oppbygning som PingForge-, Chrony Time Service-, SYSLOG-Tools- og SNMP Trap Tools-sidene) */

:root {
  --paper: #eef1f5;
  --surface: #f9fafc;
  --ink: #121a24;
  --muted: #4d5866;
  --rule: #c9d1dc;
  --rcv: #0b5cad;       /* DNS-serveren */
  --rcv-soft: #d8e6f5;
  --snd: #0f625d;       /* DHCP-serveren */
  --snd-soft: #d3e9e7;
  --signal: #d99a00;    /* DNS-pakken på ledningen */
  --signal-ink: #7a5600;
  --code-bg: #e3e8ef;
  --shadow: 0 1px 2px rgb(18 26 36 / .08), 0 8px 24px rgb(18 26 36 / .06);

  --font-sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.15rem;
  --step-4: clamp(2.6rem, 6vw, 4.4rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1419; --surface: #151d26; --ink: #e6eaf0; --muted: #9aa6b4; --rule: #2a3542;
    --rcv: #6cbcff; --rcv-soft: #16283a; --snd: #5ccdc2; --snd-soft: #12302d;
    --signal: #f2b630; --signal-ink: #f2c45c; --code-bg: #1b2530;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1419; --surface: #151d26; --ink: #e6eaf0; --muted: #9aa6b4; --rule: #2a3542;
  --rcv: #6cbcff; --rcv-soft: #16283a; --snd: #5ccdc2; --snd-soft: #12302d;
  --signal: #f2b630; --signal-ink: #f2c45c; --code-bg: #1b2530;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: .88em; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; }

/* ---------- Topplinje ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 3.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand svg { width: 1.6rem; height: 1.6rem; flex: none; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; font-size: var(--step--1); }
.nav a { text-decoration: none; color: var(--muted); padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: currentColor; }
.theme-toggle {
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  border-radius: 999px; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; cursor: pointer; flex: none;
}
.theme-toggle svg { width: 1rem; height: 1rem; }
/* Språkvalg NO | EN, til venstre for lys/mørk-knappen */
.lang-toggle {
  display: inline-flex; flex: none; height: 2.1rem; padding: 2px;
  border: 1px solid var(--rule); background: var(--surface); border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
.lang-toggle a {
  display: grid; place-items: center; min-width: 2.2rem; padding: 0 .55rem;
  border-radius: 999px; text-decoration: none; color: var(--muted);
}
.lang-toggle a:hover { color: var(--ink); }
.lang-toggle a[aria-current="true"] { background: var(--rcv); color: var(--paper); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .topbar .wrap { gap: .75rem; }
  .menu-btn {
    display: grid; place-items: center; margin-left: auto; width: 2.1rem; height: 2.1rem;
    border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 6px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; inset: 3.5rem 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule); padding: .5rem var(--gutter) 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- Hero med «ledningen» ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 3rem; }
.hero h1 { font-size: var(--step-4); letter-spacing: -.035em; line-height: 1; }
.hero h1 .thin { display: block; font-weight: 400; color: var(--muted); font-size: .5em; letter-spacing: -.015em; line-height: 1.15; margin-top: .6rem; }
.hero .lede { font-size: var(--step-1); max-width: 38rem; margin: 1.25rem 0 2rem; color: var(--muted); }

.wire {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.75rem); margin-top: 2.5rem;
}
.wire-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0; }
.node {
  border-radius: 8px; padding: .7rem 1rem; color: #fff; min-width: 9.5rem;
  display: flex; flex-direction: column; gap: .1rem;
}
.node b { font-size: var(--step-0); }
.node small { opacity: .85; font-family: var(--font-mono); font-size: .75rem; }
.node.snd { background: #1d3d6a; }
.node.rcv { background: #084f39; text-align: right; }
.cable { position: relative; height: 3rem; margin: 0 -.25rem; }
.cable::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--rule);
  background-image: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 12px); opacity: .55;
}
.cable .port {
  position: absolute; left: 50%; top: calc(50% + .45rem); transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted); white-space: nowrap;
}
.packet {
  position: absolute; top: 50%; left: 0; translate: 0 -50%;
  background: var(--signal); color: #1b1400; font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none;
}
.packet.go { animation: travel 1.1s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes travel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - var(--pw, 8rem)); opacity: 0; }
}

.trapfeed { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: var(--step--1); }
.trapfeed th { text-align: left; font-weight: 700; color: var(--muted); padding: .4rem .6rem; border-bottom: 1px solid var(--rule); }
.trapfeed td { padding: .45rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.trapfeed td.oid { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.trapfeed tr.pending { visibility: hidden; }
.trapfeed tr.arrived { animation: arrive 1.6s ease-out; }
@keyframes arrive { from { background: color-mix(in srgb, var(--signal) 35%, transparent); } to { background: transparent; } }
.wire-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; font-size: var(--step--1); color: var(--muted); flex-wrap: wrap; }
.replay {
  font: inherit; font-size: var(--step--1); background: none; border: 1px solid var(--rule); color: var(--ink);
  border-radius: 6px; padding: .3rem .75rem; cursor: pointer;
}
.replay:hover { border-color: var(--ink); }
@media (max-width: 640px) {
  .node { min-width: 0; padding: .55rem .7rem; }
  .node small { display: none; }
  .trapfeed .col-oid, .trapfeed .col-var { display: none; }
  .trapfeed td { word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) {
  .packet.go { animation: none; }
  .trapfeed tr.arrived { animation: none; }
}

/* ---------- Seksjoner ---------- */
section.block { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--rule); }
.block h2 { font-size: var(--step-3); letter-spacing: -.02em; }
.block .intro { max-width: 40rem; color: var(--muted); font-size: var(--step-1); margin: .75rem 0 2.25rem; }

.product { --c: var(--rcv); --c-soft: var(--rcv-soft); }
.product.sender { --c: var(--snd); --c-soft: var(--snd-soft); }
.product-head { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.product-head h2 { color: var(--c); }
.version { font-family: var(--font-mono); font-size: var(--step--1); color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: .05rem .6rem; }
.product-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: 2rem; }
.product.sender .product-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product.sender .product-grid > .shot { order: -1; }
@media (max-width: 900px) {
  .product-grid, .product.sender .product-grid { grid-template-columns: 1fr; }
  .product.sender .product-grid > .shot { order: 0; }
}

.scope { margin: 0; border-left: 4px solid var(--c); padding-left: 1.1rem; }
.scope div { padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.scope div:last-child { border-bottom: 0; }
.scope dt { font-weight: 700; color: var(--c); }
.scope dd { margin: .1rem 0 0; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-top: 1.75rem; }
.facts div { background: var(--surface); padding: .8rem 1rem; }
.facts b { display: block; font-size: var(--step-1); color: var(--c); line-height: 1.2; }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }
.facts span { font-size: var(--step--1); color: var(--muted); }

.doc-link {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.75rem; text-decoration: none;
  background: var(--c); color: var(--paper); padding: .7rem 1.15rem; border-radius: 6px; font-weight: 700;
}
.doc-link:hover { filter: brightness(1.1); }
.doc-link svg { width: 1.1rem; height: 1.1rem; }

/* Skjermbilde i nettleservindu */
.shot { margin: 0; }
.shot .frame {
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface);
}
.shot .frame::before {
  content: ""; display: block; height: 1.4rem; border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at .9rem 50%, var(--rule) .28rem, transparent .3rem),
    radial-gradient(circle at 1.75rem 50%, var(--rule) .28rem, transparent .3rem),
    radial-gradient(circle at 2.6rem 50%, var(--rule) .28rem, transparent .3rem),
    var(--surface);
}
.shot button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.shot button:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.shot figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .6rem; }

/* Samspill: omstartsekvensen */
.together { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .together { grid-template-columns: 1fr; } }
.seq { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.seq li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: .2rem .9rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.seq li::before {
  content: counter(s); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: var(--signal); color: #1b1400;
}
.seq strong { font-weight: 700; }
.seq code { font-size: .95em; }
.seq p { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* Installasjon */
.install { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1.5rem; }
.install h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.install .rcv-h { color: var(--rcv); }
.install .snd-h { color: var(--snd); }
.install p { color: var(--muted); font-size: var(--step--1); margin-top: .75rem; }
pre.term {
  margin: 0; background: #121a24; color: #d9e1ea; border-radius: 8px; padding: 1rem 1.15rem;
  overflow-x: auto; font-size: .82rem; line-height: 1.6;
}
pre.term .p { color: #7f8c9c; user-select: none; }
pre.term .c { color: #7f8c9c; }

/* Galleri */
.gallery-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.gallery-filter button {
  font: inherit; font-size: var(--step--1); border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  padding: .35rem .9rem; border-radius: 999px; cursor: pointer;
}
.gallery-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 1.25rem; }
.gallery .shot .frame::before { height: 1rem; background-size: auto; }
.gallery .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.gallery .shot.tall img { object-position: top center; }
.gallery .tag { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .4rem; vertical-align: .05rem; }
.gallery .tag.rcv { background: var(--rcv); }
.gallery .tag.snd { background: var(--snd); }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; color: #fff;
}
dialog.lightbox::backdrop { background: rgb(5 8 12 / .86); }
dialog.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: 6px; }
dialog.lightbox p { text-align: center; margin: .75rem 0 0; font-size: var(--step--1); }
dialog.lightbox .close {
  position: fixed; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .4); background: rgb(0 0 0 / .4); color: #fff; font-size: 1.4rem; cursor: pointer;
}

footer.site { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--muted); font-size: var(--step--1); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }

/* ================= Sider for teknisk beskrivelse ================= */
.docpage { --c: var(--rcv); --c-soft: var(--rcv-soft); }
.docpage.sender { --c: var(--snd); --c-soft: var(--snd-soft); }
.doc-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 2rem; border-bottom: 1px solid var(--rule); }
.doc-hero .crumb { font-size: var(--step--1); color: var(--muted); margin-bottom: .9rem; }
.doc-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--c); letter-spacing: -.025em; }
.doc-hero .sub { font-size: var(--step-1); color: var(--muted); max-width: 44rem; margin: .7rem 0 1rem; }
.doc-hero .meta { display: flex; gap: .6rem; flex-wrap: wrap; font-size: var(--step--1); }
.doc-hero .meta span { border: 1px solid var(--rule); background: var(--surface); padding: .15rem .65rem; border-radius: 999px; }

.doc-layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-top: 2rem; padding-bottom: 4rem; }
@media (max-width: 960px) { .doc-layout { grid-template-columns: 1fr; } }

.doc-toc { position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 5.5rem); overflow-y: auto; font-size: var(--step--1); padding-right: .5rem; }
.doc-toc #toctitle { font-weight: 700; margin-bottom: .5rem; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; }
.doc-toc ul ul { padding-left: .9rem; border-left: 1px solid var(--rule); margin: .15rem 0 .35rem .35rem; }
.doc-toc a { display: block; padding: .22rem .5rem; text-decoration: none; color: var(--muted); border-radius: 4px; }
.doc-toc a:hover { color: var(--ink); background: var(--c-soft); }
.doc-toc a.active { color: var(--c); font-weight: 700; background: var(--c-soft); }
@media (max-width: 960px) {
  .doc-toc { position: static; max-height: none; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); padding: 0; }
  .doc-toc details { padding: .75rem 1rem; }
  .doc-toc summary { cursor: pointer; font-weight: 700; }
  .doc-toc #toctitle { display: none; }
}
@media (min-width: 961px) { .doc-toc summary { display: none; } }

.doc { max-width: 52rem; }
.doc .sect1 { padding-bottom: .5rem; }
.doc h2 { font-size: var(--step-2); margin: 2.75rem 0 1rem; padding-top: 1rem; border-top: 2px solid var(--c); color: var(--ink); }
.doc .sect1:first-child h2 { margin-top: 0; }
.doc h3 { font-size: var(--step-1); margin: 2rem 0 .75rem; color: var(--c); }
.doc h4 { font-size: var(--step-0); margin: 1.5rem 0 .5rem; }
.doc a.anchor { display: none; }
.doc .paragraph, .doc .ulist, .doc .olist { max-width: 44rem; }
.doc ul, .doc ol { padding-left: 1.35rem; margin: 0 0 1em; }
.doc li { margin: .3rem 0; }
.doc li p { margin: 0; }
.doc :not(pre) > code { background: var(--code-bg); padding: .08em .35em; border-radius: 4px; word-break: break-word; }
.doc .abstract, .doc .sect1:first-child .sectionbody { font-size: var(--step-1); }
.doc .listingblock, .doc .literalblock { margin: 1.25rem 0; }
.doc .listingblock pre, .doc .literalblock pre {
  margin: 0; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--c);
  border-radius: 6px; padding: 1rem 1.1rem; overflow-x: auto; font-size: .8rem; line-height: 1.45;
}
.doc .listingblock pre code { background: none; padding: 0; font-size: inherit; }
.doc .table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.doc table.tableblock { border-collapse: collapse; width: 100%; font-size: var(--step--1); margin: 0; }
.doc table.tableblock caption { caption-side: top; text-align: left; padding: .6rem .9rem; font-weight: 700; color: var(--muted); }
.doc table.tableblock th, .doc table.tableblock td { padding: .55rem .9rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.doc table.tableblock thead th { background: var(--c-soft); font-weight: 700; }
.doc table.tableblock tr:last-child td { border-bottom: 0; }
.doc table.tableblock td p { margin: 0; }
.doc table.tableblock td:first-child { font-weight: 700; }
.doc table.tableblock td code { white-space: nowrap; }
.doc .conum { font-weight: 700; }
.doc .sectionbody > .paragraph:last-child p { margin-bottom: 0; }

.doc-switch { margin-top: 3rem; padding: 1.25rem 1.5rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.doc-switch a { font-weight: 700; }

@media print {
  .topbar, .doc-toc, .doc-switch, footer.site, .theme-toggle, .lang-toggle { display: none !important; }
  .doc-layout { display: block; }
  body { background: #fff; }
}

/* ---------- Hero: klienten spør DNS-serveren (beholdt fra PingForge-siden, brukes av felles klasser) ---------- */
.node.srv { background: #0b4f8f; }
.node.cli { background: #0f4f4c; text-align: right; }
.node .srv-state { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; margin-top: .15rem; letter-spacing: .01em; }
.hero-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; align-items: center; }
.hero-controls .lbl { font-size: var(--step--1); color: var(--muted); margin-right: .25rem; }
.hero-controls button {
  font: inherit; font-size: var(--step--1); background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 6px; padding: .3rem .7rem; cursor: pointer;
}
.hero-controls button:hover { border-color: var(--ink); }
.hero-controls button.run { background: var(--rcv); color: var(--paper); border-color: var(--rcv); font-weight: 700; }
.hero-controls button.reset { color: var(--muted); }
.hero-controls button[disabled] { opacity: .55; cursor: progress; }
.trapfeed td.clk { font-family: var(--font-mono); font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trapfeed td.sys { color: var(--muted); }
.off { display: inline-block; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 4px; white-space: nowrap; }
.off.ok { background: #198754; color: #fff; }
.off.warn { background: #ffc107; color: #000; }
.off.crit { background: #c62828; color: #fff; }
.off.wait { background: var(--rule); color: var(--ink); }
.wire-foot .sum b { color: var(--ink); }
.facts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.note-strip { margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted); border-left: 3px solid var(--signal); padding-left: .9rem; }
.doc .preamble { font-size: var(--step-1); color: var(--muted); max-width: 44rem; margin-bottom: 1.5rem; }
.doc .preamble blockquote { margin: 0; }
.scen { width: 100%; border-collapse: collapse; font-size: var(--step--1); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.scen th, .scen td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.scen th { color: var(--muted); }
.scen td:first-child { font-weight: 700; white-space: nowrap; }
.scen tr:last-child td { border-bottom: 0; }
.scen-wrap { overflow-x: auto; margin-top: 2rem; }
@media (max-width: 640px) {
  .node .srv-state { font-size: 1rem; }
  .trapfeed .col-sys { display: none; }
}
/* Smale skjermer: langt produktnavn i topplinjen og bred teknisk side */
.brand { min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 430px) { .brand span { font-size: .9rem; } .topbar .wrap { gap: .5rem; } }
@media (max-width: 960px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- DNS/DHCP(at)Work: hero med spørringer og regler ---------- */
.node.client { background: #1d3d6a; }
.node.server { background: #0b4f8f; text-align: right; }
.node.server .srv-state { font-size: .95rem; }
.packet.back { animation: travel-back 1s cubic-bezier(.45, .05, .35, 1) forwards; background: var(--snd); color: #fff; }
.packet.slow { animation-duration: 2.2s; }
@keyframes travel-back {
  0% { left: calc(100% - var(--pw, 8rem)); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 0; opacity: 0; }
}
.packet.lost { animation: travel-lost 1.6s ease-out forwards; }
@keyframes travel-lost {
  0% { left: calc(100% - var(--pw, 8rem)); opacity: 0; }
  20% { opacity: .9; }
  100% { left: calc(100% - var(--pw, 8rem)); opacity: 0; transform: translateY(1.2rem); }
}
.hero-controls button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.trapfeed td.ans { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); word-break: break-word; }
.off.nx { background: #fd7e14; color: #fff; }
.off.sf { background: #c62828; color: #fff; }
.off.rf { background: #6f42c1; color: #fff; }
.off.drop { background: #212529; color: #fff; }
.off.tc { background: #0b7ea3; color: #fff; margin-left: .25rem; }
:root[data-theme="dark"] .off.drop { background: #e6eaf0; color: #121a24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .off.drop { background: #e6eaf0; color: #121a24; } }
@media (max-width: 640px) { .trapfeed .col-ans { display: none; } .hero-controls button { padding: .3rem .55rem; } }
.warn-strip { margin-top: 1.5rem; font-size: var(--step--1); border: 1px solid color-mix(in srgb, var(--signal) 60%, var(--rule)); background: color-mix(in srgb, var(--signal) 12%, var(--surface)); border-radius: 8px; padding: .8rem 1rem; }
.warn-strip b { color: var(--signal-ink); }
.ports { margin-top: 2rem; }
.ports td:nth-child(2), .ports td:nth-child(3) { font-family: var(--font-mono); font-size: .82rem; white-space: nowrap; }
.ports tr.me td { background: var(--rcv-soft); }

/* Teknisk beskrivelse laget med pandoc (Markdown) i stedet for Asciidoctor */
.doc h2 .header-section-number, .doc-toc .toc-section-number { margin-right: .35em; }
.doc h2:first-child { margin-top: 0; }
.doc > p, .doc > ul, .doc > ol { max-width: 44rem; }
.doc pre { margin: 1.25rem 0; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--c); border-radius: 6px; padding: 1rem 1.1rem; overflow-x: auto; font-size: .8rem; line-height: 1.45; }
.doc pre code { background: none; padding: 0; font-size: inherit; }
/* Langt produktnavn i overskriften: skaler ned på smale skjermer */
@media (max-width: 520px) { .hero h1 { font-size: clamp(1.9rem, 9.6vw, 2.6rem); } }

/* ===== Felles navigasjon mellom verktøyene på tsivertsen.no ===== */
.suite { background: var(--surface); border-bottom: 1px solid var(--rule); font-size: .84rem; line-height: 1.2; }
.suite .wrap { display: flex; align-items: center; gap: .25rem 1rem; min-height: 2.5rem; }
.suite a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; border-radius: 6px; white-space: nowrap; }
.suite a:hover { color: var(--ink); }
.suite svg { width: 18px; height: 18px; flex: none; border-radius: 4px; }
.suite-home { font-weight: 700; color: var(--ink) !important; padding: .3rem .2rem; flex: none; }
.suite-homelbl { display: none; }
.suite-lbl { color: var(--muted); padding-left: 1rem; border-left: 1px solid var(--rule); flex: none; }
.suite-tools { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.suite-tools::-webkit-scrollbar { display: none; }
.suite-tools a { padding: .45rem .6rem; position: relative; }
.suite-tools a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.suite-tools a[aria-current] { color: var(--ink); font-weight: 700; }
.suite-tools a[aria-current]::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: 0; height: 2px; background: var(--signal); border-radius: 2px; }
.suite-home[aria-current] .suite-domain { text-decoration: underline 2px var(--signal); text-underline-offset: 4px; }
.suite-foot { display: inline-flex; align-items: center; gap: .4rem; color: inherit; font-weight: 700; }
.suite-foot svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .suite .wrap { gap: .5rem; padding-inline-end: 0; }
  .suite-lbl { display: none; }
  .suite-domain { display: none; }
  .suite-homelbl { display: inline; }
  .suite-tools { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 1.5rem; }
  .suite-tools a span { font-size: .8rem; }
}
@media print { .suite { display: none; } }

/* Sju verktøy: tettere navigasjonslinje */
.suite .wrap { gap: .25rem .75rem; }
.suite-lbl { display: none; }
.suite-tools { border-left: 1px solid var(--rule); padding-left: .5rem; gap: 0; }
.suite-tools a { padding: .45rem .4rem; }
.suite-tools a[aria-current]::after { left: .4rem; right: .4rem; }
@media (max-width: 1180px) {
  .suite-tools a svg { display: none; }
  .suite-tools { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 1.5rem; }
}
@media (max-width: 720px) { .suite-tools { border-left: 0; padding-left: 0; } }
