/* ============================================================================
 * NYSIRIS brand overlay for Forgejo (git.exchange.nysiris.com).
 *
 * Loaded last (via templates/custom/header.tmpl), it re-tints Forgejo's accent
 * to the NYSIRIS emerald (#10b981 — the dashboard "graphite" accent) on top of
 * WHATEVER theme the user has selected, and registers the GRAMES wordmark for
 * the app name. Pure overlay: no theme is replaced, so upgrades never clobber it.
 * The logo + favicon come from custom/public/assets/img/{logo,favicon}.svg,
 * which Forgejo serves automatically.
 * ========================================================================== */

:root,
[data-theme] {
  --color-primary:           #10b981;
  --color-primary-contrast:  #ffffff;
  --color-primary-dark-1:    #0ea271;
  --color-primary-dark-2:    #0c8a61;
  --color-primary-dark-3:    #0a7351;
  --color-primary-dark-4:    #085c41;
  --color-primary-dark-5:    #063d2b;
  --color-primary-light-1:   #2bc48f;
  --color-primary-light-2:   #46cd9e;
  --color-primary-light-3:   #74dab6;
  --color-primary-light-4:   #a2e7ce;
  --color-primary-light-5:   #d0f3e6;
  --color-primary-light-6:   #e8f9f2;
  --color-primary-light-7:   #f4fcf9;
  --color-primary-alpha-30:  rgba(16, 185, 129, 0.3);
  --color-primary-alpha-40:  rgba(16, 185, 129, 0.4);
  --color-primary-alpha-50:  rgba(16, 185, 129, 0.5);
  --color-primary-alpha-60:  rgba(16, 185, 129, 0.6);
  --color-primary-alpha-70:  rgba(16, 185, 129, 0.7);
  --color-primary-alpha-80:  rgba(16, 185, 129, 0.8);
  --color-primary-alpha-90:  rgba(16, 185, 129, 0.9);
  --color-accent:            #10b981;
}

/* NYSIRIS wordmark for the navbar app name (falls back to the UI font). */
@font-face {
  font-family: 'NYSIRIS Wordmark';
  src: url('/assets/fonts/wordmark.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
.navbar .brand strong,
#navbar .brand strong,
.ui.secondary.menu .item.brand strong {
  font-family: 'NYSIRIS Wordmark', var(--fonts-regular, inherit);
  letter-spacing: 0.06em;
}

/* Remove Forgejo's footer everywhere (operator request). */
.page-footer,
footer.page-footer {
  display: none !important;
}

/* ── Standalone "NYSIRIS Teams" splash ──────────────────────────────────────
   templates/home.tmpl renders its OWN page (no base/head → no navbar/chrome),
   so these styles are fully self-contained (no reliance on Forgejo's theme). */
body.nysiris-splash {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(1100px 560px at 50% -8%, #16261f 0%, #0b0e14 58%), #0b0e14;
  color: #e6eaf2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nysiris-hero { text-align: center; max-width: 560px; }
.nysiris-hero__logo {
  width: 104px; height: 104px; border-radius: 24px; margin-bottom: 26px;
}
.nysiris-hero__title {
  font-family: 'NYSIRIS Wordmark', -apple-system, sans-serif;
  font-size: 2.9rem; font-weight: 800; letter-spacing: 0.05em; margin: 0 0 12px; color: #fff;
}
.nysiris-hero__tagline { color: #8a93a6; font-size: 1.1rem; line-height: 1.55; margin: 0 0 34px; }
.nysiris-hero__cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: #10b981; color: #04261c; font-weight: 700; font-size: 1.05rem;
  padding: 14px 42px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.35);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.nysiris-hero__cta:hover { background: #0ea271; transform: translateY(-1px); box-shadow: 0 12px 32px rgba(16, 185, 129, 0.45); }
.nysiris-hero__cta svg { fill: currentColor; }

/* ── Login page: same clean treatment — hide the navbar + footer and center the
   sign-in card. Scoped via :has() so all OTHER pages keep their full chrome. */
body:has(.page-content.user.signin) #navbar,
body:has(.page-content.user.signin) .page-footer { display: none !important; }
body:has(.page-content.user.signin) {
  background: radial-gradient(1100px 560px at 50% -8%, #16261f 0%, #0b0e14 58%), #0b0e14;
}
body:has(.page-content.user.signin) .full.height,
.page-content.user.signin {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; margin: 0 !important;
}
