/* FileSpacer page frame and navigation. */
:root { --fs-purple: #6f50b8; --fs-green: #369584; --fs-line: #dddde4; }
html { background: #eceef2; }
body.fs-site { margin: 0; background: transparent; }
.fs-frame { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); max-width: 66.5rem; height: calc(100dvh - 2rem); margin: 1rem auto; overflow: clip; border: 1px solid var(--fs-line); border-radius: .75rem; background: #fff; }
.fs-top-bar { grid-column: 1 / -1; display: flex; align-items: center; background: var(--fs-purple); }
.fs-top-slot { flex: 0 1 16.5rem; min-width: 0; }
.fs-top-nav { display: flex; flex: 0 0 auto; align-items: stretch; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; gap: .25rem; padding: .65rem .75rem; }
.fs-top-nav a { display: flex; flex-shrink: 0; align-items: center; padding: .6rem .9rem; border-radius: .4rem; color: #fff; font-size: .875rem; line-height: 1.35; white-space: nowrap; text-decoration: none; transition: background .15s; }
.fs-top-nav a:hover { background: #ffffff1c; }
.fs-top-nav a[aria-current="page"] { color: #51308d; background: #eee8fc; font-weight: 600; box-shadow: 0 1px 3px #35225626; }
.fs-top-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fs-sidebar { grid-column: 1; grid-row: 2 / 4; min-height: 0; display: flex; flex-direction: column; background: #f5f6fa; border-right: 1px solid var(--fs-line); padding: 1.4rem 0 1rem; }
.fs-brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem 1.25rem; }
.fs-menu-only { display: none; }
.fs-brand { display: flex; align-items: center; width: 100%; gap: .75rem; color: #27262b; font-size: 1.5rem; font-weight: 500; line-height: 1.3; text-decoration: none; }
.fs-brand img { display: block; width: 1.3em; height: 1.3em; margin-left: auto; object-fit: contain; }
.fs-section-title { margin: .2rem 1.5rem .65rem; color: #5c5962; font-size: .95rem; line-height: 1.45; font-weight: 600; }
.fs-brand-row #menu-button { display: none; }
.fs-sidebar .language-picker { margin: 0 1.5rem .75rem; }
.fs-sidebar #site-nav { display: block; flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 0 .75rem; margin: 0; }
.fs-section-links { list-style: none; margin: 0; padding: 0; }
.fs-section-links li { margin: .2rem 0; }
.fs-section-links .nav-list-item .nav-list-link { display: block; padding: .5rem .75rem; border-radius: .35rem; color: var(--fs-green); font-size: .875rem; line-height: 1.45; text-decoration: none; }
.fs-section-links .nav-list-item .nav-list-link:hover, .fs-section-links .nav-list-item .nav-list-link.active { background: #ebe7f4; }
.fs-section-links .nav-list-item .nav-list-link.active { color: var(--fs-purple); font-weight: 500; }
.fs-header-search { flex: 0 1 18rem; min-width: 0; width: 18rem; }
.fs-header-search .fs-search-results { right: 0; left: auto; }
.fs-search { position: relative; }
.fs-search-input-wrap { display: flex; align-items: center; position: relative; }
.fs-search-input { width: 100%; height: 2.6rem; padding: .6rem .6rem .6rem 2.1rem; border: 1px solid var(--fs-line); border-radius: .4rem; outline: none; font-size: .82rem; line-height: 1.4; background: #fff; color: #3d3d43; }
.fs-search-input:focus { border-color: var(--fs-purple); box-shadow: 0 0 0 3px #6f50b81a; }
.fs-search-label { display: flex; position: absolute; left: .65rem; color: #8c8796; pointer-events: none; }
.fs-search-label svg { width: 1rem; height: 1rem; }
.fs-search-results { display: none; position: absolute; top: calc(100% + .4rem); left: 0; z-index: 30; width: 32rem; max-width: calc(100vw - 5rem); max-height: min(26rem, calc(100dvh - 20rem)); overflow-y: auto; background: #fff; border: 1px solid var(--fs-line); border-radius: .5rem; box-shadow: 0 6px 24px #27262b26; }
.search-active .fs-search-results { display: block; }
.fs-tools { grid-column: 2; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: .65rem 1.5rem; border-bottom: 1px solid var(--fs-line); }
.fs-tools-brand { width: auto; margin-right: auto; gap: .65rem; }
.fs-tools-brand img { width: 32px; height: 32px; margin-left: 0; }
.fs-content-scroll { grid-column: 2; min-height: 0; overflow-y: auto; padding: 1.5rem 2rem 2rem; scroll-behavior: smooth; }
.fs-content-scroll .main-content { max-width: 100%; }
.fs-content-scroll h1 { margin-top: .5rem; font-size: 2rem; }
.fs-content-scroll h2 { color: var(--fs-green); }
.fs-content-scroll h3, .fs-content-scroll h4, .fs-content-scroll h5, .fs-content-scroll h6 { color: var(--fs-green); }
.fs-content-scroll p:not(:has(img)), .fs-content-scroll main li { text-align: justify; hyphens: auto; }
.fs-content-scroll main ul > li { position: relative; }
.fs-content-scroll [id] { scroll-margin-top: 1rem; }
@media (max-width: 68.5rem) and (min-width: 50rem) { .fs-frame { margin: .75rem; height: calc(100dvh - 1.5rem); } }
@media (max-width: 49.99rem) {
  html { background: #fff; }
  .fs-frame { display: flex; flex-direction: column; height: auto; margin: 0; border: 0; border-radius: 0; overflow: visible; }
  .fs-top-bar { display: block; }
  .fs-top-nav { min-width: 0; max-width: 100%; gap: .15rem; padding: .55rem; }
  .fs-top-nav a { padding: .55rem .65rem; font-size: .8rem; }
  .fs-sidebar { padding: 1rem 0; border-right: 0; border-bottom: 1px solid var(--fs-line); }
  .fs-brand-row { padding: 0 1.25rem .9rem; }
  .fs-menu-only { display: flex; justify-content: flex-end; padding-bottom: .5rem; }
  .fs-brand-row #menu-button { display: flex; }
  .fs-sidebar .language-picker { margin: 0 1.25rem .75rem; }
  .fs-sidebar #site-nav { margin-top: .8rem; }
  .fs-sidebar #site-nav:not(.nav-open) { display: none; }
  .fs-tools { flex-wrap: wrap; padding: .65rem 1.25rem; }
  .fs-header-search { flex: 1 1 14rem; }
  .fs-content-scroll { overflow: visible; padding: 1rem 1.25rem 2rem; }
  .fs-search-results { top: calc(100% + .4rem); bottom: auto; width: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .fs-content-scroll { scroll-behavior: auto; } }
