.an-header{position:sticky;top:0;z-index:45;background:#fff;border-bottom:1px solid var(--line)}.an-header-inner{display:flex;align-items:center;gap:22px;min-height:76px}.an-brand{font:700 1.375rem/1.2 var(--display);letter-spacing:-.05em;display:inline-flex;align-items:center;gap:9px;flex-shrink:0}.an-brand>span>span{color:var(--accent)}.an-brand-mark{display:grid;place-items:center;width:34px;height:40px;border-radius:8px;background:var(--accent);color:var(--ink)}.an-brand-mark .icon{width:25px;height:25px}.an-location{display:flex;align-items:center;gap:8px;min-height:44px;border:0;background:none;color:var(--muted);padding:8px 0;font:inherit;font-size:.8125rem;text-align:left;min-width:0}.an-location span{overflow-wrap:anywhere}.an-location>.icon:first-child{color:var(--accent-ink)}.an-location>.icon:last-child{width:14px}.an-location-mobile{display:none}.an-header-actions{display:flex;align-items:center;gap:16px;margin-left:auto}.an-language{display:flex}.an-language form{margin:0}.an-language button{font:inherit;font-size:.8125rem;border:0;background:none;padding:8px;min-height:44px;color:var(--muted)}.an-language button[aria-current=true]{color:var(--accent-ink);text-decoration:underline;text-underline-offset:5px;font-weight:700}.an-divider{height:24px;width:1px;background:var(--line)}.an-account-link{display:flex;align-items:center;gap:7px;min-height:44px;font-size:.875rem}.an-header .an-post{background:var(--ink);border-color:var(--ink);color:white}.an-header .an-post:hover{background:#383e45;border-color:#383e45}.an-sections{display:flex;gap:24px;align-items:center;min-height:64px;flex-wrap:wrap;padding-block:8px}.an-sections a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:.875rem;font-weight:600;border-bottom:3px solid transparent}.an-sections a[aria-current]{border-color:var(--accent)}.an-sections a[aria-current] .icon{color:var(--accent-ink)}.an-sections a:hover{color:var(--accent-ink)}
.an-footer{border-top:1px solid var(--line);padding:30px 0;background:#fff;color:var(--ink)}.an-footer-main{display:flex;align-items:center;justify-content:space-between;gap:24px}.an-footer nav{display:flex;gap:20px;flex-wrap:wrap}.an-footer a:not(.an-brand){font-size:.875rem;min-height:44px;display:inline-flex;align-items:center}.an-footer p{font-size:.8125rem;color:var(--muted);margin:16px 0 0}.an-bottom-nav{display:none}
@media(max-width:1000px){.an-header-inner{gap:16px}.an-header-actions{gap:10px}.an-header .an-post{padding:10px;font-size:.8125rem}.an-location{max-width:210px}.an-divider{display:none}}
@media(max-width:700px){.an-header{background:var(--ink);border-color:#343b43;color:#fff}.an-header-inner{flex-wrap:wrap;gap:8px;padding-block:10px}.an-header .an-brand{font-size:1.05rem;gap:6px;color:#fff}.an-header .an-brand-mark{width:26px;height:32px}.an-header .an-brand-mark .icon{width:22px;height:22px}.an-header-actions{gap:6px}.an-header-actions>.an-icon-button,.an-account-link{display:none}.an-header .an-language button{padding:6px;min-width:30px;font-size:.875rem;color:#d9dee4}.an-header .an-language button[aria-current=true]{color:#ffad84}.an-header .an-post{display:inline-flex;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;background:var(--accent);border-color:var(--accent);color:var(--ink);border-radius:9px}.an-header .an-post>span{display:none}.an-header .an-post .icon{width:24px;height:24px}.an-header .an-post:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.an-header :is(a,button):focus-visible{outline-color:#ffad84}.an-header .an-location{order:3;width:100%;max-width:none;min-height:48px;padding:10px 12px;border:1px solid #dde2e7;border-radius:9px;background:#f3f4f6;color:var(--ink);font-size:1rem;line-height:1.35;gap:9px}.an-header .an-location-desktop{display:none}.an-header .an-location-mobile{display:block;flex:1;min-width:0;overflow-wrap:anywhere}.an-header .an-location>.icon:first-child{color:#a83a13}.an-header .an-location>.icon:last-child{margin-left:auto;width:16px;color:#59636f}
.an-sections{gap:20px;min-height:58px;padding-block:4px}.an-sections a{gap:7px;font-size:.8125rem}.an-sections .icon{width:17px}.an-footer-main{align-items:flex-start;flex-direction:column;gap:12px}.an-footer nav{gap:8px 18px}.an-footer{padding:24px 0}.an-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));height:70px;z-index:50;background:var(--ink);border:1px solid #ffffff22;border-radius:14px;box-shadow:0 7px 22px #20252b30;padding:5px}.an-bottom-nav>a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#ccd1d6;font-size:.625rem;line-height:1.25;min-width:0}.an-bottom-nav>a>.icon{width:23px;height:23px}.an-bottom-nav>a[aria-current]{color:var(--accent)}.an-bottom-nav>a[aria-current]::before{content:'';position:absolute;width:20px;height:2px;top:0;background:var(--accent);border-radius:2px}.an-post-circle{display:grid;place-items:center;border-radius:8px;background:var(--accent);color:var(--ink);width:42px;height:35px}.an-post-circle .icon{width:24px;height:24px}.an-count{position:absolute;top:0;right:5px;min-width:15px;padding:1px 3px;background:var(--accent);color:var(--ink);border-radius:8px;font-size:.625rem}.an-public:has(input:focus,textarea:focus,select:focus) .an-bottom-nav,.an-public.an-keyboard-open .an-bottom-nav{visibility:hidden;pointer-events:none}.an-public.cab-drawer-open .an-bottom-nav{visibility:hidden}}
@media(max-width:350px){.an-sections{gap:13px}.an-sections a{font-size:.75rem}.an-brand{font-size:1.1rem}}

/* Shared territory dialog: independent of the homepage's own dialogs. */
#an-region.an-dialog{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);overflow:auto;box-shadow:0 24px 80px #20252b30}
#an-region[open]{display:flex;flex-direction:column}
#an-region form{display:flex;flex-direction:column;min-width:0;min-height:0;max-height:calc(100dvh - 66px);margin:0}
#an-region .an-dialog-head{flex-shrink:0;margin-bottom:16px;gap:12px}
#an-region h2{font-size:1.25rem;line-height:1.3;margin:0}
#an-region .an-icon-button{flex-shrink:0}
#an-region .an-field{flex-shrink:0;min-width:0;font-size:.875rem;line-height:1.4}
#an-region .an-field select{width:100%;min-width:0;max-width:100%;min-height:48px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff;color:var(--ink);font-size:1rem;line-height:1.5}
#an-region .an-region-options{overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;min-height:0;margin-top:12px;padding:4px}
#an-region .geo-choice{display:block;text-align:left;width:100%;min-height:48px;padding:10px 12px;margin:0 0 6px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:1rem;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#an-region .geo-choice:hover{background:var(--accent-soft);border-color:var(--accent)}
#an-region .geo-choice[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink);box-shadow:inset 3px 0 var(--accent)}
#an-region summary{min-height:44px;padding:10px 4px;cursor:pointer;color:var(--accent-ink);font-size:1rem;line-height:1.5}
#an-region details>div{padding-top:6px}
#an-region .an-region-status{flex-shrink:0;font-size:.875rem;color:#b42318;margin:10px 0 0}
#an-region .an-dialog-actions{flex-shrink:0;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
#an-region .an-dialog-actions .btn{min-height:48px;font-size:1rem}
body:has(#an-region[open]){overflow:hidden}
@media(max-width:700px){
 #an-region.an-dialog{width:100%;max-width:none;max-height:94dvh;position:fixed;inset:auto 0 0;margin:0;border:0;border-radius:14px 14px 0 0;padding:16px 16px max(16px,env(safe-area-inset-bottom))}
 #an-region form{max-height:calc(94dvh - 32px - env(safe-area-inset-bottom))}
 #an-region .an-dialog-head{margin-bottom:14px}
 #an-region .an-dialog-actions{margin-top:12px;padding-top:12px}
 #an-region .an-dialog-actions .btn{width:100%}
}
