/*
 * Careers component styles.
 *
 * Matches the design reference html/careers.html + html/assets/css/site.css.
 * Page-scoped to the Careers template and loaded only on /careers/ by
 * careers/careers.php. Depends on the design tokens in site.css.
 *
 * careers images sit next to this file, so url() paths are relative to careers/.
 */

/* Hero. The shared `.hero-frame` from site.css — photograph, magenta arc and
   real heading, all placed from the same 1440 x 503 frame as the Contact Us and
   Blogs heroes, so the arc lands identically on all three. See
   docs/HERO_BANNER_METHOD.md. */
.careers-hero--figma::after { display: none; }
/* Careers Figma geometry. One design pixel: 1px at the 1440 frame, 4/3px at
   1920 — the same ratio as --container. The shared sections scale with it;
   Life at ALAN and Our Vacancies hold it at 1px so their 1440 layout stays
   fixed (see below). */
.careers-page { --careers-unit: clamp(1px, 0.0694444vw, 1.3333333px); --careers-magenta: #dd0b81; }

/* Life at ALAN and Our Vacancies keep the 1440 frame's 1280px column above
   1440: the shared --container and --careers-unit (1px at the frame) stop
   scaling inside these two containers, so the photo, columns, gaps and rows
   hold their design size and the extra viewport width becomes side margin. */
.careers-values > .container,
.careers-openings > .container { --container: 1280px; --careers-unit: 1px; }

/* Life at ALAN. The Figma frame is one 1280 container: 597 copy + 40 gap +
   643 photo = 1280. The 158px top padding is the height of the team artwork's
   decoration above the photo, so the photo's top edge and the heading's top
   edge share one line. */
.careers-values { padding-block: calc(158 * var(--careers-unit)) 0; }
.careers-life { display: grid; grid-template-columns: minmax(0, 597fr) minmax(0, 643fr); column-gap: calc(40 * var(--careers-unit)); align-items: start; }
.careers-life__copy { min-width: 0; }
.careers-life__title { margin: 0 0 calc(30 * var(--careers-unit)); color: var(--ink); font-size: 60px; font-weight: 600; line-height: 1; letter-spacing: 0; }
.careers-life__title span { color: var(--careers-magenta); }
.careers-life__copy p { margin: 0; font-size: 20px; line-height: 1.5; text-align: justify; }
/* The photo is the Figma 643 x 426 box. The 371 x 208 arc is the decoration
   from the old combined canvas at (353, 0), so it overhangs the photo by
   158px above and 81px to the right. The wrapper measures the photo, and the
   photo paints over the arc where the two overlap, as the combined SVG did. */
.careers-life__media { position: relative; margin: 0; aspect-ratio: 643 / 426; }
.careers-life__photo { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border-radius: calc(100% * 16 / 643) / calc(100% * 16 / 426); object-fit: cover; }
.careers-life__arc { position: absolute; z-index: 0; top: calc(100% * -158 / 426); left: calc(100% * 353 / 643); width: calc(100% * 371 / 643); max-width: none; height: auto; }
.careers-life__arc-picture { display: contents; }
/* Above the 1440 frame the photo is fixed, so the arc's straight arms absorb
   the extra section padding above and the extra viewport margin to the right.
   The wide SVG keeps the original corner and arm thickness at 1:1;
   object-fit: none renders it at that scale while the element's growing box
   clips the unused arm length. The 1px right overshoot matches the 1440 frame. */
@media (min-width: 1441px) {
  .careers-life__arc {
    --careers-arc-x: clamp(0px, calc(50vw - 720px), 240px);
    --careers-arc-y: clamp(0px, calc(10.97222vw - 158px), 52.67px);
    --careers-arc-y-max: 52.67px;
    top: calc(100% * -158 / 426 - var(--careers-arc-y));
    width: calc(100% * 371 / 643 + var(--careers-arc-x));
    height: calc(100% * 208 / 426 + var(--careers-arc-y));
    object-fit: none;
    object-position: 0 calc(var(--careers-arc-y) - var(--careers-arc-y-max));
  }
}

/* Journey. 230px is the Figma gap from the bottom of the Life content (photo
   and paragraph) to the message frame. The left accent sits at the top of that
   gap, above the heading. 93px is the gap between the message and the collage. */
.careers-journey { position: relative; overflow: clip; padding-block: calc(230 * var(--careers-unit)) 0; background: #fff; }
.careers-journey__accent { position: absolute; top: 0; left: 0; width: calc(128 * var(--careers-unit)); height: auto; }
.careers-journey > .container { width: 100%; }
.careers-journey__art { display: block; width: 100%; height: auto; }
.careers-journey__message { position: relative; z-index: 1; margin: 0 auto calc(93 * var(--careers-unit)); text-align: center; }
.careers-journey__message h2 { margin: 0; font-size: 60px; font-weight: 400; line-height: 1.2; }
.careers-journey__message span { color: var(--careers-magenta); }

/* Our Vacancies. The Figma frame puts the heading 179px below the collage,
   the paragraph 56px below the heading's top edge (600px is the width its two
   Figma lines need at 20px), and the divider 63px below the intro. The right
   accent starts 10px below the collage. */
.careers-openings { position: relative; padding-top: calc(179 * var(--careers-unit)); background: #fff; }
.careers-openings__accent { position: absolute; top: calc(10 * var(--careers-unit)); right: 0; width: calc(114 * var(--careers-unit)); height: auto; pointer-events: none; }
.careers-openings__intro { display: grid; grid-template-columns: minmax(0, 1fr) calc(600 * var(--careers-unit)); align-items: start; padding-bottom: calc(63 * var(--careers-unit)); border-bottom: 1px solid #f0dce7; }
.careers-openings__intro h2 { margin: 0; font-size: 60px; font-weight: 600; line-height: 1; letter-spacing: 0; }
.careers-openings__intro > p { margin: calc(56 * var(--careers-unit)) 0 0; font-size: 20px; line-height: 1.5; text-align: right; }
.careers-job-table { margin-top: calc(24 * var(--careers-unit)); }
.careers-job-table__head, .careers-job-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 2rem; column-gap: 1rem; align-items: center; padding-inline: 1rem; border-bottom: 1px solid #d9d5d5; }
.careers-job-table__head { padding-block: calc(36 * var(--careers-unit)); color: #6d666b; font-size: 20px; font-weight: 400; line-height: 1.5; text-transform: uppercase; }
.careers-job-row { padding-block: calc(42 * var(--careers-unit)); color: var(--ink); text-decoration: none; }
.careers-job-row strong, .careers-job-row > span { font-size: 24px; font-weight: 600; line-height: 1.5; vertical-align: middle; }
.careers-job-toggle { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #cfcfcf; font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.careers-job-toggle[aria-expanded="true"] { background: var(--pink-dark); }
/* The panel uses the table's own tracks, so its copy starts under the
   Location column and ends at the container edge, as in the Figma frame. */
.careers-job-details { display: none; grid-template-columns: 1.5fr 1fr 1fr 2rem; column-gap: 1rem; padding: calc(16 * var(--careers-unit)) 1rem calc(24 * var(--careers-unit)); font-size: 20px; line-height: 1.5; }
.careers-job-details.is-open { display: grid; }
.careers-job-details > * { grid-column: 2 / -1; }
.careers-job-details h3 { margin: 0 0 .75rem; font-size: 20px; font-weight: 600; }
.careers-job-details p { margin: 0 0 1rem; }
.careers-job-details ul { margin: 0 0 1rem 1rem; padding: 0; }
.careers-job-details strong { font-weight: 600; }
.careers-job-details .careers-apply { display: block; width: calc(147 * var(--careers-unit)); height: calc(27 * var(--careers-unit)); padding: 0; border: 0; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, #b04198 2.71%, #e14c8d 51.38%, #ffdb85 100%) 1; color: var(--ink); background: none; font: inherit; font-size: 20px; font-weight: 400; line-height: 1.3; text-transform: uppercase; text-align: left; cursor: pointer; }
.careers-job-details .careers-apply::after { content: none; }

@media (max-width: 1024px) {
  .careers-openings { padding-top: 4rem; }
  .careers-openings__intro { grid-template-columns: 1fr; row-gap: 1.25rem; padding-bottom: 2rem; }
  .careers-openings__intro > p { margin-top: 0; text-align: left; }
  .careers-job-table__head, .careers-job-row, .careers-job-details { column-gap: .75rem; padding-inline: .75rem; }
}
@media (max-width: 720px) {
  .careers-life, .careers-openings__intro { grid-template-columns: 1fr; gap: 2rem; }
  .careers-hero--figma { min-height: 20rem; }
  .careers-values { padding-block: 3.5rem 3rem; }
  .careers-life__title { margin-bottom: 1rem; font-size: clamp(2rem, 9vw, 3rem); }
  .careers-life__copy p { font-size: 1rem; }
  /* One column: the artwork's 158px overhang would sit on the copy, so the
     photo box clips it and shows the photograph alone. */
  .careers-life__media { overflow: hidden; }
  .careers-journey { padding-block: 3rem 0; }
  .careers-journey__accent { display: none; }
  .careers-journey__message { margin-bottom: 2.5rem; }
  .careers-journey__message h2 { font-size: clamp(1.7rem, 7vw, 2.5rem); }
  .careers-openings { padding-top: 2.5rem; }
  .careers-openings__accent { display: none; }
  .careers-openings__intro h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); line-height: 1.15; }
  .careers-openings__intro > p { font-size: 1rem; }
  .careers-job-table__head { display: none; }
  .careers-job-row { grid-template-columns: 1fr auto; padding-block: 1rem; }
  .careers-job-row strong, .careers-job-row > span { font-size: 1.05rem; }
  .careers-job-row > span:nth-child(2) { grid-column: 1; }
  .careers-job-row > span:nth-child(3) { grid-column: 1; }
  .careers-job-row > .careers-job-toggle { grid-column: 2; grid-row: 1 / 4; }
  .careers-job-details { grid-template-columns: 1fr; padding: .75rem 0 1.5rem; font-size: 1rem; }
  .careers-job-details > * { grid-column: 1; }
  .careers-job-details h3 { font-size: 1rem; }
}
