/* Figma 777:1057 / 777:920: the detail route owns its layout, while the
 * shared header, lower sections, and footer continue to use their components. */
.case-study-detail {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: 199px 0 0 !important;
  background: #fff;
  color: #3b3b3b;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.case-study-detail-article {
  box-sizing: border-box;
  width: min(1268px, calc(100% - 64px));
  min-width: 0;
  margin: 0 auto;
}
.case-study-lede {
  min-width: 0;
}
.case-study-eyebrow {
  margin: 0 0 23px;
  color: #f00;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}
.case-study-eyebrow a {
  text-decoration: none;
}
.case-study-eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.case-study-date {
  display: block;
  margin: 0 0 8px;
  color: #c7c7c7;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}
.case-study-date-label {
  display: block;
}
.case-study-detail h1 {
  max-width: 900px;
  margin: 0 0 15px;
  color: #3b3b3b;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.case-study-result {
  margin: 0 0 59px;
  color: #3b3b3b;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
  margin: 0 0 79px;
  padding: 0;
}
.case-study-tag {
  box-sizing: border-box;
  min-height: 51.75px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 27px;
  border-radius: 100px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.case-study-tag--pink {
  background: #ffe0ec;
  color: #bd0000;
}
.case-study-tag--green {
  background: #d9ffcc;
  color: #004204;
}
.case-study-tag--blue {
  background: #cce0ff;
  color: #00337e;
}
.case-study-divider {
  height: 1px;
  width: 100%;
  margin: 0 0 79px;
  background: #000;
}

/* Keep the existing structured outcome available to screen readers and the
 * release smoke checks, without adding a second visual card to the Figma page. */
.case-study-outcome--sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.case-study-body {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 80px;
  color: #3b3b3b;
  font-size: 21px;
  font-weight: 400;
  line-height: 3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.case-study-body h2,
.case-study-body h3 {
  box-sizing: border-box;
  min-width: 0;
  margin: 80px 0 0;
  padding: 79px 0 0;
  border-top: 1px solid #e5e5e5;
  color: #3b3b3b;
  font-size: 21px;
  font-weight: 600;
  line-height: 3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.case-study-body h2:first-child,
.case-study-body h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.case-study-body p {
  margin: 0;
  font: inherit;
  line-height: 3;
  overflow-wrap: anywhere;
}
.case-study-body p + p {
  margin-block-start: 0.75em;
}
.case-study-body ul,
.case-study-body ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}
.case-study-body li {
  margin: 0;
  line-height: 3;
}
.case-study-body li + li {
  margin-top: 0.25em;
}
.case-study-body blockquote {
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 2px solid #5d5d5d;
}
.case-study-body img,
.case-study-body video {
  display: block;
  max-width: 100%;
  height: auto;
}
.case-study-body iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}
.case-study-body table {
  display: block;
  max-width: 100%;
  overflow: auto;
}
/* Target only known editor declarations; authored media/layout remains intact. */
.case-study-detail .case-study-body [style*='text-align'] {
  text-align: inherit !important;
}
.case-study-detail .case-study-body span[style*='display:block'],
.case-study-detail .case-study-body span[style*='display: block'] {
  display: inline !important;
}
.case-study-detail .case-study-body [style*='color'] {
  color: inherit !important;
}
.case-study-detail .case-study-body [style*='line-height'] {
  line-height: inherit !important;
}
.case-study-detail .case-study-body [style*='margin'] {
  margin: 0 !important;
}
.case-study-detail .case-study-body p:empty {
  display: none;
}

.case-study-detail-lower {
  width: 100%;
  min-width: 0;
}
.case-study-detail-section {
  box-sizing: border-box;
  width: min(1268px, calc(100% - 64px));
  margin: 0 auto;
  border-top: 1px solid #e5e5e5;
}
.case-study-detail-section-inner {
  width: 100%;
  min-width: 0;
}
.case-study-documents {
  padding: 79px 0 80px;
}
.case-study-documents h2 {
  display: block;
  min-height: 126px;
  max-width: 920px;
  margin: 0;
  color: #3b3b3b;
  font-size: 21px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0;
}
.case-study-section-title-accent {
  display: block;
  color: #f00;
}
.case-study-section-description {
  display: block;
  color: #b5b5b5;
  font-size: 21px;
  font-weight: 400;
  line-height: 2;
}
.case-study-documents-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 349px));
  gap: 25px;
  min-width: 0;
  margin-top: 0;
}
.case-study-document-card {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  aspect-ratio: 349 / 483;
  margin: 0;
  border-radius: 30px;
  background: #f3f3f3;
  overflow: hidden;
}
.case-study-document-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f3f3;
}

.case-study-related {
  padding: 131px 0 212px;
}
.case-study-related-heading {
  box-sizing: border-box;
  min-height: 126px;
  max-width: 920px;
  margin: 0 0 32px;
}
.case-study-related-heading h2 {
  margin: 0;
  color: #3b3b3b;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
}
.case-study-related-heading p {
  margin: 8px 0 0;
  color: #b5b5b5;
  font-size: 21px;
  line-height: 2;
}
.case-study-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  min-width: 0;
}

.case-study-detail-faq {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 190px 0 76px;
  background: #f8f8f8;
}
.case-study-detail-faq-inner {
  width: min(1020px, calc(100% - 64px));
  margin: 0 auto;
}
.case-study-detail-faq h2 {
  margin: 0 0 79px;
  color: #3b3b3b;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}
.case-study-faq-list {
  min-width: 0;
}
.case-study-detail-faq .iel-faq-item {
  margin: 0 0 20px;
  border: 0;
  border-radius: 30px;
  box-shadow: 0 10px 80px rgb(0 0 0 / 5%);
}
.case-study-detail-faq .iel-faq-summary {
  min-height: 66px;
  padding: 18px 28px;
  border-radius: 30px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
}
.case-study-detail-faq .iel-faq-answer {
  font-size: 18px;
  line-height: 1.8;
}
.case-study-detail-faq .lower-more {
  margin: 74px auto 0;
  color: #979797;
  font-size: 20px;
  font-weight: 400;
  line-height: 2;
}

/* The shared insight and location partials intentionally remain outside the
 * constrained article so their full-bleed Figma sections can render normally. */
.case-study-detail > .case-study-detail-lower > #insights,
.case-study-detail > .case-study-detail-lower > #location {
  width: 100%;
  min-width: 0;
}
.case-study-detail a:focus-visible {
  outline: 3px solid #a32424;
  outline-offset: 5px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .case-study-detail {
    padding-top: 150px !important;
  }
  .case-study-detail-article,
  .case-study-detail-section {
    width: calc(100% - 64px);
  }
  .case-study-result {
    font-size: 44px;
  }
  .case-study-tag {
    font-size: 16px;
  }
  .case-study-body {
    font-size: 19px;
  }
  .case-study-body h2,
  .case-study-body h3,
  .case-study-body p,
  .case-study-body li {
    line-height: 2.5;
  }
  .case-study-body h2,
  .case-study-body h3 {
    padding-top: 48px;
    margin-top: 48px;
  }
  .case-study-documents-list {
    grid-template-columns: repeat(2, minmax(0, 349px));
  }
  .case-study-related-grid {
    gap: 28px;
  }
}

@media (max-width: 767px), (pointer: coarse) and (min-width: 768px) and (max-width: 1199px) {
  .case-study-detail {
    padding-top: 87px !important;
  }
  .case-study-detail-article {
    width: calc(100% - 44px);
  }
  .case-study-eyebrow {
    margin-bottom: 28px;
    font-size: 12px;
    line-height: 14px;
  }
  .case-study-date {
    margin-bottom: 11px;
    font-size: 12px;
    line-height: 14px;
  }
  .case-study-detail h1 {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 24px;
  }
  .case-study-result {
    margin-bottom: 28px;
    color: #3b3b3b;
    font-family: Pretendard;
    font-style: normal;
    font-size: 30px;
    font-weight: 600;
    line-height: normal;
  }
  .case-study-tags {
    gap: 11px;
    margin-bottom: 70px;
  }
  .case-study-tag {
    min-height: 0;
    padding: 9px 18px;
    font-size: 12px;
    line-height: 1.3;
  }
  .case-study-divider {
    width: calc(100% + 10.5px);
    margin-left: -5.25px;
    margin-bottom: 44px;
  }
  .case-study-body {
    padding-bottom: 80px;
    font-size: 14px;
    line-height: 2.5;
  }
  .case-study-body h2,
  .case-study-body h3,
  .case-study-body p,
  .case-study-body li {
    line-height: 2.5;
  }
  .case-study-body h2,
  .case-study-body h3 {
    margin-top: 50px;
    padding-top: 49px;
    font-size: 14px;
  }
  .case-study-body p {
    margin: 0;
  }
  .case-study-body ul,
  .case-study-body ol {
    padding-left: 1.25em;
  }
  .case-study-detail-section {
    position: relative;
    width: calc(100% - 44px);
    border-top: 0;
  }
  .case-study-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5.25px;
    width: calc(100% + 10.5px);
    height: 1px;
    background: #e5e5e5;
  }
  .case-study-documents {
    padding: 51px 0 68px;
  }
  .case-study-documents h2 {
    min-height: 0;
    font-size: 14px;
    line-height: 1.7;
  }
  .case-study-section-description {
    font-size: 14px;
    line-height: 1.7;
  }
  .case-study-documents-list {
    display: flex;
    gap: 20px;
    width: calc(100% + 10px);
    margin-top: 68px;
    margin-left: -5px;
    padding: 0 5px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .case-study-documents-list::-webkit-scrollbar {
    display: none;
  }
  .case-study-document-card {
    flex: 0 0 276px;
    width: 276px;
    aspect-ratio: 276 / 382;
    border-radius: 30px;
    scroll-snap-align: start;
  }
  .case-study-related {
    padding: 79px 0 119px;
  }
  .case-study-related-heading {
    min-height: 69.85px;
    margin-bottom: 17px;
  }
  .case-study-related-heading h2 {
    font-size: 20px;
    line-height: 1.7;
  }
  .case-study-related-heading p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
  }
  .case-study-related-grid {
    grid-template-columns: 1fr;
    gap: 21px;
  }
  .case-study-detail-faq {
    padding: 113px 0 72px;
  }
  .case-study-detail-faq-inner {
    width: calc(100% - 50px);
  }
  .case-study-detail-faq h2 {
    margin-bottom: 27px;
    font-size: 23px;
    line-height: 1.35;
  }
  .case-study-detail-faq .iel-faq-item {
    margin-bottom: 12px;
    border-radius: 20px;
  }
  .case-study-detail-faq .iel-faq-summary {
    min-height: 53px;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
  }
  .case-study-detail-faq .iel-faq-answer {
    font-size: 14px;
    line-height: 1.8;
  }
  .case-study-detail-faq .lower-more {
    margin-top: 126px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-study-documents-list {
    scroll-behavior: auto;
  }
}
