/* =========================================================
   Top Spec Designs shell header — sits above sample subpages.
   Mirrors the main site's site-header but uses unique class
   names so it never collides with a sample's own .site-header.
   ========================================================= */

:root {
  --tsd-shell-height: 76px;
  --tsd-shell-note-height: 28px;
  --tsd-banner-height: 104px; /* shell + note, used by sample CSS overrides */
}

.tsd-shell {
  position: sticky;
  top: 0;
  z-index: 10000;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: rgba(247, 245, 240, .94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid #e7e2d4;
  box-shadow: 0 1px 0 rgba(14, 19, 16, .02), 0 8px 20px -12px rgba(14, 19, 16, .12);
  color: #0e1310;
}

.tsd-shell-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--tsd-shell-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tsd-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0e1310;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.tsd-shell-brand:hover { color: #7d2027; }
.tsd-shell-mark {
  display: block;
  border-radius: 6px;
}
.tsd-shell-name { color: #0e1310; }
.tsd-shell-name-light { color: #2a302d; }

.tsd-shell-nav { display: flex; }
.tsd-shell-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.tsd-shell-nav a {
  font-family: "Inter", system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 500;
  color: #2a302d;
  text-decoration: none;
  transition: color .2s ease;
}
.tsd-shell-nav a:hover { color: #7d2027; }

.tsd-shell-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0e1310;
  color: #fafaf7;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}
.tsd-shell-cta:hover { background: #7d2027; transform: translateY(-1px); }

.tsd-shell-note {
  margin: 0;
  padding: 0 24px;
  height: var(--tsd-shell-note-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1e0e2;
  color: #7d2027;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid rgba(125, 32, 39, .12);
}

/* Push each sample's own sticky/fixed header below the TSD shell */
.site-header {
  top: var(--tsd-banner-height) !important;
}

@media (max-width: 720px) {
  :root {
    --tsd-shell-height: 64px;
    --tsd-banner-height: 92px;
  }
  .tsd-shell-nav { display: none; }
  .tsd-shell-inner { gap: 12px; padding: 0 18px; }
  .tsd-shell-cta { padding: 8px 14px; font-size: .85rem; }
  .tsd-shell-note {
    height: var(--tsd-shell-note-height);
    font-size: .68rem;
    letter-spacing: .06em;
  }
}
