/* KAGETORA FIX15 navigation IA and beginner guide -- append-only overrides. */


/* FIX15 -- navigation IA, Japanese labels, beginner help. Preserve scenic geometry
   and the existing desktop/tablet/mobile breakpoint + mobile bottom-nav behavior. */
@media (min-width:1100px) {
  .topbar.authenticated-site-header>.header-actions { overflow:visible!important; }
  .topbar.authenticated-site-header>.header-actions>.global-nav { gap:clamp(12px,1.4vw,24px)!important; }
  .topbar.authenticated-site-header>.header-actions>.global-nav a { font-size:13px!important; }
  .topbar.authenticated-site-header>.header-actions>.global-nav .desktop-more { position:relative; flex:0 0 auto; }
  .topbar.authenticated-site-header>.header-actions>.global-nav .desktop-more summary {
    display:flex;gap:5px;align-items:center;min-height:40px;box-sizing:border-box;
    padding:8px 2px 5px;color:#52615a;font-weight:750;font-size:13px;cursor:pointer;
    list-style:none;white-space:nowrap;
  }
  .desktop-more summary::-webkit-details-marker { display:none; }
  .desktop-more summary:focus-visible { outline:2px solid #315d4b;outline-offset:3px;border-radius:5px; }
  .desktop-more-caret { font-size:17px;line-height:1; }
  .desktop-more.has-active summary,.desktop-more[open] summary { color:#284f3e!important; }
  .topbar.authenticated-site-header>.header-actions>.global-nav .desktop-more-panel {
    position:absolute;top:calc(100% + 3px);right:-16px;z-index:1500;
    display:grid;gap:2px;min-width:215px;padding:8px;
    background:#fffdf9;border:1px solid #d7e1d8;border-radius:13px;
    box-shadow:0 12px 34px rgba(28,45,34,.16);white-space:normal;
  }
  .topbar.authenticated-site-header>.header-actions>.global-nav .desktop-more-panel a {
    display:block!important;box-sizing:border-box!important;padding:11px 12px!important;
    min-height:42px!important;border-radius:8px!important;color:#314238!important;
    font-size:14px!important;font-weight:700!important;text-decoration:none!important;
  }
  .topbar.authenticated-site-header>.header-actions>.global-nav .desktop-more-panel a:hover,
  .topbar.authenticated-site-header>.header-actions>.global-nav .desktop-more-panel a:focus-visible {
    background:#edf4ee!important;outline-offset:1px;
  }
  .topbar.authenticated-site-header>.header-actions>.global-nav .desktop-more-panel a.is-active { background:#e7efe7!important;color:#22523a!important; }
  .topbar.authenticated-site-header>.header-actions>.desktop-help-link {
    flex:0 0 auto;display:inline-flex;align-items:center;min-height:38px;
    padding:0 0 0 12px;margin-left:1px;border-left:1px solid rgba(63,79,69,.17);
    text-decoration:none;color:#365a47;font-size:12px;font-weight:800;white-space:nowrap;
  }
  .topbar.authenticated-site-header>.header-actions>.desktop-help-link.is-active,
  .topbar.authenticated-site-header>.header-actions>.desktop-help-link:hover { color:#176438;text-decoration:underline;text-underline-offset:5px; }
}
@media (min-width:1100px) and (max-width:1320px) {
  .topbar.authenticated-site-header>.header-actions>.global-nav { gap:9px!important; }
  .topbar.authenticated-site-header>.header-actions>.global-nav a { font-size:12px!important; }
  .topbar.authenticated-site-header>.header-actions>.desktop-help-link { font-size:11px;padding-left:8px; }
}
@media (max-width:1099px) {
  .topbar.authenticated-site-header>.header-actions>.desktop-help-link { display:none!important; }
}
@media (max-width:1024px) {
  .mobile-more-sheet { max-height:calc(100dvh - env(safe-area-inset-top) - 32px);box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column; }
  .mobile-more-content { display:block;min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 3px; }
  .mobile-more-guide { display:flex;gap:12px;align-items:center;text-decoration:none;color:#294835;
    background:#eaf3ec;border:1px solid #c7d9ca;border-radius:15px;padding:14px 13px;min-height:76px;box-sizing:border-box; }
  .mobile-more-guide-icon { flex:0 0 36px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
    background:#315d4b;color:white;font-size:22px;font-weight:800; }
  .mobile-more-guide-copy { min-width:0;flex:1 1 auto;display:grid;gap:3px; }
  .mobile-more-guide-copy strong { font-size:15px;line-height:1.45; }
  .mobile-more-guide-copy small { font-size:12px;line-height:1.45;color:#506c5a;font-weight:500; }
  .mobile-more-guide-arrow { font-size:27px;color:#51715c; }
  .mobile-more-section-title { font-size:12px;letter-spacing:.035em;color:#56695c;font-weight:800;margin:15px 2px 8px; }
  .mobile-more-section-separator { border-top:1px solid #e0e5dc;padding-top:13px;margin-top:15px; }
  .mobile-more-grid a { min-height:57px;display:flex;align-items:center;justify-content:flex-start;padding:12px 14px;box-sizing:border-box;line-height:1.45; }
  .mobile-more-grid .notification-badge { flex:0 0 auto; }
  .mobile-more-logout { flex:0 0 auto; }
}
@media (max-width:400px) {
  .mobile-more-guide-copy strong { font-size:14px; }
  .mobile-more-guide-copy small { font-size:11px; }
  .mobile-more-grid a { font-size:13px; }
}

/* FIX15 -- landscape tablets just above the legacy 1024px bottom-nav
   breakpoint: keep the existing desktop-style header, but prevent wrapping. */
@media (min-width:1025px) and (max-width:1099px) {
  .topbar.authenticated-site-header { overflow:visible!important; align-items:center!important; }
  .topbar.authenticated-site-header>.header-brand-zone { flex:0 0 170px!important;min-width:170px!important; }
  .topbar.authenticated-site-header>.header-actions {
    flex:1 1 auto!important;min-width:0!important;width:auto!important;
    display:flex!important;align-items:center!important;justify-content:flex-end!important;
    flex-wrap:nowrap!important;gap:8px!important;overflow:visible!important;
  }
  .topbar.authenticated-site-header>.header-actions>.global-nav {
    display:flex!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;
    align-items:center!important;flex-wrap:nowrap!important;gap:10px!important;white-space:nowrap!important;
  }
  .topbar.authenticated-site-header>.header-actions>.global-nav a { font-size:12px!important;min-height:36px!important;white-space:nowrap!important; }
  .topbar.authenticated-site-header>.header-actions>.global-nav .desktop-more { position:relative;flex:0 0 auto; }
  .topbar.authenticated-site-header>.header-actions>.global-nav .desktop-more summary {
    display:flex;align-items:center;gap:3px;list-style:none;white-space:nowrap;
    min-height:36px;padding:5px 0;color:#52615a;font-size:12px;font-weight:750;cursor:pointer;
  }
  .topbar.authenticated-site-header>.header-actions>.global-nav .desktop-more-panel {
    position:absolute;top:calc(100% + 5px);right:-10px;z-index:1500;display:grid;gap:2px;
    padding:8px;min-width:200px;background:#fffdf9;border:1px solid #d7e1d8;
    border-radius:13px;box-shadow:0 12px 34px rgba(28,45,34,.16);
  }
  .topbar.authenticated-site-header>.header-actions>.global-nav .desktop-more-panel a {
    display:block!important;box-sizing:border-box!important;min-height:38px!important;
    padding:10px!important;font-size:13px!important;border-radius:8px!important;
  }
  .topbar.authenticated-site-header>.header-actions>.desktop-help-link {
    display:inline-flex!important;min-height:38px;align-items:center;flex:0 0 auto;
    padding-left:8px;border-left:1px solid #d3ded5;white-space:nowrap;
    text-decoration:none;font-size:11px;font-weight:750;color:#365a47;
  }
  .topbar.authenticated-site-header>.header-actions>.notification-nav-link { flex:0 0 36px!important;width:36px!important;min-width:36px!important; }
  .topbar.authenticated-site-header>.header-actions>.global-logout { flex:0 0 auto!important;min-width:0!important; }
}
@media (min-width:1100px) {
  /* The artwork clips inside its own layer; the navigation popover must not clip. */
  .topbar.authenticated-site-header { overflow:visible!important; }
}

/* The 1025..1099px sticky tablet header places content behind subsequent pages.
   Only this narrow range ports the opened options into the document top layer. */
@media (min-width:1025px) and (max-width:1099px) {
  .topbar.authenticated-site-header .global-nav .desktop-more[open] .desktop-more-panel {
    visibility:hidden!important;pointer-events:none!important;
  }
}
.desktop-more-portal {
  position:fixed;z-index:1000000;display:grid;gap:2px;box-sizing:border-box;
  min-width:215px;padding:8px;background:#fffdf9;border:1px solid #d7e1d8;
  border-radius:13px;box-shadow:0 12px 34px rgba(28,45,34,.18);
}
.desktop-more-portal a {
  display:block;box-sizing:border-box;min-height:42px;padding:11px 12px;
  font-size:14px;font-weight:750;color:#314238;text-decoration:none;
  border-radius:8px;
}
.desktop-more-portal a:hover,.desktop-more-portal a:focus-visible,.desktop-more-portal a.is-active { background:#edf4ee;color:#22523a; }
