/* Shared POMS header appearance. Edit this file on the main POMS site.
   Backgrounds and theme/toggle colors remain in each site's own CSS.
   Tab palette and sizing are taken from Paw Creek. */

.poms-browser-window > .site-header {
  justify-content: flex-start;
  align-items: center;
  min-height: 64px;
  padding: 4px 10px;
  border: 0;
  display: flex;
  height: auto;
  text-align: left;
}
.poms-wordmark,
.poms-wordmark:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #782c28;
  text-decoration: none;
}
.site-header .poms-wordmark img {
  width: auto;
  height: auto;
  max-width: 100%;
  image-rendering: pixelated;
  display: block;
}
.poms-navigation-strip {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.poms-account-strip {
  display: flex;
  flex: 0 1 auto;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: var(--poms-sidebar-width);
  padding: 4px 8px;
  font-family: 'Comic Sans MS', sans-serif;
  font-size: 14px;
}
.poms-account-strip > span {
  white-space: nowrap;
}
.poms-account-strip .poms-balance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.poms-balance img {
  width: auto;
  height: auto;
  max-width: none;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.poms-account-strip a,
.poms-account-strip a:visited {
  text-decoration: none;
}
.poms-account-strip a:hover {
  text-decoration: underline;
}
.poms-inbox-menu {
  position: relative;
}
.poms-inbox-menu summary {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
}
.poms-inbox-menu summary::-webkit-details-marker {
  display: none;
}
.poms-inbox-menu summary img {
  width: 21px;
  height: 12px;
  max-width: none;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.poms-inbox-links {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 8px;
  box-shadow: 2px 3px 0 var(--poms-shadow);
}
.poms-inbox-links a {
  display: block;
  padding: 10px 6px;
}
/* Shared by the header tabs and the inbox tabs. */
.poms-site-tabs,
.poms-inbox-tabs {
  --poms-tab-poms: #ecd0c6;
  --poms-tab-events: #ecd0c6;
  --poms-tab-bazaar: #262b51;
  --poms-tab-dopp: #4c703f;
  --poms-tab-petzu: #5597ca;
  --poms-tab-ukc: #d39616;
  --poms-tab-paw-creek: #104111;
  --poms-tab-forum: #132449;
  --poms-tab-forum-text: #8ac1e5;
  --poms-tab-poms-text: #771e1e;
  --poms-tab-events-text: #771e1e;
}
.poms-site-tabs {
  display: flex;
  flex: 1 1 430px;
  align-items: flex-end;
  gap: 0;
  isolation: isolate;
  min-width: 0;
  padding-top: 4px;
  overflow-x: auto;
}
.poms-site-tab,
.poms-site-tab:visited {
  position: relative;
  z-index: 0;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 30px;
  padding: 3px 14px;
  border-radius: 12px 12px 0 0;
  color: #fffaf2;
  font-family: 'poms-tabs', sans-serif;
  font-size: 20px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  filter: drop-shadow(-2px 0 2px #0000003b);
}
.poms-site-tab + .poms-site-tab { margin-left: -6px; }

.poms-site-tab--bazaar {
  background: var(--poms-tab-bazaar);
}
.poms-site-tab--dopp {
  background: var(--poms-tab-dopp);
}
.poms-site-tab--petzu {
  background: var(--poms-tab-petzu);
}
.poms-site-tab--ukc {
  background: var(--poms-tab-ukc);
}
.poms-site-tab--paw-creek {
  background: var(--poms-tab-paw-creek);
}
.poms-site-tab[aria-current="page"],
.poms-site-tab[aria-current="page"]:visited {
  min-width: 96px;
  min-height: 38px;
  z-index: 2;
}
.poms-site-tab[aria-disabled="true"] {
  color: #405d37;
  cursor: default;
}
.poms-site-tab[href]:hover {
  color: #fff;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5);
}
@media (max-width: 980px) {
.poms-account-strip {
  width: 100%;
  min-height: 30px;
}
.poms-site-tabs {
  width: 100%;
  padding-left: var(--poms-sidebar-width);
}
}
@media (max-width: 640px) {
.poms-site-tabs {
  padding-left: 0;
}
.poms-site-tab,
.poms-site-tab:visited {
  min-height: 44px;
  min-width: 64px;
  padding: 6px 12px;
}
.poms-site-tab[aria-current="page"] {
  min-width: 80px;
  min-height: 48px;
}
.poms-account-strip {
  min-height: 44px;
  gap: 12px;
}
.poms-inbox-menu summary,
.poms-account-strip > a {
  display: flex;
  align-items: center;
  min-height: 36px;
}
}
.poms-account-strip .poms-banner-welcome {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.poms-account-strip .poms-banner-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 32px;
  min-height: 32px;
}
.poms-banner-logout img {
  display: block;
  width: 32px;
  height: 32px;
  max-width: none;
  image-rendering: pixelated;
}
@media (max-width: 640px) {
.poms-account-strip .poms-banner-welcome {
  flex-basis: 100%;
}
.poms-account-strip .poms-banner-logout {
  min-width: 44px;
  min-height: 44px;
}
}
.poms-wordmark {
  margin: 0;
}
.poms-navigation-strip > .poms-site-tabs {
  flex: 1 1 430px;
  width: auto;
  margin: 0;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.poms-site-tabs .poms-site-tab:link,
.poms-site-tabs .poms-site-tab:visited,
.poms-site-tabs .poms-site-tab:hover {
  color: #fffaf2;
  text-decoration: none;
}
.poms-site-tabs .poms-site-tab--poms {
  background: var(--poms-tab-poms);
}

.poms-site-tabs .poms-site-tab[aria-disabled="true"] {
  color: #405d37;
}

.poms-site-tabs .poms-site-tab--poms,
.poms-site-tabs .poms-site-tab--poms:link,
.poms-site-tabs .poms-site-tab--poms:visited,
.poms-site-tabs .poms-site-tab--poms:hover {
  color: var(--poms-tab-poms-text);
}

.pc-poms-banner .poms-site-tabs .poms-site-tab--paw-creek,
.pc-poms-banner .poms-site-tabs .poms-site-tab--paw-creek:is(:link, :visited, :hover, :focus-visible) {
  background: var(--pc-button-bg);
  color: var(--pc-button-text);
}

.ukc-poms-banner .poms-site-tabs .poms-site-tab--ukc,
.ukc-poms-banner .poms-site-tabs .poms-site-tab--ukc:is(:link, :visited, :hover, :focus-visible) {
  background: var(--poms-ukc-tab-bg, var(--poms-tab-ukc));
  color: var(--poms-ukc-tab-text, #fffaf2);
}

.ukc-poms-banner .poms-navigation-strip {
  background: var(--poms-ukc-strip-bg, var(--poms-sidebar));
}

.ukc-poms-banner .poms-account-strip,
.ukc-poms-banner .poms-account-strip a,
.ukc-poms-banner .poms-account-strip a:link,
.ukc-poms-banner .poms-account-strip a:visited,
.ukc-poms-banner .poms-account-strip a:hover {
  color: var(--poms-ukc-tab-text);
}

.ukc-poms-banner .poms-inbox-links {
  background: var(--poms-ukc-strip-bg);
  color: var(--poms-ukc-tab-text);
  border-color: var(--poms-ukc-border);
}

.ukc-poms-banner .poms-inbox-links a,
.ukc-poms-banner .poms-inbox-links a:link,
.ukc-poms-banner .poms-inbox-links a:visited,
.ukc-poms-banner .poms-inbox-links a:hover {
  color: var(--poms-ukc-tab-text);
}

.poms-site-tabs .poms-site-tab--forum,
.poms-site-tabs .poms-site-tab--forum:is(:link, :visited, :hover, :focus-visible) {
  background: var(--poms-tab-forum);
  color: var(--poms-tab-forum-text);
}

.poms-site-tabs .poms-site-tab--events,
.poms-site-tabs .poms-site-tab--events:is(:link, :visited, :hover, :focus-visible) {
  background: var(--poms-tab-events);
  color: var(--poms-tab-events-text);
}
