/* Palette taken from the portrait: black field, grey-green skin, one pale glint. */
:root {
  --bg: #000;
  --panel: #080a07;
  --line: #1b1f18;
  --line-2: #2a3025;
  --ink: #dfe3d8;
  --muted: #8d9585;
  --dim: #5a6154;
  --skin: #9aa88a;
  --glint: #e6efd6;
  --amber: #c9a86a;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, pre { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--glint); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--skin); color: #000; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--glint); color: #000; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

.eyebrow, .status, .tags, .count, .top nav, .facts dt, .foot, .hero-foot {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow { color: var(--skin); }

/* ---------- top bar ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter);
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1.05rem/1 var(--mono); letter-spacing: .04em; text-decoration: none;
}
/* half the face (skull, cheek, jaw) around the one eye; colours are set on the SVG itself */
.mark-face { width: 30px; height: 46px; flex: none; overflow: visible; }
.top { padding-block: 12px; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.top nav a:hover { color: var(--ink); border-color: var(--skin); }
.ext::after { content: " ↗"; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 860px);
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(64px, 11vh, 120px);
  border-bottom: 1px solid var(--line);
}
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art img {
  position: absolute; right: -6%; top: 0;
  height: 100%; width: auto; max-width: none;
  /* the photo's own background is pure black, so only the left edge needs dissolving */
  -webkit-mask-image: linear-gradient(to right, transparent 24%, #000 50%);
          mask-image: linear-gradient(to right, transparent 24%, #000 50%);
}
/* fine grain hides the softness of a small source image when it is enlarged */
.hero-art::after {
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .6  0 0 0 0 .65  0 0 0 0 .55  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-copy { position: relative; max-width: 620px; }
.hero h1 {
  margin: 18px 0 22px;
  font-weight: 300; font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.035em;
  text-wrap: balance;
}
.lede { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-foot { position: absolute; right: var(--gutter); bottom: 28px; color: var(--dim); }
.hero-foot span::after { content: ""; display: inline-block; width: 44px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--dim); }

.btn {
  display: inline-block; padding: 12px 20px;
  font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); border: 1px solid var(--line-2); border-radius: 2px;
  transition: border-color .15s, background-color .15s, color .15s;
}
.btn:hover { border-color: var(--skin); }
.btn.primary { background: var(--skin); border-color: var(--skin); color: #050604; }
.btn.primary:hover { background: var(--glint); border-color: var(--glint); }

/* ---------- sections ---------- */
main > section:not(.hero) {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(56px, 9vw, 112px) var(--gutter);
}
main > section + section:not(.featured) { border-top: 1px solid var(--line); }
h2 { font-weight: 300; font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.025em; line-height: 1.1; }
section p { color: var(--muted); }

.featured-body, .split {
  display: grid; gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
}
.featured-body { margin-top: 18px; }
.featured h2 { margin-bottom: 14px; color: var(--ink); }
.ver { font: 400 .5em var(--mono); color: var(--skin); letter-spacing: 0; vertical-align: middle; margin-left: .4em; }
.split h2 { margin-bottom: 16px; }
.split p + p { margin-top: 24px; }
.split p { max-width: 52ch; }

.term {
  font: .85rem/1.9 var(--mono); color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--skin);
  padding: 20px 22px; overflow-x: auto; white-space: pre;
}
.term .c { color: var(--dim); }
.term .p { color: var(--skin); user-select: none; }
.term i { color: var(--amber); font-style: normal; }

/* ---------- projects ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.count { color: var(--dim); }
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: none; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 9px 14px; cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--dim); }
.chip[aria-pressed="true"] { color: #050604; background: var(--skin); border-color: var(--skin); }
.search input {
  width: min(260px, 100%); font: .9rem var(--sans); color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 2px; padding: 9px 12px;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--skin); outline: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); padding: 24px 22px 20px; min-height: 230px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}
.card:hover { background: var(--panel); }
.card[hidden] { display: none; }
.card h3 { font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); }
.card > p:not([class]) { font-size: .92rem; line-height: 1.55; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .68rem; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.released { color: var(--skin); }
.status.progress { color: var(--amber); }
.status.design { color: var(--dim); }
.status.design::before { background: none; box-shadow: inset 0 0 0 1px currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; padding-top: 8px; color: var(--dim); font-size: .66rem; }
.links { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line); font: .78rem var(--mono); }
.links a { color: var(--ink); text-decoration: none; }
.links a::after { content: " →"; color: var(--skin); }
.links a:hover { color: var(--glint); }
.empty { padding: 48px 0; text-align: center; font-family: var(--mono); color: var(--dim); }

/* ---------- about ---------- */
.facts { border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--dim); }
.facts dd { text-align: right; max-width: 34ch; }
.facts dt { white-space: nowrap; padding-top: 3px; }
.facts dd a { color: var(--skin); }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--dim);
}

/* ---------- plain pages (404, package index) ---------- */
.plain { max-width: 860px; margin: 0 auto; padding: 120px var(--gutter) 80px; }
.plain h1 { font-weight: 300; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.03em; margin: 12px 0 16px; }
.plain p { color: var(--muted); }
.plain table { width: 100%; margin-top: 32px; border-collapse: collapse; font: .85rem var(--mono); }
.plain th { text-align: left; color: var(--dim); font-weight: 400; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px 8px 0; }
.plain th a { text-decoration: none; }
.plain td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.plain td a { color: var(--ink); text-decoration: none; }
.plain td a:hover { color: var(--glint); }
.plain hr, .plain td img, .plain th img { display: none; }
.plain td:first-child, .plain th:first-child { display: none; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .top nav a:not(.ext):nth-child(3) { display: none; }
  .hero { min-height: 0; padding-top: 0; flex-direction: column; align-items: stretch; }
  .hero-art { position: relative; inset: auto; height: 80vw; min-height: 260px; margin: 48px calc(-1 * var(--gutter)) -24vw; }
  .hero-art img { right: auto; left: 50%; transform: translateX(-58%); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); }
  .hero-foot { display: none; }
  .featured-body, .split { grid-template-columns: minmax(0, 1fr); }
  .search, .search input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- field notes: list on the home page ---------- */
.notes-list { margin-top: 28px; border-top: 1px solid var(--line); }
.notes-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.notes-list h3 { font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.015em; color: var(--ink); }
.notes-list a:hover h3 { color: var(--glint); }
.notes-list p { grid-column: 1; max-width: 70ch; font-size: .95rem; }
.notes-list .when { grid-column: 2; grid-row: 1; font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }

/* ---------- field notes: article page ---------- */
.note {
  --read: #b7beae; --drop: #cf8170;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding: 128px var(--gutter) 96px;
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start;
}
.note-toc { position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow-y: auto; font: .78rem/1.45 var(--mono); }
.note-toc ol { margin: 14px 0 22px; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.note-toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 1px solid transparent; }
.note-toc li a:hover { color: var(--ink); border-left-color: var(--skin); }
.note-toc .back, .pdf { color: var(--skin); text-decoration: none; }
.note-toc .back::before { content: "← "; }
.note-body { max-width: 980px; min-width: 0; }
.note-body section > p, .note-body .guides, .note-body .patterns, .note-body .spec { max-width: 820px; }
.note-head { padding-bottom: 36px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.note-head h1 { margin: 14px 0 20px; font-weight: 300; font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.note-head .lede { color: var(--read); max-width: 62ch; font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.note-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 28px 0 0; }
.note-meta dt, .spec dt, .rules figcaption { font: .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.note-meta dd { margin-top: 4px; font-size: .92rem; color: var(--ink); }
.note-meta a { color: var(--skin); }
.note-body section { padding-top: 56px; scroll-margin-top: 12px; }
.note-body section.sr-anchor { padding: 0; }
.note-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin-bottom: 18px; color: var(--ink); }
.note-body h2 .num { font: 400 .55em var(--mono); color: var(--skin); letter-spacing: .06em; margin-right: 14px; vertical-align: .25em; }
.note-body p, .note-body li { color: var(--read); }
.note-body section > p + p { margin-top: 14px; }

.order, .guides { list-style: none; padding: 0; }
.order { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.order a { display: flex; gap: 14px; align-items: baseline; height: 100%; padding: 13px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; }
.order a:hover { background: var(--panel); color: var(--glint); }
.order span { font: .72rem var(--mono); color: var(--skin); }

.guides { margin: 0; padding: 0; counter-reset: g; }
.guides li { counter-increment: g; position: relative; padding: 14px 0 14px 48px; border-top: 1px solid var(--line); }
.guides li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 0; top: 17px; font: .72rem var(--mono); color: var(--skin); }

.patterns { margin: 0 0 16px; }
.patterns li { position: relative; padding: 3px 0 3px 22px; }
.patterns li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 9px; height: 1px; background: var(--skin); }

.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { padding-top: 5px; }
.spec dd p + p { margin-top: 10px; }
.spec .or { margin: 8px 0; font: .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--skin); }
.spec ul { margin: 0; }
.spec li { position: relative; padding: 2px 0 2px 20px; }
.spec li::before { content: ""; position: absolute; left: 0; top: .8em; width: 9px; height: 1px; background: var(--skin); }

.rules { margin: 22px 0 0; }
.rules figcaption { margin-bottom: 8px; }
.rules .scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--panel); }
.rules table { width: 100%; border-collapse: collapse; font: .74rem/1.5 var(--mono); }
.rules .nb { white-space: nowrap; }
.rules th { text-align: left; font-weight: 400; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.rules .grp th { color: var(--skin); border-bottom-color: var(--line); padding-bottom: 6px; }
.rules td { padding: 9px 11px; border-top: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.rules tbody tr:first-child td { border-top: 0; }
.rules .vsep { border-left: 1px solid var(--line-2); }
.rules .orig { color: var(--dim); }
.rules .sect td { background: #0e110d; color: var(--skin); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.tag { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tag.neg { margin: 0 4px 0 0; color: var(--amber); border-color: currentColor; }
.act { white-space: nowrap; }
.act::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: currentColor; }
.act.accept { color: var(--skin); }
.act.drop { color: var(--drop); }
.act.other { color: var(--amber); }

@media (max-width: 900px) {
  .note { grid-template-columns: minmax(0, 1fr); padding-top: 96px; }
  .note-toc { display: none; }
  .spec > div { grid-template-columns: minmax(0, 1fr); }
  .notes-list a { grid-template-columns: minmax(0, 1fr); }
  .notes-list .when { grid-column: 1; grid-row: auto; }
}

/* ---------- paper: the PDF versions are printed from the same pages ---------- */
@page { size: letter; margin: 16mm 14mm 18mm; }
@page { @bottom-left { content: "alienbaby"; font: 8pt ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace; color: #6b7265; } }
@page { @bottom-right { content: counter(page) " / " counter(pages); font: 8pt ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace; color: #6b7265; } }
@media print {
  :root { --bg: #fff; --panel: #f5f6f2; --line: #d9dcd3; --line-2: #c3c8bb; --ink: #14170f; --muted: #4a5043; --dim: #6b7265; --skin: #55693f; --glint: #14170f; --amber: #8a6418; color-scheme: light; }
  html { font-size: 10.5pt; }
  body { background: #fff; }
  .top nav, .note-toc, .foot, .skip, .pdf-link { display: none !important; }
  .top { position: static; padding: 0 0 14pt; }
  .mark { color: #14170f; }
  .note { --read: #262a20; --drop: #a8402c; display: block; max-width: none; padding: 0; }
  .note-body { max-width: none; }
  .note-head { padding-bottom: 18pt; }
  .note-head h1 { font-size: 30pt; }
  .note-body section { padding-top: 22pt; }
  .note-body h2 { break-after: avoid; }
  .guides li, .rules, .order a, .rules tr { break-inside: avoid; }
  .spec > div { display: block; }
  .spec dd { margin-top: 4pt; }
  .spec dd p, .spec li { break-inside: avoid; }
  .note-body section > p, .note-body .guides, .note-body .patterns, .note-body .spec { max-width: none; }
  .rules .scroll { overflow: visible; }
  .rules table { font-size: 6.2pt; }
  .rules td, .rules th { padding: 4.5pt 3.5pt; white-space: nowrap; }
  .rules td:first-child, .rules th:first-child { padding-left: 6pt; }
  .tag { font-size: 4.8pt; padding: 0 2.5pt; margin-left: 2pt; }
  .rules .sect td { background: #e9ece3; }
  .order a, .note-meta a { color: #14170f; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- NAT Architecture 1.1: colour in the examples ---------- */
.v11 { --c-static: #8fbf7a; --c-hide: #d9a94e; --c-port: #6fb3d6; --c-none: #5a6154; }
.v11 .rules tbody td:first-child { box-shadow: inset 3px 0 0 var(--edge, transparent); }
.v11 .e-none { --edge: var(--c-none); }
.v11 .e-static { --edge: var(--c-static); }
.v11 .e-hide { --edge: var(--c-hide); }
.v11 .e-port { --edge: var(--c-port); }
.v11 .e-multi td:first-child { box-shadow: none; background: linear-gradient(to bottom, var(--c-hide) 0 34%, var(--c-static) 34% 67%, var(--c-port) 67%) left / 3px 100% no-repeat; }
.v11 .x-static { color: var(--c-static); background: rgb(143 191 122 / .08); }
.v11 .x-hide { color: var(--c-hide); background: rgb(217 169 78 / .08); }
.v11 .x-port { color: var(--c-port); background: rgb(111 179 214 / .09); }
.v11 .t-static { color: var(--c-static); border-color: currentColor; }
.v11 .t-hide { color: var(--c-hide); border-color: currentColor; }
.v11 .t-group { color: #a99bd0; border-color: rgb(169 155 208 / .5); }
.v11 .note-cell { color: var(--muted); font-family: var(--sans); font-size: .8rem; min-width: 170px; }
.v11 .decide td { font-family: var(--sans); font-size: .88rem; color: var(--read); }
.v11 .decide td a { color: var(--ink); text-decoration: none; }
.v11 .decide td a:hover { color: var(--glint); }
.v11 .secnum { font: .72rem var(--mono); color: var(--skin); margin-right: 6px; }
.v11 .legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 16px; font: .74rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.v11 .legend li { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.v11 .legend li::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--k); }
.v11 .l-none { --k: var(--c-none); }
.v11 .l-static { --k: var(--c-static); }
.v11 .l-hide { --k: var(--c-hide); }
.v11 .l-port { --k: var(--c-port); }
.v11 .l-multi { --k: linear-gradient(to bottom, var(--c-hide) 0 34%, var(--c-static) 34% 67%, var(--c-port) 67%); }
.v11 .spec .term { margin-top: 12px; font-size: .78rem; }
.note-body a { color: var(--skin); }

.v11.note, .v11 .note { max-width: 1500px; }
.v11 .note-body { max-width: 1130px; }
.v11 .rules table { font-size: .7rem; }
.v11 .rules td { padding: 8px 8px; }
.v11 .rules td:first-child, .v11 .rules th:first-child { padding-left: 14px; }
.v11 .rules .cmt td { border-top: 0; padding-top: 0; padding-bottom: 9px; color: var(--muted); font: .78rem var(--sans); }
.v11 .rules .cmt td::before { content: "↳ "; color: var(--dim); }
.v11 .e-multi.cmt td:first-child { background: linear-gradient(to bottom, var(--c-port), var(--c-port)) left / 3px 100% no-repeat; }
.v11 .note { gap: clamp(28px, 3vw, 44px); grid-template-columns: 200px minmax(0, 1fr); }

/* NAT 1.1: each requirement is its own block, with a clear divider between alternatives */
.v11 .reqs .req { margin: 0; padding: 11px 14px; background: var(--panel); border: 1px solid var(--line-2); border-left: 2px solid var(--skin); color: var(--ink); }
.v11 .reqs .or { display: flex; align-items: center; gap: 12px; margin: 9px 0; }
.v11 .reqs .or::before, .v11 .reqs .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.v11 .reqs .or span { padding: 2px 12px; border: 1px solid var(--amber); border-radius: 999px; color: var(--amber); font: 600 .7rem var(--mono); letter-spacing: .18em; }

/* NAT 1.1: list markers. A small green diamond instead of a dash; Uses items are separated rows. */
.v11 .spec li, .v11 .patterns li, .marks .patterns li { padding-left: 26px; }
.v11 .spec li::before, .v11 .patterns li::before, .marks .patterns li::before { left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 1px; background: var(--skin); transform: rotate(45deg); }
.v11 .spec ul { margin: -4px 0; }
.v11 .spec li { padding-top: 9px; padding-bottom: 9px; color: var(--ink); }
.v11 .spec li + li { border-top: 1px solid var(--line); }
.v11 .spec li::before { top: calc(9px + .5em); }
.v11 .patterns li, .marks .patterns li { padding-top: 5px; padding-bottom: 5px; }
.v11 .patterns li::before, .marks .patterns li::before { top: calc(5px + .5em); }
.marks .patterns li { color: var(--ink); }

/* Security Policy 1.0: colour in the examples (shares the .v11 page styles) */
.v11 { --c-accept: #8fbf7a; --c-drop: #d9796a; }
.v11 .e-accept { --edge: var(--c-accept); }
.v11 .e-drop { --edge: var(--c-drop); }
.v11 .x-accept { background: rgb(143 191 122 / .08); }
.v11 .x-drop { background: rgb(217 121 106 / .10); }
.v11 .act.accept { color: var(--c-accept); }
.v11 .act.drop { color: var(--c-drop); }
.v11 .t-role { color: var(--c-hide); border-color: currentColor; }
.v11 .t-updatable, .v11 .t-category { color: var(--c-port); border-color: currentColor; }
.v11 .l-accept { --k: var(--c-accept); }
.v11 .l-drop { --k: var(--c-drop); }
.v11 .rules .sect td { box-shadow: none !important; padding-left: 14px; }
.v11 .note-body p .tag { vertical-align: 1px; }
