/* Case study pages (/case-studies/*). Builds on education-pages.css tokens. */

.cs-page {
  --cs-ink: var(--edu-ink, #1a1c1b);
  --cs-body: var(--edu-muted, #444846);
  --cs-teal: var(--edu-secondary, #1c5b5d);
  --cs-green: var(--edu-primary, #447569);
  --cs-green-dark: var(--edu-primary-dark, #1c4f44);
  --cs-line: #d7dfdb;
  --cs-soft: var(--edu-surface-low, #eff5f1);
  --cs-orange: var(--edu-orange, #f99522);
  background: #ffffff;
  color: var(--cs-ink);
}

.cs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cs-page h1,
.cs-page h2 {
  font-family: "Poppins", "Inter", Arial, sans-serif;
  letter-spacing: 0;
}

/* Hero */
.cs-hero {
  padding: 152px 0 64px;
  background:
    radial-gradient(circle at 10% 20%, rgba(157, 237, 193, 0.3), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(244, 225, 79, 0.22), transparent 30%),
    linear-gradient(180deg, #eff7f2 0%, #f8faf9 70%, #ffffff 100%);
}

.cs-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--cs-body);
  font-size: 14px;
}

.cs-breadcrumb a {
  color: var(--cs-green);
  text-decoration: none;
}

.cs-breadcrumb a:hover {
  text-decoration: underline;
}

.cs-eyebrow {
  margin: 0 0 16px;
  color: var(--cs-green);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.cs-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--cs-body);
  font-size: 20px;
  line-height: 1.55;
  text-wrap: pretty;
}

.cs-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 44px 0 0;
  border-top: 1px solid var(--cs-line);
}

.cs-facts div {
  padding: 18px 20px 0 0;
}

.cs-facts dt {
  margin-bottom: 6px;
  color: var(--cs-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-facts dd {
  margin: 0;
  color: var(--cs-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

/* At a glance */
.cs-glance {
  padding: 8px 0 24px;
}

.cs-glance__card {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(28, 79, 68, 0.1);
}

.cs-glance__col {
  padding: 32px 32px 36px;
}

.cs-glance__col + .cs-glance__col {
  border-left: 1px solid var(--cs-line);
}

.cs-glance__col--results {
  background: var(--cs-soft);
}

.cs-glance__col p {
  margin: 0;
  color: var(--cs-body);
  font-size: 17px;
  line-height: 1.6;
}

.cs-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--cs-ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cs-label::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: var(--cs-line);
}

.cs-label--challenge::before { background: var(--cs-orange); }
.cs-label--approach::before { background: var(--cs-teal); }
.cs-label--results::before { background: var(--cs-green); }

.cs-checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-checks li {
  position: relative;
  padding-left: 30px;
  color: var(--cs-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.cs-checks li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--cs-green);
}

/* Stats */

/* Quote */
.cs-quote {
  padding: 56px 0;
}

.cs-quote__panel {
  margin: 0;
  padding: 56px 64px;
  border-radius: 24px;
  background: var(--cs-green-dark);
  color: #ffffff;
}

.cs-quote__panel blockquote {
  margin: 0;
}

.cs-quote__panel p {
  max-width: 900px;
  margin: 0;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

.cs-quote__panel figcaption {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

/* Story */

.cs-limits {
  margin: 8px 0 40px;
  padding: 28px 32px;
  border: 1px solid #f3d98a;
  border-radius: 16px;
  background: #fffbea;
}

.cs-limits h2 {
  margin: 0 0 10px;
  color: var(--cs-ink);
  font-size: 22px;
  font-weight: 600;
}

.cs-limits p {
  max-width: 900px;
  margin: 0;
  color: var(--cs-body);
  font-size: 17px;
  line-height: 1.6;
}

/* FAQ */
.cs-faq {
  padding: 56px 0;
  background: var(--edu-surface, #f8faf9);
}

.cs-faq h2,
.cs-sources h2 {
  margin: 0 0 24px;
  color: var(--cs-ink);
  font-size: 32px;
  font-weight: 600;
}

.cs-faq__list {
  display: grid;
  gap: 12px;
}

.cs-faq__item {
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  background: #ffffff;
}

.cs-faq__item summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  color: var(--cs-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.cs-faq__item summary::-webkit-details-marker {
  display: none;
}

.cs-faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--cs-green);
  font-size: 24px;
  font-weight: 400;
  transform: translateY(-50%);
}

.cs-faq__item[open] summary::after {
  content: "\2212";
}

.cs-faq__item summary:focus-visible {
  outline: 2px solid var(--cs-green);
  outline-offset: 2px;
  border-radius: 14px;
}

.cs-faq__item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--cs-body);
  font-size: 17px;
  line-height: 1.65;
}

/* Sources */
.cs-sources {
  padding: 56px 0 24px;
}

.cs-sources h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.cs-sources ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--cs-body);
  font-size: 15px;
  line-height: 1.6;
}

.cs-sources a {
  color: var(--cs-green);
}

.cs-updated {
  margin: 20px 0 0;
  color: var(--cs-body);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .cs-glance__card {
    grid-template-columns: 1fr;
  }

  .cs-glance__col + .cs-glance__col {
    border-left: 0;
    border-top: 1px solid var(--cs-line);
  }

  .cs-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  
}

@media (max-width: 720px) {
  .cs-page .edu-shell {
    width: calc(100% - 40px);
  }

  .cs-hero {
    padding: 120px 0 40px;
  }

  .cs-hero h1 {
    font-size: 34px;
  }

  .cs-lead {
    font-size: 17px;
  }

  .cs-facts {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .cs-facts div {
    padding: 14px 0;
    border-bottom: 1px solid var(--cs-line);
  }

  .cs-glance__col {
    padding: 24px 22px 26px;
  }

  

  

  .cs-quote {
    padding: 40px 0;
  }

  .cs-quote__panel {
    padding: 32px 24px;
    border-radius: 18px;
  }

  .cs-quote__panel p {
    font-size: 21px;
  }

  

  

  

  .cs-limits {
    padding: 22px 20px;
  }

  .cs-faq h2 {
    font-size: 26px;
  }

  .cs-faq__item summary {
    padding: 18px 48px 18px 18px;
    font-size: 16px;
  }

  .cs-faq__item summary::after {
    right: 18px;
  }

  .cs-faq__item p {
    padding: 0 18px 18px;
    font-size: 16px;
  }
}

/* Lessons list inside the callout */
.cs-lessons {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--cs-ink);
  font-size: 17px;
  line-height: 1.55;
}

.cs-limits .cs-lessons + p {
  font-size: 15px;
}

.cs-updated a {
  color: var(--cs-green);
  font-weight: 600;
}

/* Video link */
.cs-video__link {
  position: relative;
  display: block;
  max-width: 640px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(28, 79, 68, 0.14);
}

.cs-video__link img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-video__play {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='white'/%3E%3C/svg%3E") center / 34px no-repeat,
    rgba(28, 79, 68, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.cs-video__link:hover .cs-video__play,
.cs-video__link:focus-visible .cs-video__play {
  transform: scale(1.08);
}

.cs-video__link:focus-visible {
  outline: 3px solid var(--cs-green);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cs-video__play {
    transition: none;
  }
}

@media (max-width: 720px) {
  .cs-lessons {
    font-size: 16px;
  }

  .cs-video__play {
    left: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    background-size: 24px, auto;
  }
}

/* Session sequence */
.cs-sequence {
  padding: 24px 0 40px;
}

.cs-sequence h2 {
  margin: 0 0 10px;
  text-wrap: balance;
  color: var(--cs-ink);
  font-size: 32px;
  font-weight: 600;
}

.cs-sequence__lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--cs-body);
  font-size: 18px;
  line-height: 1.6;
}

.cs-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.cs-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px 22px 24px;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  background: #ffffff;
}

.cs-step:nth-child(2),
.cs-step:nth-child(3) {
  background: var(--cs-soft);
}

.cs-step__num {
  color: var(--cs-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cs-step__focus {
  color: var(--cs-ink);
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
}

/* Criteria tags */

@media (max-width: 1024px) {
  .cs-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cs-sequence h2 {
    font-size: 26px;
  }

  .cs-sequence__lead {
    font-size: 16px;
  }

  .cs-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cs-step {
    padding: 16px 18px;
  }

  .cs-step__focus {
    font-size: 19px;
  }
}

/* ===== v2: hero with visual, product cards, pull quotes, timeline, related ===== */

.cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}

.cs-hero__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
  margin: 0 0 22px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.cs-hero .cs-hero__grid h1 {
  font-size: 42px;
  line-height: 1.18;
}

.cs-hero__visual {
  display: grid;
  gap: 16px;
}

/* Product-style cards (rebuilt in HTML from the cited sources) */
.cs-ui {
  padding: 22px 24px;
  border: 1px solid var(--cs-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(28, 79, 68, 0.12);
}

.cs-ui__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--cs-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-ui__tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--cs-soft);
  color: var(--cs-green);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.cs-client {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.cs-client__avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--edu-primary-soft, #dcebe6);
  color: var(--cs-green-dark);
  font-weight: 700;
  font-size: 16px;
}

.cs-client__name {
  margin: 0;
  color: var(--cs-ink);
  font-size: 17px;
  font-weight: 700;
}

.cs-client__meta {
  margin: 4px 0 0;
  color: var(--cs-body);
  font-size: 14px;
  line-height: 1.5;
}

.cs-scores {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  color: var(--cs-ink);
  font-size: 14px;
  font-weight: 500;
}

.cs-meter {
  display: inline-grid;
  grid-template-columns: repeat(5, 14px);
  gap: 4px;
}

.cs-meter i {
  height: 8px;
  border-radius: 4px;
  background: #e3ebe7;
}

.cs-meter i.on {
  background: var(--cs-green);
}

.cs-score__val {
  min-width: 28px;
  color: var(--cs-body);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cs-course {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-course li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--cs-ink);
  font-size: 14px;
  line-height: 1.35;
}

.cs-course li:first-child {
  background: var(--cs-soft);
}

.cs-course__n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--cs-line);
  color: var(--cs-green);
  font-size: 12px;
  font-weight: 700;
}

.cs-course small {
  display: block;
  color: var(--cs-body);
  font-size: 12.5px;
}

.cs-ui__foot {
  margin: 12px 0 0;
  color: var(--cs-body);
  font-size: 12px;
  line-height: 1.5;
}

/* Hero video card */
.cs-hero__visual .cs-video__link {
  max-width: none;
}

.cs-video__caption {
  margin: 10px 2px 0;
  color: var(--cs-body);
  font-size: 13px;
}

/* Pull quote inside the story */
.cs-pull {
  margin: 4px 0 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--cs-orange);
}

.cs-pull p {
  margin: 0;
  color: var(--cs-ink);
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
}

.cs-pull figcaption {
  margin-top: 10px;
  color: var(--cs-body);
  font-size: 14px;
}

/* Phase / step cards with a question */
.cs-steps--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-steps--3 .cs-step:nth-child(n) {
  background: #ffffff;
}

.cs-step__q {
  margin-top: 6px;
  color: var(--cs-body);
  font-size: 15px;
  line-height: 1.5;
}

/* Semester timeline */
.cs-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 0 0 22px;
}

.cs-timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: -6px;
  left: 116px;
  width: 2px;
  background: var(--cs-line);
}

.cs-timeline li:last-child::before {
  display: none;
}

.cs-timeline__when {
  color: var(--cs-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.6;
}

.cs-timeline__what {
  position: relative;
  padding-left: 22px;
  color: var(--cs-body);
  font-size: 16px;
  line-height: 1.55;
}

.cs-timeline__what::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--cs-green);
  background: #ffffff;
}

.cs-timeline__what strong {
  display: block;
  color: var(--cs-ink);
  font-size: 17px;
}

/* Related case studies + hub cards */
.cs-related {
  padding: 56px 0 64px;
}

.cs-related h2 {
  margin: 0 0 20px;
  color: var(--cs-ink);
  font-size: 26px;
  font-weight: 600;
}

.cs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cs-cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--cs-line);
  border-radius: 18px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-card:hover,
.cs-card:focus-visible {
  border-color: var(--cs-green);
  box-shadow: 0 16px 40px rgba(28, 79, 68, 0.1);
}

.cs-card:focus-visible {
  outline: 2px solid var(--cs-green);
  outline-offset: 2px;
}

.cs-card img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

.cs-card__tag {
  color: var(--cs-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cs-card__title {
  color: var(--cs-ink);
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.cs-card__text {
  color: var(--cs-body);
  font-size: 15px;
  line-height: 1.55;
}

.cs-card__more {
  margin-top: 4px;
  color: var(--cs-green);
  font-size: 14px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .cs-card {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .cs-hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cs-hero__visual {
    max-width: 560px;
  }

  .cs-steps--3,
  .cs-cards--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cs-hero .cs-hero__grid h1 {
    font-size: 32px;
  }

  .cs-hero__logo {
    height: 36px;
    margin-bottom: 18px;
  }

  .cs-ui {
    padding: 18px;
  }

  .cs-pull p {
    font-size: 18px;
  }

  .cs-cards {
    grid-template-columns: 1fr;
  }

  .cs-timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 22px;
  }

  .cs-timeline li::before {
    left: 5px;
    top: 10px;
  }

  .cs-timeline__what {
    padding-left: 0;
  }

  .cs-timeline__what::before {
    top: -18px;
    left: -23px;
  }
}

/* Hub page */
.cs-hero--hub {
  padding-bottom: 48px;
}

.cs-hub {
  padding: 16px 0 72px;
}

.cs-hub .cs-card {
  box-shadow: 0 14px 40px rgba(28, 79, 68, 0.08);
}

.cs-hub .cs-card img {
  height: 44px;
  margin-bottom: 6px;
}

/* The USC logo file has wide internal padding; scale it up to match the others. */
.cs-hero__logo.cs-logo--usc {
  height: 64px;
  margin-left: -6px;
  margin-bottom: 14px;
}

.cs-card img.cs-logo--usc {
  /* Scale visually without changing the card's layout height. */
  transform: scale(1.45);
  transform-origin: left center;
  margin-left: -4px;
}

/* v3: byline, in-column qualifier */
.cs-byline {
  margin: 16px 0 0;
  color: var(--cs-body);
  font-size: 14px;
}

.cs-byline a {
  color: var(--cs-green);
}

.cs-glance__col .cs-glance__qual {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(68, 117, 105, 0.25);
  color: var(--cs-body);
  font-size: 13.5px;
  line-height: 1.5;
}

.cs-glance__col .cs-glance__qual a {
  color: var(--cs-green);
  font-weight: 600;
}

/* Mid-page CTA */
.cs-midcta {
  padding: 8px 0 0;
}

.cs-midcta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border: 1px solid var(--edu-primary-line, #a0cdc0);
  border-radius: 18px;
  background: var(--cs-soft);
}

.cs-midcta__box p {
  margin: 0;
  color: var(--cs-body);
  font-size: 17px;
  line-height: 1.5;
}

.cs-midcta__box strong {
  color: var(--cs-ink);
}

.cs-midcta__box .edu-btn {
  flex: none;
  min-height: 48px;
}

@media (max-width: 720px) {
  /* Keep the summary card closer to the top on phones. */
  .cs-hero__visual .cs-ui + .cs-ui {
    display: none;
  }

  .cs-hero__visual .cs-video__caption {
    display: none;
  }

  .cs-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .cs-facts dd {
    font-size: 14px;
  }

  .cs-midcta__box {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
}

/* Hub comparison table */
.cs-compare {
  padding: 8px 0 72px;
}

.cs-compare h2 {
  margin: 0 0 20px;
  color: var(--cs-ink);
  font-size: 26px;
  font-weight: 600;
}

.cs-table-wrap {
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  background: #ffffff;
}

.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.cs-table th,
.cs-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--cs-line);
  color: var(--cs-body);
  text-align: left;
  vertical-align: top;
}

.cs-table thead th {
  background: var(--cs-soft);
  color: var(--cs-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-table tbody tr:last-child th,
.cs-table tbody tr:last-child td {
  border-bottom: 0;
}

.cs-table tbody th {
  width: 22%;
  font-weight: 600;
}

.cs-table tbody th a {
  color: var(--cs-green-dark);
}

@media (max-width: 900px) {
  .cs-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .cs-table,
  .cs-table tbody,
  .cs-table tr,
  .cs-table th,
  .cs-table td {
    display: block;
    width: auto;
  }

  .cs-table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--cs-line);
  }

  .cs-table tbody tr:last-child {
    border-bottom: 0;
  }

  .cs-table th,
  .cs-table td {
    padding: 6px 18px;
    border-bottom: 0;
  }

  .cs-table tbody th {
    width: auto;
    padding-top: 12px;
    font-size: 16px;
  }

  .cs-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--cs-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

/* ===== v5: links on dark panels, long titles, section components, tighter ending ===== */

.cs-quote__panel figcaption a,
.cs-pull figcaption a,
.cs-panel figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cs-hero .cs-hero__grid h1.cs-h1--long {
  font-size: 36px;
}

/* Full-width section with its own heading */
.cs-section {
  padding: 56px 0 0;
}

.cs-section--last {
  padding-bottom: 64px;
}

.cs-section h2.cs-section__title {
  margin: 0 0 12px;
  color: var(--cs-ink);
  font-size: 30px;
  font-weight: 600;
  text-wrap: balance;
}

.cs-section__lead {
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--cs-body);
  font-size: 18px;
  line-height: 1.6;
}

.cs-section__note {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--cs-body);
  font-size: 16px;
  line-height: 1.6;
}

/* Two panels side by side */
.cs-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.cs-duo > .cs-limits {
  margin: 0;
}

.cs-panel {
  margin: 0;
  padding: 26px 28px;
  border: 1px solid var(--cs-line);
  border-radius: 18px;
  background: #ffffff;
}

.cs-panel .cs-panel__tag {
  margin: 0 0 6px;
  color: var(--cs-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cs-panel h3,
.cs-panel h2.cs-panel__h {
  margin: 0 0 10px;
  color: var(--cs-ink);
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.cs-panel p {
  margin: 0;
  color: var(--cs-body);
  font-size: 16.5px;
  line-height: 1.6;
}

.cs-panel p + p {
  margin-top: 12px;
}

.cs-panel__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--cs-body);
  font-size: 16.5px;
  line-height: 1.55;
}

.cs-panel .cs-pull {
  margin: 18px 0 0;
}

.cs-panel .cs-pull p {
  font-size: 18px;
}

/* Quote cards */
.cs-panel--quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 4px solid var(--cs-orange);
  background: var(--cs-soft);
}

.cs-panel--quote blockquote {
  margin: 0;
}

.cs-panel--quote blockquote p {
  color: var(--cs-ink);
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.cs-panel--quote figcaption {
  margin-top: 16px;
  color: var(--cs-body);
  font-size: 14px;
}

/* Non-link cards reuse the card look without hover */
.cs-card--static:hover {
  border-color: var(--cs-line);
  box-shadow: none;
}

/* Tighter ending on case study pages */
.cs-page .cs-sources {
  padding-top: 48px;
}

.cs-page .cs-related {
  padding: 40px 0 56px;
}

.cs-page .edu-cta {
  padding: 56px 0 64px;
}

.cs-page .edu-cta__box {
  min-height: 0;
  padding: 24px 24px 8px;
}

.cs-page .edu-cta h2 {
  font-size: 38px;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .cs-duo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cs-hero .cs-hero__grid h1.cs-h1--long {
    font-size: 28px;
  }

  .cs-section {
    padding-top: 40px;
  }

  .cs-section h2.cs-section__title {
    font-size: 24px;
  }

  .cs-section__lead {
    font-size: 16px;
  }

  .cs-panel {
    padding: 20px;
  }

  .cs-panel--quote blockquote p {
    font-size: 18px;
  }

  .cs-page .edu-cta h2 {
    font-size: 28px;
  }
}
