/* RedDragon Shared Header 1.1.1. No content, footer or carousel layout changes. */
body.rdsh-enabled { --rdsh-height:86px; --rdsh-admin-offset:0px; }
body.rdsh-enabled.admin-bar { --rdsh-admin-offset:var(--wp-admin--admin-bar--height,32px); }
/* Hide old navigation only when a replacement has actually been output at the top. */
body.rdsh-enabled:has(#rdsh-shell[data-rdsh-placement="top"]) :is(
  header.site-header, header.siteHeader, #site-header, #siteHeader,
  .site-header-sub, .siteHeader_sub, .siteHeader_sub_outer,
  .vk-mobile-nav-menu-btn, .vk-mobile-nav, #vk-mobile-nav-menu-btn,
  .global-nav--fixed, .gMenu_outer--fixed
) { display:none!important; }
body.rdsh-enabled:has(#rdsh-shell[data-rdsh-placement="top"]) #rd-home-v2 .rdv-header,
body.rdsh-enabled:has(#rdsh-shell[data-rdsh-placement="top"]) #rd-home-v2 #rdv-menu { display:none!important; }
#rdsh-shell[data-rdsh-placement="footer"] { display:none; }
#rdsh-shell[data-rdsh-placement="top"] {
  display:block!important; position:sticky!important;
  top:var(--rdsh-admin-offset,0px); z-index:99990;
  width:100%!important; max-width:none!important; margin:0!important; padding:0!important;
  isolation:isolate; text-align:left;
  color:#f3f3ef; font:400 14px/1.7 "Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,Arial,sans-serif;
  -webkit-text-size-adjust:100%;
}
#rdsh-shell *, #rdsh-shell *::before, #rdsh-shell *::after { box-sizing:border-box; }
#rdsh-shell :is(a,button,summary){font-family:inherit;letter-spacing:.04em;box-shadow:none;text-shadow:none;}
#rdsh-shell a{color:inherit;text-decoration:none;background:none;}
#rdsh-shell :is(a,button,summary):focus-visible{outline:2px solid #81d8d0;outline-offset:5px;}
#rdsh-header {
  display:block; width:100%; margin:0; padding:0;
  color:#f3f3ef; background:#090b0cf5;
  border:0; border-bottom:1px solid #ffffff1c; box-shadow:none;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
#rdsh-header .rdsh-inner{
  width:calc(100% - 76px); max-width:1440px; margin:0 auto; min-height:86px;
  padding:14px 0; display:flex; align-items:center; justify-content:space-between; gap:34px;
}
#rdsh-shell .rdsh-logo{display:inline-flex;flex-direction:column;flex-shrink:0;text-align:center;line-height:1.2;padding:4px 0;}
#rdsh-shell .rdsh-logo>span{font:400 25px/1.1 Georgia,"Times New Roman",serif;letter-spacing:.04em;color:#f3f3ef;}
#rdsh-shell .rdsh-logo>small{font:400 7px/2.4 Arial,sans-serif;letter-spacing:.28em;color:#acbdbb;}
#rdsh-header .rdsh-desktop{display:flex;align-items:center;justify-content:flex-end;gap:27px;margin-left:auto;}
#rdsh-header .rdsh-desktop>a{position:relative;display:inline-flex;align-items:center;min-height:46px;padding:12px 0;font-size:12px;white-space:nowrap;color:#d8dfdc;}
#rdsh-header .rdsh-desktop>a::after{content:"";position:absolute;left:0;right:100%;bottom:6px;height:1px;background:#81d8d0;transition:right .18s;}
#rdsh-header .rdsh-desktop>a:hover{color:#b5e9e3;}
#rdsh-header .rdsh-desktop>a:is(:hover,[aria-current="page"])::after{right:0;}
#rdsh-shell .rdsh-toggle,#rdsh-shell .rdsh-fallback>summary{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  padding:5px 7px;min-width:52px;min-height:50px;margin:0;
  appearance:none;-webkit-appearance:none;background:none;color:#f3f3ef;
  border:0;border-radius:0;cursor:pointer;list-style:none;
}
#rdsh-shell .rdsh-toggle{display:none;}
#rdsh-shell.rdsh-ready .rdsh-toggle{display:flex;}
#rdsh-shell.rdsh-ready .rdsh-fallback{display:none;}
#rdsh-shell .rdsh-lines{position:relative;display:block;width:38px;height:19px;border-top:1px solid #81d8d0;border-bottom:1px solid #81d8d0;}
#rdsh-shell .rdsh-lines>i{position:absolute;right:0;top:8px;width:25px;height:1px;background:#e78dac;}
#rdsh-shell .rdsh-menu-label{font:400 9px/1.3 Arial,sans-serif;letter-spacing:.14em;}
#rdsh-shell .rdsh-fallback{padding:0;margin:0;border:0;background:none;}
#rdsh-shell .rdsh-fallback>summary::-webkit-details-marker{display:none;}
#rdsh-shell .rdsh-fallback>summary::marker{content:"";}
#rdsh-shell .rdsh-fallback-panel{
  position:absolute;top:100%;right:20px;width:min(700px,calc(100vw - 40px));
  max-height:calc(100dvh - 130px);overflow:auto;overscroll-behavior:contain;
  padding:24px;background:#0d1112;border:1px solid #81d8d055;box-shadow:0 18px 44px #0006;
}
#rdsh-shell #rdsh-dialog {
  color:#f3f3ef;background:#0d1112;border:1px solid #81d8d04d;border-radius:2px;
  padding:30px 38px 24px; margin:auto;
  width:min(760px,calc(100% - 48px)); max-width:none;
  max-height:calc(100vh - 56px);max-height:calc(100dvh - 56px);
  overflow:auto;overscroll-behavior:contain;font:inherit;text-align:left;
  box-shadow:0 28px 80px #0007;
}
#rdsh-shell #rdsh-dialog:not([open]){display:none!important;}
#rdsh-shell #rdsh-dialog::backdrop{background:#05090bea;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
#rdsh-shell .rdsh-dialog-top{position:sticky;top:0;z-index:2;background:#0d1112;display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:22px;border-bottom:1px solid #ffffff26;}
#rdsh-shell .rdsh-dialog-top p{margin:0;font:400 19px/1.5 Georgia,serif;letter-spacing:.04em;}
#rdsh-shell .rdsh-dialog-top p>span{font:400 10px/1.5 Arial,sans-serif;letter-spacing:.12em;color:#acbdbb;}
#rdsh-shell .rdsh-close{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 0 8px 12px;margin:0;border:0;border-radius:0;background:none;color:#f3f3ef;font:11px/1.5 Arial,sans-serif;cursor:pointer;white-space:nowrap;}
#rdsh-shell .rdsh-close>span{font-size:26px;color:#e78dac;}
#rdsh-shell .rdsh-all{margin:22px 0;background:none;}
#rdsh-shell .rdsh-all>ul{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 30px;margin:0;padding:0;list-style:none;}
#rdsh-shell .rdsh-all li{margin:0;padding:0;list-style:none;min-width:0;border:0;}
#rdsh-shell .rdsh-all li::before{content:none;}
#rdsh-shell .rdsh-all a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:13px 0;border-bottom:1px solid #ffffff1c;color:#e5eae7;font-size:14px;line-height:1.8;overflow-wrap:anywhere;}
#rdsh-shell .rdsh-all a::after{content:"↗";color:#81d8d0;font:18px/1 Arial,sans-serif;flex-shrink:0;}
#rdsh-shell .rdsh-all a:hover,#rdsh-shell .rdsh-all a[aria-current="page"]{color:#81d8d0;}
#rdsh-shell .rdsh-visit{display:flex;align-items:center;justify-content:center;gap:24px;min-height:56px;padding:15px 18px;background:#e78dac;color:#241219;border:1px solid #e78dac;border-radius:1px;font-size:14px;font-weight:600;text-align:center;}
#rdsh-shell .rdsh-visit:hover{background:#efafc6;border-color:#efafc6;color:#241219;}
#rdsh-shell .rdsh-dialog-note{font:9px/1.7 Arial,sans-serif;letter-spacing:.2em;color:#acbdbb;margin:20px 0 0;text-align:center;}
@media(max-width:1100px){
  #rdsh-header .rdsh-inner{width:calc(100% - 54px);gap:24px;}
  #rdsh-header .rdsh-desktop{gap:18px;}
  #rdsh-shell .rdsh-logo>span{font-size:23px;}
}
@media(max-width:1023px){
  body.rdsh-enabled{--rdsh-height:76px;}
  #rdsh-header .rdsh-desktop{display:none;}
  #rdsh-header .rdsh-inner{min-height:76px;}
}
@media(max-width:782px){body.rdsh-enabled.admin-bar{--rdsh-admin-offset:var(--wp-admin--admin-bar--height,46px);}}
@media(max-width:600px){
  body.rdsh-enabled{--rdsh-height:74px;}
  #rdsh-header .rdsh-inner{width:calc(100% - 40px);min-height:74px;padding:10px 0;gap:16px;}
  #rdsh-shell .rdsh-logo>span{font-size:21px;}
  #rdsh-shell .rdsh-logo>small{font-size:6.5px;}
  #rdsh-shell .rdsh-lines{width:31px;height:17px;}
  #rdsh-shell .rdsh-lines>i{width:22px;top:7px;}
  #rdsh-shell .rdsh-toggle,#rdsh-shell .rdsh-fallback>summary{min-width:44px;min-height:48px;padding-inline:4px;gap:7px;}
  #rdsh-shell .rdsh-menu-label{font-size:9px;}
  #rdsh-shell #rdsh-dialog{padding:18px 22px 20px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);}
  #rdsh-shell .rdsh-dialog-top{padding-bottom:12px;gap:12px;}
  #rdsh-shell .rdsh-dialog-top p{font-size:16px;}
  #rdsh-shell .rdsh-dialog-top p>span{display:block;font-size:9px;margin-top:2px;}
  #rdsh-shell .rdsh-all{margin:12px 0 22px;}
  #rdsh-shell .rdsh-all>ul{grid-template-columns:1fr;}
  #rdsh-shell .rdsh-all a{font-size:15px;min-height:52px;padding:12px 0;}
  #rdsh-shell .rdsh-fallback-panel{right:12px;width:calc(100% - 24px);padding:18px 22px;}
}
@media(prefers-reduced-motion:reduce){#rdsh-shell *{transition:none!important;scroll-behavior:auto!important;}}
@media print {#rdsh-shell[data-rdsh-placement="top"]{position:static!important;}#rdsh-shell :is(.rdsh-toggle,.rdsh-fallback,#rdsh-dialog){display:none!important;}}

/* 1.1.1: desktop uses the visible navigation; hamburger is mobile-only. */
#rdsh-header .rdsh-desktop { flex:1 1 auto; min-width:0; }
#rdsh-header .rdsh-desktop>a { flex:0 0 auto; }
#rdsh-header .rdsh-desktop>a[hidden] { display:none!important; }
#rdsh-shell .rdsh-toggle, #rdsh-shell .rdsh-fallback { flex:0 0 auto; }
#rdsh-shell .rdsh-visit { overflow-wrap:anywhere; }
@media(min-width:1024px){
  #rdsh-shell .rdsh-toggle,
  #rdsh-shell.rdsh-ready .rdsh-toggle,
  #rdsh-shell .rdsh-fallback { display:none!important; }
  /* Never hide selected desktop links: wrap instead of losing destinations. */
  #rdsh-header .rdsh-desktop {
    flex-wrap:wrap; row-gap:0; overflow:visible;
  }
  #rdsh-header .rdsh-desktop>a {
    max-width:100%; white-space:normal; overflow-wrap:anywhere;
  }
}
