/* Project AlliX 3.0 | Staging visual foundation
   This layer enhances shared navigation and typography without replacing core forms/security flows. */
:root {
  --ax-bg: #0b1118;
  --ax-surface: #111c25;
  --ax-border: #283940;
  --ax-text: #eaf3f3;
  --ax-muted: #a8b9bf;
  --ax-teal: #26c3bd;
  --ax-gold: #d9b675;
}
html { scroll-behavior: smooth; }
body { background: var(--ax-bg); color: #d8e4e6; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: #54d9d1; }
a:hover { color: #99f3e9; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #74eee5; outline-offset: 3px;
}
.header {
  position: relative;
  z-index: 40;
  background: rgba(9, 17, 23, .98);
  border-bottom: 1px solid rgba(122, 194, 195, .18);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.header-flex { max-width: 1330px; flex-wrap: nowrap; gap: 24px; }
.header .brand { min-width: 0; gap: 10px; }
.header .logo { height: 42px; width: 42px; object-fit: contain; border-radius: 10px; }
.header .site-title { font-size: 1.18rem; font-weight: 750; letter-spacing: -.035em; line-height: 1.12; white-space: nowrap; color: #f1fcfc; }
.header .site-title .tagline { display:block; margin:4px 0 0; color:#8ea4a8; font-size:.58rem; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.header .navbar { margin-left: auto; min-width: 0; }
.header .nav-flex { gap: 20px; align-items: center; }
.header .nav-flex a { display: inline-block; color: #c4d3d5; font-size: .89rem; font-weight: 550; white-space: nowrap; padding: 9px 0; }
.header .nav-flex a:hover, .header .nav-flex a[aria-current="page"] { color: #fff; }
.header .auth-links { gap: 11px; flex-shrink: 0; }
.header .auth-links a { font-size: .87rem; font-weight: 650; color: #dae7e8; }
.header .auth-links .signup, .header .auth-links .ax-header-cta {
  background: #2fc4bd; color: #071318; border-radius: 9px; padding: 9px 14px;
  box-shadow: 0 7px 18px rgba(25, 200, 188, .12);
}
.header .auth-links .signup:hover, .header .auth-links .ax-header-cta:hover { background: #69e3da; color: #051116; }
.header .auth-links .logout { background: transparent; color: #a9bec0; padding: 7px 0; font-weight: 550; }
.header .auth-links .logout:hover { color: #fff; background: transparent; }
.header .welcome-msg { max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #98afb2; font-size: .78rem; }
.header .notif-link { color: #e2f3f3; font-size: 1.03rem; }
.header .notif-badge { color: #fff; background: #c44f50; }
.header .mobile-toggle { padding: 8px 11px; border: 1px solid #31505a; background: #10212a; color: #ebf8f8; margin-left: auto; }
.header .ax-mobile-auth { display: none; }
.ax-skip-link { position: fixed; top: -60px; left: 12px; z-index: 999; background: #fff; color: #071318; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.ax-skip-link:focus { top: 9px; }
.footer {
  display:flex; flex-direction:column; gap: 5px; text-align:center;
  padding: 46px 20px 30px; border-top:1px solid #23353d;
  background: #080e14; color: #95aaad; font-size: .89rem;
}
.footer .social-share { margin-bottom: 6px; }
.footer .social-share p { color:#d7e5e6; font-size: .82rem; letter-spacing:.03em; }
.footer nav[aria-label="Legal"] { display:flex; justify-content:center; align-items:center; gap:12px; flex-wrap:wrap; }
.footer nav[aria-label="Legal"] a { color:#a9c9c9; }
.footer .social-share a { margin:0 8px; }
/* Avoid changing underlying form behavior while modernizing their appearance. */
.cta-button { max-width:100%; border-radius:9px; background:#138c8b; color:#fff; }
.cta-button:hover { background:#20aea8; }
.secondary-button { display:inline-block; border-radius:9px; }
.card, .project-card, .auth-form { border-color:#2c4248; background:#111b22; }
.section-container { min-height:0; }
@media(max-width: 1140px) {
  .header-flex { gap:13px; }
  .header .nav-flex { gap:12px; }
  .header .nav-flex a { font-size: .81rem; }
  .header .welcome-msg { display:none; }
}
@media(max-width: 1060px) {
  .header-flex { flex-wrap:wrap; }
  .header .mobile-toggle { display:inline-flex; }
  .header .navbar { display:none; order:3; width:100%; margin:0; background:#101d26; border:1px solid #29404a; border-radius:12px; padding:9px 14px; }
  .header .navbar.is-open { display:block; }
  .header .nav-flex { display:flex; flex-direction:column; align-items:stretch; gap:1px; }
  .header .nav-flex a { width:100%; box-sizing:border-box; padding:11px 8px; font-size:.94rem; }
  .header .auth-links { display:none; }
  .header .ax-mobile-auth { display:block; border-top:1px solid #2b444b; margin-top:8px; padding-top:7px; }
  .header .ax-mobile-auth a { color:#69e3da; font-weight:700; }
}
@media(max-width: 420px) {
  .header .site-title { font-size:1.03rem; }
  .header .logo { height:36px; width:36px; }
  .header .site-title .tagline { font-size:.49rem; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }

/* Sprint 3.7.1 UI patch: make the signed-in greeting open My Profile. */
.header .auth-links a.ax-welcome-profile-link {
  display: inline-block;
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #98afb2;
  font-size: .78rem;
  font-weight: 550;
  text-decoration: none;
}
.header .auth-links a.ax-welcome-profile-link:hover {
  color: #69e3da;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.header .auth-links a.ax-welcome-profile-link:focus-visible {
  outline: 2px solid #2fc4bd;
  outline-offset: 4px;
  border-radius: 3px;
}
