/* Foundational layout for generated QuickMerge editorial pages. */
:root {
  --primary-accent: #4f46e5;
  --primary-accent-hover: #4338ca;
  --secondary-accent: #0d9488;
  --text-light: #0f172a;
  --text-medium: #334155;
  --text-dark: #64748b;
  --border-color: rgba(15, 23, 42, .1);
  --radius-md: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body.qm-blog-index-page,
body.qm-blog-post {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-light);
  background: #f5f7fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body.qm-blog-index-page main,
body.qm-blog-post main { display: block; min-height: 60vh; }
body.qm-blog-index-page a,
body.qm-blog-post a { color: inherit; text-decoration: none; }
body.qm-blog-index-page img,
body.qm-blog-post img { max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  z-index: 5000;
  top: -90px;
  left: 14px;
  padding: .75rem 1rem;
  color: #fff !important;
  background: #0b1020;
  border: 2px solid #c9ff63;
  border-radius: 0 0 10px 10px;
  font-weight: 800;
  text-decoration: none !important;
  transition: top .16s ease;
}
.skip-link:focus { top: 0; outline: 0; }

.nav-logo a { display: inline-flex; align-items: center; gap: 9px; }
.nav-logo .qm-official-mark { width: 45px; height: 30px; object-fit: contain; }
.nav-logo .qm-brand-word { color: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font: 800 .9rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.btn-primary { color: #0b1020; background: #c9ff63; }

/* The navigation panel is inside the header so it is closed until explicitly opened. */
header .mobile-menu { display: none !important; }
header .mobile-menu.active { display: grid !important; }

@media (max-width: 700px) {
  .nav-logo .qm-official-mark { width: 40px; height: 27px; }
  .qm-blog-hero { padding-top: 4.5rem !important; padding-bottom: 4rem !important; }
  .qm-article-hero { padding-top: 4.5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip-link { transition: none; }
}
