/* Page-level reset (what the Shopify base theme provided under the camp sections). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--camp-white, #fff); color: var(--camp-navy, #003973); font-family: var(--camp-font); }
img, svg, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
main:focus { outline: none; }

.camp-skip {
  position: absolute; inset-inline-start: 8px; top: -100px; z-index: 1000;
  padding: 12px 16px; border-radius: 12px; background: var(--camp-navy); color: #fff; font-weight: 800; text-decoration: none;
}
.camp-skip:focus { top: 8px; }

/* Sticky header: pin the whole header group (Shopify: #header-group:has(.camp-header), header.css).
   Here the window scrolls and .page-wrapper is the tall parent, so sticky works the same. */
#camp-header-group:has(.camp-header) {
  position: sticky;
  top: 0;
  z-index: 40;
}

/* WordPress admin bar sits above the sticky header; --camp-admin-bar offsets everything sticky */
.admin-bar { --camp-admin-bar: var(--wp-admin--admin-bar--height, 0px); }
.admin-bar #camp-header-group { top: var(--camp-admin-bar); }

/* Phones: the admin bar scrolls away (position: absolute), so the header pins to the very top */
@media screen and (max-width: 600px) {
  .admin-bar { --camp-admin-bar: 0px; }
}

/* Short pages: the footer sits at the bottom of the screen, as on Shopify */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.page-wrapper > main { flex: 1 0 auto; }
