/* Help center (/docs and /es/docs), 2026-11-15. Loaded after /blog/blog.css (same colors, fonts, header and footer); only what a guide needs is added here.
   Works from 390 px (phone) to 1366 px and wider. Colors come from the variables of blog.css, so the light theme follows by itself. */

.docs-wrap{max-width:1180px;margin:0 auto;padding-inline:24px}
.docs-crumbs{display:flex;flex-wrap:wrap;gap:6px;padding-top:26px;font-size:13.5px;color:var(--text-faint)}
.docs-crumbs a{color:var(--text-dim)}
.docs-crumbs a:hover{color:var(--text)}

/* ---------- page layout: a menu on the left (a folded list on a phone) and the guide ---------- */
.docs-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding:14px 0 10px}
.docs-side{font-size:14px}
.docs-side > summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:10px 14px;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface);color:var(--text);font-weight:700}
.docs-side > summary::-webkit-details-marker{display:none}
.docs-side > summary::after{content:"+";font-weight:700;color:var(--cyan)}
.docs-side[open] > summary::after{content:"\2212"}
.docs-side-body{margin-top:8px;padding:6px 14px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.docs-side h2{font-family:"JetBrains Mono",monospace;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);margin:16px 0 6px;font-weight:600}
.docs-side ul{list-style:none;margin:0;padding:0}
.docs-side li a{display:block;padding:8px 8px;min-height:36px;border-radius:8px;color:var(--text-dim);line-height:1.3}
.docs-side li a:hover{color:var(--text);background:var(--surface-2)}
.docs-side li a[aria-current="page"]{color:var(--text);background:var(--surface-2);font-weight:700;box-shadow:inset 3px 0 0 var(--cyan)}
@media(min-width:1000px){
  .docs-layout{grid-template-columns:270px minmax(0,1fr);gap:44px;padding-top:22px}
  .docs-side{position:sticky;top:84px;align-self:start;max-height:calc(100vh - 104px);overflow:auto;overscroll-behavior:contain}
  .docs-side > summary{display:none}
  .docs-side-body{margin-top:0}
}

/* ---------- the guide ---------- */
.docs-article{min-width:0;padding-bottom:30px;font-size:16.5px;line-height:1.75;color:var(--text-dim)}
.docs-head{padding:4px 0 8px}
.docs-head h1{color:var(--text);font-size:clamp(28px,5vw,42px);line-height:1.1;margin:12px 0 10px}
.docs-lang{display:inline-flex;margin:6px 0 0}
.docs-lang a{color:var(--text-dim);font-weight:700;font-size:13px;padding:6px 12px;border-radius:999px}
.docs-lang a.active{background:var(--surface-2);color:var(--text)}
.docs-article h2{color:var(--text);font-size:clamp(21px,3.4vw,26px);margin:38px 0 14px;scroll-margin-top:90px}
.docs-article h3{color:var(--text);font-size:19px;margin:26px 0 10px}
.docs-article p{margin:0 0 16px}
.docs-article ul,.docs-article ol{margin:0 0 18px;padding-left:22px}
.docs-article li{margin-bottom:8px}
.docs-article strong{color:var(--text)}
.docs-article a:not(.btn){color:var(--cyan);text-decoration:underline;text-decoration-color:rgba(56,224,255,.35);text-underline-offset:3px}
:root[data-theme="light"] .docs-article a:not(.btn){color:#0e7490}
.docs-lead{font-size:18px;line-height:1.65;color:var(--text-dim);max-width:62ch}

/* who sees it / where to find it / what it needs */
.docs-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:18px 0 8px}
.docs-facts > div{padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.docs-facts dt{font-family:"JetBrains Mono",monospace;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);margin:0 0 6px}
.docs-facts dd{margin:0;font-size:15px;line-height:1.55;color:var(--text)}
.docs-facts dl{display:contents;margin:0}

/* numbered steps */
.docs-steps{list-style:none;counter-reset:step;padding:0!important;margin:0 0 22px!important}
.docs-steps > li{counter-increment:step;position:relative;margin:0 0 12px;padding:14px 16px 14px 58px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.docs-steps > li::before{content:counter(step);position:absolute;left:14px;top:14px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-family:"Sora",sans-serif;font-weight:800;font-size:14px;color:#04121c;background:linear-gradient(135deg,var(--cyan),var(--cyan-soft))}
.docs-steps > li > strong:first-child{display:block;margin-bottom:2px}
.docs-steps p{margin:0 0 8px}
.docs-steps p:last-child{margin-bottom:0}

/* screenshots: always small, never wider than the column */
.docs-shot{margin:18px 0 22px}
.docs-shot img{display:block;width:100%;height:auto;border-radius:14px;box-shadow:0 0 0 1px var(--border),0 14px 34px rgba(0,0,0,.22);background:var(--surface)}
.docs-shot figcaption{margin-top:9px;font-size:13px;line-height:1.5;color:var(--text-faint)}
.docs-shot.phone img{max-width:300px;margin-inline:auto}
.docs-shot.phone figcaption{text-align:center}
.docs-shots{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;align-items:start;margin:18px 0 22px}
.docs-shots .docs-shot{margin:0}
.docs-shots .docs-shot.phone img{max-width:100%}

/* notes: a tip, what happens when the module is off, something to be careful about */
.docs-note{margin:20px 0;padding:14px 16px;border-radius:14px;border:1px solid var(--border-strong);background:var(--surface-2);color:var(--text-dim)}
.docs-note > :last-child{margin-bottom:0}
.docs-note .docs-note-h{display:block;font-family:"JetBrains Mono",monospace;font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--cyan);margin-bottom:6px;font-weight:600}
:root[data-theme="light"] .docs-note .docs-note-h{color:#0e7490}
.docs-note.docs-off{border-color:rgba(255,184,77,.45)}
.docs-note.docs-off .docs-note-h{color:#ffb84d}
:root[data-theme="light"] .docs-note.docs-off .docs-note-h{color:#9a5b00}
.docs-note.docs-care{border-color:rgba(255,107,107,.45)}
.docs-note.docs-care .docs-note-h{color:#ff8a8a}
:root[data-theme="light"] .docs-note.docs-care .docs-note-h{color:#b42318}

/* tables scroll sideways inside their box instead of the page */
.docs-table-wrap{overflow-x:auto;margin:0 0 20px;border:1px solid var(--border);border-radius:12px}
.docs-article table{border-collapse:collapse;width:100%;min-width:480px;font-size:15px;line-height:1.5}
.docs-article th,.docs-article td{text-align:left;vertical-align:top;padding:10px 14px;border-bottom:1px solid var(--border)}
.docs-article th{color:var(--text);font-weight:700;background:var(--surface)}
.docs-article tr:last-child td{border-bottom:0}

/* links to the next guides */
.docs-related{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0!important;margin:0 0 18px!important}
.docs-related li{margin:0}
.docs-related a:not(.btn){display:inline-flex;align-items:center;min-height:44px;padding:9px 16px;border-radius:999px;border:1px solid var(--border-strong);background:var(--surface-2);color:var(--text);text-decoration:none;font-weight:700;font-size:14px}
.docs-related a:not(.btn):hover,.docs-related a:not(.btn):focus-visible{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(56,224,255,.12)}

/* the tutorial video the lead adds later sits right under the title; nothing shows until then */
.docs-video{margin:0 0 20px}

.docs-cta{margin-top:34px}

/* ---------- the hub ---------- */
.docs-hero{padding:34px 0 12px}
.docs-hero h1{font-size:clamp(30px,5vw,46px);line-height:1.08;margin:14px 0}
.docs-hero .docs-lead{margin:0 0 20px}
.docs-search{width:100%;max-width:520px;min-height:48px;padding:10px 16px;border-radius:12px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font:inherit;font-size:16px}
.docs-search:focus{outline:2px solid var(--cyan);outline-offset:2px}
.docs-section{padding:26px 0 4px}
.docs-section > h2{font-size:clamp(22px,3.4vw,28px);margin:0 0 6px}
.docs-section > p{margin:0 0 14px;color:var(--text-dim);font-size:15.5px;line-height:1.6;max-width:70ch}
.docs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;list-style:none;margin:0;padding:0}
.docs-card{display:block;height:100%;padding:16px 18px;border:1px solid var(--border);border-radius:14px;background:var(--surface);transition:border-color .15s ease,transform .15s ease}
.docs-card:hover,.docs-card:focus-visible{border-color:var(--cyan);transform:translateY(-1px)}
.docs-card strong{display:block;font-family:"Sora","Manrope",sans-serif;font-size:16.5px;color:var(--text);margin-bottom:4px}
.docs-card span{display:block;font-size:14px;line-height:1.5;color:var(--text-dim)}
.docs-empty{color:var(--text-dim);padding:18px 0}
.docs-more{margin-top:34px}

@media(max-width:640px){
  .docs-wrap{padding-inline:16px}
  .docs-article{font-size:16px}
  .docs-steps > li{padding:12px 12px 12px 50px}
  .docs-steps > li::before{left:12px;top:12px}
}
@media print{
  nav,.mobile-links,.docs-side,footer,.docs-cta{display:none!important}
}
