/* ==========================================================================
   PEPTISSIMA — SCIENTIFIC RESOURCES
   Section styles ported verbatim from the {% stylesheet %} block of each
   Shopify section listed below. The shared .p-doc-* spine (hero, list,
   notice, CTA panel) lives in peptissima.css.
   ========================================================================== */

/* ---- sections/resources-hero.liquid ---- */

.res-hero__note {
  margin-top: 32px;
}

/* ---- sections/resources-directory.liquid ---- */

.res-directory {
  background: var(--surface);
}

.res-directory__group + .res-directory__group {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.res-directory__head {
  max-width: 720px;
}

.res-directory__heading {
  margin-bottom: 0;
}

.res-directory__intro {
  margin-top: 16px;
}

.res-directory__note {
  margin-top: 20px;
}

.res-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
  align-items: stretch;
}

.res-directory__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: var(--surface-alt);
}

.res-directory__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.res-directory__name {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.3;
  min-width: 0;
  transition: color 0.2s ease;
}

.res-directory__cue {
  color: var(--gold-deep);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.res-directory__cue svg {
  width: 16px;
  height: 16px;
}

.res-directory__text {
  display: block;
  color: var(--text);
  opacity: 0.7;
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-top: 10px;
}

/* Pushed to a shared baseline so cards of different description lengths keep
   their "Useful for" line level across the row. */
.res-directory__useful {
  display: block;
  color: var(--text);
  opacity: 0.55;
  font-size: var(--text-xs);
  line-height: 1.6;
  margin-top: auto;
  padding-top: 16px;
}

.res-directory__card:hover .res-directory__name {
  color: var(--red);
}

.res-directory__foot {
  margin-top: 72px;
}

@media screen and (max-width: 1024px) {
  .res-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .res-directory__group + .res-directory__group {
    margin-top: 56px;
    padding-top: 56px;
  }

  .res-directory__foot {
    margin-top: 56px;
  }
}

@media screen and (max-width: 749px) {
  .res-directory__grid {
    grid-template-columns: 1fr;
  }

  .res-directory__group + .res-directory__group {
    margin-top: 44px;
    padding-top: 44px;
  }
}

/* ---- sections/resources-evidence.liquid ---- */

.res-evidence {
  background: var(--surface);
}

.res-evidence__intro {
  color: var(--text);
  opacity: 0.78;
  font-size: var(--text-base);
  line-height: 1.7;
  margin: 40px 0 0;
}

.res-evidence__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.res-evidence__item {
  min-width: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
}

.res-evidence__num {
  display: block;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.res-evidence__title {
  color: var(--text);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.35;
  margin: 12px 0 0;
}

.res-evidence__text {
  color: var(--text);
  opacity: 0.68;
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 8px 0 0;
}

.res-evidence__closing {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.5;
  max-width: 60ch;
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media screen and (max-width: 1024px) {
  .res-evidence__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .res-evidence__closing {
    font-size: var(--text-md);
    max-width: none;
  }
}

@media screen and (max-width: 749px) {
  .res-evidence__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---- sections/resources-context.liquid ---- */

.res-context {
  background: var(--surface);
}

/* ---- sections/resources-close.liquid ---- */

.res-close {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}
