/* Homepage header: coffee owns its palm; current forum identity precedes search. */
.site-header__center { flex-wrap: wrap; column-gap: 22px; row-gap: 4px; align-content: center; }
.site-header .main-nav { flex-shrink: 0; }
.main-nav .coffee-nav-link img { position: absolute; left: 50%; bottom: calc(100% - 8px); width: 44px; height: 44px; object-fit: contain; transform: translateX(-50%); }
.site-header__actions { max-width: 100%; min-width: 0; }
.site-header .account-button { display: inline-grid; flex: 0 0 auto; }
.account-button.is-member { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; width: auto; max-width: 290px; min-width: 0; height: 46px; padding: 0 2px; font-family: Georgia, 'Times New Roman', serif; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.ce-account-avatar { position: relative; display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #aa8d4e; border-radius: 50%; overflow: hidden; background: #dcc79d; color: #262016; }
.ce-account-initial { font-family: Arial, sans-serif; font-weight: 700; font-size: 17px; }
.account-button.is-member .ce-account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: none; filter: none; }
.ce-account-name { display: block; max-width: 240px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-button:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
@media (max-width: 1500px) {
  .site-header__center { column-gap: 16px; }
}
@media (min-width: 901px) and (max-width: 1400px) {
  /* Keep navigation readable and give a long member name a separate action row. */
  .site-header__center:has(.is-member) { flex-direction: column; gap: 1px; padding-top: 25px; }
  .site-header__center:has(.is-member) .site-header__actions { align-self: flex-end; }
  .account-button.is-member { height: 30px; }
  .site-header__actions:has(.is-member) .icon-button { width: 30px; height: 30px; font-size: 25px; }
  .site-header__actions:has(.is-member) .ce-account-avatar { width: 28px; height: 28px; flex-basis: 28px; }
}
@media (max-width: 1180px) {
  .main-nav .coffee-nav-link img { width: 34px; height: 34px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .site-header__center { flex-direction: column; gap: 1px; padding-top: 20px; }
  .site-header__actions { align-self: flex-end; }
  .site-header .account-button, .site-header__actions .icon-button { width: 30px; height: 30px; }
  .site-header .account-button > img { width: 30px; height: 30px; }
  .site-header .account-button.is-member { width: auto; }
}
@media (max-width: 900px) {
  .site-header__actions { gap: 8px; }
  .site-header .account-button, .site-header .account-button.is-member { display: inline-flex; align-items: center; justify-content: center; width: 32px; max-width: 32px; height: 36px; padding: 0; gap: 0; }
  .site-header .account-button > img { width: 32px; height: 32px; }
  .ce-account-avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .ce-account-name { display: none; }
  .main-nav .coffee-nav-link { display: flex; align-items: center; justify-content: center; gap: 6px; }
  .main-nav .coffee-nav-link img { position: static; width: 26px; height: 26px; transform: none; }
}
