/* Rannbhoomi site chrome (top tools bar, footer, cookie notice) and the static content pages.
   Loaded by the app (index.html) and every generated page. */
:root {
  --rb-bg: #121318;
  --rb-panel: #1a1c23;
  --rb-border: #2c2f3a;
  --rb-text: #d9dce4;
  --rb-muted: #8a8f9c;
  --rb-accent: #6aa8ff;
  --rb-accent-2: #ff8a3d;
}

/* ---- Top bar: site brand + tools */
.site-bar {
  display: flex; align-items: center; gap: 14px; height: 32px; padding: 0 12px; flex: none;
  background: #0d0e12; border-bottom: 1px solid var(--rb-border); font: 13px/1 system-ui, sans-serif;
}
.site-bar a { color: var(--rb-muted); text-decoration: none; }
.site-bar a:hover { color: var(--rb-text); }
.site-brand { font-weight: 700; letter-spacing: 0.4px; color: var(--rb-text) !important; }
.site-tools { display: flex; gap: 4px; }
.site-tool { padding: 5px 10px; border-radius: 6px; }
.site-tool.active { background: rgba(106, 168, 255, 0.14); color: var(--rb-accent) !important; font-weight: 600; }
.site-bar-links { margin-left: auto; display: flex; gap: 14px; }

/* ---- Footer links (content pages; the app reuses .site-links) */
.site-footer { border-top: 1px solid var(--rb-border); padding: 20px; text-align: center; color: var(--rb-muted); font-size: 13px; }
.site-footer nav, .site-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.site-footer a, .site-links a, .link-button { color: var(--rb-muted); text-decoration: none; }
.site-footer a:hover, .site-links a:hover, .link-button:hover { color: var(--rb-text); text-decoration: underline; }
.link-button { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }

/* ---- Content pages */
body.site-page { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--rb-bg); color: var(--rb-text); font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.content { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; box-sizing: border-box; }
.content h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
.content h2 { font-size: 22px; margin: 36px 0 8px; scroll-margin-top: 16px; }
.content a { color: var(--rb-accent); }
.content .lead { font-size: 18px; color: #c4c8d2; }
.content .meta { color: var(--rb-muted); font-size: 14px; margin: 0 0 8px; }
.content ul { padding-left: 22px; }
.content li { margin: 6px 0; }
.content code, .content kbd { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: #22252e; border: 1px solid var(--rb-border); border-radius: 4px; padding: 1px 5px; }
.content table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.content th, .content td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--rb-border); }
.content details { border: 1px solid var(--rb-border); border-radius: 8px; padding: 10px 14px; margin: 8px 0; background: var(--rb-panel); }
.content summary { cursor: pointer; font-weight: 600; }
.content details p { margin: 8px 0 0; }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; padding: 14px 16px; border: 1px solid var(--rb-border); border-radius: 8px; background: var(--rb-panel); margin: 20px 0; font-size: 15px; }
.cta { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--rb-accent); color: #0b0c10 !important; font-weight: 700; text-decoration: none; }
.cta:hover { filter: brightness(1.08); }
.not-found { text-align: center; padding-top: 60px; }

/* ---- Cookie notice (shown outside regions where Google's consent message applies) */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px;
  background: #22252e; border: 1px solid var(--rb-border); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  color: var(--rb-text); font: 14px/1.45 system-ui, sans-serif;
}
.cookie-notice a { color: var(--rb-accent); }
.cookie-notice button { flex: none; padding: 8px 16px; border-radius: 6px; border: none; background: var(--rb-accent); color: #0b0c10; font-weight: 700; cursor: pointer; }

@media (max-width: 600px) {
  .site-bar-links { display: none; }
  .content h1 { font-size: 28px; }
}
