/* Design-system bones shared by storefront and platform skins. Colors live in the skin files. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
img { max-width: 100%; }
a { color: inherit; }
:root {
  --radius-s: 8px; --radius-m: 14px; --radius-l: 22px;
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px;
  --container: 1040px;
}
.container { max-width: var(--container); margin: 0 auto; padding: var(--space-5) var(--space-4); }
.container.narrow { max-width: 720px; }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--space-3); }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(22px, 3vw, 30px); margin-top: var(--space-5); }
h3 { font-size: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-m); padding: var(--space-4); }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; border: none; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pop, var(--accent, #fff)); outline-offset: 2px;
}
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; margin: var(--space-3) 0; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }

/* Header / footer skeleton */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-3); padding-bottom: var(--space-3); gap: var(--space-3); position: relative; }
.brand { font-weight: 700; font-size: 20px; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: var(--space-4); }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover:not(.button) { text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-s); font-size: 20px; padding: 4px 10px; cursor: pointer; }
.site-footer { border-top: 1px solid var(--border); margin-top: var(--space-6); color: var(--muted); font-size: 14px; }
.footer-cols { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer-cols > div { max-width: 380px; }
.site-footer nav { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.powered-by { margin-top: var(--space-4); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-header nav { display: none; }
  .site-header.nav-open nav { display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; background: var(--bg-raise);
    border-bottom: 1px solid var(--border); padding: var(--space-4); z-index: 20; }
}
