/*
 * Yote brand layer shared by every server-rendered surface: the website pages
 * (login, errors, messages), the print/email chrome and the administrator desk.
 *
 * Loaded after yote-fonts.css and yote-tokens.css (see hooks.py). Only Yote design
 * tokens are used here; no hex value may be introduced in this file.
 * Design source of truth: docs/DESIGN.md, design/tokens.css.
 *
 * Page-specific layers:
 *   yote-web.css    website pages only (web_include_css)
 *   yote-login.css  the signed-out pages: sign in, set password, message, error, 404
 *                   (each loads it through auth_css() in templates/includes/brand/auth_frame.html)
 */

/* ------------------------------------------------------------------ */
/* Typography base                                                      */
/* ------------------------------------------------------------------ */

/*
 * The two faces are the ones design/fonts ships, self-hosted, but registered under
 * Yote-only family names (see yote-fonts.css): the engine's own website bundle
 * declares a different, static "Inter" and wins the family-name tie, which would put
 * server-rendered pages in a different cut from the app at /yote. Re-pointing the two
 * type tokens here is the whole of that fix; every other token is unchanged.
 */
:root {
  --y-font-display: 'Yote Display', 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --y-font-ui: 'Yote Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.yote-display {
  font-family: var(--y-font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.yote-caps {
  font-size: var(--y-text-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.yote-num {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* Brand furniture                                                      */
/* ------------------------------------------------------------------ */

.yote-navbar-brand {
  display: inline-flex;
  align-items: center;
}

.yote-navbar-brand img {
  height: 26px;
  width: auto;
  display: block;
}

/* Splash (templates/includes/splash_screen.html) */
.splash.yote-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--y-space-5);
  min-height: 100vh;
  background: var(--y-bg);
}

.yote-splash__mark {
  width: 72px;
  height: 72px;
  animation: yote-splash-in var(--y-duration-slower) var(--y-ease-enter) both;
}

.yote-splash__bar {
  width: 96px;
  height: 3px;
  border-radius: var(--y-radius-full);
  background: var(--y-border);
  overflow: hidden;
}

.yote-splash__bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--y-accent);
  animation: yote-splash-sweep 1.1s var(--y-ease-standard) infinite;
}

@keyframes yote-splash-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes yote-splash-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yote-splash__mark {
    animation: none;
  }
  .yote-splash__bar::after {
    animation: none;
    width: 100%;
  }
}

/* The engine's own credit line is removed from the templates; this is a safety net. */
.footer-powered {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Administrator desk: a light touch only. The desk is an internal tool for      */
/* administrators (docs/DESIGN.md §1); customers live in the app at /yote.       */
/* ------------------------------------------------------------------ */

.navbar .app-logo,
.navbar-brand .app-logo {
  max-height: 24px;
  width: auto;
}

.navbar-brand.navbar-home {
  display: inline-flex;
  align-items: center;
  gap: var(--y-space-2);
}
