/* Desktop inner-page refinement. Load after legacy compatibility styles.
   Font faces MC Editorial / MC Condensed are supplied by the shared system.
   Deliberately leaves mobile, homepage, content and portrait focal points intact. */
@media (min-width: 1024px) {
  body.protected-redesign:not(.page-home) main {
    font-family: "MC Editorial", "Segoe UI", Arial, sans-serif;
  }

  body.protected-redesign:not(.page-home) main :is(h1,h2,h3,h4) {
    font-family: "MC Condensed", "Arial Narrow", Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -.015em !important;
    text-wrap: balance;
  }
  body.protected-redesign:not(.page-home) main h1 {
    font-size: 48px !important;
    line-height: 1.08 !important;
  }
  body.protected-redesign:not(.page-home) main h2 {
    font-size: 34px !important;
    line-height: 1.16 !important;
  }
  body.protected-redesign:not(.page-home) main h3 {
    font-size: 24px !important;
    line-height: 1.22 !important;
    font-weight: 650 !important;
  }
  body.protected-redesign:not(.page-home) main h4 {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  body.protected-redesign main.about-page {max-width:1120px;width:calc(100% - 96px);margin-inline:auto}
  body.protected-redesign .team-planning-approach {padding:40px 0 0;margin-top:40px;border-top:1px solid #ffffff25;max-width:840px}
  body.protected-redesign .team-planning-approach h3 {margin:28px 0 12px}
  body.protected-redesign .team-planning-approach p {font-size:17px;line-height:1.65;margin:0 0 18px}
  /* A common left edge across service directories, detail pages and team. */
  body.protected-redesign:not(.page-home) main .wrap,
  body.protected-redesign:not(.page-home) main .migration-catalog-inner,
  body.protected-redesign.directory-238 main.service-preview {
    width: min(1120px, calc(100% - 96px)) !important;
    max-width: 1120px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box;
  }
  /* Nested wrappers must not subtract the outer gutters a second time. */
  body.protected-redesign:not(.page-home) main .wrap .wrap {
    width: 100% !important;
  }

  body.protected-redesign.directory-238 .service-preview {
    padding-block: 48px 64px;
  }
  body.protected-redesign.directory-238 .service-panel {
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: stretch;
    gap: 32px;
  }
  body.protected-redesign.directory-238 .service-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 28px;
    border-radius: 16px;
  }
  body.protected-redesign.directory-238 .service-copy h2 {
    margin: 12px 0 20px;
  }
  body.protected-redesign.directory-238 .service-image {
    align-self: center;
    width: 100%;
    height: auto !important;
    max-height: none;
    aspect-ratio: 3 / 2 !important;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: transparent !important;
    border-radius: 16px;
  }
  body.protected-redesign.directory-238 .service-image img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: inherit;
  }
  body.protected-redesign.directory-238 .format-section {
    margin-top: 48px;
  }
  body.protected-redesign main details.format-card.format-compact > summary {
    box-sizing: border-box;
    min-height: 116px;
    padding: 18px 22px;
    gap: 16px;
  }
  body.protected-redesign main details.format-card.format-compact .format-summary-copy {
    gap: 6px;
  }
  body.protected-redesign main details.format-card.format-compact .format-title,
  body.protected-redesign.directory-238 .ooh-card-title {
    font-family: "MC Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 24px;
    font-weight: 650;
    line-height: 1.22;
    letter-spacing: -.01em;
  }

  /* Category headings stay visibly above individual advertising formats. */
  body.protected-redesign.legacy-page main h3.migration-group-title,
  body.protected-redesign.directory-238 .sub-head h3 {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
  }
  body.protected-redesign.legacy-page main .migration-format summary h3 {
    font-size: 24px !important;
    font-weight: 650 !important;
    line-height: 1.22 !important;
    margin: 8px 22px 12px;
  }

  /* Keep the existing 4:5 frames and every approved object-position. */
  body.protected-redesign.legacy-page .team-section > .team-grid {
    gap: 32px 24px;
  }
  body.protected-redesign.legacy-page main .team-caption h2 {
    font-family: "MC Editorial", "Segoe UI", Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
    letter-spacing: -.01em !important;
  }
  body.protected-redesign.legacy-page .team-caption p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
  }
}
@media(min-width:1280px){
 body.protected-redesign.legacy-page .team-page .team-section>.team-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 24px}
}

.team-planning-details>summary{cursor:pointer;padding:12px 0;list-style:revert}
.team-planning-details>summary h2{display:inline;margin-left:8px}
.team-planning-details[open]>summary{margin-bottom:24px}
@media(min-width:1024px){body.protected-redesign main.about-page{padding-inline:0}}
