/* Layout helpers + cookie banner for custom EG pages (header/footer live in site-chrome.css) */
:root {
  --eg-bg: #0b1220;
  --eg-text: #e5e7eb;
  --eg-muted: #9ca3af;
  --eg-accent: #38bdf8;
  --eg-border: rgba(148, 163, 184, 0.22);
}

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

body.eg-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--eg-text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.12), transparent),
    var(--eg-bg);
}

.eg-main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 20px 72px;
}

#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  pointer-events: none;
}

#cookie-banner.show {
  display: block;
}

#cookie-banner .cookie-inner {
  pointer-events: all;
  margin: 14px auto;
  width: min(100% - 24px, 860px);
  background: #fff;
  color: #1e1e1e;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  align-items: center;
}

#cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5f6368;
}

#cookie-banner .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#cookie-banner button {
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#cookie-banner .yes {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

#cookie-banner .no {
  background: #fff;
  color: #111827;
}

@media (max-width: 640px) {
  #cookie-banner .cookie-inner {
    grid-template-columns: 1fr;
  }
}
