/* Shared GoInfo shell — matches homepage theme */
:root,
[data-theme="light"] {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --surface-2: #ececec;
  --text: #141414;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --brand: #d11f28;
  --brand-2: #b31921;
  --brand-soft: #fde8e9;
  --green: #0f9d72;
  --amber: #d97706;
  --sky: #3c3c3c;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --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: #d11f28;
  --summary-grad: linear-gradient(160deg, #ffffff, #f7f7f7);
  --rank-bg: var(--surface-2);
  --drawer-bg: var(--surface);
  --filter-on-ink: #ffffff;
  --bar-track: var(--surface-2);
  --chrome: #3c3c3c;
  --chrome-cta: #d11f28;
  --chrome-cta-hover: #b31921;
  --chrome-muted: rgba(255, 255, 255, 0.42);
  --chrome-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] {
  --bg: #111111;
  --surface: #1c1c1c;
  --surface-2: #2a2a2a;
  --text: #f4f4f4;
  --muted: #a3a3a3;
  --line: #333333;
  --brand: #e42730;
  --brand-2: #d11f28;
  --brand-soft: #3a1518;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.40);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.28);
  --summary-grad: linear-gradient(160deg, #1c1c1c, #2a1518);
  --filter-on-ink: #111111;
}

*,
*::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: 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;
  padding: 0;
  background: var(--surface);
  border: none;
}

.gi-nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 0;
  pointer-events: none;
}

.gi-brand { display: none; }

.gi-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: auto;
  margin: 0;
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  color: #141414;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}

.gi-brand:hover,
.gi-pill:hover { background: transparent; }

.gi-brand-mark,
.gi-brand::before,
.gi-plus {
  display: flex;
  gap: 3px;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.gi-brand::before { content: none; display: none; }

.gi-brand-mark svg { display: none; }

.gi-brand-mark i,
.gi-plus {
  width: 14px;
  height: 14px;
  background: #141414;
  border-radius: 2px;
  display: block;
}

.gi-plus { border: 0; font-size: 0; color: transparent; }

.gi-brand-name { display: none; }

.gi-redbar { background: var(--brand); color: #fff; }

.gi-redbar-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 58px;
  color: #fff;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.gi-redbar-title span { font-weight: 400; }

.gi-subnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.gi-nav-links,
.gi-hint {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.gi-hint { display: none; }

.gi-nav-links a {
  text-decoration: none;
  color: var(--text);
  padding: 13px 16px 11px;
  border-bottom: 4px solid transparent;
}

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

.gi-nav-actions {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  pointer-events: auto;
}

.gi-icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.gi-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.gi-cta { display: none; }

.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(--brand);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 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: 100%;
  max-width: none;
  margin: 48px 0 0;
  padding: 0 0 36px;
  background: #141414;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.gi-footer .gi-redbar { margin-bottom: 28px; }

.gi-footer .gi-wrap,
.gi-footer > :not(.gi-redbar) {
  width: var(--wrap);
  margin-inline: auto;
}

.gi-footer .gi-redbar,
.gi-footer .gi-redbar .gi-wrap {
  width: 100%;
  max-width: none;
}

.gi-footer .gi-redbar .gi-wrap { width: var(--wrap); }

.gi-footer .gi-pill { display: none; }

.gi-footer a:not(.gi-redbar-title) {
  color: #fff;
  text-decoration: none;
}

.gi-footer a:not(.gi-redbar-title):hover { text-decoration: underline; }

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

@media (max-width: 640px) {
  :root { --wrap: min(100% - 26px, 1180px); }
  .gi-page { margin-top: 18px; }
  .gi-redbar-title { font-size: 24px; min-height: 50px; }
}
