/**
 * The header and footer sections' inline `{% style %}` / `<style>` blocks,
 * with their settings resolved.
 *
 * WHY these are not in dawn-base.css: on the live site they are emitted INSIDE
 * `sections/header.liquid` and `sections/footer.liquid`, because their values
 * come from the section settings (`padding_top: 20`, `margin_top: 48`, …), not
 * from the theme stylesheet. Dawn's own base.css never contains them.
 *
 * Resolved values, from sections/header-group.json + footer-group.json:
 *   header  padding_top 20, padding_bottom 20, margin_bottom 0
 *           → `.header` padding 10px under 990px (`× 0.5 | round`), 20px above
 *   footer  margin_top 48, padding_top 36, padding_bottom 36
 *           → `× 0.75 | round` under 750px (36 → 27), full value above
 *
 * The `.section-{{ section.id }}-padding` class Dawn generates per instance is
 * renamed `.pb-footer-padding` — the id was only ever there to keep two
 * instances of the same section apart, and there is exactly one footer.
 *
 * Branches NOT emitted, because their settings rule them out:
 *   • `.scrolled-past-header .header__heading-logo-wrapper` — needs
 *     sticky_header_type "reduce-logo-size"; this shop is "on-scroll-up".
 *   • component-mega-menu is loaded but menu_type_desktop is "dropdown", so
 *     nothing selects it. Kept in the bundle only because §3.1 lists it.
 */

/* ── sections/header.liquid <style> ─────────────────────────────────── */

header-drawer {
  justify-self: start;
  margin-left: -1.2rem;
}

/* menu_type_desktop is "dropdown" (not "drawer"), so the hamburger is
   desktop-hidden — this is the branch the live site takes. */
@media screen and (min-width: 990px) {
  header-drawer {
    display: none;
  }
}

.menu-drawer-container {
  display: flex;
}

.list-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-menu--inline {
  display: inline-flex;
  flex-wrap: wrap;
}

summary.list-menu__item {
  padding-right: 2.7rem;
}

.list-menu__item {
  display: flex;
  align-items: center;
  line-height: calc(1 + 0.3 / var(--font-body-scale));
}

.list-menu__item--link {
  text-decoration: none;
  padding-bottom: 1rem;
  padding-top: 1rem;
  line-height: calc(1 + 0.8 / var(--font-body-scale));
}

@media screen and (min-width: 750px) {
  .list-menu__item--link {
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
  }
}

/* ── sections/header.liquid {% style %} ─────────────────────────────── */

.header {
  padding: 10px 3rem 10px 3rem;
}

.section-header {
  /* Safari z-index fix, Dawn PR #2147 — kept even though the sticky-header
     custom element is not ported (see SiteHeader.tsx). */
  position: sticky;
  margin-bottom: 0px;
}

@media screen and (min-width: 750px) {
  .section-header {
    margin-bottom: 0px;
  }
}

@media screen and (min-width: 990px) {
  .header {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ── sections/footer.liquid {% style %} ─────────────────────────────── */

.footer {
  margin-top: 36px;
}

.pb-footer-padding {
  padding-top: 27px;
  padding-bottom: 27px;
}

@media screen and (min-width: 750px) {
  .footer {
    margin-top: 48px;
  }

  .pb-footer-padding {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}
