/* header.css — site header / top bar */
.head{height:var(--head-h);flex:none;display:flex;align-items:center;gap:16px;padding:0 var(--gutter);background:var(--surface)}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--pine-ink)}
.brand-logo{height:24px;width:auto;display:block}
.head-search{display:none;flex:1;max-width:520px;align-items:center;gap:9px;background:var(--surface-2);border:1.5px solid transparent;border-radius:999px;padding:0 6px 0 15px}
.head-search:focus-within{border-color:var(--pine-2);background:var(--surface)}
.head-search>svg{width:17px;height:17px;color:var(--faint);flex:none}
.head-search input{border:none;background:none;outline:none;flex:1;min-width:0;font-size:16px;padding:9px 0}
/* Location pill — sits next to the logo in the header bar (desktop). Fixed
   min-width so varying city-name length never reflows the logo (no page shift). */
.head-loc{display:inline-flex;align-items:center;gap:7px;flex:none;border:1.5px solid var(--line-2);background:var(--surface);border-radius:999px;padding:8px 13px;font-weight:600;font-size:14px;color:var(--pine-ink);white-space:nowrap;cursor:pointer;min-width:150px;max-width:240px;transition:border-color .15s,background .15s}
.head-loc:hover{border-color:var(--pine-2);background:var(--surface-2)}
.head-loc .loc-pin{width:16px;height:16px;color:var(--coral);flex:none}
.head-loc #locPillText{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis}
.head-loc .loc-chev{width:15px;height:15px;color:var(--faint);flex:none}
.head-spacer{flex:1}
.head-login{color:var(--pine-ink);font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap}
.btn-post{display:inline-flex;align-items:center;gap:8px;border:none;background:var(--coral);color:#fff;text-decoration:none;font-weight:700;font-size:14px;padding:10px 16px;border-radius:999px;box-shadow:var(--shadow-sm);transition:background .15s}
.btn-post:hover{background:var(--coral-ink)}
.btn-post svg{width:17px;height:17px}

.head-nav{display:contents}

/* Account avatar + dropdown */
.acct{position:relative;flex:none}
.acct-btn{display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:none;background:none;border-radius:999px;cursor:pointer}
.acct-av{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;background:var(--surface);border:1.5px solid var(--line-2);color:var(--pine-ink);font-weight:700;font-size:15px}
.acct-av.acct-guest{background:var(--surface-2);color:var(--pine-ink)}
.acct-av.acct-guest svg{width:20px;height:20px}
.acct-btn:hover .acct-av.acct-guest{background:var(--line)}
.acct-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:224px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--shadow-lg);padding:6px;z-index:95}
.acct-head{display:flex;flex-direction:column;gap:2px;padding:8px 10px 10px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.acct-head b{color:var(--pine-ink);font-size:14px}
.acct-head span{color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-item{display:block;width:100%;box-sizing:border-box;text-align:left;padding:9px 10px;border:none;background:none;border-radius:8px;font:inherit;font-size:14px;font-weight:600;color:var(--pine-ink);text-decoration:none;cursor:pointer}
.acct-item:hover{background:var(--surface-2)}
.acct-out{color:var(--muted)}
.acct-sep{height:1px;margin:6px 0;background:var(--line)}
.acct-logout-f{margin:0}
.acct-post{color:var(--coral-ink);display:none}   /* redundant with the visible Ievietot button on desktop */


/* upward-opening account menu (rail foot) */
.acct-menu--up{top:auto;bottom:calc(100% + 8px);right:auto;left:0}
