:root {
  --background: #f7f7f5;
  --surface: #ffffff;
  --text: #1b1b1b;
  --muted: #5a5a5a;
  --border: #d8d8d3;
  --link: #00A27B;
  --sidebar-offset: calc(220px + 2.25rem);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  background: var(--surface);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Cambria, Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  margin-top: 4rem;
}

.site-header .wrap,
.site-footer .wrap {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-name {
  margin: 0;
  margin-left: var(--sidebar-offset);
  font-size: 1.1rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.site-description {
  margin: 0.35rem 0 0;
  margin-left: var(--sidebar-offset);
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-nav,
.footer-grid nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  margin-left: var(--sidebar-offset);
}

.site-nav a,
.site-nav a:visited,
.footer-grid nav a,
.footer-grid nav a:visited {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  font-weight: 500;
}

.section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child {
  border-bottom: 0;
}

.section-intro {
  padding-top: 2.25rem;
}

.section-title,
h1,
h2,
h3 {
  font-family: Cambria, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.section-title,
h1 {
  font-size: 2rem;
  max-width: 24rem;
  letter-spacing: -0.02em;
  font-weight: 300;
  line-height: 1.2;
}

h2 {
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
  line-height: 3;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1.6;
}

p,
ul,
dl {
  margin: 0;
}

p,
ul,
dl,
li,
dd {
  font-size: 1.02rem;
}

p+p,
ul+p,
p+ul,
dl+p {
  margin-top: 0.9rem;
}

ul {
  padding-left: 1.1rem;
}

li+li {
  margin-top: 0.35rem;
}

.columns-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
}

.doc-page {
  max-width: 40rem;
}

.doc-layout {
  --doc-width: 40rem;
  --sidebar-width: 220px;
  --doc-gap: 2.25rem;
}

.doc-columns {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: var(--doc-gap);
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 1rem;
  width: var(--sidebar-width);
  justify-self: end;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;

  text-transform: uppercase;
  text-align: right;
}

.doc-sidebar-block+.doc-sidebar-block {
  margin-top: 1.25rem;
}

.doc-sidebar h2,
.doc-sidebar h3 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.doc-sidebar nav,
.doc-sidebar-links {
  display: grid;
  gap: 0.25rem;
  justify-items: end;
}

.doc-sidebar a,
.doc-sidebar span {
  display: block;
}

.doc-sidebar .doc-sidebar-subitem {
  font-size: 0.74rem;
}

.doc-sidebar .is-current {
  font-weight: 500;
}

.doc-content {
  min-width: 0;
  max-width: var(--doc-width);
}

.doc-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1em;
}

.doc-breadcrumbs a {
  color: inherit;
}

.doc-meta-line {
  font-size: 0.75rem;
}

.doc-meta-line .spec-status {
  margin: 0 0.35rem 0 0.15rem;
}

.doc-related-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
}

.doc-related-panel h2 {
  margin-top: 0;
}

.doc-block+.doc-block {
  margin-top: 1.5rem;
}

.doc-block h2,
.doc-block h3 {
  margin-bottom: 0.55rem;
}

.doc-subheading {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 500;
}

.doc-minor-heading {
  font-size: 0.95rem;
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}

.doc-block ol {
  margin: 0;
  padding-left: 1.15rem;
}

.doc-block ol li+li {
  margin-top: 0.35rem;
}

.callout {
  margin-top: 0.9rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.diagram {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--surface);
  padding: 1rem;
  border: 1px solid var(--border);
  margin: 0.9rem 0;
  overflow-x: auto;
}

.artifact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
}

.artifact-panel h2,
.artifact-panel h3 {
  margin-top: 0;
}

.artifact-panel .artifact-list {
  margin-top: 0.75rem;
}

.spec-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.spec-meta dt {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.spec-meta dd {
  margin: 0.15rem 0 0;
}

.spec-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  align-items: baseline;
}

.spec-muted {
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-compact {
  max-width: 40rem;
}

.spec-list {
  display: grid;
  gap: 1rem;
}

.spec-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
}

.spec-summary h2,
.spec-summary h3 {
  margin-top: 0;
}

.spec-summary-head {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}

.spec-summary-head h3 {
  margin-bottom: 0;
}

.spec-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.spec-status-proposal {
  border-color: #c9b16d;
  background: #fff8df;
}

.spec-status-draft {
  border-color: #8da3c7;
  background: #eef4ff;
}

.spec-status-published {
  border-color: #81a88b;
  background: #edf8ef;
}

.spec-status-unspecified {
  color: var(--muted);
  background: var(--surface);
}

.spec-status-detail {
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}

.artifact-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.artifact-list a {
  width: fit-content;
}

.appendix-markdown {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.appendix-markdown aeon-code-block {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.appendix-markdown h1,
.appendix-markdown h2,
.appendix-markdown h3,
.appendix-markdown h4,
.appendix-markdown h5,
.appendix-markdown h6 {
  margin: 1.1rem 0 0.35rem;
}

.appendix-markdown h1:first-child,
.appendix-markdown h2:first-child,
.appendix-markdown h3:first-child {
  margin-top: 0;
}

.appendix-markdown p,
.appendix-markdown ul,
.appendix-markdown ol,
.appendix-markdown blockquote,
.appendix-markdown pre {
  margin: 0;
}

.appendix-markdown ul,
.appendix-markdown ol {
  padding-left: 1.2rem;
}

.appendix-markdown blockquote {
  border-left: 1px solid var(--border);
  padding-left: 0.85rem;
  color: var(--muted);
}

.appendix-markdown pre {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.appendix-markdown pre code,
.appendix-markdown code {
  font-family: Monaco, "Courier New", monospace;
  font-size: 0.8rem;
}

.appendix-markdown code {
  background: #ecece5;
  border: 1px solid var(--border);
  color: #005340;
  padding: 0.08rem 0.6rem;
  border-radius: 1rem;
}

.appendix-markdown table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  table-layout: fixed;
}

.appendix-markdown th,
.appendix-markdown td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.appendix-markdown td {
  background: var(--surface);
}

.appendix-markdown th {
  text-align: left;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: #f1f1ec;
}

.appendix-table td,
.appendix-table th {
  font-size: 0.95rem;
}

body.aeon-expand-open {
  overflow: hidden;
}

.aeon-expand-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(27, 27, 27, 0.48);
}

.aeon-expand-overlay.is-open {
  display: flex;
}

.aeon-expand-panel {
  width: min(1100px, 100%);
  max-height: min(86vh, 100%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.aeon-expand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: #fbfbf9;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.aeon-expand-title {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.aeon-expand-close,
.aeon-table-expand {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--link);
  padding: 0.35rem 0.72rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.aeon-expand-close:hover,
.aeon-table-expand:hover {
  background: rgba(0, 162, 123, 0.08);
  transform: translateY(-1px);
}

.aeon-expand-body {
  min-height: 0;
  overflow: auto;
  padding: 1rem;
  background: #fbfbf9;
}

.aeon-expand-pre {
  margin: 0;
  min-width: max-content;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  white-space: pre;
}

.aeon-expand-pre code {
  display: block;
}

.aeon-expand-pre .tok-comment {
  color: #767676;
  font-style: italic;
}

.aeon-expand-pre .tok-comment-doc {
  color: #666a78;
  font-style: normal;
}

.aeon-expand-pre .tok-comment-annotation {
  color: #0b6a73;
  font-style: italic;
}

.aeon-expand-pre .tok-comment-hint {
  color: #94623d;
  font-style: italic;
}

.aeon-expand-pre .tok-comment-host {
  color: #6b6f78;
  font-style: italic;
}

.aeon-expand-pre .tok-directive,
.aeon-expand-pre .tok-json-key {
  color: #006f56;
}

.aeon-expand-pre .tok-key,
.aeon-expand-pre .tok-binding {
  color: #006f56;
}

.aeon-expand-pre .tok-type,
.aeon-expand-pre .tok-json-literal,
.aeon-expand-pre .tok-ts-literal {
  color: #5d5a8d;
}

.aeon-expand-pre .tok-attribute,
.aeon-expand-pre .tok-grammar-symbol,
.aeon-expand-pre .tok-ts-type {
  color: #7b4f68;
}

.aeon-expand-pre .tok-attribute-punct {
  color: #8a6d3b;
}

.aeon-expand-pre .tok-tag {
  color: #8b6f1f;
  font-weight: 700;
}

.aeon-expand-pre .tok-tag-punct,
.aeon-expand-pre .tok-punct,
.aeon-expand-pre .tok-grammar-punct,
.aeon-expand-pre .tok-grammar-angle,
.aeon-expand-pre .tok-ts-punct {
  color: #707070;
}

.aeon-expand-pre .tok-string,
.aeon-expand-pre .tok-grammar-string,
.aeon-expand-pre .tok-json-string,
.aeon-expand-pre .tok-ts-string {
  color: #7a5c1f;
}

.aeon-expand-pre .tok-literal,
.aeon-expand-pre .tok-json-number,
.aeon-expand-pre .tok-ts-number {
  color: #526c20;
}

.aeon-expand-pre .tok-operator,
.aeon-expand-pre .tok-ts-operator {
  color: #1b1b1b;
}

.aeon-expand-pre .tok-grammar-rule,
.aeon-expand-pre .tok-ts-keyword {
  color: #005f73;
  font-weight: 700;
}

.aeon-expand-pre .tok-grammar-operator {
  color: #8b6f1f;
  font-weight: 600;
}

.aeon-expand-pre .tok-grammar-comment,
.aeon-expand-pre .tok-ts-comment {
  color: #767676;
  font-style: italic;
}

.aeon-expand-table-wrap {
  overflow: auto;
}

.aeon-expand-table-wrap table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.aeon-expand-table-wrap th,
.aeon-expand-table-wrap td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: var(--surface);
}

.aeon-expand-table-wrap th {
  background: #f1f1ec;
  text-align: left;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.aeon-table-controls {
  display: flex;
  justify-content: flex-end;
  margin: 0.3rem 0 0.2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.footer-grid>p {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 720px) {

  .site-name,
  .site-description,
  .site-nav {
    margin-left: 0;
  }

  .columns-two,
  .spec-meta,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .doc-columns {
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .doc-sidebar {
    position: static;
    width: auto;
    justify-self: stretch;
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .doc-sidebar nav,
  .doc-sidebar-links {
    justify-items: start;
  }

  .section-title,
  h1 {
    font-size: 1.6rem;
  }

  body {
    font-size: 0.98rem;
  }

  .aeon-expand-overlay {
    padding: 0.75rem;
  }
}

@media print {

  .site-nav,
  .footer-grid nav {
    display: none;
  }

  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .spec-card,
  .section {
    border-color: #999;
  }
}
