/* Grav MUD (Alpha) — official Grav-inspired promo theme */
:root {
  --grav-blue: #0082c0;
  --grav-blue-dark: #006699;
  --grav-navy: #1e3a5f;
  --bg: #f7f9fc;
  --bg-card: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7a;
  --accent: var(--grav-blue);
  --accent-glow: #33a3d4;
  --gold: #e8a317;
  --teal: #2dd4bf;
  --border: #d8e0ea;
  --shadow: 0 8px 32px rgb(30 58 95 / 0.08);
  --radius: 0.65rem;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Archivo Black", system-ui, sans-serif;
  --max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg, #f7f9fc);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* Light marketing shell only — dark client presets use solid --bg on body */
body.mud-spec-body:not(.mud-site-dark):not(.mud-site-preset--agency-cli):not(.mud-site-preset--pizza-resistance):not(.mud-site-preset--prntify-pop):not(.mud-prntify-body):not(.mud-site-preset--getgrav):not(.gg-body) {
  background: linear-gradient(180deg, #eef4fa 0%, var(--bg) 12rem);
}

a {
  color: var(--accent);
}

/* —— Site shell —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: nowrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  background: rgb(255 255 255 / 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  min-width: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, var(--grav-blue), var(--grav-navy));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0.45rem;
  min-width: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 0.2rem 0.35rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-cta {
  flex-shrink: 0;
}

.header-cta .btn {
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: var(--bg-card);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--grav-navy);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0.35rem 0;
}

.footer-note {
  opacity: 0.85;
}

.mud-alpha-badge {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* —— MUD page wrapper —— */
.mud-page {
  --bg: #f7f9fc;
  --bg-card: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7a;
  --accent: #0082c0;
  --border: #d8e0ea;
  background: var(--bg);
  color: var(--text);
}

.mud-page[data-mud-layout="promo"] .hero {
  padding-top: 1.5rem;
}

/* —— Buttons —— */
.btn {
  display: inline-block;
  margin: 0.25rem 0.5rem 0.25rem 0;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--grav-blue-dark);
  border-color: var(--grav-blue-dark);
}

/* —— Hero —— */
.hero {
  margin: 0 0 2.5rem;
  padding: 2rem 0 1rem;
}

.hero-brand {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.hero-mark {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--grav-blue), var(--grav-navy));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 42rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* —— Visual hero (v0.6) —— */
.hero--fullscreen,
.hero--banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  min-height: var(--hero-height, 100dvh);
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.hero--banner {
  min-height: var(--hero-height, 40vh);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--hero-overlay-color, #0a0a12);
  opacity: var(--hero-overlay, 0.45);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max, 72rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
}

.hero--align-center .hero-inner {
  text-align: center;
}

.hero--align-center .hero-brand {
  justify-content: center;
}

.hero--align-center .hero-actions {
  justify-content: center;
}

.hero--align-center .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero--fullscreen h1,
.hero--banner h1 {
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.45);
}

.hero--fullscreen .eyebrow,
.hero--banner .eyebrow {
  color: var(--accent-glow, var(--accent));
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero--fullscreen[data-hero-parallax="subtle"] .hero-media {
    background-attachment: fixed;
  }
}

.mud-page[data-mud-layout="promo"] .hero--fullscreen {
  padding-top: 0;
}

.mud-page--pizza-resistance .hero--fullscreen,
.mud-page--agency-cli .hero--fullscreen {
  border-bottom: none;
}

/* —— Split hero (v0.6 Phase C) —— */
.hero--split {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2.5rem;
  padding: 0;
  overflow: hidden;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(88dvh, 52rem);
  background: var(--bg-card, var(--bg));
}

.hero--split-media-right .hero-split-media {
  order: 2;
}

.hero--split-media-right .hero-split-copy {
  order: 1;
}

.hero-split-media {
  position: relative;
  min-height: 16rem;
  background: #0a0a12;
  overflow: hidden;
}

.hero-split-media img,
.hero-split-media-bg {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.hero-split-media-bg {
  background-size: cover;
  background-position: center;
}

.hero-split-video,
.hero-split-video .mud-video-native,
.hero-split-video .mud-video-embed {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  display: block;
  object-fit: cover;
}

.hero-split-video {
  position: absolute;
  inset: 0;
}

.hero-split-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-split-media-fallback {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  background: linear-gradient(145deg, var(--accent, #0082c0), var(--grav-navy, #1a2332));
  opacity: 0.85;
}

.hero-split-copy.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
}

@media (max-width: 860px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-split-media {
    min-height: 42vw;
    max-height: 22rem;
  }

  .hero--split-media-right .hero-split-media,
  .hero--split-media-right .hero-split-copy {
    order: unset;
  }
}

/* —— Scroll-driven fullscreen hero (fade as hero exits viewport; no extra scroll gap) —— */
.hero--scroll-hero.hero--fullscreen,
.hero--scroll-hero.hero--banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: var(--hero-height, 100dvh);
  margin-bottom: 0;
  --mud-hero-progress: 0;
  --mud-hero-fade: 0;
}

.hero--scroll-hero .hero-scroll-pin {
  position: relative;
  width: 100%;
  height: var(--hero-height, 100dvh);
  min-height: var(--hero-height, 100dvh);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-top: var(--site-header-h, 4.5rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.hero--scroll-hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  transform: scale(calc(1 + var(--mud-hero-progress, 0) * 0.14));
  transform-origin: center center;
  will-change: transform;
  background-color: var(--bg, #0c0a09);
}

.hero--scroll-hero .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: min(0.88, calc(var(--hero-overlay, 0.45) + var(--mud-hero-progress, 0) * 0.28));
}

.hero--scroll-hero .hero-inner {
  position: relative;
  z-index: 2;
  opacity: calc(1 - var(--mud-hero-fade, 0));
  transform: translate3d(0, calc(var(--mud-hero-fade, 0) * -18%), 0);
  filter: blur(calc(var(--mud-hero-fade, 0) * 2px));
  will-change: opacity, transform, filter;
  width: 100%;
  max-width: var(--max, 72rem);
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
}

.hero--scroll-hero.hero--align-center .hero-brand {
  justify-content: center;
}

.hero--scroll-hero.hero--align-center .hero-actions {
  justify-content: center;
}

.hero--scroll-hero.hero--align-center .hero-inner {
  text-align: center;
}

.hero--scroll-hero.hero--align-center .lead {
  margin-inline: auto;
}

.hero--scroll-hero[data-scroll-hero="zoom"] .hero-media {
  transform: scale(calc(1.08 + var(--mud-hero-progress, 0) * 0.22));
}

.hero--scroll-hero[data-scroll-hero="zoom"] .hero-inner {
  transform: translate3d(0, calc(var(--mud-hero-fade, 0) * -8%), 0);
}

.hero--scroll-hero[data-scroll-hero="fade"] .hero-media {
  transform: scale(calc(1 + var(--mud-hero-progress, 0) * 0.06));
}

.hero--scroll-hero[data-scroll-hero="cinematic"] .hero-media {
  filter: blur(calc(var(--mud-hero-progress, 0) * 3px));
  transform: scale(calc(1 + var(--mud-hero-progress, 0) * 0.18));
}

.hero--scroll-hero[data-scroll-hero="cinematic"] .hero-inner {
  transform: translate3d(0, calc(var(--mud-hero-fade, 0) * -22%), 0)
    scale(calc(1 - var(--mud-hero-fade, 0) * 0.05));
  filter: blur(calc(var(--mud-hero-fade, 0) * 3px));
}

.hero--scroll-hero.is-scroll-complete .hero-inner {
  pointer-events: none;
}

/* Tighter handoff to the next fence (less “black void” after the pin) */
.hero--scroll-hero + .mud-video,
.hero--scroll-hero + .mud-carousel,
.hero--scroll-hero + .mud-gallery,
.hero--scroll-hero + section {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero--scroll-hero .hero-media,
  .hero--scroll-hero .hero-inner,
  .hero--scroll-hero .hero-scrim {
    transform: none !important;
    filter: none !important;
    opacity: unset;
  }
}

/* —— Screenshot / marketplace capture (?snapshot=1) —— */
html.mud-snapshot {
  scroll-behavior: auto;
}

html.mud-snapshot .site-header {
  position: relative;
  top: auto;
}

html.mud-snapshot .hero--scroll-hero .hero-inner,
html.mud-snapshot .hero--scroll-hero .hero-media,
html.mud-snapshot .hero--scroll-hero .hero-scrim {
  opacity: unset !important;
  transform: none !important;
  filter: none !important;
}

html.mud-snapshot .hero--scroll-hero.hero--fullscreen,
html.mud-snapshot .hero--scroll-hero .hero-scroll-pin {
  min-height: min(72vh, 36rem);
  height: min(72vh, 36rem);
}

html.mud-snapshot .mud-reveal[data-animate]:not(.mud-in) {
  opacity: 1 !important;
  transform: none !important;
}

/* —— Declarative motion (v0.6) —— */
@media (prefers-reduced-motion: no-preference) {
  .mud-reveal[data-animate]:not(.mud-in) {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  /* Mobile Safari: YouTube/Vimeo iframes break if parent starts at opacity:0 */
  .mud-reveal[data-animate]:not(.mud-in):has(.mud-video-embed),
  .mud-reveal[data-animate]:not(.mud-in):has(.mud-video-native) {
    opacity: 1;
  }

  .mud-reveal[data-animate="fade-in"]:not(.mud-in) {
    transform: none;
  }

  .mud-reveal[data-animate="reveal-left"]:not(.mud-in) {
    transform: translateX(-1.5rem);
  }

  .mud-reveal[data-animate].mud-in {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.65s ease,
      transform 0.65s ease;
  }

  .mud-reveal[data-animate="stagger"]:not(.mud-in) .cards .card,
  .mud-reveal[data-animate="stagger"]:not(.mud-in) .pricing-grid .pricing-card {
    opacity: 0;
    transform: translateY(1rem);
  }

  .mud-reveal[data-animate="stagger"].mud-in .cards .card,
  .mud-reveal[data-animate="stagger"].mud-in .pricing-grid .pricing-card {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.55s ease,
      transform 0.55s ease;
  }

  .mud-reveal[data-animate="stagger"].mud-in .cards .card:nth-child(1),
  .mud-reveal[data-animate="stagger"].mud-in .pricing-grid .pricing-card:nth-child(1) {
    transition-delay: 0.05s;
  }

  .mud-reveal[data-animate="stagger"].mud-in .cards .card:nth-child(2),
  .mud-reveal[data-animate="stagger"].mud-in .pricing-grid .pricing-card:nth-child(2) {
    transition-delay: 0.12s;
  }

  .mud-reveal[data-animate="stagger"].mud-in .cards .card:nth-child(3),
  .mud-reveal[data-animate="stagger"].mud-in .pricing-grid .pricing-card:nth-child(3) {
    transition-delay: 0.19s;
  }

  .mud-reveal[data-animate="glow-pulse"].mud-in {
    animation: mud-glow-pulse 2.4s ease-in-out 1;
  }

  .hero.mud-reveal[data-animate="typewriter"].mud-in h1 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent);
    animation:
      mud-typewriter 1.1s steps(18, end) forwards,
      mud-caret 0.7s step-end 3;
    max-width: 100%;
  }
}

@keyframes mud-glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgb(45 212 191 / 0);
  }
  50% {
    box-shadow: 0 0 28px rgb(45 212 191 / 0.35);
  }
}

@keyframes mud-typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes mud-caret {
  50% {
    border-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mud-reveal[data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* —— Quote —— */
.quote-block {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-block blockquote {
  margin: 0;
  font-size: 1.2rem;
  font-style: italic;
}

.quote-block cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}

/* —— Cards grid —— */
.grid-section {
  margin: 3rem 0;
}

.grid-section h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
}

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

.card {
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* —— Timeline —— */
.timeline {
  margin: 3rem 0;
}

.timeline h2 {
  font-family: var(--font-display);
  color: var(--text);
}

.timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline time {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* —— Compare —— */
.compare {
  margin: 3rem 0;
}

.compare h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.compare-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
}

.compare-head {
  background: var(--grav-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-row {
  border-top: 1px solid var(--border);
  color: var(--text);
}

.compare-row span {
  color: inherit;
}

.compare-row.highlight {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
}

/* —— Pricing —— */
.pricing {
  margin: 3rem 0;
}

.pricing h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.pricing-intro {
  color: var(--muted);
  max-width: 40rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pricing-card {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgb(0 130 192 / 0.15);
}

.pricing-badge {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gold);
  color: #1a2332;
  border-radius: 999px;
}

.pricing-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--text);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.pricing-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.pricing-features {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-features li {
  margin-bottom: 0.35rem;
}

.pricing-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* —— Code samples —— */
.code-block {
  margin: 2rem 0;
}

/* —— Video embeds (v0.5) —— */
.mud-video {
  margin: 2rem 0;
}

.mud-video h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
}

.mud-video-frame {
  position: relative;
  width: 100%;
  min-height: 11rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.mud-video-frame iframe,
.mud-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #000;
}

.mud-video-caption {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* —— YouTube facade (click-to-play; LAN/IP opens YouTube app) —— */
.mud-youtube-facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
}

.mud-youtube-facade.is-active {
  display: block;
}

.mud-youtube-play {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #0f172a;
  display: block;
}

.mud-youtube-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

.mud-youtube-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.25rem;
  height: 4.25rem;
  margin: -2.125rem 0 0 -2.125rem;
  border-radius: 50%;
  background: rgb(45 212 191 / 0.92);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.45);
}

.mud-youtube-play-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -0.65rem 0 0 -0.35rem;
  border-style: solid;
  border-width: 0.65rem 0 0.65rem 1.1rem;
  border-color: transparent transparent transparent #0c0a09;
}

.mud-youtube-open {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 3;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  background: rgb(12 10 9 / 0.82);
  color: var(--accent, #2dd4bf);
  border: 1px solid rgb(45 212 191 / 0.45);
}

.mud-youtube-facade.is-active .mud-youtube-open,
.mud-youtube-facade.is-active .mud-youtube-lan-note {
  display: none;
}

.mud-youtube-lan-note {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 3;
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #fafaf9;
  background: rgb(12 10 9 / 0.88);
  border-radius: 0.35rem;
  border: 1px solid rgb(45 212 191 / 0.35);
  text-align: center;
}

.mud-youtube-facade--lan .mud-youtube-open {
  bottom: 2.65rem;
}

.code-sample {
  margin: 0;
  background: #0f172a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-lang {
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  background: #1e293b;
}

.code-sample pre {
  margin: 0;
  padding: 1.15rem 1.25rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}

.code-sample code {
  color: #e2e8f0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.code-caption {
  padding: 0.65rem 1rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* —— Wiki / docs —— */
.wikipedia-erasure {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.wikipedia-erasure h2 {
  margin-top: 0;
  font-family: var(--font-display);
}

.wiki-debate h3 {
  font-size: 1rem;
  color: var(--text);
}

.archive-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* —— Manifesto —— */
.manifesto {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--grav-navy), #0f2744);
  color: #e8eef4;
  border-radius: var(--radius);
}

.manifesto h2 {
  color: #fff;
  font-family: var(--font-display);
}

.manifesto p {
  color: #c5d3e0;
}

.manifesto .sign-off {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--teal);
}

/* —— Receipts / links —— */
.receipts {
  margin: 2rem 0;
}

.receipt-list {
  list-style: none;
  padding: 0;
}

.receipt-list li {
  margin: 0.5rem 0;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* —— MUD Spec reference (Code Designer style) —— */
body.mud-spec-body .mud-page[data-mud-layout="spec-doc"] {
  max-width: none;
}

.mud-page[data-mud-layout="spec-doc"] .hero {
  padding-top: 0.5rem;
}

.mud-page h2#toc + ul {
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  columns: 2;
  column-gap: 2rem;
}

.mud-page h2#toc + ul a {
  font-weight: 600;
  text-decoration: none;
}

.mud-page h2#toc + ul a:hover {
  text-decoration: underline;
}

.mud-spec-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.mud-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.mud-spec-table th,
.mud-spec-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  text-align: left;
}

.mud-spec-table th {
  background: var(--grav-navy);
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mud-spec-table code {
  font-size: 0.85em;
  color: var(--grav-blue-dark);
}

.mud-spec-entry {
  margin: 2.5rem 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.mud-spec-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 0.35rem;
}

.mud-spec-id {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grav-blue);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.mud-spec-entry-title {
  margin: 0;
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--grav-navy);
}

.mud-spec-desc {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.mud-spec-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.mud-spec-pane-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mud-spec-pane--source .mud-spec-pane-label {
  color: var(--grav-blue);
}

.mud-spec-pane--output .mud-spec-pane-label {
  color: var(--gold);
}

.mud-spec-code {
  margin: 0;
  padding: 1rem;
  background: #0f172a;
  border: 1px solid rgb(0 130 192 / 0.35);
  border-radius: var(--radius);
  font-size: 0.72rem;
  line-height: 1.5;
  overflow-x: auto;
  color: #e2e8f0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.mud-spec-preview {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px dashed rgb(0 130 192 / 0.45);
  border-radius: var(--radius);
  min-height: 4rem;
}

.mud-spec-preview .hero {
  margin: 0;
  padding: 0.5rem 0;
}

.mud-spec-preview .pricing-grid {
  grid-template-columns: 1fr;
}

.mud-spec-preview .grid-section h2,
.mud-spec-preview .timeline h2 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.mud-spec-preview .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.65rem;
}

.mud-spec-preview .card {
  padding: 0.75rem;
  margin: 0;
}

.mud-spec-preview .card h3 {
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
}

.mud-spec-preview .card p {
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.45;
}

.mud-spec-preview .timeline ol {
  margin: 0;
  padding-left: 1.25rem;
}

.mud-spec-preview .timeline li {
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.mud-spec-caption {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

@media (min-width: 901px) {
  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem 1rem;
  }

  .logo-link {
    grid-column: 1;
  }

  .site-nav {
    grid-column: 2;
    flex: none;
    justify-content: center;
  }

  .header-cta {
    grid-column: 3;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.6rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav,
  .header-cta {
    display: none;
    width: 100%;
  }

  .site-header.is-nav-open .site-nav,
  .site-header.is-nav-open .header-cta {
    display: flex;
  }

  .site-nav {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0 0.5rem;
    border-top: 1px solid var(--border);
  }

  .site-nav a {
    padding: 0.55rem 0.25rem;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .header-cta {
    padding-bottom: 0.35rem;
  }

  .header-cta .btn {
    width: 100%;
    text-align: center;
  }

  .mud-spec-pair {
    grid-template-columns: 1fr;
  }

  .mud-page h2#toc + ul {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .compare-head,
  .compare-row {
    grid-template-columns: 1fr;
  }
}

/* —— Theme expo (/theme) —— */
.mud-page[data-mud-layout="theme-expo"] .hero {
  padding-bottom: 0.5rem;
}

.theme-expo-grid {
  display: grid;
  gap: 1.75rem;
  margin: 2rem 0 3rem;
}

@media (min-width: 900px) {
  .theme-expo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.theme-expo-panel {
  --bg: #f7f9fc;
  --bg-card: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7a;
  --accent: #0082c0;
  --accent-glow: #33a3d4;
  --gold: #e8a317;
  --teal: #2dd4bf;
  --border: #d8e0ea;
  --grav-navy: #1e3a5f;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius, 0.65rem);
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: var(--shadow, 0 8px 32px rgb(30 58 95 / 0.08));
}

.theme-expo--grav-official,
.mud-page--grav-official {
  /* default token block above */
}

.theme-expo--pizza-resistance,
.mud-page--pizza-resistance,
body.mud-site-preset--pizza-resistance,
body.mud-spec-body:has(.mud-page--pizza-resistance) {
  --bg: #0c0a09;
  --bg-card: #1c1917;
  --text: #fafaf9;
  --muted: #a8a29e;
  --accent: #f97316;
  --accent-glow: #fb923c;
  --gold: #fbbf24;
  --teal: #2dd4bf;
  --border: #292524;
  --grav-navy: #292524;
}

.theme-expo--midnight-ops,
.mud-page--midnight-ops {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-glow: #7dd3fc;
  --gold: #fbbf24;
  --teal: #2dd4bf;
  --border: #334155;
  --grav-navy: #0f172a;
}

.theme-expo--agency-cli,
.mud-page--agency-cli,
body.mud-site-preset--agency-cli,
body.mud-spec-body:has(.mud-page--agency-cli) {
  --bg: #0c0a09;
  --bg-card: #1c1917;
  --text: #fafaf9;
  --muted: #a8a29e;
  --accent: #2dd4bf;
  --accent-glow: #5eead4;
  --gold: #fbbf24;
  --teal: #38bdf8;
  --border: rgb(45 212 191 / 0.35);
  --grav-navy: #134e4a;
}

/* Dark client sites: full-viewport shell (not just the centered .mud-page column) */
body.mud-site-dark,
body.mud-site-preset--agency-cli,
body.mud-site-preset--pizza-resistance,
body.mud-site-preset--prntify-pop,
body.mud-prntify-body,
body.mud-spec-body:has(.mud-page--agency-cli),
body.mud-spec-body:has(.mud-page--pizza-resistance),
body.mud-spec-body:has(.mud-page--prntify-pop) {
  background: var(--bg);
  color: var(--text);
}

html:has(body.mud-site-dark),
html:has(body.mud-site-preset--agency-cli),
html:has(body.mud-site-preset--pizza-resistance),
html:has(body.mud-site-preset--prntify-pop),
html:has(body.mud-prntify-body),
html:has(body.mud-spec-body:has(.mud-page--agency-cli)),
html:has(body.mud-spec-body:has(.mud-page--pizza-resistance)),
html:has(body.mud-spec-body:has(.mud-page--prntify-pop)) {
  background-color: #0c0a09;
}

/* Pizza Resistance — warmer promo shell (vs Agency CLI cyan) */
.mud-page--pizza-resistance[data-mud-layout="promo"] .hero {
  padding-top: 2rem;
  padding-bottom: 1.25rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.mud-page--pizza-resistance .hero .eyebrow {
  color: var(--gold);
}

.mud-page--pizza-resistance .hero h1 .accent {
  text-shadow: 0 0 32px rgb(249 115 22 / 0.45);
}

.mud-page--pizza-resistance .manifesto {
  background: linear-gradient(135deg, #9a3412 0%, #1c1917 48%, #0c0a09 100%);
  border: 1px solid rgb(249 115 22 / 0.35);
}

.mud-page--pizza-resistance .manifesto .sign-off {
  color: var(--accent);
}

.mud-page--pizza-resistance .pricing-card.featured,
.mud-page--pizza-resistance .pricing-card:has(.pricing-badge) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgb(249 115 22 / 0.25), var(--shadow);
}

/* PR!NT!FY — merch POP shell */
.mud-page--prntify-pop[data-mud-layout="creator-hub"] .hero {
  padding-top: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mud-page--prntify-pop .hero .eyebrow {
  color: var(--gold);
}

.mud-page--prntify-pop .hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 28px rgb(41 181 122 / 0.35);
}

.mud-page--prntify-pop .gallery {
  margin: 2rem 0;
}

.mud-page--prntify-pop .gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.mud-page--prntify-pop .manifesto {
  background: linear-gradient(135deg, #14532d 0%, #1c1917 48%, #0c0a09 100%);
  border: 1px solid rgb(41 181 122 / 0.35);
}

.mud-page--prntify-pop .manifesto .sign-off a {
  color: var(--accent-glow);
  font-weight: 700;
}

body.mud-site-preset--pizza-resistance .site-header,
body.mud-site-preset--agency-cli .site-header,
body.mud-site-preset--prntify-pop .site-header,
body.mud-prntify-body .site-header,
body.mud-site-dark .site-header {
  background: rgb(12 10 9 / 0.94);
  border-bottom-color: var(--border);
}

body.mud-site-preset--pizza-resistance .logo-link,
body.mud-site-preset--agency-cli .logo-link,
body.mud-site-preset--prntify-pop .logo-link,
body.mud-prntify-body .logo-link {
  color: var(--text);
}

body.mud-site-preset--pizza-resistance .logo-text span,
body.mud-site-preset--prntify-pop .logo-text span,
body.mud-prntify-body .logo-text span {
  color: var(--muted);
}

body.mud-site-preset--pizza-resistance .site-nav a,
body.mud-site-preset--agency-cli .site-nav a,
body.mud-site-preset--prntify-pop .site-nav a,
body.mud-prntify-body .site-nav a {
  color: var(--muted);
}

body.mud-site-preset--pizza-resistance .site-nav a.active,
body.mud-site-preset--pizza-resistance .site-nav a:hover,
body.mud-site-preset--agency-cli .site-nav a.active,
body.mud-site-preset--agency-cli .site-nav a:hover,
body.mud-site-preset--prntify-pop .site-nav a.active,
body.mud-site-preset--prntify-pop .site-nav a:hover,
body.mud-prntify-body .site-nav a.active,
body.mud-prntify-body .site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

body.mud-site-preset--pizza-resistance .site-footer,
body.mud-site-preset--agency-cli .site-footer,
body.mud-site-preset--prntify-pop .site-footer,
body.mud-prntify-body .site-footer,
body.mud-site-dark .site-footer {
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

body.mud-site-preset--pizza-resistance .site-footer a,
body.mud-site-preset--agency-cli .site-footer a,
body.mud-site-preset--prntify-pop .site-footer a,
body.mud-prntify-body .site-footer a {
  color: var(--accent);
}

body.mud-prntify-body .header-cta .btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  border-color: transparent;
  color: #0c0a09;
}

body.mud-prntify-body .header-cta .btn.primary:hover {
  filter: brightness(1.06);
  color: #0c0a09;
}

/* —— Cursy Too shelf (Wave 1 · down low) —— */
.theme-expo--influencer-glam,
.mud-page--influencer-glam {
  --bg: #1a0a14;
  --bg-card: #2d1224;
  --text: #fdf2f8;
  --muted: #f9a8d4;
  --accent: #ec4899;
  --accent-glow: #f472b6;
  --gold: #fde047;
  --teal: #a78bfa;
  --border: rgb(236 72 153 / 0.35);
  --grav-navy: #500724;
}

.theme-expo--kitchen-warm,
.mud-page--kitchen-warm {
  --bg: #fffbf5;
  --bg-card: #ffffff;
  --text: #3d2c1e;
  --muted: #8b6914;
  --accent: #c2410c;
  --accent-glow: #ea580c;
  --gold: #ca8a04;
  --teal: #059669;
  --border: #e7d5bc;
  --grav-navy: #78350f;
}

.theme-expo--broadcast-neon,
.mud-page--broadcast-neon {
  --bg: #0a0612;
  --bg-card: #140820;
  --text: #f5f3ff;
  --muted: #c4b5fd;
  --accent: #d946ef;
  --accent-glow: #e879f9;
  --gold: #facc15;
  --teal: #22d3ee;
  --border: rgb(217 70 239 / 0.35);
  --grav-navy: #4c1d95;
}

.theme-expo--wwweed-emerald,
.mud-page--wwweed-emerald {
  --bg: #061410;
  --bg-card: #0c1f18;
  --text: #ecfdf5;
  --muted: #86b8a0;
  --accent: #10b981;
  --accent-glow: #34d399;
  --gold: #fbbf24;
  --teal: #2dd4bf;
  --border: rgb(16 185 129 / 0.28);
  --grav-navy: #064e3b;
}

.theme-expo--creator-red,
.mud-page--creator-red {
  --bg: #0c0a09;
  --bg-card: #171717;
  --text: #fafaf9;
  --muted: #a3a3a3;
  --accent: #ff0033;
  --accent-glow: #ff4455;
  --gold: #fbbf24;
  --teal: #2dd4bf;
  --border: #262626;
  --grav-navy: #450a0a;
}

.theme-expo--deck-terminal,
.mud-page--deck-terminal {
  --bg: #060809;
  --bg-card: #11161c;
  --text: #e7edf2;
  --muted: #8b98a8;
  --accent: #2dd4bf;
  --accent-glow: #5eead4;
  --gold: #fbbf24;
  --teal: #38bdf8;
  --border: rgb(45 212 191 / 0.28);
  --grav-navy: #134e4a;
}

.theme-expo--fak3book-blue,
.mud-page--fak3book-blue {
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --text: #050505;
  --muted: #65676b;
  --accent: #1877f2;
  --accent-glow: #4599ff;
  --gold: #f5533d;
  --teal: #42b72a;
  --border: #dddfe2;
  --grav-navy: #0d47a1;
}

.theme-expo--linkedup-pro,
.mud-page--linkedup-pro {
  --bg: #f3f2ef;
  --bg-card: #ffffff;
  --text: #191919;
  --muted: #666666;
  --accent: #0a66c2;
  --accent-glow: #004182;
  --gold: #057642;
  --teal: #5e5e5e;
  --border: #e0e0e0;
  --grav-navy: #004182;
}

.theme-expo--vimmy-cinema,
.mud-page--vimmy-cinema {
  --bg: #0a1628;
  --bg-card: #111827;
  --text: #e8f4ff;
  --muted: #7eb8d4;
  --accent: #1ab7ea;
  --accent-glow: #ff6b35;
  --gold: #ffb347;
  --teal: #6366f1;
  --border: rgb(26 183 234 / 0.28);
  --grav-navy: #0c4a6e;
}

.theme-expo--b00kz-library,
.mud-page--b00kz-library {
  --bg: #1a1410;
  --bg-card: #2a2218;
  --text: #f5efe6;
  --muted: #b8a898;
  --accent: #ff9900;
  --accent-glow: #ffb84d;
  --gold: #fbbf24;
  --teal: #146eb4;
  --border: rgb(255 153 0 / 0.28);
  --grav-navy: #232f3e;
}

.theme-expo--cre8r-wolf,
.mud-page--cre8r-wolf {
  --bg: #142018;
  --bg-card: #1e2f22;
  --text: #ecfdf0;
  --muted: #94b89a;
  --accent: #22c55e;
  --accent-glow: #f97316;
  --gold: #fbbf24;
  --teal: #38bdf8;
  --border: rgb(34 197 94 / 0.28);
  --grav-navy: #14532d;
}

.theme-expo--k3to-krazy,
.mud-page--k3to-krazy {
  --bg: #f0fdf4;
  --bg-card: #ffffff;
  --text: #14532d;
  --muted: #4d7c59;
  --accent: #16a34a;
  --accent-glow: #dc2626;
  --gold: #ca8a04;
  --teal: #0d9488;
  --border: #bbf7d0;
  --grav-navy: #166534;
}

.theme-expo--smb2b-slate,
.mud-page--smb2b-slate {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-glow: #60a5fa;
  --gold: #f59e0b;
  --teal: #14b8a6;
  --border: rgb(59 130 246 / 0.28);
  --grav-navy: #1e3a5f;
}

.theme-expo--sh0pify-green,
.mud-page--sh0pify-green {
  --bg: #f6f6f7;
  --bg-card: #ffffff;
  --text: #202223;
  --muted: #6d7175;
  --accent: #008060;
  --accent-glow: #95bf47;
  --gold: #ffc453;
  --teal: #004c3f;
  --border: #e1e3e5;
  --grav-navy: #004c3f;
}

.theme-expo--flippy-pink,
.mud-page--flippy-pink {
  --bg: #1a0a12;
  --bg-card: #2a1420;
  --text: #fdf2f8;
  --muted: #d8a0b8;
  --accent: #ff1493;
  --accent-glow: #84cc16;
  --gold: #fbbf24;
  --teal: #2dd4bf;
  --border: rgb(255 20 147 / 0.35);
  --grav-navy: #4a0e2e;
}

.theme-expo--prntify-pop,
.mud-page--prntify-pop,
body.mud-site-preset--prntify-pop,
body.mud-prntify-body,
body.mud-spec-body:has(.mud-page--prntify-pop) {
  --bg: #0c0a09;
  --bg-card: #1c1917;
  --text: #fafaf9;
  --muted: #a8a29e;
  --accent: #29b57a;
  --accent-glow: #facc15;
  --gold: #f97316;
  --teal: #38bdf8;
  --border: #44403c;
  --grav-navy: #14532d;
}

.theme-expo-head h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
}

.theme-expo-head p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.theme-expo-preset {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--muted);
}

.theme-expo-preset code {
  color: var(--accent);
}

.theme-expo-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.theme-expo-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
}

.theme-expo-swatch-chip {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.35rem;
  border: 1px solid var(--border);
}

.theme-expo-swatch code {
  color: var(--muted);
}

.theme-expo-sample {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
}

.theme-expo-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-expo-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--text);
}

.theme-expo-title .accent {
  color: var(--accent);
}

.theme-expo-lead {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.theme-expo-lead code {
  font-size: 0.78rem;
  color: var(--accent);
}

.theme-expo-actions {
  margin-bottom: 0.85rem;
}

.theme-expo-panel .btn {
  border-color: var(--accent);
  color: var(--accent);
  cursor: default;
}

.theme-expo-panel .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.theme-expo-mini-card {
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
}

.theme-expo-mini-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.theme-expo-mini-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.theme-expo-quote {
  margin: 0;
  padding: 0.65rem 0 0 0.75rem;
  border-left: 3px solid var(--accent);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
}

.theme-token-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0 2rem;
}

.theme-token-table th,
.theme-token-table td {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.theme-token-table th {
  background: var(--bg-card);
  font-weight: 700;
}

.theme-token-table code {
  color: var(--accent);
}

/* —— Blog —— */
.blog-teaser {
  margin: 2rem 0;
  padding: 1.5rem 1.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blog-teaser-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0.35rem 0 0.75rem;
  color: var(--grav-navy);
}

.blog-teaser-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.blog-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.blog-index-header h1,
.blog-post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.15;
  color: var(--grav-navy);
}

.blog-index-lede,
.blog-dek,
.blog-lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.blog-meta {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card article {
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.blog-card h2 {
  margin: 0.35rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.blog-card h2 a {
  text-decoration: none;
  color: var(--text);
}

.blog-card h2 a:hover {
  color: var(--accent);
}

.blog-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-read-more {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-back {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.blog-post-body {
  margin-top: 1.25rem;
}

.blog-post-body h3.blog-subhead {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--grav-navy);
}

.blog-post-body p {
  margin: 0 0 0.85rem;
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--muted);
}

.blog-post-body blockquote {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgb(0 130 192 / 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}

.blog-post-body .trail-kicker > strong {
  display: block;
  margin: 1.25rem 0 0.35rem;
  font-family: var(--font-display);
  color: var(--gold);
}

.blog-post-body strong {
  color: inherit;
  font-weight: 700;
}

/* MUD Commentz — flat-file tribble nest */
.mud-commentz-wrap {
  max-width: var(--content-max, 720px);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.mud-commentz {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.mud-commentz-header {
  margin-bottom: 1.5rem;
}

.mud-commentz-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0.35rem 0 0.5rem;
  color: var(--grav-navy);
}

.mud-commentz-dek {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.mud-commentz-count {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 700;
}

.mud-commentz-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.mud-commentz-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.mud-commentz-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
}

.mud-commentz-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--grav-navy);
}

.mud-commentz-meta time {
  font-size: 0.78rem;
  color: var(--muted);
}

.mud-commentz-body {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.mud-commentz-empty {
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-style: italic;
}

.mud-commentz-form {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.08), rgba(0, 168, 168, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.mud-commentz-form-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--grav-navy);
}

.mud-commentz-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.mud-commentz-field span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.mud-commentz-field input,
.mud-commentz-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.75);
  background: var(--bg);
  color: var(--text);
}

.mud-commentz-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.mud-commentz-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.mud-commentz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.mud-commentz-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--teal);
}

.mud-commentz-status.is-error {
  color: #c0392b;
}

/* GravMUD Forumz */
.mud-forumz-wrap {
  margin: 2rem 0 2.5rem;
}

.mud-forumz {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.25rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
}

.mud-page .hero + .mud-forumz-wrap .mud-forumz-header {
  display: none;
}

.mud-forumz-header {
  margin-bottom: 1.25rem;
}

.mud-forumz-title {
  font-family: var(--font-display, "Archivo Black", sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0.35rem 0 0.45rem;
  letter-spacing: -0.02em;
}

.mud-forumz-dek {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 42rem;
}

.mud-forumz-loading,
.mud-forumz-empty {
  color: var(--muted);
  font-style: italic;
}

.mud-forumz-thread-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.mud-forumz-thread-row {
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgb(30 58 95 / 0.06);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.mud-forumz-thread-row:hover {
  box-shadow: 0 4px 14px rgb(30 58 95 / 0.1);
}

.mud-forumz-thread-row.is-pinned {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 18%, transparent);
}

.mud-forumz-thread-link {
  display: block;
  padding: 0.75rem 0.9rem;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

.mud-forumz-thread-link:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--bg-card));
}

.mud-forumz-thread-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.mud-forumz-thread-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.mud-forumz-new-thread h3,
.mud-forumz-form h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.mud-forumz-form label {
  display: block;
  margin-bottom: 0.65rem;
}

.mud-forumz-form label span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.mud-forumz-form input,
.mud-forumz-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 2px rgb(30 58 95 / 0.04);
}

.mud-forumz-form input:focus,
.mud-forumz-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.mud-forumz-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.mud-forumz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.mud-forumz-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--teal);
}

.mud-forumz-status.is-error {
  color: #c0392b;
}

.mud-forumz-back {
  margin-bottom: 0.85rem;
}

.mud-forumz-thread-head h3 {
  margin: 0 0 0.35rem;
}

.mud-forumz-thread-byline {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.mud-forumz-posts {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mud-forumz-post {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgb(30 58 95 / 0.05);
}

.mud-forumz-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
}

.mud-forumz-author {
  color: var(--teal, #2dd4bf);
}

.mud-forumz-post-body {
  line-height: 1.55;
  white-space: pre-wrap;
}

.mud-forumz-session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 0.9rem;
}

.mud-forumz-auth {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.mud-forumz-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 14%, var(--bg-card));
  color: var(--teal, #2dd4bf);
  margin-right: 0.3rem;
}

.mud-forumz-author-link {
  color: var(--teal, #2dd4bf);
  text-decoration: none;
}

.mud-forumz-author-link:hover {
  text-decoration: underline;
}

.mud-forumz-wrap--profiles {
  margin-top: -0.5rem;
}

.mud-forumz-wrap--profiles .mud-forumz {
  padding: 1rem 1.15rem;
}

.mud-forumz-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mud-forumz-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.65rem;
}

.mud-forumz-profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "avatar name"
    "avatar slug"
    "avatar stats"
    "badges badges"
    "bio bio"
    "action action";
  gap: 0.1rem 0.65rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgb(30 58 95 / 0.07);
  text-align: left;
}

.mud-forumz-profile-avatar {
  grid-area: avatar;
  font-size: 1.65rem;
  line-height: 1;
  margin: 0.1rem 0 0;
}

.mud-forumz-profile-card h3 {
  grid-area: name;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
}

.mud-forumz-profile-slug {
  grid-area: slug;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.mud-forumz-profile-stats {
  grid-area: stats;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

.mud-forumz-profile-badges {
  grid-area: badges;
  margin-top: 0.35rem;
}

.mud-forumz-profile-bio {
  grid-area: bio;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0.35rem 0 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mud-forumz-profile-card .mud-forumz-btn-view-profile,
.mud-forumz-profile-card .btn {
  grid-area: action;
  justify-self: start;
  margin: 0.45rem 0 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.mud-forumz-profile-embed {
  max-width: 18rem;
}

.mud-forumz-profile-view {
  margin-bottom: 0.85rem;
  max-width: 20rem;
}

.mud-forumz-profile-view .mud-forumz-profile-card {
  margin-bottom: 0.65rem;
}

@media (max-width: 480px) {
  .mud-forumz-profiles-grid {
    grid-template-columns: 1fr;
  }
}

.grav20-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 10000;
  width: 14rem;
  height: 14rem;
  overflow: visible;
  text-decoration: none;
  pointer-events: none;
}

.grav20-ribbon span {
  position: absolute;
  top: 1.55rem;
  left: -3.35rem;
  right: auto;
  width: 15.5rem;
  max-width: none;
  padding: 0.45rem 0.5rem;
  transform: rotate(-45deg);
  transform-origin: center center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  white-space: nowrap;
  text-transform: uppercase;
  color: #060a06;
  background: linear-gradient(135deg, #39ff14 0%, #00d4ff 55%, #eaea00 100%);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.4);
  pointer-events: auto;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.grav20-ribbon:hover span,
.grav20-ribbon:focus-visible span {
  filter: brightness(1.12);
  transform: rotate(-45deg) scale(1.02);
}

.grav20-ribbon:focus-visible {
  outline: none;
}

.grav20-ribbon:focus-visible span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .grav20-ribbon {
    width: 12rem;
    height: 12rem;
  }

  .grav20-ribbon span {
    top: 1.25rem;
    left: -3rem;
    width: 14rem;
    font-size: 0.52rem;
    letter-spacing: 0.04em;
  }
}

/* —— Gallery & carousel —— */
.mud-gallery {
  margin: 2rem 0;
}

.mud-gallery > h2 {
  margin-bottom: 1rem;
  color: var(--text);
}

.mud-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--mud-gallery-cols, 3), minmax(0, 1fr));
  gap: 0.85rem;
}

.mud-gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.mud-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.mud-gallery-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.mud-gallery--lightbox .mud-gallery-zoom:hover img {
  transform: scale(1.03);
}

.mud-gallery-item figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.mud-lightbox {
  padding: 0;
  border: none;
  max-width: min(92vw, 960px);
  width: 100%;
  background: transparent;
}

.mud-lightbox::backdrop {
  background: rgba(8, 12, 20, 0.88);
}

.mud-lightbox-inner {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.mud-lightbox-inner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

.mud-lightbox-caption {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.mud-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.mud-carousel {
  margin: 2.5rem 0;
}

.mud-carousel > h2 {
  margin-bottom: 1rem;
  color: var(--text);
}

.mud-carousel-viewport {
  position: relative;
}

.mud-carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  aspect-ratio: var(--mud-carousel-aspect, 16 / 9);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.mud-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mud-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mud-carousel-slide figure {
  margin: 0;
  height: 100%;
}

.mud-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mud-carousel-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 0.9rem;
}

.mud-carousel-prev,
.mud-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.mud-carousel-prev:hover,
.mud-carousel-next:hover {
  background: rgba(0, 0, 0, 0.65);
}

.mud-carousel-prev {
  left: 0.75rem;
}

.mud-carousel-next {
  right: 0.75rem;
}

.mud-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.mud-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.mud-carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

@media (max-width: 720px) {
  .mud-gallery-grid {
    grid-template-columns: repeat(min(var(--mud-gallery-cols, 3), 2), minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .mud-gallery-grid {
    grid-template-columns: 1fr;
  }

  .mud-carousel-prev,
  .mud-carousel-next {
    width: 2rem;
    height: 2rem;
    font-size: 1.4rem;
  }
}

/* —— 3D carousel (coverflow) —— */
.mud-carousel--3d .mud-carousel-viewport {
  padding: 0 0 1rem;
}

.mud-carousel--3d .mud-carousel-track {
  aspect-ratio: auto;
  height: clamp(260px, 42vw, 420px);
  perspective: 1200px;
  transform-style: preserve-3d;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.mud-carousel--3d .mud-carousel-slide {
  width: min(62%, 520px);
  left: 50%;
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.45s ease, opacity 0.35s ease;
  transform-origin: center center;
  backface-visibility: hidden;
}

.mud-carousel--3d .mud-carousel-slide figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.mud-carousel--3d .mud-carousel-slide.is-active figure {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

/* —— Multilevel nav (EvvyTink menu manager) —— */
.mud-nav-root {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mud-nav-item {
  position: relative;
  list-style: none;
}

.mud-nav-link-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.mud-nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 0.2rem 0.35rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.mud-nav-link:hover,
.mud-nav-link.active,
.mud-nav-link.active-child {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mud-nav-submenu-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  font-size: 0.75rem;
  line-height: 1;
}

.mud-nav-item--has-children:hover > .mud-nav-submenu,
.mud-nav-item--has-children.is-submenu-open > .mud-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mud-nav-submenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 11rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35rem);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 40;
}

.mud-nav-submenu .mud-nav-item {
  display: block;
}

.mud-nav-submenu .mud-nav-link-wrap {
  display: flex;
  width: 100%;
}

.mud-nav-submenu .mud-nav-link {
  display: block;
  width: 100%;
  padding: 0.45rem 0.85rem;
  border-bottom: 0;
  white-space: normal;
}

.mud-nav-submenu .mud-nav-submenu {
  top: 0;
  left: calc(100% + 0.25rem);
}

.mud-nav-submenu .mud-nav-submenu-toggle {
  margin-left: auto;
}

@media (max-width: 900px) {
  .mud-nav-root {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .mud-nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    padding-left: 0.75rem;
    background: transparent;
  }

  .mud-nav-item--has-children.is-submenu-open > .mud-nav-submenu {
    display: block;
  }

  .mud-nav-submenu .mud-nav-submenu {
    padding-left: 0.75rem;
  }
}
