/* Scope only headers with the enabled public account entry; reuse existing shell. */
.mgy-net-header .mgy-net-bar.mgy-net-has-account{padding-top:6px;padding-bottom:6px;row-gap:0;column-gap:10px}
.mgy-net-header .mgy-net-has-account>.mgy-net-menu{order:5;flex:0 0 100%;min-width:0}
.mgy-net-header .mgy-net-has-account>.mgy-net-city{margin-left:0}
.mgy-net-header .mgy-net-account{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;flex:0 0 auto;padding:8px 12px;border:1px solid var(--mgy-net-line,#ded8ce);border-radius:6px;background:#fffdf9;color:var(--mgy-net-ink,#19253c);font:600 14px/1.3 system-ui,-apple-system,"Microsoft YaHei",sans-serif;text-decoration:none;white-space:nowrap}
.mgy-net-header .mgy-net-account svg{display:block;flex:none}
.mgy-net-header .mgy-net-account:hover{background:#f2e6df;color:#852b37;text-decoration:none}
.mgy-net-header .mgy-net-account:focus-visible{outline:3px solid #a82d2d;outline-offset:3px}
.mgy-net-header .mgy-net-search-toggle{position:relative;flex:0 0 44px;order:0;margin:0 0 0 auto}
.mgy-net-header .mgy-net-main-link{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;white-space:nowrap}
.mgy-net-header .mgy-net-search-toggle>summary{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;list-style:none;cursor:pointer;border:1px solid var(--mgy-net-line,#ded8ce);border-radius:6px}
.mgy-net-header .mgy-net-search-toggle>summary::-webkit-details-marker{display:none}
.mgy-net-header .mgy-net-search-toggle:not([open])>.mgy-net-search{display:none!important}
.mgy-net-header .mgy-net-search-toggle[open]>.mgy-net-search{position:absolute;z-index:65;top:calc(100% + 6px);right:0;display:flex;width:min(320px,calc(100vw - 32px));max-width:none;margin:0;padding:8px;background:var(--mgy-net-paper,#fbf6ee);border:1px solid var(--mgy-net-line,#ded8ce);border-radius:6px;box-shadow:0 6px 18px #19253c20}
/* Keep the wide header on one row when the original shell has room. */
@media(min-width:1001px){
 .mgy-net-header .mgy-net-has-account>.mgy-net-menu{order:0;flex:1 1 460px}
 .mgy-net-header .mgy-net-has-account>.mgy-net-menu>nav{gap:0 12px}
 .mgy-net-header .mgy-net-has-account .mgy-net-guide{gap:12px}
 .mgy-net-header .mgy-net-has-account>.mgy-net-city{margin-left:0}
}
@media(min-width:701px) and (max-width:1000px){
 .mgy-net-header .mgy-net-has-account>.mgy-net-menu>nav{gap:0 16px}
}
@media(max-width:700px){
 .mgy-net-header .mgy-net-bar.mgy-net-has-account{display:grid;grid-template-columns:44px minmax(0,1fr) 44px auto;gap:4px 6px;align-items:center}
 .mgy-net-header .mgy-net-has-account>.mgy-net-brand{grid-column:1/-1;grid-row:1;min-width:0}
 .mgy-net-header .mgy-net-has-account>.mgy-net-account{grid-column:4;grid-row:2;padding:8px 6px;gap:4px}
 .mgy-net-header .mgy-net-account-prefix{display:none}
 .mgy-net-header .mgy-net-has-account>.mgy-net-city{grid-column:2;grid-row:2;position:relative;justify-self:stretch;margin-left:0;max-width:100%;min-width:0}
 .mgy-net-header .mgy-net-has-account>.mgy-net-city>summary{padding:8px 5px;overflow-wrap:anywhere}
 .mgy-net-header .mgy-net-has-account>.mgy-net-city .mgy-net-dropdown{position:absolute;left:-50px;right:auto;top:calc(100% + 6px);width:min(280px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
 .mgy-net-header .mgy-net-has-account>.mgy-net-main-link{grid-column:3;grid-row:2;justify-self:center}
 .mgy-net-header .mgy-net-has-account>.mgy-net-search{grid-column:1/-1;grid-row:3;width:100%;max-width:none;margin-left:0;min-width:0}
 .mgy-net-header .mgy-net-has-account>.mgy-net-menu{grid-column:1/-1;grid-row:3;min-width:0}
 .mgy-net-header .mgy-net-has-account>.mgy-net-search-toggle{grid-column:1;grid-row:2;justify-self:start;margin:0}
 .mgy-net-header .mgy-net-search-toggle[open]>.mgy-net-search{left:0;right:auto}
}
@media(forced-colors:active){.mgy-net-header .mgy-net-account{border-color:ButtonText}}

/* Honolulu only: the 150px stamp exceeded the original 120px tablet track. */
.mgc-body .mgc-mast--np>.mgc-stamp{width:calc(100% - 16px);max-width:134px;height:auto;justify-self:center}
.mgc-body .mgc-mast--np>.mgc-mast__en{min-width:0;overflow-wrap:anywhere}
@media(max-width:767px){
 .mgc-body .mgc-mast--np>.mgc-mast__t{min-width:0}
 .mgc-body .mgc-mast--np>.mgc-mast__en{grid-column:1/-1;margin-top:4px}
}

/* Mobile: menu joins search, city, main and account in the same utility row. */
@media(max-width:700px){
 .mgy-net-header .mgy-net-bar.mgy-net-has-account{grid-template-columns:44px minmax(0,1fr) 44px 58px 44px;column-gap:4px;position:relative}
 .mgy-net-header .mgy-net-has-account>.mgy-net-menu{grid-column:5;grid-row:2;min-width:0;width:44px}
 .mgy-net-header .mgy-net-has-account>.mgy-net-menu>summary{display:flex;align-items:center;justify-content:center;min-height:44px;width:44px;padding:0;font-size:0;list-style:none}
 .mgy-net-header .mgy-net-has-account>.mgy-net-menu>summary::-webkit-details-marker{display:none}
 .mgy-net-header .mgy-net-has-account>.mgy-net-menu>summary::before{content:"☰";font:22px/1 system-ui}
 .mgy-net-header .mgy-net-has-account>.mgy-net-menu[open]>nav{position:absolute;z-index:70;left:16px;right:16px;top:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px;margin:0;background:var(--mgy-net-paper,#fbf6ee);border:1px solid var(--mgy-net-line,#ded8ce);border-radius:6px;box-shadow:0 6px 18px #19253c20;max-height:60vh;overflow:auto}
 .mgy-net-header .mgy-net-has-account>.mgy-net-city .mgy-net-dropdown{left:-48px}
}

/* Give the existing main-site link a clear button treatment. */
.mgy-net-header .mgy-net-has-account>.mgy-net-main-link{background:#a82d2d;color:#fff;border:1px solid #a82d2d;border-radius:6px;font-weight:700;text-decoration:none}
.mgy-net-header .mgy-net-has-account>.mgy-net-main-link:hover{background:#852525;border-color:#852525;color:#fff}
.mgy-net-header .mgy-net-has-account>.mgy-net-main-link:focus-visible{outline:3px solid #19253c;outline-offset:2px}

@media(max-width:700px){
 .mgy-net-header .mgy-net-bar.mgy-net-has-account:not(:has(>.mgy-net-main-link))>.mgy-net-city{grid-column:2/4}
}
/* Mobile header: identity and destinations first, search and menu second. */
@media(max-width:700px){
 .mgy-net-header .mgy-net-bar,.mgy-net-header .mgy-net-bar.mgy-net-has-account{display:grid;grid-template-columns:minmax(110px,1fr) minmax(64px,auto) 44px 54px;gap:6px 4px;padding:8px 10px;position:relative;align-items:center}
 .mgy-net-header .mgy-net-bar>.mgy-net-brand{grid-column:1!important;grid-row:1!important;min-width:0;gap:4px;overflow:hidden}
 .mgy-net-header .mgy-net-brand>span{min-width:0}
 .mgy-net-header .mgy-net-brand b{font-size:15px;white-space:nowrap}
 .mgy-net-header .mgy-net-brand small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mgy-net-header .mgy-net-mark{width:26px;height:30px}
 .mgy-net-header .mgy-net-bar>.mgy-net-city{grid-column:2!important;grid-row:1!important;margin:0;position:static;min-width:0;max-width:96px;justify-self:stretch}
 .mgy-net-header .mgy-net-bar>.mgy-net-city>summary{font-size:13px;padding:10px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mgy-net-header .mgy-net-bar>.mgy-net-city .mgy-net-dropdown{left:10px!important;right:10px!important;top:56px;width:auto!important;max-width:none!important}
 .mgy-net-header .mgy-net-bar>.mgy-net-main-link{grid-column:3!important;grid-row:1!important;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;background:#192b46;border:1px solid #192b46;border-radius:6px;color:#fff;font-size:14px;font-weight:700;white-space:nowrap;text-decoration:none}
 .mgy-net-header .mgy-net-bar>.mgy-net-account{grid-column:4!important;grid-row:1!important;min-width:0;min-height:44px;padding:8px 3px;display:flex;align-items:center;justify-content:center;gap:3px;border:1px solid var(--mgy-net-line,#ded8ce);border-radius:6px;background:#fffdf9;font-size:13px;font-weight:600;white-space:nowrap}
 .mgy-net-header .mgy-net-account svg{width:15px;height:18px;flex:none}
 .mgy-net-header .mgy-net-account-prefix{display:none}
 .mgy-net-header .mgy-net-bar>.mgy-net-search-toggle{display:none!important}
 .mgy-net-header .mgy-net-bar>.mgy-net-search{grid-column:1/4!important;grid-row:2!important;display:flex;width:100%;max-width:none;margin:0;min-width:0}
 .mgy-net-header .mgy-net-search input{font-size:16px}
 .mgy-net-header .mgy-net-search button{padding:8px 10px;flex:none}
 .mgy-net-header .mgy-net-bar>.mgy-net-menu{grid-column:4!important;grid-row:2!important;width:54px;min-width:0}
 .mgy-net-header .mgy-net-bar>.mgy-net-menu>summary{display:flex;width:54px;min-height:44px;align-items:center;justify-content:center;padding:0;font-size:14px;font-weight:600;list-style:none;border:1px solid var(--mgy-net-line,#ded8ce);border-radius:6px}
 .mgy-net-header .mgy-net-bar>.mgy-net-menu>summary::before{content:none}
 .mgy-net-header .mgy-net-bar>.mgy-net-menu>summary::-webkit-details-marker{display:none}
 .mgy-net-header .mgy-net-bar>.mgy-net-menu[open]>nav{position:absolute;z-index:70;left:10px;right:10px;top:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:10px 12px;background:var(--mgy-net-paper,#fbf6ee);border:1px solid var(--mgy-net-line,#ded8ce);border-radius:6px;box-shadow:0 6px 18px #19253c20;max-height:60vh;overflow:auto}
 .mgy-net-header .mgy-net-bar:not(:has(>.mgy-net-main-link))>.mgy-net-city{grid-column:2/4!important;max-width:none}
}

/* The menu arrow reflects the native details open state. */
@media(max-width:700px){.mgy-net-header .mgy-net-bar>.mgy-net-menu>summary::after{content:"";display:inline-block;width:5px;height:5px;margin-left:5px;margin-top:-3px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);flex:none}.mgy-net-header .mgy-net-bar>.mgy-net-menu[open]>summary::after{transform:rotate(225deg);margin-top:3px}}

@media(max-width:700px){.mgy-net-header .mgy-net-bar>.mgy-net-menu:not([open])>nav{display:none!important}}

@media(max-width:700px){.mgy-net-header .mgy-net-bar>.mgy-net-city .mgy-net-dropdown{top:100%}.mgy-net-header .mgy-net-bar>.mgy-net-city:not([open])>.mgy-net-dropdown{display:none!important}}
