/*
// Baseline reset every website starts from: margins, list styles,
// heading sizes, and form controls zeroed so a site's own sheet
// states its look explicitly.  It sits in a layer so every unlayered
// rule, including the site's and the xetodoc sheet, wins over it
// regardless of specificity.
*/

@layer reset {
  *, :after, :before, ::backdrop { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
  html {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    -webkit-tap-highlight-color: transparent;
  }
  hr { height: 0; color: inherit; border-top-width: 1px; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  code, kbd, samp, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1em;
  }
  small { font-size: 80%; }
  table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
  summary { display: list-item; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas, audio, iframe, embed, object { vertical-align: middle; display: block; }
  img, video { max-width: 100%; height: auto; }
  button, input, select, optgroup, textarea {
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }
  ::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
  textarea { resize: vertical; }
  button, input:where([type="button"], [type="reset"], [type="submit"]) { appearance: button; }
  [hidden]:where(:not([hidden="until-found"])) { display: none !important; }
}
/*
// Copyright (c) 2025, Project-Haystack
// Licensed under the Academic Free License version 3.0
//
// History:
//   29 Dec 2025  Brian Frank  Derive from defc stylesheet
*/

xetodoc-page {
  display: block;
  font: 16px -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
  line-height: 1.5em;
  width: min(960px, 100%);
  margin: 1em auto 0 auto;

  --divider-border: 1px solid #eee;

  --link-color:    #3e7cc4;  /* blue   - nav, links */
  --title-color:   #d49011;  /* orange - top level headings */
  --name-color:    #27ae60;  /* green  - specs, instances, chapter, types, slots */
  --sidebar-color: #a0a0a0;  /* gray   - left sidebar tab */
}

xetodoc-page img {
  border:0;
}

xetodoc-page hr {
  border: 0;
  border-top: var(--divider-border);
  height: 1px;
}

xetodoc-page a {
  color: var(--link-color);
}

xetodoc-page code {
  font: 14px Menlo, Consolas, Courier, monospace;
  color: #777;
}

xetodoc-page pre {
  font: 14px Menlo, Consolas, Courier, monospace;
  background: #f7f7f9;
  color: #222;
  margin: 0.5em 0;
  padding: 1em;
  overflow: auto;
}

xetodoc-page pre code {
  color: inherit;
}

xetodoc-page h1 {
  color: var(--title-color);
  margin: 0 0 0.5em 0;
  padding: 0;
}

xetodoc-page h2 {
  color: var(--name-color);
}

xetodoc-page p > img {
  display:block;
  margin:0 auto;
  max-width: 80%;
}

xetodoc-page table {
  border-collapse: collapse;
  margin: 1em 0;
}

xetodoc-page table th,
xetodoc-page table td {
  border: 1px solid #ccc;
  padding: 0.3em 0.6em;
  text-align: left;
}

/*************************************************************************
 * Navigation
 ************************************************************************/

xetodoc-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

xetodoc-nav ul li {
  display: inline;
  margin: 0 4px;
  padding: 2px 0;
  color: #aaa;
}

xetodoc-nav li.next {
  text-align: right;
}

xetodoc-nav li + li.next {
  float: right;
}

/*************************************************************************
 * Main Two Column Grid
 ************************************************************************/

xetodoc-main {
  margin: 20px 0 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-row-gap: 30px;
  grid-column-gap: 20px;
}

xetodoc-tab {
  margin: 0;
  padding: 5px 10px 0 0;
  text-align: right;
  font-size: 100%;
  font-weight: normal;
  color: var(--sidebar-color);
  max-width: 160px;
  overflow-wrap: break-word;
}

xetodoc-section {
  margin: 0;
  padding: 0;
}

xetodoc-footer  {
  font-size: 60%;
  color: #999;
}

/*************************************************************************
 * Props Table
 ************************************************************************/

xetodoc-prop-table {
  display: table;
  border-collapse: collapse;
}

xetodoc-prop-tr {
  display: table-row;
  border-top: var(--divider-border);
}

xetodoc-prop-th {
  display: table-cell;
  font-weight: bold;
  text-align: left;
  vertical-align: text-top;
  padding: 4px 10px 4px 0px;
  white-space: nowrap;
}

xetodoc-prop-td {
  display: table-cell;
  padding: 4px 6px;
}

xetodoc-prop-th a {
  color: var(--name-color);
  text-decoration: none;
}

xetodoc-prop-th a:hover {
  color: var(--name-color);
  text-decoration: underline;
}

xetodoc-prop-td a {
  text-decoration: none;
}

xetodoc-prop-td a:hover {
  text-decoration: underline;
}

xetodoc-prop-td p {
  margin: 0;
}

xetodoc-prop-heading {
  display: table-cell;
  font-weight: bold;
  font-size: 130%;
  text-align: left;
  vertical-align: text-top;
  padding: 30px 0 4px 0;
  white-space: nowrap;
  color: var(--title-color);
}

xetodoc-prop-toggle {
  display: table-cell;
  margin: 0;
  padding: 0;
}

xetodoc-prop-toggle input {
  margin-left: 0;
}

.xetodoc-hidden {
  display: none;
}

/***************************************************************
 * Slot Details
 **************************************************************/

xetodoc-slot {
  margin: 0;
  padding: 3px 0;
  color: var(--name-color);
}

xetodoc-slot a {
  color: var(--name-color);
  text-decoration: none;
}

xetodoc-slot a:hover {
  color: var(--name-color);
  text-decoration: underline;
}

xetodoc-slot-base {
  font-size: 80%;
  display: block;
  color: var(--sidebar-color);
}

xetodoc-slot-base a {
  color: var(--sidebar-color);
}

xetodoc-slot-src {
  display: block;
}

xetodoc-slot-src summary {
  cursor: pointer;
  font-size: 80%;
  color: var(--sidebar-color);
}

xetodoc-slot-src pre {
  margin: 0.5em 0;
}

xetodoc-slot-src pre b {
  color: #f00;
  font-weight: normal;
}

xetodoc-slot-src pre i {
  color: #00f;
  font-style: normal;
}

xetodoc-slot-src pre em {
  color: #7f42cc;
  font-style: normal;
}

xetodoc-slot-src pre q {
  color: #27ae60;
  font-style: normal;
}

xetodoc-slot-src pre q:before,
xetodoc-slot-src pre q:after {
  content: '';
}

xetodoc-slot-nested {
  display: block;
}

xetodoc-slot-nested table {
  border-collapse: collapse;
  margin: 0.5em 0;
}

xetodoc-slot-nested th {
  text-align: left;
  white-space: nowrap;
  padding: 4px 10px 4px 0;
}

xetodoc-slot-nested td {
  border-top: var(--divider-border);
  vertical-align: text-top;
  padding: 4px 10px 4px 0;
}

xetodoc-slot-nested td p {
  margin: 0;
}

xetodoc-info {
  position: relative;
  cursor: pointer;
  color: var(--sidebar-color);
}

xetodoc-info-popup {
  display: none;
  position: absolute;
  z-index: 10;
  left: 0;
  top: 1.4em;
  min-width: 18em;
  padding: 6px 10px;
  white-space: nowrap;
  color: #000;
  background: #fff;
  border: var(--divider-border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

xetodoc-info:hover xetodoc-info-popup,
xetodoc-info:focus-within xetodoc-info-popup {
  display: block;
}

xetodoc-info-popup p {
  margin: 0.5em 0 0 0;
  white-space: normal;
}

/*************************************************************************
 * Chapter
 ************************************************************************/

xetodoc-chapter {
  display: block;
  margin: 1em 0;
}

xetodoc-chapter h1:not(:first-child) {
  color: var(--name-color);
  font-size: 1.5em;
}

xetodoc-chapter h2 {
  color: var(--name-color);
  font-size: 1.3em;
}

xetodoc-chapter h3 {
  color: var(--name-color);
  font-size: 1.1em;
}

/*************************************************************************
 * Search
 ************************************************************************/

xetodoc-page form input[type=text] {
  width: 600px;
  border: 1px solid #bbb;
  border-radius: 2px;
  margin: 0;
  padding: 6px;
  font-size: 16px;
}

xetodoc-search-info {
  padding: 10px 0 0 0;
  font-size: 12px;
  font-weight: bold;
  color: #aaa;
}

xetodoc-search-hits {
  display: block;
  margin: 0;
  padding: 0;
}

xetodoc-search-hit {
  display: block;
  margin-top: 20px;
}

xetodoc-search-hit h3 {
  padding: 0 0 4px 0;
  margin: 0;
}

xetodoc-search-hit a {
  color: var(--link-color);
  padding: 2px;
  text-decoration: none;
}

xetodoc-search-hit a:hover {
  text-decoration: underline;
}

xetodoc-search-hit p {
  margin: 0;
  padding: 0;
}

xetodoc-tag  {
  padding: 2px 8px;
  font-size: 75%;
  color: #fff;
  background: var(--name-color);
  margin-right: 10px;
  border: 0px solid #bbb;
  border-radius: 10px;
}

/*
// xeto.dev site styles, layered over the standard xetodoc stylesheet
// which the xetodoc pod ships ahead of this one.  One type and color
// system for the whole site, taken from xetodoc:
//
//   base:    16px system font, 1.5 line height
//   dense:   14px for tables, listings, meta, and secondary text
//   fine:    12px for badges, banner, and footer print
//   mono:    14px for code, pre, and source
//   weights: 700 titles and doc headings, 600 section heads and
//            emphasis, 400 everything else
//   colors:  purple primary for titles, xetodoc green for names,
//            xetodoc blue for links, one muted gray, one border gray
//
// The hxWww pod sheet ahead of this one supplies the baseline reset.
//
// Scoping: site wide rules are :where(.xetodev-site) so they keep bare
// element specificity; each page's rules are scoped under its main
// class, the page type name such as ".LibPage"; shared components
// under their root class such as ".VersionTable".
*/

/*************************************************************************
** Site
*************************************************************************/

.xetodev-site {
  --site-primary: #7c3aed;   /* purple site accent - titles and headings */
  --site-name: #27ae60;      /* xetodoc green - spec, slot, chapter names */
  --site-link: #3e7cc4;      /* xetodoc link blue */
  --site-muted: #808080;     /* secondary text */
  --site-border: #eee;       /* xetodoc divider */
  --site-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --site-font-mono: Menlo, Consolas, Courier, monospace;

  /* the whole site shares xetodoc's base typography */
  font: 16px/1.5 var(--site-font);
}

:where(.xetodev-site) a { color: var(--site-link); }
:where(.xetodev-site) a:hover { text-decoration: underline; }

/* browser-like heading defaults the xetodoc stylesheet assumes; pages
   size their own headings */
:where(.xetodev-site) h1 { font-size: 2em;    font-weight: 700; }
:where(.xetodev-site) h2 { font-size: 1.5em;  font-weight: 700; }
:where(.xetodev-site) h3 { font-size: 1.17em; font-weight: 700; }
:where(.xetodev-site) h4 { font-size: 1em;    font-weight: 700; }

/* code and pre share the xetodoc mono style */
:where(.xetodev-site) pre, :where(.xetodev-site) code {
  font: 14px var(--site-font-mono);
}

/* the site's page and section headings, declared once; doc content
   inside xetodoc-page keeps the standard sheet's own heading colors.
   Pages override only margins and the hero size. */
:where(.xetodev-site) main h1:not(xetodoc-page *) {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--site-primary);
  margin: 0 0 0.75rem;
}
:where(.xetodev-site) main h2:not(xetodoc-page *) {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--site-primary);
  margin: 1.25rem 0 0.4rem;
}

/* the xetodoc title color is keyed to the site primary; names keep
   the standard green and links the standard blue */
:where(.xetodev-site) xetodoc-page {
  --title-color: var(--site-primary);
}

/* the standard sheet's 16px base reads larger than the site's dense
   14px pages; align doc content with the rest of the site, scaling
   code down a notch and pinning page titles to the site h1 size */
:where(.xetodev-site) xetodoc-page { font-size: 14px; }
:where(.xetodev-site) xetodoc-page pre, :where(.xetodev-site) xetodoc-page code { font-size: 13px; }
:where(.xetodev-site) xetodoc-page h1 { font-size: 1.5rem; }

/* hide the standard breadcrumb nav: the site renders its own lib
   breadcrumb uniformly across doc, files, and versions pages; the
   chapter prev/next nav inside xetodoc-chapter still renders */
:where(.xetodev-site) xetodoc-page > xetodoc-nav {
  display: none;
}

/* list, paragraph, and heading styling the standard xetodoc stylesheet
   assumes over the reset, re-excluding the nav, nested slot, and prop
   table rules the standard sheet styles itself */
:where(.xetodev-site) xetodoc-page ul { list-style: disc outside; padding-left: 1.5em; margin: 0.5em 0; }
:where(.xetodev-site) xetodoc-page ol { list-style: decimal outside; padding-left: 1.75em; margin: 0.5em 0; }
:where(.xetodev-site) xetodoc-page xetodoc-nav ul { list-style: none; padding: 0; margin: 0; }
:where(.xetodev-site) xetodoc-page p { margin: 0.75em 0; }
:where(.xetodev-site) xetodoc-page xetodoc-prop-td p,
:where(.xetodev-site) xetodoc-page xetodoc-slot-nested td p { margin: 0; }
:where(.xetodev-site) xetodoc-page h2, :where(.xetodev-site) xetodoc-page h3, :where(.xetodev-site) xetodoc-page h4 { margin: 1em 0 0.4em; }
:where(.xetodev-site) xetodoc-page blockquote { margin: 1em 1.5em; padding-left: 1em; border-left: 3px solid var(--site-border); }

/* shared button styling declared once; components override only
   deliberate variants (compact table buttons, danger red) */
:where(.xetodev-site) button {
  border: 1px solid var(--site-border);
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  font: 14px var(--site-font);
  background: transparent;
  cursor: pointer;
}
:where(.xetodev-site) button:hover:not(:disabled) { border-color: var(--site-primary); color: var(--site-primary); }
:where(.xetodev-site) button:disabled { color: var(--site-muted); cursor: default; }

/* page model loading and error placeholders */
.xetodev-site .loading { color: var(--site-muted); }
.xetodev-site p.err { color: #b00; }

/*************************************************************************
** Layout
*************************************************************************/

.xetodev-site .banner { background: #facc15; color: #713f12; text-align: center; font-size: 12px; font-weight: 600; padding: 2px 0; }
.xetodev-site > header { border-bottom: 1px solid var(--site-border); }
.xetodev-site > header > nav { display: flex; gap: 1.25rem; align-items: baseline; max-width: 60rem; margin: 0 auto; padding: 0.75rem 1rem; }
.xetodev-site .tab { border-top: 3px solid transparent; padding-top: 3px; }
.xetodev-site .tab.active { border-top-color: var(--site-primary); }
.xetodev-site .grow { flex: 1; }
.xetodev-site .username { font-size: 14px; }
.xetodev-site :is(.login, .logout) { font-size: 14px; }
.xetodev-site .brand { font-weight: 700; font-size: 1.1rem; color: var(--site-primary); }
.xetodev-site > main { max-width: 60rem; margin: 0 auto; padding: 1rem; }
.xetodev-site > footer { max-width: 60rem; margin: 2rem auto 0; padding: 0.75rem 1rem; border-top: 1px solid var(--site-border); font-size: 12px; color: var(--site-muted); }
.xetodev-site > footer > span { color: oklch(55.4% .041 257.4); }

/*************************************************************************
** Dialog
*************************************************************************/

.xetodev-site dialog { margin: auto; border: 1px solid var(--site-border); border-radius: 6px; padding: 1rem 1.25rem; min-width: 22rem; font: 16px var(--site-font); }
.xetodev-site dialog::backdrop { background: rgb(0 0 0 / 0.3); }
.xetodev-site dialog > h2 { margin: 0 0 0.75rem; font-size: 1.1rem; font-weight: 600; color: var(--site-primary); }

/*************************************************************************
** AboutPage
*************************************************************************/

.AboutPage section { max-width: 44rem; margin-bottom: 1.5rem; }
.AboutPage h2 { margin: 0 0 0.4rem; }
.AboutPage p { margin: 0 0 0.75rem; }
.AboutPage ul { margin: 0 0 0.75rem; padding-left: 1.5em; list-style: disc; }
.AboutPage li { padding: 1px 0; }

/*************************************************************************
** Components
*************************************************************************/

/* LibHeader */
.LibHeader .sep { margin: 0 0.4rem; color: var(--site-muted); font-weight: 400; }

/* LibTable */
table.LibTable { border-collapse: collapse; font-size: 14px; }
.LibTable td { padding: 2px 1.5rem 2px 0; vertical-align: baseline; white-space: nowrap; }
.LibTable .ver { color: var(--site-muted); }
.LibTable .sum { color: var(--site-muted); white-space: normal; }

/* SearchBox */
.SearchBox .search { display: flex; gap: 0.5rem; text-align: left; }
.SearchBox input { flex: 1; min-width: 0; border: 1px solid var(--site-border); border-radius: 4px; padding: 0.5rem 0.75rem; font: 16px var(--site-font); }
.SearchBox input:focus { outline: 2px solid var(--site-primary); outline-offset: -1px; border-color: transparent; }
.SearchBox select { border: 1px solid var(--site-border); border-radius: 4px; padding: 0 0.5rem; font: 14px var(--site-font); background: transparent; }
.SearchBox ul { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.SearchBox li { padding: 0.4rem 0; border-top: 1px solid var(--site-border); font-size: 14px; }
.SearchBox .type { font-size: 12px; padding: 0 6px; border-radius: 8px; background: var(--site-primary); color: #fff; margin-right: 6px; }
.SearchBox .snippet { color: var(--site-muted); font-size: 14px; margin-top: 2px; }
.SearchBox .snippet mark { background: none; color: var(--site-primary); font-weight: 600; }
.SearchBox .none, .SearchBox .err { margin: 0.75rem 0 0; color: var(--site-muted); font-size: 14px; }
.SearchBox .err { color: #b00; }

/* VersionTable */
.VersionTable table { border-collapse: collapse; font-size: 14px; }
.VersionTable th { text-align: left; padding: 2px 1.5rem 4px 0; font-weight: 600; }
.VersionTable td { padding: 2px 1.5rem 2px 0; }
.VersionTable .cur td { font-weight: 600; }
.VersionTable .off { color: var(--site-muted); }
.VersionTable .off td a { color: var(--site-muted); }
.VersionTable .msg { color: var(--site-muted); font-style: italic; white-space: normal; }
.VersionTable .acts { padding: 1px 0.4rem 1px 0; }
.VersionTable .acts button { width: 100%; }
.VersionTable .actsEnd { padding-right: 1.5rem; }
.VersionTable button { padding: 0.1rem 0.6rem; font: 13px var(--site-font); }  /* compact in table rows */
.VersionTable button.danger { color: #b00; }
.VersionTable button.danger:hover:not(:disabled) { border-color: #b00; color: #b00; }
.VersionTable .form { display: flex; flex-direction: column; gap: 0.9rem; }
.VersionTable .form input { border: 1px solid var(--site-border); border-radius: 4px; padding: 0.25rem 0.5rem; font: 14px var(--site-font); }
.VersionTable .form button { padding: 0.25rem 0.75rem; font: 14px var(--site-font); }
.VersionTable .row { display: flex; gap: 0.4rem; }
.VersionTable .confirm { margin: 0; max-width: 24rem; }
.VersionTable .err { color: #b00; margin: 0; }

/* OrgGrants */
.OrgGrants table { border-collapse: collapse; font-size: 14px; }
.OrgGrants th { text-align: left; padding: 2px 1.5rem 4px 0; font-weight: 600; }
.OrgGrants td { padding: 2px 1.5rem 2px 0; }
.OrgGrants .chk { text-align: center; }
.OrgGrants .none { color: var(--site-muted); }
.OrgGrants .add { display: flex; gap: 0.4rem; margin-top: 0.75rem; }
.OrgGrants .add input { border: 1px solid var(--site-border); border-radius: 4px; padding: 0.25rem 0.5rem; font: 14px var(--site-font); width: 18rem; }
.OrgGrants .add select { border: 1px solid var(--site-border); border-radius: 4px; padding: 0.25rem 0.5rem; font: 14px var(--site-font); background: transparent; }
.OrgGrants .form { display: flex; flex-direction: column; gap: 0.9rem; }
.OrgGrants .row { display: flex; gap: 0.4rem; }
.OrgGrants .confirm { margin: 0; max-width: 24rem; }
.OrgGrants .err { color: #b00; margin: 0.5rem 0 0; }

/* ChangePassword and MfaSetup */
:is(.ChangePassword, .MfaSetup) { margin-bottom: 1.5rem; }
:is(.ChangePassword, .MfaSetup) h2 { margin: 0 0 0.25rem; }
:is(.ChangePassword, .MfaSetup) .muted { color: var(--site-muted); margin: 0 0 0.6rem; max-width: 34rem; }
:is(.ChangePassword, .MfaSetup) .row { display: flex; gap: 0.6rem; align-items: center; }
:is(.ChangePassword, .MfaSetup) .form { display: flex; flex-direction: column; gap: 0.9rem; min-width: 18rem; }
:is(.ChangePassword, .MfaSetup) .instr { margin: 0; max-width: 26rem; }
:is(.ChangePassword, .MfaSetup) label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 14px; }
:is(.ChangePassword, .MfaSetup) input { border: 1px solid var(--site-border); border-radius: 4px; padding: 0.3rem 0.5rem; font: 15px var(--site-font); }
:is(.ChangePassword, .MfaSetup) input[readonly] { background: #f3f4f6; color: var(--site-muted); }
:is(.ChangePassword, .MfaSetup) .row button:hover:not(:disabled) { background: color-mix(in srgb, var(--site-primary) 10%, transparent); }
:is(.ChangePassword, .MfaSetup) .err { color: #b00; margin: 0; }
.ChangePassword .status { margin: 0.6rem 0 0; }
.MfaSetup .status { margin: 0 0 0.6rem; }
.MfaSetup .warn { margin: 0; color: #92400e; background: #fef3c7; padding: 0.5rem 0.6rem; border-radius: 4px; max-width: 26rem; }
.MfaSetup .qr { align-self: center; width: 220px; height: 220px; }
.MfaSetup .secret { margin: 0; font-size: 13px; color: var(--site-muted); }
.MfaSetup .secret code { font-size: 14px; color: inherit; letter-spacing: 1px; }
.MfaSetup .confirm { margin: 0; max-width: 24rem; }
.MfaSetup .lost { margin: 0.6rem 0 0; font-size: 13px; }

/*************************************************************************
** Pages
*************************************************************************/

/* HomePage */
.HomePage .hero { text-align: center; padding: 3rem 0 1rem; }
.HomePage h1 { font-size: 2.2rem; margin: 0 0 0.5rem; }
.HomePage p { margin: 0 0 1rem; }
.HomePage .box { max-width: 34rem; margin: 0 auto 1.25rem; }
.HomePage .links { display: flex; gap: 1.5rem; justify-content: center; }
.HomePage .featured { width: fit-content; max-width: 100%; margin: 1.5rem auto 0; }
.HomePage .featured section { margin-bottom: 1.25rem; }
.HomePage h2 { margin: 0 0 0.25rem; }

/* LibsPage */
.LibsPage section { margin-bottom: 1.25rem; }
.LibsPage h2 { margin: 0 0 0.25rem; }

/* LibPage */
.LibPage header { display: flex; gap: 0.6rem; align-items: baseline; }
.LibPage h1 { margin: 0; }
.LibPage .badge { font-size: 12px; padding: 1px 8px; border: 1px solid var(--site-border); border-radius: 9px; color: var(--site-muted); }
.LibPage .warn { background: #facc15; color: #713f12; border-color: transparent; }
.LibPage .pin { font-size: 14px; color: var(--site-muted); }
.LibPage .summary { margin: 0.35rem 0 0; }
.LibPage .deprecated { margin-top: 0.75rem; padding: 0.5rem 0.75rem; border: 1px solid #f97316; background: #fff7ed; border-radius: 4px; color: #9a3412; font-size: 14px; }
.LibPage .cols { display: flex; gap: 2.5rem; margin-top: 0.5rem; }
.LibPage .main { flex: 1; min-width: 0; }
.LibPage aside { width: 15rem; flex-shrink: 0; font-size: 14px; }
.LibPage aside dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; }
.LibPage aside dt { color: var(--site-muted); }
.LibPage aside dd { margin: 0; }
.LibPage .links { margin: 0; padding: 0; list-style: none; }
.LibPage .links li { padding: 2px 0; }
.LibPage .readme pre { overflow-x: auto; }
.LibPage .none { color: var(--site-muted); }
.LibPage .form { display: flex; flex-direction: column; gap: 0.9rem; }
.LibPage .form input { border: 1px solid var(--site-border); border-radius: 4px; padding: 0.25rem 0.5rem; font: 14px var(--site-font); }
.LibPage .row { display: flex; gap: 0.4rem; }
.LibPage .confirm { margin: 0; max-width: 24rem; }
.LibPage .err { color: #b00; margin: 0.4rem 0 0; }

/* LibFilesPage */
.LibFilesPage .ver { margin: 0 0 0.5rem; color: var(--site-muted); font-size: 14px; }
.LibFilesPage ul { margin: 0; padding: 0; list-style: none; }
.LibFilesPage li { padding: 2px 0; font-size: 14px; }
.LibFilesPage .dir { font-weight: 600; }
.LibFilesPage .meta { color: var(--site-muted); margin-left: 0.5rem; font-size: 12px; }

/* LibFilePage and LibSourcePage */
:is(.LibFilePage, .LibSourcePage) pre { overflow-x: auto; padding: 0.75rem; border: 1px solid var(--site-border); border-radius: 4px; }
.LibFilePage img { max-width: 100%; }

/* SearchPage */
.SearchPage .box { max-width: 40rem; }

/* PrefixesPage */
.PrefixesPage table { border-collapse: collapse; font-size: 14px; }
.PrefixesPage td { padding: 2px 1.5rem 2px 0; }
.PrefixesPage .kind { color: var(--site-muted); }

/* PrefixPage */
.PrefixPage h1 { margin: 0 0 1rem; }
.PrefixPage .sep { margin: 0 0.4rem; color: var(--site-muted); font-weight: 400; }
.PrefixPage dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 1.5rem; margin: 0; font-size: 14px; }
.PrefixPage dt { font-weight: 600; }
.PrefixPage dd { margin: 0; }

/* OrgPage */
.OrgPage h1 { margin: 0; }
.OrgPage .domain { margin: 0.25rem 0 0; color: var(--site-muted); font-size: 14px; }
.OrgPage .sep { margin: 0 0.2rem; }
.OrgPage .none { color: var(--site-muted); }

/* OrgManagePage: its grants matrix keeps its own rules */
.OrgManagePage h1 { margin: 0; }
.OrgManagePage .sep { margin: 0 0.4rem; color: var(--site-muted); font-weight: 400; }
.OrgManagePage section { margin-top: 1.25rem; }
.OrgManagePage h2:not(.OrgGrants *) { margin: 0 0 0.25rem; }
.OrgManagePage h3 { margin: 0.75rem 0 0.25rem; font-size: 1rem; }
.OrgManagePage .none:not(.OrgGrants *) { color: var(--site-muted); }
.OrgManagePage ul { margin: 0; padding-left: 1.25rem; font-size: 14px; }
.OrgManagePage table:not(.OrgGrants *) { border-collapse: collapse; font-size: 14px; }
.OrgManagePage td:not(.OrgGrants *) { padding: 2px 1.5rem 2px 0; }
.OrgManagePage .state { font-style: italic; color: var(--site-muted); }
.OrgManagePage .form:not(.OrgGrants *) { display: flex; flex-direction: column; gap: 0.6rem; max-width: 24rem; margin-top: 0.75rem; }
.OrgManagePage .form input:not(.OrgGrants *) { border: 1px solid var(--site-border); border-radius: 4px; padding: 0.25rem 0.5rem; font: 14px var(--site-font); }
.OrgManagePage .row:not(.OrgGrants *) { display: flex; gap: 0.4rem; }
.OrgManagePage .err:not(.OrgGrants *) { color: #b00; margin: 0; }
.OrgManagePage .ok { color: #15803d; font-size: 14px; margin: 0; }
.OrgManagePage .warn { color: #b45309; font-size: 14px; margin: 0; }

/* OrgNewPage */
.OrgNewPage .intro { margin: 0 0 1rem; max-width: 34rem; }
.OrgNewPage .none { color: var(--site-muted); }
.OrgNewPage .form { display: flex; flex-direction: column; gap: 0.6rem; max-width: 24rem; }
.OrgNewPage .form input, .OrgNewPage .form textarea { border: 1px solid var(--site-border); border-radius: 4px; padding: 0.25rem 0.5rem; font: 14px var(--site-font); }
.OrgNewPage .form textarea { resize: vertical; }
.OrgNewPage .row { display: flex; gap: 0.4rem; }
.OrgNewPage .err { color: #b00; margin: 0; }
.OrgNewPage .ok { color: #15803d; font-size: 14px; margin: 0; }
.OrgNewPage section { margin-top: 1.5rem; }
.OrgNewPage h2 { margin: 0 0 0.25rem; }
.OrgNewPage table { border-collapse: collapse; font-size: 14px; }
.OrgNewPage th { text-align: left; padding: 2px 1.5rem 4px 0; font-weight: 600; }
.OrgNewPage td { padding: 2px 1.5rem 2px 0; }
.OrgNewPage .state { font-style: italic; color: var(--site-muted); }

/* SettingsPage */
.SettingsPage section { margin-bottom: 1.5rem; }
.SettingsPage h2 { margin: 0 0 0.25rem; }
.SettingsPage .account { margin: 0; }
.SettingsPage .none { color: var(--site-muted); }
.SettingsPage table { border-collapse: collapse; font-size: 14px; }
.SettingsPage td { padding: 2px 1.5rem 2px 0; }
.SettingsPage .perms { color: var(--site-muted); }
.SettingsPage .new { margin: 0.75rem 0 0; font-size: 14px; }

/* TicketsPage */
.TicketsPage .none { color: var(--site-muted); }
.TicketsPage table { border-collapse: collapse; font-size: 14px; }
.TicketsPage th { text-align: left; padding: 2px 1.5rem 4px 0; font-weight: 600; }
.TicketsPage td { padding: 2px 1.5rem 2px 0; }
.TicketsPage .state { font-style: italic; color: var(--site-muted); }

/* TicketPage */
.TicketPage h1 { margin: 0 0 1rem; }
.TicketPage .sep { margin: 0 0.4rem; color: var(--site-muted); font-weight: 400; }
.TicketPage section { margin-bottom: 1.5rem; }
.TicketPage h2 { margin: 0 0 0.25rem; }
.TicketPage dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 1.5rem; margin: 0; font-size: 14px; }
.TicketPage dt { font-weight: 600; }
.TicketPage dd { margin: 0; white-space: pre-line; }
.TicketPage .none { color: var(--site-muted); }
.TicketPage .reject { color: #b00; margin: 0; }
.TicketPage .review { color: #15803d; margin: 0; font-size: 14px; }
.TicketPage ul { margin: 0; padding-left: 1.25rem; font-size: 14px; }
.TicketPage .part { border-top: 1px solid var(--site-border); padding: 0.5rem 0; font-size: 14px; }
.TicketPage .meta { color: var(--site-muted); }
.TicketPage .doc { margin-top: 0.25rem; white-space: pre-line; }
.TicketPage .info { margin-top: 0.25rem; color: var(--site-muted); font-style: italic; }
.TicketPage textarea { border: 1px solid var(--site-border); border-radius: 4px; padding: 0.25rem 0.5rem; font: 14px var(--site-font); width: 100%; max-width: 34rem; resize: vertical; }
.TicketPage .row { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
