@import './legacy-layout-tokens.css';
@import './legacy-wiki-theme.css';


html { scroll-padding-top: calc(var(--wiki-topbar-height) + 20px); }
.wiki-site { background: var(--paper); color: var(--ink); font: 14.5px/1.85 var(--font); }
.wiki-site a { color: var(--green); text-underline-offset: 3px; text-decoration-color: var(--theme-source-underline); }
.wiki-site a:hover { color: var(--accent); }
.wiki-site :focus-visible { outline: 2px solid #7292d0; outline-offset: 3px; }
.wiki-site h1, .wiki-site h2, .wiki-site h3, .wiki-site h4 { color: var(--ink); text-wrap: pretty; }
.wiki-site h1 { font-size: 25px; line-height: 1.5; font-weight: 650; letter-spacing: -.45px; }
.wiki-site h2 { font-size: 21px; line-height: 1.5; font-weight: 650; letter-spacing: -.35px; }
.wiki-site h3 { font-size: 17px; line-height: 1.6; font-weight: 600; letter-spacing: 0; }
.wiki-site h4 { font-size: 15px; line-height: 1.6; font-weight: 600; }
.wiki-site p { margin-bottom: 18px; }
.wiki-site strong { font-weight: 620; }
.wiki-site code { background: var(--wiki-code); font-size: .84em; }
.wiki-site pre { margin: 20px 0; padding: 16px 18px; background: var(--surface-soft); border-radius: 7px; font-size: 12px; line-height: 1.7; }
.wiki-site pre code { background: none; font-size: inherit; }
.wiki-site blockquote { margin: 20px 0; padding: 8px 16px; border-left-color: #b4bdcc; background: var(--surface-soft); }
.wiki-site .lead { max-width: none; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.wiki-site .eyebrow { margin-bottom: 10px; color: var(--muted); font-size: 10.5px; font-weight: 500; letter-spacing: .07em; }

.wiki-site .topbar {
  height: var(--wiki-topbar-height);
  min-height: var(--wiki-topbar-height);
  padding: 0 20px;
  gap: 16px;
  flex-wrap: nowrap;
  border-bottom: 1px dashed var(--line);
  background: var(--paper);
}
.wiki-site .brand { min-width: 0; gap: 10px; font-size: 16px; font-weight: 650; white-space: nowrap; }
.wiki-site .brand::before { display: none; }
.wiki-site .brand span { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: .025em; }
.wiki-site .topbar > .nav { display: none; }
.wiki-site .topbar-tools { margin-left: auto; gap: 12px; }
.wiki-site .topbar-tools .edition { color: var(--muted); font-size: 11px; }
.wiki-site .wiki-menu, .wiki-site .topbar .sidebar-toggle { display: none; }

.wiki-site .wiki-layout {
  display: grid;
  grid-template-columns: var(--wiki-sidebar-width) minmax(0, 1fr) var(--wiki-toc-width);
  align-items: start;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: calc(100vh - var(--wiki-topbar-height));
}
.wiki-site .wiki-layout.wiki-no-toc { grid-template-columns: var(--wiki-sidebar-width) minmax(0, 1fr); }
.wiki-site .wiki-layout > .main {
  width: 100%;
  max-width: calc(var(--wiki-reader-width) + var(--wiki-page-gutter) + var(--wiki-page-gutter));
  min-width: 0;
  margin: 0 auto;
  padding: 31px var(--wiki-page-gutter) 44px;
}
.wiki-site .wiki-sidebar {
  position: sticky;
  top: var(--wiki-topbar-height);
  width: auto;
  height: calc(100vh - var(--wiki-topbar-height));
  max-height: none;
  margin: 0;
  padding: 24px 16px 24px var(--wiki-page-gutter);
  overflow: auto;
  border-right: 1px dashed var(--line);
  border-bottom: 0;
  background: var(--surface-soft);
  font-size: 12.5px;
  line-height: 1.65;
  scrollbar-width: thin;
}
.wiki-site .wiki-sidebar a { display: block; padding: 6px 8px; border-radius: 4px; color: var(--muted); text-decoration: none; }
.wiki-site .wiki-sidebar a:hover, .wiki-site .wiki-sidebar a.active, .wiki-site .wiki-sidebar a[aria-current] { color: var(--ink); background: var(--green-soft); box-shadow: none; }
.wiki-site .wiki-sidebar a[aria-current] { font-weight: 550; }
.wiki-site .wiki-sidebar h2, .wiki-site .wiki-sidebar h3, .wiki-site .wiki-nav-label { margin: 0 8px 10px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.wiki-site .wiki-sidebar p { font-size: 11px; }
.wiki-site .wiki-site-nav { display: grid; gap: 1px; }
.wiki-site .wiki-sidebar-content { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.wiki-site .wiki-sidebar-content:empty { display: none; }
.wiki-site .wiki-sidebar-content h2:not(:first-child), .wiki-site .wiki-sidebar-content h3:not(:first-child) { margin-top: 18px; }
.wiki-site .wiki-page-toc {
  position: sticky;
  top: calc(var(--wiki-topbar-height) + 30px);
  align-self: start;
  max-height: calc(100vh - var(--wiki-topbar-height) - 60px);
  padding: 0 var(--wiki-page-gutter) 25px 0;
  overflow: auto;
  font-size: 12px;
  line-height: 1.7;
  scrollbar-width: thin;
}
.wiki-site .wiki-page-toc h2 { margin: 0 0 16px; font-size: 14px; font-weight: 620; letter-spacing: 0; }
.wiki-site .wiki-page-toc nav, .wiki-site .wiki-toc-mobile nav { display: grid; gap: 11px; }
.wiki-site .wiki-page-toc a, .wiki-site .wiki-toc-mobile a { display: block; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.wiki-site .wiki-page-toc a:hover, .wiki-site [data-wiki-toc][aria-current="location"] { color: var(--ink); font-weight: 550; }
.wiki-site .wiki-toc-mobile { display: none; margin: 0 0 20px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); font-size: 12px; }
.wiki-site .wiki-toc-mobile summary { padding: 0; border: 0; color: var(--ink); font-weight: 500; }
.wiki-site .wiki-toc-mobile > nav { margin: 13px 0 2px; padding: 0; }
.wiki-site .wiki-backdrop { display: none; }
.wiki-site .wiki-anchor, .wiki-site .main [id] { scroll-margin-top: calc(var(--wiki-topbar-height) + 20px); }
.wiki-site .wiki-breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 9px; margin: 0 0 22px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.wiki-site .wiki-breadcrumb a { color: var(--muted); text-decoration: none; }
.wiki-site .wiki-breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.wiki-site .wiki-breadcrumb [aria-current] { overflow-wrap: anywhere; }
.wiki-site .breadcrumb-separator { color: var(--line); }
.wiki-site .wiki-project-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 12px; }

.wiki-site .hero, .wiki-site .report-header { margin: 0 0 24px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.wiki-site .hero h1, .wiki-site .report-header h1 { max-width: none; margin-bottom: 17px; font-size: 25px; letter-spacing: -.45px; }
.wiki-site .home-hero h1 br { display: none; }
.wiki-site .home-hero h1 em { color: inherit; font-style: normal; }
.wiki-site .section { margin-bottom: 32px; }
.wiki-site .section-head { margin-bottom: 15px; }
.wiki-site .prose { max-width: 100%; font-size: 14.5px; line-height: 1.85; }
.wiki-site .prose h2 { margin: 33px 0 15px; padding: 0; border-top: 0; font-size: 21px; }
.wiki-site .prose h3 { margin: 27px 0 12px; font-size: 17px; }
.wiki-site .prose h4 { margin: 22px 0 10px; font-size: 15px; }
.wiki-site .prose p, .wiki-site .prose ul, .wiki-site .prose ol { margin-bottom: 18px; }
.wiki-site .prose strong { font-weight: 620; }
.wiki-site .metrics { gap: 0; margin-top: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); overflow: hidden; }
.wiki-site .metric { padding: 12px 16px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.wiki-site .metric:last-child { border-right: 0; }
.wiki-site .metric strong { color: var(--ink); font-size: 21px; font-weight: 600; }
.wiki-site .metric span, .wiki-site .metric small { color: var(--muted); font-size: 11px; }
.wiki-site .grid { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.wiki-site .home-grid { grid-template-columns: 1fr; }
.wiki-site .card, .wiki-site .step { padding: 18px 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: none; }
.wiki-site .card:hover, .wiki-site .card:not([aria-disabled="true"]):hover { transform: none; border-color: var(--theme-border-hover); box-shadow: none; }
.wiki-site .card h2 { font-size: 18px; }
.wiki-site .card h3 { font-size: 16px; }
.wiki-site .card p, .wiki-site .card li { font-size: 13px; line-height: 1.85; }
.wiki-site .card ul { margin-bottom: 15px; }
.wiki-site .card .eyebrow { margin-bottom: 8px; }
.wiki-site .card > :last-child { margin-bottom: 0; }
.wiki-site .home-card .button { padding: 0; min-height: 0; border: 0; background: none; font-size: 12px; }
.wiki-site .badge, .wiki-site .priority, .wiki-site .score, .wiki-site .decision { color: var(--muted); border: 1px solid var(--line); background: var(--surface-soft); font-size: 10.5px; font-weight: 500; }
.wiki-site .priority { color: var(--green); }
.wiki-site .facts { padding: 10px 12px; gap: 8px 14px; font-size: 12px; }
.wiki-site .facts dt { font-size: 10.5px; font-weight: 500; }
.wiki-site .sources { gap: 5px 12px; font-size: 11px; }
.wiki-site .sources.chips a { padding: 2px 8px; border-color: var(--line); border-radius: 4px; font-size: 11px; font-weight: 400; }
.wiki-site .callout, .wiki-site .warning, .wiki-site .comparison { margin: 20px 0; padding: 10px 16px; border: 1px solid var(--line); border-left: 3px solid #b4bdcc; border-radius: 0 7px 7px 0; background: var(--surface-soft); color: var(--muted); font-size: 13px; }
.wiki-site .warning { border-left-color: var(--theme-warning-edge); background: var(--warning-soft); color: var(--warning); }
.wiki-site .callout p:last-child, .wiki-site .warning p:last-child, .wiki-site .comparison p:last-child { margin-bottom: 0; }
.wiki-site .toolbar { gap: 10px; margin: 20px 0 16px; padding: 12px; background: var(--surface-soft); font-size: 12px; }
.wiki-site .toolbar label { font-size: 11px; font-weight: 500; }
.wiki-site .toolbar input, .wiki-site .toolbar select { min-height: 34px; padding: 5px 9px; border-color: var(--line); border-radius: 5px; font-size: 12px; }
.wiki-site .toolbar [data-result-count] { font-size: 11px; }
.wiki-site .button { min-height: 32px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface-soft); font-size: 12px; font-weight: 500; }
.wiki-site .button:hover, .wiki-site .button.secondary:hover { border-color: var(--theme-border-hover); color: var(--ink); background: var(--green-soft); }
.wiki-site .button.secondary { color: var(--green); background: var(--surface); }
.wiki-site .table-wrap { margin: 21px 0; border-radius: 7px; }
.wiki-site .data-table, .wiki-site .prose table { font-size: 12.5px; line-height: 1.8; }
.wiki-site .data-table th, .wiki-site .data-table td, .wiki-site .prose th, .wiki-site .prose td { min-width: 100px; padding: 9px 12px; border-right: 1px solid var(--line); }
.wiki-site .data-table th:last-child, .wiki-site .data-table td:last-child, .wiki-site .prose th:last-child, .wiki-site .prose td:last-child { border-right: 0; }
.wiki-site .data-table th, .wiki-site .prose th { font-size: 12px; font-weight: 620; }
.wiki-site details { border-radius: 7px; }
.wiki-site summary { padding: 9px 13px; font-size: 12px; font-weight: 500; }
.wiki-site .footer { width: auto; margin: 0 calc(var(--wiki-toc-width) + var(--wiki-page-gutter)) 0 calc(var(--wiki-sidebar-width) + var(--wiki-page-gutter)); padding: 18px 0 24px; color: var(--muted); font-size: 10.5px; }
.wiki-site .footer span { display: block; }
.wiki-site .skip-link { background: var(--ink); }

@media (max-width: 1180px) {
  .wiki-site .wiki-layout { grid-template-columns: var(--wiki-sidebar-width) minmax(0, 1fr); }
  .wiki-site .wiki-page-toc { display: none; }
  .wiki-site .wiki-toc-mobile { display: block; }
  .wiki-site .wiki-layout > .main { padding: 29px var(--wiki-page-gutter) 40px; }
  .wiki-site .wiki-sidebar { padding-left: 16px; }
  .wiki-site .footer { margin-right: var(--wiki-page-gutter); margin-left: calc(var(--wiki-sidebar-width) + var(--wiki-page-gutter)); }
}

@media (max-width: 800px) {
  :root { --wiki-topbar-height: 58px; }
  .wiki-site .topbar { padding: 0 15px; gap: 10px; }
  .wiki-site .brand { font-size: 14px; }
  .wiki-site .brand span { font-size: 11px; }
  .wiki-site .topbar-tools .edition { display: none; }
  .wiki-site .wiki-menu, .wiki-site .topbar .sidebar-toggle { display: inline-flex; order: -1; min-height: 30px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--surface-soft); font-size: 11px; font-weight: 400; }
  .wiki-site .wiki-layout, .wiki-site .wiki-layout.wiki-no-toc { display: block; padding: 0; }
  .wiki-site .wiki-layout > .main { width: 100%; max-width: none; padding: 26px 18px 35px; }
  .wiki-site .wiki-sidebar, body.wiki-site.ui-ready.reading-site .wiki-sidebar:not(.is-open) {
    display: block;
    position: fixed;
    top: var(--wiki-topbar-height);
    left: 0;
    z-index: 35;
    width: min(290px, calc(100vw - 36px));
    height: calc(100dvh - var(--wiki-topbar-height));
    max-height: none;
    margin: 0;
    padding: 20px 16px;
    overflow: auto;
    border-bottom: 0;
    background: var(--surface-soft);
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
  }
  .wiki-site .wiki-sidebar.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; margin: 0; padding: 20px 16px; }
  .wiki-site .wiki-sidebar nav { display: block; }
  .wiki-site .wiki-sidebar .wiki-site-nav { display: grid; }
  .wiki-site .wiki-sidebar p { display: block; }
  .wiki-site .wiki-sidebar a { padding: 6px 8px; }
  .wiki-site .wiki-backdrop:not([hidden]) { display: block; position: fixed; inset: var(--wiki-topbar-height) 0 0; z-index: 30; width: 100%; border: 0; border-radius: 0; padding: 0; background: #0005; }
  .wiki-site .hero h1, .wiki-site .report-header h1 { font-size: 24px; }
  .wiki-site h2, .wiki-site .prose h2 { font-size: 20px; }
  .wiki-site h3, .wiki-site .prose h3 { font-size: 16px; }
  .wiki-site .prose { font-size: 14px; }
  .wiki-site .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .wiki-site .metric:nth-child(2) { border-right: 0; }
  .wiki-site .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .wiki-site .grid { grid-template-columns: 1fr; }
  .wiki-site .card { padding: 16px; border-radius: 7px; }
  .wiki-site .footer { width: auto; margin: 0 20px; font-size: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .wiki-site .wiki-sidebar { transition: transform 150ms ease, visibility 150ms; }
}

.wiki-site .wiki-layout > .main.wiki-wide { max-width: none; }
.wiki-site .wiki-layout > .main.wiki-wide .lead { max-width: var(--wiki-reader-width); }

@media print {
  :root, :root[data-theme="dark"] { color-scheme: light; --paper: #fff; --surface: #fff; --surface-soft: #f8f8f8; --ink: #000; --muted: #555; --green: #222; --green-dark: #000; --line: #ddd; --wiki-code: #f0f0f0; }
  .wiki-site { color: #000; background: #fff; font-size: 10pt; }
  .wiki-site .wiki-sidebar, .wiki-site .wiki-page-toc, .wiki-site .wiki-toc-mobile, .wiki-site .wiki-menu, .wiki-site .wiki-backdrop, .wiki-site .wiki-breadcrumb, .wiki-site .wiki-project-links { display: none !important; }
  .wiki-site .wiki-layout, .wiki-site .wiki-layout.wiki-no-toc { display: block; min-height: 0; }
  .wiki-site .wiki-layout > .main { width: 100%; max-width: none; margin: 0; padding: 0; }
  .wiki-site .prose { font-size: 10pt; }
  .wiki-site h1, .wiki-site .hero h1, .wiki-site .report-header h1 { font-size: 22pt; }
  .wiki-site h2, .wiki-site .prose h2 { font-size: 16pt; }
  .wiki-site .footer { width: 100%; margin: 24pt 0 0; font-size: 8pt; }
  .wiki-site a { color: inherit; }
}
