/* Live_App additions — styles for components NOT in the original handbook.css.
   Original .app / .sidebar / .toolbar / .viewer / .page-shell / etc. styles
   already cover the main shell. We only need to add the cover page, doc tiles,
   section divider, refresh button, and a couple of small helpers. */

.boot-msg {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Gotham', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  background: #f0f0f0;
}

.error-screen {
  max-width: 720px;
  margin: 120px auto;
  padding: 32px;
  font-family: 'Gotham', system-ui, sans-serif;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}
.error-screen h1 {
  font-size: 20px;
  color: #b00020;
  margin: 0 0 12px;
}
.error-screen .url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 12px 0;
  word-break: break-all;
}

/* ============ Cover page ============
   Sits INSIDE .page-shell (816px wide from handbook.css).
   Paints a dark hero with knockout title + spectrum bar. */
.page-inner.cover-page {
  background: #0a0a0a;
  color: #fff;
  padding: 0;
  min-height: 1056px;
}
.cover-stamp {
  display: flex; align-items: center; gap: 10px;
  padding: 28px 36px 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  flex-wrap: wrap;
}
.cover-stamp .brand { font-family: 'Gotham', sans-serif; font-weight: 800; letter-spacing: 0.18em; color: #fff; }
.cover-stamp .sep { opacity: 0.4; }
.cover-hero { padding: 32px 36px 36px; }
.cover-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.cover-headline {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-weight: 800;
  font-size: 88px;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.cover-meta {
  display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.cover-meta .label { color: #fff; font-weight: 700; }
.cover-spectrum { display: flex; height: 6px; width: 100%; }
.cover-body { padding: 32px 36px; color: rgba(255,255,255,0.85); }
.cover-body h2 {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-weight: 800; font-size: 24px; letter-spacing: -0.005em;
  text-transform: uppercase; color: #fff;
  margin: 32px 0 12px;
}
.cover-body p { line-height: 1.6; margin: 8px 0; font-size: 13px; }
.cover-body .hb-list { padding-left: 20px; font-size: 13px; line-height: 1.8; }
.cover-parties { width: 100%; margin: 12px 0; }
.cover-parties td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.cover-parties td:first-child {
  font-weight: 700; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px;
  width: 200px;
}
.cover-footer {
  background: #18234E;
  padding: 14px 36px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: 'Gotham', sans-serif; font-weight: 700;
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff;
}
.cover-footer .states { font-weight: 400; opacity: 0.85; }

/* ============ Section divider — full-bleed colored page ============ */
.page-inner.section-divider {
  min-height: 1056px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 64px;
  color: #fff;
}
.sd-stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; opacity: 0.7;
  margin-bottom: 28px;
}
.sd-title {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-weight: 800; font-size: 96px; line-height: 0.9;
  text-transform: uppercase; letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.sd-code-plate {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.18em; padding: 8px 16px; border-radius: 2px;
  margin-bottom: 24px;
}
.sd-desc {
  max-width: 600px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* ============ Document tiles ============ */
.doc-tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.doc-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #1680A5;
  border-radius: 3px;
  transition: background 0.15s, border-color 0.15s;
}
.doc-tile:hover {
  background: #f0f7fa;
  border-left-color: #18234E;
}
.doc-tile .doc-title {
  font-weight: 700;
  font-size: 13px;
  color: #18234E;
  margin-bottom: 6px;
}
.doc-tile .doc-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}
.doc-tile .doc-desc {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
  line-height: 1.5;
}
.doc-tile.empty {
  border-left-color: #ccc;
  color: #888;
  font-style: italic;
}

/* ============ Empty data-cell placeholder ============ */
.hb-table td.empty {
  color: #c0c0c0;
}
.hb-table td.empty::before {
  content: "—";
}

