/* Audio Lounge DS — specimen stylesheet v2
   Manual, not exhibit. Plates are the argument. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #0a0b10;
  color: #d0dced;
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.doc { max-width: 1240px; margin: 0 auto; padding: 72px 48px 200px; }

/* ── running chrome ─────────────────────────────────── */
.doc-head {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: 24px; align-items: baseline;
  padding-bottom: 20px; border-bottom: 1px solid #1e2530; margin-bottom: 72px;
}
.doc-id, .doc-meta {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: .16em; color: #7a8da3; text-transform: uppercase;
}
.doc-title { font-size: 14px; font-weight: 600; color: #d0dced; letter-spacing: -.1px; }

.running-foot {
  position: fixed; left: 48px; right: 48px; bottom: 18px;
  display: flex; justify-content: space-between;
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: .14em; color: #4a5668; text-transform: uppercase;
  pointer-events: none; z-index: 10;
}

/* ── thesis ─────────────────────────────────────────── */
.thesis {
  margin: 48px 0 0; padding: 0 0 0 120px;
  font-size: 24px; line-height: 1.35;
  color: #f0f4f8; font-weight: 400; letter-spacing: -.35px;
  max-width: 62ch;
}
.thesis em { font-style: normal; color: #d4a853; font-weight: 500; }
.thesis-tag {
  padding: 0 0 0 120px; margin: 28px 0 0;
  font-family: 'Geist Mono', monospace; font-size: 11px;
  letter-spacing: .14em; color: #7a8da3; text-transform: uppercase;
}

/* ── section shell ──────────────────────────────────── */
.sec {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 24px; margin: 96px 0 0;
}
.sec-num {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: .18em; color: #d4a853;
  padding-top: 6px; text-transform: uppercase;
  border-top: 1px solid #d4a853;
  align-self: start;
}
.sec h2 {
  font-family: 'Geist', sans-serif; font-size: 26px; font-weight: 600;
  letter-spacing: -.5px; color: #f0f4f8; margin: 0 0 18px;
  border-top: 1px solid #1e2530; padding-top: 6px;
}
.sec h3 {
  font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #7a8da3; margin: 48px 0 14px;
}
.sec p, .sec li { font-size: 14.5px; line-height: 1.62; color: #94a7be; max-width: 66ch; }
.sec p + p { margin-top: 10px; }
.sec p b { color: #d0dced; font-weight: 600; }
.sec p code {
  font-family: 'Geist Mono', monospace; font-size: 12px;
  color: #d4a853; background: rgba(212,168,83,.07);
  padding: 1px 6px; border-radius: 3px;
}

/* ── BRIDGE: the spine ──────────────────────────────── */
.bridge { margin: 28px 0 0; }
.bridge-row {
  display: grid; grid-template-columns: 140px 1fr 1fr;
  gap: 0; border-top: 1px solid #1e2530;
}
.bridge-row:last-child { border-bottom: 1px solid #1e2530; }

.bridge-role {
  padding: 28px 20px 28px 0;
  border-right: 1px solid #1e2530;
}
.bridge-role-num {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: .16em; color: #d4a853; text-transform: uppercase;
  margin-bottom: 10px;
}
.bridge-role-name {
  font-family: 'Geist', sans-serif; font-size: 16px; font-weight: 600;
  color: #f0f4f8; letter-spacing: -.2px; margin-bottom: 8px;
}
.bridge-role-desc {
  font-family: 'Geist', sans-serif; font-size: 11.5px; line-height: 1.45;
  color: #7a8da3;
}

.bridge-cell {
  padding: 28px 28px 28px 28px;
  min-height: 160px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.bridge-cell.admin  { background: #050810; border-right: 1px solid #1e2530; }
.bridge-cell.public { background: #0E0D12; }

.bridge-cell-note {
  position: absolute; bottom: 10px; left: 28px; right: 28px;
  font-family: 'Geist Mono', monospace; font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase;
  color: #4a5668; padding-top: 10px;
  border-top: 1px dashed rgba(30,37,48,.8);
}

.bridge-head {
  display: grid; grid-template-columns: 140px 1fr 1fr;
  border-bottom: 1px solid #1e2530;
}
.bridge-head > div {
  padding: 10px 20px 10px 0;
  font-family: 'Geist Mono', monospace; font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase; color: #7a8da3;
}
.bridge-head > div:nth-child(1) { padding-left: 0; }
.bridge-head > div:nth-child(2) { padding-left: 28px; color: #d4a853; border-left: 1px solid #1e2530; }
.bridge-head > div:nth-child(3) { padding-left: 28px; color: #E89A3C; border-left: 1px solid #1e2530; }

/* ── PLATES ─────────────────────────────────────────── */
.plate {
  margin: 16px 0 0;
  border: 1px solid #1e2530; border-radius: 6px; overflow: hidden;
  position: relative;
}
.plate-meta {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: baseline;
  padding: 12px 18px;
  border-bottom: 1px solid #1e2530;
  background: #0a0b10;
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: #7a8da3;
}
.plate-meta b { color: #f0f4f8; font-weight: 600; letter-spacing: .1em; }

/* Annotations inside plates — only on wide viewports */
.note {
  position: absolute;
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  color: #d4a853; pointer-events: none;
  white-space: nowrap;
  display: none; align-items: center; gap: 8px;
}
@media (min-width: 1560px) {
  .note { display: flex; }
}
.note .arm {
  width: 40px; height: 1px; background: #d4a853;
}
.note.right .arm { order: -1; }
.note.public { color: #E89A3C; }
.note.public .arm { background: #E89A3C; }
.note.violet { color: #9B8AEB; }
.note.violet .arm { background: #9B8AEB; }
.note.dim { color: #94a7be; }
.note.dim .arm { background: #94a7be; }

/* Plate frames — we render the real themed content inside */
.plate-frame { position: relative; }
.plate-frame.mat-admin  { background: #050810; padding: 20px 24px; }
.plate-frame.mat-public { background: #0E0D12; padding: 32px 32px; }

/* ── BOUNDARY DIAGRAM ───────────────────────────────── */
.boundary {
  margin: 24px 0 0;
  border: 1px solid #1e2530; border-radius: 6px;
  padding: 32px 40px 40px;
  background: #0a0b10;
  position: relative;
}
.boundary-grid {
  display: grid; grid-template-columns: 1fr 80px 1fr;
  align-items: stretch; gap: 0;
}
.boundary-col {
  padding: 24px 28px;
  border-radius: 4px;
  min-height: 240px;
}
.boundary-col.public { background: #0E0D12; border: 1px solid #28273A; }
.boundary-col.admin  { background: #050810; border: 1px solid #1e2938; }
.boundary-col-hdr {
  font-family: 'Geist Mono', monospace; font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 14px;
}
.boundary-col.public .boundary-col-hdr { color: #E89A3C; }
.boundary-col.admin  .boundary-col-hdr { color: #d4a853; }
.boundary-col-title {
  font-family: 'Archivo Black', Impact, sans-serif;
  font-size: 20px; line-height: 1; color: #F0EDE6;
  text-transform: uppercase; letter-spacing: -.01em;
  margin-bottom: 18px;
}
.boundary-col.admin .boundary-col-title {
  font-family: 'Geist', sans-serif; font-weight: 700;
  letter-spacing: -.3px; color: #f0f4f8; font-size: 18px;
}
.boundary-col ul { list-style: none; padding: 0; margin: 0; }
.boundary-col li {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  line-height: 1.6; letter-spacing: .04em; color: #7a8da3;
  padding: 3px 0;
}
.boundary-col li::before { content: '· '; color: #4a5668; }

.boundary-cut {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.boundary-cut::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 0; border-left: 1px dashed #4a5668;
}
.boundary-cut-label {
  position: relative; z-index: 1;
  background: #0a0b10; padding: 8px 0;
  font-family: 'Geist Mono', monospace; font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  color: #d4a853; text-align: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
}

.boundary-flows {
  margin-top: 24px;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px; background: #1e2530;
  border: 1px solid #1e2530; border-radius: 4px;
  overflow: hidden;
}
.boundary-flow {
  background: #0a0b10; padding: 16px 20px;
}
.boundary-flow-label {
  font-family: 'Geist Mono', monospace; font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  color: #d4a853; margin-bottom: 8px;
}
.boundary-flow-label.reset { color: #ff7b7b; }
.boundary-flow-label.forbid { color: #7a8da3; }
.boundary-flow-body {
  font-family: 'Geist Mono', monospace; font-size: 10.5px;
  line-height: 1.6; color: #d0dced;
}
.boundary-flow-body.strike { color: #4a5668; text-decoration: line-through; text-decoration-thickness: 1px; }

/* ── CHANGELOG ──────────────────────────────────────── */
.changelog {
  margin: 16px 0 0; border-top: 1px solid #1e2530;
}
.changelog-item {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 32px; padding: 14px 0;
  border-bottom: 1px solid rgba(30,37,48,.6);
}
.changelog-item > div:first-child {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: #d4a853;
  padding-top: 2px;
}
.changelog-item > div:last-child {
  font-size: 13.5px; line-height: 1.55; color: #d0dced;
}
.changelog-item > div:last-child code {
  font-family: 'Geist Mono', monospace; font-size: 11.5px;
  color: #d4a853; background: rgba(212,168,83,.06);
  padding: 1px 5px; border-radius: 3px;
}

/* ── Inline type specimens (shown in plates, not tables) ── */
.type-strip {
  margin: 16px 0 0;
  padding: 28px 32px;
  border: 1px solid #1e2530; border-radius: 6px;
  background: #050810;
  position: relative;
}
.type-strip.public { background: #0E0D12; }
.type-strip-meta {
  position: absolute; top: 10px; right: 14px;
  font-family: 'Geist Mono', monospace; font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase;
  color: #4a5668;
}
.type-line { display: flex; align-items: baseline; gap: 24px; padding: 12px 0; border-bottom: 1px dashed rgba(30,37,48,.8); }
.type-line:last-child { border-bottom: none; }
.type-line .sample { flex: 1; }
.type-line .spec {
  font-family: 'Geist Mono', monospace; font-size: 9.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: #7a8da3; white-space: nowrap; text-align: right;
  min-width: 260px;
}
