/* Shared layout for all visualization pages — optimized for large screens */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: sans-serif;
  background: #111;
  color: #eee;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────────── */
#vis-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid #333;
}

#vis-header h1       { font-size: 1.8rem; }
#vis-header .subtitle { font-size: 1rem; color: #aaa; margin-top: 0.25rem; }

.back-link {
  display: inline-block;
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.back-link:hover { color: #999; }

.col-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #777;
  cursor: pointer;
  user-select: none;
}
.col-toggle-label input { cursor: pointer; accent-color: #76b7b2; }

/* ── Main: left annotation | display | right annotation ─────────── */
#vis-main {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  flex: 1;
  gap: 0;
}

.annotation {
  padding: 1rem;
  font-size: 0.85rem;
  color: #888;
  border-right: 1px solid #222;
}

#margin-right.annotation {
  border-right: none;
  border-left: 1px solid #222;
  overflow-wrap: break-word;
}

#vis-display {
  padding: 1rem;
  min-height: 600px;
}

/* ── Footer ─────────────────────────────────────────────────────── */
#vis-footer {
  padding: 2rem;
  border-top: 1px solid #333;
  font-size: 0.95rem;
  color: #bbb;
  min-height: 160px;
}
