/* ---- shared orange nav (home / cats / topic) ---- */
.page .synced-nav{height:60px;display:flex;align-items:center;padding:0 8px 0 10px;background:#FB4E23;color:#fff}
.page .synced-nav .logo{flex:1;min-width:0;display:flex;align-items:center}
.page .synced-nav .logo img{height:52px;width:auto;max-width:100%;object-fit:contain;object-position:left center;display:block}
.page .synced-nav .right{display:flex;flex:none;gap:4px;align-items:center}
.page .synced-nav .ic-btn{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:#fff;background:none}
.page .synced-nav .ic-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* ---- shared search row ---- */
.page .forum-search-toggle{border:0;padding:0;background:none;cursor:pointer}
.page .forum-search-form{display:flex;align-items:center;gap:8px;padding:6px 16px 8px;background:#FB4E23;margin:0}
.page .forum-search-form[hidden]{display:none}
.page .forum-search-input{height:36px;width:0;flex:1;min-width:0;padding:7px 10px;border:1px solid #80bdff;box-shadow:0 0 0 1px #007bff24;border-radius:4px;background:#fff;color:#343a40;font-size:14px;outline:none;-webkit-appearance:none;appearance:none}
.page .forum-search-input::placeholder{color:#89919c}
.page .forum-search-submit{height:36px;width:56px;padding:0;flex:none;border:0;border-radius:6px;background:#fff;color:#C93614;font-size:14px;cursor:pointer}
.page .forum-search-submit:hover{background:#fff7f3}
.page .forum-search-toggle:focus-visible,.page .forum-search-submit:focus-visible{outline:2px solid #80bdff;outline-offset:2px}
.page .forum-search-input{font-size:16px}
.page .synced-nav a{text-decoration:none}

/* Shared fixed header, including an expanded search row. */
:root{--sb-header-offset:60px}
:root:has(.forum-search-form:not([hidden])){--sb-header-offset:110px}
.page .synced-nav{position:fixed!important;top:0;left:50%;transform:translateX(-50%);width:min(100%,414px);z-index:1000;box-sizing:border-box}
.page .forum-search-form{position:fixed!important;top:60px;left:50%;transform:translateX(-50%);width:min(100%,414px);height:50px;box-sizing:border-box;z-index:1000;margin:0!important}
#page-home,#page-cats,#page-topic,#page-post{padding-top:var(--sb-header-offset)!important}
.bw-forum-header{height:var(--sb-header-offset);flex-shrink:0}
.feed-page .bee-header,.detail-page .detail-header{position:sticky;top:var(--sb-header-offset);z-index:999;background:#fff}
#page-post .header-wrap{position:sticky;top:var(--sb-header-offset);z-index:999;background:#fff}

/* Customer IP-promotion banner, placed directly below the shared header. */
