/* Drupal Asset Injector: CASE Study Detail
 * Scope: /case/*; selectors apply only inside .case-study-detail.
 */
.case-study-detail {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6.5rem) 1.5rem;
  color: #243044;
  line-height: 1.9;
}

.case-study-detail > h2:first-child {
  margin: 0 0 2rem;
  padding: 0 0 1.25rem;
  border-bottom: 4px solid #0b9b8f;
  color: #172236;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.25;
  letter-spacing: .02em;
}

.case-study-detail p {
  max-width: none;
  margin: 0 0 1.35rem;
  font-size: 1rem;
  line-height: 1.8;
}

.case-study-detail h2 {
  margin: 4.5rem 0 1.5rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #dce5e9;
  color: #172236;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.4;
}

.case-study-detail h3 {
  margin: 2.5rem 0 .75rem;
  color: #087f76;
  font-size: 1.2rem;
  line-height: 1.5;
}

.case-study-detail ul {
  display: grid;
  gap: .75rem;
  margin: 1.75rem 0 2.25rem;
  padding: 0;
  list-style: none;
}

.case-study-detail li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.2rem;
  border: 2px solid #cbdadd;
  border-radius: .5rem;
  background: #f8fbfc;
  line-height: 1.7;
}

.case-study-detail li::before {
  position: static;
  flex: 0 0 .55rem;
  width: .55rem;
  height: .55rem;
  margin-top: .58em;
  border-radius: 50%;
  background: #0b9b8f;
  content: "";
}

.case-study-detail #results + p + ul li {
  gap: 0;
}

.case-study-detail #results + p + ul li::before {
  content: none;
}

.case-study-detail li strong {
  display: inline-block;
  margin-right: .35rem;
  color: #087f76;
  font-size: 1.2rem;
}

.case-study-detail a {
  color: #087f76;
  font-weight: 700;
  text-underline-offset: .2em;
}

.case-study-detail a:hover {
  color: #055e58;
}

.case-study-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 60px;
  align-items: start;
}

.case-study-main {
  width: 100%;
  max-width: 900px;
  min-width: 0;
}

.case-study-aside {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 1.75rem;
  padding: 2rem;
  border: 2px solid #b7cbd0;
  border-top: 4px solid #0b9b8f;
  border-radius: .6rem;
  background: #f8fbfc;
}

.case-study-aside-section,
.case-study-toc {
  padding-bottom: 1.35rem;
  border-bottom: 2px solid #cbdadd;
}

.case-study-aside-eyebrow {
  margin: 0 0 .9rem;
  color: #087f76;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.case-study-data-list {
  display: grid;
  gap: .85rem;
  margin: 0;
}

.case-study-data-list div {
  display: grid;
  gap: .2rem;
}

.case-study-data-list dt {
  color: #687585;
  font-size: .95rem;
}

.case-study-data-list dd {
  margin: 0;
  color: #243044;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
}

.case-study-detail .case-study-key-results {
  display: grid;
  gap: .7rem;
  margin: 0;
}

.case-study-detail .case-study-key-results li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.case-study-detail .case-study-key-results li::before {
  content: none;
}

.case-study-detail .case-study-key-results strong {
  color: #087f76;
  font-size: 2.2rem;
  line-height: 1;
}

.case-study-key-results span {
  color: #536273;
  font-size: 1.05rem;
}

.case-study-toc {
  display: grid;
  gap: .65rem;
}

.case-study-toc .case-study-aside-eyebrow {
  margin-bottom: .25rem;
}

.case-study-toc a {
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none;
}

.case-study-aside-cta p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, .8);
  font-size: 1rem;
  line-height: 1.65;
}

.case-study-aside-cta {
  position: relative;
  margin: .5rem -2rem -2rem;
  padding: 2rem;
  border-radius: 0 0 .6rem .6rem;
  background: #172236;
  color: #fff;
}

.case-study-aside-cta::before {
  display: block;
  margin-bottom: .7rem;
  color: #6ce1d2;
  content: "CONTACT";
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.case-study-aside-cta > p:last-child {
  margin: 0;
}

.case-study-aside-cta > p:last-child > a:first-child {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: .3rem;
  background: #0b9b8f;
  color: #fff;
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none;
}

.case-study-aside-cta > p:last-child > a:first-child:hover {
  background: #6ce1d2;
  color: #172236;
}

.case-study-back-button {
  display: inline-block;
  margin-top: .5rem;
  padding: .7rem 1.1rem;
  border: 1.5px solid #8293a1;
  border-radius: .3rem;
  background: #fff;
  color: #445264;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.case-study-back-button:hover {
  border-color: #087f76;
  color: #087f76;
}

.case-study-aside-back {
  display: block;
  margin-top: .9rem;
  font-size: .82rem;
  text-align: center;
}

.case-study-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2.25rem;
}

.case-study-result {
  min-height: 12.5rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid #d8e5e7;
  border-top: 4px solid #0b9b8f;
  border-radius: .6rem;
  background: linear-gradient(145deg, #ffffff 0%, #f3fafa 100%);
  box-shadow: 0 10px 22px rgba(23, 34, 54, .07);
}

.case-study-result-label {
  display: block;
  margin-bottom: 1.1rem;
  color: #536273;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
}

.case-study-result > p:first-child {
  white-space: nowrap;
}

.case-study-result-number {
  display: inline;
  color: #087f76;
  font-size: clamp(3.25rem, 5.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

.case-study-result-unit {
  margin-left: .12em;
  font-size: clamp(1.625rem, 2.75vw, 2.5rem);
  letter-spacing: 0;
}

.case-study-detail .case-study-result p {
  margin: 1rem 0 0;
  color: #536273;
  font-size: 1rem;
  line-height: 1.55;
}

.case-study-lead {
  max-width: none;
  margin: 0 0 3.75rem;
  padding: 1.5rem 0 0 1.35rem;
  border-left: 3px solid #0b9b8f;
}

.case-study-detail .case-study-lead p {
  margin-bottom: .8rem;
}

@media (max-width: 1100px) {
  .case-study-content-grid {
    grid-template-columns: 1fr;
  }

  .case-study-aside {
    position: static;
    margin-top: 1rem;
  }
}

@media (max-width: 700px) {
  .case-study-detail {
    padding: 2.5rem 1.25rem 4rem;
  }

  .case-study-detail h2 {
    margin-top: 3.25rem;
  }

  .case-study-results {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .case-study-result {
    min-height: auto;
    padding: 1.25rem;
  }

  .case-study-lead {
    margin-bottom: 3rem;
  }

}


/* Keep the sticky CASE sidebar below the fixed site header. */
.case-study-aside {
  top: calc(72px + 1.5rem);
}


/* CASE number shoulder label. */
.case-study-detail:has(.case-study-content-grid[class*="case-study--"]) > h2:first-child::before {
  display: block;
  margin-bottom: .75rem;
  color: #929daa;
  content: "";
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
}

.case-study-detail:has(.case-study--01) > h2:first-child::before { content: "CASE 01"; }
.case-study-detail:has(.case-study--02) > h2:first-child::before { content: "CASE 02"; }
.case-study-detail:has(.case-study--03) > h2:first-child::before { content: "CASE 03"; }
.case-study-detail:has(.case-study--04) > h2:first-child::before { content: "CASE 04"; }
.case-study-detail:has(.case-study--05) > h2:first-child::before { content: "CASE 05"; }
.case-study-detail:has(.case-study--06) > h2:first-child::before { content: "CASE 06"; }
.case-study-detail:has(.case-study--07) > h2:first-child::before { content: "CASE 07"; }

.case-study-result--compact .case-study-result-number {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
}

.case-study-result--compact .case-study-result-unit {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}
