/* Bored Mining site shell: tokens, header with menu, footer.
   Same look as the Sales Dashboard customer pages: white, thin borders, Apple blue. */
:root {
  color-scheme: only light;
  --bg: #ffffff; --card: #ffffff; --soft: #f5f5f7; --line: #e5e5ea;
  --t1: #1d1d1f; --t2: #6e6e73; --t3: #86868b;
  --blue: #0071e3; --blue-soft: #e8f2fd;
  --red: #d70015; --red-bg: #ff3b30;
  --site-width: 1040px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--t1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-bar {
  max-width: var(--site-width); margin: 0 auto;
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px;
}
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--t1); text-decoration: none; }
.site-brand img { display: block; width: 44px; height: 40px; }
.site-brand span { font-size: 16px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-menu-panel a {
  color: var(--t1); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 12px; border-radius: 8px; line-height: 20px;
}
.site-nav a:hover, .site-menu-panel a:hover { background: var(--soft); color: var(--t1); }
.site-nav a[aria-current="page"], .site-menu-panel a[aria-current="page"] { color: var(--blue); }
.site-nav a.site-cta, .site-menu-panel a.site-cta {
  background: #0071e3; color: #ffffff; font-weight: 600; padding: 12px 16px; margin-left: 8px;
}
.site-nav a.site-cta:hover, .site-menu-panel a.site-cta:hover { background: #0077ed; color: #ffffff; }
.site-menu { display: none; position: relative; }
.site-menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--t1);
  display: flex; align-items: center; justify-content: center;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary svg { width: 20px; height: 20px; display: block; }
.site-menu-panel {
  position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto;
}
.site-menu-panel a { padding: 12px; font-size: 16px; }
.site-menu-panel a.site-cta { margin: 6px 0 0; text-align: center; }
@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-menu { display: block; }
}

/* Footer: one line, copyright left, legal links right */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; }
.site-footer-inner {
  max-width: var(--site-width); margin: 0 auto;
  padding: 8px max(16px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px;
  color: var(--t3); font-size: 13px; line-height: 1.6;
}
.site-footer p { margin: 0; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer-links a {
  color: var(--t2); text-decoration: none; font-size: 14px;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-footer-links a:hover { color: var(--blue); }

/* Short viewports (iPhone Duo outer display in landscape is 368px high, any phone in
   landscape): the header scrolls away instead of taking a sixth of the screen. */
@media (max-height: 480px) {
  html { scroll-padding-top: 12px; }
  .site-header { position: static; }
}
