/* Research method detail page.
   Figma: UX-Pacific-Website node 962:4074 (In-Depth Interviews).
   Design canvas is 1440 wide with 100px gutters => 1240px content column. */

.md-page {
  --md-gutter: 100px;
  --md-max: 1240px;
  --md-gap: 80px;
  --md-rail: 360px;
  --md-ink: #111;
  --md-body: #343434;
  --md-muted: #626262;
  --md-brand: #1f18e2;
  --md-deep: #040082;
  --md-accent: #e0f100;
  --md-tint: #f8f8fd;
  --md-rule: #e3e3ed;
  color: var(--md-ink);
  letter-spacing: 0;
}
.md-page * {
  letter-spacing: 0;
}

.md-wrap {
  width: 100%;
  max-width: var(--md-max);
  margin-inline: auto;
}

.md-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--md-rule);
}

.md-eyebrow {
  margin: 0;
  color: var(--md-brand);
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
}



.md-section {
  padding: 80px var(--md-gutter);
}
.md-section--tint {
  background: var(--md-tint);
}
.md-section--flush {
  padding-top: 0;
}
.md-section .md-wrap {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.md-section--tint.md-section--process .md-wrap {
  gap: 56px;
}

.md-split {
  display: flex;
  align-items: flex-start;
  gap: var(--md-gap);
}
.md-intro {
  flex: 0 0 var(--md-rail);
  width: var(--md-rail);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.md-intro h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.16;
  text-transform: uppercase;
}
/* Lead statement opens the page: larger measure, sentence case, lighter weight. */
.md-intro--lead h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}
.md-body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.md-body p {
  margin: 0;
  color: var(--md-body);
  font-size: 16px;
  line-height: 1.7;
}
.md-body a {
  color: var(--md-brand);
  text-decoration: underline;
}

/* Full-width heading above the process grid. */
.md-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.md-head h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.16;
  text-transform: uppercase;
}

/* ---------- Method at a glance (two tinted cards) ---------- */

.md-glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.md-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: var(--md-tint);
}
.md-card h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}
.md-card ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.md-card li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--md-body);
  font-size: 15px;
  line-height: 1.5;
}
.md-card li img {
  flex-shrink: 0;
}

/* ---------- Process steps ---------- */

.md-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: md-step;
}
.md-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--md-rule);
}
.md-step-num {
  color: var(--md-brand);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
}
.md-step h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
}
.md-step p {
  margin: 0;
  color: var(--md-body);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Deliverables panel ---------- */

.md-deliver {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 40px;
  background: var(--md-deep);
}
.md-deliver-intro {
  flex: 0 0 340px;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.md-deliver-intro .md-eyebrow {
  color: var(--md-accent);
}
.md-deliver-intro h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.16;
  text-transform: uppercase;
}
.md-deliver p {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Related methods ---------- */

.md-section--related .md-wrap {
  gap: 32px;
}
.md-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.md-related-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--md-rule);
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.md-related-card:hover,
.md-related-card:focus-visible {
  border-color: var(--md-brand);
  box-shadow: 0 12px 28px -18px rgb(17 17 17 / 0.4);
  transform: translateY(-2px);
}
.md-related-card h3 {
  margin: 0;
  color: var(--md-ink);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
}
.md-related-card p {
  margin: 0;
  color: var(--md-muted);
  font-size: 15px;
  line-height: 1.5;
}
.md-explore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--md-brand);
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
}
.md-explore img {
  flex-shrink: 0;
  transition: transform 0.25s;
}
.md-related-card:hover .md-explore img,
.md-related-card:focus-visible .md-explore img {
  transform: translate(3px, -3px);
}

/* ---------- Next research method ---------- */

.md-next {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px 16px;
  border-top: 0.8px solid #d4dae0;
  text-decoration: none;
  transition: background 0.25s;
}
.md-next:hover,
.md-next:focus-visible {
  background: #fff;
}
.md-next-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}
.md-next-title {
  color: var(--md-ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}
.md-next-label {
  color: var(--md-muted);
  font-size: 11px;
  line-height: 16px;
  text-transform: uppercase;
}
.md-next-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #d4dae0;
  border-radius: 999px;
  transition: transform 0.25s, border-color 0.25s;
}
.md-next:hover .md-next-icon,
.md-next:focus-visible .md-next-icon {
  border-color: var(--md-brand);
  transform: translateX(4px);
}

/* ---------- Contact invitation ---------- */

.md-closing {
  padding: 72px var(--md-gutter) 80px;
  background: #111;
}
.md-closing .md-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.md-closing h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 49px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.md-closing h2 em {
  color: var(--md-accent);
  font-style: italic;
  font-weight: 400;
  text-decoration: underline;
  text-transform: none;
}
.md-closing p {
  margin: 0;
  color: #b5b5b5;
  font-size: 16px;
  line-height: 1.6;
}
.md-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 15px 29px;
  border-radius: 24px;
  background: var(--md-brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.md-btn:hover,
.md-btn:focus-visible {
  background: #fff;
  color: var(--md-brand);
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .md-page {
    --md-gutter: 48px;
    --md-gap: 48px;
    --md-rail: 280px;
  }
}

@media (max-width: 980px) {
  .md-page {
    --md-gutter: 24px;
  }
  .md-section {
    padding-block: 56px;
  }
  .md-section--flush {
    padding-top: 0;
  }
  .md-split,
  .md-deliver {
    flex-direction: column;
    gap: 28px;
  }
  .md-intro,
  .md-deliver-intro {
    flex: 1 1 auto;
    width: 100%;
  }
  .md-deliver {
    padding: 28px;
  }
  .md-glance,
  .md-related {
    grid-template-columns: 1fr;
  }
  .md-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .md-intro h2,
  .md-head h2,
  .md-deliver-intro h2 {
    font-size: 26px;
  }
  .md-intro--lead h2 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .md-page {
    --md-gutter: 20px;
    --md-gap: 24px;
  }
  .md-section {
    padding-block: 48px;
  }
  .md-deliver-intro,
  .md-intro {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }
  .md-steps {
    grid-template-columns: 1fr;
  }
  .md-card {
    padding: 24px;
  }
  .md-card h3,
  .md-step h3,
  .md-related-card h3 {
    font-size: 20px;
  }
  .md-next {
    gap: 20px;
    flex-wrap: wrap;
  }
  .md-next-title {
    font-size: 20px;
    line-height: 28px;
  }
  .md-deliver {
    padding: 24px;
  }
}
