/* Restore the existing source layout after HTML -> Gutenberg conversion.
 * Source: preview/styles.css:4,7 and case.css, case-facts.css, casebook.css.
 * Imported case content only; no cropping, overflow hiding or content changes.
 */

.sw-fidelity .sf-restored-content > div#main.case-page{box-sizing:border-box;width:100%;max-width:1260px;margin-inline:auto;padding:0 40px}

@media(max-width:640px){.sw-fidelity .sf-restored-content > div#main.case-page{padding-inline:20px}}

/* case.css: .case-page .case-tab svg */
.sw-fidelity .sf-restored-content .case-page .case-tab .source-vector{display:block;width:19px;height:19px;flex-shrink:0}

/* case.css: .case-page .case-source svg */
.sw-fidelity .sf-restored-content .case-page .case-source .source-vector{display:block;width:18px}

/* case.css: .case-page .refonte-benefits svg */
.sw-fidelity .sf-restored-content .case-page .refonte-benefits .source-vector{display:block;width:22px;height:22px;color:var(--cobalt);background:var(--lime);border-radius:5px;padding:3px;flex-shrink:0}

/* case.css: .case-page .refonte-actions .case-tab svg */
@media(max-width:600px){.sw-fidelity .sf-restored-content .case-page .refonte-actions .case-tab .source-vector{display:block;width:15px}}

/* case-facts.css: .case-page .case-fact-symbol svg */
.sw-fidelity .sf-restored-content .case-page .case-fact-symbol .source-vector{display:block;width:22px;height:22px}

/* case-facts.css: .case-page .case-results-source svg */
.sw-fidelity .sf-restored-content .case-page .case-results-source .source-vector{display:block;width:17px;flex-shrink:0}

/* case-facts.css: .case-page .case-service-sign svg */
.sw-fidelity .sf-restored-content .case-page .case-service-sign .source-vector{display:block;width:28px;height:28px}

/* case-facts.css: .case-page .case-service-tags svg */
.sw-fidelity .sf-restored-content .case-page .case-service-tags .source-vector{display:block;width:13px;height:13px;flex-shrink:0}

/* case-facts.css: .case-page .case-challenge-icon svg */
.sw-fidelity .sf-restored-content .case-page .case-challenge-icon .source-vector{display:block;width:24px;height:24px}

/* case-facts.css: .case-page .case-service-sign svg */
@media(max-width:760px){.sw-fidelity .sf-restored-content .case-page .case-service-sign .source-vector{display:block;width:23px;height:23px}}

/* casebook.css: .casebook-page .cb-page-link svg */
.sw-fidelity .sf-restored-content .casebook-page .cb-page-link .source-vector{display:block;width:18px;flex:none}

/* casebook.css: .casebook-page .cb-index-wall svg */
.sw-fidelity .sf-restored-content .casebook-page .cb-index-wall .source-vector{display:block;width:17px;flex:none}

/* casebook.css: .casebook-page .cb-search-label svg */
.sw-fidelity .sf-restored-content .casebook-page .cb-search-label .source-vector{display:block;width:20px}

/* casebook.css: .casebook-page .cb-card-open svg */
.sw-fidelity .sf-restored-content .casebook-page .cb-card-open .source-vector{display:block;width:15px}

/* casebook.css: .casebook-page .cb-card-type svg */
.sw-fidelity .sf-restored-content .casebook-page .cb-card-type .source-vector{display:block;width:17px}

/* casebook.css: .case-related .case-related-link svg */
.sw-fidelity .sf-restored-content .case-related .case-related-link .source-vector{display:block;width:18px;flex:none}

/* casebook.css: .casebook-page .cb-mobile-card-icon svg */
.sw-fidelity .sf-restored-content .casebook-page .cb-mobile-card-icon .source-vector{display:block;width:25px;height:25px}

/* casebook.css: .casebook-page .cb-mobile-card>span:last-child svg */
.sw-fidelity .sf-restored-content .casebook-page .cb-mobile-card>span:last-child .source-vector{display:block;width:18px;color:var(--pink)}

/* casebook.css: .casebook-page .cb-mobile-disclosure>summary svg */
.sw-fidelity .sf-restored-content .casebook-page .cb-mobile-disclosure>summary .source-vector{display:block;width:22px;height:22px;flex:none;color:var(--pink)}

/* Original span labels become WP paragraphs. */
.sw-fidelity .sf-restored-content .case-page .case-tab>.wp-block-paragraph{margin:0}

/* C5 services: native captions on cobalt, hero CTA wrappers and thumbnail labels.
 * Page IDs only. No source HTML, text, media, route or other component changes.
 */
body:is(.page-id-77,.page-id-127) #main.service-page .service-feature > figcaption,
body:is(.page-id-77,.page-id-127) #main.service-page .service-feature > figcaption a {
  color: var(--white);
  font-style: normal;
}
body:is(.page-id-77,.page-id-127) #main.service-page .service-feature > figcaption a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

/* The noninteractive P repeats the anchor's .button box after native conversion.
 * Only its box disappears. The real anchor keeps its position, focus and badge.
 */
body:is(.page-id-131,.page-id-132,.page-id-134) #main .hero-affiche .hero-copy > p.button.has-badge:has(> a.button.has-badge) {
  display: contents;
}
body:is(.page-id-131,.page-id-132,.page-id-134) #main .hero-affiche .hero-copy > p.button.has-badge > a.button.has-badge {
  --btn-tx: var(--cobalt);
  color: var(--cobalt);
}
body:is(.page-id-131,.page-id-132,.page-id-134) #main .hero-affiche .hero-copy > p.button.has-badge > a.button.has-badge .cta-label > span {
  color: var(--cobalt);
}
body:is(.page-id-131,.page-id-132,.page-id-134) #main .hero-affiche .hero-copy > p.button.has-badge > a.button.has-badge .cta-badge,
body:is(.page-id-131,.page-id-132,.page-id-134) #main .hero-affiche .hero-copy > p.button.has-badge > a.button.has-badge .cta-badge > span {
  color: var(--cobalt) !important;
}

/* Native P labels bridge the existing SPAN rules in the shared trade CSS.
 * No clipping, label shortening, new surface or color is introduced.
 */
body:is(.page-id-131,.page-id-132) #main.trade-v2-page .hero-affiche.hero .stage-choice > p {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 4px 0 0;
  font-size: 9px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
