.mast .oribe-site-menu { position:relative; color:#fff; }
.mast .oribe-site-menu summary { cursor:pointer; padding:.5em .65em; font-size:.85rem; white-space:nowrap; border:1px solid #ffffff80; border-radius:4px; }
.mast .oribe-menu-panel { position:absolute; inset:calc(100% + 8px) 0 auto auto; z-index:20; width:min(23rem,88vw); max-height:65vh; max-height:65svh; overflow:auto; overscroll-behavior:contain; color:#182742; background:white; border:1px solid #ccd4dc; padding:.75rem 1rem; box-shadow:0 6px 22px #17233c40; }
.mast .oribe-menu-panel :is(ul,li), .foot .oribe-footer-links :is(ul,li) { display:block; margin:0; padding:0; list-style:none; }
.mast .oribe-menu-panel .sub-menu, .foot .oribe-footer-links .sub-menu { position:static; visibility:visible; opacity:1; width:auto; height:auto; transform:none; background:transparent; }
.mast .oribe-menu-panel .sub-menu { padding-inline-start:1em; border-inline-start:2px solid #dee6e8; }
.mast .oribe-menu-panel a { display:block; padding:.45em .3em; color:#182742; white-space:normal; }
.mast .oribe-menu-panel a:is(:hover,:focus-visible), .foot .oribe-footer-links a:is(:hover,:focus-visible) { text-decoration:underline; }
.foot .oribe-footer-links { display:grid; flex:1 1 36rem; grid-template-columns:repeat(auto-fit,minmax(8rem,1fr)); gap:1.4rem .8rem; }
.foot .oribe-footer-links nav { display:block; margin:0; }
.foot .oribe-footer-links a { display:block; padding:.22em 0; line-height:1.5; color:inherit; }
.foot .oribe-footer-links strong, .foot .oribe-contact strong { display:block; margin:0 0 .55em; color:inherit; }
.foot .oribe-contact { font-style:normal; line-height:1.7; }
.foot .oribe-credit { flex-basis:100%; padding-block-start:1rem; border-top:1px solid #ffffff40; }
@media(max-width:640px) {
 .mast .oribe-menu-panel { position:fixed; inset:72px 4% auto; width:auto; }
 .foot .oribe-footer-links { grid-template-columns:1fr 1fr; margin-block:1.3rem; }
 .foot .oribe-credit { display:block; margin-top:1em; }
}

@media (max-width:640px) {
  body .mast { grid-template-columns:minmax(0,1fr) auto; column-gap:6px; }
  body .mast .brand { min-width:0; max-width:100%; }
  body .mast .brand img { max-width:100%; }
  body .mast .tools { gap:5px; }
}

body .mast .brand small.craft-entry-status{display:inline-block;width:fit-content;margin:2px auto 0;padding:2px 9px;background:#385841;color:#fff;border:1px solid #dae6d9;border-radius:3px;font-size:.8rem;line-height:1.25;letter-spacing:.06em;font-weight:700}

@media (max-width: 640px) {
  body .mast {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  }
  body .mast .tools, body .mast .nav {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }
  body .mast .tools { justify-content: flex-end; }
}
@media (max-width: 420px) {
  body .mast { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
}
@media (max-width:640px) {
  body .mast { height:auto; grid-template-rows:auto auto auto; row-gap:2px; }
}

.mast .oribe-account-id {
  position:absolute; top:100%; right:0; max-width:100%; box-sizing:border-box;
  padding:.3rem .8rem; background:#17263a; color:white; font-size:.8rem;
  line-height:1.5; overflow-wrap:anywhere; text-align:right;
}
.mast .oribe-account-id span { font-weight:700; margin-right:.4em; }

/* Shared WordPress menu, using the category colors from the application pages. */
body .mast .oribe-site-menu > summary {
  display:flex; align-items:center; justify-content:center; gap:9px; min-height:48px; box-sizing:border-box;
  padding:0 14px; border:1px solid #ffffff99; border-radius:3px; font-size:15px; font-weight:700;
  line-height:1.25; list-style:none; color:#fff; background:#192a3ce6;
}
body .mast .oribe-site-menu > summary::-webkit-details-marker { display:none }
body .mast .oribe-site-menu .menu-bars {
  display:inline-block; width:16px; height:10px; border-block:2px solid currentColor; box-sizing:border-box;
}
body .mast .oribe-site-menu[open] > summary { background:#faf9f4!important; color:#1a2a3a!important; opacity:1!important }
body .mast .oribe-site-menu .oribe-menu-panel {
  display:block; position:fixed; inset:var(--menu-start,65px) var(--menu-end,16px) auto auto;
  box-sizing:border-box; width:min(790px,calc(100vw - var(--menu-end,16px) - 12px)); max-width:none;
  max-height:calc(100dvh - var(--menu-start,65px) - 12px); padding:0 26px 24px; margin:0;
  overflow-y:auto; overflow-x:hidden; scrollbar-gutter:stable; z-index:100;
  background:#fbfaf6; color:#182c3e; border:1px solid #c7c9c0; border-radius:3px;
  box-shadow:0 12px 32px #10203335; text-align:left;
}
body .mast .oribe-site-menu .menu-panel-head {
  display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0 6px;
  position:sticky; top:0; z-index:1; border-bottom:1px solid #9fa79f; background:#fbfaf6;
}
body .mast .menu-panel-head strong { color:#182c3e; font-size:22px; font-weight:700; line-height:1.3; }
body .mast .menu-panel-head button.menu-panel-close {
  display:inline-flex; width:auto; align-items:center; justify-content:center; gap:6px; min-height:48px; min-width:80px;
  padding:0 10px; margin:0; background:transparent!important; color:#20354a!important; border:1px solid #9daaa4!important; font:inherit;
  font-size:15px; font-weight:700; cursor:pointer;
}
body .mast .menu-panel-close span { font-size:24px; line-height:1 }
body .mast .oribe-menu-panel .menu-panel-groups {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; margin:18px 0 0;
}
body .mast .menu-panel-groups section { background:none; color:inherit; padding:0; margin:0; min-width:0 }
body .mast .menu-panel-groups h2 {
  font-size:14px; line-height:1.45; letter-spacing:.035em; font-weight:700; color:#425448; background:none;
  margin:0 0 6px; padding:0 0 8px; border:0; border-bottom:2px solid #7d8981;
}
body .mast .menu-panel-groups h2::before,body .mast .menu-panel-groups h2::after {content:none}
body .mast .oribe-menu-panel .menu-panel-groups :is(ul,li) {
  display:block; position:static; width:auto; height:auto; min-width:0; padding:0; margin:0;
  border:0; background:none; box-shadow:none; visibility:visible; opacity:1; transform:none;
}
body .mast .oribe-menu-panel .menu-panel-groups a {
  display:flex; align-items:center; gap:9px; box-sizing:border-box; width:100%; min-height:48px;
  padding:9px 4px; margin:0; border:0; border-radius:0; border-bottom:1px solid #d8dad3;
  background:transparent; color:#203347; font:inherit; font-size:16px; font-weight:650; letter-spacing:0;
  line-height:1.4; white-space:normal; text-decoration:none; overflow-wrap:anywhere;
}
body .mast .menu-panel-groups a:is([href*="/entry_daitent/"],[href*="/entry_craft/"],[href*="/entry_gourmet/"],[href*="/entry_kitchencar/"])::before {
  content:""; position:static; width:11px; height:11px; flex:0 0 11px; border:0; border-radius:50%; margin:0; transform:none; background:var(--category-ink);
}
body .mast .menu-panel-groups a[href*="/entry_daitent/"] {--category-ink:#486981}
body .mast .menu-panel-groups a[href*="/entry_craft/"] {--category-ink:#526f59}
body .mast .menu-panel-groups a[href*="/entry_gourmet/"] {--category-ink:#935769}
body .mast .menu-panel-groups a[href*="/entry_kitchencar/"] {--category-ink:#a35520}
body .mast .oribe-menu-panel .menu-panel-groups a:is(:hover,:focus-visible),body .mast .menu-panel-close:is(:hover,:focus-visible){background:#e9eee8;color:#142a37}
body .mast .oribe-site-menu :is(summary,a,button):focus-visible {outline:3px solid #347593;outline-offset:-3px}
@media(max-width:760px){
  body .mast .oribe-site-menu > summary {gap:6px;padding-inline:8px;font-size:14px}
  body .mast .oribe-site-menu .oribe-menu-panel {inset:var(--menu-start,65px) 8px auto;width:auto;padding:0 17px 18px;max-height:calc(100dvh - var(--menu-start,65px) - 8px)}
  body .mast .oribe-menu-panel .menu-panel-groups {grid-template-columns:1fr;gap:20px;margin-top:12px}
  body .mast .menu-panel-head strong {font-size:19px}
}

/* Keep the trigger legible while the panel changes state. */
body .mast .oribe-site-menu > summary { transition:none }
