.contact-us-form-overlay {
  display: none;
}

.contact-us-form-overlay:target,
body:has(#contact-form:target) .contact-us-form-overlay,
body:has(#contact:target) .contact-us-form-overlay,
.contact-us-form-overlay.is-visible {
  display: flex !important;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.contact-us-form-overlay,
.contact-us-form-container,
.contact-form-container {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.contact-us-form-overlay .overlay-bg {
  /* Match the light background used on blog/index so the modal appears consistent */
  background-color: #fff;
}

/* Ensure the contact form modal is centered and the close icon anchors to it */
.contact-us-form-container {
  position: relative !important; /* override fixed positioning from base css */
  inset: auto !important;
  align-self: center;
}

.icon-button.close-contact-form {
  top: 16px !important;
}

.w-form-done,
.w-form-fail {
  display: none;
}

.contact-us-form-container:has(.w-form-done[style*="display: block"]) {
  padding: 0;
  width: 0;
  height: 0;
}

.contact-us-form-container:has(.w-form-done[style*="display: block"]) > h2,
.contact-us-form-container:has(.w-form-done[style*="display: block"])
  > .icon-button,
.contact-us-form-container:has(.w-form-done[style*="display: block"])
  > .contact-form-header-wrapper,
.contact-us-form-container:has(.w-form-done[style*="display: block"])
  > .contact-form-tabs {
  display: none;
}

.contact-us-form-container:has(.w-form-done[style*="display: block"]) form {
  display: none !important;
}

.contact-us-form-overlay:has(.w-form-done[style*="display: block"]) {
  background-color: transparent;
  width: 0;
  height: 0;
  padding: 0;
}

.contact-us-form-overlay:has(.w-form-done[style*="display: block"])
  .overlay-bg {
  width: 0;
  height: 0;
  background-color: transparent;
}

.contact-us-form-container:has(.w-form-fail[style*="display: block"]) {
  padding: 0;
  width: 0;
  height: 0;
}

.contact-us-form-container:has(.w-form-fail[style*="display: block"]) > h2,
.contact-us-form-container:has(.w-form-fail[style*="display: block"])
  > .icon-button {
  display: none;
}

.contact-us-form-container:has(.w-form-fail[style*="display: block"]) form {
  display: none !important;
}

.contact-us-form-overlay:has(.w-form-fail[style*="display: block"]) {
  background-color: transparent;
  width: 0;
  height: 0;
  padding: 0;
}

.contact-us-form-overlay:has(.w-form-fail[style*="display: block"])
  .overlay-bg {
  width: 0;
  height: 0;
  background-color: transparent;
}

.segmented-control-tab[style*="background-color: rgb(255, 255, 255)"] {
  box-shadow: 0 2.5px 5px rgba(0, 0, 0, 0.05);
}

.segmented-control-tab[style*="background-color: rgb(255, 255, 255)"]
  > div
  > #stroke-icon
  > path,
.segmented-control-tab[style*="background-color: rgb(255, 255, 255)"]
  > div
  > #outline-icon
  > path {
  stroke: #0a0a0a !important;
  fill: #0a0a0a !important;
}

/* Keep nav visible when contact modal is closed */
body.contact-open .w-nav {
  opacity: 0 !important;
  pointer-events: none !important;
}

body:not(.contact-open) .w-nav {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Hide blog card abstracts on the blog listing page only */

/* Ensure nav reappears after closing contact overlay on mobile */
body:not(.contact-open) .w-nav {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Hide abstracts on blog listing cards when a specific filter is active */
.filter-no-abstracts .blog-post-date {
  display: none !important;
}

/* Reduce hero H1 font size for the longer audit-required heading */
@media screen and (min-width: 1265px) {
  .section-heading {
    font-size: 52px;
    line-height: 66px;
  }
}
@media screen and (min-width: 992px) and (max-width: 1264px) {
  .section-heading {
    font-size: 32px;
    line-height: 40px;
  }
  .hero-video {
    min-width: 400px;
  }
}
@media screen and (min-width: 767px) and (max-width: 991px) {
  .mobile-nav-dropdown {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Blog post author byline credentials */
.blog-post-author-credentials {
  color: var(--text--secondary, #6b7280);
  margin-bottom: 0;
  font-size: 14px;
  line-height: 18px;
}

/* Blog post author bio box */
.author-bio-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border--primary, #e5e7eb);
  border-radius: 8px;
}
.author-bio-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-bio-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--text--primary, #1a1a1a);
  margin-bottom: 4px;
}
.author-bio-description {
  font-size: 14px;
  line-height: 22px;
  color: var(--text--secondary, #6b7280);
  margin-bottom: 8px;
}
.author-bio-links {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}
.author-bio-links a {
  font-size: 14px;
  color: var(--text--brand, #e02b20);
  text-decoration: none;
}
.author-bio-links a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 479px) {
  .author-bio-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-bio-links {
    justify-content: center;
  }
}

/* Explore TrendMD tile grid */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.explore-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border--primary, #e5e7eb);
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.explore-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.explore-tile:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}
.explore-tile-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text--primary, #1a1a1a);
}
.explore-tile-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--text--secondary, #6b7280);
}
@media screen and (max-width: 767px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 479px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
}

