/* Vacancy detail drawer: compact summary, clear candidate groups and mobile cards. */
.vacancy-detail { width: min(790px, 96vw); min-width: 0; background: #f5f7fa; scroll-padding-block: 115px 30px; }
.vacancy-detail .vd-head { gap: 16px; padding: 22px 24px; border-bottom-color: #d9e6de; background: linear-gradient(110deg, #edf6f0, #fff 85%); }
.vd-head > div { min-width: 0; }
.vd-eyebrow { color: #527261; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .055em; }
.vd-head h3 { margin: 6px 0; color: #173d2b; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.vd-head p { margin: 0; color: #5b6e63; font-size: 13px; line-height: 1.4; }
.vd-close { flex: 0 0 40px; height: 40px; padding: 0; border-color: #d5e2d9; border-radius: 12px; font-size: 17px; }
.vacancy-detail .vd-body { display: grid; gap: 20px; padding: 20px 24px 32px; }
.vd-overview { min-width: 0; padding: 18px; border: 1px solid #dde6e0; border-radius: 15px; background: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .025); }
.vd-status-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vd-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.vacancy-detail .btn.small { min-height: 36px; padding: 7px 11px; }
.vd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.vd-facts div { min-width: 0; }
.vd-facts dt { color: #68768a; font-size: 11px; margin-bottom: 5px; }
.vd-facts dd { margin: 0; color: #364459; font-size: 12px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.vd-cycles { margin-bottom: 16px; padding: 11px 12px; border: 1px solid #e1e6ee; border-radius: 9px; background: #f8fafc; }
.vd-cycles summary { display: flex; justify-content: space-between; gap: 8px; color: #4b5b70; font-size: 12px; font-weight: 650; cursor: pointer; }
.vd-cycles > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.vd-cycles [aria-pressed="true"] { color: #235c3c; background: #eaf4ed; border-color: #b7d2c0; }
.vd-cycles p { margin: 10px 0 0; font-size: 12px; color: #5d6d80; }
.vd-history-note { padding: 10px; border-radius: 8px; color: #5b4c78; background: #f5f1fc; font-size: 12px; line-height: 1.5; }
.vd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.vd-stat { position: relative; min-width: 0; padding: 13px 14px; border: 1px solid var(--vd-edge, #dde6ee); border-radius: 11px; background: var(--vd-tint, #f6f8fb); text-align: left; color: var(--vd-ink, #42566e); }
.vd-stat > span:first-child { display: block; padding-right: 10px; font-size: 11px; line-height: 1.45; font-weight: 650; }
.vd-stat > b { display: block; margin-top: 7px; font-size: 23px; line-height: 1; font-weight: 750; font-variant-numeric: tabular-nums; }
.vd-stat-arrow { position: absolute; top: 10px; right: 9px; font-size: 12px; opacity: .75; }
.vd-stat-link { cursor: pointer; }
.vd-stat-link:hover { box-shadow: 0 3px 9px rgba(15, 23, 42, .07); border-color: var(--vd-ink); }
.vd-stat--sage, .vd-group--sage, .vd-person--sage { --vd-ink: #286449; --vd-tint: #eff7f2; --vd-edge: #d4e6dc; }
.vd-stat--blue, .vd-group--blue, .vd-person--blue { --vd-ink: #305f94; --vd-tint: #f0f5fc; --vd-edge: #d5e2f4; }
.vd-stat--violet { --vd-ink: #695394; --vd-tint: #f6f3fc; --vd-edge: #e3daf3; }
.vd-stat--amber, .vd-group--amber, .vd-person--amber { --vd-ink: #816026; --vd-tint: #fcf7eb; --vd-edge: #eadfbf; }
.vd-group--slate, .vd-person--slate { --vd-ink: #526077; --vd-tint: #f1f4f8; --vd-edge: #dce3ec; }
.vd-group--rose, .vd-person--rose { --vd-ink: #9a4450; --vd-tint: #fdf2f3; --vd-edge: #efd7db; }
.vd-joining-counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; margin: 12px 0 16px; color: #67768a; font-size: 11px; }
.vd-joining-counts b { color: #36485d; font-size: 12px; }
.vd-timing { display: flex; flex-wrap: wrap; gap: 14px 24px; padding-top: 14px; border-top: 1px solid #e8ecf1; }
.vd-timing > div { min-width: 100px; flex: 1; }
.vd-timing span { display: block; margin-bottom: 6px; font-size: 11px; color: #67768a; }
.vd-timing b { color: #304c40; font-size: 18px; font-variant-numeric: tabular-nums; }
.vd-timing small { margin-left: 5px; font-size: 11px; color: #738178; font-weight: 500; }
.vd-timing p { flex-basis: 100%; margin: -2px 0 0; font-size: 11px; line-height: 1.5; color: #6a7887; }
.vd-placement-note { display: grid; gap: 6px; margin-top: 15px; padding: 12px; color: #246449; background: #eef7f1; border-radius: 9px; font-size: 12px; }
.vd-section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.vd-section-head h4 { margin: 0; font-size: 16px; color: #24364a; }
.vd-section-head > span { color: #69788b; font-size: 12px; }
.vd-group { min-width: 0; border: 1px solid var(--vd-edge); border-radius: 14px; margin-top: 12px; background: #fff; }
.vd-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border-radius: 13px; color: var(--vd-ink); background: var(--vd-tint); cursor: pointer; list-style: none; }
.vd-group[open] > summary { border-radius: 13px 13px 0 0; border-bottom: 1px solid var(--vd-edge); }
.vd-group-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; }
.vd-group-count { display: inline-grid; place-items: center; min-width: 25px; height: 23px; padding: 0 6px; border-radius: 7px; background: #fff; border: 1px solid var(--vd-edge); font-size: 11px; font-variant-numeric: tabular-nums; }
.vd-chevron { display: inline-block; font-size: 18px; line-height: 1; }
details[open] > summary > .vd-chevron { transform: rotate(180deg); }
.vd-group-hint { margin: 12px 14px 0; color: #68778a; font-size: 11px; line-height: 1.5; }
.vd-people { display: grid; gap: 11px; padding: 12px; }
.vd-person { min-width: 0; padding: 15px; border: 1px solid #e1e7ee; border-left: 3px solid var(--vd-edge); border-radius: 11px; background: #fff; }
.vd-person-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vd-person-top > div { min-width: 0; flex: 1; }
.vd-person h5 { margin: 0; color: #233549; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.vd-person-top p { margin: 4px 0 0; color: #6a788b; font-size: 11px; line-height: 1.5; }
.vacancy-detail .chip { white-space: normal; line-height: 1.35; text-align: center; }
.vd-person-top .chip { flex-shrink: 0; max-width: 45%; font-size: 10px; }
.vd-person-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; margin: 14px 0; }
.vd-person-meta div { min-width: 0; }
.vd-person-meta dt { color: #718094; font-size: 10px; line-height: 1.4; margin-bottom: 3px; }
.vd-person-meta dd { margin: 0; color: #425269; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.vd-person-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 11px; border-top: 1px solid #eef1f5; }
.vd-person-foot > div { display: grid; gap: 5px; min-width: 0; font-size: 10px; line-height: 1.5; color: #758194; }
.vd-person-foot .btn { flex-shrink: 0; font-size: 11px; }
.vd-next { color: #376993; }
.vd-milestone { display: block; margin-top: 12px; padding: 8px 10px; border-radius: 7px; background: #f0f7f3; color: #326449; font-size: 11px; line-height: 1.5; }
.vd-empty, .vd-intake-note { border: 1px solid #dfe6ee; border-radius: 11px; padding: 14px; background: #fff; color: #68778a; font-size: 12px; line-height: 1.5; }
.vd-pool { min-width: 0; padding: 15px; border-radius: 13px; border: 1px solid #d6e6dc; background: #f0f7f2; }
.vd-pool > summary { display: flex; justify-content: space-between; gap: 12px; color: #32634a; cursor: pointer; font-size: 13px; font-weight: 650; list-style: none; }
.vd-pool > summary b { margin-left: 6px; }
.vd-pool > p { margin: 12px 0; font-size: 11px; color: #597565; line-height: 1.5; }
.vd-pool-person { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 12px; margin-top: 9px; background: #fff; border-radius: 10px; border: 1px solid #dce8e1; font-size: 12px; }
.vd-pool-person > div:first-child { flex: 1; min-width: 140px; }
.vd-pool-person span { display: block; margin-top: 4px; color: #6c7b70; font-size: 11px; }
.vd-pool-person > div:last-child { display: flex; gap: 6px; }
.vd-notes { padding: 16px; border: 1px solid #dfe6ee; border-radius: 12px; background: #fff; }
.vd-notes h4 { margin: 0 0 9px; color: #435368; font-size: 13px; }
.vd-notes p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #69778a; font-size: 12px; line-height: 1.6; }
.vd-footer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vacancy-detail :is(button, summary):focus-visible { outline: 3px solid #55856a; outline-offset: 3px; }
.vacancy-detail summary::-webkit-details-marker { display: none; }

@media(max-width: 720px) {
  .vacancy-detail { width: 100vw; }
  .vacancy-detail .vd-head { padding: 17px 16px; }
  .vd-head h3 { font-size: 22px; }
  .vacancy-detail .vd-body { padding: 14px 12px calc(24px + env(safe-area-inset-bottom)); gap: 18px; }
  .vd-overview { padding: 14px; }
  .vd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vd-stat { padding: 12px; }
  .vd-stat > b { font-size: 22px; }
  .vd-facts { gap: 10px; }
  .vd-facts dd { font-size: 11px; }
  .vacancy-detail .btn.small { min-height: 42px; }
  .vd-group > summary { min-height: 48px; padding: 12px; }
  .vd-people { padding: 9px; gap: 10px; }
  .vd-person { padding: 12px; }
  .vd-person-top { flex-wrap: wrap; gap: 8px; }
  .vd-person-top > div { flex-basis: 100%; }
  .vd-person-top .chip { max-width: 100%; }
  .vd-person-meta { gap: 10px 12px; }
  .vd-person-foot { align-items: flex-start; }
  .vd-person-foot > div { flex: 1; }
  .vd-person-foot .btn { max-width: 46%; white-space: normal; }
  .vd-actions { gap: 6px; }
  .vd-actions .btn { font-size: 11px; }
  .vd-footer-actions .btn { flex: 1 1 auto; min-height: 44px; }
}
