/* PEEPAL brand layer — calm botanical library
 * Fonts are loaded non-blocking from functions.php (no CSS @import — that delayed Shop paint).
 */

:root {
  --peepal-primary: #2f4a3c;
  --peepal-secondary: #6b4f3a;
  --peepal-cream: #f7f3ec;
  --peepal-sand: #ede6da;
  --peepal-white: #ffffff;
  --peepal-charcoal: #2c2a28;
  --peepal-muted: #6b6560;
  --peepal-border: #e5dfd5;
  --peepal-sage: #7a8f7a;
  --peepal-radius: 6px;
  --peepal-radius-lg: 12px;
  --peepal-shadow: 0 8px 24px rgba(44, 42, 40, 0.06);
  --peepal-font-body: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --peepal-font-heading: "Source Serif 4", Georgia, serif;
  --peepal-container: 1120px;
  /* Compact spacing scale (tighter than original plan for denser UI) */
  --peepal-space-1: 0.25rem;
  --peepal-space-2: 0.4rem;
  --peepal-space-3: 0.6rem;
  --peepal-space-4: 0.85rem;
  --peepal-space-5: 1.1rem;
  --peepal-space-6: 1.5rem;
  --peepal-space-7: 2rem;
  --peepal-space-8: 2.75rem;
  --peepal-motion: 220ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--peepal-font-body);
  color: var(--peepal-charcoal);
  background: var(--peepal-cream);
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--peepal-font-heading);
  font-weight: 500;
  color: var(--peepal-charcoal);
}

a {
  color: var(--peepal-primary);
  transition: color var(--peepal-motion);
}

/* Layout */
.peepal-container {
  width: min(100% - 2.5rem, var(--peepal-container));
  margin-inline: auto;
}

/* Header — Minimalist-inspired spacing/sizing */
.peepal-site-header {
  --header-h: 60px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(10px);
}

.peepal-site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0;
  position: relative;
}

.peepal-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

/* Beat WooCommerce `.woocommerce img { height:auto; max-width:100% }` which
   otherwise collapses the header/footer logo on Shop and other WC pages. */
.peepal-logo-img,
.woocommerce .peepal-logo-img,
.woocommerce-page .peepal-logo-img {
  display: block !important;
  height: 36px !important;
  width: auto !important;
  max-width: none !important;
  max-height: 36px !important;
}

.peepal-logo-img--footer,
.woocommerce .peepal-logo-img--footer,
.woocommerce-page .peepal-logo-img--footer {
  height: 30px !important;
  max-height: 30px !important;
  filter: brightness(0) invert(0.92);
}

.peepal-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.peepal-nav-wrap {
  display: flex;
  justify-content: center;
}

.peepal-nav {
  display: none;
  gap: 0;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.peepal-nav > li > a {
  text-decoration: none;
  color: #111;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 0.85rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color var(--peepal-motion), opacity var(--peepal-motion);
}

.peepal-nav > li > a:hover {
  color: var(--peepal-primary);
}

.peepal-nav .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 220px;
  z-index: 30;
}

.peepal-nav li {
  position: relative;
}

.peepal-nav > li:hover > .sub-menu,
.peepal-nav > li:focus-within > .sub-menu {
  display: block;
}

.peepal-nav .sub-menu a {
  display: block;
  padding: 0.65rem 1.15rem;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #222;
  text-decoration: none;
}

.peepal-nav .sub-menu a:hover {
  background: #f7f3ec;
  color: var(--peepal-primary);
}

/* Header actions */
.peepal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
}

.peepal-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #111;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  font: inherit;
  border-radius: 6px;
}

.peepal-action:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111;
}

.peepal-icon {
  display: block;
}

.peepal-action--search {
  padding: 0.5rem;
}

.peepal-action--account {
  max-width: 150px;
}

.peepal-action__text {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.peepal-action__hello {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.peepal-action__sub {
  font-size: 11px;
  color: #555;
  white-space: nowrap;
}

.peepal-action--cart {
  gap: 0.35rem;
  padding-right: 0.55rem;
}

.peepal-cart-icon {
  position: relative;
  display: inline-flex;
}

.peepal-cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c45500;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 1.5px #fff;
}

.peepal-action__cart-label {
  display: none;
  font-size: 12px;
  font-weight: 600;
}

.peepal-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  order: 3;
  justify-self: end;
}

.peepal-menu-toggle__bars,
.peepal-menu-toggle__bars::before,
.peepal-menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #111;
  position: relative;
}
.peepal-menu-toggle__bars::before,
.peepal-menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.peepal-menu-toggle__bars::before { top: -6px; }
.peepal-menu-toggle__bars::after { top: 6px; }

.peepal-site-header__inner {
  grid-template-columns: auto 1fr auto auto;
}

.peepal-nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  z-index: 40;
}

.peepal-nav.is-open > li > a {
  padding: 0.85rem 1.25rem;
}

.peepal-nav.is-open .sub-menu {
  position: static;
  display: none;
  box-shadow: none;
  border: 0;
  padding-left: 0.75rem;
  background: #faf8f5;
}

.peepal-nav.is-open > li:hover > .sub-menu,
.peepal-nav.is-open > li.is-open > .sub-menu {
  display: block;
}

@media (min-width: 1024px) {
  .peepal-nav {
    display: flex;
  }
  .peepal-menu-toggle {
    display: none;
  }
  .peepal-site-header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .peepal-action__text {
    display: flex;
  }
  .peepal-action__cart-label {
    display: inline;
  }
  .peepal-nav-wrap {
    justify-content: center;
  }
}

@media (max-width: 1023px) {
  .peepal-header-actions {
    margin-left: auto;
  }
  .peepal-site-header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .peepal-nav-wrap {
    display: contents;
  }
}

/* Buttons */
.peepal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--peepal-radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--peepal-motion), color var(--peepal-motion), border-color var(--peepal-motion);
  cursor: pointer;
  line-height: 1.2;
}

.peepal-btn--primary {
  background: var(--peepal-primary);
  color: var(--peepal-cream);
}

.peepal-btn--primary:hover {
  background: #243a2f;
  color: var(--peepal-cream);
}

.peepal-btn--secondary {
  background: transparent;
  border-color: var(--peepal-primary);
  color: var(--peepal-primary);
}

.peepal-btn--ghost {
  background: transparent;
  color: var(--peepal-primary);
  border-color: var(--peepal-border);
}

.peepal-btn--ghost:hover {
  border-color: var(--peepal-primary);
}

/* Sections */
.peepal-section {
  padding: var(--peepal-space-7) 0;
}

.peepal-section h2 {
  margin: 0 0 0.5rem;
}

.peepal-section p {
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
}

.peepal-section__header {
  max-width: 40rem;
  margin-bottom: var(--peepal-space-5);
}

.peepal-section__lead,
.peepal-muted {
  color: var(--peepal-muted);
}

.peepal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--peepal-sage);
  margin: 0 0 0.5rem;
}

.peepal-section__cta-wrap {
  margin-top: var(--peepal-space-5);
}

/* Hero — compact but still prominent */
.peepal-hero {
  padding-top: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(122, 143, 122, 0.18), transparent 50%),
    var(--peepal-cream);
}

.peepal-hero__grid {
  display: grid;
  gap: var(--peepal-space-5);
  align-items: center;
}

@media (min-width: 900px) {
  .peepal-hero__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    min-height: min(48vh, 420px);
  }
}

.peepal-hero__title {
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.peepal-hero__support {
  font-size: 1.05rem;
  color: var(--peepal-muted);
  max-width: 32rem;
  margin-bottom: 0.25rem;
}

.peepal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.peepal-hero__panel {
  background: var(--peepal-sand);
  border: 1px solid var(--peepal-border);
  border-radius: var(--peepal-radius-lg);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--peepal-shadow);
}

.peepal-hero__leaf {
  font-size: 3rem;
}

/* Cards & grids */
.peepal-card-grid {
  display: grid;
  gap: var(--peepal-space-5);
}

.peepal-card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.peepal-card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.peepal-card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.peepal-card {
  background: var(--peepal-white);
  border: 1px solid var(--peepal-border);
  border-radius: var(--peepal-radius-lg);
  padding: var(--peepal-space-4) var(--peepal-space-5);
  box-shadow: var(--peepal-shadow);
}

.peepal-card p:last-child {
  margin-bottom: 0;
}

.peepal-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.peepal-card--link {
  text-decoration: none;
  color: inherit;
  transition: transform var(--peepal-motion), border-color var(--peepal-motion);
}

.peepal-card--link:hover {
  transform: translateY(-2px);
  border-color: var(--peepal-sage);
  color: inherit;
}

.peepal-card--quote p {
  font-family: var(--peepal-font-heading);
  font-size: 1.05rem;
}

/* ——— Customer stories collage (compact tiles, 10+ visible) ——— */
.peepal-stories__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.peepal-stories__filter {
  appearance: none;
  border: 1px solid var(--peepal-border);
  background: var(--peepal-white);
  color: var(--peepal-charcoal);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--peepal-motion), color var(--peepal-motion), border-color var(--peepal-motion);
}

.peepal-stories__filter:hover {
  border-color: var(--peepal-primary);
  color: var(--peepal-primary);
}

.peepal-stories__filter.is-active {
  background: var(--peepal-primary);
  border-color: var(--peepal-primary);
  color: var(--peepal-cream);
}

/* Masonry-style collage */
.peepal-stories__grid {
  column-count: 2;
  column-gap: 0.65rem;
}

@media (min-width: 640px) {
  .peepal-stories__grid {
    column-count: 3;
    column-gap: 0.7rem;
  }
}

@media (min-width: 900px) {
  .peepal-stories__grid {
    column-count: 4;
    column-gap: 0.75rem;
  }
}

@media (min-width: 1200px) {
  .peepal-stories__grid {
    column-count: 5;
    column-gap: 0.8rem;
  }
}

.peepal-story-card {
  position: relative;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 0.65rem;
  background: var(--peepal-white);
  border: 1px solid var(--peepal-border);
  border-radius: 10px;
  padding: 0.65rem 0.7rem 0.7rem;
  box-shadow: 0 4px 14px rgba(44, 42, 40, 0.05);
  box-sizing: border-box;
  transition: transform var(--peepal-motion), box-shadow var(--peepal-motion);
}

.peepal-story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(44, 42, 40, 0.08);
}

.peepal-story-card.is-hidden {
  display: none !important;
}

.peepal-story-card__type {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--peepal-sand);
  color: var(--peepal-primary);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.peepal-story-card__photo {
  margin: 0 0 0.45rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--peepal-sand);
}

.peepal-story-card__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.peepal-story-card__photo figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.15rem 0.1rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--peepal-muted);
}

.peepal-story-card__photo figcaption strong {
  color: var(--peepal-charcoal);
  font-weight: 600;
  font-size: 0.8rem;
}

.peepal-story-card__ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin: 0 0 0.45rem;
}

.peepal-story-card__ba figure {
  margin: 0;
  border-radius: 7px;
  overflow: hidden;
  background: var(--peepal-sand);
  border: 1px solid var(--peepal-border);
}

.peepal-story-card__ba img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.peepal-story-card__ba figcaption {
  text-align: center;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--peepal-muted);
  padding: 0.22rem 0.2rem 0.28rem;
  background: rgba(247, 243, 236, 0.95);
}

.peepal-story-card__quote {
  font-family: var(--peepal-font-heading);
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--peepal-charcoal);
  margin: 0 0 0.45rem;
}

.peepal-story-card__quote--lg {
  font-size: 0.92rem;
  line-height: 1.38;
}

.peepal-story-card__stars {
  margin: 0 0 0.3rem;
  min-height: 0.95em;
}

.peepal-story-card__stars .star-rating {
  font-size: 0.78em !important;
}

.peepal-story-card__avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 0.4rem;
  border: 1.5px solid var(--peepal-sand);
  background: var(--peepal-sand);
}

.peepal-story-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.peepal-story-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  margin-top: 0.15rem;
  padding-top: 0.15rem;
}

.peepal-story-card__author {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--peepal-charcoal);
}

.peepal-story-card__role {
  font-size: 0.68rem;
  color: var(--peepal-muted);
}

.peepal-story-card--photo {
  padding: 0.5rem 0.55rem 0.6rem;
}

.peepal-story-card--testimonial {
  background:
    linear-gradient(160deg, rgba(122, 143, 122, 0.08), transparent 55%),
    var(--peepal-white);
}

/* Slight size rhythm in the collage */
.peepal-story-card--photo .peepal-story-card__photo img {
  aspect-ratio: 4 / 3;
}

.peepal-story-card--review {
  padding: 0.6rem 0.65rem 0.65rem;
}

.peepal-card--icon {
  text-align: center;
}

.peepal-card__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Compare */
.peepal-compare {
  border: 1px solid var(--peepal-border);
  border-radius: var(--peepal-radius-lg);
  overflow: hidden;
  background: var(--peepal-white);
}

.peepal-compare__head,
.peepal-compare__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.peepal-compare__head {
  background: var(--peepal-sand);
  font-weight: 600;
  padding: 0.85rem 1rem;
}

.peepal-compare__row span {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--peepal-border);
}

.peepal-compare__row span:last-child {
  color: var(--peepal-primary);
  font-weight: 500;
}

/* Steps — ritual cards with soothing imagery */
.peepal-steps--ritual .peepal-steps__header {
  max-width: 36rem;
}

.peepal-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--peepal-space-5);
}

.peepal-steps--ritual .peepal-steps__list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.25rem);
}

@media (max-width: 1100px) {
  .peepal-steps--ritual .peepal-steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .peepal-steps--ritual .peepal-steps__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .peepal-steps--ritual .peepal-steps__list {
    grid-template-columns: 1fr;
  }
}

.peepal-steps__item {
  background: var(--peepal-white);
  border: 1px solid var(--peepal-border);
  border-radius: var(--peepal-radius-lg);
  padding: var(--peepal-space-4);
  text-align: center;
}

.peepal-steps--ritual .peepal-steps__item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--peepal-shadow);
  transition: transform var(--peepal-motion), box-shadow var(--peepal-motion);
}

.peepal-steps--ritual .peepal-steps__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(44, 42, 40, 0.1);
}

.peepal-steps__media {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--peepal-sand);
}

.peepal-steps__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.peepal-steps--ritual .peepal-steps__item:hover .peepal-steps__img {
  transform: scale(1.04);
}

.peepal-steps__num {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--peepal-primary);
  color: var(--peepal-cream);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.peepal-steps--ritual .peepal-steps__num {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  margin: 0;
  width: 2.1rem;
  height: 2.1rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(47, 74, 60, 0.28);
}

.peepal-steps__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem 1.15rem;
  flex: 1 1 auto;
}

.peepal-steps__label {
  display: block;
  font-family: var(--peepal-font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--peepal-charcoal);
  margin: 0;
  line-height: 1.25;
}

.peepal-steps__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--peepal-muted);
}

.peepal-spotlight__grid {
  display: grid;
  gap: var(--peepal-space-6);
  align-items: center;
}

@media (min-width: 800px) {
  .peepal-spotlight__grid {
    grid-template-columns: 0.7fr 1.3fr;
  }
}

.peepal-spotlight__orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--peepal-sand);
  border: 1px solid var(--peepal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto;
}

/* Newsletter */
.peepal-newsletter__box {
  display: grid;
  gap: var(--peepal-space-4);
  background: var(--peepal-sand);
  border: 1px solid var(--peepal-border);
  border-radius: var(--peepal-radius-lg);
  padding: var(--peepal-space-5);
}

@media (min-width: 800px) {
  .peepal-newsletter__box {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.peepal-newsletter__form {
  display: grid;
  gap: 0.65rem;
}

.peepal-newsletter__form input[type="email"] {
  border: 1px solid var(--peepal-border);
  border-radius: var(--peepal-radius);
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: var(--peepal-white);
}

.peepal-newsletter__note {
  font-size: 0.75rem;
  color: var(--peepal-muted);
  margin: 0;
}

.peepal-founder__box {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.peepal-founder blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--peepal-font-heading);
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Category nav */
.peepal-cat-nav ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.peepal-cat-nav a,
.peepal-cat-nav__soon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--peepal-border);
  background: var(--peepal-white);
  text-decoration: none;
  color: var(--peepal-charcoal);
  font-size: 0.875rem;
}

.peepal-cat-nav a:hover {
  border-color: var(--peepal-primary);
  color: var(--peepal-primary);
}

.peepal-cat-nav__soon {
  opacity: 0.7;
}

.peepal-cat-nav__soon em {
  font-style: normal;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--peepal-muted);
}

.peepal-shop-hero {
  padding: var(--peepal-space-5) 0 var(--peepal-space-3);
}

.peepal-shop-hero h1 {
  margin: 0 0 0.35rem;
}

/* Footer */
.peepal-site-footer {
  background: var(--peepal-charcoal);
  color: var(--peepal-cream);
  margin-top: var(--peepal-space-6);
  padding: var(--peepal-space-6) 0 var(--peepal-space-4);
}

.peepal-site-footer a {
  color: var(--peepal-sand);
  text-decoration: none;
}

.peepal-site-footer a:hover {
  color: var(--peepal-white);
}

.peepal-footer-grid {
  display: grid;
  gap: var(--peepal-space-6);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.peepal-footer-grid h3 {
  color: var(--peepal-cream);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
}

.peepal-footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.peepal-footer-bottom {
  margin-top: var(--peepal-space-6);
  padding-top: var(--peepal-space-4);
  border-top: 1px solid rgba(247, 243, 236, 0.12);
  font-size: 0.85rem;
  color: rgba(247, 243, 236, 0.7);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Woo product cards — consistent title / price / CTA alignment */
.woocommerce ul.products,
.peepal-product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--peepal-space-5);
  list-style: none;
  margin: 0;
  padding: 0;
  clear: both;
}

/* Featured: up to 4 equal cards in a row on wide screens */
.peepal-featured .peepal-product-grid,
.peepal-product-grid--featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: start;
}

@media (max-width: 1024px) {
  .peepal-featured .peepal-product-grid,
  .peepal-product-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .peepal-featured .peepal-product-grid,
  .peepal-product-grid--featured {
    grid-template-columns: 1fr;
  }
}

/* Coming-soon / empty product slots */
.peepal-product-slot {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.peepal-product-slot__media {
  aspect-ratio: 1;
  border-radius: calc(var(--peepal-radius-lg) - 2px);
  background:
    linear-gradient(145deg, rgba(47, 74, 60, 0.08), transparent 55%),
    var(--peepal-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.peepal-product-slot__icon {
  font-size: 2rem;
  opacity: 0.7;
}

.peepal-product-slot__cat {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--peepal-sage);
  font-weight: 600;
}

.peepal-product-slot .woocommerce-loop-product__title {
  margin: 0 0 0.4rem !important;
}

.peepal-product-slot__price {
  color: var(--peepal-muted) !important;
  font-weight: 500 !important;
}

.peepal-product-slot__btn,
.peepal-coming-soon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto !important;
  padding: 0.7rem 1rem !important;
  border-radius: var(--peepal-radius) !important;
  background: var(--peepal-sand) !important;
  color: var(--peepal-charcoal) !important;
  border: 1px solid var(--peepal-border) !important;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: default;
  pointer-events: none;
  text-align: center;
  box-sizing: border-box;
}

.peepal-featured__hint {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* Featured product star ratings — ★★★★★ (12) */
.peepal-product-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.4rem;
  min-height: 1.2em;
  line-height: 1;
}

.peepal-product-rating--icons .peepal-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.06rem;
  letter-spacing: 0;
}

.peepal-stars__star {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  color: rgba(44, 42, 40, 0.18);
  -webkit-text-stroke: 0;
}

.peepal-stars__star.is-filled {
  color: #c4a35a;
}

.peepal-product-rating__count {
  font-size: 0.8rem;
  color: var(--peepal-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.peepal-product-rating--soon {
  opacity: 0.45;
}

.peepal-featured--no-ratings .peepal-product-rating {
  display: none !important;
}

/* Keep title → stars → price order tidy on flex cards */
.peepal-featured .woocommerce-loop-product__title {
  margin-bottom: 0.3rem !important;
}

.peepal-featured .peepal-product-rating + .price,
.peepal-featured li.product .price {
  margin-top: 0.1rem;
}

/* Legacy Woo star font (customer stories / other blocks) */
.peepal-product-rating .star-rating {
  float: none !important;
  margin: 0 !important;
  color: #c4a35a;
  font-size: 0.95em;
  overflow: hidden;
  white-space: nowrap;
}

.peepal-product-rating .star-rating span {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}

.peepal-product-rating .star-rating::before {
  color: rgba(44, 42, 40, 0.18);
}

.peepal-product-rating .star-rating span::before {
  color: #c4a35a;
  font-size: 1rem;
  line-height: 1;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.peepal-product-grid::before,
.peepal-product-grid::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products li.product,
.peepal-product-grid li.product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: var(--peepal-white);
  border: 1px solid var(--peepal-border);
  border-radius: var(--peepal-radius-lg);
  padding: 0.85rem;
  box-shadow: var(--peepal-shadow);
  box-sizing: border-box;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.peepal-product-grid li.product .woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
  gap: 0;
}

.woocommerce ul.products li.product img,
.peepal-product-grid li.product img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 0 0.75rem !important;
  border-radius: calc(var(--peepal-radius-lg) - 2px);
  background: var(--peepal-sand);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.peepal-product-grid li.product .woocommerce-loop-product__title {
  font-family: var(--peepal-font-heading);
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  margin: 0 0 0.4rem !important;
  padding: 0 !important;
  color: var(--peepal-charcoal);
}

.woocommerce div.product p.price,
.woocommerce ul.products li.product .price,
.peepal-product-grid li.product .price {
  display: block;
  color: var(--peepal-primary);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 0.85rem !important;
  padding: 0 !important;
}

/* Card CTAs: Add to cart (→ qty stepper) + View Details */
.peepal-product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  margin-top: auto !important;
}

.peepal-qty-atc {
  position: relative;
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
}

.peepal-qty-atc.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.woocommerce ul.products li.product .peepal-product-actions .button,
.woocommerce ul.products li.product .peepal-product-actions a.button,
.peepal-product-grid li.product .peepal-product-actions .button,
.peepal-product-grid li.product .peepal-product-actions a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 !important;
  padding: 0.65rem 0.85rem !important;
  box-sizing: border-box;
  text-align: center;
  float: none !important;
  font-size: 0.88rem !important;
  line-height: 1.25;
  text-decoration: none;
}

/*
 * Only ONE control visible at a time:
 * - default: Add to cart
 * - is-active: quantity stepper (− / n / +)
 * (must beat Woo button display:inline-flex !important)
 */
.peepal-qty-atc.is-active .peepal-qty-atc__add,
.peepal-qty-atc .peepal-qty-atc__add[hidden],
.woocommerce ul.products li.product .peepal-qty-atc.is-active a.peepal-qty-atc__add,
.peepal-product-grid li.product .peepal-qty-atc.is-active a.peepal-qty-atc__add {
  display: none !important;
}

.peepal-qty-atc:not(.is-active) .peepal-qty-atc__stepper,
.peepal-qty-atc .peepal-qty-atc__stepper[hidden] {
  display: none !important;
}

/* Quantity stepper — previous size, tighter − / number / + spacing */
.peepal-qty-atc.is-active .peepal-qty-atc__stepper {
  display: flex !important;
  align-items: stretch;
  width: 100%;
  min-height: 2.45rem;
  border-radius: var(--peepal-radius);
  overflow: hidden;
  border: 1px solid var(--peepal-primary);
  background: var(--peepal-primary);
  box-sizing: border-box;
}

.peepal-qty-atc__btn {
  flex: 0 0 1.85rem;
  width: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--peepal-cream);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background var(--peepal-motion);
}

.peepal-qty-atc__btn:hover {
  background: rgba(0, 0, 0, 0.12);
}

.peepal-qty-atc__val {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 0.2rem;
  background: var(--peepal-cream);
  color: var(--peepal-primary);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid rgba(47, 74, 60, 0.15);
  border-right: 1px solid rgba(47, 74, 60, 0.15);
  box-sizing: border-box;
}

/* Fallback if actions wrapper missing */
.woocommerce ul.products li.product > .button,
.woocommerce ul.products li.product > a.button,
.peepal-product-grid li.product > .button,
.peepal-product-grid li.product > a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 !important;
  margin-top: auto !important;
  padding: 0.7rem 1rem !important;
  box-sizing: border-box;
  text-align: center;
  float: none !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--peepal-primary) !important;
  color: var(--peepal-cream) !important;
  border-radius: var(--peepal-radius) !important;
  font-weight: 600;
  border: 0 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: #243a2f !important;
}

/* View Details — secondary outline on product cards */
.woocommerce ul.products li.product a.button.peepal-view-details,
.peepal-product-grid li.product a.button.peepal-view-details {
  background: transparent !important;
  color: var(--peepal-primary) !important;
  border: 1px solid var(--peepal-primary) !important;
  box-shadow: none !important;
}

.woocommerce ul.products li.product a.button.peepal-view-details:hover,
.peepal-product-grid li.product a.button.peepal-view-details:hover {
  background: var(--peepal-sand) !important;
  color: var(--peepal-primary) !important;
}

@media (min-width: 480px) {
  .peepal-product-actions {
    flex-direction: row;
    align-items: stretch;
  }

  .peepal-product-actions .peepal-qty-atc,
  .peepal-product-actions .button,
  .peepal-product-actions a.button {
    flex: 1 1 0;
    min-width: 0;
  }
}

.woocommerce-page .peepal-container,
.woocommerce .peepal-container {
  width: min(100% - 2rem, var(--peepal-container));
  margin-inline: auto;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .col2-set {
  margin-top: 1.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--peepal-border);
  border-radius: 999px;
  text-decoration: none;
  background: var(--peepal-white);
  color: var(--peepal-charcoal);
  font-size: 0.875rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: var(--peepal-primary);
  color: var(--peepal-cream);
  border-color: var(--peepal-primary);
}

/* Soften TT5 default spacing on peepal pages */
.entry-content > .peepal-home,
.entry-content > .peepal-section:first-child {
  margin-top: 0;
}

.peepal-main {
  min-height: 30vh;
}

.peepal-singular {
  padding: var(--peepal-space-5) 0 var(--peepal-space-6);
}

.peepal-singular__title {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin: 0 0 0.85rem;
}

.peepal-singular__content {
  max-width: 46rem;
}

.peepal-singular__content > *:first-child {
  margin-top: 0;
}

.peepal-archive {
  padding: var(--peepal-space-5) 0 var(--peepal-space-6);
}

.peepal-archive__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.peepal-archive__list li {
  background: var(--peepal-white);
  border: 1px solid var(--peepal-border);
  border-radius: var(--peepal-radius-lg);
  padding: 1rem 1.25rem;
}

/* Avoid double titles when Woo/content also prints h1 */
.woocommerce-products-header {
  display: none;
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--peepal-primary);
  outline-offset: 2px;
}

/* Hero photography */
.peepal-hero__panel--photo {
  padding: 0.75rem;
}

.peepal-hero__figure {
  margin: 0 0 0.75rem;
  border-radius: var(--peepal-radius-lg);
  overflow: hidden;
}

.peepal-hero__img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (min-width: 900px) {
  .peepal-hero__img {
    min-height: 320px;
    max-height: 420px;
    aspect-ratio: auto;
    height: min(42vh, 420px);
  }
  .peepal-hero__figure {
    margin-bottom: 0;
  }
  .peepal-hero__panel--photo {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .peepal-hero__panel--photo > p {
    display: none;
  }
}

.peepal-spotlight__img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--peepal-radius-lg);
  border: 1px solid var(--peepal-border);
  box-shadow: var(--peepal-shadow);
  margin: 0 auto;
}

.peepal-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 0.75rem;
  border-radius: var(--peepal-radius);
  overflow: hidden;
  background: var(--peepal-sand);
}

.peepal-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.peepal-video-placeholder {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--peepal-sand);
  border-radius: var(--peepal-radius);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: var(--peepal-primary);
}

.peepal-checkout-trust {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--peepal-border);
  border-radius: var(--peepal-radius);
  background: var(--peepal-sand);
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
}

/* Hide default site title noise when our header is present */
body.peepal-has-custom-chrome .wp-site-blocks > header,
body.peepal-has-custom-chrome .wp-site-blocks > footer {
  display: none;
}

/* Soften Woo notice style to match brand */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border-top-color: var(--peepal-primary) !important;
  background: var(--peepal-sand) !important;
}

/* Classic lightweight shop */
body.peepal-classic-shop .wp-site-blocks {
  display: none !important;
}

.peepal-classic-shop__grid-wrap {
  padding-bottom: var(--peepal-space-6);
}

.peepal-classic-shop__grid-wrap .products {
  margin-top: 0.5rem;
}

.peepal-main--shop {
  padding-bottom: 2rem;
}

/* ——— Brand hub (parent /brand/ landing) ——— */
.peepal-singular--brand-hub {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.peepal-brand-hub__intro {
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.peepal-brand-hub__title {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.peepal-brand-hub__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--peepal-muted);
}

.peepal-brand-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .peepal-brand-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .peepal-brand-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.peepal-brand-card {
  margin: 0;
  border-radius: calc(var(--peepal-radius-lg) + 2px);
  overflow: hidden;
  background: var(--peepal-white);
  border: 1px solid var(--peepal-border);
  box-shadow: var(--peepal-shadow);
  transition: transform var(--peepal-motion), box-shadow var(--peepal-motion);
}

.peepal-brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(44, 42, 40, 0.1);
}

.peepal-brand-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.peepal-brand-card__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--peepal-sand);
}

.peepal-brand-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.peepal-brand-card:hover .peepal-brand-card__media img {
  transform: scale(1.04);
}

.peepal-brand-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1 1 auto;
}

.peepal-brand-card__title {
  margin: 0;
  font-family: var(--peepal-font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--peepal-charcoal);
}

.peepal-brand-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--peepal-muted);
  flex: 1 1 auto;
}

.peepal-brand-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--peepal-primary);
}

.peepal-brand-hub__promise {
  margin-top: 1.75rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--peepal-radius-lg);
  background:
    linear-gradient(120deg, rgba(122, 143, 122, 0.12), transparent 60%),
    var(--peepal-sand);
  border: 1px solid var(--peepal-border);
}

.peepal-brand-hub__promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  justify-content: center;
}

.peepal-brand-hub__promises li {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--peepal-primary);
  letter-spacing: 0.02em;
}

.peepal-brand-hub__promises li::before {
  content: "✓ ";
  color: var(--peepal-sage);
  font-weight: 700;
}

/* ——— Resources hub (parent /resources/ landing) ——— */
.peepal-singular--resources-hub {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.peepal-resources-hub__intro {
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.peepal-resources-hub__title {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.peepal-resources-hub__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--peepal-muted);
}

.peepal-resources-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .peepal-resources-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .peepal-resources-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.peepal-resource-card {
  margin: 0;
  border-radius: calc(var(--peepal-radius-lg) + 2px);
  overflow: hidden;
  background: var(--peepal-white);
  border: 1px solid var(--peepal-border);
  box-shadow: var(--peepal-shadow);
  transition: transform var(--peepal-motion), box-shadow var(--peepal-motion);
}

.peepal-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(44, 42, 40, 0.11);
}

.peepal-resource-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.peepal-resource-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--peepal-sand);
}

.peepal-resource-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

.peepal-resource-card:hover .peepal-resource-card__media img {
  transform: scale(1.05);
}

.peepal-resource-card__glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(44, 42, 40, 0.28), transparent);
  pointer-events: none;
  opacity: 0.85;
}

.peepal-resource-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.05rem 1.1rem 1.2rem;
  flex: 1 1 auto;
}

.peepal-resource-card__title {
  margin: 0;
  font-family: var(--peepal-font-heading);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--peepal-charcoal);
}

.peepal-resource-card__text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--peepal-muted);
  flex: 1 1 auto;
}

.peepal-resource-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--peepal-primary);
  transition: gap var(--peepal-motion);
}

.peepal-resource-card:hover .peepal-resource-card__cta {
  gap: 0.5rem;
}

.peepal-resources-hub__note {
  margin-top: 1.75rem;
  padding: 1rem 1.2rem;
  text-align: center;
  border-radius: var(--peepal-radius-lg);
  background:
    linear-gradient(120deg, rgba(122, 143, 122, 0.12), transparent 65%),
    var(--peepal-sand);
  border: 1px solid var(--peepal-border);
}

.peepal-resources-hub__note p {
  margin: 0;
  font-family: var(--peepal-font-heading);
  font-size: 1.05rem;
  color: var(--peepal-charcoal);
  font-weight: 500;
}

/* Compact Brand end-of-page shortcuts — small aesthetic chips */
.peepal-section-nav {
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--peepal-border);
}

.peepal-section-nav__inner {
  width: 100%;
}

.peepal-section-nav__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peepal-sage);
  font-weight: 600;
}

.peepal-section-nav__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.peepal-section-nav__card {
  margin: 0;
  min-width: 0;
}

.peepal-section-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 1.85rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--peepal-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  color: var(--peepal-charcoal);
  transition: border-color var(--peepal-motion), background var(--peepal-motion), color var(--peepal-motion), box-shadow var(--peepal-motion);
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(44, 42, 40, 0.03);
}

a.peepal-section-nav__link:hover {
  border-color: var(--peepal-primary);
  background: var(--peepal-sand);
  color: var(--peepal-primary);
  box-shadow: none;
}

.peepal-section-nav__card.is-current .peepal-section-nav__link {
  background: var(--peepal-primary);
  border-color: var(--peepal-primary);
  color: var(--peepal-cream);
  box-shadow: none;
  cursor: default;
}

.peepal-section-nav__label {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
