/*
Theme Name: Mustang Magazine
Theme URI: https://mustangmag.com
Author: Mustang Magazine
Description: A dark automotive editorial magazine theme for Mustang Magazine. Fully editable — all text, links, ads, menus, and content managed through WordPress admin.
Version: 3.1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mustang-magazine
Tags: dark, magazine, automotive, custom-menu, featured-images, wide-blocks
*/

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:wght@400;500;600&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

/* ─── VARIABLES ─── */
:root {
  --red:      #C8102E;
  --red-d:    #a00d24;
  --black:    #0d0d0d;
  --dk:       #111111;
  --dk2:      #1a1a1a;
  --dk3:      #222222;
  --mid:      #2e2e2e;
  --border:   #333333;
  --text:     #e8e8e8;
  --muted:    #b0b0b0;
  --white:    #ffffff;
  --fh: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --fb: 'Barlow', Arial, sans-serif;
  --fs: 'Source Serif 4', Georgia, serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; transition: color .18s; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; height: auto; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--fh);
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--white);
}

/* ─── CONTAINER ─── */
.mm-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--red); color: #fff; padding: 8px 16px; z-index: 9999;
  font-family: var(--fh); font-size: 13px; text-transform: uppercase;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ════════════════════════════════════════════
   TOP BAR
════════════════════════════════════════════ */
#mm-topbar {
  background: #000;
  border-bottom: 1px solid #1e1e1e;
  padding: 6px 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
#mm-topbar .mm-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mm-topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.mm-topbar-links a { color: var(--muted); transition: color .15s; }
.mm-topbar-links a:hover { color: var(--red); }
.mm-topbar-social { display: flex; gap: 14px; align-items: center; }
.mm-topbar-social a {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  transition: color .15s;
}
.mm-topbar-social a:hover { color: var(--red); }

/* ════════════════════════════════════════════
   SITE HEADER
════════════════════════════════════════════ */
#mm-header {
  background: var(--dk);
  border-bottom: 3px solid var(--red);
  padding: 14px 0;
}
#mm-header .mm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.mm-site-branding { line-height: 1; flex-shrink: 0; }
.mm-site-title {
  font-family: var(--fh);
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
}
.mm-site-title a { color: var(--white); }
.mm-site-title a:hover { color: var(--white); opacity: .9; }
.mm-site-title .accent { color: var(--red); }
.mm-site-tagline {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--fb);
}
.mm-custom-logo-link img { max-height: 120px; width: auto; }

/* Search form */
.mm-header-search {
  display: flex;
  flex: 0 0 260px;
}
.mm-header-search input[type="search"] {
  background: var(--mid);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: var(--fb);
  font-size: 13px;
  padding: 9px 14px;
  flex: 1;
  outline: none;
  border-radius: 2px 0 0 2px;
  -webkit-appearance: none;
}
.mm-header-search input::placeholder { color: var(--muted); }

/* ─── ACCESSIBILITY: Focus styles ─── */
/* Visible focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
/* Remove default outline only when focus-visible is supported */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
.mm-header-search button {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 9px 14px;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  font-size: 14px;
  transition: background .2s;
  line-height: 1;
}
.mm-header-search button:hover { background: var(--red-d); }

/* Subscribe CTA */
.mm-subscribe-btn {
  background: var(--red);
  color: #fff !important;
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.mm-subscribe-btn:hover { background: var(--red-d); color: #fff !important; }

/* ════════════════════════════════════════════
   PRIMARY NAVIGATION
════════════════════════════════════════════ */
#mm-nav {
  background: var(--dk2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s;
}
#mm-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.7); }
#mm-nav .mm-container { display: flex; align-items: stretch; }

/* Menu */
#mm-primary-menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
  width: 100%;
}
#mm-primary-menu > li { position: relative; }
#mm-primary-menu > li > a {
  display: block;
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 13px 15px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
#mm-primary-menu > li > a:hover,
#mm-primary-menu > li.current-menu-item > a,
#mm-primary-menu > li.current-menu-ancestor > a {
  color: var(--white);
  border-bottom-color: var(--red);
}

/* Dropdown */
#mm-primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--dk2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  min-width: 200px;
  list-style: none;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0,0,0,.6);
}
#mm-primary-menu > li:hover > .sub-menu,
#mm-primary-menu > li:focus-within > .sub-menu { display: block; }
#mm-primary-menu .sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-family: var(--fh);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color .15s, background .15s;
}
#mm-primary-menu .sub-menu li:last-child a { border-bottom: none; }
#mm-primary-menu .sub-menu li a:hover {
  color: var(--white);
  background: var(--dk3);
  padding-left: 20px;
}
/* Dropdown arrow on parent items that have children */
#mm-primary-menu > li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: .6;
  transition: opacity .15s;
}
#mm-primary-menu > li.menu-item-has-children:hover > a::after { opacity: 1; }
/* Active category highlight in dropdown */
#mm-primary-menu .sub-menu li.current-menu-item > a,
#mm-primary-menu .sub-menu li.current-menu-ancestor > a {
  color: var(--red);
  background: var(--dk3);
}

/* Mobile toggle */
.mm-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  margin: 8px 0;
  border-radius: 2px;
  font-family: var(--fb);
}

/* ════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════ */
.mm-hero {
  max-width: 1100px;
  margin: 22px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}
.mm-hero-main {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  display: block;
}
.mm-hero-main .mm-thumb {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.mm-hero-main:hover .mm-thumb { transform: scale(1.02); }
.mm-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.93) 0%, rgba(0,0,0,.25) 55%, transparent 100%);
}
.mm-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 26px;
}
.mm-hero-content h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 9px;
}
.mm-hero-content h1 a { color: var(--white); }
.mm-hero-content h1 a:hover { color: var(--red); }
.mm-hero-content .mm-excerpt {
  font-size: 13px;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
  margin-bottom: 9px;
  max-width: 540px;
}
.mm-hero-content .mm-meta { font-size: 12px; color: rgba(255,255,255,.72); }

/* Hero sidebar */
.mm-hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mm-hero-side-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  display: block;
  flex: 1;
}
.mm-hero-side-card .mm-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform .3s;
}
.mm-hero-side-card:hover .mm-thumb { transform: scale(1.05); }
.mm-hero-side-card .mm-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.08) 65%, transparent 100%);
}
.mm-hero-side-card .mm-hero-content { padding: 12px 14px; }
.mm-hero-side-card h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}
.mm-hero-side-card h3 a { color: var(--white); }
.mm-hero-side-card h3 a:hover { color: var(--red); }

/* ─── Category Tag ─── */
.mm-cat-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--fh);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 1px;
  margin-bottom: 8px;
  transition: background .2s;
}
.mm-cat-tag:hover { background: var(--red-d); color: #fff; }

/* ════════════════════════════════════════════
   BREAKING NEWS TICKER
════════════════════════════════════════════ */
.mm-ticker {
  background: var(--red);
  overflow: hidden;
  padding: 7px 0;
  margin-top: 18px;
}
.mm-ticker-track {
  display: flex;
  animation: mm-tick 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.mm-ticker-track:hover { animation-play-state: paused; }
.mm-ticker-track span {
  font-size: 11px;
  color: #fff;
  padding: 0 30px;
  letter-spacing: .04em;
}
.mm-ticker-track span::after { content: ' //'; opacity: .5; margin-left: 6px; }
@keyframes mm-tick {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════
   SECTION HEADERS
════════════════════════════════════════════ */
.mm-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 3px solid var(--border);
  margin-bottom: 22px;
}
.mm-section-title {
  font-family: var(--fh);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
  border-bottom: 3px solid var(--red);
  padding-bottom: 10px;
  margin-bottom: -3px;
}
.mm-section-more {
  font-family: var(--fh);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  transition: color .15s;
}
.mm-section-more:hover { color: var(--red); }

/* ════════════════════════════════════════════
   CONTENT LAYOUT
════════════════════════════════════════════ */
.mm-content-wrap {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
}
.mm-content-wrap.mm-no-sidebar { grid-template-columns: 1fr; }

/* ════════════════════════════════════════════
   POST CARDS
════════════════════════════════════════════ */
.mm-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.mm-card {
  background: var(--dk2);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: transform .2s;
}
.mm-card:hover { transform: translateY(-3px); }
.mm-card-thumb-wrap { overflow: hidden; display: block; }
.mm-card .mm-thumb {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.mm-card:hover .mm-thumb { transform: scale(1.04); }
.mm-card-body { padding: 14px; }
.mm-card-title {
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
  display: block;
}
.mm-card-title:hover { color: var(--red); }
.mm-card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 9px; }
.mm-card-meta { font-size: 12px; color: var(--muted); }
.mm-card-meta a { color: #666; }
.mm-card-meta a:hover { color: var(--red); }

/* Wide card */
.mm-card-wide {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--dk2);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: transform .2s;
}
.mm-card-wide:hover { transform: translateY(-2px); }
.mm-card-wide .mm-thumb { width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.mm-card-wide .mm-card-body { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; }
.mm-card-wide .mm-card-title { font-size: 18px; }

/* ════════════════════════════════════════════
   PROMO / FEATURE BANNER
════════════════════════════════════════════ */
.mm-promo-banner {
  background: var(--dk2);
  border: 1px solid var(--red);
  border-radius: 2px;
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  position: relative;
  overflow: hidden;
}
.mm-promo-banner::before {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(200,16,46,.14) 0%, transparent 70%);
  pointer-events: none;
}
.mm-promo-eyebrow {
  font-family: var(--fh);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.mm-promo-title {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}
.mm-promo-sub { font-size: 14px; color: var(--muted); }
.mm-promo-cta {
  background: var(--red);
  color: #fff !important;
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.mm-promo-cta:hover { background: var(--red-d); }

/* ════════════════════════════════════════════
   VIDEO GRID
════════════════════════════════════════════ */
.mm-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}
.mm-video-card {
  background: var(--dk2);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.mm-video-thumb-wrap { position: relative; overflow: hidden; display: block; }
.mm-video-card .mm-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform .3s;
}
.mm-video-card:hover .mm-thumb { transform: scale(1.04); }
.mm-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px;
  background: rgba(200,16,46,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  transition: transform .2s, background .2s;
  pointer-events: none;
}
.mm-video-card:hover .mm-play-btn { transform: translate(-50%,-50%) scale(1.1); background: var(--red-d); }
.mm-video-dur {
  position: absolute; bottom: 7px; right: 8px;
  background: rgba(0,0,0,.88); color: #fff;
  font-size: 11px; padding: 2px 6px; border-radius: 2px;
}

/* ════════════════════════════════════════════
   SINGLE POST
════════════════════════════════════════════ */
.mm-single-hero {
  width: 100%;
  height: auto;
  object-fit: unset;
  border-radius: 2px;
  margin-bottom: 28px;
  display: block;
}
.mm-single-header { margin-bottom: 20px; }
.mm-single-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #ffffff;
}
.mm-single-meta {
  font-size: 13px; color: var(--muted);
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.mm-single-meta a { color: var(--muted); }
.mm-single-meta a:hover { color: var(--red); }

/* ── Post body text ── */
.mm-post-content {
  font-family: var(--fs);
  font-size: 17px;
  line-height: 1.82;
  color: #d0d0d0;
}
.mm-post-content h2 {
  font-size: 22px;
  border-left: 4px solid var(--red);
  padding-left: 14px;
  margin: 2rem 0 .9rem;
  line-height: 1.3;
  color: #ffffff;
}
.mm-post-content h3 {
  font-size: 19px;
  margin: 1.8rem 0 .8rem;
  line-height: 1.35;
  color: #ffffff;
}
.mm-post-content p { margin-bottom: 1.3rem; }
.mm-post-content a { color: var(--red); text-decoration: underline; }
.mm-post-content strong { color: var(--heading-color, var(--white)); }
.mm-post-content ul, .mm-post-content ol {
  margin-bottom: 1.3rem;
  padding-left: 1.4rem;
}
.mm-post-content li { margin-bottom: .4rem; }
.mm-post-content blockquote {
  border-left: 4px solid var(--red);
  background: var(--dk2);
  padding: 16px 20px;
  margin: 1.8rem 0;
  font-style: italic;
  color: var(--text);
  border-radius: 0 4px 4px 0;
}

/* ── Article featured image ── */
.mm-single-hero {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: unset;
  border-radius: 4px;
  display: block;
  margin: 18px 0 26px;
}

/* ── In-content images ── */
.mm-post-content img {
  border-radius: 4px;
  margin: 1.6rem auto;
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* WordPress block image — respect alignment */
.mm-post-content .wp-block-image { margin: 1.6rem 0; }
.mm-post-content .wp-block-image img {
  margin: 0 auto;
  border-radius: 4px;
  width: 100%;
  height: auto;
}
.mm-post-content .wp-block-image figcaption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}
/* Aligned images — only on desktop */
.mm-post-content .wp-block-image.alignleft img,
.mm-post-content .wp-block-image.alignright img {
  width: auto;
  max-width: 45%;
  max-height: 320px;
}
.mm-post-content .wp-block-image.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.mm-post-content .wp-block-image.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.mm-post-content .wp-block-image.aligncenter { text-align: center; }
.mm-post-content p:after { content: ''; display: table; clear: both; }

/* ════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════ */
.mm-pagination {
  display: flex; justify-content: center;
  gap: 6px; margin: 28px 0;
}
.mm-pagination a, .mm-pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  background: var(--dk2); border: 1px solid var(--border);
  font-family: var(--fh); font-size: 13px; font-weight: 600;
  color: var(--text); border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s;
}
.mm-pagination a:hover, .mm-pagination .current {
  background: var(--red); border-color: var(--red); color: #fff;
}

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.mm-sidebar {}

/* Newsletter widget */
.mm-newsletter-widget {
  background: var(--dk2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 22px 18px;
  margin-bottom: 26px;
  text-align: center;
}
.mm-newsletter-widget h3 {
  font-family: var(--fh);
  font-size: 16px; font-weight: 700;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 6px;
}
.mm-newsletter-widget p { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.mm-newsletter-widget input[type="email"] {
  width: 100%;
  background: var(--mid); border: 1px solid var(--border);
  color: var(--text); font-family: var(--fb); font-size: 13px;
  padding: 9px 12px; margin-bottom: 8px; outline: none; border-radius: 2px;
}
.mm-newsletter-widget input::placeholder { color: #555; }
.mm-newsletter-widget input[type="submit"], .mm-newsletter-widget button {
  width: 100%; background: var(--red); color: #fff;
  font-family: var(--fh); font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  border: none; padding: 10px; cursor: pointer; border-radius: 2px;
  transition: background .2s;
}
.mm-newsletter-widget input[type="submit"]:hover,
.mm-newsletter-widget button:hover { background: var(--red-d); }

/* Generic sidebar widget */
.mm-widget {
  background: var(--dk2);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 26px;
  overflow: hidden;
}
.mm-widget .widget-title,
.mm-widget h3 {
  background: var(--dk3);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 10px 16px;
  font-family: var(--fh);
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); margin: 0;
}
.mm-widget .widget-content,
.mm-widget > *:not(.widget-title):not(h3) { padding: 14px 16px; }
.mm-widget ul { list-style: none; padding: 0; }
.mm-widget ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.mm-widget ul li:last-child { border-bottom: none; }
.mm-widget ul li a { color: var(--text); }
.mm-widget ul li a:hover { color: var(--red); }
.mm-widget .cat-item { display: flex; justify-content: space-between; }

/* Popular posts */
.mm-popular-list { list-style: none; padding: 0; }
.mm-popular-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.mm-popular-list li:last-child { border-bottom: none; padding-bottom: 0; }
.mm-pop-num {
  font-family: var(--fh); font-size: 20px; font-weight: 700;
  color: var(--border); line-height: 1; min-width: 22px;
  transition: color .15s;
}
.mm-popular-list li:hover .mm-pop-num { color: var(--red); }
.mm-pop-title {
  font-family: var(--fh); font-size: 13px; font-weight: 600;
  text-transform: uppercase; color: var(--text); line-height: 1.25;
}
.mm-pop-title:hover { color: var(--red); }
.mm-pop-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ════════════════════════════════════════════
   AD MANAGEMENT SYSTEM
   Ads are managed in Appearance → Customize → Ad Management
   or via the Ad Zones widget area.
   Supports: image ads, HTML/embed codes, Google AdSense,
   or any third-party network embed.
════════════════════════════════════════════ */
.mm-ad-zone {
  margin-bottom: 26px;
  text-align: center;
}
.mm-ad-zone a { display: block; }
.mm-ad-zone img { max-width: 100%; border-radius: 2px; }
.mm-ad-zone .mm-ad-label {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 5px;
  text-align: center;
}
/* Ad placeholder shown when no ad is set */
.mm-ad-placeholder {
  background: var(--dk3);
  border: 1px dashed var(--border);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #3a3a3a;
  font-size: 11px;
  font-family: var(--fh);
  letter-spacing: .08em;
  text-transform: uppercase;
  gap: 6px;
  padding: 20px;
}
.mm-ad-placeholder span { color: #2e2e2e; font-size: 10px; }

/* In-content ad (between posts) */
.mm-ad-inline { margin: 28px 0; text-align: center; }

/* Leaderboard ad (full width, optional above footer) */
.mm-ad-leaderboard {
  max-width: 1100px;
  margin: 0 auto 28px;
  padding: 0 24px;
  text-align: center;
}

/* ════════════════════════════════════════════
   ARCHIVE / CATEGORY HEADER
════════════════════════════════════════════ */
.mm-archive-header {
  background: var(--dk2);
  border-bottom: 3px solid var(--red);
  padding: 28px 0;
  margin-bottom: 30px;
}
.mm-archive-title { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.mm-archive-desc { color: var(--muted); font-size: 14px; }

/* ════════════════════════════════════════════
   404
════════════════════════════════════════════ */
.mm-404 { text-align: center; padding: 80px 20px; }
.mm-404 h1 { font-size: 90px; color: var(--red); line-height: 1; }
.mm-404 h2 { font-size: 26px; margin-bottom: 14px; }
.mm-404 p { color: var(--muted); margin-bottom: 24px; }
.mm-btn {
  display: inline-block;
  background: var(--red); color: #fff;
  font-family: var(--fh); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 28px; border-radius: 2px;
  transition: background .2s;
}
.mm-btn:hover { background: var(--red-d); color: #fff; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
#mm-footer {
  background: #000;
  border-top: 3px solid var(--red);
  padding: 40px 0 0;
  margin-top: 40px;
}
.mm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.mm-footer-brand-logo {
  font-family: var(--fh); font-size: 28px; font-weight: 700;
  color: var(--white); text-transform: uppercase;
  margin-bottom: 12px; line-height: 1;
}
.mm-footer-brand-logo a { color: var(--white); }
.mm-footer-brand-logo .accent { color: var(--red); }
.mm-footer-brand-logo img { max-height: 50px; width: auto; margin-bottom: 8px; }
.mm-footer-desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.mm-footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.mm-footer-social a {
  background: var(--dk3); color: var(--muted);
  padding: 6px 12px; font-family: var(--fh); font-size: 10px;
  letter-spacing: .06em; border-radius: 2px;
  transition: background .2s, color .2s;
}
.mm-footer-social a:hover { background: var(--red); color: #fff; }
.mm-footer-col-title {
  font-family: var(--fh); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); border-bottom: 2px solid var(--red);
  padding-bottom: 8px; margin-bottom: 14px;
}
.mm-footer-nav { list-style: none; }
.mm-footer-nav li { margin-bottom: 9px; }
.mm-footer-nav a { font-size: 13px; color: var(--muted); transition: color .15s; }
.mm-footer-nav a:hover { color: var(--red); }
/* Make wp_nav_menu output match our style */
#mm-footer .menu { list-style: none; padding: 0; margin: 0; }
#mm-footer .menu li { margin-bottom: 9px; }
#mm-footer .menu a { font-size: 13px; color: var(--muted); transition: color .15s; }
#mm-footer .menu a:hover { color: var(--red); }
.mm-footer-bottom {
  padding: 16px 0;
  display: flex; justify-content: center; align-items: center;
  font-size: 12px; color: var(--muted);
  flex-wrap: wrap; gap: 10px; text-align: center;
}

/* ════════════════════════════════════════════
   COMMENTS
════════════════════════════════════════════ */
.mm-comments { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.mm-comments .comments-title { font-size: 18px; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment-author b { font-family: var(--fh); font-size: 14px; color: var(--white); }
.comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.comment-content p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-family: var(--fh); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; background: var(--dk2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--fb); font-size: 14px;
  padding: 10px 12px; outline: none; border-radius: 2px;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input[type="submit"] {
  background: var(--red); color: #fff; width: auto; padding: 10px 26px;
  font-family: var(--fh); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer; border: none; border-radius: 2px;
  transition: background .2s; font-size: 13px;
}
.comment-form input[type="submit"]:hover { background: var(--red-d); }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
/* ════════════════════════════════════════════
   TABLET — 1024px and below
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .mm-hero { grid-template-columns: 1fr 1fr; }
  .mm-post-grid { grid-template-columns: repeat(2, 1fr); }
  .mm-video-grid { grid-template-columns: repeat(2, 1fr); }
  .mm-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ════════════════════════════════════════════
   MOBILE — 768px and below
   Key principle: article pages go full-width,
   sidebar hides, text is readable without zoom
════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Global ── */
  .mm-container { padding: 0 16px; }
  #mm-topbar { display: none; }

  /* ── Header ── */
  .mm-site-title { font-size: 26px; }
  #mm-header .mm-container { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .mm-custom-logo-link img { max-height: 80px; }
  .mm-header-search { flex: 1 1 100%; order: 3; }
  .mm-subscribe-btn { order: 2; }
  .mm-menu-toggle { display: block; }

  /* ── Mobile nav ── */
  #mm-primary-menu { display: none; flex-direction: column; width: 100%; }
  #mm-primary-menu.open { display: flex; }
  #mm-primary-menu > li > a {
    padding: 14px 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    border-bottom-color: var(--border) !important;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  #mm-primary-menu .sub-menu {
    position: static; box-shadow: none;
    border-top: none; display: block;
    border-left: 3px solid var(--red);
  }
  #mm-primary-menu .sub-menu li a { min-height: 44px; display: flex; align-items: center; }

  /* ── Homepage hero ── */
  .mm-hero { grid-template-columns: 1fr; }
  .mm-hero-main .mm-thumb { height: 260px; }
  .mm-hero-side { flex-direction: row; }
  .mm-hero-side-card .mm-thumb { height: 110px; }

  /* ── Content layout — THIS IS THE KEY FIX ──
     Single column, sidebar drops below on mobile,
     but on article pages sidebar is hidden entirely */
  .mm-content-wrap {
    display: block;          /* Drop grid entirely on mobile */
    margin: 0 auto;
    padding: 0;              /* Remove double padding */
    max-width: 100%;
  }
  #mm-main {
    padding: 16px 16px 0;   /* All padding on the main content area */
    width: 100%;
    box-sizing: border-box;
  }

  /* Hide sidebar completely on mobile article pages */
  .single .mm-sidebar,
  .single-post .mm-sidebar { display: none; }

  /* Show sidebar on homepage/archive (below content) */
  .home .mm-sidebar,
  .archive .mm-sidebar,
  .search .mm-sidebar {
    display: block;
    padding: 0 16px;
    order: 2;
  }

  /* ── Article page — mobile reading experience ── */
  .mm-single-header { margin-bottom: 16px; }

  .mm-single-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .mm-single-meta {
    font-size: 13px;
    gap: 8px;
  }

  /* Featured image — full width, natural height on mobile */
  .mm-single-hero {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin-left: 0;
    margin-right: 0;
    border-radius: 4px;
    object-fit: unset;
    max-height: 260px;
    border-radius: 0;        /* Full bleed, no radius */
    margin-bottom: 20px;
    margin-top: 16px;
  }

  /* Article text — comfortable mobile reading */
  .mm-post-content {
    font-size: 17px;
    line-height: 1.8;
  }
  .mm-post-content h2 {
    font-size: 20px;
    margin: 1.6rem 0 .8rem;
  }
  .mm-post-content h3 {
    font-size: 18px;
    margin: 1.4rem 0 .7rem;
  }
  .mm-post-content p { margin-bottom: 1.2rem; }
  .mm-post-content blockquote {
    padding: 14px 16px;
    margin: 1.4rem 0;
    font-size: 16px;
  }

  /* In-content images — full width, natural height, no cropping */
  .mm-post-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    border-radius: 4px;
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
    display: block;
    object-fit: unset;
  }
  .mm-post-content .wp-block-image {
    margin-left: 0;
    margin-right: 0;
  }
  .mm-post-content .wp-block-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    border-radius: 4px;
    margin-left: 0;
    margin-right: 0;
    object-fit: unset;
  }
  /* Kill floats on mobile — stack vertically */
  .mm-post-content .wp-block-image.alignleft,
  .mm-post-content .wp-block-image.alignright {
    float: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .mm-post-content .wp-block-image.alignleft img,
  .mm-post-content .wp-block-image.alignright img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
  }

  /* Featured hero image — full width, natural height */
  .mm-single-hero {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin-left: 0;
    margin-right: 0;
    border-radius: 4px;
    margin-bottom: 20px;
    margin-top: 16px;
    object-fit: unset;
  }

  /* Newsletter inline widget — full width on mobile */
  .mm-nl-wrap { margin: 20px -16px; border-radius: 0; border-left: none; border-right: none; }
  .mm-nl-inner { flex-direction: column; gap: 16px; }
  .mm-nl-form { flex-direction: column; }
  .mm-nl-email, .mm-nl-name { min-width: 0; width: 100%; font-size: 16px !important; } /* 16px prevents iOS auto-zoom */
  .mm-nl-btn { width: 100%; padding: 12px; font-size: 14px; }

  /* Related posts */
  .mm-post-grid { grid-template-columns: 1fr; gap: 16px; }
  .mm-card-wide { grid-template-columns: 1fr; }
  .mm-card-wide .mm-thumb { min-height: 180px; }
  .mm-video-grid { grid-template-columns: 1fr; }

  /* Footer */
  .mm-promo-banner { flex-direction: column; padding: 20px 16px; text-align: center; }
  .mm-footer-grid { grid-template-columns: 1fr; }
  .mm-footer-bottom { flex-direction: column; text-align: center; }

  /* Touch targets */
  .mm-card-title { line-height: 1.4; }
  .mm-subscribe-btn { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ════════════════════════════════════════════
   SMALL PHONES — 480px and below
════════════════════════════════════════════ */
@media (max-width: 480px) {
  .mm-container { padding: 0 14px; }
  #mm-main { padding: 14px 14px 0; }

  .mm-site-title { font-size: 20px; }
  .mm-hero-side { flex-direction: column; }
  .mm-hero-side-card .mm-thumb { height: 120px; }
  .mm-hero-content h1 { font-size: 19px; }

  /* Article */
  .mm-single-title { font-size: 21px; }
  .mm-single-hero {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin-left: 0;
    object-fit: unset;
  }
  .mm-post-content { font-size: 16px; line-height: 1.75; }
  .mm-post-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin-left: 0;
    object-fit: unset;
  }
  .mm-post-content .wp-block-image {
    margin-left: 0;
    margin-right: 0;
  }
  .mm-nl-wrap { margin: 16px 0; }

  /* Cards */
  .mm-post-grid { gap: 12px; }
  #mm-primary-menu > li > a { font-size: 15px; padding: 14px; }
}

/* Ad zone centering fix */
.mm-ad-zone { display:inline-block; }

/* ─── ACCESSIBILITY UTILITIES ─── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--dk2);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
  clip: auto !important;
  clip-path: none;
  color: var(--white);
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Minimum touch target size — WCAG 2.5.5 */
.mm-subscribe-btn,
.mm-menu-toggle,
.mm-card-thumb-wrap,
#mm-primary-menu > li > a {
  min-height: 44px;
}

/* High contrast mode support */
@media (forced-colors: active) {
  .mm-single-hero,
  .mm-thumb { forced-color-adjust: none; }
  a:focus-visible { outline: 3px solid ButtonText; }
}

/* ════════════════════════════════════
   PROJECTS — Archive & Single
════════════════════════════════════ */

/* ── Archive Hero ── */
.mm-projects-hero {
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.mm-projects-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(180,0,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.mm-projects-hero-inner { position: relative; }
.mm-projects-eyebrow {
  display: inline-block;
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(180,0,0,0.3);
  border-radius: 2px;
}
.mm-projects-title {
  font-family: var(--fh);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.mm-projects-subtitle {
  font-family: var(--fb);
  font-size: 16px;
  color: #888;
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

/* ── Archive Grid ── */
.mm-projects-wrap { padding: 48px 0 80px; background: var(--bg); }

.mm-project-card {
  margin-bottom: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: #0e0e0e;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mm-project-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }

.mm-project-card-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
  text-decoration: none;
  color: inherit;
}
.mm-project-card--flip .mm-project-card-link {
  direction: rtl;
}
.mm-project-card--flip .mm-project-card-image,
.mm-project-card--flip .mm-project-card-content {
  direction: ltr;
}

/* Image Side */
.mm-project-card-image {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}
.mm-project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.mm-project-card:hover .mm-project-card-image img { transform: scale(1.04); }
.mm-project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, #0e0e0e 100%);
  pointer-events: none;
}
.mm-project-card--flip .mm-project-card-overlay {
  background: linear-gradient(270deg, transparent 50%, #0e0e0e 100%);
}
.mm-project-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-family: var(--fh);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Status Badge */
.mm-project-status {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 2;
}
.mm-project-status--active       { background: var(--red); color: #fff; }
.mm-project-status--complete     { background: #1a6b3a; color: #7fffaa; }
.mm-project-status--on-hold      { background: #333; color: #aaa; }
.mm-project-status--coming-soon  { background: #1a1a2e; color: #6c9fff; }

/* Content Side */
.mm-project-card-content {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.mm-project-vehicle {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}
.mm-project-name {
  font-family: var(--fh);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0;
}
.mm-project-desc {
  font-family: var(--fb);
  font-size: 15px;
  color: #888;
  line-height: 1.6;
  margin: 0;
  max-width: 400px;
}
.mm-project-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.mm-project-meta-item {
  font-family: var(--fb);
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mm-project-read-more {
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: color 0.2s, gap 0.2s;
}
.mm-project-card:hover .mm-project-read-more { color: var(--red); gap: 10px; }

.mm-projects-empty {
  text-align: center;
  padding: 80px 20px;
  color: #555;
  font-family: var(--fb);
}

/* ── Single Project Hero ── */
.mm-proj-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background: #050505;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.mm-proj-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%);
}
.mm-proj-hero-inner {
  position: relative;
  z-index: 2;
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mm-proj-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.mm-proj-back:hover { color: var(--white); }
.mm-proj-vehicle-label {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}
.mm-proj-title {
  font-family: var(--fh);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -1px;
  margin: 0;
}

/* ── Single Project Body ── */
.mm-proj-body { padding: 56px 0 80px; }

/* Intro — about + optional specs */
.mm-proj-intro {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1a1a1a;
}
.mm-proj-intro--with-specs {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
.mm-proj-intro--full { max-width: 720px; }

.mm-proj-section-label {
  font-family: var(--fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1a1a1a;
}
.mm-proj-description {
  font-family: var(--fb);
  font-size: 15px;
  color: #888;
  line-height: 1.75;
}
.mm-proj-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mm-proj-spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #111;
  gap: 12px;
}
.mm-spec-label {
  font-family: var(--fb);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #444;
  flex-shrink: 0;
}
.mm-spec-val {
  font-family: var(--fb);
  font-size: 13px;
  color: var(--white);
  text-align: right;
}

/* ── Coverage Section ── */
.mm-proj-coverage-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 6px;
}
.mm-proj-coverage-title {
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.mm-proj-coverage-count {
  font-family: var(--fb);
  font-size: 12px;
  color: #444;
}
.mm-proj-coverage-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}

/* Coverage Cards — wide banner style */
.mm-proj-cov-card {
  border-radius: 4px;
  overflow: hidden;
  background: #0e0e0e;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mm-proj-cov-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }

.mm-proj-cov-card-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
}
.mm-proj-cov-card--flip .mm-proj-cov-card-link { direction: rtl; }
.mm-proj-cov-card--flip .mm-proj-cov-image,
.mm-proj-cov-card--flip .mm-proj-cov-content { direction: ltr; }

.mm-proj-cov-image {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.mm-proj-cov-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.mm-proj-cov-card:hover .mm-proj-cov-image img { transform: scale(1.04); }
.mm-proj-cov-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, #0e0e0e 100%);
  pointer-events: none;
}
.mm-proj-cov-card--flip .mm-proj-cov-overlay {
  background: linear-gradient(270deg, transparent 50%, #0e0e0e 100%);
}
.mm-proj-cov-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: #1a1a1a;
}
.mm-proj-cov-content {
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.mm-proj-cov-cat {
  font-family: var(--fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}
.mm-proj-cov-title {
  font-family: var(--fh);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.3px;
  line-height: 1.15;
  margin: 0;
}
.mm-proj-cov-excerpt {
  font-family: var(--fb);
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  margin: 0;
}
.mm-proj-cov-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--fb);
  font-size: 12px;
  color: #444;
  margin-top: 6px;
}
.mm-proj-cov-readmore {
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}
.mm-proj-cov-card:hover .mm-proj-cov-readmore { color: var(--red); gap: 10px; }

.mm-proj-no-articles {
  padding: 56px 0;
  color: #555;
  font-family: var(--fb);
  font-size: 14px;
  line-height: 1.7;
}
.mm-proj-admin-tip { color: #444; font-size: 13px; }
.mm-proj-admin-tip strong { color: var(--red); }
.mm-proj-edit-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: #6c9fff;
  text-decoration: none;
}
.mm-proj-admin-bar {
  margin-top: 48px;
  padding: 12px 16px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--fb);
  font-size: 12px;
  color: #444;
}
.mm-proj-admin-bar a { color: #6c9fff; text-decoration: none; }
.mm-proj-admin-bar code { background: #111; padding: 2px 6px; border-radius: 2px; color: var(--red); font-size: 11px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .mm-project-card-link { grid-template-columns: 1fr; min-height: auto; }
  .mm-project-card--flip .mm-project-card-link { direction: ltr; }
  .mm-project-card-image { min-height: 220px; }
  .mm-project-card-overlay { background: linear-gradient(to top, #0e0e0e 0%, transparent 60%) !important; }
  .mm-project-card-content { padding: 28px 24px 32px; }
  .mm-proj-intro--with-specs { grid-template-columns: 1fr; gap: 32px; }
  .mm-proj-cov-card-link { grid-template-columns: 1fr; min-height: auto; }
  .mm-proj-cov-card--flip .mm-proj-cov-card-link { direction: ltr; }
  .mm-proj-cov-image { min-height: 200px; }
  .mm-proj-cov-overlay { background: linear-gradient(to top, #0e0e0e 0%, transparent 60%) !important; }
  .mm-proj-cov-content { padding: 24px 20px 28px; }
}
@media (max-width: 600px) {
  .mm-projects-title { font-size: 36px; }
  .mm-proj-title { font-size: 32px; }
  .mm-proj-cov-title { font-size: 18px; }
}

/* ════════════════════════════════════
   LATEST PAGE (home.php) — Dense grid
════════════════════════════════════ */

.mm-latest-page { padding: 24px 0 64px; }

/* Header */
.mm-lp-header { padding: 16px 0 12px; border-bottom: 1px solid #1a1a1a; margin-bottom: 0; }
.mm-lp-title {
  font-family: var(--fh);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
  line-height: 1;
}
.mm-lp-sub {
  font-family: var(--fb);
  font-size: 13px;
  color: #555;
  margin: 0;
}

/* Filter bar */
.mm-lp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mm-lp-filter {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  padding: 12px 18px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.mm-lp-filter:hover,
.mm-lp-filter.is-active { color: var(--white); border-bottom-color: var(--red); }

/* Grid — 3 col, tight */
.mm-lp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

/* Card */
.mm-lp-card { display: flex; flex-direction: column; }

.mm-lp-card-img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
  margin-bottom: 10px;
}
.mm-lp-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.mm-lp-card:hover .mm-lp-card-img-wrap img { transform: scale(1.04); }
.mm-lp-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
}

.mm-lp-card-body { display: flex; flex-direction: column; gap: 5px; }

.mm-lp-card-cat {
  font-family: var(--fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  line-height: 1;
}
.mm-lp-card-cat:hover { color: var(--white); }

.mm-lp-card-title {
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: 0.2px;
  display: block;
  transition: color 0.15s;
}
.mm-lp-card-title:hover { color: var(--red); }

.mm-lp-card-meta {
  font-family: var(--fb);
  font-size: 11px;
  color: #555;
  line-height: 1;
}

/* Pagination */
.mm-lp-pagination { margin-top: 40px; }
.mm-lp-empty { color: #555; font-family: var(--fb); padding: 48px 0; text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
  .mm-lp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mm-lp-grid { grid-template-columns: 1fr; gap: 20px; }
  .mm-lp-title { font-size: 24px; }
  .mm-latest-page { padding: 16px 0 48px; }
}

/* ════════════════════════════════════
   RACING SERIES — Archive & Single
════════════════════════════════════ */

.mm-racing-hero {
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.mm-racing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(180,0,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.mm-racing-eyebrow {
  display: inline-block;
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(180,0,0,0.3);
  border-radius: 2px;
}
.mm-racing-title {
  font-family: var(--fh);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.mm-racing-subtitle {
  font-family: var(--fb);
  font-size: 16px;
  color: #888;
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}

/* Archive grid */
.mm-racing-wrap { padding: 48px 0 80px; background: var(--bg); }

/* Series cards — same wide banner as projects */
.mm-race-card {
  margin-bottom: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: #0e0e0e;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mm-race-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,.5); }

.mm-race-card-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
}
.mm-race-card--flip .mm-race-card-link { direction: rtl; }
.mm-race-card--flip .mm-race-card-image,
.mm-race-card--flip .mm-race-card-content { direction: ltr; }

.mm-race-card-image {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.mm-race-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.mm-race-card:hover .mm-race-card-image img { transform: scale(1.04); }
.mm-race-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, #0e0e0e 100%);
  pointer-events: none;
}
.mm-race-card--flip .mm-race-card-overlay {
  background: linear-gradient(270deg, transparent 50%, #0e0e0e 100%);
}
.mm-race-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: #1a1a1a;
}

.mm-race-card-content {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.mm-race-badge {
  display: inline-block;
  font-family: var(--fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 4px 10px;
  border-radius: 2px;
  width: fit-content;
}
.mm-race-series-name {
  font-family: var(--fh);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0;
}
.mm-race-card-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mm-race-count {
  font-family: var(--fb);
  font-size: 12px;
  color: #555;
}
.mm-race-follow {
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}
.mm-race-card:hover .mm-race-follow { color: var(--red); gap: 10px; }

.mm-racing-empty {
  text-align: center;
  padding: 80px 20px;
  color: #555;
  font-family: var(--fb);
}

/* Single series */
.mm-racing-body { padding: 48px 0 80px; }
.mm-race-badge-hero {
  display: inline-block;
  font-family: var(--fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 4px 10px;
  border-radius: 2px;
}
.mm-race-hero-count {
  font-family: var(--fb);
  font-size: 13px;
  color: #555;
}
.mm-racing-desc {
  font-family: var(--fb);
  font-size: 15px;
  color: #888;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1a1a1a;
}
.mm-racing-coverage { }

/* Responsive */
@media (max-width: 900px) {
  .mm-race-card-link { grid-template-columns: 1fr; min-height: auto; }
  .mm-race-card--flip .mm-race-card-link { direction: ltr; }
  .mm-race-card-image { min-height: 200px; }
  .mm-race-card-overlay { background: linear-gradient(to top, #0e0e0e 0%, transparent 60%) !important; }
  .mm-race-card-content { padding: 24px 20px 28px; }
}
@media (max-width: 600px) {
  .mm-racing-title { font-size: 36px; }
}

/* ════════════════════════════════════
   NETWORK BAR
════════════════════════════════════ */
#mm-network-bar {
  background: #050505;
  border-top: 1px solid #1a1a1a;
  padding: 14px 0;
}
.mm-network-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.mm-network-label {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444;
  white-space: nowrap;
  flex-shrink: 0;
}
.mm-network-sites {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mm-network-site {
  display: flex;
  align-items: center;
  opacity: 0.55;
  transition: opacity 0.2s;
  text-decoration: none;
}
.mm-network-site:hover { opacity: 1; }
.mm-network-site img {
  height: 24px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}
.mm-network-site-text {
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}
@media (max-width: 600px) {
  .mm-network-inner { gap: 12px; }
  .mm-network-sites { gap: 16px; }
  .mm-network-site img { height: 18px; }
}

/* ════════════════════════════════════
   EVENT COVERAGE — Archive & Single
════════════════════════════════════ */

.mm-ec-hero {
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.mm-ec-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(180,0,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.mm-ec-eyebrow {
  display: inline-block;
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(180,0,0,0.3);
  border-radius: 2px;
}
.mm-ec-title {
  font-family: var(--fh);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.mm-ec-subtitle {
  font-family: var(--fb);
  font-size: 16px;
  color: #888;
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}

.mm-ec-wrap { padding: 48px 0 80px; background: var(--bg); }

/* Cards */
.mm-ec-card {
  margin-bottom: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: #0e0e0e;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mm-ec-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,.5); }

.mm-ec-card-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
}
.mm-ec-card--flip .mm-ec-card-link { direction: rtl; }
.mm-ec-card--flip .mm-ec-card-image,
.mm-ec-card--flip .mm-ec-card-content { direction: ltr; }

.mm-ec-card-image {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.mm-ec-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.mm-ec-card:hover .mm-ec-card-image img { transform: scale(1.04); }
.mm-ec-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, #0e0e0e 100%);
  pointer-events: none;
}
.mm-ec-card--flip .mm-ec-card-overlay {
  background: linear-gradient(270deg, transparent 50%, #0e0e0e 100%);
}
.mm-ec-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: #1a1a1a;
}
.mm-ec-card-content {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.mm-ec-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}
.mm-ec-hero-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.mm-ec-event-name {
  font-family: var(--fh);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0;
}
.mm-ec-card-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mm-ec-count {
  font-family: var(--fb);
  font-size: 12px;
  color: #555;
}
.mm-ec-follow {
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}
.mm-ec-card:hover .mm-ec-follow { color: var(--red); gap: 10px; }
.mm-ec-empty {
  text-align: center;
  padding: 80px 20px;
  color: #555;
  font-family: var(--fb);
}

@media (max-width: 900px) {
  .mm-ec-card-link { grid-template-columns: 1fr; min-height: auto; }
  .mm-ec-card--flip .mm-ec-card-link { direction: ltr; }
  .mm-ec-card-image { min-height: 200px; }
  .mm-ec-card-overlay { background: linear-gradient(to top, #0e0e0e 0%, transparent 60%) !important; }
  .mm-ec-card-content { padding: 24px 20px 28px; }
}
@media (max-width: 600px) {
  .mm-ec-title { font-size: 36px; }
}

/* ════════════════════════════════════════════
   IMAGE LIGHTBOX
════════════════════════════════════════════ */
.mm-lightbox-trigger {
  cursor: zoom-in;
  position: relative;
  display: block;
}
.mm-lightbox-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background .2s;
  border-radius: 4px;
  pointer-events: none;
}
.mm-lightbox-trigger:hover::after {
  background: rgba(200,16,46,.08);
}

#mm-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.92);
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
#mm-lightbox-overlay.open {
  display: flex;
}
#mm-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0,0,0,.8);
  cursor: default;
  object-fit: contain;
  display: block;
}
#mm-lightbox-close {
  position: fixed;
  top: 16px;
  right: 18px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  transition: background .15s;
}
#mm-lightbox-close:hover { background: rgba(200,16,46,.6); }
#mm-lightbox-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #aaa;
  font-size: 13px;
  font-style: italic;
  text-align: center;
  max-width: 80vw;
  pointer-events: none;
}

/* ════════════════════════════════════════════
   SUBMIT YOUR RIDE — Page Template
════════════════════════════════════════════ */
.mm-submit-wrap { background: var(--black); min-height: 60vh; }

/* Hero */
.mm-submit-hero {
  background: linear-gradient(135deg, var(--dk) 0%, #1a0508 100%);
  border-bottom: 3px solid var(--red);
  padding: 72px 0 56px;
}
.mm-submit-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.mm-submit-eyebrow {
  font-family: var(--fh);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.mm-submit-title {
  font-family: var(--fh);
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.mm-submit-title span { color: var(--red); }
.mm-submit-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 36px;
}
.mm-submit-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mm-submit-stat {
  font-family: var(--fh);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.mm-submit-stat span {
  display: block;
  color: var(--white);
  font-size: 15px;
  margin-bottom: 2px;
}
.mm-submit-stat-div {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Form wrapper */
.mm-submit-form-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.mm-submit-form-inner {}

/* Error box */
.mm-submit-errors {
  background: #2a0a0a;
  border: 1px solid #7b1d1d;
  border-left: 4px solid var(--red);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 28px;
  color: #ffaaaa;
  font-size: 14px;
}
.mm-submit-errors ul {
  margin: 8px 0 0 18px;
}
.mm-submit-errors li { margin-bottom: 4px; }

/* Sections */
.mm-sf-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.mm-sf-section:last-of-type { border-bottom: none; }
.mm-sf-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--fh);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 24px;
}
.mm-sf-num {
  font-size: 12px;
  background: var(--red);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fb);
  font-weight: 700;
  flex-shrink: 0;
}

/* Grids */
.mm-sf-grid { display: grid; gap: 16px; }
.mm-sf-grid-2 { grid-template-columns: 1fr 1fr; }
.mm-sf-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.mm-sf-field-full { grid-column: 1 / -1; }

/* Fields */
.mm-sf-field { display: flex; flex-direction: column; gap: 7px; }
.mm-sf-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.mm-sf-req { color: var(--red); }
.mm-sf-field input,
.mm-sf-field textarea,
.mm-sf-field select {
  background: var(--dk2);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--fb);
  font-size: 15px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.mm-sf-field input:focus,
.mm-sf-field textarea:focus,
.mm-sf-field select:focus {
  outline: none;
  border-color: var(--red);
}
.mm-sf-field input::placeholder,
.mm-sf-field textarea::placeholder { color: #555; }
.mm-sf-field textarea { resize: vertical; line-height: 1.65; }
.mm-sf-hint {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* Photo zone */
.mm-sf-photo-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 6px;
  transition: border-color .15s, background .15s;
  overflow: hidden;
}
.mm-sf-photo-zone.dragging {
  border-color: var(--red);
  background: rgba(200,16,46,.05);
}
.mm-sf-photo-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.mm-sf-photo-label {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.mm-sf-photo-icon { font-size: 36px; flex-shrink: 0; }
.mm-sf-photo-text strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.mm-sf-photo-text span {
  font-size: 12px;
  color: #666;
}
.mm-sf-photo-preview {
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 12px;
}
.mm-sf-photo-thumb {
  aspect-ratio: 4/3;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
}

/* Submit row */
.mm-sf-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  flex-wrap: wrap;
}
.mm-sf-privacy {
  font-size: 12px;
  color: #555;
  max-width: 400px;
  line-height: 1.6;
  margin: 0;
}
.mm-sf-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.mm-sf-submit-btn:hover { background: var(--red-d); transform: translateY(-1px); }
.mm-sf-submit-btn:active { transform: translateY(0); }

/* Success state */
.mm-submit-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 48px 24px;
}
.mm-submit-success-inner {
  text-align: center;
  max-width: 480px;
}
.mm-submit-checkmark {
  font-size: 64px;
  margin-bottom: 20px;
}
.mm-submit-success-inner h2 {
  font-family: var(--fh);
  font-size: 36px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.mm-submit-success-inner p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.mm-submit-back-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 3px;
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .15s;
}
.mm-submit-back-btn:hover { background: var(--red-d); color: #fff; }

/* Mobile */
@media (max-width: 768px) {
  .mm-submit-hero { padding: 48px 0 40px; }
  .mm-sf-grid-2 { grid-template-columns: 1fr; }
  .mm-sf-grid-3 { grid-template-columns: 1fr 1fr; }
  .mm-submit-stats { gap: 16px; }
  .mm-sf-photo-preview { grid-template-columns: repeat(3, 1fr); }
  .mm-sf-submit-row { flex-direction: column; align-items: stretch; }
  .mm-sf-submit-btn { justify-content: center; }
}
@media (max-width: 480px) {
  .mm-sf-grid-3 { grid-template-columns: 1fr; }
  .mm-sf-photo-label { flex-direction: column; text-align: center; gap: 10px; }
}
