/* HR systems page (service-hr.html) only */

/* ---------- Hero ---------- */
.hr-hero__records { width: 268px; }
.hr-hero__onboard { width: 236px; }
.ui-card--dark .ui-steps__labels { color: var(--c-muted-d); }
.hr-hero__note {
  display: flex; align-items: center; gap: 12px; max-width: 540px; margin-top: 6px; padding-top: 22px;
  border-top: 1px solid var(--c-line-d); font-size: 14.5px; line-height: 1.55; color: var(--c-muted-d);
}
.hr-hero__note-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(200, 241, 105, 0.12); color: var(--c-lime); }
.hr-hero__note-ico svg { width: 18px; height: 18px; }

/* ---------- Scene ---------- */
.hr-scene { gap: 22px; }
.hr-scene__changes { display: grid; gap: 12px; margin-top: 4px; }
.hr-scene__chips { gap: 8px; }
.hr-scene__chips .chip { background: #fff; }
.hr-answer {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 6px;
  padding: 20px 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--c-line); box-shadow: inset 3px 0 0 var(--c-lime);
}
.hr-answer__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--c-black); color: var(--c-lime); }
.hr-answer__ico svg { width: 20px; height: 20px; }
.hr-answer__label { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-teal); }
.hr-answer p { font-size: 15.5px; }

.hr-profile {
  position: absolute; left: 7%; top: 11%; width: 64%; display: grid; gap: 14px; padding: 18px;
  border-radius: 16px; background: #fff; color: var(--c-text); box-shadow: var(--shadow-card); font-size: 12px;
}
.hr-profile__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.hr-profile__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--c-mint); color: var(--c-forest); }
.hr-profile__avatar svg { width: 22px; height: 22px; }
.hr-profile__name { flex: 1; min-width: 0; display: block; }
.hr-profile__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hr-profile__field { display: grid; gap: 8px; padding: 11px 12px; border-radius: 10px; background: var(--c-mist); color: var(--c-muted); font-size: 11.5px; line-height: 1.2; }
.hr-profile__docs { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--c-line); }
.hr-profile__docs-lines { flex: 1; display: block; }
.hr-scene__log { width: 252px; }

/* ---------- Modules bento ---------- */
.hr-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hr-tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--c-panel); border: 1px solid var(--c-line-d); color: var(--c-text-d);
}
.hr-tile__visual {
  position: relative; flex: 1; min-height: 300px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(200, 241, 105, 0.16), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgba(31, 107, 88, 0.42), transparent 62%),
    var(--c-panel-2);
}
.hr-tile__visual::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent); mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent);
}
.hr-tile__body { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.6vw, 32px); border-top: 1px solid var(--c-line-d); }
.hr-tile__body p { color: var(--c-muted-d); font-size: 15.5px; max-width: 520px; }
.hr-tile__chips { gap: 6px; margin-top: 8px; }

.hr-tile--records { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.hr-tile--records .hr-tile__visual { min-height: 420px; }
.hr-tile--records .hr-tile__body { align-content: center; padding: clamp(28px, 4vw, 56px); border-top: 0; border-left: 1px solid var(--c-line-d); }

.hr-tile--note {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px; padding: 22px 26px;
  background: var(--c-lime); color: var(--c-lime-ink); border-color: transparent;
}
.hr-tile--note p { flex: 1; font-size: 17px; font-weight: 500; line-height: 1.45; }
.hr-tile__note-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(13, 26, 6, 0.1); }
.hr-tile__note-ico svg { width: 20px; height: 20px; }

/* Directory mock */
.hr-dir {
  position: absolute; left: 7%; right: 7%; top: 50%; transform: translateY(-58%);
  padding: 6px 16px; border-radius: 14px; background: #fff; color: var(--c-text); box-shadow: var(--shadow-card); font-size: 12px;
}
.hr-dir__row { display: grid; grid-template-columns: 28px minmax(0, 1.3fr) minmax(0, 1fr) 78px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--c-line); }
.hr-dir__row:first-child { border-top: 0; }
.hr-dir__row--head { padding: 10px 0 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.hr-dir__row .chip { justify-self: start; }
.hr-dir__av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(140deg, #e3eee9, #cfe0d6); }
.hr-scope { width: 252px; }
.hr-scope__bar { width: 84px; flex: none; }

/* Calendar mock */
.hr-cal {
  position: absolute; left: 7%; top: 10%; width: 56%; padding: 14px;
  border-radius: 14px; background: #fff; color: var(--c-text); box-shadow: var(--shadow-card);
}
.hr-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hr-cal__nav { display: flex; gap: 6px; color: var(--c-muted); }
.hr-cal__nav svg { width: 14px; height: 14px; }
.hr-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.hr-cal__grid i { aspect-ratio: 1; border-radius: 5px; background: var(--c-mist); }
.hr-cal__grid i.is-in { background: rgba(31, 107, 88, 0.2); }
.hr-cal__grid i.is-leave { background: var(--c-lime); }
.hr-cal__grid i.is-today { background: var(--c-black); }
.hr-cal__legend { display: flex; gap: 14px; margin-top: 12px; font-size: 11px; color: var(--c-muted); }
.hr-cal__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.hr-cal__legend b { width: 10px; height: 10px; border-radius: 3px; }
.hr-cal__legend b.is-in { background: rgba(31, 107, 88, 0.3); }
.hr-cal__legend b.is-leave { background: var(--c-lime); }
.hr-leave { width: 220px; min-width: 0; }

/* Checklist mock */
.hr-steps-card { position: absolute; left: 7%; top: 12%; width: 64%; min-width: 0; }
.hr-owner { width: 24px; height: 24px; border-radius: 50%; background: var(--c-mint); color: var(--c-forest); }
.hr-owner svg { width: 13px; height: 13px; }
.hr-owner--todo { background: var(--c-mist); color: var(--c-muted); }
.hr-progress { width: 168px; min-width: 0; }

/* Lifecycle */
.hr-cycle {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); align-items: start;
  margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--c-line-d);
}
.hr-cycle__head { display: grid; gap: 12px; }
.hr-cycle__track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hr-cycle__track::before {
  content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, var(--c-lime), rgba(200, 241, 105, 0.12));
}
.hr-cycle__step { position: relative; display: grid; gap: 8px; align-content: start; }
.hr-cycle__dot { width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; background: var(--c-black); border: 1.5px solid var(--c-lime); color: var(--c-lime); }
.hr-cycle__dot svg { width: 20px; height: 20px; }
.hr-cycle__step strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.hr-cycle__step > span:last-child { font-size: 14.5px; line-height: 1.55; color: var(--c-muted-d); }

/* ---------- Roles ---------- */
.hr-role { gap: 14px; background: var(--c-mist); border-color: transparent; }
.hr-role__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.hr-role .card__icon { background: #fff; }
.hr-role .check-list { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.hr-role .check-list li { font-size: 14.5px; }

/* ---------- Records & access ---------- */
.hr-access { align-items: start; }
.hr-access__media { aspect-ratio: 1 / 1.02; position: sticky; top: calc(var(--header-h) + 32px); }
.hr-matrix-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.6;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hr-matrix { position: absolute; left: 8%; right: 8%; top: 9%; z-index: 1; min-width: 0; padding: 18px 20px; }
.hr-matrix__table { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); align-items: stretch; margin-top: 4px; }
.hr-matrix__table > span { display: flex; align-items: center; justify-content: center; min-height: 46px; border-top: 1px solid var(--c-line); font-size: 12.5px; }
.hr-matrix__table > .hr-matrix__corner,
.hr-matrix__table > .hr-matrix__col {
  min-height: 30px; border-top: 0; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-muted);
}
.hr-matrix__table > .hr-matrix__row { justify-content: flex-start; font-size: 13px; font-weight: 600; }
.hr-cell { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; }
.hr-cell svg { width: 13px; height: 13px; }
.hr-cell--ok { background: var(--c-mint); color: var(--c-forest); }
.hr-cell--todo { border: 1.5px dashed #b9c4be; color: var(--c-muted); }
.hr-cell--none { color: #b9c4be; }
.hr-cell-chip { height: 22px; padding: 0 8px; font-size: 11px; }
.hr-matrix__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-line); font-size: 11.5px; color: var(--c-muted); }
.hr-matrix__legend > span { display: inline-flex; align-items: center; gap: 7px; }
.hr-matrix__legend .hr-cell { width: 18px; height: 18px; font-size: 10px; }
.hr-matrix__legend .hr-cell svg { width: 11px; height: 11px; }
.hr-move { width: 252px; }

/* ---------- Process panel ---------- */
.hr-process__steps .step-card { min-height: 0; }
.hr-duties { display: grid; gap: 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--c-line); }
.hr-duty { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); }
.hr-duty .muted { font-size: 15px; }
.hr-duty--ac { --tone-muted: var(--c-muted-d); background: var(--c-black); color: var(--c-text-d); border-color: transparent; }
.hr-duty__who { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.hr-duty__ico { width: 36px; height: 36px; border-radius: 10px; background: var(--c-mint); color: var(--c-forest); }
.hr-duty--ac .hr-duty__ico { background: var(--c-lime); color: var(--c-lime-ink); }
.hr-duty__ico svg { width: 18px; height: 18px; }

/* ---------- Preparation checklist ---------- */
.hr-prep-wrap { align-items: center; }
.hr-prep__actions { gap: 22px; margin-top: 8px; }
.hr-prep { overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow-soft); color: var(--c-text); }
.hr-prep__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--c-line); }
.hr-prep__title { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.hr-prep__item {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; gap: 14px; align-items: center;
  padding: 15px 22px; border-top: 1px solid var(--c-line); cursor: pointer; transition: background-color 0.2s;
}
.hr-prep__item:first-child { border-top: 0; }
.hr-prep__item:hover { background: var(--c-mist); }
.hr-prep__item input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hr-prep__num { font-family: var(--font-mono); font-size: 12.5px; color: var(--c-muted); transition: color 0.2s; }
.hr-prep__text { font-size: 15.5px; font-weight: 500; transition: color 0.2s; }
.hr-prep__box { width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed #b9c4be; color: transparent; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.hr-prep__box svg { width: 13px; height: 13px; }
.hr-prep__item input:checked ~ .hr-prep__box { background: var(--c-lime); border: 1.5px solid var(--c-lime); color: var(--c-lime-ink); }
.hr-prep__item input:checked ~ .hr-prep__text { color: var(--c-muted); }
.hr-prep__item input:checked ~ .hr-prep__num { color: var(--c-teal); }
.hr-prep__item input:focus-visible ~ .hr-prep__box { outline: 2px solid var(--c-teal); outline-offset: 3px; }

/* ---------- Related ---------- */
.hr-xp { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: clamp(32px, 4vw, 48px); padding-top: 28px; border-top: 1px solid var(--c-line-d); }
.hr-xp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-xp__chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 11px; border-radius: 999px;
  border: 1px solid var(--c-line-d2); color: var(--c-text-d); font-size: 14px; font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.hr-xp__chip svg { width: 16px; height: 16px; color: var(--c-lime); transition: color 0.2s; }
.hr-xp__chip:hover { background: var(--c-lime); border-color: var(--c-lime); color: var(--c-lime-ink); }
.hr-xp__chip:hover svg { color: var(--c-lime-ink); }

/* ---------- FAQ ---------- */
.hr-faq { align-items: start; }
.hr-faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); justify-items: start; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hr-tile--records { grid-template-columns: minmax(0, 1fr); }
  .hr-tile--records .hr-tile__body { border-left: 0; border-top: 1px solid var(--c-line-d); }
  .hr-cycle { grid-template-columns: minmax(0, 1fr); }
  .hr-access__media { position: relative; top: auto; }
  .hr-faq .section-head { position: static; }
}
@media (max-width: 760px) {
  .hr-bento { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hr-hero__media { aspect-ratio: 1 / 0.92; }
  .hr-hero__records { width: 236px; }
  .hr-hero__onboard { width: 214px; }
  .hr-scene__media { aspect-ratio: 1 / 0.9; }
  .hr-profile { left: 5%; top: 6%; width: 80%; padding: 13px; gap: 10px; }
  .hr-profile__fields { gap: 6px; }
  .hr-profile__docs { display: none; }
  .hr-tile__visual .ui-card.overlay { transform: scale(0.82); transform-origin: right bottom; }
  .hr-tile__visual .ui-card.overlay--tr { transform-origin: right top; }
  .hr-tile__visual .float { animation: none; }
  .hr-tile--records .hr-tile__visual { min-height: 380px; }
  .hr-dir { left: 4%; right: 4%; padding: 4px 12px; }
  .hr-dir__row { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 0.8fr) 64px; gap: 10px; }
  .hr-dir__av { width: 24px; height: 24px; }
  .hr-cal { width: 64%; left: 5%; }
  .hr-steps-card { width: 80%; left: 5%; }
  .hr-tile--note { flex-wrap: wrap; }
  .hr-tile--note .btn { flex: 1 1 100%; }
  .hr-cycle__track { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hr-cycle__track::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--c-lime), rgba(200, 241, 105, 0.12)); }
  .hr-cycle__step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
  .hr-cycle__dot { grid-row: span 2; margin: 0; }
  .hr-access__media { aspect-ratio: 4 / 5; }
  .hr-matrix { left: 4%; right: 4%; top: 4%; padding: 12px 12px; }
  .hr-matrix__table > span { min-height: 38px; font-size: 11.5px; }
  .hr-matrix__table > .hr-matrix__row { font-size: 12px; }
  .hr-cell-chip { padding: 0 6px; font-size: 10px; }
  .hr-prep__item { grid-template-columns: 26px minmax(0, 1fr) 24px; gap: 10px; padding: 14px 16px; }
  .hr-prep__head { padding: 16px; }
  .hr-prep__text { font-size: 15px; }
}
