/* Shared frame boundaries; PetzU's base styles are scoped to its content. */
body { margin: 0; line-height: 1.5; }
.poms-browser-window,
.poms-browser-window *,
.poms-browser-window *::before,
.poms-browser-window *::after { box-sizing: border-box; }
@font-face {
  font-family: 'Comic Sans MS';
  src: url('/assets/COMIC.TTF') format('truetype');
  font-display: swap;
}

.offscreen {
  position: absolute;
  left: -100000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.poms-navigation-strip {
  color: var(--poms-sidebar-text);
}

/* Use the current POMS sidebar rules for PetzU's existing left-navigation links. */
.petzu-frame #mobile-nav {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--poms-sidebar) url('/assets/petzbak.png') repeat;
}

#mobile-nav .nav-header {
  margin-bottom: 0;
}

#mobile-nav .nav-content,
#mobile-nav .nav-content.open {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.petzu-frame #mobile-nav .petzu-navigation {
  display: flex;
  flex-direction: column;
  padding: 0 0 18px;
  background: transparent;
  font-family: 'Comic Sans MS', sans-serif;
  color: var(--poms-sidebar-text);
}

.petzu-navigation > h2 {
  margin: 12px;
  color: var(--poms-sidebar-text);
}

.petzu-navigation > form {
  width: 100%;
  padding: 0 12px;
  margin: 0 0 18px;
  gap: 8px;
}

.petzu-navigation .nav-ul {
  list-style: none;
}

.petzu-navigation > img {
  align-self: flex-start;
  margin: 0 12px;
}

.petzu-navigation > form button,
#mobile-nav .hamburger {
  margin-top: 0;
  padding: 6px 12px;
  min-height: 36px;
  border: 0;
  border-top: 3px solid var(--poms-sidebar-light);
  border-bottom: 3px solid var(--poms-sidebar-dark);
  border-radius: 0;
  background: var(--poms-sidebar);
  box-shadow: none;
  font-family: 'Comic Sans MS', sans-serif;
  font-size: 14px;
  color: var(--poms-sidebar-text);
  text-align: left;
}

.petzu-navigation > form button:hover,
#mobile-nav .hamburger:hover {
  background: #617f51;
  text-decoration: none;
}

.petzu-navigation > form button:active,
#mobile-nav .hamburger:active {
  border-top-color: var(--poms-sidebar-dark);
  border-bottom-color: var(--poms-sidebar-light);
}

@media (max-width: 767px) {
  .petzu-navigation .nav-ul a,
  .petzu-navigation > form button,
  #mobile-nav .hamburger {
    min-height: 44px;
  }
}

.poms-account-strip a:link,
.poms-account-strip a:visited {
  color: var(--poms-sidebar-text);
}

/* Keep PetzU's original textured canvas within the common POMS frame. */
.petzu-site {
  flex: 1 0 auto;
  min-width: 0;
  font-size: 16px;
  background: var(--poms-bg);
}

.petzu-site > .layout {
  min-width: 0;
}

.petzu-site > header img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.petzu-site > .layout > main,
.petzu-site > .layout > nav,
.petzu-site > .layout > aside {
  min-width: 0;
}

@media (max-width: 767px) {
  .petzu-site > .layout > main,
  .petzu-site > .layout > nav,
  .petzu-site > .layout > aside {
    width: auto;
  }
}

/* The PetzU sidebar now occupies the same outer column as POMS navigation. */
.poms-browser-window > .petzu-frame {
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

.petzu-frame > .petzu-sidebar {
  flex: 0 0 var(--poms-sidebar-width);
  width: var(--poms-sidebar-width);
}

.petzu-frame #mobile-nav {
  width: 100%;
  margin: 0;
}

.petzu-frame > .petzu-site {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}

.petzu-site > .layout > main {
  flex: 1 1 0;
  width: auto;
}

.petzu-site > .layout > .user-menu {
  flex: 0 0 220px;
  width: 220px;
}

/* Keep forms usable between the desktop and phone breakpoints. */
@media (max-width: 1100px) {
  .petzu-site > .layout {
    flex-direction: column;
  }

  .petzu-site > .layout > main,
  .petzu-site > .layout > .user-menu {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .petzu-frame > .petzu-sidebar,
  .petzu-frame > .petzu-site {
    flex: 0 0 auto;
    width: 100%;
  }

  .petzu-sidebar > .poms-menu-toggle {
    margin: 0;
    font-weight: normal;
  }
}
