/* Homepage long-scroll — loaded after theme-built.css (see layouts/partials/style.html). */

/* Root scroll: do not set overflow-x on `html` — that can disable vertical scroll on iOS/Safari. */
html {
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  /* overflow-x must stay visible/clip on html for touch scroll; clip horizontal on body if needed */
  overflow-x: visible !important;
  -webkit-overflow-scrolling: touch;
}

body.site-layout {
  height: auto !important;
  max-height: none !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative;
}

body.site-layout > main,
main {
  overflow: visible !important;
  min-height: 0;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

/* Matches .hero-copy-body secondary tone when utility is missing from a Tailwind build slice */
.text-text-light {
  color: #5a5a5a;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-tight {
  line-height: 1.25;
}

/* Research areas: headings with description on hover / focus */
.home-research-hover__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 48rem;
}

.home-research-hover__item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(111, 111, 120, 0.2);
}

.home-research-hover__item:first-child {
  border-top: 1px solid rgba(111, 111, 120, 0.2);
}

.home-research-hover__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.home-research-hover__icon {
  flex-shrink: 0;
  display: inline-flex;
  line-height: 0;
}

.home-research-hover__lucide {
  width: 1.25rem;
  height: 1.25rem;
}

.home-research-hover__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.25s ease,
    padding 0.25s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.home-research-hover__item:hover .home-research-hover__panel,
.home-research-hover__item:focus-within .home-research-hover__panel {
  max-height: 32rem;
  opacity: 1;
  padding-bottom: 1.25rem;
}

.home-research-hover__item:focus {
  outline: none;
}

.home-research-hover__item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Touch / no-hover: always show description */
@media (hover: none), (pointer: coarse) {
  .home-research-hover__panel {
    max-height: none;
    opacity: 1;
    padding-bottom: 1.25rem;
  }
}

.home-credentials__list .home-credentials__item + .home-credentials__item {
  margin-top: 0.65rem;
}

.home-team-teaser__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home-team-teaser__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 2.25rem;
  }
}

.home-team-teaser__member {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .home-team-teaser__member {
    flex-direction: row;
    align-items: flex-start;
  }
}

.home-team-teaser__photo {
  flex-shrink: 0;
}

.home-team-teaser__img {
  display: block;
  width: 160px;
  height: 160px;
  max-width: 100%;
  border-radius: 50% !important;
  clip-path: circle(50%);
  object-fit: cover;
}

.home-team-teaser__meta {
  min-width: 0;
}

.home-team-teaser__cta-wrap {
  margin-top: 3.5rem;
}

/* Reusable inset card style for CTA/content blocks across pages. */
.mls-inset-card {
  background-color: #f5f5f5;
  color: #141312;
  max-width: 100%;
  width: auto;
  margin: 2.25rem 0 0;
  padding: 20px;
  border: 1px solid rgba(111, 111, 120, 0.28);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: none !important;
  text-shadow: none !important;
}

.home-contact-cta__inner {
  /* Keep existing home CTA behavior while delegating visuals to reusable class. */
  margin-top: 2.25rem;
}

/* Text inset: handled globally on `.container` (custom.css). */

.home-contact-cta {
  background-color: #fff !important;
}

.home-contact-cta .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.home-contact-cta__content {
  max-width: 800px;
}

.home-contact-cta__inner {
  background-color: #f5f5f5 !important;
  color: #141312 !important;
}

.home-contact-cta #home-contact-cta-heading {
  color: #141312 !important;
}

.home-contact-cta__text {
  color: #5a5a5a !important;
  font-size: 1rem !important;
  line-height: 1.625 !important;
}

.home-contact-cta__text a {
  color: var(--color-primary);
}

/* Service card rich text: restore visible bullets (base reset removes list markers). */
.home-scope__item-body ul,
.home-contact-cta__text ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.home-scope__item-body ol,
.home-contact-cta__text ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.home-scope__item-body li + li,
.home-contact-cta__text li + li {
  margin-top: 0.4rem;
}

/* Bullet markers use MLS accent blue. */
.content ul li::marker,
.home-scope__item-body ul li::marker,
.home-contact-cta__text ul li::marker {
  color: #2D3A87;
}

/* React lucide-animated mounts */
[data-lucide-react] > svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Services page variant: full-bleed CTA block (same treatment as home "Work with us"). */
.home-services-full-bleed-cta {
  padding-top: 0;
}

/* Inverted variant: white CTA block */
.home-services-full-bleed-cta .home-contact-cta__inner {
  background-color: #fff;
  color: var(--color-text-dark);
}

.home-services-full-bleed-cta .home-contact-cta__text {
  color: #5a5a5a;
}

.home-services-full-bleed-cta .home-contact-cta__text a {
  color: var(--color-primary);
}

/* Homepage icon colors by section: services orange, research blue. */
.home-scope--what-we-do .home-scope__icon {
  color: var(--color-primary);
}

.home-scope--research-cards .home-scope__icon {
  color: #F2AF4C;
}

.home-contact-cta .home-scope__icon {
  color: #2D3A87;
}

/* Get in touch CTAs use accent blue (nav + Work with us). */
header .btn.btn-primary,
.home-contact-cta .btn.btn-primary {
  background-color: #2D3A87;
  border-color: #2D3A87;
}

header .btn.btn-primary::after,
.home-contact-cta .btn.btn-primary::after {
  background-color: #2D3A87;
}

header .btn.btn-primary:hover,
.home-contact-cta .btn.btn-primary:hover {
  border-color: #253071;
}

header .btn.btn-primary:hover::after,
.home-contact-cta .btn.btn-primary:hover::after {
  background-color: #253071;
}

/* Keep larger Get in touch CTAs same size on hover (shade shift only). */
header .btn.btn-primary:hover::after,
.home-contact-cta .btn.btn-primary:hover::after {
  width: 100%;
  height: 100%;
}

/* Hero CTAs: no size growth on hover, shade-only feedback. */
.hero-cta-row .btn.btn-primary:hover::after,
.hero-cta-row .btn.btn-outline-primary:hover::after {
  width: 100%;
  height: 100%;
}

.hero-cta-row .btn.btn-primary:hover::after {
  background-color: #e06f42;
}

.hero-cta-row .btn.btn-outline-primary:hover::after {
  background-color: rgba(111, 111, 120, 0.08);
}

/* Section index intro text under page headers: use tight spacing instead of generic .section padding. */
.section-intro-tight {
  padding-top: 0.75rem;
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  .section-intro-tight {
    padding-top: 1rem;
  }
}

/* Team & About / Team: integrated two-column profile layout */
.team-profile-content .team-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  grid-template-areas: "content media";
  column-gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(111, 111, 120, 0.2);
}

.team-profile-content .team-person:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.team-profile-content .team-person__content {
  min-width: 0;
  grid-area: content;
}

.team-profile-content .team-person__content h2 {
  margin: 0;
  text-align: left;
  margin-bottom: 1rem;
}

.team-profile-content .team-person__media {
  grid-area: media;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-profile-content .team-person__photo {
  width: 160px;
  height: 160px;
  max-width: 100%;
  border-radius: 50% !important;
  clip-path: circle(50%);
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.team-profile-content .team-person__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.team-profile-content .team-person__links a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(111, 111, 120, 0.35);
  border-radius: 9999px;
  color: #5a5a5a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.team-profile-content .team-person__links a:hover,
.team-profile-content .team-person__links a:focus-visible {
  color: var(--color-primary);
  border-color: var(--color-primary);
  text-decoration: none;
}

.team-profile-content .team-person__link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.team-profile-content .team-person__link-icon > .h-full.w-full {
  width: 100%;
  height: 100%;
  display: block;
}

.team-profile-content .team-person__link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.team-profile-content .team-person__rg-mark {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.team-profile-content .team-person__rg-mark sup {
  font-size: 0.62em;
  line-height: 1;
  vertical-align: super;
  text-decoration: none;
}

@media (max-width: 640px) {
  .team-profile-content .team-person {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
    row-gap: 1rem;
  }

  .team-profile-content .team-person__media {
    justify-self: start;
    align-items: flex-start;
  }

  .team-profile-content .team-person__links {
    justify-content: flex-start;
    margin-top: 0;
  }
}

/* Contact page: LinkedIn icon buttons match Team page style. */
.contact-linkedin-links {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}

.contact-linkedin-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.5rem 0 1.1rem;
}

.contact-linkedin-links a {
  width: auto;
  min-height: 42px;
  border: 1px solid rgba(111, 111, 120, 0.35);
  border-radius: 9999px;
  color: #5a5a5a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  text-decoration: none !important;
}

.contact-linkedin-links a:hover,
.contact-linkedin-links a:focus-visible {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.contact-linkedin-links .team-person__link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.contact-linkedin-links .team-person__link-icon > .h-full.w-full {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-linkedin-links .team-person__link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* About page: expertise pills with hover/focus descriptions (motif from personal_website). */
.about-expertise-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.about-expertise-pills .expertise-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(111, 111, 120, 0.32);
  border-radius: 9999px;
  color: #5a5a5a;
  background: #fff;
  text-decoration: none !important;
  font-size: 0.92rem;
  line-height: 1.2;
}

.about-expertise-pills .expertise-tag:hover,
.about-expertise-pills .expertise-tag:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.about-expertise-pills .expertise-tag__tip {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: min(360px, 80vw);
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(111, 111, 120, 0.28);
  background: #fff;
  color: #1f1e1d;
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.about-expertise-pills .expertise-tag__tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

@media (hover: hover) and (pointer: fine) {
  .about-expertise-pills .expertise-tag--tipped:hover .expertise-tag__tip {
    opacity: 1;
    visibility: visible;
  }
}

.about-expertise-pills .expertise-tag--tipped:focus-visible .expertise-tag__tip {
  opacity: 1;
  visibility: visible;
}

/* About page profile links: match Team page circular icon style. */
.about-profile-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  margin: 0.5rem 0 1.25rem;
}

.about-profile-links a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(111, 111, 120, 0.35);
  border-radius: 9999px;
  color: #5a5a5a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.about-profile-links a:hover,
.about-profile-links a:focus,
.about-profile-links a:focus-visible,
.about-profile-links a:active,
.about-profile-links a:visited {
  text-decoration: none !important;
}

.about-profile-links a:hover,
.about-profile-links a:focus-visible {
  color: var(--color-primary);
  border-color: var(--color-primary);
  text-decoration: none;
}

.about-profile-link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.about-profile-link-icon > .h-full.w-full {
  width: 100%;
  height: 100%;
  display: block;
}

.about-profile-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-profile-rg-mark {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.about-profile-rg-mark sup {
  font-size: 0.62em;
  line-height: 1;
  vertical-align: super;
  text-decoration: none;
}
