/* ============================================================
   page-job.css
   Job listing pages (first use: head-of-programme-uk.html).

   Built on the section kit from page-international-narrative.css
   (intl-hero, intl-finding cards, intl-cta, intl-methodology),
   which the page also loads. This file holds only the pieces that
   kit lacks: the key-facts strip, prose column, requirement lists,
   offer cards, the application steps, and placeholder highlighting.
   Colours and fonts come from tokens.css only.
   ============================================================ */


/* ---------- Shared section frame ---------- */

/* layout.css sets body text bold site-wide. Long-form job copy reads
   better at regular weight; every heading and label below sets its
   own weight explicitly, so this only affects running text. */
.job-section,
.job-duties,
.job-about {
  font-weight: 400;
}

.job-section {
  background: var(--color-white);
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.job-section--grey {
  background: var(--color-grey-light);
}

.job-section__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--site-gutter, clamp(1.5rem, 4vw, 4rem));
}

/* Same voice as .intl-findings__heading */
.job-heading {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  color: var(--color-black);
}

.job-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 0 0 1rem;
}

/* Draft placeholders such as [email] and [date]: easy to spot,
   easy to grep for. Remove the span when the real value goes in. */
.job-ph {
  background: rgba(245, 197, 24, 0.35);
  padding: 0 0.2em;
  border-radius: 2px;
  font-style: normal;
}


/* ---------- 1. Hero additions ---------- */

.intl-hero.job-hero {
  min-height: 0;
}

/* The hero has no min-height here (unlike the intl page), so the top
   padding alone sets the gap under the overlaid nav (~95-116px tall). */
.job-hero .intl-hero__body {
  padding-top: clamp(9rem, 14vw, 13rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Job title leads; the strap about the role sits under it, one step down */
.job-hero .job-hero__title {
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
  line-height: 1.02;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.job-hero__strap {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-white);
  max-width: 46ch;
  margin: 0 0 var(--space-md, 1.5rem);
}

.job-hero__strap em {
  font-style: italic;
}

.job-hero .intl-hero__content {
  max-width: 960px;
}

/* Key facts: sits at the foot of the blue hero, divided by a hairline */
.job-facts {
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.25rem) var(--site-gutter, clamp(1.5rem, 4vw, 4rem)) clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem clamp(1.25rem, 2.5vw, 2.25rem);
}

@media (max-width: 1100px) {
  .job-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .job-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.job-facts__item {
  margin: 0;
}

.job-facts dt {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin: 0 0 0.45rem;
}

.job-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.3;
  color: var(--color-white);
}

.job-facts dd small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}


/* ---------- 2. The role: heading left, prose right ---------- */

.job-role__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 900px) {
  .job-role__grid { grid-template-columns: 1fr; gap: 0; }
}

.job-role__grid .job-heading {
  position: sticky;
  top: 6rem;
}

@media (max-width: 900px) {
  .job-role__grid .job-heading { position: static; }
}

.job-prose {
  max-width: 66ch;
}

.job-prose p {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.15vw, 1.12rem);
  line-height: 1.65;
  color: var(--color-black);
  margin: 0 0 1.25em;
}

.job-prose .job-prose__lead {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-blue);
  margin-bottom: 1.1em;
}

/* "A typical week" aside inside the prose column */
.job-week {
  margin: 2.25rem 0 0;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(245, 197, 24, 0.14); /* --color-yellow, very light */
}

/* .job-prose p would otherwise enlarge the eyebrow */
.job-prose .job-eyebrow {
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.job-week p:last-child {
  margin-bottom: 0;
}


/* ---------- 3. What you'll do: lists inside intl-finding cards ---------- */

.job-duties.intl-findings {
  background: var(--color-grey-light);
}

.job-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.job-list li {
  position: relative;
  padding-left: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-black);
}

.job-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue);
}


/* ---------- 4. What we're looking for ---------- */

.job-needs__label {
  margin-bottom: 1.5rem;
}

.job-needs {
  list-style: none;
  counter-reset: need;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4.5rem);
}

@media (max-width: 900px) {
  .job-needs { columns: 1; }
}

.job-needs li {
  counter-increment: need;
  break-inside: avoid;
  padding: 1.1rem 0 1.5rem;
  border-top: 1px solid rgba(10, 10, 10, 0.14);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-black);
}

.job-needs li::before {
  content: counter(need, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--color-blue);
}

.job-needs strong {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
}

/* "It would help" panel */
.job-helps {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--color-grey-light);
}

.job-helps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem clamp(1.25rem, 2.5vw, 2rem);
}

@media (max-width: 1100px) {
  .job-helps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .job-helps__list { grid-template-columns: 1fr; }
}

.job-helps__list li {
  padding-top: 0.9rem;
  border-top: 2px solid var(--color-black);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-black);
}


/* ---------- 5. About Diffusion (intl-methodology band) ---------- */

/* Tight crop on the No 10 door. The photo's door sits at the horizontal
   centre, between 49% and 72% down, and a fade-to-black is baked into its
   bottom fifth (it was made for the exec summary). Show only the band from
   20% to 76% of the photo's height: that drops the top row of windows and
   the fade. The img is drawn 1/0.56 = 178.6% of the box height, then
   lifted by 20% of its own height. object-fit: cover keeps it filling the
   box width at any aspect, centred on the door. */
.job-about .intl-methodology__photo img {
  height: 178.6%;
  object-position: 50% 0;
  transform: translateY(-20%);
}

.job-about .intl-methodology__text {
  max-width: 60ch;
}

.job-about .intl-methodology__body {
  margin-bottom: 1.1rem;
}

.job-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(10, 10, 10, 0.14);
  border-bottom: 1px solid rgba(10, 10, 10, 0.14);
}

@media (max-width: 480px) {
  .job-stats { grid-template-columns: 1fr; }
}

.job-stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
}

.job-stat__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-black);
}

.job-about .intl-methodology__pills {
  margin-top: 1.75rem;
}


/* ---------- 6. What we offer ---------- */

.job-offer__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}

@media (max-width: 900px) {
  .job-offer__cards { grid-template-columns: 1fr; }
}

.job-offer__value {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-blue);
  margin: 0.2rem 0 0.3rem;
}

/* Business Appointment Rules note */
.job-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.4rem 1.6rem;
  background: rgba(245, 197, 24, 0.14); /* --color-yellow, very light */
  max-width: 760px;
}

.job-note h3 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--color-black);
}

.job-note p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
  color: var(--color-black);
}


/* Seniority line under "What we're looking for" */
.job-looking__intro {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-black);
  max-width: 52ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}


/* ---------- 7. How to apply ---------- */

.job-apply__intro {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--color-black);
  max-width: 62ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.job-questions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (max-width: 900px) {
  .job-questions { grid-template-columns: 1fr; }
}

.job-question {
  background: var(--color-blue);
  color: var(--color-white);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-question__label {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-yellow);
}

.job-question__text {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

.job-question__limit {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.job-voice {
  margin: clamp(1.75rem, 3vw, 2.25rem) 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-yellow);
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.4;
  color: var(--color-black);
  max-width: 60ch;
}

/* Process steps */
.job-steps__label {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.job-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}

@media (max-width: 900px) {
  .job-steps { grid-template-columns: 1fr; }
}

.job-step {
  padding-top: 1.4rem;
  border-top: 2px solid var(--color-black);
}

.job-step__num {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--color-blue);
  margin-bottom: 0.65rem;
}

.job-step__title {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: var(--color-black);
}

.job-step__body {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
  color: var(--color-black);
}

.job-smallprint {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 3rem;
}

.job-smallprint p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--grey-800);
  margin: 0;
  max-width: 60ch;
}

.job-smallprint a {
  color: var(--color-blue);
}


/* ---------- 8. Closing CTA (intl-cta) ---------- */

.job-cta .intl-cta__action {
  max-width: 34ch;
}

.job-cta .intl-cta__btn {
  border: 0;
  cursor: pointer;
}
