/*
 * Small structural rules that in the live theme are generated per-section
 * as inline <style> blocks by Shopify (from section padding/layout
 * settings), rather than living in the shared component/base stylesheets.
 * Reproduced here so the ported markup needs no inline <style> of its own.
 */

/* --- cart drawer: hidden until CartContext adds .active --- */
.drawer {
  visibility: hidden;
}

/* --- header section --- */
.header-drawer {
  justify-self: start;
  margin-left: -1.2rem;
  display: flex;
}

@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;
  }
}

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

.section-header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: 0;
}

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

/* --- footer section --- */
.footer {
  margin-top: 0;
}

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

@media screen and (min-width: 750px) {
  .section-footer-padding {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

/* --- newsletter section --- */
.section-newsletter-padding {
  padding-top: 30px;
  padding-bottom: 39px;
}

@media screen and (min-width: 750px) {
  .section-newsletter-padding {
    padding-top: 40px;
    padding-bottom: 52px;
  }
}

/* header search icon should show the theme's brand purple, matching the
   inline override every page ships (`.header__icons .icon-cart {color: var(--color-primary)}`) */
.header__icons .icon-cart {
  color: var(--color-primary);
}

/* cart badge dot, from cart-demo.css in the static clone -- kept as its own
   rule here since this rebuild renders it as real React state rather than a
   DOM patch */
.demo-cart-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgb(var(--color-button, 62, 37, 200));
  color: rgb(var(--color-button-text, 255, 255, 255));
  font-size: 1.1rem;
  line-height: 1.8rem;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.header__icon--cart {
  position: relative;
}

/* --- /learn page --- */
.learn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  margin-top: 1rem;
}

@media screen and (min-width: 750px) {
  .learn-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.learn-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem;
  border: 0.1rem solid rgba(var(--color-foreground), 0.1);
  border-radius: 0.8rem;
}

.learn-card__meta {
  font-size: 1.2rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.learn-card__title {
  margin: 0;
}

.learn-card__excerpt {
  margin: 0;
  flex-grow: 1;
}

.learn-article {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 0.1rem solid rgba(var(--color-foreground), 0.1);
  scroll-margin-top: 2rem;
}

.learn-article:first-of-type {
  border-top: none;
}

.learn-article__meta {
  font-size: 1.2rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 0.4rem;
}

.learn-disclaimer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 0.1rem solid rgba(var(--color-foreground), 0.1);
  font-size: 1.3rem;
  opacity: 0.75;
}
