/**
 * @file
 * Standalone page chrome for the static build — background, header, footer and
 * container. Also defines the darkblue design tokens the education components
 * (education.css + the demo CSS) reference, so the site looks like the app it
 * came from, but stands entirely on its own.
 */
:root {
  --color-accent-primary: #003bff;
  --color-accent-secondary: #1a4eff;
  --color-accent-hover: #194eff;
  --color-bg-base: #05070f;
  --color-bg-surface: #0b1020;
  --color-border-subtle: rgba(255, 255, 255, 0.1);
  --color-border-accent: rgba(255, 255, 255, 0.15);
  --color-border-card: #0e122e;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.45);
  --color-success: #10b981;
  --color-error: #ef4444;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition-fast: 150ms ease;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(0, 59, 255, 0.12), transparent 60%),
    var(--color-bg-base);
  color: var(--color-text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(5, 7, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-subtle);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--color-accent-primary);
  color: #fff;
  font-size: 1rem;
}
.site-header__nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.site-header__nav a:hover { color: #fff; }

/* Main container */
.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding: 1.75rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.site-footer p { max-width: 640px; margin: 0 auto; }

/* Give the hub a little top breathing room within the container. */
.wl-edu-hub__hero { margin-top: 1rem; }

/* Inline SVG section icons (replacing emoji for consistent rendering). */
.wl-edu-card__icon,
.wl-edu-section__icon { color: var(--color-accent-secondary); }
.wl-edu-card__icon svg,
.wl-edu-section__icon svg { width: 1em; height: 1em; display: block; }
.wl-edu-sidebar__heading svg { width: 1.05em; height: 1.05em; vertical-align: -0.16em; }

/* Footer tip buttons (rendered only when LN_ADDRESS / BTC_ADDRESS are set). */
.site-tip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.site-tip__label { color: var(--color-text-secondary); font-size: 0.9rem; }
.site-tip__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-accent);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.site-tip__btn--ln:hover { border-color: #f5c518; color: #f5c518; }
.site-tip__btn--btc:hover { border-color: var(--color-accent-primary); background: rgba(0, 59, 255, 0.14); }
/* BIP-353 handle (₿user@domain) — a copyable/clickable payment handle. */
.site-tip__btn--handle { font-variant-ligatures: none; user-select: all; }
a.site-tip__btn--handle:hover { border-color: #f7931a; color: #f7931a; }
span.site-tip__btn--handle { cursor: text; }
