/* One masthead layout for the app and the standalone cooperation page. */
html:has(.public-masthead) {
  scroll-padding-top: calc(var(--dworek-masthead-height, 7.25rem) + .5rem);
}
.public-header.public-masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: .65rem 0;
  background: #fff;
  border-bottom: 1px solid #e4dac6;
}
/* The header and both framed panels share the same outer edges. */
.public-hero--offer,
.public-header.public-masthead nav {
  width:var(--venue-shell, min(80rem, calc(100% - 3rem)));
}
.public-header.public-masthead nav {
  display: grid;
  margin-inline: auto;
  grid-template-columns: 50% minmax(0, 1fr) auto;
  grid-template-areas: "brand browse contact";
  align-items: center;
  gap: 0;
  font: 500 .9375rem/1.35 "Dworek Jost", Arial, sans-serif;
  color: #2a4a36;
}
.public-header.public-masthead .brand-logo {
  grid-area: brand;
  justify-self: center;
}
.public-header.public-masthead .brand-logo img {
  width: clamp(13.5rem, 18vw, 17rem);
  height: auto;
}
.public-masthead .masthead-browse {
  grid-area: browse;
  display: flex;
  align-items: center;
  justify-self: end;
  margin-inline-end: clamp(.75rem, 2vw, 2rem);
  gap: clamp(.75rem, 2vw, 2rem);
}
.public-masthead .masthead-browse a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.public-masthead .masthead-browse a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}
.public-header.public-masthead .masthead-contact {
  grid-area: contact;
  justify-self: end;
  min-height: 2.75rem;
  padding: .4rem 1rem;
  border: 1px solid #b08f55;
  border-radius: 2rem;
  background: #fff;
  color: #2a4a36;
  font: inherit;
  text-align: center;
}
.public-masthead .masthead-contact:hover {
  box-shadow: inset 0 0 0 1px #b08f55;
}
.public-masthead a:focus-visible {
  outline: 2px solid #775a2b;
  outline-offset: 3px;
}
.skip-link:focus { position: fixed; z-index: 21; }

.public-hero-offerline .offer-line-compact { display:none; }

.offer-pages,.offer-pages[hidden],.offer-photo-caption { display:none; }

/* Leave the same white space above the diptych and before the feature icons.
   Reserve room for the complete feature row; content can still grow at large text sizes. */
@media (min-width:961px), (min-width:768px) and (min-height:501px) {
  .public-site:has(.offer-showcase) {
    --intro-space:clamp(1.25rem,3.8vh,2.5rem);
    --intro-reserve:8rem;
  }
  .offer-showcase { padding-block-start:var(--intro-space); background:white; }
  .offer-showcase .public-hero.public-hero--offer {
    --available-intro:calc(100vh - var(--dworek-masthead-height,6.75rem) - var(--intro-space) * 2 - var(--intro-reserve));
    --available-intro:calc(100svh - var(--dworek-masthead-height,6.75rem) - var(--intro-space) * 2 - var(--intro-reserve));
    min-height:clamp(16.5rem,var(--available-intro),35.625rem);
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin:0 auto var(--intro-space);
  }
  .offer-showcase .public-hero--offer .public-hero-image { min-height:0; }
  .public-site .offer-showcase + .public-facts { padding:0 0 var(--intro-space); }
  .public-site .offer-showcase + .public-facts > div { padding:.25rem clamp(.85rem,2vw,2rem); }
}
@media (min-width:961px) and (max-height:820px), (min-width:768px) and (min-height:501px) and (max-height:820px) {
  .offer-showcase .public-hero--offer .public-hero-copy { padding:clamp(.85rem,2.7vh,1.5rem) clamp(1.3rem,3vw,2rem); }
  .offer-showcase .public-hero--offer .hero-ornament { margin-bottom:clamp(.35rem,1.4vh,.75rem); }
  .offer-showcase .public-hero--offer h1 { font-size:clamp(2.65rem,min(5vw,8vh),4rem); margin:.75rem 0 0; }
  .offer-showcase .public-hero--offer .public-hero-offerline { font-size:clamp(1.3rem,2.8vh,1.55rem); margin:.7rem 0 0; }
  .offer-showcase .public-hero--offer .public-hero-description { margin:.65rem 0 0; font-size:1rem; line-height:1.48; }
  .offer-showcase .public-hero--offer .public-cta { min-height:44px; margin:.85rem 0 0; padding:.55rem 1.5rem; }
  .offer-showcase .public-hero--offer .public-location { margin:.55rem 0 0; }
}
@media (min-width:961px) and (max-height:650px), (min-width:768px) and (min-height:501px) and (max-height:650px) {
  .public-header.public-masthead { padding-block:.35rem; }
  .public-header.public-masthead .brand-logo img { width:clamp(10rem,28vh,12.4rem); }
  .public-site:has(.offer-showcase) { --intro-space:clamp(1rem,3.3vh,1.25rem); --intro-reserve:7rem; }
  .offer-showcase .public-hero--offer .public-hero-copy { padding:.75rem 1.3rem; }
  .offer-showcase .public-hero--offer h1 { margin:.45rem 0 0; font-size:clamp(2.35rem,7.7vh,3.125rem); }
  .offer-showcase .public-hero--offer .public-hero-offerline,.offer-showcase .public-hero--offer .public-hero-description { margin-top:.45rem; }
}
@media (max-width:767px), (max-width:960px) and (max-height:500px) and (orientation:landscape) {
  html { --mobile-masthead-height:clamp(3.65rem,16.5vw,4.45rem); }
  html:has(.public-masthead) {
    scroll-padding-top:calc(var(--dworek-masthead-height,var(--mobile-masthead-height)) + .5rem);
  }
  .public-header.public-masthead {
    box-sizing:border-box; height:var(--mobile-masthead-height); padding:.28rem .75rem;
  }
  .public-header.public-masthead nav {
    display:flex; align-items:center; justify-content:center; width:100%; height:100%;
  }
  .public-header.public-masthead .masthead-browse,
  .public-header.public-masthead .masthead-contact { display:none; }
  .public-header.public-masthead .brand-logo { height:100%; width:auto; }
  .public-header.public-masthead .brand-logo img { height:100%; width:auto; }


  /* A glimpse of the other framed panel signals that the rail moves sideways. */
  .offer-showcase {
    padding-block-start:clamp(.875rem,4vw,1.5rem);
    margin:0 auto clamp(1.25rem,4vw,2rem);
    background:white;
  }
  .offer-showcase .public-hero.public-hero--offer {
    --panel-gap:clamp(.375rem,1.5vw,.625rem);
    --peek:clamp(.75rem,4.5vw,1.5rem);
    --offer-frame-inset:clamp(6px,2vw,9px);
    display:grid; grid-template-columns:none; grid-auto-flow:column;
    grid-auto-columns:calc(100% - var(--peek) - var(--panel-gap)); grid-template-rows:auto;
    gap:var(--panel-gap); align-items:stretch; width:min(calc(100% - 1.5rem),34rem);
    min-height:0; margin:0 auto; overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory; background:transparent;
  }
  .offer-showcase[data-offer-enhanced] [data-offer-track] { scrollbar-width:none; }
  .offer-showcase[data-offer-enhanced] [data-offer-track]::-webkit-scrollbar { display:none; }
  .offer-showcase [data-offer-track]:focus-visible { outline:2px solid #775a2b; outline-offset:3px; }
  .offer-showcase [data-offer-track] > * {
    box-sizing:border-box; width:100%; min-width:0; scroll-snap-align:start;
  }
  .offer-showcase [data-offer-track] > :last-child { scroll-snap-align:end; }
  .offer-showcase .public-hero--offer .public-hero-copy {
    padding:clamp(.75rem,3.6vw,1.55rem) clamp(.75rem,3.8vw,1.55rem);
    min-height:auto;
  }
  .offer-showcase .public-hero--offer .hero-ornament { margin-bottom:clamp(.28rem,1.1vw,.5rem); gap:.65rem; }
  .offer-showcase .hero-ornament::before,.offer-showcase .hero-ornament::after { width:2.4rem; }
  .offer-showcase .public-hero--offer .public-eyebrow { font-size:.72rem; line-height:1.3; letter-spacing:.105em; }
  .offer-showcase .public-hero--offer h1 {
    margin:clamp(.25rem,1.4vw,.6rem) 0 0;
    font-size:clamp(2.25rem,11.4vw,3.85rem); line-height:.94; letter-spacing:-.025em;
  }
  .offer-showcase .public-hero--offer .public-hero-offerline {
    max-width:none; margin:clamp(.3rem,1.55vw,.7rem) 0 0;
    font-size:clamp(.96rem,4.55vw,1.4rem); line-height:1.2;
  }
  .public-hero-offerline .offer-line-wide { display:none; }
  .public-hero-offerline .offer-line-compact { display:inline; white-space:nowrap; }
  .offer-showcase .public-hero--offer .public-hero-description {
    max-width:32ch; margin:clamp(.32rem,1.7vw,.8rem) 0 0; font-size:1rem; line-height:1.35;
  }
  .offer-showcase .public-hero--offer .public-cta {
    min-height:2.75rem; min-width:0; margin:clamp(.4rem,2.2vw,1rem) 0 0; padding:.4rem 1.3rem;
  }
  .offer-showcase .public-hero--offer .public-location { margin:clamp(.25rem,1.35vw,.65rem) 0 0; font-size:.82rem; line-height:1.3; }
  /* Both panels share one grid row. The image fills the same frame as the copy. */
  .offer-showcase .public-hero--offer .public-hero-image {
    position:relative; min-height:0; min-width:0; padding:0; overflow:hidden; background:#fff;
  }
  /* The photo establishes a square minimum without constraining the text slide.
     If the text needs more space, the grid enlarges both frames together. */
  .offer-showcase .public-hero--offer .public-hero-image::before {
    content:""; display:block; position:static; width:100%; aspect-ratio:1; background:none;
  }
  .offer-showcase .public-hero--offer .public-hero-image::after { border-color:#fff9; z-index:2; }
  .offer-showcase .public-hero--offer .public-hero-image img {
    position:absolute; inset:0; display:block; width:100%; height:100%; max-height:none;
    object-fit:cover; object-position:58% 48%;
  }
  .offer-showcase .offer-photo-caption {
    position:absolute; z-index:1; inset:auto 0 0; display:flex; align-items:flex-end;
    justify-content:space-between; flex-wrap:wrap; gap:.2rem .65rem; margin:0;
    padding:2.3rem clamp(1rem,4.7vw,1.65rem) .85rem;
    background:linear-gradient(transparent,rgba(16,28,22,.84) 72%); color:white;
  }
  .offer-showcase .offer-photo-caption p {
    max-width:100%; margin:0; align-self:center; font:500 clamp(1.6rem,7vw,2.2rem)/1.12 "Dworek Cormorant",Georgia,serif; color:white;
  }
  .offer-showcase .offer-photo-caption a {
    display:inline-flex; align-items:center; min-height:44px; padding:0 .2rem;
    font:500 .9rem/1.4 "Dworek Jost",Arial,sans-serif; color:white;
    text-decoration:underline; text-decoration-color:#e1c897; text-underline-offset:.25em;
  }
  .offer-showcase .offer-photo-caption a:focus-visible { outline:2px solid #fff; outline-offset:2px; }
  .offer-showcase .offer-pages:not([hidden]) {
    display:flex; align-items:center; justify-content:center; gap:1rem; margin:.18rem auto 0;
  }
  .offer-pages button {
    display:inline-flex; position:relative; align-items:center; gap:.5rem;
    min-height:44px; padding:.4rem .2rem; border:0; background:transparent;
    font:450 .93rem/1.35 "Dworek Jost",Arial,sans-serif; color:#62594b; cursor:pointer;
  }
  .offer-pages button::before {
    content:""; width:.43rem; height:.43rem; border:1px solid var(--venue-gold-dark,#775a2b);
    transform:rotate(45deg);
  }
  .offer-pages button[aria-pressed="true"] { color:#2a4a36; font-weight:600; }
  .offer-pages button[aria-pressed="true"]::before { background:var(--venue-gold,#b08f55); }
  .offer-pages button[aria-pressed="true"]::after {
    content:""; height:1px; position:absolute; inset:auto .15rem .43rem; background:var(--venue-gold,#b08f55);
  }
  .offer-pages button:focus-visible { outline:2px solid #775a2b; outline-offset:1px; border-radius:2px; }
}
@media (max-width:360px) {
  .offer-showcase .public-hero.public-hero--offer { width:calc(100% - 1rem); --peek:.5rem; --panel-gap:.375rem; }
  .offer-showcase .public-hero--offer .hero-ornament { display:none; }
  .offer-showcase .public-hero--offer .public-hero-copy { padding:.7rem .8rem; }
  .offer-showcase .public-hero--offer .public-eyebrow { letter-spacing:.035em; }
  .offer-showcase .public-hero--offer h1 { font-size:clamp(2rem,10.6vw,2.3rem); }
}
@media (max-width:960px) and (max-height:500px) and (orientation:landscape) {
  html { --mobile-masthead-height:clamp(2.7rem,13vh,3.45rem); }
  .offer-showcase { padding-block-start:clamp(.65rem,3.5vh,.95rem); }
  .offer-showcase .public-hero.public-hero--offer { width:min(calc(100% - 1.5rem),calc(100svh - 1rem),34rem); }
  .offer-showcase .offer-photo-caption { padding-bottom:.65rem; }
  .offer-showcase .offer-photo-caption p { font-size:1.75rem; }
  .offer-showcase .public-hero--offer .public-hero-copy { padding:.75rem 1rem; }
  .offer-showcase .public-hero--offer .hero-ornament { margin-bottom:.4rem; }
  .offer-showcase .public-hero--offer h1 { margin-top:.3rem; font-size:clamp(2rem,9.6vh,2.65rem); }
  .offer-showcase .public-hero--offer .public-hero-offerline,
  .offer-showcase .public-hero--offer .public-hero-description,
  .offer-showcase .public-hero--offer .public-location { margin-top:.38rem; }
  .offer-showcase .public-hero--offer .public-cta { margin-top:.65rem; }
}
@media (min-width:961px) and (max-height:480px) {
  .public-header.public-masthead { padding-block:.3rem; }
  .public-header.public-masthead .brand-logo img { width:9.5rem; }
}
