/* Frank Gaming Docs */
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 40px 0 96px; }
.docs-nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.docs-nav > a { padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.docs-nav > a:hover { background: var(--deck-2); color: var(--text); text-decoration: none; }
.docs-nav > a.is-active { background: var(--deck-3); color: #fff; box-shadow: inset 3px 0 0 var(--cyan); }
.docs-nav-cta { display: grid; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.docs-content { max-width: 760px; min-width: 0; }
.docs-content h1 { font-size: clamp(32px, 4.5vw, 46px); }
.docs-content h2 { margin: 40px 0 10px; font-size: 23px; }
.docs-content p { color: var(--muted); }
.docs-content p + p { margin-top: 12px; }
.docs-lead { margin-top: 14px; font-size: 19px; color: var(--text) !important; opacity: .86; }
.docs-steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.docs-steps li { counter-increment: step; position: relative; padding: 20px 22px 20px 70px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--deck); }
.docs-steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--cyan); border-radius: 9px; color: var(--cyan); font: 700 16px var(--font-display); }
.docs-steps h2 { margin: 4px 0 6px; font-size: 19px; }
.docs-steps p + p { margin-top: 12px; }
.docs-note { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--magenta); border-radius: var(--r-control); background: var(--deck); }
.docs-note p { margin-top: 4px; }
.docs-dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 12px 24px; margin: 16px 0 0; }
.docs-dl dt { font-weight: 600; }
.docs-dl dd { margin: 0; color: var(--muted); }
.docs-system { padding: 4px 0 4px 18px; margin-top: 30px; border-left: 2px solid var(--line-strong); scroll-margin-top: 96px; }
.docs-system:target { border-left-color: var(--cyan); }
.docs-system h2 { margin: 0 0 8px; }
.docs-meta { margin-top: 10px !important; font-size: 14px; }
.cmd { color: var(--cyan); }
.docs-search { position: relative; display: block; margin: 28px 0 8px; }
.docs-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.docs-search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--deck); color: var(--text); font: 400 16px var(--font-body); }
.docs-search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(59, 232, 255, .16); }
.docs-cmd-group h2 { margin-top: 34px; }
.docs-cmd-list { display: grid; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.docs-cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 16px; background: var(--deck); }
.docs-cmd + .docs-cmd { border-top: 1px solid var(--line); }
.docs-cmd-sig { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.docs-cmd-sig code { background: transparent; border: 0; padding: 0; color: var(--cyan); font-size: 15px; font-weight: 600; }
.docs-param { padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); font-size: 13px; }
.docs-param.is-optional { border-style: dashed; color: var(--faint); }
.docs-cmd p { grid-column: 1; font-size: 14.5px; }
.docs-copy { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--muted); font: 600 13px var(--font-body); cursor: pointer; }
.docs-copy:hover { border-color: var(--cyan); color: var(--text); }
.docs-faq { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--deck); }
.docs-faq summary { padding: 16px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.docs-faq summary::-webkit-details-marker { display: none; }
.docs-faq summary::after { content: "+"; float: right; color: var(--faint); font-size: 20px; line-height: 1; }
.docs-faq[open] summary::after { content: "–"; }
.docs-faq p { padding: 0 18px 18px; }
.docs-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.docs-pager a { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-control); color: var(--text); font-weight: 600; }
.docs-pager a:hover { border-color: var(--cyan); text-decoration: none; }
.docs-pager a.is-next { text-align: right; margin-left: auto; }
.docs-pager small { color: var(--faint); font-weight: 500; }
.empty-inline { padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--r-control); color: var(--faint); text-align: center; }
@media (max-width: 900px) {
    .docs-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
    .docs-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
    .docs-nav > a { flex: none; white-space: nowrap; }
    .docs-nav-cta { display: none; }
    .docs-dl { grid-template-columns: 1fr; gap: 4px; }
    .docs-dl dd { margin-bottom: 10px; }
}
