/* Tutorial lesson styles, ported from the live site and reskinned. */
.lt{--bg:var(--paper);--surface:var(--card);--surface-2:#ebe6dc;--line:var(--rule);--line-strong:#b9b2a5;--muted:var(--ink-2);--faint:var(--ink-3);--accent:var(--orange);--accent-strong:#b83c10;--accent-soft:#f6dccd;--term-bg:#141210;--term-bar:#1f1c19;--term-fg:#f2eee5;--term-dim:#a59d90;--term-key:#d6cfc3;--term-ok:#6fd08f;--term-dot:#3a352f;--pin-fg:#fff;--term-bad:#ff8a78;--blue:#2f6fb0;--blue-soft:#e3ebf4;--amber:#b8860b;--amber-soft:#f5ead2;--violet:#6a4fb6;--violet-soft:#ece7f6;--rose:#b03f68;--rose-soft:#f7e4eb;--reject:#c0392b;--idle:#e6e1d8;--sans:var(--display);--measure:62ch}
.lt .lede{ margin: 28px auto 0; max-width: 34em; font-size: clamp(19px, 2.1vw, 22px); line-height: 1.5; color: var(--ink); text-wrap: balance; }
.lt .how-hero .lede{ max-width: 34em; margin-left: auto; margin-right: auto; text-wrap: pretty; }
.lt .how-hero .lede strong{ color: var(--ink); }
.lt .checks .hsub,.lt .guards .hsub{ margin: 8px 0 0; color: var(--muted); }
.lt .checks .term-win{ max-width: none; margin: 0; }
.lt .checks .term-win pre.term-out{ font-size: 11px; line-height: 1.8; }
.lt .checks .term-win pre.term-out code{ white-space: pre; overflow-wrap: normal; }
.lt .feature-hero .lede{ max-width: 30em; font-size: clamp(18px, 1.8vw, 20px); color: var(--muted); }
.lt .feature-hero .lede{ max-width: 40em; }
.lt .term-win{ width: 100%; max-width: 560px; justify-self: center; margin: 0; overflow: hidden; border: 1px solid var(--term-bar); border-radius: 14px; background: var(--term-bg); box-shadow: var(--shadow); text-align: left; }
.lt .term-bar{ display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--term-bar); }
.lt .term-bar i{ width: 10px; height: 10px; border-radius: 50%; background: var(--term-dot); }
.lt .term-bar span{ margin-left: 10px; color: var(--term-dim); font: 12px var(--mono); }
.lt .term-win pre{ margin: 0; padding: 16px 18px 18px; color: var(--term-dim); font: 13.5px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.lt .term-win .pr{ color: var(--term-ok); }
.lt .term-win b{ color: var(--term-fg); font-weight: 600; }
.lt .term-win .k{ color: var(--term-key); }
.lt .term-win .ok{ color: var(--term-ok); }
.lt .term-win .cur{ display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: var(--term-fg); }
.lt .demo .term-win{ max-width: none; margin-top: 14px; box-shadow: none; }
.lt .term-win .bad{ color: var(--term-bad); }
.lt .term-win pre.term-out{ display: block; max-width: none; margin: 0; padding: 16px 18px 18px; border: 0; border-radius: 0; background: none; box-shadow: none; overflow-x: auto; }
.lt .term-win pre.term-out code{ font: inherit; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.lt .term-win pre.term-out code > span::before{ content: none; }
.lt .lesson{ max-width: 760px; margin: 72px auto 0; text-align: left; }
.lt .lesson + .lesson{ margin-top: 88px; }
.lt .lesson h2{ margin: 0; max-width: none; font-size: clamp(26px, 3vw, 34px); text-align: left; }
.lt .lesson h2 em{ font-style: normal; color: var(--accent); }
.lt .lesson p{ margin: 14px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.lt .lesson p strong{ color: var(--ink); font-weight: 600; }
.lt .own-pair{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.lt .own-side{ padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.lt .own-side.yours{ background: var(--ink); border-color: var(--ink); color: var(--bg); }
.lt .own-side h3{ margin: 0 0 12px; font: 700 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.lt .own-side.yours h3{ color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.lt .own-side.theirs h3{ color: var(--accent-strong); }
.lt .own-side ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lt .own-side li b{ display: block; font-weight: 650; }
.lt .own-side li span{ display: block; font-size: 15px; color: var(--muted); }
.lt .own-side.yours li span{ color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.lt .lesson .term-win{ max-width: none; margin-top: 22px; }
.lt .crumb{ margin: 0 0 14px; color: var(--muted); font: 700 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.lt .crumb a{ color: inherit; text-decoration: none; }
.lt .layers{ display: grid; gap: 12px; margin-top: 24px; }
.lt .layers > div{ padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.lt .layers > div:nth-child(2){ margin-left: 28px; }
.lt .layers > div:nth-child(3){ margin-left: 56px; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.lt .layers .k{ color: var(--muted); font: 700 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.lt .layers b{ display: block; margin-top: 4px; font-size: 16.5px; font-weight: 650; }
.lt .layers span{ display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
@media (max-width: 640px){.lt .own-pair{grid-template-columns: minmax(0, 1fr); }.lt .layers > div:nth-child(2){margin-left: 14px; }.lt .layers > div:nth-child(3){margin-left: 28px; }}
.lt .crumb{ margin: 0 0 10px; }
.lt h1{ margin: 0; max-width: none; font-size: clamp(34px, 4vw, 46px); text-align: left; }
.lt h1 em{ font-style: normal; color: var(--accent); }
.lt > .lede{ margin: 14px 0 0; max-width: none; color: var(--muted); font-size: 19px; text-align: left; text-wrap: pretty; }
.lt .lesson{ max-width: none; margin: 56px 0 0; }
.lt .lesson + .lesson{ margin-top: 56px; }
.lt .next{ max-width: none; margin: 72px 0 0; }
.lt .principles{ list-style: none; counter-reset: pr; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.lt .principles li{ counter-increment: pr; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
.lt .principles li::before{ content: counter(pr); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font: 700 14px var(--sans); }
.lt .principles b{ font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.lt .principles span{ color: var(--muted); font-size: 16px; }
.lt h1{ font-size: clamp(30px, 3.2vw, 38px); letter-spacing: -.03em; }
.lt .breaks{ margin: 18px 0 0; display: grid; gap: 14px; }
.lt .breaks > div{ display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 20px; }
.lt .breaks dt{ font-weight: 650; }
.lt .breaks dd{ margin: 0; color: var(--muted); }
@media (max-width: 640px){.lt .breaks > div{grid-template-columns: minmax(0, 1fr); }}
.lt .lesson .hsub{ margin: 8px 0 0; color: var(--muted); font-size: 18px; line-height: 1.5; text-wrap: balance; }
.lt .breaks{ margin-top: 22px; }
.lt .concepts{ list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 4px; }
.lt .concepts li{ display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.lt .concepts li:first-child{ border-top: 0; }
.lt .concepts svg{ width: 22px; height: 22px; color: var(--accent-strong); }
.lt .concepts b{ display: block; font-weight: 650; }
.lt .concepts span{ display: block; color: var(--muted); font-size: 15.5px; }
.lt .concepts a{ color: var(--accent-strong); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 560px){.lt .concepts li{grid-template-columns: 24px minmax(0, 1fr); }.lt .concepts a{grid-column: 2; }}
.lt .lesson-fig,.lt .lesson-shot{ margin: 22px 0 0; }
.lt .lesson-fig img{ display: block; width: 100%; height: auto; }
.lt .lesson-shot img{ display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.lt .lesson-shot.crop img{ aspect-ratio: 620 / 389; object-fit: cover; object-position: left top; }
.lt .lesson .term-win + .lesson-fig{ margin-top: 28px; }
.lt .lesson .term-win pre code{ white-space: pre-wrap; }
.lt .gloss-list{ margin: 18px 0 0; display: grid; gap: 0; }
.lt .gloss-list > div{ display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--line); scroll-margin-top: var(--hdr); }
.lt .gloss-list dt{ font-weight: 650; }
.lt .gloss-list dd{ margin: 0; color: var(--muted); }
.lt .gloss-list dd a{ color: var(--accent-strong); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 560px){.lt .gloss-list > div{grid-template-columns: minmax(0, 1fr); }}
.lt .mean{ margin: 26px 0 0; font-weight: 650; }
.lt .mean-list{ margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.lt .mean-list b{ color: var(--ink); font-weight: 600; }
.lt .mean-list li::marker{ color: var(--accent); }
.lt .mean-list li{ text-wrap: pretty; }
.lt .one-item{ margin: 22px 0 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.lt .oi-head{ padding: 16px 20px; background: var(--surface-2); }
.lt .oi-head .k{ display: block; color: var(--muted); font: 700 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.lt .oi-head b{ display: block; margin-top: 2px; font-size: 18px; font-weight: 650; }
.lt .one-item dl{ margin: 0; }
.lt .one-item dl > div{ display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 16px 20px; border-top: 1px solid var(--line); }
.lt .one-item dt{ display: grid; gap: 2px; }
.lt .one-item dt small{ color: var(--muted); font-size: 14px; }
.lt .tag-doc,.lt .tag-spec{ justify-self: start; padding: 2px 10px; border-radius: 999px; font: 700 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.lt .tag-doc{ background: var(--ink); color: var(--bg); }
.lt .tag-spec{ background: var(--accent-soft); color: var(--accent-strong); }
.lt .one-item dd{ margin: 0; font-size: 17px; font-weight: 600; }
.lt .one-item figcaption{ padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
@media (max-width: 560px){.lt .one-item dl > div{grid-template-columns: minmax(0, 1fr); }}
.lt .anatomy{ margin: 22px 0 0; padding: 26px 22px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.lt .anatomy .row{ display: block; font: 15px/2.4 var(--mono); color: var(--muted); }
.lt .anatomy .pt{ position: relative; color: var(--ink); font-weight: 600; border-bottom: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.lt .anatomy .pt::before{ content: attr(data-n); position: absolute; top: -1.3em; left: 0; color: var(--accent-strong); font: 700 11px/1 var(--sans); }
.lt .anatomy .parts{ list-style: none; counter-reset: k; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.lt .anatomy .parts li{ counter-increment: k; display: grid; grid-template-columns: 22px 7.5em minmax(0, 1fr); column-gap: 10px; align-items: baseline; color: var(--muted); font-size: 15.5px; }
.lt .anatomy .parts li::before{ content: counter(k); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font: 700 11px var(--sans); align-self: center; }
.lt .anatomy .parts b{ color: var(--ink); font-weight: 650; }
.lt > .lede strong{ color: var(--ink); font-weight: 600; }
.lt .anatomy{ padding-top: 14px; }
.lt .anatomy .row{ white-space: nowrap; overflow-x: auto; padding: 1.6em 0 6px; font-size: clamp(11px, 1.55vw, 13.5px); line-height: 1.6; }
.lt .anatomy{ container-type: inline-size; }
.lt .anatomy .row{ font-size: clamp(10px, 1.8cqi, 12.8px); }
.lt .relay-hero .lede{ max-width: 34em; margin-left: auto; margin-right: auto; text-wrap: pretty; }
.lt .relay-hero .lede strong{ color: var(--ink); }
.lt .relay-map .hsub,.lt .relay-steps .hsub,.lt .relay-sealed .hsub{ margin: 8px auto 0; max-width: 44em; color: var(--muted); text-wrap: balance; }
.lt .bp .kind{ display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.lt .bp .kind svg{ width: 15px; height: 15px; }
.lt .bp .kind-apps{ background: var(--blue-soft); color: var(--blue); }
.lt .bp .kind-infra{ background: var(--violet-soft); color: var(--violet); }
.lt .bp .kind-practice{ background: var(--accent-soft); color: var(--accent-strong); }
.lt .bp .kind-beyond{ background: var(--rose-soft); color: var(--rose); }
.lt .bp .draft{ flex: none; padding: 1px 8px; border-radius: 6px; background: var(--amber-soft); color: var(--amber); font: 700 12px/1.6 var(--mono); }
.lt .bp-q input{ position: absolute; opacity: 0; pointer-events: none; }
.lt .bp-q input:checked + label{ border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.lt .bp-q input:focus-visible + label{ outline: 2px solid var(--accent); outline-offset: 2px; }
.lt .bp{ margin-top: 20px; }
.lt .bp-page .lede{ margin: 20px 0 0; max-width: 36em; font-size: 21px; }
.lt .bp-page .term-win{ max-width: none; justify-self: stretch; margin: 28px 0 0; }
.lt .bp-rows{ list-style: none; margin: 18px 0 0; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.lt .bp-rows li{ display: flex; gap: 16px; align-items: baseline; padding: 14px 12px; border-bottom: 1px solid var(--line); text-wrap: pretty; }
.lt .bp-rows li:last-child{ border-bottom: 0; }
.lt .bp-rows li > b{ flex: none; width: 34px; font: 700 14px var(--mono); }
.lt .bp-rows li > span:last-child{ min-width: 0; }
.lt .bp-rows li > span:last-child > span{ display: block; font-size: 16.5px; line-height: 1.45; }
.lt .bp-rows small{ display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.lt .bp-q{ min-width: 0; margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.lt .bp-q legend{ float: left; width: 100%; padding: 0; font-size: 18px; line-height: 1.45; }
.lt .bp-q legend b{ margin-right: 6px; font: 700 14px var(--mono); }
.lt .bp-q .opts{ clear: both; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.lt .bp-q label{ display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.lt .bp-q input:checked + label{ font-weight: 650; }
.lt .rg-pane.term-win{ align-self: stretch; margin: 0; }
.lt .rg-demo .term-win{ max-width: none; }
.lt .rg-demo .term-win pre.term-out{ font-size: 14px; }
@media (max-width: 760px){.lt .rg-demo .term-win pre.term-out{ font-size: 11.5px; }}
.lt .next{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.lt .next a{ color: var(--ink); font: 700 20px var(--display); text-decoration: none; }
.lt .next a:hover{ color: var(--orange); }
.lt .next a small{ display: block; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.lt .next a:last-child{ text-align: right; }
.lt img[src^="img/tut/"]{ width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 60px -24px #0000004d; }
.lt .layers > div:nth-child(4){ margin-left: 84px; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); } .lt .layers > div:nth-child(3):not(:last-child){ background: var(--surface); border-color: var(--line); } @media (max-width: 760px) { .lt .layers > div:nth-child(4){ margin-left: 42px; } }

/* Dark: the page-level colours above are light-only literals; without these the boxes stay cream under light text. */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .lt{--surface-2:var(--paper-2);--line-strong:#4a443c;--accent-strong:#ff8a55;--accent-soft:#3a1a0e;--blue:#7ea6ee;--blue-soft:#17222f;--amber:#e0b44a;--amber-soft:#2e2610;--violet:#b79af0;--violet-soft:#221b33;--rose:#e58aa8;--rose-soft:#31161f;--reject:#ff8a78;--idle:#2a2622;--scrim:rgba(0,0,0,.6)}}
:root[data-theme="dark"] .lt{--surface-2:var(--paper-2);--line-strong:#4a443c;--accent-strong:#ff8a55;--accent-soft:#3a1a0e;--blue:#7ea6ee;--blue-soft:#17222f;--amber:#e0b44a;--amber-soft:#2e2610;--violet:#b79af0;--violet-soft:#221b33;--rose:#e58aa8;--rose-soft:#31161f;--reject:#ff8a78;--idle:#2a2622;--scrim:rgba(0,0,0,.6)}
