/* Framed chrome + floating nav (all pages). Home-only tweaks: .page-home */

body.site-framed .nav {
  position: fixed;
  border-radius: 0 0 var(--site-frame-radius) var(--site-frame-radius);
  box-shadow: none;
}

@media (min-width: 769px) {
  body.site-framed .nav {
    width: 700px;
    max-width: calc(100vw - 2 * var(--site-frame-inset) - 24px);
    padding: 10px 20px;
  }
}

/* Slightly wider tab so primary links stay one row */
@media (min-width: 769px) and (max-width: 1199px) {
  body.site-framed .nav {
    width: min(760px, calc(100vw - 2 * var(--site-frame-inset) - 20px));
    padding: 10px 20px;
  }
}

@media (min-width: 1200px) {
  body.site-framed .nav {
    width: 1000px;
    max-width: calc(100vw - 2 * var(--site-frame-inset) - 32px);
    padding: 10px 28px;
  }
}

body.site-framed .nav::before,
body.site-framed .nav::after {
  display: block;
  content: "";
  top: 0;
  position: absolute;
  width: 30px;
  height: 15px;
  background: transparent;
  z-index: -1;
}

body.site-framed .nav::before {
  left: -30px;
  border-top-right-radius: 15px;
  box-shadow: 15px 0 0 var(--site-frame-border);
}

body.site-framed .nav::after {
  right: -30px;
  border-top-left-radius: 15px;
  box-shadow: -15px 0 0 var(--site-frame-border);
}

@media (min-width: 769px) {
  html.site-framed {
    background: var(--site-frame-border);
  }

  body.site-framed {
    min-height: 100vh;
    /* Same as frame ring so nothing peeks through at the inner window edge */
    background: var(--site-frame-border);
  }

  /*
   * Frame: square at the viewport (shadow fills monitor corners), rounded opening
   * matching the inset content area (inset + inner radius).
   */
  body.site-framed::before {
    content: "";
    position: fixed;
    inset: var(--site-frame-inset);
    z-index: 1000;
    pointer-events: none;
    border-radius: var(--page-frame-inner-radius);
    box-shadow: 0 0 0 9999px var(--site-frame-border);
    box-sizing: border-box;
  }

  /* Sit just inside the frame inset so the tab aligns with the rounded “window” */
  body.site-framed .nav {
    top: var(--site-frame-inset);
  }

  body.site-framed .page-frame-inner {
    position: relative;
    z-index: 0;
    min-height: 0;
    overflow: visible;
    background: var(--bg-cream);
  }
}

@media (max-width: 768px) {
  body.site-framed {
    background: var(--bg-cream);
  }

  body.site-framed::before {
    display: none;
  }

  body.site-framed .nav {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  body.site-framed .nav::before,
  body.site-framed .nav::after {
    display: none;
  }

  body.site-framed .page-frame-inner {
    overflow: visible;
    background: transparent;
  }
}

/* Full-viewport hero on home (images use object-fit: cover in shared .slide img) */
body.page-home .hero-slider {
  height: 100vh;
  min-height: 100vh;
  max-height: none;
}

@supports (height: 100dvh) {
  body.page-home .hero-slider {
    height: 100dvh;
    min-height: 100dvh;
  }
}

/* Bar & events / venue panel: taller image column so portrait photos are not cropped at the top */
.wavy-panel-image--venue-events {
  min-height: 520px;
}

.wavy-panel-image--venue-events img {
  object-position: center top;
}

@media (max-width: 768px) {
  .wavy-panel-image--venue-events {
    min-height: 320px;
  }
}
