/* assets/platform-brand.css — the PLATFORM brand layer (CraftPlate's own
 * surfaces: the landing page and the /trainers/ console).
 *
 * Tenant branding is a different system entirely (shared/apply-brand.js +
 * tokens-*.css, direction-scoped) and never reads these variables.
 *
 * LOCKED palette (Alvaro, 2026-10-28): "Carbon Forest" — the :root default
 * below, so every platform surface wears it with zero JS. The two
 * alternate palettes and the staging preview toggle that switched
 * between them were retired 2026-11-08 (Alvaro's ruling — the decision
 * was made); the alternate [data-theme] blocks and the toggle styles
 * are gone from this file.
 *
 * Token roles: --tp-ink = text + dark surfaces · --tp-accent = large CTAs,
 * rings, decorative (never small text) · --tp-accent-text = text-safe
 * accent for links and button backgrounds · --tp-support = pale tint
 * backgrounds · --tp-dark = dark-mode surface · --tp-dark-accent =
 * accent lightened for dark surfaces · --tp-on-dark = text on ink/dark.
 */

:root,
:root[data-theme="carbon-forest"] {
  --tp-ink: #0A241E;
  --tp-accent: #2FA84F;
  --tp-accent-text: #1F7A37;
  --tp-support: #DDEAE2;
  --tp-dark: #0A241E;
  --tp-dark-accent: #5CC474;
  --tp-on-dark: #EAF4EE;
  --tp-paper: #FBFCFB;
}

/* ---- logo lockup (inline SVG mark + wordmark) ---- */
.tp-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--tp-ink); }
.tp-lockup .tp-mark { width: 34px; height: 34px; flex: none; }
.tp-lockup .tp-wordmark {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800; letter-spacing: -0.03em; font-size: 21px; line-height: 1.05;
  white-space: nowrap;
}
.tp-lockup--hero .tp-mark { width: 76px; height: 76px; }
.tp-lockup--hero .tp-wordmark { font-size: 46px; }
.tp-lockup--hero { gap: 16px; }
.tp-lockup--on-dark { color: var(--tp-on-dark); }
.tp-lockup--on-dark .tp-mark { color: var(--tp-on-dark); }
.tp-lockup--on-dark .tp-dot { fill: var(--tp-dark-accent); }
.tp-mark .tp-dot { fill: var(--tp-accent); }

.btn { background: var(--tp-accent-text); }
.publishbar button { background: var(--tp-accent-text); }
a { color: var(--tp-accent-text); }
:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 2px; }

/* Sign-in card as a product auth screen: lockup on top, accent rule. */
#authView .auth-card { border-top: 4px solid var(--tp-accent); }
#authView .tp-lockup { margin-bottom: 16px; }
/* The in-card platform lockup (2026-11-11, Alvaro's screenshot: the
   wordmark rendered --tp-ink #0A241E ON the dark remembered card —
   1.23:1, unreadable). The card wears two grounds: the remembered
   brand panel (dark) and the stranger LIGHT door card. The lift is
   therefore keyed to the card state, not the view: on the light
   card the lockup keeps the base --tp-ink treatment (13.7:1,
   correct); the remembered (dark) card re-lifts it to --tp-on-dark
   (#EAF4EE, ~11:1). tests/signin-brand-door-gate.py asserts
   >= 4.5:1 in BOTH states, pixel-honest. */
#authView .auth-card.auth-remembered .tp-lockup { color: var(--tp-on-dark); }
#authView .auth-card.auth-remembered .tp-lockup .tp-mark { color: var(--tp-on-dark); }
#authView .auth-card.auth-remembered .tp-lockup .tp-dot { fill: var(--tp-dark-accent); }
