/* Webinarclose docs. Loads after site.css and only adds docs layout: sidebar, article type, code, tables, API reference. */
.docs{display:grid;gap:var(--space-7);padding-block:var(--space-6) var(--space-8);grid-template-columns:minmax(0,1fr)}
@media(min-width:980px){.docs{grid-template-columns:240px minmax(0,1fr);gap:var(--space-9);align-items:start}}
.docs__main{min-width:0}

/* sidebar */
.docs__side{display:flex;flex-direction:column;gap:var(--space-6);min-width:0}
@media(min-width:980px){.docs__side{position:sticky;top:var(--space-6);max-height:calc(100vh - 48px);overflow-y:auto;padding-right:var(--space-2)}}
.docs-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.docs-nav ul ul{margin:var(--space-1) 0 var(--space-3) var(--space-3)}
.docs-nav a{display:block;padding:6px 14px;border-radius:var(--radius-pill);text-decoration:none;font-size:15px;color:var(--text-muted)}
.docs-nav a:hover{color:var(--text);background:var(--panel)}
.docs-nav a[aria-current=page]{color:var(--text);background:var(--panel);font-weight:600}
.docs-nav__title{font-size:14px;font-weight:600;color:var(--text);margin:0 0 var(--space-2) 14px}
.docs-nav--toc a{font-size:14px;padding:4px 14px;overflow-wrap:anywhere}
.docs-nav--toc ul ul a{font-family:var(--font-mono);font-size:12.5px}
@media(max-width:979px){.docs-nav__title{display:none}.docs-nav--toc{display:none}.docs-nav ul{flex-direction:row;flex-wrap:wrap;gap:var(--space-2)}.docs-nav a{box-shadow:inset 0 0 0 1px var(--line)}}

/* article */
.doc{display:flex;flex-direction:column;gap:var(--space-4);max-width:52em}
.doc h1{font-family:var(--font-display);font-weight:700;font-size:clamp(32px,4.4vw,48px);line-height:1.1;letter-spacing:-.01em;margin-bottom:var(--space-2)}
.doc h2{font-family:var(--font-display);font-weight:600;font-size:clamp(24px,3vw,30px);line-height:1.2;margin-top:var(--space-7)}
.doc h3{font-family:var(--font-display);font-size:21px;line-height:1.25;font-weight:600;margin-top:var(--space-5)}
.doc h4{font-size:17px;font-weight:600;margin:var(--space-3) 0 0}
.doc p,.doc li{max-width:42em}
.doc ul,.doc ol{margin:0;padding-left:1.4em;display:flex;flex-direction:column;gap:var(--space-2)}
.doc a{text-underline-offset:3px}
.doc :not(pre)>code{background:var(--deep);border-radius:6px;padding:1px 6px;font-size:.86em;overflow-wrap:break-word;word-break:normal}
.doc pre.code{max-width:100%}
.doc pre.code code{font-size:inherit;background:none;padding:0}
.doc .lead{margin-bottom:var(--space-2)}
.doc .table-box{margin:var(--space-2) 0}
.doc table{min-width:560px}
.doc td{min-width:0}
.doc th:first-child{min-width:140px}
.doc td:first-child>code{white-space:nowrap}
.table-hint{display:none}
/* phones: 2-column tables fit the screen; tables with 3+ columns (.doc-table--wide) keep their width and scroll, with a text hint */
@media(max-width:599px){
  .doc table{min-width:0}
  /* 2-column tables stack: label above value, value at full width */
  .doc .table-box:not(.doc-table--wide) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .doc .table-box:not(.doc-table--wide) tr{display:block;padding:var(--space-3) var(--space-5) var(--space-3) var(--space-6);border-bottom:1px solid var(--line)}
  .doc .table-box:not(.doc-table--wide) tbody tr:last-child{border-bottom:0}
  .doc .table-box:not(.doc-table--wide) th,
  .doc .table-box:not(.doc-table--wide) td{display:block;width:auto;min-width:0;position:static;border:0;padding:0}
  .doc .table-box:not(.doc-table--wide) td:first-child{font-weight:600;overflow-wrap:break-word}
  .doc .table-box:not(.doc-table--wide) td{overflow-wrap:break-word}
  .doc .table-box:not(.doc-table--wide) td code{word-break:normal;overflow-wrap:break-word}
  .doc .doc-table--wide table{min-width:560px}
  .doc .doc-table--wide{border-top-right-radius:0;border-bottom-right-radius:0}
  .doc .table-hint{display:block;margin-bottom:calc(-1 * var(--space-2))}
}
.callout{background:var(--panel);border-radius:var(--radius-md);padding:var(--space-4) var(--space-5);display:flex;flex-direction:column;gap:var(--space-2)}
.callout p{max-width:none}
.doc-cards{display:grid;gap:var(--space-4)}
@media(min-width:760px){.doc-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.doc-card{display:flex;flex-direction:column;gap:var(--space-2);text-decoration:none;background:var(--panel);border-radius:var(--radius-lg);padding:var(--space-5) var(--space-6)}
.doc-card:hover{box-shadow:inset 0 0 0 1.5px var(--line-strong)}
.doc-card .title{font-size:19px}
.doc-card p{color:var(--text-muted);font-size:15px}
.doc-lang{align-self:flex-start}

/* API reference */
.doc-group{display:flex;flex-direction:column;gap:var(--space-4)}
.op{display:flex;flex-direction:column;gap:var(--space-3);padding-top:var(--space-5);border-top:1px solid var(--line);scroll-margin-top:var(--space-4)}
.op h3{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);margin-top:0}
.op__path{font-size:16px;overflow-wrap:anywhere;min-width:0;max-width:100%}
.op__summary{font-weight:600}
.op__meta{font-size:15px;line-height:1.8}
.op__meta>p{display:grid;grid-template-columns:7.5em minmax(0,1fr);gap:0 var(--space-3);align-items:baseline}
.op__meta .label{min-width:0}
.method{display:inline-flex;align-items:center;justify-content:center;min-width:4.2em;min-height:24px;padding:0 8px;border-radius:var(--radius-pill);font-family:var(--font-mono);font-size:12px;font-weight:500;letter-spacing:.02em;background:var(--deep);box-shadow:inset 0 0 0 1px var(--line-strong);color:var(--text)}
.method--get{color:var(--text-muted)}
.responses{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--space-3) var(--space-4)}
.responses dt{padding-top:2px}
.responses dd{margin:0;display:flex;flex-direction:column;gap:var(--space-2);min-width:0}
.doc-ctype{font-size:14px;color:var(--text-muted)}
.doc-variant{font-weight:600;font-size:15px}
/* header: the current section is underlined like a hovered nav link */
.nav__links a[aria-current]{text-decoration:underline;text-underline-offset:4px}
@media(max-width:599px){.nav__links{gap:var(--space-4)}}
[id]{scroll-margin-top:var(--space-4)}
/* API sidebar: the method badge always sits above its path, so every entry has the same shape */
.docs-nav--toc ul ul a{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
/* phones: logo and Log in in one row; the docs pages list below the header is the menu */
@media(max-width:599px){.nav__links a[aria-current]{display:none}}
