/* M.A.R.C standalone Shuffle homepage fixes */
html { scroll-behavior: smooth; }
body.marc-shuffle-standalone {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: #ffffff;
  color: #27272a;
}
body.marc-shuffle-standalone #Wrapper,
body.marc-shuffle-standalone #Header_wrapper,
body.marc-shuffle-standalone #Content,
body.marc-shuffle-standalone #Footer {
  display: none !important;
}
.marc-shuffle-home, .marc-shuffle-home * { box-sizing: border-box; }
.marc-shuffle-home img { max-width: 100%; height: auto; }
.marc-shuffle-home a { text-decoration: none; }
.marc-shuffle-home nav { position: relative; z-index: 50; }
.admin-bar .marc-shuffle-home nav { margin-top: 32px; }

/* Mobile polish: keep the Shuffle/comic look but stop the header blowing out. */
@media (max-width: 1023px) {
  .marc-shuffle-home nav .flex.items-center.justify-between {
    align-items: flex-start;
    gap: 1rem;
  }
  .marc-shuffle-home nav img { max-height: 44px; width: auto; }
  .marc-shuffle-home nav .flex.flex-col.items-end {
    min-width: 190px;
  }
  .marc-shuffle-home nav .flex.flex-col.items-end a {
    font-size: 1rem;
    line-height: 1.2;
    padding: .55rem .75rem;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .admin-bar .marc-shuffle-home nav { margin-top: 46px; }
  .marc-shuffle-home nav { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
  .marc-shuffle-home nav .max-w-7xl { padding-left: 1rem !important; padding-right: 1rem !important; }
  .marc-shuffle-home nav .flex.items-center.justify-between {
    flex-direction: column;
    align-items: stretch;
  }
  .marc-shuffle-home nav .flex.items-center.gap-8 { justify-content: center; }
  .marc-shuffle-home nav .flex.flex-col.items-end {
    width: 100%;
    min-width: 0;
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  .marc-shuffle-home h1 { font-size: clamp(2.8rem, 14vw, 4.7rem) !important; }
  .marc-shuffle-home h2 { font-size: clamp(2.25rem, 11vw, 4rem) !important; }
  .marc-shuffle-home section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  .marc-shuffle-home .text-9xl, .marc-shuffle-home .text-8xl { font-size: 3.8rem !important; }
  .marc-shuffle-home .absolute.-bottom-6.-right-6 {
    right: 0.5rem !important;
    bottom: -1.25rem !important;
    font-size: 1rem !important;
    padding: .6rem .9rem !important;
  }
  .marc-shuffle-home .grid.md\:grid-cols-2, .marc-shuffle-home .grid.lg\:grid-cols-4 {
    gap: 1rem !important;
  }
}

@media (max-width: 420px) {
  .marc-shuffle-home nav img { max-height: 38px; }
  .marc-shuffle-home nav .flex.flex-col.items-end a { font-size: .94rem; }
  .marc-shuffle-home .px-6 { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* v6: hard isolation/fixes after WordPress/Betheme styles */
body.marc-shuffle-standalone .marc-shuffle-home {
  font-family: 'Space Grotesk', Arial, sans-serif !important;
  color: #18181b !important;
  background: #fff !important;
}
body.marc-shuffle-standalone .marc-shuffle-home .font-heading,
body.marc-shuffle-standalone .marc-shuffle-home h1,
body.marc-shuffle-standalone .marc-shuffle-home h2,
body.marc-shuffle-standalone .marc-shuffle-home h3,
body.marc-shuffle-standalone .marc-shuffle-home h4 {
  font-family: 'Bangers', Impact, fantasy !important;
  letter-spacing: .02em !important;
}
body.marc-shuffle-standalone .marc-shuffle-home .text-white { color: #fff !important; }
body.marc-shuffle-standalone .marc-shuffle-home .text-zinc-900 { color: #18181b !important; }
body.marc-shuffle-standalone .marc-shuffle-home .text-zinc-800 { color: #27272a !important; }
body.marc-shuffle-standalone .marc-shuffle-home .text-zinc-500 { color: #71717a !important; }
body.marc-shuffle-standalone .marc-shuffle-home .text-zinc-400 { color: #a1a1aa !important; }
body.marc-shuffle-standalone .marc-shuffle-home .text-red-500 { color: #ef4444 !important; }
body.marc-shuffle-standalone .marc-shuffle-home .text-red-600 { color: #dc2626 !important; }
body.marc-shuffle-standalone .marc-shuffle-home .text-yellow-400 { color: #facc15 !important; }
body.marc-shuffle-standalone .marc-shuffle-home .bg-red-600 { background-color: #dc2626 !important; }
body.marc-shuffle-standalone .marc-shuffle-home .bg-zinc-900 { background-color: #18181b !important; }
body.marc-shuffle-standalone .marc-shuffle-home .bg-zinc-800 { background-color: #27272a !important; }
body.marc-shuffle-standalone .marc-shuffle-home .bg-white { background-color: #fff !important; }
body.marc-shuffle-standalone .marc-shuffle-home img[src*="279a3-1780122334.jpeg"],
body.marc-shuffle-standalone .marc-shuffle-home img[src*="mobile-appliance-repair-centre-logo"] {
  display: block !important;
}
body.marc-shuffle-standalone .marc-shuffle-home a.bg-red-600,
body.marc-shuffle-standalone .marc-shuffle-home a.bg-zinc-800,
body.marc-shuffle-standalone .marc-shuffle-home a.bg-zinc-900 {
  color: #fff !important;
}
body.marc-shuffle-standalone .marc-shuffle-home .group.bg-zinc-800 h3,
body.marc-shuffle-standalone .marc-shuffle-home .bg-zinc-900 h2,
body.marc-shuffle-standalone .marc-shuffle-home .bg-zinc-900 h4 {
  color: #fff !important;
}
body.marc-shuffle-standalone .marc-shuffle-home .group.bg-zinc-800 p { color: #a1a1aa !important; }
body.marc-shuffle-standalone .marc-shuffle-home .group.bg-zinc-800 a { color: #fff !important; }

/* Header: keep exact comic look but stop desktop overflow and phone button crunching */
@media (min-width: 1024px) {
  body.marc-shuffle-standalone .marc-shuffle-home nav .hidden.lg\:flex {
    gap: 1.15rem !important;
    flex-wrap: wrap !important;
  }
  body.marc-shuffle-standalone .marc-shuffle-home nav .hidden.lg\:flex a {
    font-size: .94rem !important;
  }
  body.marc-shuffle-standalone .marc-shuffle-home nav .flex.flex-col.items-end a {
    min-width: 210px;
    justify-content: center;
  }
}

/* v8: sitewide cartoon shell for all WordPress content pages */
body.marc-shuffle-site,
body.marc-shuffle-site .marc-shuffle-home {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: #fff !important;
  color: #18181b !important;
  font-family: 'Space Grotesk', Arial, sans-serif !important;
}

body.marc-shuffle-site .font-heading,
body.marc-shuffle-site h1,
body.marc-shuffle-site h2,
body.marc-shuffle-site h3,
body.marc-shuffle-site h4 {
  font-family: 'Bangers', Impact, fantasy !important;
  letter-spacing: .02em !important;
}

body.marc-shuffle-site .marc-shuffle-home,
body.marc-shuffle-site .marc-shuffle-home * {
  box-sizing: border-box;
}

body.marc-shuffle-site a {
  text-decoration: none;
}

.marc-skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 9999;
  background: #facc15;
  color: #18181b;
  border: 3px solid #18181b;
  border-radius: .75rem;
  padding: .75rem 1rem;
  font-weight: 800;
}

.marc-skip-link:focus {
  left: 1rem;
}

.marc-shuffle-page-band {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(circle at 12% 14%, rgba(250, 204, 21, .22), transparent 24rem),
    radial-gradient(circle at 90% 4%, rgba(220, 38, 38, .16), transparent 20rem),
    linear-gradient(135deg, #f4f4f5 0%, #ffffff 44%, #fafafa 100%);
}

.marc-shuffle-page-band:before {
  content: "FIX!";
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  top: 2rem;
  color: rgba(24, 24, 27, .055);
  font-family: 'Bangers', Impact, fantasy;
  font-size: clamp(4rem, 12vw, 10rem);
  transform: rotate(10deg);
  pointer-events: none;
}

.marc-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 5px 5px 0 #facc15;
  transform: rotate(-1deg);
}

.marc-shuffle-content-card,
.marc-shuffle-list-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 4px solid #18181b;
  border-radius: 1rem;
  box-shadow: 12px 12px 0 #18181b;
}

.marc-shuffle-content-card {
  padding: clamp(1.25rem, 4vw, 3rem);
}

.marc-shuffle-list-card {
  padding: 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

.marc-shuffle-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 16px 0 #dc2626;
}

.marc-shuffle-content {
  color: #3f3f46 !important;
  font-size: 1.08rem;
  line-height: 1.75;
}

.marc-shuffle-content p,
.marc-shuffle-content li,
.marc-shuffle-excerpt,
.marc-shuffle-excerpt p {
  color: #3f3f46 !important;
}

.marc-shuffle-content h1,
.marc-shuffle-content h2,
.marc-shuffle-content h3,
.marc-shuffle-content h4,
.marc-shuffle-content h5,
.marc-shuffle-content h6 {
  margin: 1.35em 0 .55em;
  color: #18181b !important;
  line-height: 1.05;
}

.marc-shuffle-content h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.marc-shuffle-content h3 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

.marc-shuffle-content a,
.marc-shuffle-list-card a:not(.marc-comic-button) {
  color: #dc2626 !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.marc-shuffle-content ul,
.marc-shuffle-content ol {
  padding-left: 1.35rem;
  margin: 1rem 0;
}

.marc-shuffle-content img,
.marc-shuffle-home .aspect-video img,
.marc-shuffle-home img[src*="279a3-1780122334"] {
  filter: saturate(1.35) contrast(1.16) brightness(1.03);
}

.marc-shuffle-content img {
  display: block;
  height: auto;
  max-width: 100%;
  margin: 1.5rem 0;
  border: 4px solid #18181b;
  border-radius: 1rem;
  box-shadow: 8px 8px 0 #facc15;
}

.marc-page-cartoon-figure {
  margin: 0 0 2rem;
  overflow: hidden;
  border: 4px solid #18181b;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 10px 10px 0 #facc15;
}

.marc-page-cartoon-figure img,
.marc-context-cartoon-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.marc-brand-text-list {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 4px solid #18181b;
  border-radius: 1rem;
  background: #facc15;
  box-shadow: 8px 8px 0 #18181b;
}

.marc-brand-text-list h2 {
  margin: 0 0 1rem;
  color: #18181b !important;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.marc-brand-text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem;
}

.marc-brand-text-grid span {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 3px solid #18181b;
  border-radius: .75rem;
  background: #fff;
  color: #18181b;
  font-weight: 900;
  text-align: center;
  box-shadow: 4px 4px 0 #dc2626;
}

.marc-comic-button,
.marc-search-form input[type="submit"],
.marc-search-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
  border: 3px solid #18181b;
  border-radius: .8rem;
  background: #dc2626;
  color: #fff !important;
  box-shadow: 5px 5px 0 #18181b;
  font-family: 'Bangers', Impact, fantasy;
  font-size: 1.25rem;
  letter-spacing: .02em;
  padding: .75rem 1.1rem;
  text-decoration: none !important;
}

.marc-comic-button-dark {
  background: #18181b;
}

.marc-search-form input[type="search"],
.marc-shuffle-content input[type="text"],
.marc-shuffle-content input[type="email"],
.marc-shuffle-content input[type="tel"],
.marc-shuffle-content textarea,
.marc-shuffle-content select {
  width: 100%;
  max-width: 100%;
  border: 3px solid #18181b;
  border-radius: .75rem;
  background: #fff;
  color: #18181b;
  padding: .85rem 1rem;
  font: inherit;
  box-shadow: 4px 4px 0 #facc15;
}

.marc-shuffle-content .wpcf7-submit {
  width: auto;
  cursor: pointer;
  border: 3px solid #18181b;
  border-radius: .8rem;
  background: #dc2626;
  color: #fff;
  box-shadow: 5px 5px 0 #18181b;
  font-family: 'Bangers', Impact, fantasy;
  font-size: 1.25rem;
  padding: .75rem 1.15rem;
}

.marc-pagination {
  margin-top: 2.5rem;
}

.marc-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.marc-pagination a,
.marc-pagination span {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 3px solid #18181b;
  border-radius: .65rem;
  background: #fff;
  color: #18181b;
  font-weight: 900;
}

.marc-pagination .current {
  background: #facc15;
}

body.marc-shuffle-site .marc-site-menu {
  gap: 1.15rem !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.marc-shuffle-site .marc-site-menu li {
  margin: 0 !important;
  padding: 0 !important;
}

body.marc-shuffle-site .marc-site-menu a {
  color: #27272a !important;
  font-size: .94rem !important;
  white-space: nowrap;
}

body.marc-shuffle-site .marc-phone-stack a {
  min-width: 210px;
  justify-content: center;
  color: #fff !important;
}

@media (max-width: 1023px) {
  body.marc-shuffle-site nav .flex.items-center.justify-between {
    align-items: flex-start;
    gap: 1rem;
  }
  body.marc-shuffle-site nav img { max-height: 44px; width: auto; }
  body.marc-shuffle-site .marc-phone-stack {
    min-width: 190px;
  }
  body.marc-shuffle-site .marc-phone-stack a {
    font-size: 1rem;
    line-height: 1.2;
    padding: .55rem .75rem;
    width: 100%;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  body.marc-shuffle-site nav .flex.items-center.justify-between {
    flex-direction: column;
    align-items: stretch;
  }
  body.marc-shuffle-site nav .flex.items-center.gap-8 {
    justify-content: center;
  }
  body.marc-shuffle-site .marc-phone-stack {
    width: 100%;
    min-width: 0;
    align-items: stretch;
  }
  .marc-shuffle-page-band {
    padding: 3rem 0 4rem;
  }
  .marc-shuffle-content-card,
  .marc-shuffle-list-card {
    box-shadow: 7px 7px 0 #18181b;
  }
}
