/* Container, grid, section spacing, bands, sheet headers. Requires tokens.css, base.css. */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad);
}

/* Bands */
.band--surface {
  background: var(--surface);
}

.band--dark {
  --line: var(--line-dark);
  background: var(--dark);
  color: var(--on-dark);
}

.band--dark :is(h1, h2, h3, h4) {
  color: var(--on-dark);
}

.band--dark :focus-visible {
  outline-color: var(--on-dark);
}

.band--dark ::selection {
  background: var(--on-dark);
  color: var(--dark);
}

/* Grid */
.grid-12,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .grid-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .split--wide-left {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* Drawing Sheet Index Header (replaces centered em-dash section-label) */
.sheet-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.sheet-header__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.sheet-header__index {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: var(--fw-h3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.band--dark .sheet-header__index {
  color: var(--on-dark-muted);
}

.sheet-header__note {
  color: var(--ink-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-small);
  line-height: var(--lh-small);
}

.band--dark .sheet-header__note {
  color: var(--on-dark-muted);
}

.sheet-header__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-h3);
  letter-spacing: var(--ls-h3);
  line-height: var(--lh-h3);
}

.sheet-header__sub {
  max-width: 68ch;
  color: var(--ink-2);
}

/* Architectural hairline frame */
.frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  background: var(--bg);
}

.band--surface .frame {
  background: var(--bg);
}
