/* WordPress additions on top of the design's page styles */
[hidden] { display: none !important; }
.mmc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* logged-in admin bar sits above the fixed navbar */
body.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .navbar { top: 46px; } }

/* contact form reply */
.contact-note { margin: 4px 0 0; font: 500 16px "DM Sans", sans-serif; color: #fff; }
.contact-note.is-error { color: #ffd9d9; }

/* About: intro = page content */
.ab-about .ab-content p { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: #393c41; }

/* product intro text (optional, from the product's content) */
.mmc-product-intro { padding: 56px max(24px, calc((100% - 1200px) / 2)) 0; background: #fff; }

/* blog + regular pages */
.mmc-posts { padding: 72px max(24px, calc((100% - 1200px) / 2)); background: #fff; }
.mmc-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.mmc-post-card { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #f4f4f4; }
.mmc-post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e7e7e7; }
.mmc-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mmc-post-card:hover .mmc-post-thumb img { transform: scale(1.04); }
.mmc-post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.mmc-post-body h2 { margin: 0; font-weight: 500; font-size: 22px; letter-spacing: -.02em; line-height: 1.25; }
.mmc-post-body h2 a { color: #171a20; text-decoration: none; }
.mmc-post-body p { margin: 0; font-size: 16px; line-height: 1.55; color: #5c5e62; }
.mmc-post-meta { margin: 0; font: 400 13px "Fira Code", monospace; letter-spacing: .06em; color: #878787; text-transform: uppercase; }
.mmc-post-meta a { color: inherit; }
.mmc-post-more { margin-top: 6px; font: 500 16px "DM Sans", sans-serif; color: #171a20; text-decoration: none; }
.mmc-post-more:hover { text-decoration: underline; }
.mmc-pagination { margin-top: 40px; }
.mmc-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.mmc-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; background: #f4f4f4; color: #171a20; text-decoration: none; }
.mmc-pagination .page-numbers.current { background: #fec401; }
.mmc-empty { font-size: 18px; color: #5c5e62; }

.mmc-article { max-width: 820px; margin: 0 auto; padding: 64px 24px 80px; background: #fff; color: #171a20; }
.mmc-view-content main { background: #fff; }
.mmc-entry { font-size: 18px; line-height: 1.7; color: #393c41; }
.mmc-entry > * + * { margin-top: 1.1em; }
.mmc-entry h2, .mmc-entry h3, .mmc-entry h4 { color: #171a20; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; margin-top: 1.8em; }
.mmc-entry h2 { font-size: 30px; } .mmc-entry h3 { font-size: 24px; }
.mmc-entry a { color: #171a20; text-decoration-color: #fec401; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mmc-entry img, .mmc-entry video, .mmc-entry iframe { max-width: 100%; height: auto; border-radius: 10px; }
.mmc-entry blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid #fec401; color: #171a20; }
.mmc-entry table { width: 100%; border-collapse: collapse; }
.mmc-entry th, .mmc-entry td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; text-align: left; }
.mmc-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #e5e5e5; font: 500 16px "DM Sans", sans-serif; }
.mmc-post-nav a { color: #171a20; text-decoration: none; }
.mmc-404 { text-align: center; font-size: 18px; color: #393c41; }
.alignwide { max-width: 1100px; } .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Header dropdowns (child items in Appearance → Menus) ---------- */
.nav-item-sub { position: relative; }
.nav-sub-head { display: flex; align-items: center; }
.nav-sub-caret { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 44px; margin-left: -12px; padding: 0; border: 0; background: none; color: #1e1e1e; cursor: pointer; }
.nav-item-sub.is-open .nav-chev { transform: rotate(180deg); }
.nav-item-sub.is-open > .nav-sub-head > .nav-link::after { transform: scaleX(1); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; margin: 0; padding: 10px 0; list-style: none; background: #fff; border: 1px solid #f0eded; border-radius: 10px; box-shadow: 0 18px 30px rgba(0, 0, 0, .1); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; z-index: 5; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
.nav-item-sub.is-open .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-sub-link { display: block; width: 100%; padding: 9px 20px; border: 0; background: none; text-align: left; font: 400 16px/1.35 "Golos Text", "Segoe UI", system-ui, sans-serif; color: #1e1e1e; text-decoration: none; white-space: nowrap; cursor: pointer; }
.nav-sub-link:hover, .nav-sub-link[aria-current="page"] { background: #fff8dc; }
.nav-sub-link:focus-visible, .nav-sub-caret:focus-visible { outline: 2px solid #fec401; outline-offset: -2px; }
.nav-sub-3 { margin: 0 0 4px; padding: 0; list-style: none; }
.nav-sub-3 .nav-sub-link { padding-left: 34px; font-size: 15px; color: #5c5e62; }
@media (prefers-reduced-motion: reduce) { .nav-sub { transition: none; } }
@media (max-width: 1100px) {
  .nav-sub-head { justify-content: space-between; }
  .nav-sub-head > .nav-link { flex: 1 1 auto; }
  .nav-sub-caret { width: 44px; height: 52px; margin: 0; }
  .nav-sub { position: static; display: none; min-width: 0; padding: 0 0 12px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav-sub::before { display: none; }
  .nav-item-sub.is-open .nav-sub { display: block; }
  .nav-sub-link { padding: 9px 0 9px 14px; white-space: normal; }
}

/* ---------- Products ---------- */
.product-content .product-desc { margin: 8px 0 0; max-width: 520px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mmc-product-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 -12px; }
.mmc-product-cats a { padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .18); color: #fff; font: 500 13px "Fira Code", monospace; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; backdrop-filter: blur(6px); }
.mmc-product-cats a:hover { background: #fec401; color: #1e1e1e; }
.mmc-cat-intro { margin-bottom: 28px; max-width: 820px; }
.mmc-cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.mmc-cat-filter a { padding: 9px 18px; border-radius: 99px; background: #f4f4f4; color: #171a20; font: 500 15px "DM Sans", sans-serif; text-decoration: none; }
.mmc-cat-filter a:hover { background: #ececec; }
.mmc-cat-filter a[aria-current="page"] { background: #fec401; }
.mmc-product-tile .mmc-post-thumb { aspect-ratio: 4 / 3; }
.mmc-tile-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: auto; }
.mmc-product-tile .mmc-post-body { flex: 1 1 auto; }
/* many menu items: tighter spacing first, then the last ones fold into "More" (js/nav-sub.js) */
.navbar.nav-tight .nav-list { gap: 0; }
.navbar.nav-tight .nav-link { padding: 0 10px; font-size: 15px; }
.navbar.nav-tight .nav-link::after { left: 10px; right: 10px; }
.navbar.nav-tight .nav-sub-caret { margin-left: -8px; }
.nav-sub-right { left: auto; right: 0; }
.nav-sub-link.is-child { padding-left: 34px; font-size: 15px; color: #5c5e62; }
.navbar.nav-crowded .nav-desk, .navbar.nav-crowded .nav-sep { display: none; }



/*=== video image poster image ====*/
/* ---- Video section: light placeholder when there's no cover image ---- */

/* Hide images with no source (stops the broken-image look) */
.tlp-yt img[src=""],
.tlp-yt img:not([src]) {
  display: none;
}

/* Main player: light panel instead of black */
.tlp-yt-frame:has(img[src=""]),
.tlp-yt-frame:has(img:not([src])),
.tlp-yt-play:has(img[src=""]),
.tlp-yt-play:has(img:not([src])) {
  background:
    radial-gradient(120% 90% at 50% 40%, #ffffff 0%, transparent 60%),
    linear-gradient(135deg, #eef2f6 0%, #dde4ec 100%);
}

/* Make the play button stand out on the light background */
.tlp-yt-play:has(img[src=""]) .vplay,
.tlp-yt-play:has(img:not([src])) .vplay {
  background: #fff;
  box-shadow: 0 8px 24px -8px rgba(20, 30, 45, .35), 0 0 0 1px rgba(20, 30, 45, .08);
}

/* Thumbnails: light tile with dark label */ 
.tlp-yt-thumb:has(img[src=""]),
.tlp-yt-thumb:has(img:not([src])) {
  background: linear-gradient(135deg, #f1f4f8 0%, #e2e8ef 100%);
  border: 1px solid #d6dde6;
}
.tlp-yt-thumb:has(img[src=""]) span,
.tlp-yt-thumb:has(img:not([src])) span {
  color: #1e1e1e;
  text-shadow: none;
  background: none;
}
.tlp-yt-thumb.is-on:has(img[src=""]),
.tlp-yt-thumb.is-on:has(img:not([src])) {
  border-color: #1e1e1e;
}