/* Base typography and links */
/* Main website pages use the full window; generated and archived pages retain their layout. */
.site-page {
  --text-size: 1.125rem;
  --title-size: 1.875rem;
  --section-size: 1.5rem;
  --subsection-size: 1.25rem;
  --content-padding: 1.5rem;
  --section-gap: 2rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--text-size);
  line-height: 1.5;
}
.site-page .center h1,
.site-page .center h2,
.site-page .center h3,
.site-page .center h4 {
  line-height: 1.25;
  margin: var(--section-gap) 0 0.75rem;
  font-weight: 650;
}
.site-page .center h1 { font-size: var(--title-size); margin-top: 0; }
.site-page .center h2 { font-size: var(--section-size); }
.site-page .center h3,
.site-page .center h4 { font-size: var(--subsection-size); }
.site-page .center p { margin: 0 0 1rem; }
.site-page .center ul,
.site-page .center ol { margin: 0 0 1rem; padding-left: 1.6rem; }
.site-page .center li { margin-bottom: 0.4rem; }
.site-page .center li > ul,
.site-page .center li > ol { margin-top: 0.4rem; }
.site-page .center .compressed li { margin-bottom: 0.15rem; }
/* Shared colors for the main site, independent of archived document styles. */
.site-page {
  --text-color: #202833;
  --link-color: #205f91;
  --visited-color: #695080;
  --nav-background: #f3f5f7;
  --nav-current: #e2edf6;
  color: var(--text-color);
}
.site-page a[href] { color: var(--link-color); text-decoration: underline; text-underline-offset: 0.16em; }
.site-page a[href]:hover { background: transparent; text-decoration-thickness: 2px; }
.site-page .center a[href]:visited { color: var(--visited-color); }
.site-page a[href]:focus-visible { outline: 2px solid var(--link-color); outline-offset: 3px; }
/* Commands and listings have distinct surfaces; inline code remains unobtrusive. */
.site-page {
  --command-background: #edf3f7;
  --listing-background: #f7f7f6;
  --listing-border: #d4d9de;
}

/* Page layout */
.site-page .center {
  min-width: 0;
  display: flow-root;
  padding: var(--content-padding);
}
.site-page .main { margin: 0; max-width: none; }

.site-page .site-layout {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
}
@media (max-width: 48rem) {
  .site-page { --content-padding: 1rem; }
  .site-page .site-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (width > 48rem) {
  /* Keep highlights inside the sidebar even when overlay scrollbars take no space. */
  .site-page .sidebar-content .sidemenu { max-width: 11rem; }
  .site-page .sidebar-content {
    position: sticky;
    /* Leave room inside the scroll container for the logo and link focus outlines. */
    margin: -0.25rem -1.25rem -0.25rem -0.25rem;
    padding: 0.25rem;
    /* Reserve scrollbar space in the gap before the main content. */
    scrollbar-gutter: stable;
    top: 0.25rem;
    max-height: calc(100vh - 0.5rem);
    box-sizing: border-box;
    overflow-y: auto;
  }
}

/* Navigation and logo */
.site-page .sidebar { min-width: 0; max-width: none; }
/* Preserve the prominent site-wide heading above the navigation. */
.site-page .site-logo {
  font: bold 36px/1.2 Georgia, "Times New Roman", serif;
  padding: 0.2em 0.2em 0.8em;
}
/* Keep the keyboard shortcut available without taking space in the ordinary layout. */
.site-page .skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  transform: translateY(calc(-100% - 1rem));
  padding: 0.5rem 0.75rem;
  background: white;
  z-index: 1;
}
.site-page .skip-link:focus { transform: none; }
.site-page .sidebar { background: var(--nav-background); padding: 0.5rem; }
.site-page .sidemenu ul { list-style: none; margin: 0; padding: 0; }
.site-page .sidemenu ul ul { padding-left: 0.7rem; }
.site-page .sidemenu > ul > li { padding: 0; margin-bottom: 0.65rem; }
.site-page .sidemenu a[href] {
  display: block;
  padding: 0.2rem 0.4rem;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.site-page .sidemenu > ul > li > a { font-size: 1rem; font-weight: 600; }
.site-page .sidemenu ul ul a { font-size: 0.9rem; }
.site-page .sidemenu a[href]:hover { background: #e9eef2; }
.site-page .sidemenu a[aria-current="page"] { background: var(--nav-current); border-left-color: var(--link-color); }
.site-page .sidemenu a[aria-current="page"]:before,
.site-page .sidemenu a[aria-current="page"]:after { content: none; }

/* Figures and citations */
.site-page .center img,
.site-page .center svg { max-width: 100%; height: auto; box-sizing: border-box; }
.site-page .center .AU { overflow-x: auto; margin: 1.5rem 0; }
/* Keep a reference link with its citation rather than floating it to the page edge. */
.site-page .right_ref { float: none; padding: 0; }
.site-page .center .accuracy-figure { display: block; width: 600px; margin: auto; padding-right: 5em; }
.site-page .center .trace-figure { height: 9em; width: auto; display: block; margin: auto; }
.site-page .trace-table { margin: auto; }
.site-page .sampled-parameter { color: red; }

/* Examples and lists */
/* Inline lists stay in normal flow and wrap without clearing later headings. */
.site-page .center .format-list { display: flex; flex-wrap: wrap; gap: 0.5rem 4rem; }
.site-page .center .format-list > li { margin: 0; }
.site-page .center .resource-list {
  display: flex; flex-wrap: wrap; gap: 2em; list-style: none; padding: 1em;
}
.site-page .center .resource-list > li {
  box-sizing: content-box; width: 10em; min-height: 3em; padding: 1em; margin: 0;
  background: rgb(235,235,235); border-radius: 1em;
}
/* Release notes: keep entries compact and separate the dates and topic groups. */
.site-page .center .release_dates { margin-bottom: 1.25rem; }
.site-page .center .changelog { line-height: 1.35; }
.site-page .center .changelog li li { margin-bottom: 0.2rem; }
.site-page .center .changelog li > ul { margin-top: 0.35rem; margin-bottom: 0; }
.site-page .center .changelog > li { margin-bottom: 0; }
.site-page .center .changelog > li + li { margin-top: 1.25rem; }

/* Content-specific presentation shared by the current pages. */
.site-page .release-news { margin-left: 1em; }
/* Release labels identify the kind of change while descriptions retain normal text styling. */
.site-page .release-highlights {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.25rem 1rem;
  margin: 0.75rem 0 1rem;
}
.site-page .release-highlights dt { font-weight: 650; }
.site-page .release-highlights dd { margin: 0; }
.site-page .release-breaking { color: #8a590c; }
.site-page .release-features { color: #236b72; }
@media (max-width: 48rem) {
  .site-page .release-highlights { grid-template-columns: minmax(0, 1fr); row-gap: 0.15rem; }
  .site-page .release-highlights dd + dt { margin-top: 0.5rem; }
}
.site-page .example-box {
  border: 0.15em solid #666; border-radius: 1.5em; padding: 1em; margin: 2em 1em 1em;
}
.site-page .center .example-list li { margin-bottom: 1em; }
.site-page .center .references li { padding-bottom: 0.5em; }
.site-page .additional-docs { padding-top: 1.5em; }
.models-page code { background: #f0f0f0; }

/* Commands and listings */
.site-page .center code,
.site-page .center pre { font-family: ui-monospace, "DejaVu Sans Mono", Consolas, monospace; }
.site-page .center code { font-size: 0.9em; background: #f1f3f4; padding: 0.05em 0.2em; }
.site-page .center pre {
  background: var(--listing-background);
  border: 1px solid var(--listing-border);
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.45;
  overflow-x: auto;
}
.site-page .center pre.screen { background: var(--command-background); border-color: #d3e0e9; }
.site-page .center pre code { font-size: 0.9em; background: transparent; padding: 0; }
.site-page .center pre strong { font-weight: inherit; }
.site-page .center pre .prompt { color: #326647; user-select: none; }
.site-page .center .hljs-section { color: #205f91; }
.site-page .warningbox {
  background: #fff7e7;
  border: 1px solid #e7d5ad;
  border-left: 4px solid #a5701b;
  border-radius: 0.2rem;
  padding: 1rem;
}

/* Downloads */
/* Package groups share available width and stack before their contents become cramped. */
.site-page .download-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.site-page .download-platform { min-width: 0; border-top: 2px solid #d4d9de; }
.site-page .download-platform h2 { margin-top: 1rem; }
.site-page .center .package-list { list-style: none; padding: 0; }
.site-page .center .package-row { border-bottom: 1px solid #e2e6ea; padding: 0 0 1rem; margin: 0 0 1rem; }
.site-page .package-row h3 { font-size: 1.125rem; margin: 1rem 0 0.5rem; }
.site-page .package-choice { display: inline-block; vertical-align: bottom; margin: 0 0.5rem 0.5rem 0; }
.site-page .center .package-requirement { font-size: 0.95rem; margin-bottom: 0.5rem; }
.site-page .download-button {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid #94b4cc;
  border-radius: 0.25rem;
  background: #edf4fa;
  font-size: 1rem;
  font-weight: 600;
}
.site-page .center a.download-button { color: var(--link-color); text-decoration: none; }
.site-page .center a.download-button:hover { background: #dcebf6; border-color: var(--link-color); }
.site-page .download-quarantine h3 { font-size: 1.125rem; margin-top: 0; }
.site-page .download-quarantine { font-size: 1rem; }
.site-page .download-quarantine pre { font-size: 0.95rem; }
.site-page .download-quarantine > p:last-child { margin-bottom: 0; }

/* Read tool names down each column, using fewer columns when space is limited. */
.site-page .center .manual-list { columns: 18rem 3; column-gap: 2rem; }
.site-page .center .manual-list > li { break-inside: avoid; }
