/* =========================================================================
 * CONCORDIA job ad — redesign 2026
 *
 * Shared stylesheet for index.hbs (job ad) and expired.hbs (expired ad).
 * The design tokens below mirror the CONCORDIA career center
 * (cc-Concordia-React-1000725/theme.js + tailwind.config.js) so the job ad,
 * the job portal and the job abo read as one system.
 * ====================================================================== */

/* -------------------------------------------------------------------------
 * FONTS — Avenir LT W05, self-hosted in assets/fonts
 *   55 Roman -> 400 (body)    85 Heavy -> 700 (headings, <b>)
 * ---------------------------------------------------------------------- */
@font-face {
    font-family: "Avenir";
    src: url("../fonts/AvenirLTW05-55Roman.woff2") format("woff2"),
         url("../fonts/AvenirLTW05-55Roman.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Avenir";
    src: url("../fonts/AvenirLTW05-85Heavy.woff2") format("woff2"),
         url("../fonts/AvenirLTW05-85Heavy.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------------------------------------
 * DESIGN TOKENS
 * ---------------------------------------------------------------------- */
:root {
    /* Brand — identical to theme.js */
    --c-primary: #274659;        /* navy: text + dark band */
    --c-primary-light: #507387;  /* CD Graublau — muted text, separators */
    --c-secondary: #FF8A00;      /* orange: accents, CTA circle */
    --c-white: #FFFFFF;

    /* Surfaces */
    --c-hero: #F5F3F1;           /* warm grey hero band + flat buttons */
    --c-box: #F6F1F1;            /* "Dein nächster Schritt" box */
    --c-chip: #F4F7FD;           /* meta chips (pensum / Arbeitsort) */
    --c-tag: #FAEEE9;            /* job tag (Unternehmensbereich) */
    --c-line: #D7DDE3;           /* hairlines, breadcrumb chip border */
    --c-socialborder: #7595AD;   /* footer social circles */
    --c-cardborder: #E8ECF0;     /* job card border */

    /* Elevation */
    --shadow-card: 0 2px 12px 0 rgba(39, 70, 89, .06);
    --shadow-card-hover: 0 4px 20px 0 rgba(39, 70, 89, .12);

    /* Radii */
    --r-card: 16px;
    --r-image: 24px;
    --r-pill: 999px;

    /* Layout */
    --w-wide: 1120px;            /* hero, running text, benefits grid */
    --w-narrow: 776px;           /* contact box, link cards, job cards */
    --gutter: 24px;

    /* Rhythm */
    --section-gap: 96px;

    /* Body copy — desktop 22/32, tablet (<=1100px) 20/28, mobile (<=620px) 18/24 */
    --fs-body: 22px;
    --lh-body: 32px;
}

/* -------------------------------------------------------------------------
 * RESET / BASE
 * ---------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--c-white);
    color: var(--c-primary);
    font-family: "Avenir", Arial, Helvetica, sans-serif;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin: 0;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--c-secondary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Print-only banner (see print.css) — never shown on screen. */
.print-hero {
    display: none;
}

/* Icon sprite host — never rendered */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 24px;
    height: 24px;
    flex: none;
    fill: currentColor;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------------------------------------------------------
 * LAYOUT HELPERS
 * ---------------------------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--w-wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.shell--narrow {
    max-width: calc(var(--w-narrow) + 2 * var(--gutter));
}

.section {
    margin-block: var(--section-gap);
}

/*
 * Every content block in this template is optional: the templates guard their
 * copy with {{#if}}, so a block whose data is missing ends up as a wrapper
 * with no element children. Collapse those instead of leaving a hole in the
 * vertical rhythm. (Whitespace text nodes are not elements, so `:has(> *)`
 * is the reliable test here — `:empty` would not match.)
 */
.section:not(:has(> *)),
.intro:not(:has(> *)) {
    display: none;
}

.section-title {
    font-size: 36px;
    line-height: 1.25;
    margin-bottom: 32px;
}

.section-title--center {
    text-align: center;
    margin-bottom: 40px;
}

/* -------------------------------------------------------------------------
 * BUTTONS
 * ---------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    padding: 14px 26px;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, filter .2s;
}

.btn--primary {
    background: var(--c-primary);
    color: var(--c-white);
}

.btn--primary:hover {
    filter: brightness(1.15);
}

.btn--outlined {
    background: var(--c-white);
    border-color: rgba(39, 70, 89, .4);
    color: var(--c-primary);
}

.btn--outlined:hover {
    border-color: var(--c-primary);
}

.btn--flat {
    background: var(--c-hero);
    color: var(--c-primary);
}

.btn--flat:hover {
    filter: brightness(.95);
}

/* Round icon button (share in the header, print in the footer) */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--c-primary);
    color: var(--c-white);
    cursor: pointer;
    transition: filter .2s;
}

.btn-icon:hover {
    filter: brightness(1.2);
}

/* Hero CTA: white pill welded to an orange circle holding the arrow */
.btn-hero {
    display: inline-flex;
    align-items: center;
    border-radius: var(--r-pill);
    background: var(--c-white);
    color: var(--c-primary);
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s;
}

.btn-hero:hover {
    box-shadow: var(--shadow-card-hover);
}

.btn-hero span {
    padding: 0 22px 0 28px;
}

.btn-hero .btn-hero__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex: none;
    padding: 0;
    border-radius: 50%;
    background: var(--c-secondary);
    color: var(--c-white);
    transition: transform .2s;
}

.btn-hero:hover .btn-hero__circle {
    transform: translateX(3px);
}

/* -------------------------------------------------------------------------
 * STICKY TOP BAR
 * ---------------------------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--c-hero);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding-block: 12px;
}

.topbar__logo img {
    width: 142px;
    height: auto;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Share popover */
.share {
    position: relative;
}

.share__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--c-cardborder);
    border-radius: var(--r-card);
    background: var(--c-white);
    box-shadow: var(--shadow-card-hover);
}

.share.is-open .share__menu {
    display: flex;
}

.share__menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-pill);
    color: var(--c-primary);
    transition: background-color .2s;
}

.share__menu a:hover {
    background: var(--c-chip);
}

/* -------------------------------------------------------------------------
 * HERO
 * ---------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: 72px;
}

/* The warm grey band stops short of the image, which overhangs it. */
/*
 * The band stops short of the hero's bottom edge so the image overhangs it.
 * That overhang is expressed here alone (30px desktop, 16px on mobile below).
 * It used to be split between this inset and a padding-bottom on .hero__inner,
 * which left that padding sitting in the gap to the next section as dead
 * space — 80px on desktop, 48px on mobile, on top of the section gap.
 */
.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 30px;
    background: var(--c-hero);
    z-index: 0;
}

/* No header image, nothing to overhang — run the band to the full height. */
.hero:not(:has(.hero__figure))::before {
    inset: 0;
}

/* One column by default; the image column only appears when the posting
   actually carries a header image. */
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 56px;
    padding-bottom: 0;
}

/*
 * Both tracks are fractional so they shrink together. A fixed 580px image
 * track kept its full width while the text column collapsed — at 900px the
 * copy had only 216px left. The fr values are the design widths, so at the
 * 1120px shell the split is still exactly 436 / 580.
 */
.hero__inner:has(.hero__figure) {
    grid-template-columns: minmax(0, 436fr) minmax(0, 580fr);
}

.hero__content {
    padding-top: 48px;
}

/*
 * --autofit-* are read by posting.js, which steps the size down (never up)
 * until the title fits --autofit-lines. Without JavaScript the title simply
 * stays at font-size and wraps, as before.
 */
.hero__title {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 28px;
    hyphens: auto;
    --autofit-lines: 4;
    --autofit-min: 32px;
}

.hero__lead {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 32px;
}

.hero__subtitle {
    font-size: 28px;
    line-height: 1.3;
}

.hero__cta {
    margin-bottom: 40px;
}

.hero__location {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    text-decoration: none;
}

.hero__location .icon {
    width: 28px;
    height: 28px;
    color: var(--c-secondary);
}

.hero__location:hover span {
    text-decoration: underline;
}

/* Breadcrumb chips */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    font-size: 14px;
    line-height: 1;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

/*
 * The separator trails its own chip instead of leading the next one. When the
 * list wraps on a narrow screen it therefore stays behind on the first line,
 * and the chip below starts flush with the one above. As a leading span it
 * was pushed onto the second line and indented the chip that followed it.
 * The " / ''" alt text keeps it out of the accessibility tree.
 */
.breadcrumb li:not(:last-child)::after {
    content: "\203A" / "";
    color: var(--c-primary-light);
}

.breadcrumb__chip {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-pill);
    color: var(--c-primary);
    text-decoration: none;
}

a.breadcrumb__chip:hover {
    border-color: var(--c-primary);
}

/* Hero image with its claim overlay */
.hero__figure {
    position: relative;
    margin: 0;
    border-radius: var(--r-image);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero__figure img {
    width: 100%;
    height: 100%;
    aspect-ratio: 29 / 37;
    object-fit: cover;
}

.hero__claim {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 8%;
    padding: 20px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--c-primary);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

/* -------------------------------------------------------------------------
 * INTRO + TASKS / REQUIREMENTS
 * ---------------------------------------------------------------------- */
/* Follows the section rhythm. A fixed value here used to leave the gap after
   the hero out of step with every other block: 72px against a --section-gap
   of 96 / 72 / 56, so it only lined up at tablet size by coincidence. */
.intro {
    margin-top: var(--section-gap);
}

/* Intro is plain body copy — it follows --fs-body / --lh-body. */
.intro p {
    font-size: inherit;
    line-height: inherit;
}

/* Two columns when both blocks are filled, one full-width column when only
   one of them is — auto-fit collapses the empty track on its own. */
.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 56px;
}

/* The editor delivers tasks / requirements as <ul><li>. */
.rte ul {
    list-style: none;
}

.rte ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
}

.rte ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-primary);
}

.rte ul li:last-child {
    margin-bottom: 0;
}

.rte a {
    color: var(--c-primary);
}

/* -------------------------------------------------------------------------
 * BENEFITS — dark band with flip cards
 * ---------------------------------------------------------------------- */
.benefits {
    margin-block: var(--section-gap) 0;
    padding-block: 72px 80px;
    background: var(--c-primary);
    color: var(--c-white);
}

.benefits .section-title {
    color: var(--c-white);
}

/*
 * Six tracks, two per card — visually a 3-up grid, but the extra tracks let an
 * incomplete last row be centred: with five benefits the bottom two sit in
 * tracks 2-5 instead of hugging the left edge.
 */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 30px;
}

/* Six benefits is the design maximum, whatever the CMS delivers. */
.benefits__grid .benefit:nth-child(n + 7) {
    display: none;
}

@media (min-width: 1101px) {
    /* 5 cards -> centre the bottom two; 4 -> centre the single one;
       2 / 1 -> centre the only row. */
    .benefits__grid:has(.benefit:nth-child(5):last-child) .benefit:nth-child(4),
    .benefits__grid:has(.benefit:nth-child(2):last-child) .benefit:nth-child(1) {
        grid-column: 2 / span 2;
    }

    .benefits__grid:has(.benefit:nth-child(4):last-child) .benefit:nth-child(4),
    .benefits__grid:has(.benefit:nth-child(1):last-child) .benefit:nth-child(1) {
        grid-column: 3 / span 2;
    }
}

/*
 * The icon sits at a FIXED distance from the card top (--benefit-pad-top).
 * The face used to be centred vertically, so its whole block — icon + title —
 * moved up or down depending on whether the title wrapped to one or two lines,
 * and the icons of neighbouring cards ended up on different levels.
 */
.benefit {
    --benefit-pad-top: 28px;
    --benefit-icon: 72px;     /* orange container */
    --benefit-glyph: 60px;    /* icon inside the container */

    grid-column: span 2;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 298px;
    padding: var(--benefit-pad-top) 28px 28px;
    border-radius: var(--r-card);
    background: var(--c-white);
    color: var(--c-primary);
    text-align: center;
    overflow: hidden;
}

.benefit__face {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    transition: opacity .25s;
}

/* The CMS now delivers the bare icon (no baked-in circle), so the orange
   round container is drawn here. #FF8A00 = --c-secondary. */
.benefit__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: var(--benefit-icon);
    height: var(--benefit-icon);
    border-radius: 50%;
    background: var(--c-secondary);
}

.benefit__icon img {
    width: var(--benefit-glyph);
    height: var(--benefit-glyph);
    object-fit: contain;
}

/*
 * DEFAULT: icon, title and description are all visible.
 *
 * This is deliberately the state with nothing hidden — it is what renders
 * before posting.js runs, when JavaScript is unavailable, and on every
 * device whose pointer capabilities we cannot positively confirm. Nothing
 * important is ever locked behind an interaction the device may not support.
 */
.benefit__head {
    font-size: 16px;
    line-height: 1.5;
}

.benefit__head b {
    display: block;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.benefit__detail {
    display: none;
}

.benefit__detail b {
    font-size: 22px;
    line-height: 1.3;
}

.benefit__detail br {
    content: "";
    display: block;
    margin-bottom: 8px;
}

/*
 * FLIP: icon + title, description on hover.
 *
 * Switched on by posting.js only when the device genuinely has a hovering
 * pointer AND the description could be isolated into .benefit__desc. A real
 * touch switches it back off. Never gate this on @media (hover: none) alone:
 * older Firefox for Android and several in-app browsers (LinkedIn, WhatsApp,
 * Outlook) claim "(hover: hover)" on a touchscreen, and their users would
 * then never be able to reach the benefit text at all.
 */
.benefits-flip .benefit {
    --benefit-pad-top: 80px;
}

.benefits-flip .benefit__desc {
    display: none;
}

.benefits-flip .benefit__face {
    transition: opacity .25s;
}

.benefits-flip .benefit__detail {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0;
    transition: opacity .25s;
}

.benefits-flip .benefit:hover .benefit__face,
.benefits-flip .benefit:focus-within .benefit__face {
    opacity: 0;
}

.benefits-flip .benefit:hover .benefit__detail,
.benefits-flip .benefit:focus-within .benefit__detail {
    opacity: 1;
}

.benefits__action {
    margin-top: 40px;
    text-align: center;
}

/* -------------------------------------------------------------------------
 * "DEIN NÄCHSTER SCHRITT" — contact box
 * ---------------------------------------------------------------------- */
/* Flex rather than grid: when the posting carries no contact portrait the
   person column is simply not rendered and the copy reflows to full width,
   with no empty track left behind. */
.nextstep {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 44px;
    border-radius: var(--r-card);
    background: var(--c-box);
}

.nextstep__main {
    flex: 1 1 auto;
    min-width: 0;
}

.nextstep__person {
    flex: 0 0 180px;
}

.nextstep__title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.nextstep__body {
    font-size: 18px;
    line-height: 1.6;
}

/* The phone number is a tel: link — keep it obviously tappable. */
.nextstep__body a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nextstep__body a:hover {
    color: var(--c-secondary);
}

.nextstep__phone {
    white-space: nowrap;
}

.nextstep__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.nextstep__person img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}

.nextstep__person-name {
    font-size: 18px;
    line-height: 1.4;
}

/* sza_contact arrives as "<b>Name</b><br/>Funktion" — the <b> already breaks
   the line, so the authored <br> would double the gap. */
.nextstep__person-name b {
    font-size: 24px;
    display: block;
}

.nextstep__person-name br {
    display: none;
}

/* -------------------------------------------------------------------------
 * VIDEO
 * ---------------------------------------------------------------------- */
.video {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--c-primary);
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------------------------------------------------------------
 * LINK CARDS (expired page: Stellenportal / Job-Abo)
 * ---------------------------------------------------------------------- */
.linkcards {
    display: grid;
    gap: 16px;
}

.linkcard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border: 1px solid var(--c-cardborder);
    border-radius: var(--r-card);
    background: var(--c-white);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: box-shadow .2s;
}

.linkcard:hover {
    box-shadow: var(--shadow-card-hover);
}

.linkcard__title {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.linkcard__text {
    display: block;
    font-size: 18px;
    line-height: 1.5;
    color: var(--c-primary-light);
}

.linkcard__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    background: var(--c-secondary);
    color: var(--c-white);
    transition: transform .2s;
}

.linkcard:hover .linkcard__arrow {
    transform: translateX(3px);
}

.linkcard__arrow .icon {
    width: 20px;
    height: 20px;
}

/* -------------------------------------------------------------------------
 * SIMILAR JOBS
 * ---------------------------------------------------------------------- */
.joblist {
    display: grid;
    gap: 24px;
}

/* Grid items default to min-width:auto, i.e. as wide as their longest unbreakable
   word. Without this a long German compound can push the card past the viewport. */
.joblist > li {
    min-width: 0;
}

.jobcard {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--c-cardborder);
    border-radius: var(--r-card);
    background: var(--c-white);
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s;
}

.jobcard:hover {
    box-shadow: var(--shadow-card-hover);
}

.jobcard__tag {
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--c-tag);
    color: var(--c-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.jobcard__title {
    font-size: 30px;
    line-height: 1.3;
    padding-right: 48px;
    max-width: 100%;
    hyphens: auto;
    /* `anywhere` (unlike break-word) also lowers min-content, so the title can
       never be wider than the card even where no hyphenation dictionary exists. */
    overflow-wrap: anywhere;
}

.jobcard__title a {
    text-decoration: none;
}

/* Stretch the title link over the whole card so the card is clickable
   while keeping exactly one focusable link per card. */
.jobcard__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--r-card);
}

.jobcard__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.jobcard__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--c-chip);
    font-size: 16px;
    line-height: 1.5;
}

.jobcard__chip .icon {
    width: 16px;
    height: 16px;
}

.jobcard__bookmark {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--c-primary);
}

.jobcard__bookmark .icon {
    width: 17px;
    height: 22px;
}

.joblist__action {
    margin-top: 40px;
    text-align: center;
}

.joblist__action--top {
    margin: -16px 0 32px;
}

/* -------------------------------------------------------------------------
 * FOOTER
 * ---------------------------------------------------------------------- */
.footer {
    margin-top: var(--section-gap);
    padding-block: 32px 40px;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--c-line);
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    font-size: 18px;
}

.footer__nav a {
    text-decoration: none;
}

.footer__nav a:hover {
    text-decoration: underline;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

/*
 * Hover: the circle scales up while the glyph slides out of the top and an
 * identical copy arrives from below. Colours are deliberately untouched —
 * motion carries the whole interaction.
 */
.footer__social {
    --social-size: 44px;
    --social-icon: 20px;
    --social-scale: 1.1;        /* circle only — the glyph is held at 1:1 below */
    --social-duration: .15s;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--social-size);
    height: var(--social-size);
    border: 1px solid var(--c-socialborder);
    border-radius: 50%;
    color: var(--c-primary);
    transition: transform var(--social-duration) ease-out;
}

.footer__social a:hover,
.footer__social a:focus-visible {
    transform: scale(var(--social-scale));
}

/* Viewport the height of a single glyph — it hides the second copy until
   the stack slides. */
.social-icon {
    display: block;
    width: var(--social-icon);
    height: var(--social-icon);
    overflow: hidden;
    transition: transform var(--social-duration) ease-out;
}

/*
 * scale() on the link enlarges its whole subtree, glyph included. Undo that
 * here with the inverse factor so only the ring grows and the icon keeps its
 * rendered size. Applied to the mask rather than .icon so the clip box is
 * corrected along with its contents.
 */
.footer__social a:hover .social-icon,
.footer__social a:focus-visible .social-icon {
    transform: scale(calc(1 / var(--social-scale)));
}

/* Both copies move together by exactly one glyph height, so the outgoing
   and incoming icon stay locked to each other. */
.social-icon .icon {
    display: block;
    width: var(--social-icon);
    height: var(--social-icon);
    transition: transform var(--social-duration) ease-out;
}

.footer__social a:hover .social-icon .icon,
.footer__social a:focus-visible .social-icon .icon {
    transform: translateY(-100%);
}

.footer__start {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
}

.footer__start a {
    text-decoration: none;
}

.footer__start a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * RESPONSIVE
 * ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
    :root {
        --section-gap: 72px;
        --fs-body: 20px;
        --lh-body: 28px;
    }

    .hero__title {
        font-size: 44px;
        --autofit-min: 28px;
    }

    .section-title {
        font-size: 30px;
    }

    /* 2-up: four tracks, two per card. */
    .benefits__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 2-up only: an odd card out ends its row alone, so centre it. */
@media (min-width: 621px) and (max-width: 1100px) {
    .benefits__grid:has(.benefit:nth-child(5):last-child) .benefit:nth-child(5),
    .benefits__grid:has(.benefit:nth-child(3):last-child) .benefit:nth-child(3),
    .benefits__grid:has(.benefit:nth-child(1):last-child) .benefit:nth-child(1) {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 860px) {
    .hero {
        padding-top: 48px;
    }

    .hero::before {
        inset: 0 0 16px;
    }

    .hero__inner,
    .hero__inner:has(.hero__figure) {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding-bottom: 0;
    }

    .hero__content {
        padding-top: 0;
    }

    .hero__figure {
        max-width: 580px;
    }

    .columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .nextstep {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding: 32px 24px;
    }

    .nextstep__person {
        flex: 0 0 auto;
    }

    .nextstep__person {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .nextstep__person img {
        width: 120px;
        margin-bottom: 0;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer__nav {
        gap: 24px;
    }
}

@media (max-width: 620px) {
    :root {
        --section-gap: 56px;
        --gutter: 20px;
        --fs-body: 18px;
        --lh-body: 24px;
    }

    .hero__title {
        font-size: 34px;
        /* Four lines are fine on a narrow screen — the column is short anyway. */
        --autofit-lines: 4;
        --autofit-min: 24px;
    }

    /*
     * Trimmed so the chips survive on one line down to the smallest phones.
     * At the desktop size the pair needed 320px and wrapped below 361px — i.e.
     * already on a 360px Android. The vertical padding is untouched, so the
     * tap target keeps its height.
     */
    .breadcrumb {
        font-size: 13px;
        gap: 6px;
    }

    .breadcrumb li {
        gap: 6px;
    }

    .breadcrumb__chip {
        padding-inline: 12px;
    }

    .hero__subtitle {
        font-size: 22px;
    }

    .hero__claim {
        font-size: 20px;
        left: 6%;
        right: 6%;
    }

    .section-title {
        font-size: 26px;
    }

    /* Single column: two tracks, one card spanning both. */
    .benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefits__grid .benefit {
        grid-column: 1 / span 2;
    }

    .benefit {
        min-height: 220px;
    }

    .benefits-flip .benefit {
        --benefit-pad-top: 44px;
    }

    .jobcard__title {
        font-size: 24px;
    }

    .linkcard {
        padding: 24px;
    }

    .linkcard__title {
        font-size: 20px;
    }

    /* Keep logo + share + apply on a single row at 320px and up. */
    .topbar__inner {
        gap: 12px;
    }

    .topbar__logo img {
        width: 118px;
    }

    .topbar__actions {
        gap: 8px;
    }

    .topbar .btn--primary {
        padding: 13px 18px;
        font-size: 15px;
        white-space: nowrap;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
