/* =============================================
   DESKMENU — full reset, high specificity
   ============================================= */

/* --- Wrapper: positions the dropdown anchor --- */
.deskmenu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 0 0 12px;
}

/* --- Toggle Button --- */
#deskmenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    color: #111;
}

#deskmenu-toggle[aria-expanded="true"] {
    color: var(--ghost-accent-color);
}

#deskmenu-toggle:hover:not([aria-expanded="true"]) {
    color: var(--ghost-accent-color);
}

#deskmenu-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* --- Dropdown Panel: default HIDDEN --- */
#deskmenu-list {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 9999;
    /* min-width: 500px; */
    padding: 0;
    margin: 0;
}

/* --- VISIBLE when .hidden is NOT present --- */
#deskmenu-list:not(.hidden) {
    display: flex;
}

/* --- Main 3-column grid --- */
#deskmenu-list .deskmenu-main {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 30px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
}

/* --- Each column --- */
#deskmenu-list .deskmenu-column {
    flex: 1 1 0 !important;
    min-width: 140px;
    padding: 0 24px 0 0;
    margin: 0;
    text-align: left;
}

#deskmenu-list .deskmenu-column:last-child {
    padding-right: 0;
}

/* --- Column headings --- */
#deskmenu-list .deskmenu-column h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 16px 0 !important;
    padding: 0;
}

/* Space between stacked groups when a column has more than one % heading
   (e.g. "More" followed by "Collection") — only targets headings that
   come after another group's list, so the very first heading in a
   column is untouched. */
#deskmenu-list .deskmenu-column ul + h4 {
    margin-top: 24px !important;
}

/* --- ul/li full reset inside deskmenu --- */
#deskmenu-list .deskmenu-column ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
}

#deskmenu-list .deskmenu-column ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: normal !important;
}

#deskmenu-list .deskmenu-column ul li + li {
    margin-top: 0 !important;
}

/* --- Links --- */
#deskmenu-list .deskmenu-column a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    font-size: 1.5rem;
    font-weight: 500;
    color: #111;
    padding: 8px 0;
    transition: color 0.2s;
    line-height: 1.3;
}

#deskmenu-list .deskmenu-column a:hover {
    color: var(--ghost-accent-color);
}

/* --- Download icons --- */
#deskmenu-list .deskmenu-column .icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

#deskmenu-list .deskmenu-column .icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

html.dark-mode #deskmenu-toggle {
  color: #fff;
}

html.dark-mode #deskmenu-list {;
  background: #111 !important;
  border-color: #151515
}

html.dark-mode #deskmenu-list .deskmenu-column h4 {
  color: #fff;
}

html.dark-mode #deskmenu-list .deskmenu-column a:not(:hover) {
  color: #fff !important;
}


