/* =========================================================================
   DISCOVER GAY DALLAS — HOUSTON EDITION · HOMEPAGE SECTIONS
   Visit-Houston-style bands: hero, featured row, ocean experience block,
   events carousel, hotels split, trending, articles, social wall, CTA cards.
   ========================================================================= */

/* ---------- Custom-markup buttons (.htx-btn) ---------- */
.htx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--dgd-radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s var(--dgd-ease), background 0.25s var(--dgd-ease), color 0.25s var(--dgd-ease), box-shadow 0.25s var(--dgd-ease);
}
.htx-btn--lemon { background: var(--dgd-lemon); color: var(--dgd-ink); box-shadow: 0 6px 18px rgba(250, 218, 48, 0.3); }
.htx-btn--lemon:hover { background: var(--dgd-orange); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 179, 0, 0.32); }
.htx-btn--ocean { background: var(--dgd-ocean); color: #fff; box-shadow: 0 6px 18px rgba(0, 122, 192, 0.22); }
.htx-btn--ocean:hover { background: var(--dgd-ocean-dark); transform: translateY(-2px); }
.htx-btn--outline { background: transparent; color: var(--dgd-ocean); border-color: var(--dgd-ocean); }
.htx-btn--outline:hover { background: var(--dgd-ocean); color: #fff; }
.htx-btn--ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.htx-btn--ghost:hover { background: #fff; color: var(--dgd-ink); }

/* ---------- Inline guide / newsletter capture (mid-scroll) ---------- */
.htx-guide-capture {
  background: linear-gradient(135deg, var(--dgd-ocean) 0%, var(--dgd-ocean-deep) 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.htx-guide-capture__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  flex-wrap: wrap;
}
.htx-guide-capture__copy { flex: 1 1 22rem; }
.htx-guide-capture .dgd-sec-head__eyebrow { color: var(--dgd-lemon); }
.htx-guide-capture__title {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0.35rem 0 0;
  color: #fff;
}
.htx-guide-capture__title .dgd-script { color: var(--dgd-lemon); text-transform: none; font-size: 1.15em; }
.htx-guide-capture__lede { margin: 0.75rem 0 0; max-width: 46ch; color: rgba(255, 255, 255, 0.9); line-height: 1.5; }
.htx-guide-capture__form { flex: 1 1 20rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.htx-guide-capture__input {
  flex: 1 1 12rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--dgd-radius-sm);
  background: #fff;
  color: var(--dgd-ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
}
.htx-guide-capture__input::placeholder { color: var(--dgd-muted); }
.htx-guide-capture__input:focus-visible { outline: none; border-color: var(--dgd-lemon); }
.htx-guide-capture__form .htx-btn--lemon { flex: 0 0 auto; }
@media (max-width: 640px) {
  .htx-guide-capture__form .htx-btn--lemon { flex: 1 1 100%; justify-content: center; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.htx-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 82vh, 860px);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
/* Full-bleed behind the transparent floating header (Visit-Houston style). */
body.dgd-overlay-header .htx-hero { min-height: 100vh; min-height: 100svh; }
.htx-hero__media {
  position: absolute;
  inset: -8% 0 -8% 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.htx-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* top band darkens the floating-header zone so white nav text clears AA */
    linear-gradient(180deg, rgba(0,23,31,0.62) 0%, rgba(0,23,31,0.22) 15%, transparent 30%),
    linear-gradient(180deg, rgba(0,23,31,0.15) 0%, rgba(0,23,31,0.35) 45%, rgba(0,23,31,0.85) 100%),
    linear-gradient(90deg, rgba(0,23,31,0.55) 0%, transparent 60%);
}
.htx-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(2.5rem, 2rem + 6vh, 6rem);
}
.htx-hero__eyebrow {
  font-family: var(--wp--preset--font-family--condensed, "Barlow Condensed", sans-serif);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dgd-lemon);
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.htx-hero__title {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 1.5rem + 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 23, 31, 0.4);
}
.htx-hero__script {
  display: inline-block;
  font-family: "Kaushan Script", cursive;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dgd-lemon);
  font-size: 1.15em;
  line-height: 1;
  transform: rotate(-3deg);
  margin-top: 0.1em;
}
.htx-hero__lede {
  max-width: 46ch;
  margin: 1.25rem 0 1.75rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}
.htx-hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }
/* Live "what's on this week" signal beneath the CTAs — points the highest-intent
   visitor straight at the calendar. */
.htx-hero__eventcount { margin: 1.1rem 0 0; }
.htx-hero__eventcount a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--wp--preset--font-family--condensed, "Barlow Condensed", sans-serif);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s var(--dgd-ease);
}
.htx-hero__eventcount a:hover { color: var(--dgd-lemon); }
.htx-hero__eventcount-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--dgd-lemon);
  animation: htxLivePulse 2s var(--dgd-ease) infinite;
}
@keyframes htxLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(250, 218, 48, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(250, 218, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 218, 48, 0); }
}
@media (prefers-reduced-motion: reduce) { .htx-hero__eventcount-dot { animation: none; } }

/* Live "happening this week" tally in the events-carousel header. */
.htx-events__tally {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  color: var(--dgd-magenta);
  font-family: var(--wp--preset--font-family--condensed, "Barlow Condensed", sans-serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.htx-events__tally-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--dgd-magenta);
  animation: htxDotPulse 2s var(--dgd-ease) infinite;
}
@keyframes htxDotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@media (prefers-reduced-motion: reduce) { .htx-events__tally-dot { animation: none; } }
.htx-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  color: #fff;
  opacity: 0.85;
  animation: htxBounce 2s var(--dgd-ease) infinite;
}
.htx-hero__scroll svg { width: 26px; height: 26px; }
@keyframes htxBounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .htx-hero__scroll { animation: none; } }

/* Staggered hero entrance — the LCP screen was the only static surface (both
   scroll-reveal systems skip the first screen). Pure CSS, fires on load, no JS
   gate. The title animates transform-only (no opacity fade) so it paints
   immediately and never defers LCP; the eyebrow/lede/CTAs carry the fade.
   Fully bypassed under reduced-motion (rules live inside no-preference). */
@keyframes htxHeroIn      { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes htxHeroInTitle { from { transform: translateY(16px); }            to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .htx-hero__eyebrow,
  .htx-hero__lede,
  .htx-hero__cta,
  .htx-hero__eventcount { animation: htxHeroIn 0.55s var(--dgd-ease) both; }
  .htx-hero__title { animation: htxHeroInTitle 0.55s var(--dgd-ease) both; }
  .htx-hero__eyebrow    { animation-delay: 0.05s; }
  .htx-hero__title      { animation-delay: 0.12s; }
  .htx-hero__lede       { animation-delay: 0.22s; }
  .htx-hero__cta        { animation-delay: 0.32s; }
  .htx-hero__eventcount { animation-delay: 0.40s; }
}

/* ---- Hero slideshow (multi-slide crossfade; engine lives in ui.js) ------ */
.htx-hero__slides { position: absolute; inset: 0; z-index: 0; }
.htx-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--dgd-ease);
}
.htx-hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .htx-hero__slide { transition: none; } }
/* Image slides keep .htx-hero__media's -8% overscan for parallax; video
   slides don't translate, so they fill exactly. */
.htx-hero__media--video { inset: 0; will-change: auto; }
.htx-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Poster (the wrapper's background-image) shows through when video is off
   (phones, reduced-motion, save-data — ui.js sets the class). */
.dgd-hero.is-video-off .htx-hero__video { display: none; }
.htx-hero__slide-tag {
  position: absolute;
  right: 1.1rem;
  bottom: 4.75rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 23, 31, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--wp--preset--font-family--condensed, "Barlow Condensed", sans-serif);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* ---- Live "Tonight" strip (approved-venue events under the CTAs) -------- */
.htx-hero__live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
}
.htx-hero__live-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--dgd-lemon);
  font-family: var(--wp--preset--font-family--condensed, "Barlow Condensed", sans-serif);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.htx-hero__live-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 23, 31, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.2s var(--dgd-ease), color 0.2s var(--dgd-ease);
}
.htx-hero__live-pill:hover { border-color: var(--dgd-lemon); color: #fff; }
.htx-hero__live-pill strong {
  font-family: var(--wp--preset--font-family--condensed, "Barlow Condensed", sans-serif);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--dgd-lemon);
}
.htx-hero__live-venue { color: rgba(255, 255, 255, 0.68); }
.htx-hero__live-count { color: var(--dgd-lemon); font-style: normal; font-weight: 600; }
/* No-JS baseline: the track just re-creates the old wrapping pill row. */
.htx-hero__live-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}
/* Ticker mode (ui.js): pills stack in one slot and rotate — one line of
   hero real estate no matter how busy tonight is. */
.htx-hero__live.is-ticker .htx-hero__live-track {
  display: block;
  position: relative;
  transition: height 0.3s var(--dgd-ease);
}
.htx-hero__live.is-ticker .htx-hero__live-pill {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s var(--dgd-ease), transform 0.35s var(--dgd-ease);
}
.htx-hero__live.is-ticker .htx-hero__live-pill.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .htx-hero__live.is-ticker .htx-hero__live-track { transition: none; }
  .htx-hero__live.is-ticker .htx-hero__live-pill { transition: none; transform: none; }
}
@media (max-width: 640px) {
  .htx-hero__live-venue { display: none; }
}

/* ---- Slideshow controls (dots + pause, bottom-right) --------------------- */
.htx-hero__controls {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.htx-hero__dots { display: flex; gap: 0.45rem; }
.htx-hero__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s var(--dgd-ease), transform 0.2s var(--dgd-ease);
}
.htx-hero__dot:hover { transform: scale(1.25); }
.htx-hero__dot.is-active { background: var(--dgd-lemon); }
.htx-hero__pause {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 23, 31, 0.35);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s var(--dgd-ease);
}
.htx-hero__pause:hover { border-color: var(--dgd-lemon); }
.htx-hero__pause svg { width: 16px; height: 16px; }
.htx-hero__pause-icon--play { display: none; }
.dgd-hero.is-paused .htx-hero__pause-icon--pause { display: none; }
.dgd-hero.is-paused .htx-hero__pause-icon--play { display: block; }

/* The live strip joins the staggered hero entrance, between CTAs and count. */
@media (prefers-reduced-motion: no-preference) {
  .htx-hero__live { animation: htxHeroIn 0.55s var(--dgd-ease) both; animation-delay: 0.36s; }
}

/* =========================================================================
   FEATURED EXPERIENCES (3)
   ========================================================================= */
.htx-featured { background: #fff; padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.htx-featured__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.htx-feat-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(240px, 30vw, 360px);
  border-radius: var(--dgd-radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--dgd-shadow-card);
}
.htx-feat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Bottom half stays dark enough for AA even over busy flyer artwork. */
  background: linear-gradient(180deg, rgba(0,23,31,0.08) 0%, rgba(0,23,31,0.35) 45%, rgba(0,23,31,0.92) 100%);
  transition: background 0.3s var(--dgd-ease);
}
.htx-feat-card:hover::after { background: linear-gradient(180deg, rgba(0,122,192,0.25) 0%, rgba(0,23,31,0.5) 45%, rgba(0,23,31,0.94) 100%); }
.htx-feat-card__body { position: relative; z-index: 1; padding: 1.5rem; width: 100%; }
.htx-feat-card__eyebrow {
  display: block;
  font-family: var(--wp--preset--font-family--condensed, "Barlow Condensed", sans-serif);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dgd-lemon);
  font-size: 0.9rem;
}
.htx-feat-card__title {
  display: block;
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-top: 0.25rem;
}
.htx-feat-card__arrow {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: var(--dgd-lemon);
  color: var(--dgd-ink);
  transform: translateX(0);
  transition: transform 0.25s var(--dgd-ease);
}
.htx-feat-card__arrow svg { width: 20px; height: 20px; }
.htx-feat-card:hover .htx-feat-card__arrow { transform: translateX(5px); }

/* =========================================================================
   OCEAN EXPERIENCE BAND
   ========================================================================= */
.htx-band { position: relative; background: var(--dgd-ocean); color: #fff; overflow: hidden; }
.htx-band > .dgd-wave { position: relative; z-index: 0; display: block; }
.htx-band__inner { position: relative; z-index: 1; padding-block: clamp(2rem, 1rem + 4vw, 4rem); }
.htx-band .dgd-watermark { color: #fff; opacity: 0.1; top: 50%; right: -1rem; transform: translateY(-50%); }
.htx-band__content { position: relative; z-index: 2; max-width: 640px; }
.htx-band__eyebrow {
  font-family: var(--wp--preset--font-family--condensed, "Barlow Condensed", sans-serif);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dgd-lemon);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.htx-band__title {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #fff;
}
.htx-band__title .dgd-script { color: var(--dgd-lemon); text-transform: none; font-size: 1.15em; }
.htx-band__lede { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; line-height: 1.55; margin: 0 0 1.75rem; max-width: 52ch; }

/* =========================================================================
   EVENTS CAROUSEL
   ========================================================================= */
.htx-events { background: #fff; }
.htx-events__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0; }
.htx-events__head-wrap { margin-bottom: 1.5rem; }
.htx-events__viewport { position: relative; }
.htx-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(15rem, 24vw, 19rem);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--dgd-gutter);
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.htx-carousel__track::-webkit-scrollbar { display: none; }
.htx-carousel__track > * { scroll-snap-align: start; }
.htx-carousel__nav { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }

/* =========================================================================
   HOTELS SPLIT
   ========================================================================= */
.htx-split { background: var(--dgd-bone); }
.htx-split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.htx-split__text { max-width: 46ch; }
.htx-split__title {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 1rem;
}
.htx-split__title .dgd-script { color: var(--dgd-ocean); text-transform: none; font-size: 1.15em; }
.htx-split__copy { color: var(--dgd-ink-soft); font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.5rem; }
.htx-split__media {
  min-height: clamp(280px, 34vw, 460px);
  border-radius: var(--dgd-radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--dgd-shadow-lift);
}

/* =========================================================================
   WHAT'S TRENDING (deep ocean band, split feature)
   ========================================================================= */
.htx-trending { background: var(--dgd-ocean-deep); color: #fff; }
.htx-trending__feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border-radius: var(--dgd-radius-lg);
  overflow: hidden;
  background: #fff;
  color: var(--dgd-ink);
  text-decoration: none;
  box-shadow: var(--dgd-shadow-lift);
}
.htx-trending__media { background-size: cover; background-position: center; min-height: clamp(240px, 26vw, 360px); }
.htx-trending__body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; }
.htx-trending__kicker {
  font-family: var(--wp--preset--font-family--condensed, "Barlow Condensed", sans-serif);
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dgd-ocean); font-size: 0.9rem;
}
.htx-trending__title { font-family: "Barlow", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.05; letter-spacing: -0.01em; }
.htx-trending__excerpt { color: var(--dgd-ink-soft); line-height: 1.5; }
.htx-trending__more { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--dgd-ocean); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; margin-top: 0.3rem; }
.htx-trending__feature:hover .htx-trending__more { gap: 0.7rem; }

/* =========================================================================
   ARTICLES GRID (core Query Loop styled as cards)
   ========================================================================= */
.htx-articles { background: #fff; }
.htx-articles__head { align-items: flex-end !important; margin-bottom: 2rem; }
.htx-articles__grid { gap: 1.5rem !important; }
.htx-articles .wp-block-post {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--dgd-border);
  border-radius: var(--dgd-radius-md);
  overflow: hidden;
  box-shadow: var(--dgd-shadow-soft);
  transition: transform 0.3s var(--dgd-ease), box-shadow 0.3s var(--dgd-ease), border-color 0.3s var(--dgd-ease);
}
.htx-articles .wp-block-post:hover { transform: translateY(-4px); box-shadow: var(--dgd-shadow-lift); border-color: var(--dgd-ocean); }
.htx-articles .wp-block-post-featured-image { margin: 0; }
.htx-articles .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.htx-articles .wp-block-post-title { margin: 0 1.1rem; font-size: 1.2rem; font-weight: 800; line-height: 1.15; }
.htx-articles .wp-block-post-title a { color: var(--dgd-ink); text-decoration: none; }
.htx-articles .wp-block-post-title a:hover { color: var(--dgd-ocean); }
.htx-articles .htx-article__cat { margin: 0.9rem 1.1rem 0; font-family: var(--wp--preset--font-family--condensed, "Barlow Condensed", sans-serif); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; color: var(--dgd-ocean); }
.htx-articles .htx-article__cat a { color: inherit; text-decoration: none; }
.htx-articles .wp-block-post-excerpt { margin: 0 1.1rem 1.2rem; color: var(--dgd-ink-soft); font-size: 0.92rem; line-height: 1.5; }
.htx-articles .wp-block-post-excerpt__more-text { display: none; }

/* =========================================================================
   SOCIAL WALL
   ========================================================================= */
.htx-social { background: var(--dgd-bone); overflow: hidden; }
.htx-social__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 0.5rem + 2vw, 3rem); align-items: center; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.htx-social__wordart { color: var(--dgd-ocean); font-size: clamp(4rem, 2rem + 12vw, 11rem); line-height: 0.8; opacity: 0.9; }
.htx-social__wordart.dgd-wordart { -webkit-text-stroke: 3px var(--dgd-ocean); }
.htx-social__intro .dgd-sec-head__title { margin: 0 0 0.5rem; }
.htx-social__intro .dgd-sec-head__title em { color: var(--dgd-magenta); }
.htx-social__hashtag { font-family: "Barlow", sans-serif; font-weight: 800; color: var(--dgd-ocean); font-size: 1.3rem; margin: 0 0 0.85rem; }
.htx-social__icons { display: flex; gap: 0.6rem; }
.htx-social__icons a {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--dgd-lemon);
  color: var(--dgd-ink);
  transition: transform 0.25s var(--dgd-ease), background 0.25s var(--dgd-ease);
}
.htx-social__icons a:hover { transform: translateY(-3px) rotate(-6deg); background: var(--dgd-orange); }
.htx-social__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
.htx-social__tile { aspect-ratio: 1; background-size: cover; background-position: center; border-radius: var(--dgd-radius-sm); transition: transform 0.3s var(--dgd-ease); }
.htx-social__tile:hover { transform: scale(1.04); }

/* =========================================================================
   PRE-FOOTER CTA CARDS (3)
   ========================================================================= */
.htx-cta-cards { background: #fff; }
.htx-cta-cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.htx-cta-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.6rem;
  min-height: clamp(260px, 28vw, 340px);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--dgd-radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  box-shadow: var(--dgd-shadow-card);
}
.htx-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,23,31,0.1) 25%, rgba(0,23,31,0.55) 65%, rgba(0,23,31,0.85) 100%);
  transition: opacity 0.3s var(--dgd-ease);
}
.htx-cta-card > * { position: relative; z-index: 1; }
.htx-cta-card__eyebrow {
  font-family: var(--wp--preset--font-family--condensed, "Barlow Condensed", sans-serif);
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dgd-lemon); font-size: 0.9rem;
}
.htx-cta-card__title { font-family: "Barlow", sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 0.4rem; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .htx-featured__grid { grid-template-columns: 1fr 1fr; }
  .htx-split__inner { grid-template-columns: 1fr; }
  .htx-split__media { order: -1; }
  .htx-trending__feature { grid-template-columns: 1fr; }
  .htx-trending__media { min-height: 220px; }
  .htx-social__head { grid-template-columns: 1fr; }
  .htx-social__grid { grid-template-columns: repeat(3, 1fr); }
  .htx-cta-cards__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .htx-featured__grid { grid-template-columns: 1fr; }
  .htx-hero { min-height: 78vh; }
}

/* =========================================================================
   WAVE DIVIDER COLOR OVERRIDE
   dgd_render_wave_divider() resolves its fill from an origin-keyed palette
   array at runtime and falls back to a dark default hex, so the inline
   fill="#0C0820" is wrong for this bright theme. A CSS `fill` beats the SVG
   presentation attribute, so we set the correct Houston transition color per
   boundary here.
   ========================================================================= */
.htx-band > .dgd-wave:first-of-type path { fill: #fff; }                       /* white featured above -> ocean */
.htx-band > .dgd-wave:last-of-type path  { fill: var(--dgd-ocean-light); }     /* ocean -> ocean-light tabs below */
.dgd-experience > .dgd-wave path { fill: #fff; }                               /* ocean-light tabs -> white events below */
