/**
 * Tech Hub — Shell Layout
 * Imports BDLS tokens. Owns surface routing + safe-area padding.
 */

@import url('../../shared-components/baker-design-system/tokens.css');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bds-bg-0);
  color: var(--bds-text-1);
  font-family: var(--bds-font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

.th-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.th-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: env(safe-area-inset-top) var(--bds-gap) 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bds-border);
}

.th-main {
  flex: 1;
  position: relative;
  padding-bottom: env(safe-area-inset-bottom);
}

.th-surface {
  padding: var(--bds-gap);
  min-height: calc(100dvh - 60px);
}

.th-surface--hidden {
  display: none;
}

.th-surface--active {
  display: block;
  animation: th-surface-in var(--bds-dur) var(--bds-ease-smooth);
}

@keyframes th-surface-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#th-modal-root,
#th-toast-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}

#th-modal-root > *,
#th-toast-root > * {
  pointer-events: auto;
}
