/* Local additions and the explicitly requested case-card revision. */
html[data-variant="b"] .delivery-section { order: 7; }
html[data-variant="b"] .faq-section { order: 8; }

.delivery-section .company-inner,
.faq-section .company-inner {
  width: 100%;
  padding: 0;
}

.case-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 18px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.case-detail-link:hover,
.faq-list a:hover { text-decoration: underline; }

.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  padding: 24px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}
.faq-list summary::marker { color: var(--accent); }
.faq-list p {
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.faq-list a { color: var(--accent-dark); }

.case-overview .section-heading { max-width: 880px; }
.case-overview .section-heading h1 + p { margin-top: 20px; }
.case-overview .case-source {
  width: 100%;
  margin-top: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}
.case-overview .case-meta { display: flex; margin-top: 24px; }
.case-overview .case-detail-link { margin: 0 0 24px; }
.case-notes .company-inner { width: 100%; padding: 0; }
.case-notes .company-principles article { grid-template-columns: 32px minmax(0, 1fr); }
.case-notes .company-principles p { grid-column: 2; }
.case-notes { padding-top: 0; }
html[data-variant="b"] .case-page .final-cta { order: 0; margin-top: 0; }

.case-detail-link:focus-visible,
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.cases--tidy { scroll-margin-top: 110px; }
html[data-variant="b"] .cases--tidy .case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
html[data-variant="b"] .cases--tidy .case-card,
html[data-variant="b"] .cases--tidy .case-card:first-child {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  min-height: 0;
}
.cases--tidy .case-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 136px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: #fffbfa;
}
html[data-variant="b"] .cases--tidy .case-brand img {
  height: auto;
  min-height: 0;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  transform: none;
  box-shadow: none;
}
.cases--tidy .case-logo-alibaba { width: 220px; }
.cases--tidy .case-logo-qoder { width: 147px; }
.cases--tidy .case-logo-viewport {
  position: relative;
  display: block;
  width: 192px;
  aspect-ratio: 328 / 88;
  overflow: hidden;
}
/* The source image stays unchanged; show only its existing client mark. */
html[data-variant="b"] .cases--tidy .case-logo-viewport img {
  position: absolute;
  top: -218.181818%;
  left: -53.658537%;
  width: 550.609756%;
  max-width: none;
}
html[data-variant="b"] .cases--tidy .case-card > .case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 26px;
}
.cases--tidy .case-card .case-category {
  margin: 0;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
}
html[data-variant="b"] .cases--tidy .case-card h3 {
  margin-top: 10px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}
.cases--tidy .case-card .case-summary {
  min-height: 44px;
  margin-top: 12px;
  font-size: 14px;
}
.cases--tidy .case-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
}
.cases--tidy .case-facts dt,
.cases--tidy .case-result > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}
.cases--tidy .case-facts dd {
  min-height: 42px;
  margin: 7px 0 0;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.6;
}
.cases--tidy .case-result {
  min-height: 116px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
html[data-variant="b"] .cases--tidy .case-result strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.cases--tidy .case-result p {
  margin-top: 7px;
  font-size: 13px;
}
.cases--tidy .case-detail-link {
  justify-content: space-between;
  margin-top: 20px;
}
.cases--tidy .case-evidence-note {
  max-width: 820px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 1000px) {
  html[data-variant="b"] .cases--tidy .case-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .cases--tidy { scroll-margin-top: 90px; }
  html[data-variant="b"] .cases--tidy .case-card > .case-body { padding: 24px; }
  html[data-variant="b"] .cases--tidy .case-result strong { font-size: 26px; }
}
