/* A topic directory and article reader. One page scroll keeps controls reachable. */
body[data-page="wiki"] #wiki-page.is-active {
  position: fixed !important; top: calc(var(--app-header-bottom, 100px) + 12px) !important;
  bottom: 12px !important; left: 16px !important; right: 16px !important;
  width: auto; height: auto; max-height: none; overflow-y: auto; overflow-x: hidden;
  background: #101e28; padding: 24px 30px 48px;
}
body[data-page="wiki"] #map-plane { display: none !important; }
#wiki-page > * { flex: 0 0 auto; width: 100%; max-width: 1360px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
#wiki-page [hidden] { display: none !important; }
#wiki-page .page-head { display: flex !important; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 18px; }
#wiki-page .page-head h2 { margin: 0; }
#wiki-page .page-head > p { max-width: 60ch; flex: 1; margin: 0; line-height: 1.5; }
#wiki-page .page-head .eyebrow { margin: 0 0 5px; }
#wiki-page .community-toolbar { display: grid; grid-template-columns: minmax(200px,1fr) minmax(140px,230px); gap: 14px; margin-bottom: 22px; }
#wiki-page .control, #wiki-page input, #wiki-page textarea, #wiki-page select { min-width: 0; width: 100%; }
#wiki-page button:focus-visible, #wiki-page a:focus-visible, #wiki-page input:focus-visible, #wiki-page textarea:focus-visible, #wiki-page select:focus-visible, #wiki-page summary:focus-visible { outline: 2px solid #85d5d1; outline-offset: 3px; }
#wiki-page .knowledge-layout { display: grid; grid-template-columns: 205px minmax(0,1fr); grid-template-rows: auto; gap: 28px; align-items: start; flex: 0 0 auto; height: auto; min-height: 0; overflow: visible; }
#wiki-page .wiki-sidebar { min-width: 0; padding-right: 20px; border-right: 1px solid #324b57; }
#wiki-page .wiki-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
#wiki-page a { color: #9bded8; text-decoration: none; text-underline-offset: 3px; overflow-wrap: anywhere; }
#wiki-page a:hover { text-decoration: underline; }
#wiki-page #wiki-navigation { margin-bottom: 24px; }
#wiki-page #wiki-navigation a { padding: 7px 10px; border-left: 2px solid transparent; }
#wiki-page #wiki-navigation a[aria-current="page"] { background: #203b47; border-color: #8be2d0; color: #fff; font-weight: 650; }
#wiki-page .wiki-topic-nav { border: 0; margin: 0 0 20px; padding: 0; background: none; box-shadow: none; }
#wiki-page .wiki-topic-nav summary, #wiki-page .knowledge-list h4 { font-size: .84rem; font-weight: 650; color: #c3d6dd; padding: 0; margin: 0 0 10px; }
#wiki-page #wiki-category-links a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: .87rem; }
#wiki-page #wiki-category-links a span { font-size: .78rem; color: #94b1bc; }
#wiki-page .knowledge-list { position: static; display: flex; flex-direction: column; gap: 9px; padding: 0; margin: 24px 0; height: auto; max-height: none; overflow: visible; flex: 0 0 auto; }
#wiki-page .knowledge-list a { font-size: .83rem; line-height: 1.45; }
#wiki-page .knowledge-list .is-active a { color: #fff; font-weight: 650; }
#wiki-page #wiki-results-status, #wiki-page #wiki-edit-access { font-size: .76rem; line-height: 1.5; color: #9db7c1; margin: 14px 0 0; }
#wiki-page .wiki-workspace { min-width: 0; }
#wiki-page .knowledge-detail { display: block; position: static; width: 100%; height: auto; min-width: 0; min-height: 0; max-height: none; overflow: visible; padding: 0 4px 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }
#wiki-page .wiki-doc-page { max-width: 85ch; margin: 0; }
#wiki-page .knowledge-detail h3 { font-size: clamp(1.4rem,2vw,1.9rem); line-height: 1.25; margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid #38525d; }
#wiki-page .wiki-lead, #wiki-page .wiki-article-summary { font-size: 1rem; line-height: 1.7; color: #d5e3e7; margin: 0 0 18px; }
#wiki-page .wiki-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; margin-bottom: 18px; }
#wiki-page .wiki-doc-actions { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; border-bottom: 1px solid #38525d; margin: 18px 0 12px; }
#wiki-page .wiki-doc-actions > * { border: 0; border-radius: 0; background: none; box-shadow: none; color: #9bded8; font: inherit; font-size: .9rem; padding: 10px 0; min-height: 40px; cursor: pointer; }
#wiki-page .wiki-doc-actions [aria-current="page"] { color: #fff; border-bottom: 2px solid #8be2d0; cursor: default; }
#wiki-page .wiki-article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .76rem; line-height: 1.5; color: #aac0ca; margin-bottom: 24px; }
#wiki-page .wiki-topic-directory { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 34px; margin: 20px 0 34px; }
#wiki-page .wiki-topic-directory section { min-width: 0; }
#wiki-page .wiki-topic-directory h4 { margin: 0 0 10px; border-bottom: 1px solid #304a55; padding-bottom: 7px; font-size: 1rem; }
#wiki-page .wiki-topic-directory ul, #wiki-page .wiki-backlinks ul { padding-left: 20px; margin: 0; }
#wiki-page .wiki-topic-directory li, #wiki-page .wiki-backlinks li { padding: 4px 0; line-height: 1.5; }
#wiki-page .wiki-section-heading { margin: 28px 0 14px; font-size: 1.14rem; scroll-margin-top: 20px; }
#wiki-page .wiki-help-section { border-top: 1px solid #38525d; padding-top: 14px; margin-top: 30px; }
#wiki-page .wiki-help-section h4 { margin-bottom: 8px; }
#wiki-page .wiki-index-list { list-style: none; padding: 0; margin: 16px 0 30px; }
#wiki-page .wiki-index-list li { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,170px); gap: 16px; padding: 15px 0; border-bottom: 1px solid #304854; }
#wiki-page .wiki-index-list li > div { min-width: 0; }
#wiki-page .wiki-index-list a { font-weight: 600; line-height: 1.5; }
#wiki-page .wiki-index-list p { font-size: .88rem; color: #b5cbd3; line-height: 1.6; margin: 4px 0 0; }
#wiki-page .wiki-index-list small { color: #9db5c0; font-size: .75rem; line-height: 1.6; }
#wiki-page .wiki-doc-index { display: block; width: fit-content; max-width: 100%; border: 1px solid #38525d; border-radius: 0; padding: 14px 18px; margin: 20px 0 28px; background: #142934; }
#wiki-page .wiki-doc-index > div { display: flex; flex-direction: column; align-items: start; margin-top: 7px; }
#wiki-page .wiki-doc-index button { appearance: none; padding: 5px 0; border: 0; box-shadow: none; background: transparent; font: inherit; color: #9bded8; text-align: left; line-height: 1.4; cursor: pointer; }
#wiki-page .wiki-article-body { font-size: 1rem; line-height: 1.75; }
#wiki-page .wiki-article-body code { font-size: .85em; background: #1d333e; padding: 2px 4px; border-radius: 3px; overflow-wrap: anywhere; }
#wiki-page .wiki-paragraph { margin: 0 0 18px; max-width: none; line-height: 1.75; }
#wiki-page .wiki-bullet-list, #wiki-page .wiki-step-list { padding-left: 24px; margin: 0 0 22px; }
#wiki-page .wiki-bullet-list li, #wiki-page .wiki-step-list li { margin-bottom: 9px; }
#wiki-page .wiki-article-body a { text-decoration: underline; }
#wiki-page .wiki-missing-link { color: #f3b6a8; }
#wiki-page .wiki-callout { padding: 15px; margin: 22px 0; border-left: 3px solid #7ec7bf; }
#wiki-page .wiki-code-block pre, #wiki-page .wiki-table-wrap { max-width: 100%; overflow-x: auto; }
#wiki-page .wiki-backlinks { margin-top: 32px; padding-top: 18px; border-top: 1px solid #38525d; font-size: .9rem; }
#wiki-page .wiki-backlinks h4 { margin: 0 0 10px; }
#wiki-page .wiki-revisions { margin: 20px 0; padding: 16px; border: 1px solid #56717c; background: #152a34; scroll-margin-top: 12px; }
#wiki-page .wiki-revisions p { font-size: .9rem; line-height: 1.6; }
#wiki-page .wiki-history-list { padding-left: 20px; }
#wiki-page .wiki-history-list li { margin: 10px 0; }
#wiki-page .wiki-history-list button { color: #9bded8; background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; padding: 7px 8px 7px 0; }
#wiki-page .wiki-history-list span { display: block; color: #aac0ca; font-size: .78rem; }
#wiki-page #wiki-revision-preview { border-top: 1px solid #38525d; margin-top: 20px; padding-top: 16px; }
#wiki-page .wiki-admin-tools { margin-top: 36px; font-size: .8rem; }
#wiki-page .wiki-admin-tools button { margin-top: 12px; }
#wiki-page .community-composer { margin-bottom: 24px; scroll-margin-top: 12px; }
#wiki-page .wiki-editor-help { font-size: .82rem; line-height: 1.65; }
#wiki-page #wiki-new-status-msg { line-height: 1.5; }
@media (max-width: 780px) {
  body[data-page="wiki"] #wiki-page.is-active { left: 8px !important; right: 8px !important; bottom: 8px !important; padding: 18px 16px 32px; }
  #wiki-page .page-head { gap: 10px; }
  #wiki-page .page-head > p { display: none; }
  #wiki-page .page-head > div { flex: 1; }
  #wiki-page .page-head h2 { font-size: 1.4rem; }
  #wiki-page .community-toolbar { grid-template-columns: minmax(0,1fr) minmax(100px,.6fr); gap: 8px; }
  #wiki-page .knowledge-layout { display: block; }
  #wiki-page .wiki-sidebar { padding: 0 0 16px; margin-bottom: 20px; border-right: 0; border-bottom: 1px solid #38525d; }
  #wiki-page #wiki-navigation { flex-direction: row; flex-wrap: wrap; gap: 4px; margin: 0; }
  #wiki-page #wiki-navigation a { font-size: .8rem; padding: 8px; border-left: 0; border-bottom: 2px solid transparent; }
  #wiki-page .wiki-topic-nav, #wiki-page .knowledge-list, #wiki-page #wiki-edit-access { display: none; }
  #wiki-page #wiki-results-status { margin-top: 10px; }
  #wiki-page .knowledge-detail { padding: 0 0 20px; }
  #wiki-page .wiki-topic-directory { grid-template-columns: minmax(0,1fr); gap: 24px; }
  #wiki-page .wiki-index-list li { grid-template-columns: minmax(0,1fr); gap: 6px; }
  #wiki-page .community-composer-row { display: grid; grid-template-columns: minmax(0,1fr); }
  #wiki-page .wiki-doc-actions { gap: 0 16px; }
}
