/* Shared layout constraints, loaded after the original editorial styles. */
:root {
  --site-header-height: 6rem;
  --page-gutter: clamp(1.25rem, 4vw, 3.125rem);
}
html { scroll-padding-top: calc(var(--site-header-height) + 1rem); }
.wrap, .discovery-showcase {
  width: min(1400px, calc(100% - var(--page-gutter) * 2));
  min-width: 0;
}
#main, .wrap > *, .catalog-grid > *, .editorial-products > *,
.food-triptych > *, .form-grid > *, .destination-rows > div > * {
  min-width: 0;
}
#main h1, #main h2, #main h3 { overflow-wrap: break-word; }
.chapter-index a svg, .contact-detail a svg { flex-shrink: 0; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Keep all four destinations visible, including on narrow screens. */
.persistent-header {
  position: sticky;
  top: 0;
  height: auto;
  color: var(--red);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 16px #30252208;
}
.persistent-header .header-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 6rem;
  height: auto;
  padding: .625rem var(--page-gutter);
  max-width: 1500px;
  margin: auto;
}
.persistent-header .brand-plaque {
  width: auto;
  height: auto;
  min-width: 0;
  gap: .5rem;
  transform: none;
}
.persistent-header .brand-plaque .brand img { width: 11rem; }
.persistent-header .brand-plaque > span { font-size: .75rem; letter-spacing: .08em; }
.persistent-header .header-shell > nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .375rem 1.5rem;
  padding: 0;
  min-width: 0;
}
.persistent-header .header-shell > nav > a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem 0;
  font-size: .875rem;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.persistent-header .header-shell > nav > a:after {
  bottom: .375rem;
  width: 100%;
}
.persistent-header .header-shell > nav > a[aria-current=page]:after { transform: scaleX(1); }

/* Background motion stays inside its frame. Copy and origin remain in flow. */
.discovery-story {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 3rem;
  height: auto;
  min-height: clamp(32rem, calc(92svh - var(--site-header-height)), 54rem);
  max-height: none;
  padding: clamp(4rem, 10svh, 8rem) var(--page-gutter) 2rem;
}
.discovery-story picture { overflow: hidden; pointer-events: none; }
.discovery-story picture > img { top: -10%; height: 120%; }
.discovery-copy { min-width: 0; }
.discovery-copy h1 { font-size: clamp(2rem, 5.8vw, 6.25rem); }
.discovery-origin {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 2rem;
  font-size: .75rem;
  overflow-wrap: anywhere;
}
.discovery-origin > span, .discovery-origin > span + span { max-width: none; min-width: 0; }
.discovery-origin > span + span { text-align: right; }
.discovery-showcase { scroll-margin-top: 0; }
.discovery-controls { flex-wrap: wrap; gap: .75rem 1.5rem; }
.discovery-category-controls { flex: 1 1 36rem; max-width: 100%; }
.discovery-arrows { margin-left: auto; }
.discovery-stage { height: clamp(17.5rem, 31vw, 23rem); }
.discovery-topline > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.discovery-product-info { min-height: 0; padding-top: 1.5rem; }

/* The header is in document flow; interior pages no longer need its old gap. */
.chapter-masthead { padding-top: 0; }
.chapter-motion { padding-top: clamp(2rem, 5vw, 4rem); }
.filters, .approach-heading, .contact-info { top: calc(var(--site-header-height) + 1.5rem); }
.approach-step { scroll-margin-top: 0; }
.product-card { align-items: stretch; }
.product-card .textlink { align-self: flex-start; max-width: 100%; }
.product-card h3 { min-height: 0; }
.product-card h3 button { max-width: 100%; }
.product-card .product-image {
  height: auto;
  aspect-ratio: 1 / 1.12;
  padding: 1.5rem 1rem 2.5rem;
}
.product-card .product-frames { position: absolute; inset: 1.5rem 1rem 2.5rem; width: auto; height: auto; }
.product-badges { margin-top: auto; padding-top: .75rem; }
.product-dialog { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
.dialog-gallery.all-product-photos { padding: clamp(1rem, 2.5vw, 1.5rem); }
.all-product-photos img { height: auto; aspect-ratio: 1 / 1.1; }
.all-product-photos figure:only-child img { height: auto; aspect-ratio: 1 / 1.1; }
.product-dialog .dialog-copy { padding: clamp(1.25rem, 3vw, 2.5rem); }
.footer-wordmark { white-space: normal; overflow-wrap: anywhere; }
.footer-bottom > span:last-child { flex-wrap: wrap; gap: .75rem 1.5rem; }
.pallet-loading { display: grid; gap: .5rem; padding: 1rem; border: 1px solid var(--line); font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; }
.pallet-loading strong { font-weight: 600; }
.pallet-basis { margin-top: .75rem; font-size: .75rem; line-height: 1.8; color: var(--muted-text); }

@media (max-width: 900px) {
  .section-head { display: block; }
  .section-aside { max-width: 38rem; margin-top: 1.5rem; }
  .partner-feature { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .partner-photo { height: clamp(20rem, 50vw, 30rem); min-height: 0; }
  .partner-copy { padding: 3rem var(--page-gutter); }
  .partner-copy > p { max-width: 42rem; }
  .about-statement, .approach-layout, .destination-heading, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .approach-heading, .contact-info { position: static; }
  .approach-heading p { max-width: 40rem; }
  .catalog-section > .wrap { display: block; }
  .catalog-controls { display: block; }
  .filters {
    position: static;
    flex-direction: row;
    gap: 1.5rem;
    overflow-x: auto;
    margin: 0 0 1.5rem;
    padding: 0 0 .5rem;
  }
  .filter { flex-shrink: 0; white-space: nowrap; min-height: 2.75rem; }
  .filter.active:before { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .contact-grid form { margin: 0; padding: clamp(1.25rem, 4vw, 2rem); }
  .product-dialog { grid-template-columns: minmax(0, 1fr) !important; }
  .all-product-photos figure:only-child img { max-height: 22rem; }
}

@media (max-width: 760px) {
  :root { --site-header-height: 6.75rem; }
  .persistent-header .header-shell {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    min-height: 0;
    padding: .5rem 1rem .25rem;
  }
  .persistent-header .brand-plaque { grid-column: 1 / -1; grid-row: 1; padding: .375rem 0; }
  .persistent-header .brand-plaque .brand img { width: 9rem; }
  .persistent-header .brand-plaque > span { display: none; }
  .persistent-header .header-shell > nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem;
    grid-row: 2;
  }
  .persistent-header .nav-left { grid-column: 1 / 3; }
  .persistent-header .nav-right { grid-column: 3 / 5; }
  .persistent-header .header-shell > nav > a {
    justify-content: center;
    text-align: center;
    letter-spacing: 0;
    text-wrap: balance;
    padding: .5rem .125rem;
    font-size: .875rem;
  }
  .persistent-header .header-shell > nav > a:after { left: .5rem; right: .5rem; width: auto; }
  .chapter-bottom { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .chapter-bottom h2 { max-width: none; }
  .chapter-index { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .food-triptych { gap: 1.25rem; }
  .about-facts { grid-template-columns: minmax(0, 1fr); }
  .about-facts > div { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .about-facts small { margin: 0; }
  .destination-rows > div { grid-template-columns: 1.5rem minmax(0, 1fr); gap: .5rem 1rem; }
  .destination-rows p { grid-column: 2; }
  .discovery-item { flex-basis: 68%; }
}

@media (max-width: 600px) {
  .discovery-story { min-height: 32rem; padding: 3.5rem var(--page-gutter) 1.5rem; gap: 2.5rem; }
  .discovery-copy h1 { font-size: clamp(2rem, 8.4vw, 3rem); }
  .discovery-origin { gap: 1rem; line-height: 1.6; }
  .discovery-stage { margin: 0 calc(-1 * var(--page-gutter)); }
  .discovery-product-info h2 { font-size: 1.25rem; }
  .editorial-products { margin: 0 calc(-1 * var(--page-gutter)); padding-inline: var(--page-gutter); }
  .collection-tabs { margin-right: calc(-1 * var(--page-gutter)); padding-right: var(--page-gutter); }
  .collection-end { flex-wrap: wrap; }
  .collection-end > span { max-width: none; }
  .collection-end .textlink { white-space: normal; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-field.full { grid-column: auto; }
  .footer-bottom > span:last-child { display: flex; }
}

@media (max-width: 479px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card .product-image { aspect-ratio: 1 / 1; }
  .product-card h3 { font-size: 1.125rem; }
  .product-badges { padding-top: 0; }
  .dialog-gallery.all-product-photos { grid-template-columns: minmax(0, 1fr); }
  .all-product-photos img { max-height: 20rem; }
  .story-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); padding: 1rem; }
  .cta-title { align-items: flex-start; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .discovery-drag-hint { white-space: normal; width: calc(100% - 2.5rem); justify-content: center; text-align: center; }
}

/* Compact office rows keep all addresses readable without a tall footer. */
.footer .company-locations { gap: 12px; }
.footer .company-locations > div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.footer .company-locations strong { white-space: nowrap; }
.footer .company-locations p { margin: 0; line-height: 1.6; }
@media (min-width: 1024px) {
  .footer .footer-grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, .9fr) minmax(0, 1.55fr);
    gap: clamp(24px, 3vw, 48px);
  }
}
@media (min-width: 480px) and (max-width: 1023px) {
  .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer .footer-grid > div:first-child { grid-column: auto; }
  .footer .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer .company-locations > div { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.admin-review { padding: 1rem 1.125rem; margin-bottom: 1.5rem; border: 1px solid #d8bc8b; border-radius: 5px; background: #fff8ea; color: #644a20; font-size: .875rem; line-height: 1.8; overflow-wrap: anywhere; }
.admin-review p { margin-top: .5rem; }
.admin-product-placeholder { width: 51px; height: 67px; padding: 12px; flex-shrink: 0; color: var(--muted-text); background: #eee8dc; border-radius: 4px; }
