/* Variant A: the existing section link plus an independent disclosure button. */
html.look-flat.look-accent body.v2.v3[data-marketplace] .topbar { z-index: 60; overflow: visible; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mainnav { position: relative; overflow: visible; flex-wrap: wrap; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-item { position: relative; display: flex; flex: none; align-items: center; border-radius: 10px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mainnav .mega-title { padding: 12px 0 12px 14px; }
/* The disclosure shares the link's former right padding instead of widening the section. */
html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-toggle { display: grid; place-items: center; flex: none; align-self: stretch; width: 14px; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
/* Keep the hover path continuous across the visible gap above the panel. */
html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-item.is-open::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 8px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-item:is(.is-current, .is-open) { background: color-mix(in srgb, var(--primary) 3%, transparent); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-item:is(.is-current, .is-open) > :is(a, button) { color: var(--primary); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-panel { position: absolute; z-index: 70; top: calc(100% + 8px); left: 0; display: flex; gap: 44px; width: max-content; max-width: calc(100vw - 32px); max-height: min(70vh, 640px); overflow: auto; box-sizing: border-box; padding: 24px 32px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--v3-shadow); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-panel[hidden] { display: none; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-group { min-width: 220px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-group h2 { margin: 0 0 12px; font-size: 16px; line-height: 24px; font-weight: 700; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mainnav .mega-group a { display: block; padding: 7px 10px; margin: 0 -10px; border: 0; border-radius: 8px; color: var(--text); font-size: 15px; line-height: 22px; font-weight: 400; white-space: normal; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mainnav .mega-group a:is(:hover, :focus-visible) { background: var(--band); color: var(--primary); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .mainnav .mega-group a.is-current { background: var(--accent-soft); color: var(--primary); font-weight: 600; }
@media (max-width: 1100px) {
  html.look-flat.look-accent body.v2.v3[data-marketplace] .mainnav .mega-title { padding-left: 10px; }
  html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-toggle { width: 10px; }
  html.look-flat.look-accent body.v2.v3[data-marketplace] .topbar__in { flex-wrap: wrap; height: auto; }
  html.look-flat.look-accent body.v2.v3[data-marketplace] .mainnav { order: 3; width: 100%; flex-basis: 100%; }
  html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-item { position: static; }
  html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-panel { left: 0; right: 0; width: 100%; max-width: 100%; flex-wrap: wrap; gap: 20px 32px; padding: 20px; }
  html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-group { flex: 1; min-width: min(220px, 100%); }
}
@media (max-width: 600px) {
  html.look-flat.look-accent body.v2.v3[data-marketplace] .mega-panel { flex-direction: column; flex-wrap: nowrap; }
}
