/* pages-people: page-specific styles. Only the owning page agent edits this file.
   Pages: /careers/, /careers/lead-design-renewable-energy-unit/, /contact/, /privacy/. All classes prefixed .pe- */

/* ---- Inner-page hero (light cyan, hairline base, angled shard echoing the mark) ---- */
.pe-hero { border-bottom: 1px solid var(--rule); isolation: isolate; }
.pe-hero::before {
  content: ""; position: absolute; z-index: -1; right: -8%; top: -30%; width: 44%; height: 160%;
  background: linear-gradient(160deg, rgba(169, 206, 244, .45), rgba(112, 202, 208, 0) 70%);
  clip-path: polygon(34% 0, 100% 0, 66% 100%, 0 100%);
  pointer-events: none;
}
.pe-hero .page-hero__title { max-width: 22ch; }
.pe-hero__labels { --cluster-gap: 12px 16px; margin-bottom: var(--s-4); }
.page-hero .pe-hero__labels .eyebrow { margin-bottom: 0; }
.pe-facts { margin-top: clamp(32px, 4vw, 56px); max-width: 1040px; }
@media (max-width: 640px) { .pe-hero::before { width: 70%; right: -30%; opacity: .7; } }

/* ---- Two-column section: heading left (sticky on desktop), content right ---- */
.pe-cols { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
.pe-cols__head .eyebrow { margin-bottom: var(--s-4); }
.pe-cols__head h2 { max-width: 14ch; }
@media (min-width: 1025px) {
  .pe-cols { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s-8); align-items: start; }
  .pe-cols__head { position: sticky; top: calc(var(--header-h-compact) + var(--stripe-h) + 32px); }
}
.pe-list > li { color: var(--ink-2); line-height: 1.6; }
.pe-list > li::before { transform: translateY(-5px); }
.pe-after-list { margin-top: var(--s-5); font-size: var(--fs-small); }

/* ---- Application steps: CSS-counter numerals (keeps the copy one continuous paragraph) ---- */
.pe-steps { list-style: none; margin: 0; padding: 0; counter-reset: pe-step; border-bottom: 1px solid var(--rule); }
.pe-steps > li {
  counter-increment: pe-step;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); align-items: baseline;
  padding-block: var(--s-5); border-top: 1px solid var(--rule);
  font-size: var(--fs-lead); line-height: 1.45; color: var(--ink);
}
.pe-steps > li::before {
  content: counter(pe-step, decimal-leading-zero);
  font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: var(--fw-light); line-height: 1;
  color: var(--aqua-ink); font-variant-numeric: tabular-nums;
}
@media (min-width: 1025px) { .pe-steps > li { grid-template-columns: 96px minmax(0, 1fr); } }
.pe-after-steps { margin-top: var(--s-6); justify-content: space-between; font-size: var(--fs-small); }

/* ---- Vacancy list (careers) ---- */
.pe-vac-head .section-head__actions { justify-self: stretch; }
.pe-vac-head .section-head__lead { font-size: var(--fs-body); }
.pe-vacancies { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.pe-vacancy {
  display: grid; gap: var(--s-3) var(--gap); grid-template-columns: minmax(0, 1fr);
  padding-block: var(--s-6); border-top: 1px solid var(--rule);
}
.pe-vacancy__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-vacancy__title {
  font-size: var(--fs-h3); font-weight: var(--fw-regular); line-height: 1.2;
  background: linear-gradient(var(--aqua), var(--aqua)) 0 100% / 0 1px no-repeat;
  padding-bottom: 6px; justify-self: start;
  transition: background-size var(--dur-slow) var(--ease-out), color .5s ease-in-out;
}
.pe-vacancy:hover .pe-vacancy__title, .pe-vacancy:focus-within .pe-vacancy__title { background-size: 100% 1px; color: var(--teal-deep); }
.pe-vacancy__facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-size: var(--fs-small); }
.pe-vacancy__facts div { display: flex; gap: 8px; align-items: baseline; }
.pe-vacancy__facts dt { font-family: var(--font-ui); font-size: var(--fs-eyebrow); font-weight: var(--fw-medium); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-3); }
.pe-vacancy__arrow { color: var(--aqua-ink); }
@media (min-width: 1025px) {
  .pe-vacancy { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 4fr) 32px; align-items: center; }
  .pe-vacancy__arrow { justify-self: end; }
}
.pe-ph-vacancies { margin-top: var(--s-6); }

/* ---- Closed-role band (vacancy VAC-04) ---- */
.pe-closed .eyebrow { margin-bottom: var(--s-4); }
.pe-closed__title { font-size: clamp(2rem, 3.8vw, 3.5rem); font-weight: var(--fw-light); line-height: 1.06; max-width: 16ch; }
.pe-closed__actions { margin-top: var(--s-6); --cluster-gap: var(--s-4) var(--s-6); }
.pe-closed .inquiry__body .btn { margin-top: 0; }

/* ---- Contact: form + office contacts ---- */
.pe-contact__grid { display: grid; gap: clamp(48px, 6vw, 96px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1025px) { .pe-contact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; } }
.pe-contact__form > .eyebrow { margin-bottom: var(--s-4); }
.pe-contact__form > h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.pe-form { max-width: 760px; }
.pe-form .field__hint { margin-top: -4px; font-size: var(--fs-small); color: var(--ink-2); }
.pe-form .field__error::before { content: "! "; font-weight: var(--fw-semibold); }
.pe-form .field__label .req { color: #B33A26; }
.pe-consent { padding-top: var(--s-2); }
.pe-consent .check { cursor: default; align-items: start; }
.pe-consent .check input { margin-top: 2px; }
.pe-consent__text { max-width: 60ch; line-height: 1.5; }
.pe-consent__text label { cursor: pointer; }
/* 44px tap area for the 22px box, without changing its look */
.pe-consent .check input { position: relative; }
.pe-consent .check input::before { content: ""; position: absolute; inset: -11px; }
.pe-consent__text a { display: inline-block; min-height: 24px; }

.pe-error-summary {
  max-width: 760px; margin-bottom: var(--s-6); padding: var(--s-5);
  border: 2px solid #B33A26; border-left-width: 6px; background: rgba(226, 82, 60, .05);
}
.pe-error-summary:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
.pe-error-summary__title { font-size: var(--fs-h4); font-weight: var(--fw-medium); margin-bottom: var(--s-3); }
.pe-error-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pe-error-summary a { display: inline-flex; align-items: center; min-height: 36px; color: #B33A26; font-size: var(--fs-small); text-decoration: underline; }

.pe-success {
  display: flex; gap: var(--s-4); align-items: flex-start; max-width: 760px;
  padding: var(--s-6); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: linear-gradient(90deg, rgba(131, 193, 122, .14), rgba(228, 253, 252, .4));
}
.pe-success[hidden] { display: none; }
.pe-success:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
.pe-success__icon { width: 32px; height: 32px; flex: none; color: #3E7A36; }
.pe-success__text { font-size: var(--fs-h3); font-weight: var(--fw-light); line-height: 1.25; }

.pe-offices { padding: clamp(24px, 3vw, 40px); background: var(--platinum); }
@media (min-width: 1025px) { .pe-offices { position: sticky; top: calc(var(--header-h-compact) + var(--stripe-h) + 32px); } }
.pe-offices__title {
  font-family: var(--font-ui); font-size: var(--fs-eyebrow); font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; line-height: 1.3; color: var(--ink-2);
  display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-5);
}
.pe-offices__title::before { content: ""; width: 28px; height: 2px; background: var(--grad-signature); }
.pe-offices__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule-strong); }
.pe-office {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--s-4); align-items: center;
  padding-block: var(--s-4); border-top: 1px solid var(--rule-strong);
}
.pe-office__country { font-size: 1.125rem; font-weight: var(--fw-regular); }
.pe-office__details { grid-column: 1 / -1; grid-row: 2; font-size: var(--fs-small); }
.pe-office__status { grid-column: 2; grid-row: 1; min-height: 24px; font-size: .6875rem; }
.pe-offices__note { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--ink-3); }
.pe-offices .link-arrow { margin-top: var(--s-3); }

/* ---- Privacy: placeholder notice outline ---- */
.pe-notice { place-items: stretch; text-align: left; padding: clamp(24px, 4vw, 48px); gap: var(--s-5); }
.pe-notice__title { font-family: var(--font-ui); font-size: var(--fs-eyebrow); font-weight: var(--fw-medium); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-2); max-width: none; }
.pe-notice__outline { list-style: none; margin: 0; padding: 0; counter-reset: pe-n; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule); }
@media (min-width: 768px) { .pe-notice__outline { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
.pe-notice__outline > li { counter-increment: pe-n; display: grid; gap: 6px; padding-block: var(--s-4); border-bottom: 1px solid var(--rule); }
.pe-notice__h { font-family: var(--font-main); font-size: var(--fs-h4); font-weight: var(--fw-regular); color: var(--ink); }
.pe-notice__h::before { content: counter(pe-n, decimal-leading-zero) "  "; white-space: pre; color: var(--aqua-ink); font-weight: var(--fw-light); }
.pe-notice__outline .ph { justify-self: start; }

/* ---- Privacy: analytics preferences + accessible switch ---- */
.pe-prefs { margin-top: var(--s-6); }
.pe-prefs__chev { transform: rotate(90deg); }
.btn:hover .pe-prefs__chev { transform: rotate(90deg) translateY(-3px); }
[aria-expanded="true"] > .pe-prefs__chev, .btn[aria-expanded="true"]:hover .pe-prefs__chev { transform: rotate(-90deg); }
.pe-prefs__panel { margin-top: var(--s-5); padding: var(--s-5); background: var(--white); border-top: 2px solid var(--prussian); max-width: 760px; }
.pe-prefs__panel[hidden] { display: none; }
.pe-switch-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.pe-switch-row__label { font-family: var(--font-ui); font-size: 1rem; font-weight: var(--fw-medium); }
.pe-switch-row__hint { margin-top: 6px; font-size: var(--fs-xs); }
.pe-switch {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 0 4px;
  font-family: var(--font-ui); font-size: .9375rem; font-weight: var(--fw-medium); color: var(--ink); cursor: pointer;
}
.pe-switch__track {
  position: relative; width: 56px; height: 30px; flex: none;
  border: 1px solid var(--prussian); background: var(--white);
  transition: background-color var(--dur-fast) ease-in-out;
}
.pe-switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: var(--prussian);
  transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-fast);
}
.pe-switch[aria-checked="true"] .pe-switch__track { background: var(--prussian); }
.pe-switch[aria-checked="true"] .pe-switch__thumb { transform: translateX(26px); background: var(--aqua); }
.pe-switch__state { min-width: 2.2em; }
.pe-switch:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
.pe-prefs__status { max-width: none; margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--ink-2); }

/* ---- Responsive refinements ---- */
@media (max-width: 640px) { .pe-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* legacy photos are ~880px wide at source: keep them at half-width scale below desktop */
@media (max-width: 1024px) { .pe-photo { max-width: 600px; } }
