/* The documentation pages: made by scripts/docs-pages.mjs. */
.docs-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 18px; }
.docs-search { position: relative; flex: 1 1 260px; max-width: 560px; min-width: 0; }
.docs-search input { width: 100%; }
.docs-results { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; max-height: min(60vh, 28rem); overflow: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.docs-results li { margin: 0; }
.docs-results a { display: block; min-height: 44px; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: inherit; overflow-wrap: anywhere; }
.docs-results a:hover, .docs-results a[aria-selected="true"] { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.docs-results small { display: block; color: var(--muted); font-size: .78rem; }
.docs-results .docs-none { padding: 10px; color: var(--muted); font-size: .9rem; }
.docs-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.docs-layout { display: grid; gap: 18px 36px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .docs-layout { grid-template-columns: 17.5rem minmax(0, 1fr); } .docs-menu-toggle { display: none; } }
.docs-menu { min-width: 0; }
@media (min-width: 900px) { .docs-menu { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; padding-right: 6px; } }
.docs-menu-toggle { width: 100%; justify-content: space-between; }
.docs-nav { display: grid; gap: 14px; margin-top: 10px; font-size: .9rem; }
.docs-nav[hidden] { display: none; }
.docs-nav h2 { margin: 0 0 2px; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li > a { display: flex; align-items: center; min-height: 40px; padding: 0 8px; border-radius: 8px; text-decoration: none; color: inherit; overflow-wrap: anywhere; }
.docs-nav li > a:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.docs-nav li > a[aria-current="page"] { font-weight: 700; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.docs-nav ul ul { margin: 2px 0 6px 12px; border-left: 1px solid var(--rule); }
.docs-nav ul ul a { min-height: 32px; font-size: .82rem; color: var(--muted); }
.docs-article { min-width: 0; max-width: 100%; line-height: 1.6; }
.docs-article > * { max-width: 100%; }
.docs-article h1 { font-size: 1.7rem; margin: 0 0 12px; }
.docs-article h2 { font-size: 1.3rem; margin: 36px 0 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
.docs-article h3 { font-size: 1.08rem; margin: 26px 0 6px; }
.docs-article h4 { font-size: 1rem; margin: 18px 0 4px; }
.docs-article :is(h1, h2, h3, h4) { scroll-margin-top: 14px; overflow-wrap: anywhere; }
.docs-article :is(h2, h3, h4) .docs-anchor { margin-left: .4em; opacity: 0; color: var(--muted); text-decoration: none; font-weight: 400; }
.docs-article :is(h2, h3, h4):hover .docs-anchor, .docs-article .docs-anchor:focus { opacity: 1; }
.docs-article p, .docs-article li { max-width: 76ch; overflow-wrap: anywhere; }
.docs-article ul, .docs-article ol { padding-left: 1.4rem; }
.docs-article li { margin: 3px 0; }
.docs-article a { text-underline-offset: 2px; }
.docs-article :not(pre) > code { font-size: .88em; border: 1px solid var(--rule); border-radius: 6px; padding: 0 5px; background: var(--surface); overflow-wrap: anywhere; }
.docs-article blockquote { margin: 12px 0; padding: 2px 14px; border-left: 3px solid var(--accent); color: var(--muted); }
.docs-article img { max-width: 100%; height: auto; }
.docs-article hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }
.docs-code { position: relative; margin: 12px 0; max-width: 100%; }
.docs-code pre { padding-right: 5.2rem; }
.docs-code .docs-copy { position: absolute; top: 6px; right: 6px; min-height: 36px; padding: 0 10px; font-size: .78rem; }
.docs-table { overflow-x: auto; max-width: 100%; margin: 12px 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.docs-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.docs-table table { width: max-content; min-width: 100%; }
.docs-table :is(th, td) { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--rule); min-width: 6.5rem; max-width: 34rem; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table th { position: sticky; top: 0; background: var(--surface); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.docs-table.docs-wide td:first-child, .docs-table.docs-wide th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 8rem; border-right: 1px solid var(--rule); }
.docs-note { color: var(--muted); font-size: .88rem; }
.docs-pager { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin: 36px 0 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.docs-pager a { display: inline-flex; flex-direction: column; min-height: 52px; justify-content: center; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; min-width: 9rem; max-width: 100%; }
.docs-pager a:hover { border-color: var(--ink); }
.docs-pager small { color: var(--muted); font-size: .75rem; }
.docs-pager a[rel="next"] { text-align: right; margin-left: auto; }
.docs-edit { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.docs-english { display: none; margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
html[lang="ja"] .docs-english { display: block; }

/* The gallery. */
.g-groups { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; margin: 12px 0; }
.g-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); margin: 10px 0 24px; }
.g-item { margin: 0; min-width: 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); padding: 10px; display: grid; gap: 8px; align-content: start; }
.g-item h3 { margin: 0; padding: 0; border: 0; font-size: .98rem; }
.g-art { min-width: 0; display: flex; justify-content: center; align-items: center; background: var(--page); border-radius: 10px; padding: 6px; min-height: 90px; }
.g-art svg { max-width: 100%; height: auto; }
.g-art svg[data-orientation="portrait"] { width: auto; max-height: 24rem; }
.g-note { margin: 0; font-size: .85rem; color: var(--muted); }
.g-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.g-status { font-size: .8rem; color: var(--muted); }
.g-actions a.fam-button { text-decoration: none; }
.g-published { font-size: .75rem; }
.g-code { min-width: 0; }
.g-code summary { cursor: pointer; font-size: .85rem; min-height: 32px; display: flex; align-items: center; }
.g-code pre { margin-top: 6px; max-height: 22rem; overflow: auto; white-space: pre; }
.g-item--wide { grid-column: 1 / -1; }
.g-frames { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); margin: 12px 0; }
.g-frames .g-art svg { width: 100%; }
