:root {
  color: #182c2b;
  background: #f1f4ec;
  font: 16px/1.55 system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
main { width: min(100% - 2rem, 66rem); margin: 0 auto; padding: clamp(2rem, 7vw, 5rem) 0; }
header { max-width: 42rem; margin-bottom: 2rem; }
.brand { color: #35534e; font-weight: 750; margin: 0 0 .7rem; }
.brand span { font-weight: 500; margin-left: .6rem; }
h1 { font: 500 clamp(2.6rem, 7vw, 5rem)/.99 Georgia, serif; letter-spacing: -.055em; margin: 0; }
header > p:last-child { color: #38534c; max-width: 37rem; }
h2 { margin: 0 0 1rem; font-size: 1.2rem; }
button { min-height: 2.85rem; border: 1px solid #718a7c; border-radius: .45rem; padding: .45rem .75rem; font: inherit; }
button { color: #224938; background: #e8f0e3; font-weight: 650; cursor: pointer; }
button.primary { color: white; background: #24583f; border-color: #24583f; }
button:hover { filter: brightness(.92); }
:focus-visible { outline: 3px solid #256bb7; outline-offset: 2px; }
.versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
h3 { margin: 0; font-size: 1rem; }
pre { min-height: 5.5rem; margin: 0; padding: .75rem .85rem; overflow: auto; font: .9rem/1.45 ui-monospace, monospace; }
@media (max-width: 640px) {
  .versions { grid-template-columns: 1fr; }
}

.panel { background: #fffef9; border: 1px solid #cbd6c7; padding: clamp(1rem, 3vw, 2rem); border-radius: 1rem; margin-block: 1.2rem; }
.pair { font-weight: 700; }
.graph { padding-left: 1.25rem; }
.graph ul { border-left: 2px solid #9cb4a5; list-style: none; padding-left: .75rem; margin-block: .4rem; }
.graph li { margin-bottom: .35rem; }
.graph li span { color: #405850; font: .875rem ui-monospace, monospace; overflow-wrap: anywhere; }
.graph button { min-height: 2.35rem; }
.graph button[aria-pressed="true"] { background: #24583f; color: white; }
.versions > div { min-width: 0; }
pre { background: #20332e; color: #f5fbef; border-radius: .55rem; max-height: 19rem; }
.controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
select { display: block; min-height: 2.85rem; font: inherit; max-width: 100%; padding: .35rem; }
#status { min-height: 1.6rem; font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.language-pair { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; }
.language-pair > span { padding-bottom: .6rem; }
#available-pairs { color: #405850; font-size: .875rem; }
.project { display: grid; grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr); gap: .8rem; }
.project h3 { margin: 0 0 .4rem; }
.file-browser { padding: .65rem; background: #eef3e9; border-radius: .55rem; }
.file-browser ul { list-style: none; padding: 0; margin: 0; }
.file-browser button { width: 100%; min-height: 2.25rem; text-align: left; margin-bottom: .25rem; }
button[data-file][aria-pressed="true"] { background: #24583f; color: white; }
.code-editor { height: 18rem; border: 1px solid #9cb4a5; border-radius: .45rem; overflow: hidden; }
.project .versions > section { min-width: 0; }
#editor-status:empty { display: none; }
details { margin-top: 1rem; }
summary { font-weight: 650; cursor: pointer; }
.graph .bindings { display: inline-block; margin-left: .4rem; }
@media (max-width: 760px) {
  .project { grid-template-columns: minmax(0, 1fr); }
  .file-browser ul { display: flex; flex-wrap: wrap; gap: .3rem; }
}

#capability-matrix { overflow-x: auto; margin-block: 1rem; }
#capability-matrix table { width: 100%; border-collapse: collapse; text-align: center; }
#capability-matrix caption { text-align: left; margin-bottom: .5rem; }
#capability-matrix :is(th, td) { padding: .5rem; border-bottom: 1px solid currentColor; }
#capability-matrix :is(th, td):first-child { text-align: left; }
#tool-catalog li { margin-block: .5rem; }
#rpc-schema { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .75rem; }
#rpc-schema pre, #rpc-response { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow: auto; }
#rpc-request { display: block; width: 100%; margin-block: .5rem; font: inherit; }
#stage-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .75rem; margin-block: 1rem; }
#stage-chart meter { display: block; width: 100%; }
