.compact-docs {
  width: min(100%, 54rem);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(4rem, 10vw, 8rem);
  color: var(--f-text, #eef4f8);
  overflow-wrap: break-word;
}
.compact-docs h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
}
.compact-docs p {
  margin: 0;
  color: var(--f-muted, #adbfcc);
  line-height: 1.65;
}
.compact-docs p + p { margin-top: 1rem; }
.compact-docs a { color: var(--f-cyan, #42d9ef); }
.compact-docs-announcement { max-width: 42rem; }
.compact-docs-announcement h1 + p { color: var(--f-text, #eef4f8); font-size: 1.2rem; }
.compact-docs-server { min-height: 100vh; padding: 1.5rem 5% 0; background: #08141d; color: #eef4f8; }
.compact-docs-server nav { display: block; max-width: 81.25rem; margin: auto; line-height: 1.8; }
.compact-docs-server a { color: #42d9ef; }

/* StageChord uses the same reading width and rhythm as the StagePhrase guides. */
.compact-docs.stagechord-manual {
  width: min(44rem, 100%);
  padding-top: clamp(2.75rem, 7vw, 5.5rem);
  color: var(--f-text, #eef4f8);
}
.compact-docs.stagechord-manual h1 {
  font-size: clamp(2rem, 6vw, 3.125rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0 0 .75rem;
  text-wrap: balance;
}
.stagechord-manual a { text-underline-offset: 4px; }
.stagechord-manual :is(a, input):focus-visible { outline: 2px solid #00cde7; outline-offset: 5px; }
.stagechord-manual .stagechord-lead { color: #a9c7d3; font-size: 20px; line-height: 1.6; margin-bottom: 1.75rem; }
.stagechord-search label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.stagechord-search input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 15px 18px;
  border: 1px solid #315566;
  border-radius: 9px;
  background: transparent;
  color: #e9f8fc;
  font: inherit;
}
.stagechord-search input::placeholder { color: #a9c7d3; opacity: 1; }
.stagechord-search [role="status"]:not(:empty) { margin-top: .75rem; }
.stagechord-topics {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.compact-docs.stagechord-manual h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.02em; }
.stagechord-topics h2 { margin: 0 0 .3rem; }
.stagechord-topics a { text-decoration: none; }
.stagechord-topics a:hover { text-decoration: underline; }
.stagechord-topics p { color: #a9c7d3; line-height: 1.55; }
.stagechord-manual .stagechord-breadcrumb { margin-bottom: 2rem; font-size: 14px; }
.stagechord-section { margin: 2rem 0; }
.stagechord-section h2 { margin: 0 0 .65rem; scroll-margin-top: 90px; }
.stagechord-section p { font-size: 17px; line-height: 1.75; color: #c1d6df; }
.stagechord-section p + p { margin-top: .75rem; }
.stagechord-section figure { margin: 1.25rem 0; }
.stagechord-section img { display: block; width: auto; max-width: min(100%, 520px); height: auto; margin-inline: auto; }
@media (max-width: 640px) {
  .stagechord-manual .stagechord-lead { font-size: 18px; }
  .stagechord-section p { font-size: 16px; }
}
.stagechord-section figcaption { text-align: center; margin-top: .5rem; font-size: 13px; }
