/* TrapGod pages: the OGBase page engine (styles.css) in TrapGod green. Loaded after styles.css. */
:root {
  --uv: #53ad6e;
  --uv-rgb: 83, 173, 110;
}

/* First visit: the new page isn't public until it's saved once. */
.tg-golive {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(var(--uv-rgb), .45);
  border-radius: 16px;
  background: rgba(var(--uv-rgb), .08);
}
.tg-golive > div { display: grid; gap: 4px; min-width: 0; flex: 1; }
.tg-golive b { font-weight: 600; }
.tg-golive span { color: var(--haze); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.tg-golive .btn { flex: none; }
@media (max-width: 560px) {
  .tg-golive { flex-direction: column; align-items: stretch; }
  .tg-golive .btn { justify-content: center; min-height: 44px; }
}

.logo .logo-mark { object-fit: contain; }

/* Parts of the editor TrapGod doesn't use are marked hidden; some of them have display rules of their own. */
.dash-editor [hidden] { display: none !important; }

/* The same person's other EE network pages (net_profile_extras), under their page. */
.tg-net {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 16px 24px;
}
.tg-net-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(var(--uv-rgb), .35);
  border-radius: 999px;
  background: rgba(var(--uv-rgb), .08);
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}
.tg-net-link span { color: var(--uv); font-weight: 600; }
.tg-net-link:hover, .tg-net-link:focus-visible { border-color: var(--uv); }

/* Pixel pets sit in a 90px strip at the bottom; keep the page's last links above it. */
body.tg-has-pets { padding-bottom: 100px; }
/* The join pill sits above the pets strip, or the strip (an iframe) takes the taps meant for it. */
body.tg-has-pets .pf-join { position: fixed; bottom: calc(98px + env(safe-area-inset-bottom, 0px)); z-index: 6; }

/* ---------------------------------------------------------------------------------------------------------------
 * Discover and Templates on the shared site chrome (body.tg-chrome, includes/tg_page_shell.php). The engine's
 * own bar and footer step aside for tg_site_header() / tg_site_footer(), and its colours and fonts follow the
 * chrome tokens in assets/css/tg-site.css, so the D / L / M theme switch reaches the list too. Member cards keep
 * each member's own look. Design: docs/trapgod/design.md.
 * ------------------------------------------------------------------------------------------------------------- */
body.tg-chrome {
  --void: var(--tgs-paper);
  --bone: var(--tgs-text);
  --haze: var(--tgs-muted);
  --dim: var(--tgs-muted);
  --uv: var(--tgs-accent);
  --uv-rgb: 74, 175, 107;
  --ice: var(--tgs-focus);
  --line: var(--tgs-rule);
  --line-2: var(--tgs-rule-strong);
  --panel: var(--tgs-surface);
  --glass: var(--tgs-surface);
  --f-display: var(--tgs-display);
  --f-body: var(--tgs-body);
  --tgc-wash: rgba(238, 243, 239, 0.04);
  --tgc-wash-strong: rgba(238, 243, 239, 0.1);
  background: var(--tgs-paper);
  color: var(--tgs-text);
}
[data-theme="light"] body.tg-chrome {
  --uv-rgb: 35, 112, 74;
  --tgc-wash: rgba(16, 17, 28, 0.04);
  --tgc-wash-strong: rgba(16, 17, 28, 0.09);
  color-scheme: light;
}
[data-theme="metal"] body.tg-chrome {
  --uv-rgb: 208, 208, 213;
  --tgc-wash: rgba(218, 218, 222, 0.04);
  --tgc-wash-strong: rgba(218, 218, 222, 0.1);
}
body.tg-chrome::before { display: none; }
body.tg-chrome #nav,
body.tg-chrome .app > .foot,
body.tg-chrome .page > .foot { display: none !important; }
.tgs-js .seo-pre { display: none; }

/* headings in the chrome's voice: wide display face, sentence case, the section label in mono */
body.tg-chrome .page-title {
  color: var(--tgs-text);
  font-family: var(--tgs-display);
  font-stretch: 112%;
  letter-spacing: -0.02em;
  text-shadow: none;
}
body.tg-chrome .page-title::first-letter { text-transform: uppercase; }
body.tg-chrome .kicker span {
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--tgs-accent);
  font: 600 12px/1 var(--tgs-mono);
  letter-spacing: 0.12em;
}
body.tg-chrome .kicker span::before { content: ""; width: 28px; height: 1px; margin-right: 6px; background: var(--tgs-rule-strong); opacity: 1; }
body.tg-chrome .kicker span::after { content: none; }
body.tg-chrome .page-lede a,
body.tg-chrome .sec-note a,
body.tg-chrome .tp-meta b { color: var(--tgs-text); }

/* controls: pills on the chrome's rules, 44px targets */
body.tg-chrome .btn { background: var(--tgs-accent); color: var(--tgs-accent-ink); min-height: 44px; }
body.tg-chrome .btn:hover { background: var(--tgs-accent-hover); }
body.tg-chrome .btn-ghost { background: transparent; color: var(--tgs-text); box-shadow: inset 0 0 0 1px var(--tgs-rule-strong); }
body.tg-chrome .btn-ghost:hover { background: var(--tgc-wash); }
body.tg-chrome .inp { min-height: 44px; background: var(--tgs-surface); color: var(--tgs-text); border-color: var(--tgs-rule-strong); }
body.tg-chrome .inp::placeholder { color: var(--tgs-muted); }
body.tg-chrome .ex-tabs { background: var(--tgc-wash); box-shadow: inset 0 0 0 1px var(--tgs-rule); }
body.tg-chrome .ex-tab { min-height: 44px; color: var(--tgs-muted); }
body.tg-chrome .ex-tab[aria-pressed="true"] { background: var(--tgs-accent); color: var(--tgs-accent-ink); }
body.tg-chrome .dc-tag { min-height: 44px; display: inline-flex; align-items: center; background: var(--tgc-wash); color: var(--tgs-muted); }
body.tg-chrome .dc-tag:hover,
body.tg-chrome .dc-tag:focus-visible,
body.tg-chrome .dc-tag.on { color: var(--tgs-text); background: var(--tgc-wash-strong); }
body.tg-chrome :focus-visible { outline-color: var(--tgs-focus); }

/* the line under each member card sits on the page, so it follows the theme (the card above keeps the member's look) */
body.tg-chrome .dc-who b,
body.tg-chrome .shop-sub { color: var(--tgs-text); }
body.tg-chrome .dc-who .dc-tagline { color: var(--tgs-accent); }

/* the page sits between the chrome's bar and footer: less bottom padding than the engine's own page */
body.tg-chrome .page { padding-bottom: 64px; }
@media (prefers-reduced-motion: reduce) {
  body.tg-chrome * { transition: none !important; }
}
