.job-action-dock { display: none; }
.job-detail-page #contact { scroll-margin-top: 124px; }

@media (max-width: 767px) {
  /* Reserve the space even while the dock is hidden to avoid scroll jumps. */
  body.has-job-action-dock { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .job-detail-page #contact { scroll-margin-top: 84px; }
  .job-action-dock {
    position: fixed;
    inset: auto 0 0;
    z-index: 9;
    display: block;
    box-sizing: border-box;
    padding: 12px max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #e6e6e6;
    background: #fff;
    box-shadow: 0 -4px 20px #0000000c;
  }
  .job-action-dock[hidden] { display: none; }
  .job-action-dock-inner { display: grid; grid-template-columns: minmax(0, 1fr) clamp(72px, 24vw, 104px); align-items: center; gap: 8px; max-width: 520px; margin: 0 auto; }
  .job-action-dock a { box-sizing: border-box; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .job-action-dock a:focus-visible { outline: 3px solid #16827d; outline-offset: 3px; }
  .job-action-apply { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 54px; padding: 12px 14px; border-radius: 999px; background: #ffd84d; color: #222; font-size: clamp(14px, 4.1vw, 16px); font-weight: 700; line-height: 1.4; letter-spacing: 0; white-space: nowrap; }
  .job-action-apply svg { flex: 0 0 16px; }
  .job-action-apply:active { background: #f6ca32; }
  .job-action-line { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 54px; padding: 2px; border-radius: 4px; background: transparent; color: #444; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
  .job-action-line-mark { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #06c755; color: #fff; font: 700 9px Arial, sans-serif; }
  .job-action-line-mark::after { content: ''; position: absolute; bottom: -3px; left: 7px; width: 7px; height: 7px; background: #06c755; clip-path: polygon(0 0, 100% 0, 0 100%); }
  .job-action-line:active { color: #16827d; }
}
