/* Keep header sizing and navigation consistent after the page styles. */
.jdm-header,
.jdm-front .jdm-header {
    background:linear-gradient(110deg,#021713fa,#08251ef5);
    border-bottom:1px solid var(--line);
}
.jdm-header-inner {min-height:124px;gap:32px;position:relative}
.jdm-header .jdm-logo {width:240px}
.jdm-header .jdm-logo picture {display:block}
.jdm-header .jdm-logo-image {height:104px;width:100%;object-fit:contain;object-position:center}
.jdm-footer-brand .jdm-logo-image {width:100%;height:auto;max-height:120px;object-fit:contain;object-position:center}
.jdm-header .jdm-navigation {min-width:0;background:transparent;border-radius:0;padding:0}
.jdm-header .jdm-menu {gap:clamp(16px,1.8vw,28px)}
.jdm-header .jdm-menu a {line-height:1.4}
.jdm-header-tools {flex-shrink:0;gap:6px}
.jdm-header .jdm-icon-button {flex-shrink:0;width:42px;height:42px;padding:9px}
.jdm-header .jdm-icon-button svg {width:24px;height:24px}
.jdm-front .jdm-header.is-sticky {position:fixed;background:#031b18fa}
.jdm-header.is-sticky .jdm-header-inner {min-height:108px}
.jdm-header.is-sticky .jdm-logo-image {height:92px}
.jdm-header .jdm-menu .sub-menu {top:100%;left:0;margin:0;border-radius:8px;background:#031b18}
@media (min-width:1025px) and (max-width:1200px) {
    .jdm-header-inner {gap:20px}
    .jdm-header .jdm-logo {width:190px}
    .jdm-header .jdm-menu {gap:16px}
    .jdm-header-tools {gap:2px}
}
@media (max-width:1024px) {
    .jdm-header-inner {min-height:108px;gap:16px;position:static}
    .jdm-header .jdm-logo {width:200px}
    .jdm-header .jdm-logo-image {height:92px}
    .jdm-header .jdm-navigation {background:#031b18;padding:16px 40px 24px;box-shadow:0 16px 24px #0005;max-height:calc(100dvh - 112px);overscroll-behavior:contain}
    .jdm-header .jdm-navigation .jdm-menu a {padding:14px 0}
    .jdm-header .jdm-menu .current-menu-item>a {border-bottom:0}
    .jdm-header .jdm-menu .sub-menu {padding:0 0 0 20px;border-radius:0}
    .jdm-menu-toggle span {transition:transform .2s,opacity .2s}
    .jdm-menu-toggle[aria-expanded=true] span:nth-child(1) {transform:translateY(6px) rotate(45deg)}
    .jdm-menu-toggle[aria-expanded=true] span:nth-child(2) {opacity:0}
    .jdm-menu-toggle[aria-expanded=true] span:nth-child(3) {transform:translateY(-6px) rotate(-45deg)}
    .jdm-header.align-center .jdm-logo {position:static;transform:none;width:200px}
    .jdm-header.align-center .jdm-header-inner {min-height:108px;align-items:center;padding-bottom:0}
    .jdm-header.align-center.is-sticky .jdm-header-inner {min-height:108px}
}
@media (max-width:480px) {
    .jdm-header-inner,.jdm-header.align-center .jdm-header-inner {min-height:96px;gap:10px}
    .jdm-header .jdm-logo,.jdm-header.align-center .jdm-logo {width:150px}
    .jdm-header .jdm-logo-image {height:76px}
    .jdm-header-tools {gap:0}
    .jdm-header .jdm-icon-button {width:36px;height:40px;padding:7px}
    .jdm-header .jdm-navigation {padding-inline:20px}
    .jdm-header.is-sticky .jdm-header-inner,.jdm-header.align-center.is-sticky .jdm-header-inner {min-height:88px}
    .jdm-header.is-sticky .jdm-logo-image {height:70px}
}
@media (max-width:360px) {
    .jdm-header .jdm-logo,.jdm-header.align-center .jdm-logo {width:130px}
    .jdm-header .jdm-icon-button {width:34px}
}
