/* Documentation pages. They sit on top of the website's own /style.css (same colours, type and header). No inline styles or scripts: the site's security policy forbids them. */
.docs { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 2.75rem; padding-block: 2rem 4rem; align-items: start; }
.docnav { position: sticky; top: 5.5rem; font-size: .95rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; }
.docnav .navhead { font: 700 .75rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 1.5rem 0 .5rem; }
.docnav .navhead:first-child { margin-top: 0; }
.crumbs { font-size: .95rem; color: var(--ink-2); margin: 0 0 1rem; }
.crumbs a { color: var(--ink-2); }
.docnav ul { list-style: none; padding: 0; margin: 0; }
.docnav a { display: block; padding: .3rem .65rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.docnav a:hover { background: var(--tint); color: var(--ink); }
.docnav a[aria-current="page"] { background: var(--tint); color: var(--ink); font-weight: 700; border-left: 3px solid var(--blue); }

.doc { min-width: 0; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin: 0 0 .75rem; }
.doc h2 { font-size: 1.6rem; margin: 2.6rem 0 1rem; scroll-margin-top: 6rem; }
.doc h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
.doc p, .doc li { max-width: 46rem; }
.doc li { margin-bottom: .4rem; }
.doc .lead { font-size: 1.25rem; color: var(--ink-2); max-width: 44rem; }
.doc code { font-size: .88em; background: var(--tint); border: 1px solid var(--rule); border-radius: 6px; padding: .05rem .35rem; word-break: break-word; }
.doc pre { background: var(--tint); border: 1px solid var(--rule); border-radius: 10px; padding: .9rem 1.1rem; overflow-x: auto; max-width: 46rem; }
.doc pre code { background: none; border: 0; padding: 0; font-size: .85rem; word-break: normal; }

.toc { background: var(--tint); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; max-width: 46rem; }
.toc strong { display: block; font: 700 .75rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .25rem; break-inside: avoid; }

.doc table { border-collapse: collapse; width: 100%; max-width: 46rem; margin: 1rem 0 1.5rem; font-size: .96rem; }
.doc th, .doc td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { color: var(--ink-2); font-weight: 600; background: var(--tint); }

.callout { border: 1px solid var(--rule); border-left: 6px solid var(--blue); border-radius: var(--radius); padding: .9rem 1.2rem; margin: 1.5rem 0; max-width: 46rem; background: var(--white); }
.callout p:last-child { margin-bottom: 0; }
.callout.tip { border-left-color: var(--green); }
.callout.warn { border-left-color: #d98a00; }
.callout.note { border-left-color: var(--blue); }
.callout .label { display: block; font: 700 .75rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .35rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0 1.5rem; }
.steps > li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.1rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--grad); color: #fff; font: 800 1rem/2rem var(--display); text-align: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; max-width: 46rem; }
.cards a { display: block; position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.2rem 1.2rem 1rem; text-decoration: none; color: var(--ink); overflow: hidden; }
.cards a::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.cards a:hover { border-color: var(--blue); }
.cards b { display: block; font: 800 1.15rem/1.2 var(--display); margin-bottom: .3rem; }
.cards span { color: var(--ink-2); font-size: .95rem; }

.kwgroup { margin: 1.2rem 0; max-width: 46rem; }
.kwgroup h3 { margin-top: 1.4rem; }
.kwlist { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .4rem 0 0; }
.kwlist li { margin: 0; max-width: none; border: 1px solid var(--rule); border-radius: 999px; padding: .1rem .75rem; font-size: .92rem; background: var(--tint); }
.kwlist.sens li { border-color: #a12a22; color: #a12a22; background: var(--white); }

.faq h3 { margin-top: 1.6rem; }
.doc dl { max-width: 46rem; }
.doc dt { font-weight: 700; margin-top: 1rem; }
.doc dd { margin: .2rem 0 0; color: var(--ink-2); }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); max-width: 46rem; }
.pager a { font-weight: 700; text-decoration: none; }
.docfoot { border-top: 1px solid var(--rule); padding-block: 1.5rem 2.5rem; color: var(--ink-2); font-size: .95rem; }
.docfoot a { color: var(--ink-2); }

@media (max-width: 52rem) {
  .docs { grid-template-columns: 1fr; gap: 1rem; }
  .docnav { position: static; max-height: none; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
  .docnav .navhead { display: none; }
  .docnav ul { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .35rem; }
  .docnav a { border: 1px solid var(--rule); border-radius: 999px; padding: .2rem .75rem; font-size: .9rem; }
  .docnav a[aria-current="page"] { border-left: 1px solid var(--blue); border-color: var(--blue); }
  .toc ol { columns: 1; }
}
@media print {
  .top, .docnav, .pager, .docfoot, .foot { display: none; }
  .docs { display: block; }
  a { color: inherit; }
}
