/* Styles of the bundled documentation pages only. */
html, body { height: 100%; margin: 0; }
.doc-article { padding: 8px 20px 64px; display: flex; flex-direction: column; gap: 8px; }
.doc-section { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.doc-section h2 { font-size: 15px; font-weight: 600; }
.doc-section p { line-height: 1.55; color: var(--ink-2); }
.doc-section p code, .doc-section td code { font-family: var(--font-mono); font-size: 12px; padding: 1px 5px; border-radius: 4px; background: var(--surface-2); }
.doc-signature { margin-top: 12px; }
.doc-example { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.doc-example__preview { position: relative; padding: 20px; background: var(--surface); }
.doc-example__tabs { padding-top: 2px; background: var(--surface-3); }
.doc-example__source .tr-code { border: 0; border-radius: 0; }
.doc-version { padding: 6px 10px 0; font-size: 11px; color: var(--muted); }
.doc-frame { position: relative; height: 320px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-3); }
.doc-frame .tr-drawer, .doc-frame .tr-modal { position: absolute; }
.doc-frame .tr-toasts { position: absolute; bottom: 16px; }
@media (max-width: 760px) {
  .tr-frame { flex-direction: column; }
  .tr-sidebar { flex: none; flex-direction: row; flex-wrap: nowrap; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .tr-sidebar__brand { margin: 0 12px 0 6px; }
  .tr-sidebar__heading, .tr-sidebar__grow, .doc-version { display: none; }
}
.doc-icons { display: flex; flex-direction: column; gap: 12px; }
.doc-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; }
.doc-icon { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 20px 8px 12px; border: 1px solid transparent; border-radius: var(--radius); background: none; color: var(--ink); cursor: pointer; }
.doc-icon:hover { border-color: var(--line); background: var(--surface-3); }
.doc-icon span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted); }
.doc-screen { display: flex; flex-direction: column; gap: 8px; }
.doc-screen__frame { display: block; width: 100%; height: 760px; border: 0; background: var(--surface); }
.doc-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.doc-swatch { flex: none; width: 18px; height: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.doc-letter { min-width: 32px; }
