/**
 * Maple Credit Guide — premium global layer (homologation-safe, additive).
 * Deep blue + subtle maple accent; respects prefers-reduced-motion.
 */
:root {
  --mcg-navy: #0a1628;
  --mcg-navy-2: #132a4a;
  --mcg-ice: #f4f7fb;
  --mcg-slate: #5c6b7d;
  --mcg-maple: #c8102e;
  --mcg-maple-soft: rgba(200, 16, 46, 0.12);
  --mcg-glow: 0 18px 48px rgba(10, 22, 40, 0.18);
  --mcg-radius: 14px;
  --mcg-font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--mcg-font);
  color: var(--mcg-navy);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(19, 42, 74, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, var(--mcg-maple-soft), transparent 50%), var(--mcg-ice);
}

.mcg-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
}

.mcg-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.mcg-card {
  background: #fff;
  border-radius: var(--mcg-radius);
  box-shadow: var(--mcg-glow);
  border: 1px solid rgba(19, 42, 74, 0.08);
  padding: 1.1rem 1.25rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mcg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(10, 22, 40, 0.22);
  border-color: rgba(200, 16, 46, 0.22);
}

.mcg-card-featured {
  position: relative;
  overflow: hidden;
}

.mcg-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 42, 74, 0.06), rgba(200, 16, 46, 0.08));
  pointer-events: none;
}

.mcg-hero {
  border-radius: calc(var(--mcg-radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: linear-gradient(120deg, var(--mcg-navy), var(--mcg-navy-2));
  color: #eef3ff;
  box-shadow: var(--mcg-glow);
}

.mcg-hero h1,
.mcg-hero h2 {
  color: #fff;
  letter-spacing: -0.02em;
}

.mcg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #1c3a66, var(--mcg-navy));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(10, 22, 40, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mcg-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(10, 22, 40, 0.34);
}

.mcg-article .entry-content,
.mcg-article article {
  line-height: 1.65;
}

.mcg-category-card {
  border-left: 4px solid var(--mcg-maple);
}

.mcg-ad-slot,
.mcg-ad-placeholder {
  min-height: 90px;
  border-radius: 12px;
  border: 1px dashed rgba(19, 42, 74, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 251, 0.95));
}

.mcg-gpt-ad-region {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

@media (max-width: 767px) {
  .mcg-desktop-only {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .mcg-mobile-only {
    display: none !important;
  }
}

.mcg-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Official Maple Credit Guide lockup (PNG ~1.83:1) — header / mobile / sticky */
.custom-logo-link,
.logo a.custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: min(320px, 78vw);
}

img.custom-logo,
.custom-logo-link img {
  width: auto;
  height: auto;
  max-height: clamp(40px, 9vw, 56px);
  max-width: 100%;
  object-fit: contain;
  display: block;
}
