:root {
    --ajo-text-main: var(--h1_typography-color, #484848);
    --ajo-text-dark: var(--body_typography-color, #484848);
    --ajo-text-muted: var(--contrast-2, #575760);
}

.ajo-dashboard-shell {
    max-width: 910px;
    margin: 0 auto;
    background: #d7e7ea;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.ajo-dashboard {
    padding-bottom: 28px;
}

.ajo-hero {
    position: relative;
    min-height: 295px;
    overflow: hidden;
}

.ajo-hero__image {
    width: 100%;
    height: 295px;
    object-fit: cover;
}

.ajo-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 24px;
    text-align: center;
}

.ajo-hero__content {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ajo-hero__title {
    margin: 0 0 10px;
    color: var(--ajo-text-main);
    font-family: var(--h1_typography-font-family, "Nunito Sans", sans-serif);
    font-size: clamp(2.2rem, 4vw, var(--h1_typography-font-size, 50px));
    font-weight: var(--h1_typography-font-weight, 600);
    line-height: var(--h1_typography-line-height, 1.2);
}

.ajo-hero__subtitle {
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    color: var(--ajo-text-dark);
    font-size: 1.05rem;
    line-height: 1.65;
}

.ajo-process-switcher {
    margin: 20px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ajo-process-switcher__label {
    color: var(--ajo-text-main);
    font-family: var(--h4_typography-font-family, "Nunito Sans", sans-serif);
    font-weight: var(--h4_typography-font-weight, 600);
    font-size: 0.95rem;
    line-height: 1.3;
}

.ajo-process-switcher__select {
    max-width: 420px;
}

/* Empty state (not logged in / no process) */
.ajo-page-header {
    text-align: center;
}

.ajo-empty-state {
    max-width: 740px;
    margin: 0 auto 24px;
    padding: 18px 20px;
    text-align: center;
    background: var(--base-3, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.075);
    box-shadow: 0 6px 20px rgba(18, 69, 82, 0.04);
}

.ajo-countdown__inner {
    padding: 15px;
    background: cornsilk;
    text-align: center;
}

.ajo-card {
    margin: 18px 24px 0;
    background: var(--base-3, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.075);
    box-shadow: 0 6px 20px rgba(18, 69, 82, 0.08);
    overflow: hidden;
}

.ajo-card__header {
    padding: 16px 22px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.35);
}

.ajo-section-title {
    margin: 0;
    color: var(--ajo-text-main);
    font-family: var(--h3_typography-font-family, "Nunito Sans", sans-serif);
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ajo-section-title--center {
    text-align: center;
}

.ajo-section-title-flag {
    width: 20px;
    height: 20px;
    vertical-align: top;
}

.ajo-project-card__content {
    padding: 20px 22px 18px;
}

.ajo-project-card__job-title {
    margin: 0 0 8px;
    color: var(--ajo-text-main);
    font-family: var(--h2_typography-font-family, "Nunito Sans", sans-serif);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: var(--h2_typography-font-weight, 600);
    line-height: 1.15;
}

.ajo-project-card__job-category {
    margin: 0 0 20px;
    color: var(--ajo-text-dark);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.4;
}

.ajo-project-card__meta {
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    color: var(--ajo-text-dark);
    font-size: 1.05rem;
}

.ajo-project-card__meta-label {
    color: var(--ajo-text-muted);
}

.ajo-project-card__meta-value {
    margin-left: 6px;
    color: var(--ajo-text-main);
    font-family: var(--h3_typography-font-family, "Nunito Sans", sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Support row: contact person | traffic light | WhatsApp group */
.ajo-support-row__content {
    display: grid;
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr) minmax(0, 180px);
    gap: 22px;
    padding: 20px 22px 20px;
}

.ajo-support-row__content--no-help {
    grid-template-columns: minmax(0, 1fr) minmax(0, 200px);
}

/* The country has no WhatsApp group: contact person and traffic light only. */
.ajo-support-row__content--no-whatsapp {
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
}

.ajo-support-row__content--no-help.ajo-support-row__content--no-whatsapp {
    grid-template-columns: minmax(0, 1fr);
}

.ajo-support-col--help {
    padding: 0 22px;
    border-left: 1px solid rgba(0, 0, 0, 0.07);
    border-right: 1px solid rgba(0, 0, 0, 0.07);
}

.ajo-support-row__content--no-whatsapp .ajo-support-col--help {
    padding-right: 0;
    border-right: none;
}

.ajo-support-col__title {
    margin: 0 0 12px;
    color: var(--ajo-text-main);
    font-family: var(--h3_typography-font-family, "Nunito Sans", sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.ajo-contact-person {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Narrow column: the photo sits above the details so long email addresses keep
   the full column width. */
.ajo-contact-person--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.ajo-contact-person--stacked .ajo-contact-person__details {
    min-width: 0;
    max-width: 100%;
}

.ajo-contact-person--stacked .ajo-contact-person__link {
    overflow-wrap: anywhere;
    font-size: 0.92rem;
}

.ajo-contact-person__image {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.ajo-contact-person__name {
    margin-bottom: 10px;
    color: var(--ajo-text-main);
    font-family: var(--h4_typography-font-family, "Nunito Sans", sans-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.ajo-contact-person__link {
    display: block;
    margin-bottom: 6px;
    color: var(--ajo-text-dark);
    text-decoration: none;
    line-height: 1.6;
}

.ajo-contact-person__link:hover,
.ajo-contact-person__link:focus {
    color: var(--primary_color, #3eb9ba);
    text-decoration: none;
}

.ajo-stages {
    margin: 18px 24px 0;
}

.ajo-stages-tabs {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.ajo-stage-tab {
    flex: 1;
    position: relative;
    padding: 15px 10px 15px 30px;
    border: none;
    background: #b9c8cd;
    color: #f7f9fa;
    cursor: pointer;
    font-family: var(--h4_typography-font-family, "Nunito Sans", sans-serif);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    clip-path: polygon(calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%, 15px 50%, 0% 0%);
    margin-left: -15px;
    transition: all 0.2s;
}

.ajo-stage-tab:first-child {
    margin-left: 0;
    clip-path: polygon(calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%, 0% 0%);
    padding-left: 20px;
}

.ajo-stage-tab.is-unlocked {
    background: linear-gradient(135deg, var(--primary_color, #3eb9ba) 0%, #289fa0 100%);
    color: #ffffff;
}

.ajo-stage-tab.is-active {
    background: linear-gradient(135deg, #efab33 0%, #e99a14 100%);
    color: #ffffff;
    z-index: 2;
}

.ajo-stage-tab.is-locked {
    background: #b9c8cd;
    color: #f7f9fa;
    cursor: not-allowed;
}

.ajo-stage-tab:hover:not(.is-locked) {
    filter: brightness(0.96);
}

.ajo-stage-panel {
    margin: 0 15px 0 0;
    padding: 18px 22px 20px;
    border-top-left-radius: 0;
}

.ajo-stage-panel__text {
    margin: 12px 0 0;
    color: var(--ajo-text-dark);
    font-size: 1rem;
    line-height: 1.75;
}

.ajo-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 18px 16px;
}

.ajo-resource-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.ajo-resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(17, 80, 94, 0.08);
}

.ajo-resource-card__preview {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square ratio */
    background: #f5f8f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ajo-resource-card__preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ajo-resource-card__placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0.3;
}

.ajo-resource-card__info {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    gap: 8px;
    min-height: 52px; /* Ensure consistent height for titles up to 2 lines */
}

.ajo-resource-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary_color, #3eb9ba);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
}

.ajo-resource-card__title {
    flex-grow: 1;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ajo-notice-card {
    border-left: 6px solid #f3a128;
}

.ajo-notice-card__content {
    padding: 18px 22px 22px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ajo-text-dark);
    background: #fffdf8;
}

.ajo-golden-ticket {
    padding: 18px 22px 22px;
}

.ajo-golden-ticket__info {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #f5f8f9;
    border: 1px dashed #bfd1d6;
    color: var(--ajo-text-dark);
}

.ajo-golden-ticket__teasers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ajo-gt-teaser {
    position: relative;
    overflow: hidden;
    background: var(--base-3, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ajo-gt-teaser:not(.ajo-gt-teaser--disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(17, 80, 94, 0.08);
}

.ajo-gt-teaser__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    /* Rendered as a button: it opens a dialog rather than navigating. */
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ajo-gt-teaser__link:hover,
.ajo-gt-teaser__link:focus {
    text-decoration: none;
    color: inherit;
}

.ajo-gt-teaser__image {
    width: 100%;
    height: 135px;
    object-fit: cover;
}

.ajo-gt-teaser__body {
    padding: 14px;
}

.ajo-gt-teaser__title {
    margin: 0 0 8px;
    color: var(--ajo-text-main);
    font-family: var(--h4_typography-font-family, "Nunito Sans", sans-serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.ajo-gt-teaser__excerpt {
    margin: 0;
    color: var(--ajo-text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ajo-gt-teaser--disabled {
    opacity: 0.55;
    filter: grayscale(0.2);
}

/* Teasers beyond the configured count carry [hidden] until "Show more" is
   pressed; stated explicitly so a theme display rule cannot reveal them. */
.ajo-gt-teaser[hidden] {
    display: none;
}

.ajo-golden-ticket__more {
    margin-top: 18px;
    text-align: center;
}

.ajo-gt-more {
    border: none;
    cursor: pointer;
}

.ajo-button {
    display: inline-block;
    padding: 12px 22px;
    background: var(--primary_color, #3eb9ba);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
    text-decoration: none;
}

/* :focus is listed because the theme repaints every button white with a teal
   text colour on hover and focus, and focus survives a click -- a button would
   stay bleached after being pressed. */
.ajo-button:hover,
.ajo-button:focus {
    background: #2f9fa0;
    color: #ffffff;
}

.ajo-button:hover {
    transform: translateY(-1px);
}

.ajo-button--disabled,
.ajo-button[aria-disabled="true"] {
    background: #b7c7cc;
    pointer-events: none;
    cursor: default;
}

.ajo-brand-card__content {
    padding: 18px 22px 24px;
    text-align: center;
    color: var(--ajo-text-dark);
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.65;
}

/* Ampel: colour choice and message field side by side */
.ajo-ampel__intro {
    margin: 0 0 14px;
    color: var(--ajo-text-dark);
    font-size: 0.95rem;
    line-height: 1.55;
}

.ajo-ampel {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* The housing makes the three lights read as an actual traffic light. */
.ajo-ampel__housing {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px;
    background: #2f3336;
    border-radius: 12px;
}

/* Dimming happens through brightness, not opacity: opacity would blend the
   light into the dark housing and turn every colour grey. */
.ajo-ampel__light {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    filter: brightness(0.45);
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ajo-ampel__light--red    { --ajo-light: #dc3545; }
.ajo-ampel__light--orange { --ajo-light: #fd7e14; }
.ajo-ampel__light--green  { --ajo-light: #28a745; }

/* The theme repaints every button white with a teal text colour on :hover and
   :focus (and :focus still applies after a click, which would bleach the light
   the candidate just picked). These lights are colour swatches, not buttons, so
   the colour is restored for each of those states explicitly -- a selector that
   merely outranks the theme is not enough when it does not declare the property
   the theme is setting. */
.ajo-ampel__light,
.ajo-ampel__light:hover,
.ajo-ampel__light:focus,
.ajo-ampel__light:focus-visible,
.ajo-ampel__light:active {
    background-color: var(--ajo-light);
    color: var(--ajo-light);
}

/* Hovering shows the light in its true colour, so the candidate sees what they
   are about to pick. */
.ajo-ampel__light:hover,
.ajo-ampel__light:focus-visible {
    filter: none;
    transform: scale(1.08);
}

/* The active light keeps its full colour; the ring sits outside the circle
   instead of eating into it, so the colour stays the loudest part. */
.ajo-ampel__light.is-active {
    filter: none;
    transform: scale(1.04);
    box-shadow:
        0 0 0 2px #2f3336,
        0 0 0 4px rgba(255, 255, 255, 0.55),
        0 0 16px 1px var(--ajo-light);
}

/* Recruiters and admins only look at the widget, so the lights stay put. */
.ajo-ampel--readonly .ajo-ampel__light {
    cursor: default;
}

.ajo-ampel--readonly .ajo-ampel__light:hover {
    filter: brightness(0.45);
    transform: none;
}

.ajo-ampel--readonly .ajo-ampel__light.is-active:hover {
    filter: none;
    transform: scale(1.04);
}

.ajo-ampel__form {
    flex: 1;
    min-width: 0;
}

.ajo-ampel__field {
    position: relative;
}

/* Veil over a submitted message: readable, but clearly not editable yet. */
.ajo-ampel__veil {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 248, 249, 0.72);
}

.ajo-ampel__edit {
    padding: 8px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.ajo-ampel__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin: 4px 0 12px;
    color: var(--ajo-text-muted);
    font-size: 0.8rem;
}

.ajo-ampel__char-count {
    order: 2;
}

.ajo-ampel__timestamp {
    order: 1;
}

/* Says why the button is greyed out, so the disabled state is not a dead end. */
.ajo-ampel__hint {
    margin: 0 0 10px;
    color: var(--ajo-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.ajo-ampel__error {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fff3f3;
    border: 1px solid #dc3545;
    color: #dc3545;
    font-size: 0.9rem;
}

.ajo-ampel__submit {
    border: none;
    cursor: pointer;
}

.ajo-ampel__submit:disabled {
    background: #b7c7cc;
    cursor: default;
    transform: none;
}

.ajo-ampel__admin-note {
    margin: 0;
    padding: 10px 14px;
    background: #f5f8f9;
    border-left: 3px solid #b9c8cd;
    color: var(--ajo-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* WhatsApp group */
.ajo-whatsapp__link {
    display: block;
    text-decoration: none;
    color: var(--ajo-text-dark);
}

.ajo-whatsapp__qr {
    display: block;
    width: 100%;
    max-width: 130px;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.ajo-whatsapp__cta {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary_color, #3eb9ba);
    font-size: 0.92rem;
    font-weight: 700;
}

.ajo-whatsapp__link:hover .ajo-whatsapp__cta {
    text-decoration: underline;
}

/* Until a job offer in the country is accepted: a greyed-out placeholder. */
.ajo-whatsapp__link--locked {
    opacity: 0.45;
    filter: grayscale(1);
    cursor: not-allowed;
    user-select: none;
}

.ajo-whatsapp__link--locked:hover .ajo-whatsapp__cta {
    text-decoration: none;
}

.ajo-whatsapp__lock-hint {
    margin: 8px 0 0;
    color: var(--ajo-text-dark);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
}

.ajo-whatsapp__note {
    margin: 8px 0 0;
    color: var(--ajo-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Modal */
.ajo-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ajo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.ajo-modal__dialog {
    position: relative;
    background: #ffffff;
    padding: 28px 28px 24px;
    max-width: 480px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.ajo-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ajo-text-muted);
    padding: 4px 8px;
}
.ajo-modal__close:hover { color: var(--ajo-text-main); }

/* Golden Ticket dialog: holds a full article, so it is wider than the help dialog. */
/* The dialog sources carry the [hidden] attribute; this keeps them hidden even
   where a theme rule would win over the user agent default. */
.ajo-gt-sources {
    display: none;
}
.ajo-modal--gt .ajo-modal__dialog {
    max-width: 720px;
}
.ajo-gt-modal__content {
    padding-right: 24px;
}
.ajo-gt-modal__content h3 {
    margin: 0 0 16px;
    color: var(--ajo-text-main);
    font-size: 1.4rem;
    line-height: 1.3;
}
.ajo-gt-modal__body {
    color: var(--ajo-text-dark);
    font-size: 1rem;
    line-height: 1.7;
}
.ajo-gt-modal__body > *:first-child { margin-top: 0; }
.ajo-gt-modal__body > *:last-child { margin-bottom: 0; }
.ajo-gt-modal__body img {
    max-width: 100%;
    height: auto;
}
.ajo-modal__dialog h3 {
    margin: 0 0 12px;
    color: var(--ajo-text-main);
    font-size: 1.25rem;
}
#ajo-help-message {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}
#ajo-help-message:focus {
    outline: none;
    border-color: var(--primary_color, #3eb9ba);
}
body.ajo-modal-open { overflow: hidden; }
.ajo-help-confirm__msg {
    margin: 0 0 20px;
    color: var(--ajo-text-dark);
    font-size: 1rem;
    line-height: 1.65;
}
.ajo-help-confirm__ok {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}
.ajo-help-confirm__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ajo-help-confirm__yes {
    border: none;
    cursor: pointer;
}
.ajo-help-confirm__no {
    background: none;
    border: none;
    padding: 12px 4px;
    color: var(--ajo-text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
}
/* Declares the background too, or the theme's button:hover paints it white. */
.ajo-help-confirm__no:hover,
.ajo-help-confirm__no:focus {
    background: none;
    color: var(--ajo-text-main);
}

@media (max-width: 900px) {
    .ajo-support-row__content,
    .ajo-support-row__content--no-help,
    .ajo-support-row__content--no-whatsapp {
        grid-template-columns: 1fr;
    }

    .ajo-support-col--help {
        padding: 18px 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .ajo-support-row__content--no-whatsapp .ajo-support-col--help {
        padding-bottom: 0;
        border-bottom: none;
    }

    .ajo-contact-person--stacked {
        flex-direction: row;
        align-items: center;
    }

    .ajo-resource-grid,
    .ajo-golden-ticket__teasers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ajo-hero__title {
        font-size: var(--h1_typography-font-size-mobile, 35px);
    }

    .ajo-hero__subtitle {
        font-size: 1rem;
    }

    .ajo-resource-grid,
    .ajo-golden-ticket__teasers {
        grid-template-columns: 1fr;
    }

    .ajo-contact-person {
        align-items: flex-start;
    }

    .ajo-contact-person--stacked {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Too narrow for a vertical light next to the field: lay the lights out
       horizontally above it so the textarea keeps the full width. */
    .ajo-ampel {
        flex-direction: column;
    }

    .ajo-ampel__housing {
        flex-direction: row;
        align-self: flex-start;
    }

    .ajo-ampel__form {
        width: 100%;
    }

    .ajo-stages {
        display: flex;
        flex-direction: column;
    }

    .ajo-stages-tabs {
        display: contents;
    }

    .ajo-stage-tab {
        flex: 1 1 100%;
        min-width: 0;
        padding-left: 20px;
        clip-path: none;
        margin-left: 0;
        margin-bottom: 2px;
    }

    .ajo-stage-tab[data-stage="application"] { order: 1; }
    #ajo-stage-panel-application { order: 2; }
    .ajo-stage-tab[data-stage="employer"] { order: 3; }
    #ajo-stage-panel-employer { order: 4; }
    .ajo-stage-tab[data-stage="job_offer"] { order: 5; }
    #ajo-stage-panel-job_offer { order: 6; }
    .ajo-stage-tab[data-stage="job_accepted"] { order: 7; }
    #ajo-stage-panel-job_accepted { order: 8; }
    .ajo-stage-tab[data-stage="job_start"] { order: 9; }
    #ajo-stage-panel-job_start { order: 10; }

    .ajo-stage-tab:first-child {
        clip-path: none;
    }

    .ajo-stage-panel {
        margin: 0 0 10px 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        border-top: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.075);
    }
}