/* company area — owned by the company agent (29 Nov). Loaded after polish.css on every page.
   Pages: /company/about/, /company/leadership/, /company/partners/, /company/careers/, /contact-us/, /contact-us/thank-you/.
   Scoped with :has() on ids/classes that only exist on those pages. Copy untouched; layout and spacing only. */

/* C1. Step sections (Partners "How to join", Careers "How we hire"): the button sat alone under the steps with an
   empty column beside it. Now: heading + button on the left, the 1 → 4 flow on the right, both top-aligned. */
@media (min-width: 62.01rem) {
  main:is(:has(#how-to-join), :has(#how-we-hire)) :is(#how-to-join, #how-we-hire) > .wrap {
    display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr;
    column-gap: var(--gap); align-items: start;
  }
  main:is(:has(#how-to-join), :has(#how-we-hire)) :is(#how-to-join, #how-we-hire) > .wrap > .d-top { display: contents !important; }
  main:is(:has(#how-to-join), :has(#how-we-hire)) :is(#how-to-join, #how-we-hire) .d-top__h { grid-column: 1; grid-row: 1; }
  main:is(:has(#how-to-join), :has(#how-we-hire)) :is(#how-to-join, #how-we-hire) .d-top__side { grid-column: 2; grid-row: 1 / span 2; margin: 0 !important; }
  main:is(:has(#how-to-join), :has(#how-we-hire)) :is(#how-to-join, #how-we-hire) > .wrap > .d-flow.d-flow {
    grid-column: 1; grid-row: 2; margin: 2rem 0 0 !important; padding: 0 !important;
  }
}
main:is(:has(#how-to-join), :has(#how-we-hire)) :is(#how-to-join, #how-we-hire) .d-flow .d-actions { justify-content: flex-start !important; padding: 0 !important; margin: 0 !important; }
main:is(:has(#how-to-join), :has(#how-we-hire)) :is(#how-to-join, #how-we-hire) .d-top__side > :is(.d-plist--check, .d-chiplist) > li { font-size: 1.0625rem !important; line-height: 1.5 !important; }
main:is(:has(#how-to-join), :has(#how-we-hire)) :is(#how-to-join, #how-we-hire) .d-top__side > :is(.d-plist--check, .d-chiplist) > li > span { font: inherit !important; color: inherit !important; }
@media (max-width: 62rem) {
  main:is(:has(#how-to-join), :has(#how-we-hire)) :is(#how-to-join, #how-we-hire) > .wrap > .d-flow.d-flow { margin-top: 2rem !important; }
}

/* C2. Related reading with a single link (Partners, Careers, Leadership): one full-width ruled row instead of a
   lone third-width cell with empty space beside it. Three links (About) keep three columns. */
main:is(:has(.co-hero), :has(.ct__grid)) .rl-list:has(> li:only-child) { grid-template-columns: minmax(0, 1fr) !important; }
main:is(:has(.co-hero), :has(.ct__grid)) .rl-list:has(> li:only-child) .rl-a { font-size: 1.1875rem; min-height: 5rem; }

/* C3. Careers — "What you'll work on": a statement, not a quotation. No big quote mark; same treatment as About
   "Who we are" (small indigo eyebrow, medium-weight statement), aligned to the page edge like every other section. */
main:has(#how-we-hire) #what-you-ll-work-on .co-quote { display: block !important; padding: 0 !important; }
main:has(#how-we-hire) #what-you-ll-work-on .co-quote__mark { display: none !important; }
main:has(#how-we-hire) #what-you-ll-work-on .co-quote__k {
  font-size: 0.8125rem !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo) !important; margin: 0 0 1.25rem !important;
}
main:has(#how-we-hire) #what-you-ll-work-on .co-quote__body p {
  font-size: clamp(1.375rem, 1rem + 1.1vw, 1.875rem) !important; line-height: 1.45 !important; font-weight: 500 !important;
  color: var(--graphite) !important; letter-spacing: -0.01em; max-width: 50ch; margin: 0 !important;
}

/* C4. Careers — open roles: clearer row hierarchy; the mail icon becomes the site's icon tile (lavender, fills indigo). */
main:has(#how-we-hire) .ca-list a { align-items: center !important; padding: 1.25rem 0 !important; row-gap: 0.25rem !important; }
main:has(#how-we-hire) .ca-list .ca-list__t { font-size: 1.125rem !important; font-weight: 600 !important; line-height: 1.4 !important; color: var(--graphite) !important; }
main:has(#how-we-hire) .ca-list .ca-list__w { font-size: 0.9375rem !important; color: var(--ink-2) !important; }
main:has(#how-we-hire) .ca-list a > svg {
  width: 2.5rem !important; height: 2.5rem !important; padding: 0.6rem !important; border-radius: 0.75rem !important;
  background: var(--indigo-10) !important; border: 1px solid var(--indigo-20); color: var(--indigo) !important;
  transition: background-color .2s linear, color .2s linear, border-color .2s linear;
}
main:has(#how-we-hire) .ca-list a:is(:hover, :focus-visible) > svg { background: var(--indigo) !important; border-color: var(--indigo); color: #fff !important; }
main:has(#how-we-hire) .ca-list a:is(:hover, :focus-visible) .ca-list__t { color: var(--indigo) !important; }
main:has(#how-we-hire) .ca-any { margin: 2rem 0 0 !important; }
/* the photo ends level with the "Send your resume" button */
@media (min-width: 62.01rem) {
  main:has(#how-we-hire) .ca-roles { align-items: stretch !important; }
  main:has(#how-we-hire) .ca-roles > .photo { height: auto !important; min-height: 0 !important; margin: 0 !important; align-self: stretch !important; }
  main:has(#how-we-hire) .ca-roles > .photo img { height: 100% !important; object-fit: cover; }
}

/* C5. Leadership — Contact us / Read about Alepo / LinkedIn sat squeezed under the dark section.
   company.js moves that row into the dark section, under the portraits, behind a hairline. */
.ld-first .ld-actions {
  justify-content: center !important; gap: 1rem 2rem !important; margin: clamp(3rem, 2rem + 2vw, 4rem) 0 0 !important;
  padding-top: clamp(2rem, 1.5rem + 1vw, 2.75rem) !important; border-top: 1px solid rgb(255 255 255 / 0.14);
  --accent: #fff; --accent-fg: var(--indigo); --btn-hover: var(--mist);
  --link: #fff; --link-fg: var(--indigo); --fg: #fff; --badge: var(--turquoise); --badge-fg: var(--indigo);
}
.ld-first .ld-actions .btn:hover { --btn-bg: var(--mist); --btn-fg: var(--indigo); }
.ld-first .ld-actions .arrow-link { color: #fff !important; }
.ld-first .ld-actions .arrow-link:is(:hover, :focus-visible) .ico { background: #fff !important; color: var(--indigo) !important; }
.ld-first .ld-actions :focus-visible { outline: 2px solid var(--turquoise) !important; outline-offset: 3px; }
main:has(.ld-first) #part-2:not(:has(a)) { display: none !important; }
main:has(.ld-first) .ld-first + * + .rl-sec, main:has(.ld-first) .ld-first ~ .rl-sec { padding-top: var(--ss) !important; }

/* C6. About — "How we work": the three principles share the "What we do" icon tile (48px, lavender, 1px border)
   and sit on a white full-width band, so the two neighbouring sections read as different forms. */
main:has(#who-we-are) #how-we-work { background: #fff !important; }
main:has(#who-we-are) #how-we-work .co-principle .co-principle__ico {
  display: grid !important; place-items: center; width: 3rem !important; height: 3rem !important; border-radius: 0.875rem !important;
  background: var(--indigo-10) !important; border: 1px solid var(--indigo-20) !important; color: var(--indigo) !important; margin-bottom: 1.25rem !important;
}
main:has(#who-we-are) #how-we-work .co-principle .co-principle__ico svg { width: 1.375rem !important; height: 1.375rem !important; }
main:has(#who-we-are) #how-we-work .co-principle { border-top-width: 1px !important; border-top-color: var(--rule) !important; padding-top: 2rem !important; }
main:has(#who-we-are) #how-we-work .co-principle p { max-width: 40ch; }

/* C7. Contact — hero panel and form end level: the photo fills whatever height the form needs, so the white
   form panel no longer has an empty strip under the privacy note. */
@media (min-width: 62.01rem) {
  main:has(.ct__grid) .ct__hero { display: flex !important; flex-direction: column; align-self: stretch !important; }
  main:has(.ct__grid) .ct__form { align-self: stretch !important; }
  main:has(.ct__grid) .ct__hero .ct__photo { flex: 1 1 0 !important; min-height: 13rem; height: auto !important; aspect-ratio: auto !important; }
  main:has(.ct__grid) .ct__hero .ct__photo :is(picture, img) { display: block; width: 100%; height: 100% !important; object-fit: cover; }
}
/* Other ways to reach us: icon tiles (site style) instead of round badges, one even row rhythm. */
main:has(.ct__grid) .ct__ways { display: grid !important; gap: 1.25rem !important; margin-top: 1.25rem !important; }
main:has(.ct__grid) .ct__ways > li { display: grid !important; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 1rem; align-items: center; margin: 0 !important; }
main:has(.ct__grid) .ct__way-ico {
  display: grid !important; place-items: center; width: 2.75rem !important; height: 2.75rem !important; border-radius: 0.75rem !important;
  background: var(--indigo-10) !important; border: 1px solid var(--indigo-20); color: var(--indigo) !important;
}
main:has(.ct__grid) .ct__way-ico svg { width: 1.25rem !important; height: 1.25rem !important; }
main:has(.ct__grid) .ct__ways strong { display: block; color: var(--indigo); font-weight: 600; }
main:has(.ct__grid) .ct__tile h2 { margin: 0 !important; }
main:has(.ct__grid) .ct__tile--sup > p { margin: 0.75rem 0 0 !important; }
main:has(.ct__grid) .ct__phones { margin-top: 1.25rem !important; }

/* C8. Thank-you — hero breathes like the other page heroes (it sat flush under the breadcrumb, H1 in black);
   "While you wait" links become the same ruled rows as Related reading. */
main:has(#while-you-wait) .rs-hero .rs-hero__copy { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.75rem) !important; }
main:has(#while-you-wait) .rs-hero h1 { color: var(--indigo) !important; }
main:has(#while-you-wait) .rs-hero .rs-standfirst { color: var(--ink-2) !important; max-width: 46ch; }
main:has(#while-you-wait) #while-you-wait .d-actions {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap) !important;
  border-top: 1px solid var(--rule); margin: 0 !important; padding: 0 !important;
}
main:has(#while-you-wait) #while-you-wait .d-actions > .arrow-link {
  display: flex !important; width: auto !important; justify-content: space-between; gap: 1rem; min-height: 4.5rem;
  padding: 1.25rem 0 !important; border-bottom: 1px solid var(--rule); color: var(--graphite) !important;
  font-size: 1.0625rem; background-image: none !important;
}
main:has(#while-you-wait) #while-you-wait .d-actions > .arrow-link .ico {
  width: 2.25rem; height: 2.25rem; padding: 0.55rem; background: var(--indigo-10) !important; color: var(--indigo) !important;
}
main:has(#while-you-wait) #while-you-wait .d-actions > .arrow-link:is(:hover, :focus-visible) { color: var(--indigo) !important; }
main:has(#while-you-wait) #while-you-wait .d-actions > .arrow-link:is(:hover, :focus-visible) .ico { background: var(--turquoise) !important; }
@media (max-width: 36rem) { main:has(#while-you-wait) #while-you-wait .d-actions { grid-template-columns: minmax(0, 1fr); } }
