/* help.duxels.com: the look of the help pages. Dark ground and the Duxels colors; no external font, no image, no inline style anywhere (the CSP allows only 'self').
   The common header and footer come from duxels-shared (chrome.css, loaded AFTER this file: its `a { color: inherit }` is why the rules below name their container). */
:root {
  --h-bg: #0e1324;
  --h-card: #161f3d;
  --h-line: #24304f;
  --h-text: #e8ecf7;
  --h-text2: #c9d2e8;
  --h-muted: #9aa6c4;
  --h-link: #8fb4ff;
  --h-accent: #4f8cff;
  --h-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --h-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
html { background: var(--h-bg); color-scheme: dark; scroll-padding-top: 88px; }
body { margin: 0; background: var(--h-bg); color: var(--h-text2); font: 16px/1.65 var(--h-font); -webkit-text-size-adjust: 100%; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 10px; background: var(--h-accent); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.shell { max-width: 1180px; margin: 0 auto; padding: 88px 20px 56px; }
.shell-home { max-width: 860px; }
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 40px; align-items: start; }
.layout.no-toc { grid-template-columns: 240px minmax(0, 1fr); }

/* the topics of the site */
.side { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; padding-right: 4px; }
.side-title { margin: 0 0 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--h-muted); }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 10px; color: var(--h-text2); text-decoration: none; line-height: 1.3; }
.side-title a { display: inline-flex; padding: 6px 12px 6px 0; min-height: 44px; font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--h-text); }
.side a:hover { background: var(--h-card); color: var(--h-text); }
.side a[aria-current="page"] { background: var(--h-card); color: var(--h-text); box-shadow: inset 3px 0 0 var(--h-accent); }
.side-title a[aria-current="page"] { background: none; box-shadow: none; color: var(--h-link); }

/* the page */
.doc { min-width: 0; }
.doc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--h-muted); }
.crumbs li + li::before { content: "\203a"; margin: 0 8px; color: var(--h-muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--h-link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--h-text2); }
.langs { display: flex; gap: 6px; }
.langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--h-line); border-radius: 999px; color: var(--h-text2); font-size: .9rem; text-decoration: none; }
.langs a:hover { border-color: var(--h-accent); color: var(--h-text); }
.langs a[aria-current="true"] { background: var(--h-card); color: var(--h-text); border-color: var(--h-accent); }

.doc h1, .home h1 { margin: .2em 0 .3em; color: var(--h-text); font-size: clamp(1.75rem, 3.2vw, 2.3rem); line-height: 1.2; letter-spacing: -.01em; }
.doc h2, .home h2 { margin: 2em 0 .5em; padding-top: .2em; color: var(--h-text); font-size: 1.4rem; line-height: 1.3; scroll-margin-top: 88px; }
.doc h3 { margin: 1.6em 0 .4em; color: var(--h-text); font-size: 1.12rem; line-height: 1.35; scroll-margin-top: 88px; }
.lead { margin: 0 0 1.4em; color: var(--h-muted); font-size: 1.1rem; line-height: 1.55; }
.doc p, .doc li { max-width: 70ch; }
.doc p { margin: 0 0 1em; }
.doc ul, .doc ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.doc li { margin: .3em 0; }
.doc li::marker { color: var(--h-muted); }
.doc strong { color: var(--h-text); }
.doc a, .home a.plain { color: var(--h-link); text-underline-offset: 3px; }
.doc a:hover { text-decoration-thickness: 2px; }
.doc code { padding: .12em .4em; border: 1px solid var(--h-line); border-radius: 6px; background: #0b1020; color: var(--h-text); font: .9em/1.4 var(--h-mono); overflow-wrap: anywhere; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 3px; border-radius: 4px; }

.note { max-width: 70ch; margin: 1.4em 0; padding: 14px 18px; border: 1px solid var(--h-line); border-left: 4px solid var(--h-accent); border-radius: 12px; background: var(--h-card); color: var(--h-text); }
.note p { margin: 0; }
.doc .note a { color: var(--h-link); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 12px; background: var(--h-accent); color: #fff; font-weight: 600; text-decoration: none; }
.doc .btn { color: #fff; }
.btn:hover { background: #3d78e8; }

/* cards (the home page and the topics of a site) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.card a { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 44px; padding: 16px 18px; border: 1px solid var(--h-line); border-radius: 14px; background: var(--h-card); text-decoration: none; }
.card a:hover { border-color: var(--h-accent); }
.card-title { color: var(--h-text); font-weight: 700; }
.card-text { color: var(--h-muted); font-size: .95rem; line-height: 1.45; }
.card-soon .card-title { color: var(--h-text2); }
.badge { display: inline-block; margin-left: 6px; padding: 1px 9px; border: 1px solid var(--h-line); border-radius: 999px; color: var(--h-muted); font-size: .72rem; font-weight: 600; letter-spacing: .03em; vertical-align: middle; }
.home .cards a { color: inherit; }

/* previous / next */
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 2.4em 0 1em; }
.pager a { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; max-width: 340px; min-height: 44px; padding: 12px 16px; border: 1px solid var(--h-line); border-radius: 12px; background: var(--h-card); text-decoration: none; }
.pager a:hover { border-color: var(--h-accent); }
.pager .next { text-align: right; margin-left: auto; }
.pager-dir { color: var(--h-muted); font-size: .8rem; }
.pager-title { color: var(--h-link); font-weight: 600; }
.reviewed { margin: 1.6em 0 0; padding-top: 14px; border-top: 1px solid var(--h-line); color: var(--h-muted); font-size: .88rem; }

/* «En esta página» */
.toc { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; font-size: .9rem; }
.toc-title { margin: 0 0 8px; color: var(--h-muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--h-line); }
.toc a { display: block; padding: 6px 12px; color: var(--h-muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--h-text); }
.toc .l3 a { padding-left: 26px; }

/* the owner's banner while the service is in maintenance (vendor/admin/kit/owner.js; src/gate.js drops its inline style, the CSP forbids it) */
#duxels-owner-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483647; padding: 8px 12px; background: #111; color: #fff; font: 14px/1.4 system-ui, sans-serif; text-align: center; }

@media (max-width: 1040px) {
  .layout, .layout.no-toc { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .shell { padding: 76px 16px 40px; }
  .layout, .layout.no-toc { display: block; }
  .side { position: static; max-height: none; margin-bottom: 18px; padding: 8px 10px; border: 1px solid var(--h-line); border-radius: 14px; background: var(--h-card); }
  .side a:hover { background: #1c2850; }
  .doc p, .doc li, .note { max-width: none; }
  .pager .next { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .card a, .pager a, .btn, .side a { transition: border-color .15s, background-color .15s; }
}
