/* HR & ESS deck: styles on top of styles.css (shared with platform-overview) */

/* ---------- employee journey ---------- */
.steps.j8 { grid-template-columns: repeat(8, 1fr); }
.steps.j8 .dot { width: 64px; height: 64px; font-size: 24px; }
.road.j8 .road-line { top: 30px; }
.j-detail { margin-top: 22px; padding: 20px 24px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; min-height: 168px; }
.j-detail h3 { margin: 0 0 8px; font-size: 21px; }
.j-detail p { margin: 0; color: #c7d7f1; line-height: 1.65; font-size: 15px; }
.j-detail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.j-detail li { display: flex; gap: 10px; font-size: 14.5px; color: #c7d7f1; }
.j-detail li::before { content: "▸"; color: var(--cyan); }
.j-detail .who { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.j-detail .who em { font-style: normal; font-size: 12px; padding: 3px 9px; border-radius: 6px; background: rgba(30, 107, 255, .18); color: var(--cyan2); }

/* ---------- hub ---------- */
.hub { width: 100%; max-height: 58vh; }
.hub .ring-o { fill: none; stroke: var(--line); stroke-dasharray: 3 9; }
.hub .spoke { stroke: rgba(34, 211, 238, .45); stroke-width: 1.4; stroke-dasharray: 5 8; animation: dash 1.4s linear infinite; }
.hub .node rect { fill: rgba(8, 28, 64, .9); stroke: var(--line-strong); }
.hub .node:hover rect { stroke: var(--cyan); }
.hub .core circle { fill: url(#coreG); stroke: var(--cyan); }
.hub text { fill: var(--text); font-family: var(--font); text-anchor: middle; }
.hub .t-sm { fill: var(--muted); font-size: 12px; }
.hub .acc rect { stroke: rgba(245, 158, 11, .7); }
.hub .acc-link { stroke: var(--warn); stroke-width: 2; stroke-dasharray: 6 10; animation: dash 1.2s linear infinite; fill: none; }
.hub .orbit { transform-origin: 450px 270px; animation: spin 60s linear infinite; }

/* ---------- recruitment kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 14px; }
.kcol { background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 8px; min-height: 250px; display: flex; flex-direction: column; gap: 7px; }
.kcol h5 { margin: 0 0 4px; font-size: 12px; color: var(--cyan2); font-weight: 600; display: flex; justify-content: space-between; }
.kcol h5 b { font-family: var(--mono); color: var(--muted); font-weight: 400; }
.kcard { background: rgba(232, 241, 255, .95); color: #0f172a; border-radius: 9px; padding: 7px 8px; font-size: 11.5px; line-height: 1.35; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); animation: kin .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.kcard small { display: block; color: #475569; font-size: 10.5px; }
.kcard i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: #0891b2; }
.kcard.hot i { background: #f59e0b; }
.kcard.ok { outline: 2px solid var(--good); }
@keyframes kin { from { opacity: 0; transform: translateY(-10px) scale(.92); } }
.req-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- onboarding checklist ---------- */
.onb { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px; align-items: center; }
.ring-prog { width: 180px; height: 180px; }
.ring-prog circle { fill: none; stroke-width: 12; }
.ring-prog .bgc { stroke: rgba(255, 255, 255, .08); }
.ring-prog .fg { stroke: url(#ringG); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 90px 90px; transition: stroke-dashoffset .6s ease; }
.ring-prog text { fill: var(--text); font-family: var(--mono); text-anchor: middle; }
.checklist { display: grid; gap: 8px; }
.checklist div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(0, 0, 0, .2); font-size: 14.5px; transition: .35s; color: var(--muted); }
.checklist div span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; flex: none; transition: .35s; }
.checklist div small { margin-left: auto; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.checklist div.done { color: var(--text); background: rgba(52, 211, 153, .08); }
.checklist div.done span { background: var(--good); border-color: var(--good); color: #052e1c; }
.convert { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.convert .card { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; }
.convert .card b { display: block; font-size: 15px; }
.convert .arrow-r { color: var(--cyan); font-size: 22px; }

/* ---------- generic lit flow (time, payroll, offboarding) ---------- */
.flow { display: grid; gap: 12px; margin-top: 22px; position: relative; }
.flow.c4 { grid-template-columns: repeat(4, 1fr); }
.flow.c5 { grid-template-columns: repeat(5, 1fr); }
.flow > * { min-width: 0; }
.fstage { padding: 16px; opacity: .4; transition: .45s; position: relative; }
.fstage.lit { opacity: 1; border-color: var(--cyan); box-shadow: 0 0 30px rgba(34, 211, 238, .22); }
.fstage.acc.lit { border-color: var(--warn); box-shadow: 0 0 30px rgba(245, 158, 11, .22); }
.fstage .no { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--cyan); }
.fstage.acc .no { color: var(--warn); }
.fstage h4 { margin: 6px 0 8px; font-size: 16px; }
.fstage p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.fstage .doc { margin-top: 10px; white-space: pre-wrap; }
.benefit-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 16px; }
.benefit-grid div { padding: 12px; text-align: center; font-size: 13.5px; }
.benefit-grid span { display: block; font-size: 22px; margin-bottom: 4px; }

/* ---------- performance ---------- */
.cycle { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; justify-self: center; }
.cycle .c-ring { position: absolute; inset: 12%; border-radius: 50%; border: 2px dashed var(--line-strong); animation: spin 40s linear infinite; }
.cycle .c-core { position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 600; font-size: 16px; background: radial-gradient(circle, rgba(34, 211, 238, .35), rgba(30, 107, 255, .15) 65%, transparent 72%); }
.cycle .c-node { position: absolute; width: 118px; margin: -30px 0 0 -59px; text-align: center; font-size: 13px; padding: 8px 6px; transition: .35s; }
.cycle .c-node.lit { border-color: var(--cyan); box-shadow: 0 0 22px rgba(34, 211, 238, .35); background: rgba(30, 107, 255, .35); }
.cycle .c-node span { display: block; font-size: 20px; }
.radar { width: 100%; max-width: 380px; justify-self: center; }
.radar .grid { fill: none; stroke: rgba(125, 211, 252, .18); }
.radar .axis { stroke: rgba(125, 211, 252, .18); }
.radar .target { fill: rgba(245, 158, 11, .08); stroke: var(--warn); stroke-dasharray: 5 5; }
.radar .now { fill: rgba(34, 211, 238, .25); stroke: var(--cyan); stroke-width: 2; transition: all 1.2s cubic-bezier(.2, .8, .2, 1); }
.radar text { fill: var(--ice); font-size: 12px; font-family: var(--font); text-anchor: middle; }
.legend { display: flex; gap: 16px; justify-content: center; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- paths (start) ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.path { padding: 22px 24px; }
.path .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--warn); }
.path.new .tag { color: var(--cyan); }
.path h3 { margin: 6px 0 12px; font-size: 20px; }
.path ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #c7d7f1; font-size: 14.5px; line-height: 1.55; }

@media (max-height: 960px) and (min-width: 1101px) {
  .kcol { min-height: 200px; }
  .checklist div { padding: 7px 12px; }
}
@media (max-width: 1100px) {
  .steps.j8 { grid-template-columns: repeat(4, 1fr); }
  .j-detail, .onb, .paths { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(3, 1fr); }
  .flow.c4, .flow.c5 { grid-template-columns: 1fr 1fr; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .onb .ring-prog { justify-self: center; }
}
@media (max-width: 640px) {
  .steps.j8 { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .flow.c4, .flow.c5 { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .cycle .c-node { width: 92px; margin-left: -46px; font-size: 11.5px; }
}
.kmore { font-size: 11.5px; color: var(--muted); text-align: center; padding: 4px; border: 1px dashed var(--line); border-radius: 8px; }
.kcol { min-height: 0; }
.kanban { min-height: 268px; align-items: start; }
.hero-robot { max-width: 400px; }
.hub { max-height: 50vh; }
@media (max-height: 960px) and (min-width: 1101px) { .hub { max-height: 46vh; } .hero-robot { max-width: 360px; } }
[data-id="s01-intro"] h1 { font-size: clamp(30px, 3.7vw, 54px); }
.nw { white-space: nowrap; }
.cycle .c-node em.cl { font-style: normal; }
html[lang="en"] [data-id="s01-intro"] h1 { font-size: clamp(28px, 3.3vw, 48px); }
