/* Optional components for the common homepage. Typography/buttons inherit the main theme. */
.cm-shared-homepage .cm-home-logos,
.cm-shared-homepage .cm-home-benefits,
.cm-shared-homepage .cm-home-faq { padding: 72px 24px; }
.cm-shared-homepage .cm-home-logos > .row,
.cm-shared-homepage .cm-home-benefits > .row,
.cm-shared-homepage .cm-home-faq > .row { width: 1320px; max-width: 100%; margin-inline: auto; }
.cm-home-logo-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: center; gap: 32px; }
.cm-home-logo-grid img { width: auto; max-width: 100%; max-height: 56px; margin-inline: auto; object-fit: contain; }
.cm-home-logos h2 { text-align: center; margin-bottom: 32px; }
.cm-home-benefit-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; }
.cm-home-benefit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; }
.cm-home-benefit img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 20px; }
.cm-home-benefits h2,.cm-home-faq h2,.cm-home-reviews-intro h2 { font-family: TTTalent-Medium; }
.cm-home-reviews-intro { max-width: 920px; margin: 0 0 48px; }
.cm-shared-homepage .cm-home-section-label { font-size: 18px; line-height: 1.4; padding-bottom: 16px; }
.cm-home-faq { background: #faf7f5; }
.cm-home-faq-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: start; gap: 64px; }
.cm-home-faq figure { margin: 0; }
.cm-home-faq figure img { width: 100%; height: auto; }
.cm-home-faq-item { border-bottom: 1px solid #d9deeb; }
.cm-home-faq-item summary { cursor: pointer; padding: 24px 32px 24px 0; font-size: 24px; line-height: 1.25; color: #1d264a; }
.cm-home-faq-item summary:focus-visible { outline: 2px solid #3c5f88; outline-offset: 4px; }
.cm-home-faq-answer { padding: 0 0 24px; }
.cm-home-faq-bottom { padding-top: 32px; }
/* Keep inherited legacy page-ID rules out of this shared layout. */
.cm-shared-homepage .landing-top-block .landing-top-block-text,
.cm-shared-homepage .landing-top-block .top-block-image,
.cm-shared-homepage .lr-data-block .block-text,
.cm-shared-homepage .lr-data-block .block-image { min-width: 0; }
.cm-shared-homepage .landing-top-block .top-block-text { padding: 0; width: 100%; }
.cm-shared-homepage .landing-top-block .top-block-image img { height: auto; }
@media(max-width: 1023px) {
 .cm-home-benefit-layout,.cm-home-faq-layout { grid-template-columns: 1fr; gap: 40px; }
 .cm-home-faq figure { max-width: 560px; }
}
@media(max-width: 767px) {
 .cm-shared-homepage .cm-home-logos,.cm-shared-homepage .cm-home-benefits,.cm-shared-homepage .cm-home-faq { padding: 48px 24px; }
 .cm-home-logo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
 .cm-home-benefit-grid { grid-template-columns: 1fr; }
 .cm-home-faq-item summary { font-size: 20px; }
}
/* Existing local CTAs keep their text/link, with the shared light button treatment on dark sections. */
.cm-shared-homepage .main-block .button.blue,
.cm-shared-homepage .lr-data-block .wider-lr:nth-child(odd) .button.blue,
.cm-shared-homepage .charcoal-blue .button.blue { background: #c6e8e6; color: #1d264a; }
.cm-shared-homepage .main-block .button.blue:hover,
.cm-shared-homepage .lr-data-block .wider-lr:nth-child(odd) .button.blue:hover,
.cm-shared-homepage .charcoal-blue .button.blue:hover { background: #daf0ef; color: #1d264a; }
.cm-home-faq-item summary { position: relative; list-style: none; }
.cm-home-faq-item summary::-webkit-details-marker { display: none; }
.cm-home-faq-item summary::after { content: '+'; position: absolute; right: 0; top: 24px; }
.cm-home-faq-item[open] summary::after { content: '−'; }

/* Use the existing medium font's compressed version on migrated homepages. */
@font-face { font-family: TTTalent-Medium; font-weight: 400; font-style: normal; font-display: swap; src: url('../../font/TT_Talent_Medium.woff') format('woff'); }
/* Match the US homepage's square media frame while keeping local artwork intact. */
.cm-shared-homepage .landing-top-block .top-block-image .cm-home-hero-image { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }

/* Reusable optional blocks: local copy/images are supplied through the same ACF schema. */
.cm-shared-homepage .cm-home-participant,
.cm-shared-homepage .cm-home-challenges { padding: 72px 24px; }
.cm-shared-homepage .cm-home-participant > .row,
.cm-shared-homepage .cm-home-challenges > .row { width: 1320px; max-width: 100%; margin-inline: auto; }
.cm-home-participant { background: #e8f5fd; }
.cm-home-participant-layout { display: flex; align-items: center; gap: 64px; }
.cm-home-participant figure { flex: 0 0 180px; margin: 0; }
.cm-home-participant figure img { width: 100%; height: auto; }
.cm-home-participant-layout > div { min-width: 0; }
.cm-home-participant h2,.cm-home-challenges h2 { font-family: TTTalent-Medium; }
.cm-home-challenges > .row > h2 { margin-bottom: 48px; max-width: 1000px; }
.cm-home-challenge-layout { display: grid; grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.cm-home-challenge-layout--text-only { grid-template-columns: 1fr; }
.cm-home-challenge-layout figure { margin: 0; }
.cm-home-challenge-layout figure img { width: 100%; max-width: 360px; height: auto; }
.cm-home-challenge-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; }
.cm-home-challenge h3 { font-family: TTTalent-Medium; }
.cm-home-challenge { min-width: 0; overflow-wrap: break-word; }
/* A visible semantic H1 can use the same homepage heading treatment as the existing H2. */
.cm-shared-homepage .landing-top-block .top-block-text h1.cm-home-heading { display: block; overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 6 3 3; }
@media(max-width: 1023px) {
 .cm-home-challenge-layout { grid-template-columns: 1fr; gap: 40px; }
 .cm-home-challenge-layout figure { max-width: 260px; }
}
@media(max-width: 767px) {
 .cm-shared-homepage .cm-home-participant,.cm-shared-homepage .cm-home-challenges { padding: 48px 24px; }
 .cm-home-participant-layout { flex-direction: column; align-items: flex-start; gap: 32px; }
 .cm-home-participant figure { flex-basis: auto; width: 140px; }
 .cm-home-challenge-grid { grid-template-columns: 1fr; gap: 32px; }
}
