/* Signed-in app in the Sidequest identity.
   Loaded after the old style.css: re-points its variables at the brand tokens (sidequest.css) and
   restyles the shell (sidebar, top bar, buttons, cards, flashes). Page layouts stay in style.css;
   new rules go in sidequest.css. No hex values here, tokens only. */

:root {
  --bg: var(--sq-lilac);
  --surface: var(--sq-lilac-soft);
  --surface-alt: var(--sq-cream-soft);
  --ink: var(--sq-violet);
  --ink-soft: var(--sq-violet-deep);
  --muted: var(--sq-violet);
  --line: var(--sq-violet-mid);
  --line-strong: var(--sq-violet);
  --brass: var(--sq-violet);
  --brass-soft: var(--sq-cream-soft);
  --terracotta: var(--sq-violet);
  --terracotta-soft: var(--sq-pink);
  --cypress: var(--sq-violet);
  --cypress-soft: var(--sq-lime);
  --font-serif: var(--sq-font-loud);
  --font-sans: var(--sq-font-body);
  --font-mono: var(--sq-font-body);
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --shadow-subtle: none;
  --shadow-elevated: 8px 8px 0 var(--sq-violet);
}

body.sq { font-size: 15px; }
.sq .muted { color: var(--sq-violet); opacity: .82; }

/* Headings: the loud voice. */
.sq h1, .sq h2 {
  font-family: var(--sq-font-loud);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: .98;
  color: var(--sq-violet);
}
.sq .kicker { font-family: var(--sq-font-body); font-weight: 600; letter-spacing: .12em; color: var(--sq-violet); }

/* Shell: sidebar */
.sq .app-sidebar { background: var(--sq-lilac-soft); border-right: var(--sq-hair) solid var(--sq-violet); }
.sq .app-sidebar .sq-logo { margin: 0 8px 32px; }
.sq .app-sidebar .sq-logo img { height: 56px; width: auto; }
.sq .app-sidebar nav a {
  color: var(--sq-violet); border-radius: 0; min-height: 44px;
  font: 600 var(--sq-step--1)/1 var(--sq-font-body); letter-spacing: .1em; text-transform: uppercase;
}
.sq .app-sidebar nav a:hover { background: var(--sq-lilac); color: var(--sq-violet); }
.sq .app-sidebar nav a[aria-current="page"] { background: var(--sq-violet); color: var(--sq-lilac); box-shadow: none; }
.sq .app-sidebar nav a .mono { font-family: var(--sq-font-body); font-weight: 700; }
.sq .sidebar-account { border-top: var(--sq-hair) solid var(--sq-violet); }
.sq .sidebar-crew { width: 120px; margin: 24px auto 0; opacity: .95; }
.sq .user-avatar { display: inline-flex; background: var(--sq-violet); color: var(--sq-lilac); font-family: var(--sq-font-body); }

/* Shell: top bar for signed-out pages other than the landing */
.sq .top-nav { background: var(--sq-lilac); border-bottom: var(--sq-hair) solid var(--sq-violet); }
.sq .top-nav .sq-logo img { height: 44px; width: auto; }
.sq .nav-links a { color: var(--sq-violet); font: 600 var(--sq-step--1)/1 var(--sq-font-body); letter-spacing: .1em; text-transform: uppercase; }

/* Buttons: old class names, brand look. `.sq` keeps them above `.sq a { color: inherit }`. */
.sq .btn {
  border-radius: 0; min-height: 44px;
  font: 700 var(--sq-step--1)/1.1 var(--sq-font-body); letter-spacing: .08em; text-transform: uppercase;
}
.sq .btn-primary, .sq .btn-brass { background: var(--sq-violet); color: var(--sq-lilac); border: var(--sq-hair) solid var(--sq-violet); }
.sq .btn-primary:hover, .sq .btn-brass:hover { background: var(--sq-violet-deep); color: var(--sq-lilac); }
.sq .btn-outline { background: transparent; color: var(--sq-violet); border: var(--sq-hair) solid var(--sq-violet); }
.sq .btn-outline:hover { background: var(--sq-violet); color: var(--sq-lilac); }
.sq .btn-ghost { color: var(--sq-violet); }
.sq .btn-ghost:hover { color: var(--sq-violet-deep); text-decoration: underline; }

/* Cards, flashes, forms */
.sq .card { border: var(--sq-hair) solid var(--sq-violet); background: var(--sq-lilac-soft); }
.sq .flash { background: var(--sq-violet); color: var(--sq-lilac); border: 0; font-weight: 600; }
.sq input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .sq select, .sq textarea { border-radius: 0; border-color: var(--sq-violet); color: var(--sq-violet); }
.sq .place-stage { background: var(--sq-cream-soft); }

/* Footer */
.sq .site-footer { background: var(--sq-violet); color: var(--sq-lilac); border-top: 0; }
.sq .site-footer a { color: var(--sq-lilac); }
