/* Shared fallback: R5C head styles. Live shell styles replace this on success. */

    @media (min-width: 761px) {
        .ki-home > .ki-hero {
            container-type: inline-size;
            min-height: 0;
            align-items: flex-start;
        }
        .ki-home > .ki-hero > #ki-hero-rotating-photo {
            background-image: var(--ki-home-desktop-photo, url('/pic/kayroma-home-hero-v1/kayroma-oferty-pracy-001.webp')) !important;
            background-size: cover;
            background-position: center top;
            background-repeat: no-repeat;
        }
        .ki-home > .ki-hero > .ki-hero-inner {
            box-sizing: border-box;
            min-height: 0; /* KAYROMA PUBLIC HERO AUTO HEIGHT V1 */
            padding: 28px 0 24px;
        }
        .ki-home > .ki-hero .ki-hero-brand {
            display: none !important;
        }
        .ki-home > .ki-hero .ki-search-panel {
            margin-top: 26px;
        }
    }
    

    @media (max-width: 760px) {
        .ki-home > .ki-hero {
            container-type: inline-size;
            min-height: 0;
            background: #1c1735;
            align-items: flex-start;
        }
        .ki-home > .ki-hero > #ki-hero-rotating-photo,
        .ki-home > .ki-hero > .ki-hero-overlay {
            inset: 0 0 auto;
            width: 100%;
            height: auto;
            aspect-ratio: 1400 / 428;
            pointer-events: none;
        }
        .ki-home > .ki-hero > #ki-hero-rotating-photo {
            background-image: var(--ki-home-desktop-photo, url('/pic/kayroma-home-hero-v1/kayroma-oferty-pracy-001.webp')) !important;
            background-size: 100% auto;
            background-position: center top;
            background-repeat: no-repeat;
        }
        .ki-home > .ki-hero > .ki-hero-overlay {
            background: linear-gradient(180deg, transparent 60%, #1c1735 100%);
        }
        .ki-home > .ki-hero > .ki-hero-inner {
            box-sizing: border-box;
            padding-top: calc(30.5714285714vw + 8px);
            padding-top: calc(30.5714285714cqw + 8px);
        }
        .ki-home > .ki-hero .ki-hero-brand {
            display: none !important;
        }
        .ki-home > .ki-hero .ki-search-panel {
            margin-top: 24px;
        }
    }
    

/* KAYROMA PUBLIC HERO GRADIENT V4 */
@media (min-width: 761px) {
    .ki-home > .ki-hero > .ki-hero-overlay {
        -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 60%);
        mask-image: linear-gradient(to right, #000 0%, transparent 60%);
    }
}


/* KAYROMA PUBLIC HERO POSITION V1 */
@media (min-width: 761px) {
    .ki-home > .ki-hero {
        overflow: hidden;
    }
    .ki-home > .ki-hero > #ki-hero-rotating-photo {
        object-position: center 38% !important;
        background-position: center 38% !important;
    }
}
/* END KAYROMA PUBLIC HERO POSITION V1 */


.ki-home[data-kr-shared-job-hero], .ki-home[data-kr-shared-job-footer] { min-height:0; margin:0; padding:0; width:100%; max-width:none; }


/* KAYROMA MOBILE REPAIR V1 */
@media (max-width:760px) {
  .ki-home > .ki-hero { position:relative; display:block !important; min-width:0; width:100%; box-sizing:border-box; }
  .ki-home > .ki-hero > #ki-hero-rotating-photo,
  .ki-home > .ki-hero > .ki-hero-overlay {
    position:absolute !important; inset:0 0 auto !important;
    width:100% !important; height:auto !important;
    aspect-ratio:1400 / 428 !important;
  }
  .ki-home > .ki-hero > #ki-hero-rotating-photo {
    background-size:100% auto !important; background-position:center top !important;
  }
  .ki-home > .ki-hero > .ki-hero-inner {
    position:relative; display:block !important; width:100% !important;
    max-width:100% !important; min-width:0; box-sizing:border-box;
    margin:0 !important; padding-inline:16px !important;
  }
  .ki-home > .ki-hero .ki-hero-copy,
  .ki-home > .ki-hero .ki-search-panel {
    width:100% !important; max-width:100% !important; min-width:0;
    box-sizing:border-box; margin-inline:0 !important;
  }
  .ki-home > .ki-hero .ki-hero-copy,
  .ki-home > .ki-hero .ki-hero-link { overflow-wrap:anywhere; white-space:normal; }
  .ki-home > .ki-hero .ki-search-heading > div { min-width:0; }
  body.kr-job-tiles-v2 .km-v21-layout > *,
  body.kr-job-tiles-v2 .km-v21-offer,
  body.kr-job-tiles-v2 .public-jobs-full-card,
  body.kr-job-tiles-v2 .public-jobs-full-card__content,
  body.kr-job-tiles-v2 .public-jobs-full-card__section,
  body.kr-job-tiles-v2 .public-jobs-value-block,
  body.kr-job-tiles-v2 .kr-job-layout-hero,
  body.kr-job-tiles-v2 .km-v24-promo-content {
    min-width:0 !important; max-width:100% !important; box-sizing:border-box;
  }
  body.kr-job-tiles-v2 .kr-job-inline-nav {
    margin:0 0 12px !important; width:100% !important;
    min-width:0; max-width:100%; box-sizing:border-box;
  }
  body.kr-job-tiles-v2 .kr-search-nav-v6 {
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
  }
  body.kr-job-tiles-v2 .kr-job-layout-hero__title,
  body.kr-job-tiles-v2 .kr-job-layout-hero__eyebrow,
  body.kr-job-tiles-v2 .public-jobs-full-card__section h2,
  body.kr-job-tiles-v2 .public-jobs-value-block,
  body.kr-job-tiles-v2 .public-jobs-value-block :is(strong,span,a),
  body.kr-job-tiles-v2 .public-jobs-full-card__company,
  body.kr-job-tiles-v2 .km-v24-promo-content :is(h2,span,p,a),
  body.kr-job-tiles-v2 .kr-search-nav-v6 a {
    min-width:0 !important; max-width:100% !important;
    white-space:normal !important; overflow-wrap:anywhere !important;
    word-break:normal !important;
  }
  body.kr-job-tiles-v2 .public-jobs-description { overflow-wrap:anywhere !important; }
}


/* Only the new PRV logout link inside the existing MATCH panel. */
.kr-prv-match-logout {
    display: block;
    margin: 0 0 12px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #EDE8FA;
    border: 1px solid #7770A6;
    color: #30254F;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.kr-prv-match-logout:hover,
.kr-prv-match-logout:focus-visible {
    background: #7770A6;
    color: #fff;
}


/* Hide only hamburger logout on mobile. */
@media (max-width: 767px) {
    .kr-hamburger-logout {
        display: none !important;
    }
}


.kr-guest-auth { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; }
.kr-guest-auth__button { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(87,68,142,.25); border-radius: 12px; background: #EDE8FA; cursor: pointer; }
.kr-guest-auth__button:focus-visible { outline: 2px solid #57448E; outline-offset: 2px; }
.kr-guest-auth__dot { width: 13px; height: 13px; border-radius: 50%; background: #9CA3AF; box-shadow: 0 0 0 3px rgba(156,163,175,.18); }
.kr-guest-auth:has(.kr-guest-auth__panel:not([hidden])) { z-index: 10030; }
.kr-guest-auth__button { position: relative; z-index: 10022; }
.kr-guest-auth__backdrop {
    position: fixed;
    inset: 0;
    z-index: 10020;
    background: rgba(48,37,79,.42);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}
.kr-guest-auth__backdrop[hidden] { display: none !important; }
.kr-guest-auth__panel {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 10021;
    padding: 24px;
    background: #EDE8FA;
    color: #30254F;
    border: 1px solid #7770A6;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(48,37,79,.35);
}
.kr-guest-auth__panel[hidden] { display: none !important; }
.kr-guest-auth__title { margin: 0 0 14px; color: #30254F; font-weight: 700; font-size: 14px; line-height: 1.4; }
.kr-guest-auth__links { display: flex; gap: 8px; }
.kr-guest-auth__links a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 9px; font-size: 12px; font-weight: 700; text-decoration: none; background: #7770A6; color: #fff; }
.kr-guest-auth__links a:last-child { background: #fff; color: #57448E; border: 1px solid #7770A6; }


/* KAYROMA ORG PROFESSIONAL BRAND V1.2.3 */

header .logo .kr-org-professional-brand {
    display:inline-flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    width:max-content;
    max-width:100%;
    line-height:1;
}

header .logo .kr-org-professional-brand .logo__image {
    display:block;
    flex:none;
}

header .logo .kr-org-professional-brand__label {
    display:block;
    align-self:flex-end;
    margin-top:1px;
    padding-right:1px;
    color:#7770A6;
    font-family:inherit;
    font-size:9px;
    font-weight:600;
    letter-spacing:3px;
    line-height:1.15;
    text-align:right;
    white-space:nowrap;
    text-transform:uppercase;
}

@media(max-width:760px) {
    header .logo .kr-org-professional-brand__label {
        font-size:7px;
        letter-spacing:2px;
    }
}
