/* Shared GoInfo shell — matches homepage theme */
:root,
[data-theme="light"] {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --text: #0b1220;
  --muted: #637083;
  --line: #dfe6ef;
  --brand: #0b63f6;
  --brand-2: #6941c6;
  --brand-soft: #eaf2ff;
  --green: #0f9d72;
  --amber: #d97706;
  --sky: #0284c7;
  --shadow: 0 22px 60px rgba(20, 35, 60, 0.10);
  --shadow-sm: 0 10px 28px rgba(20, 35, 60, 0.07);
  --radius: 24px;
  --radius-sm: 16px;
  --wrap: min(1180px, calc(100% - 40px));
  --font: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
  /* aliases used by older tool pages */
  --ink: var(--text);
  --mute: var(--muted);
  --faint: var(--muted);
  --card: var(--surface);
  --accent: var(--brand);
  --accent-2: var(--brand-2);
  --good: var(--green);
  --warn: var(--amber);
  --bad: #dc2626;
  --summary-grad: linear-gradient(160deg, #ffffff, #f0f5ff);
  --rank-bg: var(--surface-2);
  --drawer-bg: var(--surface);
  --filter-on-ink: #ffffff;
  --bar-track: var(--surface-2);
}

[data-theme="dark"] {
  --bg: #08111f;
  --surface: #0e1a2a;
  --surface-2: #132238;
  --text: #f4f7fb;
  --muted: #99a8ba;
  --line: #23354c;
  --brand: #6ea8ff;
  --brand-2: #a78bfa;
  --brand-soft: #13294f;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.20);
  --summary-grad: linear-gradient(160deg, #0e1a2a, #13294f);
  --filter-on-ink: #08111f;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.gi-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(11, 99, 246, 0.10), transparent 28rem),
    radial-gradient(circle at 95% 12%, rgba(105, 65, 198, 0.10), transparent 26rem),
    var(--bg);
  line-height: 1.55;
  transition: background 0.25s, color 0.25s;
}

a { color: inherit; }

.gi-wrap { width: var(--wrap); margin-inline: auto; }

.gi-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.gi-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.gi-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.gi-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(11, 99, 246, 0.22);
}

.gi-brand-name span { color: var(--brand); }

.gi-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.gi-nav-links a {
  text-decoration: none;
  color: inherit;
}

.gi-nav-links a:hover { color: var(--text); }

.gi-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.gi-icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.gi-icon-btn:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }

.gi-page {
  width: var(--wrap);
  margin: 28px auto 48px;
}

.gi-page-hero {
  margin: 0 0 22px;
}

.gi-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  margin: 0 0 14px;
}

.gi-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 14%, transparent);
}

.gi-page-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 400;
  max-width: 18ch;
}

.gi-page-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.gi-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.gi-footer {
  width: var(--wrap);
  margin: 0 auto;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .gi-nav-links { display: none; }
}

@media (max-width: 640px) {
  :root { --wrap: min(100% - 26px, 1180px); }
  .gi-page { margin-top: 18px; }
}
