/* =========================================================================
 * WHIEM Builder – public styles for editable sections and elements.
 * ========================================================================= */

/* Former inline styles from the original templates (moved here so they can be overridden). */
.approach__grid,
.mission__grid,
.principles__grid,
.involve__grid {
  margin-top: 28px;
}
.mission .section__title { color: var(--whiem-cream); }
.mission .section__intro { color: rgba(247, 241, 227, .88); }
.audience__panel,
.founder__panel,
.updates__empty { padding: 28px; }
.cta .section__eyebrow { color: rgba(247, 241, 227, .84); }
.cta .section__title { color: #fff; }
.cta .section__intro { color: rgba(255, 255, 255, .9); }
.cta__panel .site-footer__heading { margin-top: 0; }
.site-footer__about { margin-top: 16px; max-width: 36ch; }
.card__text > p:first-child,
.approach-card__text > p:first-child,
.mission-card__text > p:first-child,
.principle__text > p:first-child,
.involve-card__text > p:first-child { margin-top: 0; }

/* Branding (logo link) */
a.site-branding { color: inherit; text-decoration: none; }
.site-branding__logo { display: flex; align-items: center; }
.site-branding__logo img { max-height: 54px; width: auto; }
.site-footer .site-branding__logo img { max-height: 64px; }
.site-header--static { position: relative; }
.social-links a { color: inherit; }
.social-links svg { display: block; }

/* Configurable grids (cards per row) */
@media (min-width: 1181px) {
  .wb-cols { grid-template-columns: repeat(var(--wb-cols), minmax(0, 1fr)); }
}

/* "Swap sides" options */
.action--reverse .mosaic { order: 2; }
.audience--reverse .audience__image { order: -1; }
.founder--reverse .founder__image { order: 2; }

/* Extra elements dropped at the bottom of a designed section */
.wb-extra { position: relative; z-index: 3; }
.wb-extra .wb-zone:not(:empty) { padding-top: 32px; }
.hero .wb-extra .wb-zone:not(:empty) { padding-bottom: 48px; }

/* Custom columns section */
.wb-intro { margin-bottom: 28px; }
.wb-row {
  display: grid;
  grid-template-columns: var(--wb-template, 1fr);
  gap: var(--wb-gap, 28px);
}
.wb-row--boxed .wb-col { padding: 28px; }
.wb-col { min-width: 0; }
@media (max-width: 920px) {
  .wb-row { grid-template-columns: 1fr; }
}

/* Elements */
.wb-el { position: relative; }
.wb-zone > .wb-el + .wb-el { margin-top: 18px; }
.wb-el > :first-child { margin-top: 0; }
.wb-el > :last-child { margin-bottom: 0; }
.wb-el .section__title { margin-bottom: 0; }
.wb-el .section__eyebrow { margin: 0; }
.wb-subtitle {
  font-family: var(--whiem-serif);
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.08;
  font-weight: 600;
  margin: 0;
  color: var(--whiem-ink);
}
.wb-plain-heading { font-weight: 700; font-size: 1.2rem; margin: 0; }
.wb-text { font-size: 1.04rem; line-height: 1.65; }
.wb-text > :first-child { margin-top: 0; }
.wb-text > :last-child { margin-bottom: 0; }
.wb-text a { text-decoration: underline; color: var(--whiem-forest); }
.wb-figure { margin: 0; }
.wb-img { overflow: hidden; border-radius: var(--whiem-radius-md); }
.wb-img img { width: 100%; height: auto; }
.wb-caption { font-size: .9rem; opacity: .75; margin-top: 8px; }
.wb-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--outline-dark { background: transparent; color: var(--whiem-forest); border-color: rgba(18, 55, 42, .35); }
.btn--outline-dark:hover { border-color: var(--whiem-forest); }
.wb-icon-card { text-align: center; }
.wb-icon-card .card__icon { margin-left: auto; margin-right: auto; }
.wb-icon-card.card { height: 100%; }
.wb-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.wb-list li { padding-left: 26px; position: relative; }
.wb-list--dots li::before { content: '\25CF'; position: absolute; left: 0; top: 0; color: var(--whiem-forest); font-size: .9rem; }
.wb-list--check li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--whiem-gold); font-weight: 800; }
ol.wb-list--numbers { list-style: decimal; padding-left: 22px; }
ol.wb-list--numbers li { padding-left: 4px; }
.wb-quote {
  margin: 0;
  padding: 30px 34px;
  border-left: 4px solid var(--whiem-gold);
  background: rgba(255, 255, 255, .65);
  border-radius: var(--whiem-radius-md);
}
.wb-quote__text { font-family: var(--whiem-serif); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.2; margin: 0 0 14px; }
.wb-quote__cite { display: block; font-style: normal; font-weight: 700; color: var(--whiem-gold); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.wb-gallery { display: grid; grid-template-columns: repeat(var(--wb-cols, 3), minmax(0, 1fr)); gap: 14px; }
.wb-gallery__img { height: var(--wb-h, 240px); border-radius: 18px; overflow: hidden; }
.wb-gallery__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .wb-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wb-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--whiem-radius-md); overflow: hidden; background: #000; }
.wb-video iframe,
.wb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wb-divider { border: 0; border-top: 1px solid rgba(18, 55, 42, .18); margin: 0 auto; }
.wb-placeholder { padding: 30px; border: 2px dashed rgba(18, 55, 42, .25); border-radius: 16px; text-align: center; color: rgba(28, 28, 28, .6); }
.wb-html > :first-child { margin-top: 0; }
