html, body { overflow-x: clip; }
/* whitemen.org replacements for Squarespace-scripted blocks. Pairs with /_a/wm.js. */

/* Generative hero backgrounds */
.wm-fx-section { position: relative; }
.wm-fx-section .section-background { background: hsl(var(--accent-hsl)) !important; }
.wm-fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wm-fx-soft { filter: blur(24px); transform: scale(1.08); }
.wm-fx-section .section-background { overflow: hidden; }
.wm-fx-toggle {
  position: absolute; right: 2.2vw; bottom: 2.2vw; z-index: 3;
  width: 28px; height: 28px; padding: 6px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; cursor: pointer; line-height: 0;
}
.wm-fx-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wm-fx-toggle svg { width: 16px; height: 16px; }

/* Scrolling text */
.Marquee-display { overflow: hidden; position: relative; padding: 3% 0; }
.wm-marquee-track { display: flex; width: max-content; animation: wm-marquee linear infinite; will-change: transform; }
.wm-marquee-group { display: flex; flex: none; }
.wm-marquee-item {
  font-family: var(--heading-font-font-family); font-weight: var(--heading-font-font-weight, 500);
  font-size: clamp(2.5rem, calc(var(--marquee-font-size-value, 8) * 1vw), 9rem);
  line-height: 1.1; white-space: nowrap; padding-right: var(--marquee-item-spacing, .5em);
  text-transform: uppercase; color: currentColor;
}
@keyframes wm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wm-marquee-track { animation: none; } }
.wm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Blog carousel */
.wm-carousel {
  display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.wm-carousel::-webkit-scrollbar { display: none; }
.wm-carousel > .summary-item {
  flex: 0 0 33.333%; scroll-snap-align: start; position: static !important;
  width: auto !important; transform: none !important; opacity: 1 !important; visibility: visible !important;
  padding: 0 1.2vw; box-sizing: border-box;
}
@media (max-width: 767px) { .wm-carousel > .summary-item { flex-basis: 85%; } }
.summary-carousel-pager span {
  display: inline-block; width: 28px; height: 28px; cursor: pointer; border: 0 !important; background: none !important;
  position: relative; font-size: 0;
}
.summary-carousel-pager span::before {
  content: ""; position: absolute; top: 9px; width: 9px; height: 9px;
  border-left: 1px solid currentColor; border-bottom: 1px solid currentColor;
}
.summary-carousel-pager-prev::before { left: 10px; transform: rotate(45deg); }
.summary-carousel-pager-next::before { left: 6px; transform: rotate(-135deg); }
.summary-carousel-pager span:focus-visible { outline: 1px solid currentColor; }

/* Signup form */
.wm-form { display: grid; gap: 22px; max-width: 100%; }
.wm-form fieldset { border: 0; margin: 0; padding: 0; }
.wm-form legend { padding: 0; margin-bottom: 12px; }
.wm-form legend, .wm-field > span, .wm-row span {
  font-family: var(--body-font-font-family); font-size: 1.05rem; display: block;
}
.wm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wm-row span { font-size: 1rem; margin-bottom: 8px; }
.wm-field > span { margin-bottom: 8px; }
.wm-form small { font-size: .8em; opacity: .7; margin-left: .3em; }
.wm-form input, .wm-form textarea {
  width: 100%; box-sizing: border-box; padding: 14px 12px; font: inherit; font-size: 1rem;
  background: #fafafa; border: 1px solid #000; border-radius: 0; color: #000;
}
.wm-form input { height: 54px; }
.wm-form textarea { min-height: 100px; resize: vertical; }
.wm-form [aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.wm-form button {
  justify-self: start; padding: 20px 19px; border: 0; border-radius: 0; cursor: pointer;
  background: hsl(var(--accent-hsl)); color: #fff; font-family: var(--body-font-font-family); font-size: 1rem;
}
.wm-form button:disabled { opacity: .6; cursor: progress; }
.wm-form button:focus-visible, .wm-form input:focus-visible, .wm-form textarea:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.wm-error { margin: 0; color: #b3261e; }
.wm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wm-thanks { font-family: var(--body-font-font-family); font-size: 1.2rem; }

/* Curved underline highlight ("in just six months") */
.sqsrte-text-highlight {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 50 3, 120 3, 198 7' fill='none' stroke='%23c8928a' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% .3em; background-position: 0 100%;
  padding-bottom: .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
