/* Services menu (header): a wide panel under the header. Four services as large serif rows (number, name, one line), a picture on the right
   that changes with the row you point at or focus (pure CSS, :has), and a small "not sure?" line at the bottom.
   Shared by the site pages (.nav-shared) and the pricing and service pages (.reference-nav). On phones it falls back to a plain list.
   The :not(#x) only raises the specificity above the older dropdown rules in nav-shared.css and proto/navigation.css. */
.nav-services:has(.mm):not(#x){position:static;animation-fill-mode:backwards;}   /* no lingering transform from the header's entrance animation: it would turn this item into the panel's containing block */
.services-dropdown.mm:not(#x){position:absolute;top:calc(100% + 0.5rem);left:50%;translate:-50% 0;width:min(52rem,calc(100% - 2rem));box-sizing:border-box;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-areas:"list pic" "foot foot";gap:0.5rem 0.75rem;padding:0.75rem;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-float);z-index:50;}
.services-dropdown.mm:not(#x)[hidden]{display:none;}
.mm::before{content:"";position:absolute;left:0;right:0;top:-2.5rem;height:2.5rem;}   /* keeps the menu open while the pointer crosses the gap under the header */
@media(prefers-reduced-motion:no-preference){
  @keyframes mm-in{from{opacity:0;transform:translateY(-0.5rem);}to{opacity:1;transform:none;}}
  .services-dropdown.mm:not(#x):not([hidden]){animation:mm-in .32s cubic-bezier(.22,1,.36,1);}
}
.mm-list{grid-area:list;display:grid;align-content:start;}
/* Two-column variant (e.g. Products: Templates + Framer plugins) -- same list/item styling, one extra column. */
.services-dropdown.mm.mm-2col:not(#x){grid-template-columns:minmax(0,4fr) minmax(0,4fr) minmax(0,5fr);grid-template-areas:"list list2 pic" "foot foot foot";width:min(60rem,calc(100% - 2rem));}
.mm-list2{grid-area:list2;display:grid;align-content:start;}
.mm-group{display:block;padding:0.25rem 1rem 0.375rem;font-size:var(--fs-pill);letter-spacing:var(--sf-ls);text-transform:uppercase;color:var(--muted);}
/* Not built yet: shown so the column isn't empty, but not a link -- no hover state, no arrow. */
.mm-item--soon{cursor:default;opacity:.55;}
.mm-item--soon:focus-visible{background:none!important;}
@media (hover: hover){
.mm-item--soon:hover{background:none!important;}}
@media(max-width:999px){
  .services-dropdown.mm.mm-2col:not(#x){grid-template-areas:"list" "list2";}
  .mm-list2{display:grid;}
}
.mm .mm-item:not(#x){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:0.75rem;padding:0.8125rem 1rem;border-radius:0.75rem;white-space:normal;color:var(--ink);transition:opacity .3s cubic-bezier(.22,1,.36,1);}
/* hover: no background; the other rows step back and the circle of the row you point at fills orange */
.mm .mm-item:not(#x):focus-visible{background:none;opacity:1;}
@media (hover: hover){
.mm .mm-item:not(#x):hover{background:none;opacity:1;}}   /* overrides the older grey hover background and the old 50% fade of the header links */
.mm-list:has(.mm-item:focus-visible) .mm-item:not(:focus-visible){opacity:.4;}
@media (hover: hover){
.mm-list:has(.mm-item:hover) .mm-item:not(:hover){opacity:.4;}}
.mm .mm-item:not(#x):focus-visible{outline:0.125rem solid var(--red);outline-offset:-0.125rem;}
.mm-t{display:block;font-family:var(--serif);font-weight:400;font-size:var(--fs-list);line-height:1.15;letter-spacing:var(--sf-ls);}
.mm-d{display:block;margin-top:0.1875rem;font-size:var(--fs-pill);line-height:1.4;color:var(--muted);}
.mm-go{display:grid;place-items:center;width:2rem;height:2rem;border:1px solid var(--line);border-radius:50%;font-size:var(--fs-pill);transition:background-color .3s,border-color .3s,color .3s;}
.mm .mm-item:focus-visible .mm-go{background:var(--red);border-color:var(--red);color:var(--white);}
@media (hover: hover){
.mm .mm-item:hover .mm-go{background:var(--red);border-color:var(--red);color:var(--white);}}
.mm .mm-item[aria-current="page"] .mm-t{color:var(--red);}
.mm-pic{grid-area:pic;position:relative;overflow:hidden;border-radius:0.875rem;background:var(--night);min-height:15rem;}
.mm-img{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .4s;}
.mm-img img{display:block;width:100%;height:100%;object-fit:cover;}
.mm-img figcaption{position:absolute;left:0.75rem;bottom:0.75rem;display:inline-flex;align-items:center;height:2.125rem;padding:0 0.875rem;border-radius:62.4375rem;background:var(--white);color:var(--ink);font-size:var(--fs-pill);}
.mm:not(:has(.mm-item:is(:hover,:focus-visible))) .mm-img[data-i="1"],.mm:has(.mm-item[data-i="1"]:focus-visible) .mm-img[data-i="1"],.mm:has(.mm-item[data-i="2"]:focus-visible) .mm-img[data-i="2"],.mm:has(.mm-item[data-i="3"]:focus-visible) .mm-img[data-i="3"],.mm:has(.mm-item[data-i="4"]:focus-visible) .mm-img[data-i="4"],.mm:has(.mm-item[data-i="5"]:focus-visible) .mm-img[data-i="5"],.mm:has(.mm-item[data-i="6"]:focus-visible) .mm-img[data-i="6"]{opacity:1;}
@media (hover: hover){
.mm:has(.mm-item[data-i="1"]:hover) .mm-img[data-i="1"],.mm:has(.mm-item[data-i="2"]:hover) .mm-img[data-i="2"],.mm:has(.mm-item[data-i="3"]:hover) .mm-img[data-i="3"],.mm:has(.mm-item[data-i="4"]:hover) .mm-img[data-i="4"],.mm:has(.mm-item[data-i="5"]:hover) .mm-img[data-i="5"],.mm:has(.mm-item[data-i="6"]:hover) .mm-img[data-i="6"]{opacity:1;}}
.mm-foot{grid-area:foot;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.75rem 1rem 0.25rem;border-top:1px solid var(--line);font-size:var(--fs-text);line-height:var(--lh-text);color:var(--muted);}
@media(max-width:999px){
  .services-dropdown.mm:not(#x){position:static;translate:none;width:100%;grid-template-columns:1fr;grid-template-areas:"list";padding:0;gap:0;border:0;border-radius:0;box-shadow:none;background:none;}
  .mm::before,.mm-pic,.mm-foot,.mm-d{display:none;}
  .mm .mm-item:not(#x){grid-template-columns:minmax(0,1fr) auto;padding:0.75rem 0;border-radius:0;}
  .mm-t{font-family:inherit;font-size:var(--fs-text);line-height:var(--lh-text);letter-spacing:0;}
  .mm-go{width:auto;height:auto;border:0;}
}

/* --- Pixel-exact restyle from Nick's Figma export (node 492:67062), scoped to .nav-new (the NEW_NAV
   test header, see nav-shared.css) only -- the live Services dropdown under the production header
   (.nav-shared without .nav-new, and .reference-nav on the pricing/service pages) keeps today's
   look untouched. Panel: #f7f7f5 bg, 20px radius, 1px #d9dad5 outline (no border, no drop shadow),
   30px 20px padding, 30px gap between columns/pic, 20px gap before the footer row. Items: 18px/400
   Inter (not the serif), -0.006em tracking, 10px 12px padding, 8px radius, #e7e7e5 on hover/focus
   (no sibling opacity-fade). Eyebrow label: 14px/400, normal case (not uppercase), #777975. Preview
   pane: 160px tall, white, 1px #d9d9d9 outline (not the dark fallback). Footer: muted text, red arrow. */
.nav-new .services-dropdown.mm:not(#x){
  padding:1.875rem 1.25rem;
  column-gap:1.875rem;
  row-gap:1.25rem;
  background:#f7f7f5;
  border:0;
  outline:1px solid #d9dad5;
  outline-offset:-1px;
  box-shadow:none;
}
.nav-new .mm-group{padding:0 0.75rem;font-size:0.875rem;font-weight:400;line-height:1.3;letter-spacing:0;text-transform:none;color:#777975;}
.nav-new .mm .mm-item:not(#x){padding:0.625rem 0.75rem;border-radius:0.5rem;}
.nav-new .mm-t{font-family:inherit;font-size:1.125rem;font-weight:400;line-height:1.1;letter-spacing:-0.006em;}
.nav-new .mm .mm-item:not(#x):focus-visible{background:#e7e7e5;}
@media (hover: hover){
.nav-new .mm .mm-item:not(#x):hover{background:#e7e7e5;}}
.nav-new .mm-list:has(.mm-item:focus-visible) .mm-item:not(:focus-visible){opacity:1;}
@media (hover: hover){
.nav-new .mm-list:has(.mm-item:hover) .mm-item:not(:hover){opacity:1;}}
.nav-new .mm-pic{height:10rem;min-height:0;border-radius:0.5rem;background:#ffffff;outline:1px solid #d9d9d9;outline-offset:-1px;}
.nav-new .mm-foot{padding:1.25rem 0.75rem 0;border-top:0;box-shadow:inset 0 1px 0 0 #d9dad5;}
.nav-new .mm-foot .text-link{color:#6b6b6b;}
.nav-new .mm-foot .text-link span[aria-hidden]{color:#f0390a;}
