/* Case study project page. The blog stylesheet is not loaded here. */

.sg-study-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.sg-study-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

body.admin-bar .sg-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .sg-header {
    top: 46px;
  }
}

.sg-study-page {
  background: #f4f7f8;
  color: var(--sg-navy, #0c2d44);
  font-family: var(--sg-font-body, "Inter", ui-sans-serif, system-ui, sans-serif);
}

.sg-study__wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.sg-study__hero {
  background: var(--sg-navy, #0c2d44);
  color: #fff;
  padding: 2.25rem 0 6rem;
}

.sg-study__hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.sg-study__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
}

.sg-study__crumbs a {
  color: inherit;
  text-decoration: none;
}

.sg-study__crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
}

.sg-study__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--sg-orange, #fb7523);
  font-family: var(--sg-font-head, "Chakra Petch", ui-sans-serif, sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sg-study__hero h1 {
  margin: 0;
  max-width: 14em;
  color: #fff;
  font-family: var(--sg-font-head, "Chakra Petch", ui-sans-serif, sans-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.02;
}

.sg-study__dek {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
  line-height: 1.5;
}

.sg-study__facts {
  position: relative;
  z-index: 2;
  margin-top: -3.25rem;
}

.sg-study__facts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  color: var(--sg-navy, #0c2d44);
  border: 1px solid rgb(12 45 68 / 6%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(12 45 68 / 10%);
}

.sg-study__facts-row > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem;
}

.sg-study__facts-row p {
  margin: 0 0 0.25rem;
  color: #5c6b76;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sg-study__facts-row strong {
  font-family: var(--sg-font-head, "Chakra Petch", ui-sans-serif, sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.sg-study__facts-row .sg-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--sg-navy, #0c2d44);
}

.sg-study__figure {
  margin: 0;
}

.sg-study__image {
  display: block;
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: 12px;
}

.sg-study__grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

.sg-study__jump {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-left: 4px solid var(--sg-orange, #fb7523);
}

.sg-study__jump summary {
  cursor: pointer;
  font-weight: 700;
}

.sg-study__jump ol {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.sg-study__jump li + li {
  margin-top: 0.4rem;
}

.sg-study__jump a {
  color: var(--sg-navy, #0c2d44);
  text-decoration: none;
}

.sg-study__content {
  background: #fff;
  padding: 1.5rem 1.15rem 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.sg-study__content h2 {
  margin: 1.75rem 0 0.75rem;
  color: var(--sg-navy, #0c2d44);
  font-family: var(--sg-font-head, "Chakra Petch", ui-sans-serif, sans-serif);
  font-size: 1.55rem;
  scroll-margin-top: 0;
}

.sg-study__content h2:first-child {
  margin-top: 0;
}

.sg-study__content p,
.sg-study__content li {
  margin: 0 0 1rem;
}

.sg-study__content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.sg-study__content a {
  color: var(--sg-blue, #1769a1);
}

.sg-study__content img {
  display: block;
  width: 100%;
  height: auto;
}

.sg-study__brief {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgb(12 45 68 / 6%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(12 45 68 / 8%);
}

.sg-study__brief-logo {
  display: block;
  width: auto;
  max-width: 11rem;
  height: auto;
}

.sg-study__brief-label {
  margin: 0.85rem 0 0;
  color: var(--sg-muted, #5a6b77);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sg-study__brief h2 {
  margin: 0.35rem 0 0.5rem;
  color: var(--sg-navy, #0c2d44);
  font-family: var(--sg-font-head, "Chakra Petch", ui-sans-serif, sans-serif);
  font-size: 1.35rem;
}

.sg-study__brief p {
  margin: 0;
  color: var(--sg-muted, #5a6b77);
  font-size: 0.875rem;
}

.sg-study__brief-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  color: var(--sg-navy, #0c2d44);
  font-family: var(--sg-font-head, "Chakra Petch", ui-sans-serif, sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.sg-study__brief-phone .sg-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--sg-navy, #0c2d44);
}

.sg-study__brief-note {
  margin: 0.2rem 0 0;
}

.sg-study__brief-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  min-height: 2.375rem;
  margin-top: 1rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--sg-navy, #0c2d44);
  color: #fff;
  font-family: var(--sg-font-btn, "Montserrat", ui-sans-serif, sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 14px rgb(12 45 68 / 16%);
}

.sg-study__brief-btn:hover,
.sg-study__brief-btn:focus-visible {
  background: var(--sg-blue-dark, #125882);
  color: #fff;
  transform: translateY(-1px);
}

.sg-study__brief-btn .sg-icon {
  width: 0.95rem;
  height: 0.95rem;
  color: #fff;
}

.sg-study-archive {
  padding: 3rem 0 4rem;
}

.sg-study-archive h1 {
  margin: 0.4rem 0 0.75rem;
  color: var(--sg-navy, #0c2d44);
  font-family: var(--sg-font-head, "Chakra Petch", ui-sans-serif, sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
}

.sg-study-archive__kicker {
  margin: 0;
  color: var(--sg-orange, #fb7523);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sg-study-archive__list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.sg-study-archive__list a {
  display: block;
  background: #fff;
  color: var(--sg-navy, #0c2d44);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(12, 45, 68, 0.06);
}

.sg-study-archive__list img {
  display: block;
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.sg-study-archive__list div {
  padding: 1rem 1.1rem 1.2rem;
}

.sg-study-archive__list span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--sg-orange, #fb7523);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sg-study-archive__list strong {
  font-family: var(--sg-font-head, "Chakra Petch", ui-sans-serif, sans-serif);
  font-size: 1.35rem;
}

@media (min-width: 800px) {
  .sg-study__facts-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .sg-study__grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }

  .sg-study__brief {
    position: sticky;
    top: var(--sg-sticky-top, 8rem);
  }

  .sg-study__jump {
    display: none;
  }

  .sg-study__content {
    padding: 2rem 2rem 0.75rem;
  }
}

@media (min-width: 900px) {
  .sg-study__hero-grid:has(.sg-study__figure) {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: 2.5rem;
  }

  .sg-study__image {
    height: 22rem;
  }
}
