/* skl.ai: SKL's black and white, from the SKL design system. Squares are the only shape, JetBrains Mono is SKL's
   voice (the name, headings, labels and code), Inter is for reading. */
/* the fonts, served with the site under their own licences (fonts/*.txt), so no visitor's address goes to a font
   service; each is one variable file covering every weight the site sets */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Variable-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Variable-latin.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
:root {
  --paper: #F5F5F3;
  --paper-soft: #ECECE8;
  --rule: #DCDCD7;
  --ink: #111214;
  --ink-soft: #5C5E62;
  /* the reversed band: paper on ink in the light theme, a raised dark band in the dark one */
  --inv-bg: #111214; --inv-fg: #EDEDEA; --inv-soft: #A3A5A8; --inv-rule: #2E3033; --inv-card: #18191B;
  /* a whole row or card lit in ink, such as SKL's entry in a table: solid ink in the light theme; in the dark one,
     where ink is near white, a raised band edged in ink, so it never turns into a white slab. A plain card beside a
     lit one is edged in ink in the light theme and in rule in the dark one, so the lit card stays the one that
     stands out. */
  --lit-fill: var(--ink); --lit-text: var(--paper); --lit-edge: var(--ink); --unlit-edge: var(--ink);
  /* the rule over a heading, a group of points or a table's head: a mid grey, firmer than a card's edge and well short
     of ink, in either theme and on a reversed band, so it marks a group without pulling the eye from its words */
  --divider: #A9AAA6; --inv-divider: #4A4C50;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wide: 1040px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1011; --paper-soft: #18191B; --rule: #2A2B2E; --ink: #EDEDEA; --ink-soft: #A3A5A8;
    --inv-bg: #18191B; --inv-fg: #EDEDEA; --inv-soft: #A3A5A8; --inv-rule: #33353A; --inv-card: #0F1011;
    --lit-fill: var(--paper-soft); --lit-text: var(--ink); --lit-edge: var(--ink); --unlit-edge: var(--rule);
    --divider: #45474B; --inv-divider: #4E5055;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1011; --paper-soft: #18191B; --rule: #2A2B2E; --ink: #EDEDEA; --ink-soft: #A3A5A8;
  --inv-bg: #18191B; --inv-fg: #EDEDEA; --inv-soft: #A3A5A8; --inv-rule: #33353A; --inv-card: #0F1011;
  --lit-fill: var(--paper-soft); --lit-text: var(--ink); --lit-edge: var(--ink); --unlit-edge: var(--rule);
  --divider: #45474B; --inv-divider: #4E5055;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
p, h1, h2, h3, h4, ul, ol, figure, pre { margin: 0; }
h1, h2, h3, h4 { font-family: var(--mono); text-wrap: balance; }
code, pre { font-family: var(--mono); }
img, svg { max-width: 100%; }

/* layout: bands span the page and hold the gutter; .wrap holds the width */
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--wide); margin-inline: auto; }
.measure { max-width: 66ch; }

/* type */
.label { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.h1 { font-size: clamp(36px, 5.2vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
.h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.soft { color: var(--ink-soft); }
.small { font-size: 15px; line-height: 1.55; }
.more { font: 500 14px/1.4 var(--mono); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.more::after { content: '\2192'; }
.more:hover { text-decoration: underline; }

/* a chip: a standard, a layer or a group of layers, in mono, edged in rule */
.chip { display: inline-flex; align-items: center; font: 500 12.5px/1.3 var(--mono); color: var(--ink); padding: 3px 8px; border: 1px solid var(--rule); border-radius: 5px; background: var(--paper); text-decoration: none; white-space: nowrap; }
a.chip:hover { border-color: var(--ink); }
.chip.soft { color: var(--ink-soft); }

/* buttons: one primary per page, Get updates; the rest are ghosts or links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1.2 var(--sans); border-radius: 8px; padding: 12px 20px; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); white-space: nowrap; text-decoration: none; transition: transform .15s linear; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.sm { font-size: 14px; padding: 8px 14px; }

/* a heading that a link lands on clears the menu bar */
:where(h1, h2)[id] { scroll-margin-top: 88px; }
/* skip to content: off screen until a keyboard reaches it, then at the top of the page */
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 600 15px/1.2 var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }

/* the menu */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 8px 28px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 700 20px/1 var(--mono); letter-spacing: -0.02em; }
.lockup svg { width: 22px; height: 22px; fill: currentColor; }
.lockup svg path { fill: none; stroke: currentColor; stroke-width: 4.4; }
.nav nav { flex: 1; min-width: 0; }
.nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav ul a { font: 500 15px/1.4 var(--sans); text-decoration: none; color: var(--ink-soft); }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }
.nav ul a[aria-current="page"] { text-decoration: underline; }
@media (max-width: 640px) {
  .nav .wrap { gap: 6px 16px; }
  .nav nav { order: 3; flex-basis: 100%; }
  .nav ul { gap: 4px 18px; }
}
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }

/* sections */
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec + .sec:not(.inv) { border-top: 1px solid var(--rule); }
.sec-h { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-h .lede { max-width: 66ch; }
.inv { --paper: var(--inv-bg); --ink: var(--inv-fg); --ink-soft: var(--inv-soft); --rule: var(--inv-rule); --paper-soft: var(--inv-card); --divider: var(--inv-divider); background: var(--paper); color: var(--ink); }
.inv + .sec { border-top: 0; }

/* hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero + .sec { border-top: 1px solid var(--rule); }
.hero-code { font-size: 12.5px !important; }
.hero-t { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-t .opening { font-size: 15px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .hero-code { font-size: 12px !important; } .code pre { font-size: 12.5px; padding: 12px; } }
.page-h { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.page-h .wrap { display: flex; flex-direction: column; gap: 18px; }
.page-h .lede { max-width: 62ch; }
.page-h .kmark { width: 56px; height: 56px; color: var(--ink); }

/* Get updates action bar (click-to-compose + copy) */
.signup-act { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.closing .signup-act { justify-content: center; }
.signup-done { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
/* visually hidden for screen readers */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* code: SKL as it is written */
.code { border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); overflow: hidden; min-width: 0; }
.code .code-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.code .ttl { font: 600 14px/1.3 var(--mono); }
.code .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.code pre { padding: 14px 16px; overflow-x: auto; font: 400 14px/1.6 var(--mono); }
.code .c { color: var(--ink-soft); }
.code .seg + .seg { border-top: 1px solid var(--rule); }
.ann .seg { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); }
.ann .seg-k { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-right: 1px solid var(--rule); background: var(--paper); }
.ann .seg-k b { font: 600 14px/1.3 var(--mono); }
.ann .seg-k span { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
@media (max-width: 640px) {
  .ann .seg { grid-template-columns: minmax(0, 1fr); }
  .ann .seg-k { border-right: 0; border-bottom: 1px solid var(--rule); padding: 10px 14px; }
}
figcaption, .cap { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.card p { font-size: 15.5px; line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 6px; }
.plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.plain > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.plain h3 { font-size: 16px; line-height: 1.35; }
.plain p { font-size: 15.5px; line-height: 1.55; }
.plain.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards, .cards.four, .plain, .plain.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards, .cards.two, .cards.four, .plain, .plain.four { grid-template-columns: minmax(0, 1fr); } }

/* the SQL parallel */
.pull { margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1.5px solid var(--divider); display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px 32px; }
.pull p:last-child { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; }
.pull + .pull { margin-top: 24px; }
@media (max-width: 700px) { .pull { grid-template-columns: minmax(0, 1fr); } }

/* steps: one call, step by step, as numbered boxes joined by arrows (one agent's call, on Patterns); on a narrow
   screen the steps stack */
.pl-s { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; }
.pl-s > li { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); }
.pl-s .n { font: 600 13px/1 var(--mono); color: var(--ink-soft); }
.pl-s h3 { font-size: 16px; line-height: 1.3; }
.pl-s li > p:not(.n) { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.pl-s > li:not(:last-child)::after { content: ''; position: absolute; top: 50%; left: 100%; width: 34px; border-top: 1.5px solid var(--ink); }
.pl-s > li:not(:last-child)::before { content: ''; position: absolute; top: calc(50% - 5.5px); left: calc(100% + 31px); border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pl figcaption, .sq figcaption { margin-top: 14px; }
.pl-note { margin-top: clamp(24px, 3vw, 32px); padding-top: 18px; border-top: 1px solid var(--rule); max-width: 66ch; font-size: 17px; line-height: 1.55; }
.pl-note b { font-weight: 600; }
@media (max-width: 1000px) {
  .pl-s { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pl-s > li:not(:last-child)::after { top: 100%; left: 32px; width: 0; height: 27px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .pl-s > li:not(:last-child)::before { top: calc(100% + 27px); left: calc(32px - 5.25px); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; }
}

/* how SKL works: one call as a sequence of messages, the way protocol calls are drawn. Four parties across the top,
   each with its line running down; each message an arrow from its sender's line to its receiver's, in order, with
   answers dashed. Each message spans its sender's and receiver's columns, and its line runs between their centers,
   half a column in from each end (50% / the columns it spans). Its words sit between the sender's line and the next
   one, 16px clear of both, so no label crosses or covers a line (--pl and --pr, set by sequence() in common.py). The
   kinds are k-call, k-back, k-no and k-note, never bare words that other parts of the site use. On a phone, a numbered
   list. */
.sq-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto repeat(var(--rows), minmax(54px, auto)); }
.sq-h { grid-row: 1; grid-column: var(--c); min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; margin: 0 8px 8px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); text-align: center; }
.sq-h b { font: 600 14px/1.3 var(--mono); }
.sq-h span { font-size: 13px; line-height: 1.3; color: var(--ink-soft); }
.sq-h.k { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.sq-ll { grid-row: 2 / span var(--rows); grid-column: var(--c); justify-self: center; border-left: 1.5px dashed var(--ink-soft); }
.sq-ll.k { border-left: 2px solid var(--ink); }
.sq-m { position: relative; z-index: 1; grid-row: var(--r); grid-column: var(--c1) / var(--c2); min-width: 0; display: flex; align-items: flex-end; justify-content: center; padding: 8px calc(var(--pr) + 16px) 22px calc(var(--pl) + 16px); text-align: center; }
.sq-m .tx { font-size: 14.5px; line-height: 1.35; }
.sq-m::before { content: ''; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); bottom: 12px; border-top: 1.5px solid var(--ink); }
.sq-m::after { content: ''; position: absolute; bottom: 6.75px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.sq-m.to-r::after { right: calc(50% / var(--n)); border-left: 9px solid var(--ink); }
.sq-m.to-l::after { left: calc(50% / var(--n)); border-right: 9px solid var(--ink); }
.sq-m.k-back::before, .sq-m.k-no::before { border-top-style: dashed; }
.sq-m.k-no::before { border-top-color: var(--ink-soft); }
.sq-m.k-no.to-l::after { border-right-color: var(--ink-soft); }
.sq-m.k-no .tx { color: var(--ink-soft); }
.sq-m.k-note { align-items: center; padding: 6px 0; }
.sq-m.k-note::before, .sq-m.k-note::after { display: none; }
.sq-m.k-note .tx { padding: 7px 12px; border: 1px solid var(--ink); border-radius: 6px; background: var(--paper-soft); font-size: 14px; }
.sq .ft { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .sq-g { display: flex; flex-direction: column; gap: 8px; counter-reset: sq; }
  .sq-h, .sq-ll { display: none; }
  .sq-m, .sq-m.k-note { display: block; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); text-align: left; counter-increment: sq; }
  .sq-m.k-back, .sq-m.k-no { border-style: dashed; }
  .sq-m::before, .sq-m::after { display: none; }
  .sq-m .tx, .sq-m.k-note .tx { display: block; padding: 0; border: 0; background: none; font-size: 15px; }
  .sq .ft { position: static; width: auto; height: auto; margin: 0 0 4px; overflow: visible; clip: auto; white-space: normal; display: block; font: 500 12px/1.4 var(--mono); color: var(--ink-soft); }
  .sq .ft::before { content: counter(sq) '. '; }
}

/* the stack: SKL's layers, Identity at the foundation, in two groups, with policies and versions as two columns that
   stand beside every layer. The figure answers to its own width, so the same drawing fits the front page, Learn's
   column and a phone. */
.ck { container: ck / inline-size; }
.ck-g { display: grid; grid-template-columns: [g] 150px [l] minmax(0, 1fr) [p1] 152px [p2] 152px; gap: 6px 10px; }
.ck-grp { grid-column: g; position: relative; display: flex; align-items: center; justify-content: flex-end; padding-right: 16px; border-right: 1.5px solid var(--ink); text-align: right; font: 600 13px/1.4 var(--mono); }
.ck-grp::before, .ck-grp::after { content: ''; position: absolute; right: -1.5px; width: 10px; border-top: 1.5px solid var(--ink); }
.ck-grp::before { top: 0; }
.ck-grp::after { bottom: 0; }
.ck-grp.sw { grid-row: 1 / 4; }
.ck-grp.dm { grid-row: 4 / 8; }
.ck-l { grid-column: l; grid-row: var(--r); min-width: 0; min-height: 58px; display: grid; grid-template-columns: minmax(0, 142px) minmax(0, 1fr); align-items: center; gap: 4px 16px; padding: 10px 16px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: inherit; text-decoration: none; }
.ck-l.dm { background: var(--paper-soft); }
.ck-l b, .ck-p b { font: 600 16px/1.3 var(--mono); letter-spacing: -0.01em; }
.ck-l .q { font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.ck-p { grid-row: 1 / 8; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper-soft); color: inherit; text-decoration: none; }
.ck-p.p1 { grid-column: p1; }
.ck-p.p2 { grid-column: p2; }
.ck-p .q { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.ck-p .all { margin-top: auto; font: 500 12.5px/1.35 var(--mono); color: var(--ink-soft); }
.ck-l:hover, .ck-p:hover { border-color: var(--ink); }
@container ck (max-width: 900px) {
  .ck-g { grid-template-columns: [l] minmax(0, 1fr) [p1] 40px [p2] 40px; gap: 6px; }
  .ck-grp { grid-column: l; justify-content: flex-start; padding: 12px 0 2px; border-right: 0; text-align: left; }
  .ck-grp::before, .ck-grp::after { display: none; }
  .ck-grp.sw { grid-row: 1; padding-top: 0; }
  .ck-grp.dm { grid-row: 5; }
  .ck-l { grid-row: var(--rn); grid-template-columns: minmax(0, 1fr); padding: 10px 12px; }
  .ck-l .q { font-size: 14.5px; }
  .ck-p { grid-row: 1 / 10; align-items: center; padding: 12px 0; }
  .ck-p b { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 14px; }
  .ck-p .q, .ck-p .all { display: none; }
}

/* a protocol, not a platform: the same four systems in the same places, on one platform around its one data model,
   and with SKL, each keeping its own, joined around the edges by mappings with nothing in the middle */
.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(20px, 3vw, 32px); }
.cmp figure { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--rule); border-radius: 6px; }
.cmp-h { font: 600 16px/1.3 var(--mono); }
.cmp figcaption { margin-top: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.sys { --bh: 62px; --cg: 72px; --rg: 110px; --top: 44px; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rg) var(--cg); padding: var(--top) 16px 16px; border: 1.5px solid transparent; border-radius: 8px; }
.sys .s { position: relative; z-index: 1; min-width: 0; height: var(--bh); display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); }
.sys .s b { font: 600 14px/1.3 var(--mono); }
.sys .s span { font-size: 13px; line-height: 1.3; color: var(--ink-soft); }
.sys.platform { border: 1.5px dashed var(--ink-soft); }
.sys .frame-l { position: absolute; top: 13px; left: 16px; font: 600 13px/1.2 var(--mono); }
.sys .hub { position: absolute; z-index: 1; left: 50%; top: calc(var(--top) + var(--bh) + var(--rg) / 2); width: min(60%, 230px); height: 60px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 6px; background: var(--ink); color: var(--paper); text-align: center; }
.sys .hub b { font: 600 14px/1.3 var(--mono); }
.sys .hub span { font-size: 12.5px; line-height: 1.3; }
.sys .sp { position: absolute; height: calc(var(--rg) / 2 - 30px); border-left: 1.5px solid var(--ink); }
.sys .sp.a, .sys .sp.b { top: calc(var(--top) + var(--bh)); }
.sys .sp.c, .sys .sp.d { top: calc(var(--top) + var(--bh) + var(--rg) / 2 + 30px); }
.sys .sp.a, .sys .sp.c { left: 34%; }
.sys .sp.b, .sys .sp.d { left: 66%; }
.sys .lk { position: absolute; border: 0 solid var(--ink); }
.sys .lk em { position: absolute; font: 500 12px/1 var(--mono); font-style: normal; color: var(--ink-soft); white-space: nowrap; }
.sys .lk.t, .sys .lk.b { left: calc(50% - var(--cg) / 2); width: var(--cg); border-top-width: 1.5px; }
.sys .lk.t { top: calc(var(--top) + var(--bh) / 2); }
.sys .lk.b { top: calc(var(--top) + var(--bh) * 1.5 + var(--rg)); }
.sys .lk.t em, .sys .lk.b em { left: 50%; bottom: 7px; transform: translateX(-50%); }
.sys .lk.l, .sys .lk.r { top: calc(var(--top) + var(--bh)); height: var(--rg); border-left-width: 1.5px; }
.sys .lk.l { left: calc(16px + (100% - 32px - var(--cg)) / 4); }
.sys .lk.r { left: calc(100% - 16px - (100% - 32px - var(--cg)) / 4); }
.sys .lk.l em { left: 9px; top: 50%; transform: translateY(-50%); }
.sys .lk.r em { right: 9px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
  .cmp { grid-template-columns: minmax(0, 1fr); }
  .cmp figure { padding: 14px; }
  .sys { --bh: 60px; --cg: 58px; --rg: 100px; padding-inline: 10px; }
  .sys .lk.l { left: calc(10px + (100% - 20px - var(--cg)) / 4); }
  .sys .lk.r { left: calc(100% - 10px - (100% - 20px - var(--cg)) / 4); }
  .sys .s { padding: 0 10px; }
  .sys .lk em { font-size: 12px; }
  .sys.skl { --top: 16px; }
}

/* patterns: six ways SKL is put to work, each with one drawing, its points and the layers it uses */
.pt { scroll-margin-top: 72px; }
.plain.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-p { margin-top: clamp(32px, 4vw, 44px); }
.pt-l { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.pt-l .label { margin-right: 4px; }
/* an arrow between two parts of a drawing, its label above it; on a narrow screen it points down */
.ar { position: relative; align-self: center; height: 0; margin: 0 4px; border-top: 1.5px solid var(--ink); }
.ar::after { content: ''; position: absolute; right: 0; top: -6.75px; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ar em { position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%); font: 500 12.5px/1.2 var(--mono); font-style: normal; color: var(--ink-soft); white-space: nowrap; }
/* a change made two ways, its steps on a grid of six so the lanes line up; the SKL lane's long arrow stands over the
   two steps it doesn't take */
.lanes { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--rule); border-radius: 6px; }
.lane { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 14px; }
.lane-h { font: 600 14px/1.3 var(--mono); }
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr) 26px) minmax(0, 1fr); }
.st { min-width: 0; display: flex; align-items: center; min-height: 62px; padding: 10px 11px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); font: 500 13px/1.35 var(--mono); }
.lane.skl .st { border-color: var(--ink); }
.st.out { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ar.long { grid-column: 6 / 11; }
.lanes figcaption { margin-top: 4px; }
/* a record on its way to a partner's system, translated by the mappings between them */
.xl-g { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.2fr) 44px minmax(0, 1fr); align-items: center; }
.rec, .maps { min-width: 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); }
.maps { border: 1.5px solid var(--ink); background: var(--paper); }
.rec-h { padding: 10px 14px; border-bottom: 1px solid var(--rule); font: 600 13.5px/1.3 var(--mono); }
.rec pre { padding: 12px 14px; overflow-x: auto; font: 400 13.5px/1.6 var(--mono); }
.maps ul { list-style: none; margin: 0; padding: 4px 14px 8px; }
.maps li { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; }
.maps li + li { border-top: 1px solid var(--rule); }
.maps .k { font: 500 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.maps .pr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 500 13.5px/1.4 var(--mono); }
.maps .pr i { font-style: normal; color: var(--ink-soft); }
.xl .ar { margin: 0 6px; }
.xl figcaption, .tm figcaption, .fe figcaption, .iv figcaption { margin-top: 14px; }
/* one term, read three ways: the term on the left, and what a person, software, and an AI model each read of it */
.tm-g { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.1fr); align-items: center; }
.tm-t { min-width: 0; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); }
.tm-t dl { margin: 0; padding: 4px 14px 8px; }
.tm-t dl > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; padding: 8px 0; }
.tm-t dl > div + div { border-top: 1px solid var(--rule); }
.tm-t dt { font: 500 12px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.tm-t dd { min-width: 0; margin: 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.tm-t dd code { font-size: 13.5px; }
.tm-r { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tm-r > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 4px 14px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); }
.tm-r .label { grid-column: 1 / -1; }
.tm-r b { font: 600 14px/1.35 var(--mono); }
.tm-r span { font-size: 14.5px; line-height: 1.4; }
.tm .ar { margin: 0 6px; }
/* one capability, and what can answer it: a caller calls it, and a binding says which of the three answers */
.iv { display: flex; flex-direction: column; }
.iv-b { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); }
.iv-b b { font: 600 14.5px/1.3 var(--mono); }
.iv-b span { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.iv-c, .iv-k { align-self: center; width: min(100%, 440px); }
.iv-k { border: 1.5px solid var(--ink); background: var(--paper); }
.iv-v { position: relative; align-self: center; width: 0; height: 46px; border-left: 1.5px solid var(--ink); }
.iv-v::after { content: ''; position: absolute; left: -6.75px; bottom: 0; border-top: 9px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; }
.iv-v em { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 500 12.5px/1.2 var(--mono); font-style: normal; color: var(--ink-soft); white-space: nowrap; }
.iv-o { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 22px; }
.iv-o::before { content: ''; position: absolute; top: 0; left: calc((100% - 32px) / 6); right: calc((100% - 32px) / 6); border-top: 1.5px solid var(--ink); }
.iv-o > div { position: relative; }
.iv-o > div::before { content: ''; position: absolute; top: -23px; left: 50%; height: 22px; border-left: 1.5px solid var(--ink); }
.iv-o > div:not(.on) { border-style: dashed; border-color: var(--ink-soft); background: transparent; }
.iv-o > .on { border: 1.5px solid var(--ink); background: var(--paper); }
/* a page as definitions, and the screen it is drawn as */
.fe-g { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); align-items: center; }
.fe-d { min-width: 0; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); }
.fe-d ul { list-style: none; margin: 0; padding: 4px 14px 8px; }
.fe-d li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.fe-d li + li { border-top: 1px solid var(--rule); }
.fe-d li.in { padding-left: 22px; }
.fe-d li.in::before { content: ''; position: absolute; left: 4px; top: 0; height: 22px; width: 10px; border-left: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); }
.fe-d b { font: 600 14px/1.3 var(--mono); }
.fe-d span { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.fe .ar { margin: 0 6px; }
.fe-s { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; border: 1px solid var(--ink-soft); border-radius: 8px; background: var(--paper-soft); overflow: hidden; }
.fe-bar { padding: 10px 16px; border-bottom: 1px solid var(--rule); background: var(--paper); font: 600 14px/1.3 var(--mono); }
.fe-f { display: flex; flex-direction: column; gap: 4px; margin: 0 16px; }
.fe-f span { font-size: 12.5px; line-height: 1.3; color: var(--ink-soft); }
.fe-f b { padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); font-size: 14.5px; font-weight: 500; }
.fe-btn { align-self: flex-start; margin: 4px 16px 0; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 6px; font: 600 14px/1.2 var(--sans); }
/* arrows point down where a drawing stacks */
@media (max-width: 980px) {
  .lanes { padding: 16px; gap: 22px; }
  .lane { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .chain { grid-template-columns: minmax(0, 1fr); }
  .st { min-height: 0; }
  .lanes .ar { justify-self: start; width: 0; height: 22px; margin: 0 0 0 26px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .lanes .ar::after { right: auto; top: auto; left: -6.75px; bottom: 0; border-top: 9px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 0; }
  .lanes .ar.long { grid-column: auto; height: 44px; }
  .lanes .ar em { left: 16px; bottom: auto; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 860px) {
  .xl-g, .tm-g, .fe-g { grid-template-columns: minmax(0, 1fr); }
  .xl .ar, .tm .ar, .fe .ar { justify-self: start; width: 0; height: 30px; margin: 0 0 0 26px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .xl .ar::after, .tm .ar::after, .fe .ar::after { right: auto; top: auto; left: -6.75px; bottom: 0; border-top: 9px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 0; }
  .xl .ar em, .tm .ar em, .fe .ar em { left: 16px; bottom: auto; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 640px) {
  .iv-c, .iv-k { width: 100%; }
  .iv-v { align-self: flex-start; margin-left: 26px; height: 52px; }
  .iv-v em { width: min(260px, calc(100vw - 110px)); white-space: normal; }
  .iv-o { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 0; }
  .iv-o::before, .iv-o > div::before { display: none; }
  .tm-r > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .plain.two { grid-template-columns: minmax(0, 1fr); } }

/* one domain at a time: three panels of the same four systems, those described in SKL solid, those not yet described
   dashed, as they are, joined around the edges with nothing in the middle */
.grow { margin-top: clamp(36px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.grow-t { max-width: 66ch; display: flex; flex-direction: column; gap: 10px; }
.grow-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gp { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1.5px solid var(--divider); }
.gp-h { font: 600 13.5px/1.3 var(--mono); }
.sys.dp { --bh: 54px; --cg: 64px; --rg: 56px; --top: 8px; padding: var(--top) 0 8px; border: 0; }
.sys.dp .s { padding: 0 10px; }
.sys.dp .s b { font-size: 13px; }
.sys.dp .s span { font-size: 12px; }
.sys.dp .s.on { border-color: var(--ink); background: var(--paper); }
.sys.dp .s.off { border-style: dashed; border-color: var(--ink-soft); background: transparent; }
.sys.dp .s.off b { font-weight: 500; color: var(--ink-soft); }
.sys.dp .lk.l { left: calc((100% - var(--cg)) / 4); }
.sys.dp .lk.r { left: calc(100% - (100% - var(--cg)) / 4); }
.sys.dp .lk em { font-size: 12px; }
.grow-f figcaption { margin-top: 12px; }
@media (max-width: 700px) { .grow-g { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
/* One domain at a time: why there is no big switch-over, with its sources, then what each domain leaves behind */
.grow-why { max-width: 66ch; display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(28px, 4vw, 40px); }
.grow-why .src { font-size: 13.5px; color: var(--ink-soft); }
.grow-why .src a { color: inherit; }
.grow-a { margin-top: clamp(36px, 5vw, 52px); }
.grow-a + .pt-p { margin-top: 16px; }

/* web standards */
.stds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.stds > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stds b { font: 700 19px/1.2 var(--mono); }
.stds .rel { font: 600 13.5px/1.35 var(--mono); color: var(--ink); }
.stds p:not(.rel) { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) { .stds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stds { grid-template-columns: minmax(0, 1fr); } }

/* questions */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.faq > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.faq h3 { font-size: 17px; line-height: 1.35; }
.faq p { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* the closing band, with the Field: definitions joined around the edges */
.closing { position: relative; overflow: hidden; text-align: center; }
.closing .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.closing .lede { max-width: 52ch; }
.closing .cl-o { max-width: 50ch; margin: 0; font-size: 15px; line-height: 1.55; }
.field { position: absolute; top: 50%; left: 50%; width: 1200px; height: 480px; transform: translate(-50%, -50%); pointer-events: none; opacity: .3; }
.field rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.field rect.lit { fill: var(--ink); stroke: none; }
.field path { stroke: var(--ink); stroke-width: 1.6; fill: none; }
.field path.far { stroke-width: 1; stroke-dasharray: 3 5; opacity: .7; }
.field .drift { animation: drift 14s linear infinite alternate; }
@keyframes drift { to { transform: translateY(-8px); } }
@media (max-width: 1100px) { .field { display: none; } }

/* docs pages: a contents column and the text */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 0 clamp(56px, 8vw, 96px); }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.4; }
.toc a { position: relative; padding-left: 16px; text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--ink); }
.toc .sub { padding-left: 30px; font-size: 13.5px; }
.toc .label { margin-bottom: 6px; padding-left: 16px; }
/* the section being read: its link in ink, with a small square beside it (site.js sets aria-current as you scroll) */
.toc a[aria-current] { color: var(--ink); font-weight: 600; }
.toc a[aria-current]::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; background: var(--ink); }
.toc .sub[aria-current]::before { left: 14px; }
.doc-body { min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 0; }
.doc-body > section { padding-block: 40px; border-top: 1px solid var(--rule); scroll-margin-top: 88px; }
.doc-body > section:first-child { border-top: 0; padding-top: 0; }
.doc-body h2 { margin-bottom: 14px; }
.doc-body p + p { margin-top: 14px; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; display: none; } }

/* layer by layer, on Learn */
.ly { padding: 22px 0 24px; border-bottom: 1px solid var(--rule); scroll-margin-top: 88px; }
.ly-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.ly-h .std { min-width: 0; font-size: 14px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ly-h .std > span { display: inline-flex; align-items: center; gap: 8px; }
.ly-q { margin: 4px 0 10px; color: var(--ink-soft); }
.ly-t { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.grp { margin-top: 36px; padding-bottom: 10px; border-bottom: 1.5px solid var(--divider); font-size: 15px; line-height: 1.3; font-weight: 600; }
.ck + .grp { margin-top: 40px; }
code.t { display: inline-block; font-size: 13px; line-height: 1.3; padding: 3px 7px; border: 1px solid var(--rule); border-radius: 5px; background: var(--paper-soft); overflow-wrap: anywhere; }
#layers .ck { margin-top: 24px; }
.cb { margin-top: 28px; }
.cb > .cap { margin-top: 8px; }

/* tables: on a phone each entry becomes a card, each cell under its own heading */
.tbl { overflow-x: auto; margin-top: 20px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.tbl thead th { font: 600 13px/1.4 var(--mono); color: var(--ink-soft); border-bottom: 1.5px solid var(--divider); }
.tbl tbody th { font-weight: 600; }
.tbl tbody th code { font-size: 14.5px; font-weight: 600; }
.tbl .lyr { white-space: nowrap; }
.tbl .lyr .chip + .chip { margin-left: 6px; }
/* the partner's mappings, on the Example: each way, and the direction it runs, on one line */
.tbl.maps-t tbody th { white-space: nowrap; }
@media (max-width: 600px) {
  .tbl table, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: auto !important; }
  .tbl thead { display: none; }
  .tbl tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .tbl tbody th, .tbl tbody td { padding: 2px 0; border: 0; white-space: normal !important; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; margin-top: 8px; font: 600 12.5px/1.4 var(--mono); color: var(--ink-soft); }
}

/* lists of areas, on Specification and Ontology */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.areas > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 18px 24px 20px 0; border-bottom: 1px solid var(--rule); }
.areas h3 { font-size: 16px; line-height: 1.35; }
.areas p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 700px) { .areas { grid-template-columns: minmax(0, 1fr); } }
/* SKL Ontology 4.x's two groups: its layers, then the records many products share */
.cov-g { margin: 0 0 14px; }
.areas + .cov-g { margin-top: clamp(32px, 4vw, 44px); }

/* the end of each page, and the footer */
.end { padding-block: clamp(48px, 7vw, 80px); border-top: 1px solid var(--rule); }
.end .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 24px 48px; align-items: center; }
@media (max-width: 800px) { .end .wrap { grid-template-columns: minmax(0, 1fr); } }
footer { padding-block: 40px max(32px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); }
footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px 32px; }
footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
footer ul a { text-decoration: none; color: var(--ink-soft); font-size: 15px; }
footer ul a:hover { color: var(--ink); }
footer .credit { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { footer .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } footer .cols > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* the menu: on a narrow screen site.js folds the links under a Menu button; without the script they wrap */
.nav .menu { display: none; font: 500 14px/1 var(--mono); color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 8px; padding: 9px 12px; cursor: pointer; }
@media (max-width: 900px) {
  .js-menu .nav .wrap { flex-wrap: wrap; }
  .js-menu .nav .nav-act { order: 1; margin-left: auto; }
  .js-menu .nav .menu { display: inline-flex; order: 2; }
  .js-menu .nav nav { order: 3; flex-basis: 100%; display: none; padding: 6px 0 4px; }
  .js-menu .nav.open nav { display: block; }
  .js-menu .nav ul { flex-direction: column; gap: 0; }
  .js-menu .nav ul a { display: block; padding: 10px 0; font-size: 16px; border-top: 1px solid var(--rule); }
}

/* the front page */
.hero-t .proof { font: 500 14px/1.45 var(--mono); }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-links.hero-cta { gap: 10px; margin: 4px 0 0; }
.quote { margin-top: 18px; font: 600 clamp(20px, 2.4vw, 26px)/1.35 var(--mono); letter-spacing: -0.01em; text-wrap: balance; }
a.card.link { text-decoration: none; color: var(--ink); }
a.card.link:hover { border-color: var(--ink); }
a.card.link p:last-child { color: var(--ink-soft); }

/* the step-through: a definition changed while it runs, one frame at a time; without the script, all three show */
.player { min-width: 0; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); }
.pl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.pl-ttl { font: 600 14px/1.3 var(--mono); }
.pl-ctl { display: flex; align-items: center; gap: 8px; }
.pl-b { font: 500 13px/1 var(--mono); color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.pl-b:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.pl-b:disabled { border-color: var(--rule); color: var(--ink-soft); cursor: default; }
.pl-pos { min-width: 52px; text-align: center; font: 500 13px/1 var(--mono); color: var(--ink-soft); }
.frs { list-style: none; margin: 0; padding: 0; }
.fr { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.fr + .fr { border-top: 1px solid var(--rule); }
.fr-n { font: 500 12px/1 var(--mono); color: var(--ink-soft); }
.fr-h { font: 600 16px/1.3 var(--mono); }
.fr-t { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.player .code pre { font-size: 13px; line-height: 1.55; }
/* beside the hero text the column is narrow: 12px keeps the switch's longest line whole */
@media (min-width: 901px) { .player .code pre { font-size: 12px; } }
.player figcaption { margin: 0; padding: 12px 16px 14px; border-top: 1px solid var(--rule); }
.code .hl { background: var(--ink); color: var(--paper); border-radius: 2px; padding: 0 2px; }
.code.diff .del { color: var(--ink-soft); text-decoration: line-through; }
.code.diff .add { background: var(--rule); font-weight: 600; }
.undo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.undone { font-size: 14.5px; line-height: 1.5; padding-left: 12px; border-left: 2px solid var(--ink); }

/* a call and its answer */
.call { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; }
.call-in, .call-out { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); }
.call-in b, .call-out b { font: 600 14px/1.35 var(--mono); }
.call-in span:not(.label) { font-size: 13.5px; line-height: 1.35; color: var(--ink-soft); }
.call-out { border: 1.5px solid var(--ink); background: var(--paper); }
.call-out.held { background: var(--ink); color: var(--paper); }
.call-out.held .label { color: inherit; }
.call-out.no { border: 1.5px dashed var(--ink-soft); background: transparent; }
.call .ar { margin: 0 6px; }
@media (max-width: 420px) {
  .call { grid-template-columns: minmax(0, 1fr); }
  .call .ar { justify-self: start; width: 0; height: 24px; margin: 0 0 0 24px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .call .ar::after { right: auto; top: auto; left: -6.75px; bottom: 0; border-top: 9px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 0; }
}

/* Learn: how a layer looks, in the order example */
.ly-p { font-size: 16px; line-height: 1.6; }
.ly-x { margin-top: 16px; }
.ly-x.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ids { margin: 16px 0 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); }
.ids > div { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 4px 14px; padding: 10px 14px; }
.ids > div + div { border-top: 1px solid var(--rule); }
.ids dt code { font: 600 13.5px/1.5 var(--mono); }
.ids dd { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ids dd code { font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.ids dd span { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.plain.ways > div { padding-top: 14px; border-top: 1.5px solid var(--divider); }
@media (max-width: 700px) {
  .ly-x.two { grid-template-columns: minmax(0, 1fr); }
  .plain.ways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .ids > div { grid-template-columns: minmax(0, 1fr); } }

/* the Example: a switch drawn as a fork, two pieces side by side, and a change's steps */
.fork { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); column-gap: 28px; align-items: center; }
.fk-in { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); }
.fk-in::after { content: ''; position: absolute; top: 50%; left: 100%; width: 28px; border-top: 1.5px solid var(--ink); }
.fk-in b { font: 600 14.5px/1.3 var(--mono); }
.fk-arms { list-style: none; margin: 0; padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
/* the trunk, drawn piece by piece so it runs from the first arm to the last and no further */
.fk-arms > li::after { content: ''; position: absolute; left: -24px; top: -6px; bottom: -6px; border-left: 1.5px solid var(--ink); }
.fk-arms > li:first-child::after { top: 50%; }
.fk-arms > li:last-child::after { bottom: calc(50% - 1.5px); }
.fk-arms > li:only-child::after { display: none; }
.fk-arms > li { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.3fr); align-items: center; }
.fk-arms > li::before { content: ''; position: absolute; top: 50%; left: -24px; width: 24px; border-top: 1.5px solid var(--ink); }
.fk-if { min-width: 0; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); font: 500 13.5px/1.4 var(--mono); }
.fk-to { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 1px solid var(--ink); border-radius: 6px; }
.fk-to code { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.fk-to span { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.fork .ar { margin: 0 6px; }
.fork figcaption { grid-column: 1 / -1; margin-top: 16px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.pair > * { margin-top: 0; }
.ex-steps { margin-top: 24px; }
.ex-steps .chain { grid-template-columns: repeat(4, minmax(0, 1fr) 26px) minmax(0, 1fr); }
@media (max-width: 860px) {
  .fork { grid-template-columns: minmax(0, 1fr); }
  .fk-in::after { top: 100%; left: 24px; width: 0; height: 20px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .fk-arms { margin: 0 0 0 24px; padding: 20px 0 0 18px; }
  .fk-arms > li::after { left: -18px; top: -12px; bottom: 0; }
  .fk-arms > li:first-child::after { top: -20px; }
  .fk-arms > li:last-child::after { bottom: auto; height: 33.5px; }
  .fk-arms > li:first-child:last-child::after { display: block; height: 41.5px; }
  .fk-arms > li { grid-template-columns: minmax(0, 1fr); }
  .fk-arms > li::before { left: -18px; width: 18px; top: 20px; }
  .fork .ar { justify-self: start; width: 0; height: 22px; margin: 0 0 0 22px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .fork .ar::after { right: auto; top: auto; left: -6.75px; bottom: 0; border-top: 9px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 0; }
}
@media (max-width: 980px) {
  .ex-steps .chain { grid-template-columns: minmax(0, 1fr); }
  .ex-steps .st { min-height: 0; }
  .ex-steps .ar { justify-self: start; width: 0; height: 22px; margin: 0 0 0 26px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .ex-steps .ar::after { right: auto; top: auto; left: -6.75px; bottom: 0; border-top: 9px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 0; }
}

/* Why SKL: the comparison table, SKL's entry marked */
.tbl.cmp-t table { font-size: 14.5px; }
.tbl tr.us > * { background: var(--paper-soft); }
.tbl tr.us > th { box-shadow: inset 3px 0 0 var(--ink); padding-left: 12px; }
@media (max-width: 600px) {
  .tbl tr.us { background: var(--paper-soft); box-shadow: inset 3px 0 0 var(--ink); padding-inline: 14px; }
  .tbl tr.us > * { background: transparent; }
  .tbl tr.us > th { box-shadow: none; padding-left: 0; }
}

/* Specification: what it settles and what it leaves, squares for bullets */
.ticks { list-style: none; margin: 4px 0 0; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 22px; font-size: 15.5px; line-height: 1.5; border-top: 1px solid var(--rule); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 1.5px; background: var(--ink); }

/* Ontology: three levels, each described by the one to its right; on a phone each row stacks */
.lv-g { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr); gap: 14px 0; align-items: center; }
.lv-r { display: contents; }
.lv-h { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 8px; border-bottom: 1.5px solid var(--divider); }
.lv-h:nth-child(2) { grid-column: 3; }
.lv-h:nth-child(3) { grid-column: 5; }
.lv-c { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); }
.lv-c b, .lv-c code { font: 600 14.5px/1.3 var(--mono); }
.lv-c span:not(.lv-k) { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.lv-c.on { border: 1.5px solid var(--ink); background: var(--paper); }
.lv-k { display: none; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.lv .ar { margin: 0 8px; }
.lv figcaption { margin-top: 16px; }
@media (max-width: 760px) {
  .lv-g { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .lv-h { display: none; }
  .lv-r { display: flex; flex-direction: column; }
  .lv-k { display: block; margin-bottom: 2px; }
  .lv .ar { align-self: flex-start; width: 0; height: 34px; margin: 0 0 0 24px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .lv .ar::after { right: auto; top: auto; left: -6.75px; bottom: 0; border-top: 9px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 0; }
  .lv .ar em { left: 16px; bottom: auto; top: 50%; transform: translateY(-50%); }
}

/* Patterns, AI agents: two ways in, direct and through MCP, meeting one SKL Kernel; on a phone each way stacks */
.rt-w { margin-top: clamp(32px, 4vw, 44px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--rule); }
.rt-w > p { margin-top: 10px; max-width: 66ch; font-size: 17px; line-height: 1.55; }
.rt { margin: 24px 0 0; }
.rt-g { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); gap: 14px 0; align-items: center; }
.rt-r { display: contents; }
.rt-c, .rt-v, .rt-k { min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 6px; }
.rt-c, .rt-v { border: 1px solid var(--rule); background: var(--paper-soft); }
.rt-c b, .rt-v b, .rt-k b { font: 600 14.5px/1.3 var(--mono); }
.rt-v span, .rt-k span { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.rt-k { grid-column: 5; grid-row: 1 / span 2; align-self: stretch; justify-content: center; border: 1.5px solid var(--ink); background: var(--paper); }
.rt-both { display: none; margin: 0; }
.rt .ar { margin: 0 8px; }
.rt figcaption { margin-top: 16px; }
@media (max-width: 760px) {
  .rt-g { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .rt-r { display: flex; flex-direction: column; }
  .rt-k { justify-content: flex-start; }
  .rt-both { display: block; margin-top: -8px; }
  .rt .ar { display: block; align-self: flex-start; width: 0; height: 26px; margin: 0 0 0 24px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .rt-both .ar { height: 34px; }
  .rt .ar::after { right: auto; top: auto; left: -6.75px; bottom: 0; border-top: 9px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 0; }
  .rt .ar em { left: 16px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .rt .ar.rt-in { display: none; }
}

/* About: four generations on one line of squares, each generation filled, the next dashed */
.tl { --yc: 72px; --g: 30px; list-style: none; margin: 0; padding: 0; }
.tl > li { position: relative; display: grid; grid-template-columns: var(--yc) minmax(0, 1fr); column-gap: var(--g); padding-bottom: 26px; }
.tl > li::before { content: ''; position: absolute; left: calc(var(--yc) + var(--g) / 2 - 0.75px); top: 20px; bottom: -6px; border-left: 1.5px solid var(--ink); }
.tl > li:last-child::before { display: none; }
.tl > li:has(+ .next)::before { border-left-style: dashed; border-left-color: var(--ink-soft); }
.tl > li::after { content: ''; position: absolute; left: calc(var(--yc) + var(--g) / 2 - 7px); top: 6px; width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 2.5px; background: var(--paper); }
.tl > li.gen::after { background: var(--ink); }
.tl > li.next::after { border-style: dashed; border-color: var(--ink-soft); }
.tl .yr { font: 700 17px/1.5 var(--mono); }
.tl li > div { min-width: 0; max-width: 62ch; }
.tl .gen-l { margin-bottom: 4px; font: 600 13px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.tl li > div > p:not(.gen-l) { font-size: 16px; line-height: 1.55; }
.tl .next p { color: var(--ink-soft); }
@media (max-width: 560px) { .tl { --yc: 48px; --g: 26px; } .tl .yr { font-size: 15px; } }

/* Why SKL: how SKL relates to what a reader uses. The works-with and standards tables, the questions under the
   standards, and one property read six ways, beside the term read three ways on Patterns. */
.rel-t th[scope="row"] { width: 20%; }
.rel-t td:nth-of-type(1) { width: 22%; color: var(--ink-soft); }
.std-t th[scope="row"] { width: 11%; }
.std-t td:nth-of-type(1) { width: 21%; }
.std-t td:nth-of-type(2), .std-t td:nth-of-type(3) { width: 34%; }
.std-t td:nth-of-type(1) { color: var(--ink-soft); }
.std-q { margin-top: clamp(40px, 5vw, 56px); }
.std-l { max-width: 66ch; margin-top: 10px; }
.std-q + .pt-p, .std-l + .pt-p { margin-top: 22px; }
.rd { margin-top: clamp(32px, 4vw, 44px); }
.tm-r.six { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tm-r.six > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.tm-r.six span { color: var(--ink-soft); font-size: 13.5px; }
@media (max-width: 900px) { .tm-r.six { grid-template-columns: minmax(0, 1fr); } }


/* the hero: the label and the headline above, then the words beside the drawing, the two centred on each other so
   neither leaves a tall gap beside the other; on a narrow screen the words come first */
.hero-grid { align-items: center; }
.hero-hd { display: flex; flex-direction: column; gap: 16px; }
.hero-hd .h1 { font-size: clamp(34px, 3.9vw, 52px); }
@media (max-width: 900px) { .hero-grid { align-items: start; } .hero-hd .h1 { font-size: clamp(34px, 6.4vw, 52px); max-width: 18ch; } }
/* between the fold and a wide screen the step-through takes the wider column, so the switch's longest line stays whole */
@media (min-width: 901px) and (max-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; } }
@media (min-width: 1041px) and (max-width: 1180px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; } }

/* the menu's groups: a button opens a list of pages, each with a line on what it is. Without the script the lists
   show, and wrap like the rest of the menu; on a narrow screen, folded, each group heads its pages */
.nav .mg { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.mg-b { font: 500 15px/1.4 var(--sans); color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.mg-b::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s linear; }
.mg.open .mg-b::after { transform: translateY(1px) rotate(225deg); }
.mg-b:hover, .mg.here .mg-b, .mg.open .mg-b { color: var(--ink); }
.mg.here .mg-b { text-decoration: underline; text-underline-offset: 3px; }
.nav .mg-p { gap: 4px 18px; }
.nav .mg-p span { display: none; }
.js-dd .nav .mg-p { display: none; position: absolute; top: calc(100% + 14px); left: -12px; z-index: 25; width: 310px; flex-direction: column; gap: 0; padding: 6px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 12px 32px rgba(17, 18, 20, .10); }
.js-dd .nav .mg.open .mg-p { display: flex; }
.js-dd .nav .mg-p a { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 6px; color: var(--ink); }
.js-dd .nav .mg-p a:hover { background: var(--paper-soft); }
.js-dd .nav .mg-p b { font: 600 14.5px/1.35 var(--sans); }
.js-dd .nav .mg-p span { display: block; font: 400 13px/1.4 var(--sans); color: var(--ink-soft); }
.js-dd .nav .mg-p a[aria-current="page"] { text-decoration: none; }
.js-dd .nav .mg-p a[aria-current="page"] b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .js-menu .nav .mg { display: block; }
  .js-menu .nav .mg-b { pointer-events: none; padding: 16px 0 6px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
  .js-menu .nav .mg-b::after { display: none; }
  .js-dd.js-menu .nav .mg-p { display: flex; position: static; width: auto; padding: 0; border: 0; box-shadow: none; background: none; }
  .js-dd.js-menu .nav .mg-p a { padding: 10px 0; border-radius: 0; border-top: 1px solid var(--rule); }
  .js-dd.js-menu .nav .mg-p a:hover { background: none; }
}

.nav .m1 b { font: inherit; }
.nav .m1 span { display: none; }
@media (max-width: 900px) {
  .js-menu .nav .m1 { padding-top: 10px; }
  .js-menu .nav .m1 a { color: var(--ink); }
  .js-menu .nav .m1 b { font: 600 14.5px/1.35 var(--sans); }
  .js-menu .nav .m1 span { display: block; font: 400 13px/1.4 var(--sans); color: var(--ink-soft); }
}

/* a paragraph kept to a reading measure where it runs the page's full width */
.measure { max-width: 70ch; }

/* links side by side */
.more-row { display: flex; flex-wrap: wrap; gap: 10px 26px; }

/* why not use the standards as they are: each reason in two lines, as the standards have it and as SKL has it */
.wn > div { padding-top: 14px; border-top: 1.5px solid var(--divider); }
.wn > div p { font-size: 15px; }
.wn-k { display: block; margin-bottom: 3px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.wn-k.skl { color: var(--ink); }

/* the patterns' index: each pattern by its topic and title, a link to it */
.pt-ix { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.pt-ix a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 0 18px; border-top: 1.5px solid var(--divider); text-decoration: none; color: var(--ink); }
.pt-ix b { font: 600 17px/1.35 var(--sans); }
.pt-ix a:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .pt-ix { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pt-ix { grid-template-columns: minmax(0, 1fr); } }

/* what the SKL Specification will define, and what SKL Ontology 4.x holds: a layer and a line */
.tbl.cov-t tbody th { width: 30%; }
.tbl.cov-t + .cov-g { margin-top: clamp(36px, 4.5vw, 48px); }

/* the menu: one line under each page, never wrapped, the list as wide as its longest line */
.js-dd .nav .mg-p { width: max-content; min-width: 250px; max-width: calc(100vw - 32px); }
.js-dd .nav .mg-p span { white-space: nowrap; }
@media (max-width: 900px) { .js-dd.js-menu .nav .mg-p span { white-space: normal; } }

/* the footer's copyright, at the end of the credit line */
footer .credit .copy { float: right; margin-left: 24px; }
@media (max-width: 560px) { footer .credit .copy { float: none; display: block; margin: 6px 0 0; } }

/* Ontology, three levels: each column headed by what it holds, and the first arrow wide enough to say how a record
   relates to its spec */
.lv-g { grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr) 64px minmax(0, 1fr); }
.lv-h span { display: block; margin-top: 3px; font: 400 13.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.lv-c { min-height: 72px; justify-content: center; }

/* Ontology, what's in it: the kinds of spec in the layers' groups, then the records many products share */
.cov-p { margin: -4px 0 18px; max-width: 66ch; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.oc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.oc-g { padding-top: 10px; border-top: 1.5px solid var(--divider); }
.oc-g ul, .oc-s { list-style: none; margin: 0; padding: 0; }
.oc-g ul { margin-top: 4px; }
.oc-g li { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.oc-g li:last-child { border-bottom: 0; }
.oc li b, .oc-s li b { font: 600 15px/1.35 var(--sans); }
.oc li span, .oc-s li span { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.oc + .cov-g { margin-top: clamp(36px, 4.5vw, 48px); }
.oc-s { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.oc-s li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
@media (max-width: 900px) { .oc { grid-template-columns: minmax(0, 1fr); gap: 12px; } .oc-s { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .oc-s { grid-template-columns: minmax(0, 1fr); } }

/* the hero's drawing: your specs, lit in ink, each linked to everything built on them */
.ro { margin: 0; min-width: 0; }
.ro-g { display: grid; grid-template-columns: minmax(0, 1.4fr) 72px minmax(0, 1fr); grid-template-rows: auto repeat(3, 84px); align-items: center; }
.ro-h { grid-column: 1; grid-row: 1; margin: 0; padding-bottom: 10px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.ro-hu { grid-column: 3; }
.ro-s, .ro-u { margin: 0; height: 68px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 16px; border-radius: 7px; }
.ro-s { grid-column: 1; background: var(--ink); color: var(--paper); }
.ro-s b { font: 600 15px/1.3 var(--mono); }
.ro-s span { font-size: 13.5px; line-height: 1.35; opacity: .8; }
.ro-u { grid-column: 3; border: 1.5px solid var(--ink); background: var(--paper); }
.ro-u b { font: 600 15.5px/1.3 var(--sans); }
.ro-l { grid-column: 2; grid-row: 2 / 5; width: 100%; height: 100%; overflow: visible; }
.ro-l line { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ro-ar { display: none; }
.ro figcaption { margin-top: 16px; }
@media (max-width: 560px) {
  .ro-g { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .ro-l { display: none; }
  .ro-s, .ro-u { height: auto; min-height: 56px; padding: 10px 14px; }
  .ro .ro-ar { display: block; align-self: flex-start; width: 0; height: 30px; margin: 4px 0 4px 24px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .ro .ro-ar::after { right: auto; top: auto; left: -6.75px; bottom: 0; border-top: 9px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 0; }
  .ro-hu { margin-top: 2px; }
}

/* the problem: the words beside one piece of business logic copied into three places */
.pb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.pb-t { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pb-t > p:not(.quote):not(.lede):not(.label) { max-width: 60ch; font-size: 17px; line-height: 1.55; }
.pb-t .label { margin-bottom: -4px; }
.cp { margin: 0; min-width: 0; }
.cp-q { margin: 0 0 14px; font: 600 clamp(17px, 1.8vw, 19px)/1.35 var(--mono); }
.cp-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cp-c { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1.5px dashed var(--ink-soft); border-radius: 7px; background: var(--paper); }
.cp-c.ok { border: 1.5px solid var(--ink); }
.cp-k { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.cp-a { margin: 0; font: 600 clamp(20px, 2.2vw, 24px)/1.2 var(--mono); letter-spacing: -0.01em; }
.cp-n { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.cp figcaption { margin-top: 14px; }
@media (max-width: 900px) { .pb { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .cp-g { grid-template-columns: minmax(0, 1fr); } }

/* how it works: three steps beside the step-through */
.hw { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.hw-s { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: none; }
.hw-s li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--rule); }
.hw-s li:first-child { border-top: 1.5px solid var(--divider); }
.hw-s .n { grid-row: 1 / 3; margin: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--mono); }
.hw-s h3 { margin: 0; font: 600 18px/1.3 var(--mono); }
.hw-s li > p:not(.n) { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 900px) { .hw { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the front page's headline is a sentence now, so it is set a size smaller than a name would be. It heads the hero
   across both columns, each sentence on a line of its own where the width allows, and the words and the drawing sit
   side by side under it */
.hero-hd { grid-column: 1 / -1; }
.hero-hd .h1 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.14; }
.hero-hd .h1 span { display: block; }
.hero-grid { row-gap: clamp(28px, 3.5vw, 44px); }
@media (max-width: 900px) { .hero-hd .h1 { font-size: clamp(30px, 6vw, 44px); max-width: 22ch; } .hero-hd .h1 span { display: inline; } }
/* each subpage's two pages to read next, before its end */
.nx { padding-block: clamp(36px, 5vw, 56px); }
.nx .card .label { margin-bottom: -4px; }

/* the Example's views of a spec: a table, JSON-LD, Turtle, and RDF/XML, one at a time behind tabs; without the script
   every view shows, each under its name */
.vw-t { display: none; }
.js-vw .vw-t { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid var(--rule); }
.vw-t [role="tab"] { margin-bottom: -1px; padding: 7px 12px; font: 500 13px/1.2 var(--mono); color: var(--ink-soft); background: none; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; cursor: pointer; }
.vw-t [role="tab"]:hover { color: var(--ink); }
.vw-t [role="tab"][aria-selected="true"] { color: var(--ink); background: var(--paper-soft); border-color: var(--rule); }
.vw-k { margin: 0; padding: 10px 16px 0; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.js-vw .vw-k { display: none; }
.js-vw .vw-p:not(.on) { display: none; }
.vw-tw { padding: 12px 16px 16px; overflow-x: auto; }
.vw-tb, .vw-n { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.vw-tb > tbody > tr > th, .vw-tb > tbody > tr > td { padding: 9px 10px 9px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.vw-tb > tbody > tr:first-child > th, .vw-tb > tbody > tr:first-child > td { border-top: 0; }
.vw-tb > tbody > tr > th { width: 32%; font-weight: 600; }
.vw-n { font-size: 13.5px; }
.vw-n th, .vw-n td { padding: 6px 10px 6px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.vw-n thead th { border-top: 0; font: 500 11.5px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.vw-n tbody th { font-weight: 600; width: 40%; }
.vw-i + .vw-i { margin-top: 6px; }
.vw .vw-p pre { margin: 0; }
@media (max-width: 560px) {
  .vw-tb > tbody > tr > th, .vw-tb > tbody > tr > td { display: block; width: auto; padding-right: 0; }
  .vw-tb > tbody > tr > th { padding-bottom: 0; }
  .vw-tb > tbody > tr > td { border-top: 0; padding-top: 2px; }
}
.vw-tw code { overflow-wrap: anywhere; }

/* Learn: each layer's piece of the order and its SKL terms, one click away */
.ly-d { margin-top: 12px; }
.ly-d > summary { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; font: 500 13.5px/1.4 var(--mono); color: var(--ink); }
.ly-d > summary::-webkit-details-marker { display: none; }
.ly-d > summary::before { content: '+'; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 4px; font: 600 13px/1 var(--mono); }
.ly-d[open] > summary::before { content: '\2212'; }
.ly-d > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.ly-d[open] > :not(summary) { margin-top: 12px; }

/* Why SKL, side by side: more room in each entry, the approach column wide enough to stay on one or two lines, and
   SKL's entry in ink, so a scanner finds it */
.tbl.cmp-t table { table-layout: fixed; font-size: 15.5px; line-height: 1.55; }
.tbl.cmp-t thead th { padding: 0 24px 12px 0; font: 600 12.5px/1.4 var(--mono); letter-spacing: .03em; }
.tbl.cmp-t thead th:first-child { width: 20%; }
.tbl.cmp-t tbody th, .tbl.cmp-t tbody td { padding: 20px 24px 20px 0; }
.tbl.cmp-t tbody th { font: 600 16.5px/1.4 var(--sans); }
.tbl.cmp-t tbody td { color: var(--ink-soft); }
.tbl.cmp-t tr.us > * { background: var(--lit-fill); color: var(--lit-text); border-bottom: 0; box-shadow: inset 0 1.5px var(--lit-edge), inset 0 -1.5px var(--lit-edge); }
.tbl.cmp-t tr.us > th { box-shadow: inset 1.5px 0 var(--lit-edge), inset 0 1.5px var(--lit-edge), inset 0 -1.5px var(--lit-edge); padding-left: 18px; border-radius: 8px 0 0 8px; }
.tbl.cmp-t tr.us > td:last-child { box-shadow: inset -1.5px 0 var(--lit-edge), inset 0 1.5px var(--lit-edge), inset 0 -1.5px var(--lit-edge); padding-right: 18px; border-radius: 0 8px 8px 0; }
@media (max-width: 760px) {
  .tbl.cmp-t tr.us { background: var(--lit-fill); color: var(--lit-text); box-shadow: inset 0 0 0 1.5px var(--lit-edge); border-radius: 8px; padding: 16px 18px; }
  .tbl.cmp-t tr.us > *, .tbl.cmp-t tr.us > th, .tbl.cmp-t tr.us > td:last-child { background: transparent; color: var(--lit-text); box-shadow: none; }
  .tbl.cmp-t tr.us td[data-label]::before { color: var(--lit-text); opacity: .7; }
  .tbl.cmp-t tbody th, .tbl.cmp-t tbody td { padding: 2px 0; }
}
/* the six reasons, three to a row, each a sentence as the standards have it and a sentence as SKL has it */
.wn > div { display: flex; flex-direction: column; gap: 8px; }
.wn > div h3 { font-size: 17px; }
.wn > div p { font-size: 15px; line-height: 1.5; }
.wn .wn-s { color: var(--ink-soft); }
@media (max-width: 900px) { .plain.wn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plain.wn { grid-template-columns: minmax(0, 1fr); } }
/* points: a heading that leads, a rule above each, and the text under a heading starting on the same line across a
   row however many lines the headings take */
.plain.even { row-gap: 36px; }
.plain.even > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 10px; align-content: start; padding-top: 16px; border-top: 1.5px solid var(--divider); }
.plain.even > div > h3 { font-size: 17px; line-height: 1.3; }
.plain.even > div > p { color: var(--ink-soft); }
/* the Ontology page: why what it describes matters, under the drawing */
.lv-why { margin-top: 28px; max-width: 760px; }
/* a table view's records under one property: their own table, the width of the view, an address breaking only after a
   slash; on a phone, each record a card that names each value */
.vw-tb > tbody > tr.vw-l > th { width: auto; padding-bottom: 6px; }
.vw-tb > tbody > tr.vw-w > td { padding-top: 0; border-top: 0; }
.vw-tw code { overflow-wrap: normal; }
.vw-rs { margin-top: 2px; font-size: 14px; border: 1px solid var(--rule); border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.vw-rs thead th { padding: 9px 12px; font: 600 12.5px/1.35 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-soft); background: var(--paper-soft); border-bottom: 1px solid var(--rule); }
.vw-rs tbody td { padding: 9px 12px; border-top: 1px solid var(--rule); }
.vw-rs tbody tr:first-child td { border-top: 0; }
@media (max-width: 600px) {
  .vw-rs { border: 0; border-radius: 0; overflow: visible; }
  .vw-rs thead { display: none; }
  .vw-rs, .vw-rs tbody, .vw-rs tr { display: block; }
  .vw-rs tbody tr { padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px; }
  .vw-rs tbody tr + tr { margin-top: 8px; }
  .vw-rs tbody td { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 10px; padding: 4px 0; border: 0; }
  .vw-rs tbody td::before { content: attr(data-label); font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
  .vw-rs tbody td.vw-e { display: none; }
}
/* Why SKL: the six readings of one property open under the reasons, as Learn's samples do */
.rd-d { margin-top: clamp(24px, 3vw, 32px); }
.rd-d[open] > .rd { margin-top: 20px; }
/* Why SKL, side by side, on a phone: SKL's card starts its name where its labels start */
@media (max-width: 760px) { .tbl.cmp-t tr.us > th, .tbl.cmp-t tr.us > td:last-child { padding-left: 0; padding-right: 0; } }
/* the SKL Kernel's page: the parallel with a computer's kernel, the SKL Kernel's half in ink */
.kp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 3.5vw, 40px); }
.kp-c { padding: 18px 20px 20px; border: 1.5px solid var(--unlit-edge); border-radius: 10px; }
.kp-c .label { margin-bottom: 8px; }
.kp-c p:not(.label) { font-size: 16px; line-height: 1.55; }
.kp-c.on { background: var(--lit-fill); color: var(--lit-text); border-color: var(--lit-edge); }
.kp-c.on .label { color: var(--lit-text); opacity: .75; }
@media (max-width: 640px) { .kp { grid-template-columns: minmax(0, 1fr); } }
/* the ecosystem: each organization inside a boundary of its own, its SKL Kernel lit in ink, and one line, the
   internet, through every kernel: across a row of organizations, or down a column of them on a phone */
.eco { margin: clamp(32px, 4vw, 48px) 0 0; }
.eco-g { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 0 24px; }
.eco-o { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; padding: 14px; border: 1.5px dashed var(--ink-soft); border-radius: 12px; }
.eco-k { margin: 0; font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.eco-b { position: relative; z-index: 1; margin: 0; padding: 10px 8px; font: 600 13px/1.3 var(--mono); text-align: center; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; }
.eco-b.on { color: var(--paper); background: var(--ink); }
/* the line takes no cell: placed absolutely in the kernels' row, it runs past the first and last organization */
.eco-net { position: absolute; grid-column: 1 / -1; grid-row: 3 / 4; top: 50%; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--ink); }
@media (min-width: 1100px) { .eco-net { left: -18px; right: -18px; } }
.eco figcaption { max-width: 760px; }
@media (max-width: 720px) {
  .eco-g { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 18px; }
  .eco-o { grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; }
  .eco-k { grid-column: 1 / -1; }
  .eco-b { font-size: 12px; padding: 9px 6px; }
  .eco-net { grid-column: auto; grid-row: auto; left: 50%; right: auto; top: 0; bottom: 0; height: auto; border-top: 0; border-left: 1.5px solid var(--ink); }
}
/* one text column: a section's lede and the paragraphs under it share one width, whatever their type size, so the
   text keeps one edge and only drawings and tables run wider. The footer keeps its full width, its credit line and
   rule running as far as its columns. */
:root { --col: 46rem; }
.sec-h .lede, .page-h .lede, .measure, .grow-why, .grow-t, .std-l, .pl-note, .rt-w > p, .cov-p, .lv-why, .eco figcaption,
main .wrap > p:not(.label):not(.more-row):not(.lede):not(.cl-o) { max-width: var(--col); }
/* Where SKL fits, on Learn: its entries under four headings, each heading a label over a rule */
.tbl.fits-t tbody th.tg { padding: 32px 0 10px; font: 600 12.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); border-bottom: 1.5px solid var(--divider); }
.tbl.fits-t tbody:first-of-type th.tg { padding-top: 14px; }
@media (max-width: 600px) {
  .tbl.fits-t tr.tg-r { padding: 0; border-bottom: 0; }
  .tbl.fits-t tbody th.tg { padding: 28px 0 8px; border-bottom: 1.5px solid var(--divider); }
}
/* Get updates: the contact action bar under the page's lede */
.up-f { margin-top: clamp(24px, 3vw, 32px); max-width: 560px; }
.up-f .signup-done { margin-top: 10px; }
.up-l { margin-top: 18px; font-size: 15px; line-height: 1.55; }
/* one way to build on SKL before 2027 (common.USE_TODAY), under the 2027 line it follows, the same size as that line
   on Get updates and a step quieter than the lede at a page's end */
.use-today { margin: 12px 0 0; font-size: 15px; line-height: 1.55; max-width: 60ch; }
.up-f .use-today { margin-top: 8px; }
/* Why SKL, an AI writing the code: the same three apps two ways. Each app's own logic is lit in ink on both sides and
   the plumbing is grey, so the copies on the left fold into the one SKL Kernel on the right. The graph's boxes sit at
   fixed points (left in percent, top in pixels) over an SVG of its links that stretches with the width and keeps its
   weight, so the words keep their size on a phone; below 760px the two sides stack */
.ai-t { margin-top: clamp(28px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 14px; max-width: 68ch; }
.ai-t p { margin: 0; }
.cg { margin: clamp(24px, 3vw, 36px) 0 0; }
.cg-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; font: 500 12.5px/1.4 var(--mono); color: var(--ink-soft); }
.cg-key span { display: inline-flex; align-items: center; gap: 8px; }
.cg-key i { width: 16px; height: 12px; border: 1px solid var(--rule); border-radius: 3px; }
.cg-key i.lit { background: var(--ink); border-color: var(--ink); }
.cg-key i.sp { border: 1.5px solid var(--ink); }
.cg-key i.ch { border: 1.5px dashed var(--ink); }
/* where a new check goes: a dashed ring around each copy on the left, and around the one spec on the right */
.cg .ch { outline: 1.5px dashed var(--ink); outline-offset: 2px; }
.cg-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cg-p { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 16px; border: 1.5px dashed var(--ink-soft); border-radius: 12px; }
.cg-h { margin: 0; font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.cg-t { margin: -6px 0 4px; font: 600 16px/1.35 var(--mono); }
.cg-n { margin: auto 0 0; padding-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.cg-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cg-app { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* beside the taller graph, each app's stack grows to the panel's height, its parts sharing it evenly */
@media (min-width: 761px) { .cg-apps { flex: 1; } .cg-repo { flex: 1; } .cg-repo .cg-s { flex: 1; display: flex; align-items: center; } }
.cg-an { margin: 0; font: 600 13px/1.3 var(--mono); }
.cg-repo { margin: 0; padding: 6px; list-style: none; display: flex; flex-direction: column; gap: 5px; border: 1.5px solid var(--ink); border-radius: 8px; }
.cg-s { padding: 6px 8px; border: 1px solid var(--rule); border-radius: 5px; font: 500 12.5px/1.3 var(--mono); color: var(--ink-soft); }
.cg-s.lit { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.cg-gr { position: relative; margin: 2px 0; }
.cg-gr svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cg-gr line { stroke: var(--ink-soft); stroke-width: 1.5; }
.cg-gr ul { margin: 0; padding: 0; list-style: none; }
.cg-nd { position: absolute; transform: translate(-50%, -50%); width: 31%; max-width: 138px; padding: 7px 6px; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--paper); text-align: center; font: 600 12.5px/1.25 var(--mono); white-space: nowrap; }
.cg-nd.lit { width: 25%; max-width: 104px; padding: 5px 6px; background: var(--ink); color: var(--paper); }
.cg-k { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper-soft); }
.cg-k p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.cg-k b { font: 600 13.5px/1.3 var(--mono); color: var(--ink); }
.cg-k ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cg-k .cg-s { background: var(--paper); }
@media (max-width: 760px) { .cg-g { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .cg-p { padding: 14px 12px; } .cg-apps { gap: 6px; } .cg-s { padding: 6px 5px; font-size: 12px; } .cg-nd { font-size: 12px; } }
/* the theme, in the footer: the device's, light or dark, the one in use edged in ink, under a label of its own */
.theme { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.theme .label { flex-basis: 100%; margin: 0 0 2px; }
.theme button { font: 500 13px/1 var(--mono); padding: 7px 10px; border: 1px solid var(--rule); border-radius: 6px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }

/* Why SKL: six fragmented artifacts -> one versioned organizational graph */
.slg { margin: clamp(24px, 3vw, 36px) 0 0; }
.slg-g { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.1fr); align-items: stretch; gap: 14px 0; }
.slg-col { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1.5px dashed var(--ink-soft); border-radius: 12px; background: var(--paper); }
.slg-col.on { border: 1.5px solid var(--ink); background: var(--paper-soft); }
.slg-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slg-list li { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-soft); }
.slg-col.on .slg-list li { background: var(--paper); border-color: var(--ink); }
.slg-list b { font: 600 13.5px/1.3 var(--sans); color: var(--ink); }
.slg-list span { font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); }
.slg-ar { align-self: center; margin: 0 6px; }
.slg-out { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.slg-out span { font: 500 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-right: 4px; }
.slg-out b { padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 12px/1.2 var(--mono); }
.slg figcaption { margin-top: 14px; }
@media (max-width: 860px) {
  .slg-g { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .slg-ar { justify-self: start; width: 0; height: 24px; margin: 0 0 0 24px; border-top: 0; border-left: 1.5px solid var(--ink); }
  .slg-ar::after { right: auto; top: auto; left: -6.75px; bottom: 0; border-top: 9px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 0; }
}
@media (max-width: 520px) { .slg-list { grid-template-columns: minmax(0, 1fr); } }

/* Why SKL: three-system DONE ambiguity beside MCP */
.dnx { margin: 22px 0 28px; }
.dnx-sys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dnx-c { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-soft); }
.dnx-c .label { margin: 0; }
.dnx-c code { font: 600 14px/1.3 var(--mono); color: var(--ink); }
.dnx-c b { font: 600 15px/1.35 var(--sans); color: var(--ink); }
.dnx-c span { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.dnx-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.dnx-v { padding: 14px 16px; border: 1.5px dashed var(--ink-soft); border-radius: 8px; background: var(--paper); }
.dnx-v.on { border: 1.5px solid var(--ink); background: var(--lit-fill); color: var(--lit-text); }
.dnx-v .label { margin: 0 0 5px; }
.dnx-v.on .label { color: var(--lit-text); opacity: .75; }
.dnx-v p:not(.label) { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.dnx-v.on p:not(.label) { color: var(--lit-text); }
.dnx figcaption { margin-top: 12px; }
@media (max-width: 760px) { .dnx-sys, .dnx-vs { grid-template-columns: minmax(0, 1fr); } }

/* header actions + Ask AI dropdown */
.nav-act { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.ask-ai { position: relative; }
.ask-ai-btn { display: inline-flex; align-items: center; gap: 6px; }
.ask-ai-btn::after { content: ''; width: 5.5px; height: 5.5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s linear; margin-left: 1px; }
.ask-ai.open .ask-ai-btn::after { transform: translateY(1px) rotate(225deg); }
.ask-ic { width: 14px; height: 14px; flex: none; }
.ask-ai-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 252px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 14px 36px rgba(17, 18, 20, .14); }
.ask-ai-it { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 0; border-radius: 7px; background: none; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; font: inherit; }
.ask-ai-it:hover, .ask-ai-it:focus-visible { background: var(--paper-soft); outline: none; }
.ask-ai-it b { font: 600 14px/1.3 var(--sans); color: var(--ink); }
.ask-ai-it span { font: 400 12.5px/1.35 var(--sans); color: var(--ink-soft); }
.ask-ai-sep { border: 0; border-top: 1px solid var(--rule); margin: 4px 6px; }
@media (max-width: 640px) {
  .nav-act { gap: 6px; }
  .nav-act .btn.sm { font-size: 13px; padding: 7px 10px; }
  .nav .menu { font-size: 13px; padding: 8px 11px; }
}
.nav .m-upd { display: none; }
@media (max-width: 500px) {
  .js-menu .nav-act > a.btn { display: none; }
  .js-menu .nav .m-upd { display: block; }
  .ask-ai-menu { right: -64px; }
}
