/* The plugin guide: a long page to read. Colors, sizes and speeds come from tokens.css. */

.guide-hero { padding: 72px 0 0; }
.guide-hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; }
.guide-hero h1 .g { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guide-hero .lead { margin: 18px 0 0; max-width: 620px; }

.guide { display: grid; grid-template-columns: 200px 1fr; gap: 56px; padding-top: 56px; }

/* the contents: our tabs, standing in a column */
.toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.toc .wtab { align-self: flex-start; padding: 4px 0; font-size: 14px; }

.doc { min-width: 0; max-width: 720px; }
.doc section { padding: 0 0 64px; scroll-margin-top: 80px; }
.doc h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; margin-bottom: 16px; }
.doc h3 { font-size: 18px; font-weight: 400; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-text); font-size: 15px; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc .soft { color: var(--ink-label); }
.doc a { color: var(--mid); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--mid) 40%, transparent); transition: border-color var(--fast) var(--ease); }
.doc a:hover { border-color: var(--mid); }

/* code */
.doc code { font: 13.5px/1.6 ui-monospace, 'Cascadia Code', Consolas, monospace; color: var(--ink-value); }
.doc p code, .doc li code, .doc td code { background: rgba(242, 238, 230, 0.06); padding: 1px 5px; border-radius: 4px; }
.doc pre { position: relative; margin: 16px 0 0; padding: 16px 18px; overflow-x: auto; background: #0e0e10;
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--band-lit), 0 4px 12px var(--shadow); border-radius: 6px; }
.doc pre code { font-size: 13px; color: var(--ink-text); white-space: pre; }
.doc pre .c { color: var(--ink-off); }
.doc .copy { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity var(--fast) var(--ease); }
.doc pre:hover .copy, .doc .copy:focus-visible { opacity: 1; }
@media (hover: none) { .doc .copy { opacity: 1; } .doc pre { padding-top: 48px; } }

/* tables */
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.doc th { text-align: left; font-weight: 500; color: var(--ink-label); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.doc td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-text); line-height: 1.55; }
.doc .scroll { overflow-x: auto; }

/* a short note in our look */
.doc .note { margin-top: 16px; }
.doc .note > .in { position: relative; inset: auto; margin: var(--t, 0); padding: 14px 18px; font-size: 14px; line-height: 1.65; }

@media (max-width: 860px) {
  .guide { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
