/* Hardware safe areas: notch/Dynamic Island, landscape cutouts and home indicator. */
:root { --site-safe-top: env(safe-area-inset-top,0px); --site-safe-right: env(safe-area-inset-right,0px); --site-safe-bottom: env(safe-area-inset-bottom,0px); --site-safe-left: env(safe-area-inset-left,0px); }
html { scroll-padding-top: calc(var(--header-height,74px) + var(--header-top,8px) + var(--site-safe-top) + 16px); }
html body .site-header { top: calc(var(--header-top,8px) + var(--site-safe-top)) !important; left: calc(var(--header-side,12px) + var(--site-safe-left)) !important; right: calc(var(--header-side,12px) + var(--site-safe-right)) !important; }
html body .cookie-banner { left: calc(24px + var(--site-safe-left)); bottom: calc(24px + var(--site-safe-bottom)); width: min(480px,calc(100% - 48px - var(--site-safe-left) - var(--site-safe-right))); max-height: calc(100dvh - var(--site-safe-top) - var(--site-safe-bottom) - 48px); overflow-y: auto; }
html body .candidate-privacy-modal,html body .job-details-dialog,html body .cookie-preferences-dialog { max-width: calc(100% - 32px - var(--site-safe-left) - var(--site-safe-right)); max-height: calc(100dvh - 32px - var(--site-safe-top) - var(--site-safe-bottom)); }
html body .error-header { padding-top: calc(28px + var(--site-safe-top)); width: min(1200px,calc(100% - 64px - var(--site-safe-left) - var(--site-safe-right))); }
html body .error-footer { padding-bottom: calc(24px + var(--site-safe-bottom)); width: min(1200px,calc(100% - 64px - var(--site-safe-left) - var(--site-safe-right))); }
@media (max-width: 980px) {
  :root { --header-open-height: calc(100svh - var(--site-safe-top) - var(--site-safe-bottom) - var(--header-top,8px) - 8px); }
  @supports (height: 100dvh) { :root { --header-open-height: calc(100dvh - var(--site-safe-top) - var(--site-safe-bottom) - var(--header-top,8px) - 8px); } }
  html body .site-header.is-mobile-open { height: var(--header-open-height) !important; max-height: var(--header-open-height) !important; overflow-y: auto !important; overscroll-behavior-y: contain; padding-bottom: 12px; }
  html body .founder-biography-modal { padding-top: calc(16px + var(--site-safe-top)) !important; padding-right: calc(16px + var(--site-safe-right)) !important; padding-bottom: calc(16px + var(--site-safe-bottom)) !important; padding-left: calc(16px + var(--site-safe-left)) !important; }
  html body .founder-modal-panel { max-width: 100% !important; min-height: 0 !important; max-height: calc(100dvh - var(--site-safe-top) - var(--site-safe-bottom) - 32px) !important; }
}
@media (max-width: 600px) {
  html body .cookie-banner { left: calc(12px + var(--site-safe-left)); bottom: calc(12px + var(--site-safe-bottom)); width: calc(100% - 24px - var(--site-safe-left) - var(--site-safe-right)); max-height: calc(100dvh - var(--site-safe-top) - var(--site-safe-bottom) - 24px); }
  html body .candidate-privacy-modal { max-height: min(86dvh,calc(100dvh - 24px - var(--site-safe-top) - var(--site-safe-bottom))); }
  html body .error-header { padding-top: calc(22px + var(--site-safe-top)); width: calc(100% - 40px - var(--site-safe-left) - var(--site-safe-right)); }
  html body .error-footer { width: calc(100% - 40px - var(--site-safe-left) - var(--site-safe-right)); }
}

html body .candidate-privacy-modal,html body .job-details-dialog,html body .cookie-preferences-dialog { top: var(--site-safe-top); right: var(--site-safe-right); bottom: var(--site-safe-bottom); left: var(--site-safe-left); margin: auto; }
