/* ============================================================
   Standalone site shell — replaces the WordPress site chrome with
   a minimal, clean topbar + footer that wraps the AI Coach app.
   Keeps the same design tokens (gold/navy/cream) so ai-coach.css
   still looks at home.
   ============================================================ */

:root {
  /* Brand tokens — match chesslawyer.com dark theme */
  --cream:        #F5F0E6;
  --royal-navy:   #0F1E4A;
  --plum-purple:  #6E5494;
  --gold:         #D4AF37;
  --gold-soft:    #E6C766;

  /* Surface system (dark by default for the lab) */
  --bg:           #06080F;
  --surface:      #0F1633;
  --surface-2:    #131A3D;
  --surface-3:    #1A2148;
  --text:         #F5F0E6;
  --text-soft:    rgba(245, 240, 230, 0.65);
  --border:       rgba(212, 175, 55, 0.14);
  --border-strong:rgba(212, 175, 55, 0.28);
  --accent:       var(--gold-soft);
  --accent-soft:  rgba(230, 199, 102, 0.12);
  --header-h:     72px;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse at 80% -10%, rgba(212,175,55,0.06), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(110,144,201,0.05), transparent 50%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1480px; padding: 0 1rem; margin: 0 auto; }

/* ===== Top brand bar ===== */
.lab-topbrand {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(15, 22, 51, 0.96), rgba(15, 22, 51, 0.86));
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.lab-topbrand__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lab-topbrand__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}
.lab-topbrand__logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--cream);
  border: 1px solid var(--border);
}
.lab-topbrand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.lab-topbrand__name strong {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.005em;
}
.lab-topbrand__name small {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.lab-topbrand__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.lab-topbrand__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, rgba(212,175,55,0.16), rgba(212,175,55,0.06));
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--accent);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .lab-topbrand { height: 60px; }
  :root { --header-h: 60px; }
  .lab-topbrand__name small { display: none; }
  .lab-topbrand__name strong { font-size: 0.92rem; }
  .lab-topbrand__chip { padding: 0.3rem 0.7rem; font-size: 0.72rem; }
}

/* ===== Footer ===== */
.lab-foot {
  margin-top: 3rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.78rem;
}
.lab-foot small { letter-spacing: 0.02em; }

code {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.85em;
  color: var(--accent);
}
