/* Learn hub and guides (/learn, /learn/*), generated by tools/gen/learn/build.py.
   Guides use the docs layout from style.css (+ E-docs.css for the sidebar); this file adds the guide furniture. Tokens only. */

/* ---- guide ---- */
.guide > h1 { font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -.032em; line-height: 1.06; margin-bottom: 14px; }
.guide > .lede { font-size: 19px; margin-bottom: 18px; color: var(--text); }
.l-byline { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 26px; padding: 0 0 18px; border-bottom: 1px solid var(--line); font: 500 12.5px/1.5 var(--mono); color: var(--muted); }
.l-byline a { color: var(--ink); }
.l-tldr { border: 1px solid var(--line-2); border-left: 3px solid var(--ink); border-radius: var(--r); background: var(--card); padding: 18px 20px 6px; margin: 0 0 24px; }
.l-tldr-h, .l-toc-h { font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.l-tldr ul { margin: 0 0 12px; padding-left: 1.2em; }
.l-tldr li { margin: .4em 0; color: var(--ink); }
.l-toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px 10px; margin: 0 0 8px; }
.l-toc ol { margin: 0 0 8px; padding-left: 1.4em; columns: 2; column-gap: 32px; font-size: 14.5px; }
.l-toc li { margin: .3em 0; break-inside: avoid; }
.l-toc li::marker { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.l-toc a { color: var(--text); text-decoration: none; }
.l-toc a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 1181px) { .l-toc { display: none; } }   /* the sticky right-hand TOC takes over */
@media (max-width: 560px) { .l-toc ol { columns: 1; } }
.guide .code, .guide .table-wrap, .guide .callout { margin: 0 0 1.4em; }
.guide h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.guide h3 { scroll-margin-top: calc(var(--header-h) + 16px); }
.guide .ticks li { margin: .5em 0; }
.guide .l-rel { margin-bottom: 8px; }
.guide .l-rel .card h3 { margin: 0; font-size: 16px; }
.guide .l-rel .card .n-big { margin-bottom: 8px; }
.l-cta { margin-top: 48px; }
.learn .docs-nav li a { line-height: 1.35; }

/* ---- hub ---- */
.l-hero h1 { max-width: 14em; }
.l-topic { padding: 40px 0 0; }
.l-topic:first-child { padding-top: 0; }
.l-topic-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.l-topic-head .lab { margin: 0; }
.l-topic-head p.muted { margin: 0; }
.l-card h3 { font-size: 18px; margin: 6px 0 8px; }
.l-card p { color: var(--muted); margin: 0; }
.l-start { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.l-start li { counter-increment: s; }
.l-start a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; color: inherit; }
.l-start a::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 600 13px/1.6 var(--mono); color: var(--faint); }
.l-start a:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.l-start b { color: var(--ink); font-weight: 620; }
.l-start span { color: var(--muted); font-size: 14.5px; }
