/* Post Content */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--brandboards-neutral_800) !important;
  font-weight: 600 !important;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 0.625em 0 0.375em !important;
  font-family: var(--headlinefont) !important;
}

.post-content h1 {
  font-weight: 300 !important;
  line-height: 1.125 !important;
}

.post-content h2 {
  font-weight: 450 !important;
  line-height: 1.25 !important;
}

.post-content h3 {
  font-weight: 500 !important;
  line-height: 1.375 !important;
  letter-spacing: -0.75px !important;
}

.post-content h1,
.post-content h2 {
  letter-spacing: -1px !important;
}

/* Custom Border Gradient */
:root {
  --border-gradient:
    color-mix(in srgb, var(--brandboards-pink_900) 75%, white),
    color-mix(in srgb, var(--brandboards-pink_400) 50%, white),
    var(--brandboards-pink_400);
}

.gradient-border {
  border-color: transparent !important;
  border-image: linear-gradient(var(--border-gradient)) 1 !important;
  border-image-slice: 1 !important;
}

.gradient-border--before::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(var(--border-gradient));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Custom Header */
.header--simple:not(.ignore-overrides) {
  position: relative;
  background-color: white !important;
  box-shadow: 0 4px 8px color-mix(in srgb, var(--brandboards-pink_900) 12.5%, transparent) !important;
  z-index: 10;
}

.header--simple:not(.ignore-overrides)::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right,
      var(--border-gradient));
  z-index: 1;
}

.header--simple:not(.ignore-overrides) .site-logo path {
  fill: var(--brandboards-pink_900) !important;
}

/* Highlighted headline text — the yellow marker behind <u> words in headlines.
   Painted as an inline background gradient (NOT an absolutely-positioned
   ::after) for two reasons: (1) it wraps per line — box-decoration-break clones
   the background onto each line fragment, so a highlight that breaks across
   lines gets a strip on every line instead of one block-sized rectangle;
   (2) it renders on iOS Safari — the old ::after leaned on `height:50%`
   (percentage height on an abs-pos pseudo) + `z-index:-1` (negative z with no
   stacking context on the parent), both of which WebKit resolves differently
   from Blink, so the strip collapsed/painted out of view there.
   `display:inline` (not inline-block) is required — inline-block is a single
   box and never fragments. The two gradient stops are equal and set the strip
   height; tune both together. */
.headline u {
  text-decoration: none !important;
  display: inline !important;
  background-image: linear-gradient(
      to top,
      color-mix(in srgb, var(--brandboards-yellow_500) 90%, white) 0.55em,
      transparent 0.55em) !important;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Background Card */
.bg-card {
  position: absolute;
  top: 50%;
  min-width: 100vw !important;
  height: 100%;
  transform: translateY(-50%);
  z-index: -1;
}

.bg-card.left {
  right: 50%;
}

.bg-card.right {
  left: 50%;
}

.c-section:has(.bg-card) {
  overflow: hidden;
}

.c-column:has(.bg-card) {
  position: relative;
  z-index: 0 !important;
}

/* Masonry Layout
   GHL wraps a tagged .c-column's children in `div.horizontal.inner` (flex,
   nowrap) — that's what forces items side-by-side. We flip it to block and let
   either the multicol fallback (below) or Masonry.js drive the columns.
   JS (funnel-custom-elements.js) is the source of truth for cols/gap; it writes
   --masonry-item-w and --masonry-gap per breakpoint. These CSS vars are only the
   pre-JS + in-builder fallback defaults — tweak the JS CONFIG to change live. */
.masonry-layout>.inner {
  --masonry-gap: 16px;
  --masonry-fallback-colw: 260px;
  /* fallback = as many ~260px cols as fit */
  display: block !important;
  columns: var(--masonry-fallback-colw);
  column-gap: var(--masonry-gap);
}

.masonry-layout>.inner>* {
  flex: none !important;
  width: auto !important;
  /* multicol controls width in fallback */
  break-inside: avoid;
  margin: 0 0 var(--masonry-gap) !important;
}

/* JS ready: kill multicol, use JS-computed per-item width + absolute positioning */
.masonry-layout.masonry-ready>.inner {
  columns: auto !important;
}

.masonry-layout.masonry-ready>.inner>* {
  width: var(--masonry-item-w) !important;
}

/* Lightbox cursor — only once the JS has bound Fancybox (it sets [data-fancybox]),
   so the "click to zoom" affordance never lies when the script fails to load. */
.gallery-wrapper img[data-fancybox] {
  cursor: zoom-in;
}

/* Add to Calendar — pill buttons injected by FunnelCal.addToCalendar().
   Tweak the --atc-* vars (here or inline on .atc) to restyle. */
.atc {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.atc-btn {
  display: inline-flex !important;
  align-items: center;
  /* left padding leaves room for the provider icon (background-image below) */
  padding: 0.5em 1.125em 0.625em 2.5em !important;
  border: 1px solid var(--brandboards-neutral_100) !important;
  border-radius: 10px !important;
  /* background-COLOR (not the `background` shorthand) so the icon image survives hover */
  background-color: color-mix(in srgb, var(--brandboards-neutral_50) 50%, white) !important;
  background-repeat: no-repeat;
  background-position: 0.9em center;
  background-size: 1.15em 1.15em;
  color: var(--brandboards-neutral_800) !important;
  font-family: var(--contentfont) !important;
  font-weight: 600 !important;
  line-height: 1.375;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: scale 0.3s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

/* Provider icons — relative to this file (/css/ghl/) so they resolve on whatever
   CDN host served the CSS. PNGs live in /images/ghl/. */
.atc-apple {
  background-image: url(../../images/ghl/apple-calendar.png);
}

.atc-google {
  background-image: url(../../images/ghl/google-calendar.png);
}

.atc-outlook {
  background-image: url(../../images/ghl/outlook-calendar.png);
}

.atc-btn:hover,
.atc-btn:focus-visible {
  scale: 1.01875;
  box-shadow: 0 2px 4px -0.5px color-mix(in srgb, var(--brandboards-neutral_400) 12.5%, transparent)
}