/* Shared browsing location; account home settings deliberately remain separate. */
.browsing-location{position:relative;min-width:0}
.browsing-location__trigger{display:flex;align-items:center;justify-content:center;gap:8px;max-width:180px;min-height:44px;padding:8px;border:0;border-radius:22px;background:transparent;color:var(--bc-color-text-primary);font:600 11px/1.3 var(--bc-font-ui);text-transform:uppercase;cursor:pointer}
.browsing-location__trigger>[data-browsing-location-label]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.browsing-location__trigger:hover,.browsing-location__trigger:focus-visible,.browsing-location__trigger[aria-expanded="true"]{background:rgba(156,166,183,.08)}
.browsing-location__pin{position:relative;display:block;width:13px;height:16px;flex:0 0 13px}
.browsing-location__pin img:first-child{position:absolute;inset:0}
.browsing-location__pin img:last-child{position:absolute;left:3.5px;top:3.5px}
.browsing-location__chevron{visibility:hidden;flex:0 0 10px}
.browsing-location__trigger:hover .browsing-location__chevron,.browsing-location__trigger:focus-visible .browsing-location__chevron,.browsing-location__trigger[aria-expanded="true"] .browsing-location__chevron{visibility:visible}
.location-selector{position:fixed;top:calc(var(--bc-header-height) - 10px);right:max(16px,calc((100vw - var(--bc-layout-content-max))/2));width:510px;max-width:calc(100vw - 32px);padding:24px;box-sizing:border-box;border:1px solid var(--bc-color-border-default);border-radius:14px;background:var(--bc-color-bg-panel);color:var(--bc-color-text-primary);z-index:110;max-height:calc(100dvh - var(--bc-header-height) - 32px);overflow-y:auto;font:400 15px/1.5 var(--bc-font-ui)}
.location-selector[hidden],.location-selector [hidden]{display:none}
.location-selector__eyebrow{font:600 11px/1.4 var(--bc-font-ui);color:var(--bc-color-text-secondary);margin:0 0 12px;letter-spacing:.04em}
.location-selector h2{font:400 16px/1.5 var(--bc-font-ui);margin:0 30px 24px 0}
.location-selector input,.home-location-editor input{box-sizing:border-box;width:100%;min-height:58px;border:1px solid var(--bc-color-border-default);border-radius:8px;background:var(--bc-color-bg-canvas);color:var(--bc-color-text-primary);padding:16px;font:400 15px/1.4 var(--bc-font-ui)}
.location-selector input::placeholder{color:var(--bc-color-text-secondary)}
.location-selector button{font-family:var(--bc-font-ui);cursor:pointer}
.location-selector__close{position:absolute;top:12px;right:12px;width:44px;height:44px;background:none;border:0;color:var(--bc-color-text-primary);font-size:26px}
.location-selector__current{width:100%;text-align:left;min-height:55px;margin-top:18px;padding:16px 18px;border:1px solid var(--bc-color-border-toggle-fan);border-radius:8px;background:var(--bc-color-bg-toggle-comic-active);color:var(--bc-color-text-primary);font-weight:600}
[data-location-results]:not(:empty){margin-top:18px}
[data-location-results]>button,.home-location-editor [data-home-results]>button{display:block;width:100%;min-height:54px;text-align:left;border:0;border-radius:7px;padding:14px 16px;background:transparent;color:var(--bc-color-text-primary);font:400 15px/1.5 var(--bc-font-ui)}
[data-location-results]>button:hover,[data-location-results]>button:focus-visible,.home-location-editor [data-home-results]>button:hover,.home-location-editor [data-home-results]>button:focus-visible{background:var(--bc-color-bg-toggle-comic-active)}
.location-selector__history{margin-top:24px;padding-top:24px;border-top:1px solid var(--bc-color-border-default)}
[data-location-recents]{display:flex;gap:12px;flex-wrap:wrap}
[data-location-recents] .btn{min-height:40px;padding:10px 15px;font-size:12px;text-transform:none}
.location-selector__selection{margin:26px 0 0;padding:12px 15px;border-radius:7px;background:var(--bc-color-bg-elevated);font-size:11px}
.location-selector__selection strong{margin-left:8px}
.location-selector__status{color:var(--bc-color-text-secondary);font-size:13px;margin:18px 0 0}
.location-selector__status:empty{display:none}
.browsing-location button:focus-visible,.location-selector button:focus-visible,.location-selector input:focus-visible,.home-location-editor :is(button,input):focus-visible{outline:2px solid var(--bc-color-border-action);outline-offset:3px}
.crowd-home-location{margin-top:var(--bc-space-lg);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:24px;border:1px solid var(--bc-color-border-default);border-radius:10px;background:var(--bc-color-bg-panel)}
.crowd-home-location p{margin:0 0 8px}.crowd-home-location strong{font:600 24px/1.4 var(--bc-font-ui);overflow-wrap:anywhere}.crowd-home-location strong[data-home-radius]{font-size:16px}
.crowd-home-location .btn{min-width:172px}
.home-location-editor{max-width:550px;padding:26px;margin-top:24px;border:1px solid var(--bc-color-border-default);border-radius:12px;background:var(--bc-color-bg-panel)}
.home-location-editor[hidden]{display:none}.home-location-editor h3{font:600 24px/1.3 var(--bc-font-ui)}
#homeLocationEditor h3{margin:var(--bc-space-sm) 0 var(--bc-space-md)}
#homeLocationEditor [data-home-results]{margin-bottom:var(--bc-space-md)}
.home-location-editor .crowd-actions{margin-top:32px}.home-radius-options{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}
.home-radius-options button{flex:1;min-width:82px}.home-radius-options [aria-pressed="true"]{background:var(--bc-color-bg-toggle-comic-active);border-color:var(--bc-color-border-toggle-fan)}
@media(min-width:761px) and (max-width:1400px){.site-header__controls{gap:12px}.site-header__inner{gap:16px;grid-template-columns:200px minmax(0,1fr) auto}.site-header__brand{width:200px}.browsing-location__trigger{max-width:152px}}
@media(min-width:761px) and (max-width:1200px){
 .site-header__inner{min-height:122px;grid-template-columns:minmax(180px,1fr) auto;padding:8px 32px;gap:8px 16px}
 .site-header__brand{grid-row:1;grid-column:1;width:180px;height:75px}
 .site-header__actions{grid-row:1;grid-column:2}
 .site-header__controls{grid-row:2;grid-column:1/-1;justify-content:center}
 .site-header__nav{display:none}
 body[data-page="comic-detail"] .site-header__inner{min-height:122px;grid-template-columns:minmax(180px,1fr) auto;padding:8px 32px;gap:8px 16px}
 body[data-page="comic-detail"] .site-header__brand{grid-row:1;grid-column:1}
 body[data-page="comic-detail"] .site-header__controls{display:flex;grid-row:2;grid-column:1/-1}
 body[data-page="comic-detail"] .site-header__actions{grid-row:1;grid-column:2}
 body[data-page="comic-detail"] .site-header__actions>:not(.btn-menu){display:inherit}
 body[data-page="comic-detail"] .site-header__nav{display:none}
}
@media(max-width:760px){
 .site-header__inner{grid-template-columns:minmax(100px,1fr) auto;gap:8px;padding:8px 16px}
 .site-header__actions{position:static;gap:4px}.site-header{position:sticky}
 .site-header__actions .btn-favorite{display:inline-flex}.site-header .btn-signin{display:inline-flex;min-width:76px;width:76px;flex-basis:76px;font-size:10px}
 .site-header__brand{width:120px}.site-header__controls{grid-column:1/-1;grid-row:2;justify-content:space-between;flex-wrap:wrap;padding-bottom:4px}
 .browsing-location{position:static}.browsing-location__trigger{max-width:152px;min-height:44px;font-size:10px}
 .site-header__actions .browsing-location{position:absolute;bottom:12px;right:16px}
 .mode-toggle--header{width:186px;height:44px}.mode-toggle--header .mode-toggle__option{font-size:10px}
 .location-selector{position:fixed;inset:var(--bc-header-height) 0 0;width:100%;max-width:none;max-height:none;border-radius:0;padding:24px 20px;z-index:120}
 .location-selector h2{font-size:23px;font-weight:600}.location-selector__selection{background:none;padding:0}.location-selector__selection strong{display:block;margin:12px 0 0;font-size:17px}
 body.location-selector-open{overflow:hidden}.crowd-home-location{gap:20px 12px;padding:20px}.crowd-home-location .btn{min-width:0;padding:10px;font-size:10px}
 /* Comic pages previously hid all account controls. Keep the shared location/navigation usable. */
 body[data-page="comic-detail"] .site-header__inner{min-height:122px;grid-template-columns:minmax(100px,1fr) auto;padding:8px 16px;gap:8px}
 body[data-page="comic-detail"] .site-header__controls{display:flex;grid-column:1/-1;grid-row:2}
 body[data-page="comic-detail"] .site-header__actions>:not(.btn-menu){display:inherit}
 body[data-page="comic-detail"] .site-header__brand{width:120px;height:auto}
}
@media(max-width:370px){.mode-toggle--header{width:160px}.browsing-location__trigger{max-width:132px}.site-header__actions .browsing-location{right:10px}.site-header__inner{padding-inline:10px}.site-header .btn-signin{min-width:68px;width:68px;flex-basis:68px}}
