.udeytech-menu {
    --udeytech-accent: #5898ba;
    --udeytech-ink: #101b32;
    --udeytech-border: #e1e6ed;
    color: var(--udeytech-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    text-align: start;
}
.udeytech-menu *, .udeytech-menu *::before, .udeytech-menu *::after { box-sizing: border-box; }
.udeytech-menu [hidden] { display: none !important; }
.udeytech-menu ul { list-style: none; margin: 0; padding: 0; }
.udeytech-menu button { font: inherit; color: inherit; cursor: pointer; background: transparent; border: 0; }
.udeytech-menu a { color: inherit; text-decoration: none; }
.udeytech-menu a:hover, .udeytech-menu a:focus-visible { color: var(--udeytech-accent); text-decoration: underline; text-underline-offset: 5px; }
.udeytech-menu :is(a,button):focus-visible { outline: 2px solid var(--udeytech-accent); outline-offset: 3px; }
.udeytech-menu__row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.udeytech-menu__content { min-width: 0; overflow-wrap: anywhere; }
.udeytech-menu__link, .udeytech-menu__label { display: inline-block; padding: 6px 0; }
.udeytech-menu__toggle { flex: 0 0 32px; width: 32px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.udeytech-menu__toggle svg { transition: transform .15s ease; }
.udeytech-menu__toggle[aria-expanded="true"] { color: var(--udeytech-accent); }
.udeytech-menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.udeytech-menu__image { display: block; max-width: 100%; height: auto; margin-block: 8px; }
.udeytech-menu--desktop { display: none; }
.udeytech-menu__open { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 44px; padding: 8px 12px; }
.udeytech-menu__open > span:first-child { font-size: 24px; line-height: 1; }
.udeytech-menu__drawer {
    position: fixed; inset-block-start: 0; inset-block-end: auto;
    inset-inline-start: 0; inset-inline-end: auto; margin: 0;
    width: min(90vw, 400px); max-width: none; height: 100vh; height: 100dvh;
    max-height: none; padding: 0 20px 32px; border: 0;
    background: #fff; color: var(--udeytech-ink); overflow-y: auto;
    overscroll-behavior: contain; text-align: start;
}
.udeytech-menu__drawer:not([open]) { display: none; }
.udeytech-menu__drawer::backdrop { background: rgb(10 20 35 / .48); }
.udeytech-menu__drawer-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--udeytech-border); padding-block: 12px; margin-block-end: 10px; }
.udeytech-menu__drawer-head h2 { font: inherit; font-size: 20px; font-weight: 600; margin: 0; }
.udeytech-menu__close { width: 44px; min-height: 44px; font-size: 30px !important; }
.udeytech-menu--mobile .udeytech-menu__row { justify-content: space-between; min-height: 48px; }
.udeytech-menu--mobile .udeytech-menu__toggle { min-height: 44px; min-width: 44px; }
.udeytech-menu--mobile .udeytech-menu__content { flex: 1; }
.udeytech-menu--mobile .udeytech-menu__link { display: block; padding-block: 12px; }
.udeytech-menu--mobile .udeytech-menu__list--0 > li { border-bottom: 1px solid var(--udeytech-border); }
.udeytech-menu--mobile .udeytech-menu__panel { padding-inline-start: 16px; padding-block-end: 10px; }
.udeytech-menu--mobile .udeytech-menu__category-children { padding-inline-start: 16px; }
@media (min-width: 1024px) {
    .udeytech-menu--mobile { display: none; }
    .udeytech-menu--desktop { display: block; position: relative; z-index: 30; background: #fff; border-bottom: 1px solid var(--udeytech-border); }
    .udeytech-menu--desktop .udeytech-menu__list--0 { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; column-gap: 8px; }
    .udeytech-menu--desktop .udeytech-menu__list--0 > li > .udeytech-menu__row { min-height: 44px; }
    .udeytech-menu--desktop .udeytech-menu__list--0 > li > .udeytech-menu__panel {
        position: absolute; inset-inline: 0; inset-block-start: 100%; background: #fff;
        padding: 16px 24px 22px; box-shadow: 0 5px 8px rgb(15 23 42 / .12);
        border: 1px solid var(--udeytech-border); max-height: min(70vh, 640px); overflow-y: auto;
    }
    .udeytech-menu--desktop .udeytech-menu__list--1 { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px 24px; }
    .udeytech-menu--desktop .udeytech-menu__list--1 > li { flex: 1 1 100px; max-width: 100%; text-align: center; }
    .udeytech-menu--desktop .udeytech-menu__list--1 > li > .udeytech-menu__row { justify-content: center; }
    .udeytech-menu--desktop .udeytech-menu__list--1 > .udeytech-menu__item--parent > .udeytech-menu__row { font-weight: 700; }
    .udeytech-menu--desktop .udeytech-menu__list--2 .udeytech-menu__row { justify-content: center; }
    .udeytech-menu--desktop .udeytech-menu__list--2 .udeytech-menu__link { padding-block: 4px; }
    .udeytech-menu--desktop .udeytech-menu__list--2 .udeytech-menu__panel { padding-inline-start: 12px; }
}
@media (prefers-reduced-motion: reduce) { .udeytech-menu__toggle svg { transition: none; } }

/* A mobile parent is one native button; leaf links retain their normal navigation. */
.udeytech-menu--mobile .udeytech-menu__branch { flex: 1 1 auto; width:100%; min-height:48px; justify-content:space-between; gap:12px; padding:8px 0; text-align:inherit; }
.udeytech-menu--mobile .udeytech-menu__branch > svg { flex:0 0 14px; }

/* Snowdog's size-group headings stay black while their child links retain hover feedback. */
.udeytech-menu--mobile button.homie-size-menu-heading,
.homie-size-menu-heading > a,
.homie-size-menu-heading > .udeytech-menu__content {
    color: #000 !important;
}
.udeytech-menu--mobile .udeytech-menu__drawer {
    box-sizing: border-box;
    width: min(100%, 400px);
    padding-inline: max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-left));
}
.udeytech-menu--mobile .udeytech-menu__panel {
    min-width: 0;
    padding-inline-start: 12px;
}

/* A deliberate mobile View All action, distinct from ordinary category links. */
.udeytech-menu--mobile .udeytech-menu__content.view-all-link > a.udeytech-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin-block: 6px;
    padding: 10px 14px;
    border: 1px solid var(--udeytech-accent);
    border-radius: 8px;
    background: #f0f7fb;
    color: #245d7c;
    font-weight: 600;
}
.udeytech-menu--mobile .udeytech-menu__content.view-all-link > a.udeytech-menu__link::after {
    content: "\2190";
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}
.udeytech-menu--mobile .udeytech-menu__content.view-all-link > a.udeytech-menu__link:hover {
    background: #e4f0f7;
}

/* Node CSS Classes are runtime content, so bold labels cannot depend on a Tailwind scan.
   Scope weight to the label itself; sibling submenu lists keep their normal weight. */
.snowdog-topmenu-desktop .homie-menu-label--bold,
.snowdog-topmenu-desktop .homie-menu-label--bold > a,
.snowdog-topmenu-desktop .homie-menu-label--bold > span,
.udeytech-menu__drawer .udeytech-menu__content.homie-menu-label--bold,
.udeytech-menu__drawer .udeytech-menu__content.homie-menu-label--bold > a,
.udeytech-menu__drawer .udeytech-menu__content.homie-menu-label--bold > span {
    font-weight: 700 !important;
}

/* Explicit node weight overrides the drawer's later inline normal-label rule. */
.udeytech-menu__drawer .udeytech-menu__list .udeytech-menu__row .udeytech-menu__content.homie-menu-label--bold {
    font-weight: 700 !important;
}

/* Keep every desktop submenu column on its heading's center line, including future nodes.
   Native nested lists use physical ml-4/-ml-4 indentation; it shifts links in RTL. */
@media (min-width: 1024px) {
    .snowdog-topmenu-desktop [x-ref^="submenu-"] ul ul,
    .snowdog-topmenu-desktop [x-ref^="submenu-"] ul ul > li {
        margin-inline: 0;
        text-align: center;
    }
    .snowdog-topmenu-desktop [x-ref^="submenu-"] ul ul {
        padding-inline: 0;
    }
    .snowdog-topmenu-desktop [x-ref^="submenu-"] .snowdog-menu-link {
        text-align: center;
    }
}

/* Size values are regular weight; the first-level shape/group headings retain bold. */
.snowdog-topmenu-desktop [x-ref="submenu-35"] ul ul :is(a, .homie-menu-label--bold),
#udeytech-mobile-panel-35 .udeytech-menu__list--2 :is(a, .homie-menu-label--bold) {
    font-weight: 400 !important;
}

/* Nov12 23:08: style grandchildren are regular; Modern/Classic column headings stay bold. */
.snowdog-topmenu-desktop [x-ref="submenu-1"] ul ul :is(a, .homie-menu-label--bold),
#udeytech-mobile-panel-1 .udeytech-menu__list--2 :is(a, .homie-menu-label--bold) {
 font-weight:400!important;
}

/* Keep the desktop navigation and flat room choices on one track. Text zoom can pan. */
@media (min-width: 1024px) {
    nav.snowdog-topmenu-desktop { position: relative; min-width: 0; }
    nav.snowdog-topmenu-desktop > ul {
        position: static;
        flex-wrap: nowrap;
        gap: clamp(4px, .65vw, 12px);
        font-size: clamp(15px, 1.18vw, 17px);
        min-width: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }
    /* Absolute full-width panels remain anchored outside the scrolling top-level list. */
    nav.snowdog-topmenu-desktop > ul > li { position: static; flex: 0 0 auto; min-width: 0; font-size: inherit; }
    nav.snowdog-topmenu-desktop > ul > li > div { font-size: inherit; }
    nav.snowdog-topmenu-desktop > ul > li > div > :is(a, button) {
        font-size: inherit;
        white-space: nowrap;
        padding-inline: clamp(2px, .3vw, 5px);
    }
    /* Live room panel 29 is flat; keep every columned mega menu on its existing layout. */
    nav.snowdog-topmenu-desktop [x-ref="submenu-29"] > div.w-full > ul.container:not(:has(ul)) {
        display: flex;
        flex-wrap: nowrap;
        gap: clamp(4px, .6vw, 10px);
        padding-inline: clamp(8px, 1vw, 16px);
        font-size: clamp(14px, 1.18vw, 17px);
        min-width: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }
    nav.snowdog-topmenu-desktop [x-ref="submenu-29"] > div.w-full > ul.container:not(:has(ul)) > li {
        flex: 1 0 auto;
        min-width: 0;
        white-space: nowrap;
    }
    nav.snowdog-topmenu-desktop [x-ref="submenu-29"] > div.w-full > ul.container:not(:has(ul)) > li :is(a, button, .snowdog-menu-link) {
        font-size: inherit;
        white-space: nowrap;
        padding-inline: clamp(2px, .3vw, 5px);
    }
}

/* One native EAV palette drives desktop dots and mobile swatches. */
a[data-homie-colour-link]{display:inline-flex;align-items:center;gap:7px;position:relative;}
.homie-menu-colour-dot{display:inline-block;flex:0 0 14px;width:14px;height:14px;border-radius:50%;border:1px solid rgb(15 23 42 / 18%);box-sizing:border-box;position:relative;background:var(--homie-menu-colour);}
a[data-homie-colour-link]:focus-visible{outline:2px solid #236181;outline-offset:4px;border-radius:4px;}
a[data-homie-colour-link][aria-current="page"]{color:#236181;font-weight:600;}
a[data-homie-colour-link][aria-current="page"] .homie-menu-colour-dot{outline:2px solid #236181;outline-offset:3px;}
a[data-homie-colour-link][aria-current="page"] .homie-menu-colour-dot::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;text-shadow:0 1px 2px #000,0 -1px 2px #000;font-size:11px;}
@media(max-width:1023px){
 .udeytech-menu--mobile .homie-menu-colour-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 8px;padding:14px 8px;}
 .udeytech-menu--mobile .homie-menu-colour-list>.udeytech-menu__item{margin:0;min-width:0;}
 .udeytech-menu--mobile .homie-menu-colour-list .udeytech-menu__row,.udeytech-menu--mobile .homie-menu-colour-list .udeytech-menu__content{width:100%;min-width:0;}
 .udeytech-menu--mobile .homie-menu-colour-list a[data-homie-colour-link]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:76px;width:100%;padding:4px 0;font-size:16px;line-height:1.25;white-space:nowrap;text-align:center;}
 .udeytech-menu--mobile .homie-menu-colour-list .homie-menu-colour-dot{flex-basis:48px;width:48px;height:48px;}
 .udeytech-menu--mobile .homie-menu-colour-list a[data-homie-colour-link][aria-current="page"] .homie-menu-colour-dot::after{font-size:22px;}
}

/* Nov27 physical split and flat desktop colour row; native links/order/palette retained. */
a[data-homie-colour-link] .homie-menu-colour-dot[style="--homie-menu-colour:#ffffff"]{border:1px solid #c8c8c8;box-shadow:none;}
@media(min-width:1024px){
 nav.snowdog-topmenu-desktop [x-ref="submenu-36"] > div.w-full > ul.container:not(:has(ul)){
  display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:flex-start;gap:clamp(2px,.35vw,6px);padding-inline:8px;min-width:0;
 }
 nav.snowdog-topmenu-desktop [x-ref="submenu-36"] > div.w-full > ul.container:not(:has(ul)) > li{flex:0 1 auto;min-width:0;margin-inline:0;padding-inline:0;}
 nav.snowdog-topmenu-desktop [x-ref="submenu-36"] a[data-homie-colour-link]{gap:4px;padding-inline:0;white-space:nowrap;}
}
