/* The Studio manual (studio-manual.html and studio-manual/<topic>.html, made by tools/studio_manual.py from Studio's
   Help): the contents page's sections, a topic beside its section's list, the search, code, tables and pictures.
   (.manual, .manual-toc and .manual-topic are the Room 3D manual's, in style.css.) */
.sm-section { padding-top: 32px; }
.sm-head { padding: 34px 0 26px; }
.sm-head h1 { font-size: clamp(34px, 6vw, 56px); margin: 0; overflow-wrap: anywhere; }
.sm-crumbs { margin: 0 0 4px; font-weight: 800; color: var(--muted); font-size: 15px; }
.sm-crumbs a { color: var(--yellow); text-decoration: none; }
.sm-crumbs a:hover { text-decoration: underline; }

/* The search box and its results. */
.sm-search input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 3px solid #000; font: inherit; font-size: 17px; background: #fff; color: #111; }
.sm-search input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sm-count { margin: 6px 2px 0; min-height: 0; }
.sm-count:empty { display: none; }
.sm-results { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.sm-results a { display: block; padding: 8px 10px; border-radius: 10px; background: var(--night); border: 2px solid #000; color: var(--text); text-decoration: none; }
.sm-results a:hover, .sm-results a:focus-visible { border-color: var(--yellow); }
.sm-results b { color: var(--yellow); }
.sm-results small { color: var(--muted); font-weight: 700; margin-left: 4px; }
.sm-results span { display: block; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.sm-results mark { background: var(--yellow); color: #111; border-radius: 3px; padding: 0 2px; }

/* The contents page. */
.sm-landing .sm-top { max-width: 760px; margin: 0 auto 22px; }
.sm-keys { color: var(--muted); }
.sm-jump ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sm-jump a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--panel); border: 2px solid #000; color: var(--text); font-weight: 800; font-size: 15px; text-decoration: none; }
.sm-jump a:hover { color: var(--yellow); }
.sm-groups { display: grid; gap: 22px; }
.sm-group { background: var(--panel); border: 3px solid #000; border-radius: var(--radius); padding: 16px 18px; margin: 0; box-shadow: 0 6px 0 #000; scroll-margin-top: 84px; }
.sm-group h2 { font-size: 28px; margin: 0 0 4px; }
.sm-n { font-family: "Nunito", sans-serif; font-size: 14px; font-weight: 800; color: var(--ink); background: var(--sky); border: 2px solid #000; border-radius: 8px; padding: 0 7px; vertical-align: middle; }
.sm-line { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.sm-group ul { list-style: none; margin: 0; padding: 0; columns: 3 230px; column-gap: 24px; }
.sm-group li { break-inside: avoid; }
.sm-group li a { display: block; padding: 2px 0; font-weight: 700; color: var(--text); text-decoration: none; }
.sm-group li a:hover { color: var(--yellow); text-decoration: underline; }

/* A topic page. */
.sm-toc .sm-search { margin-bottom: 10px; }
.sm-toc .sm-search input { font-size: 15px; padding: 8px 10px; border-width: 2px; margin: 0; }
.sm-back { margin: 0 0 6px; font-weight: 800; }
.sm-toc-head { font-size: 22px; margin: 8px 0 6px; color: var(--yellow); }
.sm-toc li a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.sm-other { margin-top: 12px; }
.sm-other summary { cursor: pointer; font-weight: 800; color: var(--muted); }
.sm-topic { font-size: 17px; }
.sm-topic > :first-child { margin-top: 0; }
.sm-topic p, .sm-topic li { overflow-wrap: anywhere; }
.sm-topic ul, .sm-topic ol { padding-left: 22px; }
.sm-topic li > ul, .sm-topic li > ol { margin: 4px 0 6px; }
.sm-code { margin: 0 0 16px; background: #0a0d1c; border: 3px solid #000; border-radius: 12px; box-shadow: 0 6px 0 #000; padding: 14px 16px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.manual-topic .sm-code code { background: none; color: #e8ecf4; padding: 0; border-radius: 0; }
.sm-table { overflow-x: auto; margin: 0 0 16px; }
.sm-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.sm-table th, .sm-table td { border: 2px solid #000; padding: 6px 10px; text-align: left; vertical-align: top; }
.sm-table th { background: var(--night); color: var(--yellow); }
.sm-figure { margin: 0 0 16px; }
.sm-figure img { width: auto; max-width: min(100%, 680px); height: auto; border: 3px solid #000; border-radius: 12px; }
.sm-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.sm-shows { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.sm-related-head { font-size: 24px; margin: 22px 0 8px; border-top: 2px solid var(--panel-edge); padding-top: 16px; }
.sm-related { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-related a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--night); border: 2px solid #000; color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; }
.sm-related a:hover { color: var(--yellow); }
.sm-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 14px; }
.sm-pager a { display: block; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 3px solid #000; color: var(--text); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.sm-pager a:hover { color: var(--yellow); }
.sm-pager small { display: block; color: var(--muted); font-weight: 700; }
.sm-pager .sm-next { grid-column: 2; text-align: right; }
@media (max-width: 800px) {
  .sm .manual-body { order: -1; }
  .manual-topic.sm-topic { padding: 16px 16px; }
  .sm-pager { grid-template-columns: 1fr; }
  .sm-pager .sm-next { grid-column: auto; }
}
