/**
 * Per-site default styles. Static URL: /torched/torchbearer-assets/{key-slug}/css/site.css (mirrored at provision; no PHP for CSS delivery).
 */
:root {
  --tb-bg: #0f1015;
  --tb-text: #e8e8e8;
  --tb-muted: #9da3b1;
  --tb-accent: #5d8ced;
  --tb-rule: #2a3040;
}

* {
  box-sizing: border-box;
}

body.tb-site-default {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.5 system-ui, sans-serif;
  background: var(--tb-bg);
  color: var(--tb-text);
  display: flex;
  flex-direction: column;
  position: relative;
}

body.tb-site-default.tb-site-has-topbar {
  padding-top: 48px;
}

/* Per-site top bar (partials/topbar.php) — brand left, account link right */
.tb-site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0 1rem;
  box-sizing: border-box;
  background: rgba(15, 16, 21, 0.82);
  border-bottom: 1px solid var(--tb-rule);
  backdrop-filter: blur(8px);
}

.tb-site-topbar__brand {
  display: block;
  line-height: 0;
  text-decoration: none;
  flex: 0 0 auto;
}

.tb-site-topbar__nav {
  flex: 0 0 auto;
  margin-left: auto;
}

.tb-site-topbar__nav--menu {
  margin-left: auto;
}

.tb-site-topbar__nav--account {
  margin-left: 0;
}

.tb-site-topbar__nav--menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.tb-site-topbar__nav--menu li {
  margin: 0;
  padding: 0;
}

.tb-site-topbar__nav--menu a,
.tb-site-topbar__nav--menu span {
  color: var(--tb-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.tb-site-topbar__nav--menu a:hover {
  text-decoration: underline;
}

.tb-site-topbar__nav-link {
  color: var(--tb-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.tb-site-topbar__nav-link:hover {
  text-decoration: underline;
}

.tb-site-topbar__logo {
  display: block;
  max-height: 32px;
  width: auto;
  height: auto;
  vertical-align: middle;
}

/* Public home main column over slideshow */
.tb-site-pubhome-main {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  background: transparent;
}

/* Shared slideshow (see partials/slideshow.php): full-viewport background behind content */
.tb-slideshow-root {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.tb-slideshow-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tb-slideshow-layer--active {
  z-index: 2;
}

.tb-slideshow-layer--passive {
  z-index: 1;
}

/* Centered floating card (auth.html style) over slideshow */
body.tb-site-default.tb-uc-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tb-uc-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.tb-uc-center > main.tb-under-construction {
  width: 100%;
  max-width: 620px;
  margin: 0;
  flex: 0 1 auto;
  background: rgba(22, 25, 34, 0.88);
  border: 1px solid var(--tb-rule);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.tb-uc-center .tb-legal-footer {
  max-width: 620px;
  width: 100%;
  margin-top: 0;
}

.tb-site-default p.muted {
  color: var(--tb-muted);
  margin: 0 0 1rem;
}

.tb-legal-footer {
  margin-top: auto;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--tb-rule);
  font-size: 0.85rem;
  color: var(--tb-muted);
  position: relative;
  z-index: 1;
}

.tb-legal-footer__nav a {
  color: var(--tb-accent);
  text-decoration: none;
}

.tb-legal-footer__nav a:hover {
  text-decoration: underline;
}

.tb-legal-footer__sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

/* Legal page body (injected fragment) — align with canonical legal HTML structure */
.tb-legal-page .wrap {
  max-width: 720px;
  margin: 0 auto;
}

.tb-legal-page section {
  background: #161922;
  border: 1px solid var(--tb-rule);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.tb-legal-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.tb-legal-page .effective {
  color: var(--tb-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.tb-legal-page h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #dbe3ff;
}

.tb-legal-page ul {
  padding-left: 1.25rem;
}

.tb-legal-page li {
  margin-bottom: 0.35rem;
}

.tb-under-construction {
  text-align: center;
}

.tb-under-construction h1 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
